diff --git "a/streamlit_observable/frontend/build/static/js/2.b1c975ff.chunk.js" "b/streamlit_observable/frontend/build/static/js/2.b1c975ff.chunk.js"
new file mode 100644--- /dev/null
+++ "b/streamlit_observable/frontend/build/static/js/2.b1c975ff.chunk.js"
@@ -0,0 +1,3 @@
+/*! For license information please see 2.b1c975ff.chunk.js.LICENSE.txt */
+(this.webpackJsonpstreamlit_component_template=this.webpackJsonpstreamlit_component_template||[]).push([[2],[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,"a",(function(){return r}))},function(e,t,n){e.exports=n(46)},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(23);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9),i=n(28),a=n(21);function o(e){return function(){var t,n=Object(r.a)(e);if(Object(i.a)()){var o=Object(r.a)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return Object(a.a)(this,t)}}},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";function r(e,t,n,r,i,a,o){try{var u=e[a](o),c=u.value}catch(s){return void n(s)}u.done?t(c):Promise.resolve(c).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function u(e){r(o,i,a,u,c,"next",e)}function c(e){r(o,i,a,u,c,"throw",e)}u(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(25);var i=n(22);function a(e){return function(e){if(Array.isArray(e))return Object(r.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(i.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(22);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,u=e[Symbol.iterator]();!(r=(o=u.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(c){i=!0,a=c}finally{try{r||null==u.return||u.return()}finally{if(i)throw a}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(22);function i(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=Object(r.a)(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a,o=!0,u=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){u=!0,a=e},f:function(){try{o||null==i.return||i.return()}finally{if(u)throw a}}}}},function(e,t,n){"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(11);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){Object(r.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";e.exports=n(42)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(23),i=n(28);function a(e,t,n){return(a=Object(i.a)()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var a=new(Function.bind.apply(e,i));return n&&Object(r.a)(a,n.prototype),a}).apply(null,arguments)}},function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"e",(function(){return f})),n.d(t,"d",(function(){return h}));var r=n(29),i=n(26),a=n(15),o=n(27),u=n(17),c=1,s=2,l=3,f={};function h(e,t,n){var r;n||(n=f),Object.defineProperties(this,{_observer:{value:n,writable:!0},_definition:{value:v,writable:!0},_duplicate:{value:void 0,writable:!0},_duplicates:{value:void 0,writable:!0},_indegree:{value:NaN,writable:!0},_inputs:{value:[],writable:!0},_invalidate:{value:u.a,writable:!0},_module:{value:t},_name:{value:null,writable:!0},_outputs:{value:new Set,writable:!0},_promise:{value:Promise.resolve(void 0),writable:!0},_reachable:{value:n!==f,writable:!0},_rejector:{value:(r=this,function(e){if(e===v)throw new a.a(r._name+" is not defined",r._name);if(e instanceof Error&&e.message)throw new a.a(e.message,r._name);throw new a.a(r._name+" could not be resolved",r._name)})},_type:{value:e},_value:{value:void 0,writable:!0},_version:{value:0,writable:!0}})}function d(e){e._module._runtime._dirty.add(e),e._outputs.add(this)}function p(e){e._module._runtime._dirty.add(e),e._outputs.delete(this)}function v(){throw v}function y(e){return function(){throw new a.a(e+" is defined more than once")}}function b(e,t,n){var r=this._module._scope,i=this._module._runtime;if(this._inputs.forEach(p,this),t.forEach(d,this),this._inputs=t,this._definition=n,this._value=void 0,n===u.a?i._variables.delete(this):i._variables.add(this),e!==this._name||r.get(e)!==this){var a,o;if(this._name)if(this._outputs.size)r.delete(this._name),(o=this._module._resolve(this._name))._outputs=this._outputs,this._outputs=new Set,o._outputs.forEach((function(e){e._inputs[e._inputs.indexOf(this)]=o}),this),o._outputs.forEach(i._updates.add,i._updates),i._dirty.add(o).add(this),r.set(this._name,o);else if((o=r.get(this._name))===this)r.delete(this._name);else{if(o._type!==l)throw new Error;o._duplicates.delete(this),this._duplicate=void 0,1===o._duplicates.size&&(o=o._duplicates.keys().next().value,a=r.get(this._name),o._outputs=a._outputs,a._outputs=new Set,o._outputs.forEach((function(e){e._inputs[e._inputs.indexOf(a)]=o})),o._definition=o._duplicate,o._duplicate=void 0,i._dirty.add(a).add(o),i._updates.add(o),r.set(this._name,o))}if(this._outputs.size)throw new Error;e&&((o=r.get(e))?o._type===l?(this._definition=y(e),this._duplicate=n,o._duplicates.add(this)):o._type===s?(this._outputs=o._outputs,o._outputs=new Set,this._outputs.forEach((function(e){e._inputs[e._inputs.indexOf(o)]=this}),this),i._dirty.add(o).add(this),r.set(e,this)):(o._duplicate=o._definition,this._duplicate=n,(a=new h(l,this._module))._name=e,a._definition=this._definition=o._definition=y(e),a._outputs=o._outputs,o._outputs=new Set,a._outputs.forEach((function(e){e._inputs[e._inputs.indexOf(o)]=a})),a._duplicates=new Set([this,o]),i._dirty.add(o).add(a),i._updates.add(o).add(a),r.set(e,a)):r.set(e,this)),this._name=e}return i._updates.add(this),i._compute(),this}Object.defineProperties(h.prototype,{_pending:{value:function(){this._observer.pending&&this._observer.pending()},writable:!0,configurable:!0},_fulfilled:{value:function(e){this._observer.fulfilled&&this._observer.fulfilled(e,this._name)},writable:!0,configurable:!0},_rejected:{value:function(e){this._observer.rejected&&this._observer.rejected(e,this._name)},writable:!0,configurable:!0},define:{value:function(e,t,n){switch(arguments.length){case 1:n=e,e=t=null;break;case 2:n=t,"string"===typeof e?t=null:(t=e,e=null)}return b.call(this,null==e?null:e+"",null==t?[]:r.b.call(t,this._module._resolve,this._module),"function"===typeof n?n:Object(i.a)(n))},writable:!0,configurable:!0},delete:{value:function(){return b.call(this,null,[],u.a)},writable:!0,configurable:!0},import:{value:function(e,t,n){arguments.length<3&&(n=t,t=e);return b.call(this,t+"",[n._resolve(e+"")],o.a)},writable:!0,configurable:!0}})},function(e,t,n){"use strict";function r(e,t){this.message=e+"",this.input=t}n.d(t,"a",(function(){return r})),r.prototype=Object.create(Error.prototype),r.prototype.name="RuntimeError",r.prototype.constructor=r},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(){}},,function(e,t,n){"use strict";(function(e){n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return b})),n.d(t,"a",(function(){return m}));var r=n(1),i=n.n(r),a=n(7),o=n(8),u=n(5),c=n(20),s=n(15),l=n(38),f=n(39),h=n(31),d=n(17),p=n(14),v="function"===typeof requestAnimationFrame?requestAnimationFrame:e,y={},b={};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new c.b,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:A,n=this.module();if(Object.defineProperties(this,{_dirty:{value:new Set},_updates:{value:new Set},_precomputes:{value:[],writable:!0},_computing:{value:null,writable:!0},_init:{value:null,writable:!0},_modules:{value:new Map},_variables:{value:new Set},_disposed:{value:!1,writable:!0},_builtin:{value:n},_global:{value:t}}),e)for(var r in e)new p.d(p.b,n).define(r,[],e[r])}function g(){return(g=Object(u.a)(i.a.mark((function e(){var t,n,r,a,u,c,l;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l=function(e){0===--e._indegree&&t.push(e)},t=[],!(a=this._precomputes).length){e.next=8;break}this._precomputes=[],u=Object(o.a)(a);try{for(u.s();!(c=u.n()).done;)(0,c.value)()}catch(i){u.e(i)}finally{u.f()}return e.next=8,w(3);case 8:(n=new Set(this._dirty)).forEach((function(e){e._inputs.forEach(n.add,n);var t=E(e);t>e._reachable?this._updates.add(e):t<e._reachable&&e._invalidate(),e._reachable=t}),this),(n=new Set(this._updates)).forEach((function(e){e._reachable?(e._indegree=0,e._outputs.forEach(n.add,n)):(e._indegree=NaN,n.delete(e))})),this._computing=null,this._updates.clear(),this._dirty.clear(),n.forEach((function(e){e._outputs.forEach(_)}));do{for(n.forEach((function(e){0===e._indegree&&t.push(e)}));r=t.pop();)T(r),r._outputs.forEach(l),n.delete(r);n.forEach((function(e){k(e)&&(I(e,new s.a("circular definition")),e._outputs.forEach(O),n.delete(e))}))}while(n.size);case 17:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function w(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=Promise.resolve(),n=0;n<e;++n)t=t.then((function(){}));return t}function k(e){var t,n=new Set(e._inputs),r=Object(o.a)(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i===e)return!0;i._inputs.forEach(n.add,n)}}catch(a){r.e(a)}finally{r.f()}return!1}function _(e){++e._indegree}function O(e){--e._indegree}function x(e){return e._promise.catch(e._rejector)}function j(e){return new Promise((function(t){e._invalidate=t}))}function S(e,t){var n,r,i="function"===typeof IntersectionObserver&&t._observer&&t._observer._node,o=!i,u=d.a,c=d.a;return i&&((r=new IntersectionObserver((function(e){var t=Object(a.a)(e,1)[0];return(o=t.isIntersecting)&&(n=null,u())}))).observe(i),e.then((function(){return r.disconnect(),r=null,c()}))),function(e){return o?Promise.resolve(e):r?(n||(n=new Promise((function(e,t){return u=e,c=t}))),n.then((function(){return e}))):Promise.reject()}}function T(e){e._invalidate(),e._invalidate=d.a,e._pending();var t=e._value,n=++e._version,r=null;(e._promise=(e._inputs.length?Promise.all(e._inputs.map(x)).then((function(i){if(e._version!==n)return;for(var a=0,o=i.length;a<o;++a)switch(i[a]){case y:i[a]=r=j(e);break;case b:r||(r=j(e)),i[a]=S(r,e)}return e._definition.apply(t,i)})):new Promise((function(n){return n(e._definition.call(t))}))).then((function(t){if(Object(l.a)(t))return e._version!==n?void t.return():((r||j(e)).then((i=t,function(){i.return()})),function(e,t,n){var r=e._module._runtime;function i(e){return new Promise((function(e){return e(n.next())})).then((function(t){var n=t.done,r=t.value;return n?void 0:Promise.resolve(r).then(e)}))}function a(){var n=i((function(i){if(e._version===t)return o(i,n).then((function(){return r._precompute(a)})),e._fulfilled(i),i}));n.catch((function(r){e._version===t&&(o(void 0,n),e._rejected(r))}))}function o(t,n){return e._value=t,e._promise=n,e._outputs.forEach(r._updates.add,r._updates),r._compute()}return i((function(n){if(e._version===t)return r._precompute(a),n}))}(e,n,t));var i;return t}))).then((function(t){e._version===n&&(e._value=t,e._fulfilled(t))}),(function(t){e._version===n&&(e._value=void 0,e._rejected(t))}))}function I(e,t){e._invalidate(),e._invalidate=d.a,e._pending(),++e._version,e._indegree=NaN,(e._promise=Promise.reject(t)).catch(d.a),e._value=void 0,e._rejected(t)}function E(e){if(e._observer!==p.e)return!0;var t,n=new Set(e._outputs),r=Object(o.a)(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(i._observer!==p.e)return!0;i._outputs.forEach(n.add,n)}}catch(a){r.e(a)}finally{r.f()}return!1}function A(e){return window[e]}Object.defineProperties(m,{load:{value:f.a,writable:!0,configurable:!0}}),Object.defineProperties(m.prototype,{_precompute:{value:function(e){this._precomputes.push(e),this._compute()},writable:!0,configurable:!0},_compute:{value:function(){return this._computing||(this._computing=this._computeSoon())},writable:!0,configurable:!0},_computeSoon:{value:function(){var e=this;return new Promise(v).then((function(){return e._disposed?void 0:e._computeNow()}))},writable:!0,configurable:!0},_computeNow:{value:function(){return g.apply(this,arguments)},writable:!0,configurable:!0},dispose:{value:function(){this._computing=Promise.resolve(),this._disposed=!0,this._variables.forEach((function(e){e._invalidate(),e._version=NaN}))},writable:!0,configurable:!0},module:{value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d.a;if(void 0===e)return(t=this._init)?(this._init=null,t):new h.a(this);if(t=this._modules.get(e))return t;this._init=t=new h.a(this),this._modules.set(e,t);try{e(this,n)}finally{this._init=null}return t},writable:!0,configurable:!0},fileAttachments:{value:c.a,writable:!0,configurable:!0}})}).call(this,n(49).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ue})),n.d(t,"b",(function(){return gt}));var r=n(16),i=n(2),a=n(3),o=n(7),u=n(1),c=n.n(u),s=n(0),l=n(4),f=n(5),h={},d={};function p(e){return new Function("d","return {"+e.map((function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'})).join(",")+"}")}function v(e){var t=Object.create(null),n=[];return e.forEach((function(e){for(var r in e)r in t||n.push(t[r]=r)})),n}function y(e,t){var n=e+"",r=n.length;return r<t?new Array(t-r+1).join(0)+n:n}function b(e){var t,n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":((t=e.getUTCFullYear())<0?"-"+y(-t,6):t>9999?"+"+y(t,6):y(t,4))+"-"+y(e.getUTCMonth()+1,2)+"-"+y(e.getUTCDate(),2)+(a?"T"+y(n,2)+":"+y(r,2)+":"+y(i,2)+"."+y(a,3)+"Z":i?"T"+y(n,2)+":"+y(r,2)+":"+y(i,2)+"Z":r||n?"T"+y(n,2)+":"+y(r,2)+"Z":"")}var m=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],a=e.length,o=0,u=0,c=a<=0,s=!1;function l(){if(c)return d;if(s)return s=!1,h;var t,r,i=o;if(34===e.charCodeAt(i)){for(;o++<a&&34!==e.charCodeAt(o)||34===e.charCodeAt(++o););return(t=o)>=a?c=!0:10===(r=e.charCodeAt(o++))?s=!0:13===r&&(s=!0,10===e.charCodeAt(o)&&++o),e.slice(i+1,t-1).replace(/""/g,'"')}for(;o<a;){if(10===(r=e.charCodeAt(t=o++)))s=!0;else if(13===r)s=!0,10===e.charCodeAt(o)&&++o;else if(r!==n)continue;return e.slice(i,t)}return c=!0,e.slice(i,a)}for(10===e.charCodeAt(a-1)&&--a,13===e.charCodeAt(a-1)&&--a;(r=l())!==d;){for(var f=[];r!==h&&r!==d;)f.push(r),r=l();t&&null==(f=t(f,u++))||i.push(f)}return i}function i(t,n){return t.map((function(t){return n.map((function(e){return o(t[e])})).join(e)}))}function a(t){return t.map(o).join(e)}function o(e){return null==e?"":e instanceof Date?b(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,a=r(e,(function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=p(e);return function(r,i){return t(n(r),i,e)}}(e,t):p(e)}));return a.columns=i||[],a},parseRows:r,format:function(t,n){return null==n&&(n=v(t)),[n.map(o).join(e)].concat(i(t,n)).join("\n")},formatBody:function(e,t){return null==t&&(t=v(e)),i(e,t).join("\n")},formatRows:function(e){return e.map(a).join("\n")},formatRow:a,formatValue:o}},g=m("\t"),w=g.parse,k=g.parseRows,_=(g.format,g.formatBody,g.formatRows,g.formatRow,g.formatValue,m(",")),O=_.parse,x=_.parseRows;_.format,_.formatBody,_.formatRows,_.formatRow,_.formatValue;function j(e){for(var t in e){var n,r,i=e[t].trim();if(i)if("true"===i)i=!0;else if("false"===i)i=!1;else if("NaN"===i)i=NaN;else if(isNaN(n=+i)){if(!(r=i.match(/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/)))continue;S&&r[4]&&!r[7]&&(i=i.replace(/-/g,"/").replace(/T/," ")),i=new Date(i)}else i=n;else i=null;e[t]=i}return e}var S=new Date("2019-01-01T00:00").getHours()||new Date("2019-07-01T00:00").getHours(),T=n(8),I=n(9),E=n(23);var A=n(13);function B(e){var t="function"===typeof Map?new Map:void 0;return(B=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return Object(A.a)(e,arguments,Object(I.a)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Object(E.a)(r,e)})(e)}var C=new Map,D=[],L=D.map,N=D.some,F=D.hasOwnProperty,M="https://cdn.jsdelivr.net/npm/",P=/^((?:@[^/@]+\/)?[^/@]+)(?:@([^/]+))?(?:\/(.*))?$/,U=/^\d+\.\d+\.\d+(-[\w-.+]+)?$/,R=/\.[^/]*$/,z=["unpkg","jsdelivr","browser","main"],V=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e){return Object(s.a)(this,n),t.call(this,e)}return n}(B(Error));function W(e){var t,n=Object(T.a)(z);try{for(n.s();!(t=n.n()).done;){var r=e[t.value];if("string"===typeof r)return R.test(r)?r:"".concat(r,".js")}}catch(i){n.e(i)}finally{n.f()}}function Y(e){var t=P.exec(e);return t&&{name:t[1],version:t[2],path:t[3]}}function q(e){var t="".concat(M).concat(e.name).concat(e.version?"@".concat(e.version):"","/package.json"),n=C.get(t);return n||C.set(t,n=fetch(t).then((function(e){if(!e.ok)throw new V("unable to load package.json");return e.redirected&&!C.has(e.url)&&C.set(e.url,n),e.json()}))),n}function H(){return(H=Object(f.a)(c.a.mark((function e(t,n){var r,i,a;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.startsWith(M)&&(t=t.substring(M.length)),!/^(\w+:)|\/\//i.test(t)){e.next=3;break}return e.abrupt("return",t);case 3:if(!/^[.]{0,2}\//i.test(t)){e.next=5;break}return e.abrupt("return",new URL(t,null==n?location:n).href);case 5:if(t.length&&!/^[\s._]/.test(t)&&!/\s$/.test(t)){e.next=7;break}throw new V("illegal name");case 7:if(r=Y(t)){e.next=10;break}return e.abrupt("return","".concat(M).concat(t));case 10:if(r.version||null==n||!n.startsWith(M)){e.next=15;break}return e.next=13,q(Y(n.substring(M.length)));case 13:i=e.sent,r.version=i.dependencies&&i.dependencies[r.name]||i.peerDependencies&&i.peerDependencies[r.name];case 15:if(r.path&&!R.test(r.path)&&(r.path+=".js"),!(r.path&&r.version&&U.test(r.version))){e.next=18;break}return e.abrupt("return","".concat(M).concat(r.name,"@").concat(r.version,"/").concat(r.path));case 18:return e.next=20,q(r);case 20:return a=e.sent,e.abrupt("return","".concat(M).concat(a.name,"@").concat(a.version,"/").concat(r.path||W(a)||"index.js"));case 22:case"end":return e.stop()}}),e)})))).apply(this,arguments)}V.prototype.name=V.name;var $=K((function(e,t){return H.apply(this,arguments)}));function K(e){var t=new Map,n=i(null);function r(e){if("string"!==typeof e)return e;var n=t.get(e);return n||t.set(e,n=new Promise((function(t,n){var r=document.createElement("script");r.onload=function(){try{t(D.pop()(i(e)))}catch(a){n(new V("invalid module"))}r.remove()},r.onerror=function(){n(new V("unable to load module")),r.remove()},r.async=!0,r.src=e,window.define=Z,document.head.appendChild(r)}))),n}function i(t){return function(n){return Promise.resolve(e(n,t)).then(r)}}function a(e){return arguments.length>1?Promise.all(L.call(arguments,n)).then(Q):n(e)}return a.alias=function(t){return K((function(n,r){return n in t&&(r=null,"string"!==typeof(n=t[n]))?n:e(n,r)}))},a.resolve=e,a}function Q(e){var t,n={},r=Object(T.a)(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;for(var a in i)F.call(i,a)&&(null==i[a]?Object.defineProperty(n,a,{get:G(i,a)}):n[a]=i[a])}}catch(o){r.e(o)}finally{r.f()}return n}function G(e,t){return function(){return e[t]}}function J(e){return"exports"===(e+="")||"module"===e}function Z(e,t,n){var r=arguments.length;r<2?(n=e,t=[]):r<3&&(n=t,t="string"===typeof e?[]:e),D.push(N.call(t,J)?function(e){var r={},i={exports:r};return Promise.all(L.call(t,(function(t){return"exports"===(t+="")?r:"module"===t?i:e(t)}))).then((function(e){return n.apply(null,e),i.exports}))}:function(e){return Promise.all(L.call(t,e)).then((function(e){return"function"===typeof n?n.apply(null,e):n}))})}function X(e,t,n){return{resolve:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n;return"https://cdn.jsdelivr.net/npm/".concat(e,"@").concat(t,"/").concat(r)}}}Z.amd={};var ee=X("d3","7.1.1","dist/d3.min.js"),te=X("@observablehq/inputs","0.10.3","dist/inputs.min.js"),ne=X("@observablehq/plot","0.2.9","dist/plot.umd.min.js"),re=X("@observablehq/graphviz","0.2.1","dist/graphviz.min.js"),ie=X("@observablehq/highlight.js","2.0.0","highlight.min.js"),ae=X("@observablehq/katex","0.11.1","dist/katex.min.js"),oe=X("lodash","4.17.21","lodash.min.js"),ue=X("htl","0.3.1","dist/htl.min.js"),ce=X("jszip","3.7.1","dist/jszip.min.js"),se=X("marked","0.3.12","marked.min.js"),le=X("sql.js","1.6.2","dist/sql-wasm.js"),fe=X("vega","5.21.0","build/vega.min.js"),he=X("vega-lite","5.1.1","build/vega-lite.min.js"),de=X("vega-lite-api","5.0.0","build/vega-lite-api.min.js"),pe=X("apache-arrow","4.0.1","Arrow.es2015.min.js"),ve=X("arquero","4.8.7","dist/arquero.min.js"),ye=X("topojson-client","3.1.0","dist/topojson-client.min.js"),be=X("exceljs","4.3.0","dist/exceljs.min.js");function me(e){return ge.apply(this,arguments)}function ge(){return(ge=Object(f.a)(c.a.mark((function e(t){var n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(le.resolve());case 2:return n=e.sent,e.abrupt("return",n({locateFile:function(e){return le.resolve("dist/".concat(e))}}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var we=function(){function e(t){Object(s.a)(this,e),Object.defineProperties(this,{_db:{value:t}})}return Object(l.a)(e,[{key:"query",value:function(){var e=Object(f.a)(c.a.mark((function e(t,n){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,_e(this._db,t,n);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"queryRow",value:function(){var e=Object(f.a)(c.a.mark((function e(t,n){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.query(t,n);case 2:if(e.t0=e.sent[0],e.t0){e.next=5;break}e.t0=null;case 5:return e.abrupt("return",e.t0);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"explain",value:function(){var e=Object(f.a)(c.a.mark((function e(t,n){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.query("EXPLAIN QUERY PLAN ".concat(t),n);case 2:return r=e.sent,e.abrupt("return",xe("pre",{className:"observablehq--inspect"},[je(r.map((function(e){return e.detail})).join("\n"))]));case 4:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"describe",value:function(){var e=Object(f.a)(c.a.mark((function e(t){var n,r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,void 0===t?this.query("SELECT name FROM sqlite_master WHERE type = 'table'"):this.query("SELECT * FROM pragma_table_info(?)",[t]);case 2:if((n=e.sent).length){e.next=5;break}throw new Error("Not found");case 5:return r=n.columns,e.abrupt("return",xe("table",{value:n},[xe("thead",[xe("tr",r.map((function(e){return xe("th",[je(e)])})))]),xe("tbody",n.map((function(e){return xe("tr",r.map((function(t){return xe("td",[je(e[t])])})))})))]));case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"sql",value:function(){var e=Object(f.a)(c.a.mark((function e(t){var n,r,i,a=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=a.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=a[i];return e.abrupt("return",this.query(t.join("?"),r));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}],[{key:"open",value:function(){var t=Object(f.a)(c.a.mark((function t(n){var r,i,a,u;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([me($),Promise.resolve(n).then(ke)]);case 2:return r=t.sent,i=Object(o.a)(r,2),a=i[0],u=i[1],t.abrupt("return",new e(new a.Database(u)));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),e}();function ke(e){return"string"===typeof e?fetch(e).then(ke):e instanceof Response||e instanceof Blob?e.arrayBuffer().then(ke):e instanceof ArrayBuffer?new Uint8Array(e):e}function _e(e,t,n){return Oe.apply(this,arguments)}function Oe(){return(Oe=Object(f.a)(c.a.mark((function e(t,n,r){var i,a,u,s,l,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.exec(n,r);case 2:if(i=e.sent,a=Object(o.a)(i,1),u=a[0]){e.next=7;break}return e.abrupt("return",[]);case 7:return s=u.columns,l=u.values,(f=l.map((function(e){return Object.fromEntries(e.map((function(e,t){return[s[t],e]})))}))).columns=s,e.abrupt("return",f);case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function xe(e,t,n){2===arguments.length&&(n=t,t=void 0);var r=document.createElement(e);if(void 0!==t)for(var i in t)r[i]=t[i];if(void 0!==n){var a,o=Object(T.a)(n);try{for(o.s();!(a=o.n()).done;){var u=a.value;r.appendChild(u)}}catch(c){o.e(c)}finally{o.f()}}return r}function je(e){return document.createTextNode(e)}Object.defineProperty(we.prototype,"dialect",{value:"sqlite"});var Se=function(){function e(t){Object(s.a)(this,e),Object.defineProperties(this,{_:{value:t},sheetNames:{value:t.worksheets.map((function(e){return e.name})),enumerable:!0}})}return Object(l.a)(e,[{key:"sheet",value:function(e,t){var n="number"===typeof e?this.sheetNames[e]:this.sheetNames.includes(e+="")?e:null;if(null==n)throw new Error("Sheet not found: ".concat(e));var r=this._.getWorksheet(n);return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.range,r=t.headers,i=Ee(n,e),a=Object(o.a)(i,2),u=Object(o.a)(a[0],2),c=u[0],s=u[1],l=Object(o.a)(a[1],2),f=l[0],h=l[1],d=r?e._rows[s++]:null,p=new Set(["#"]),v=c;v<=f;v++){for(var y=d?Te(d.findCell(v+1)):null,b=y&&y+""||Ae(v);p.has(b);)b+="_";p.add(b)}p=new Array(c).concat(Array.from(p));for(var m=new Array(h-s+1),g=s;g<=h;g++){var w=m[g-s]=Object.create(null,{"#":{value:g+1}}),k=e.getRow(g+1);if(k.hasValues)for(var _=c;_<=f;_++){var O=Te(k.findCell(_+1));null!=O&&(w[p[_+1]]=O)}}return m.columns=p.filter((function(){return!0})),m}(r,t)}}]),e}();function Te(e){if(e){var t=e.value;if(t&&"object"===typeof t&&!(t instanceof Date)){if(t.formula||t.sharedFormula)return t.result&&t.result.error?NaN:t.result;if(t.richText)return Ie(t);if(t.text){var n=t.text;return n.richText&&(n=Ie(n)),t.hyperlink&&t.hyperlink!==n?"".concat(t.hyperlink," ").concat(n):n}return t}return t}}function Ie(e){return e.richText.map((function(e){return e.text})).join("")}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:":",t=arguments.length>1?arguments[1]:void 0,n=t.columnCount,r=t.rowCount;if(!(e+="").match(/^[A-Z]*\d*:[A-Z]*\d*$/))throw new Error("Malformed range specifier");var i=e.split(":").map(Be),a=Object(o.a)(i,2),u=Object(o.a)(a[0],2),c=u[0],s=void 0===c?0:c,l=u[1],f=void 0===l?0:l,h=Object(o.a)(a[1],2),d=h[0],p=void 0===d?n-1:d,v=h[1],y=void 0===v?r-1:v;return[[s,f],[p,y]]}function Ae(e){var t="";e++;do{t=String.fromCharCode(64+(e%26||26))+t}while(e=Math.floor((e-1)/26));return t}function Be(e){var t=e.match(/^([A-Z]*)(\d*)$/),n=Object(o.a)(t,3),r=n[1],i=n[2],a=0;if(r)for(var u=0;u<r.length;u++)a+=Math.pow(26,r.length-u-1)*(r.charCodeAt(u)-64);return[a?a-1:void 0,i?+i-1:void 0]}function Ce(e){return De.apply(this,arguments)}function De(){return(De=Object(f.a)(c.a.mark((function e(t){var n;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=fetch,e.next=3,t.url();case 3:return e.t1=e.sent,e.next=6,(0,e.t0)(e.t1);case 6:if((n=e.sent).ok){e.next=9;break}throw new Error("Unable to load file: ".concat(t.name));case 9:return e.abrupt("return",n);case 10:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e,t){return Ne.apply(this,arguments)}function Ne(){return(Ne=Object(f.a)(c.a.mark((function e(t,n){var r,i,a,o,u,s,l=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:{},i=r.array,a=void 0!==i&&i,o=r.typed,u=void 0!==o&&o,e.next=3,t.text();case 3:return s=e.sent,e.abrupt("return",("\t"===n?a?k:w:a?x:O)(s,u&&j));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Fe=function(){function e(t){Object(s.a)(this,e),Object.defineProperty(this,"name",{value:t,enumerable:!0})}return Object(l.a)(e,[{key:"blob",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce(this);case 2:return e.abrupt("return",e.sent.blob());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"arrayBuffer",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce(this);case 2:return e.abrupt("return",e.sent.arrayBuffer());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"text",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce(this);case 2:return e.abrupt("return",e.sent.text());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"json",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce(this);case 2:return e.abrupt("return",e.sent.json());case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"stream",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ce(this);case 2:return e.abrupt("return",e.sent.body);case 3:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"csv",value:function(){var e=Object(f.a)(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Le(this,",",t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"tsv",value:function(){var e=Object(f.a)(c.a.mark((function e(t){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Le(this,"\t",t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"image",value:function(){var e=Object(f.a)(c.a.mark((function e(t){var n,r=this;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.url();case 2:return n=e.sent,e.abrupt("return",new Promise((function(e,i){var a=new Image;new URL(n,document.baseURI).origin!==new URL(location).origin&&(a.crossOrigin="anonymous"),Object.assign(a,t),a.onload=function(){return e(a)},a.onerror=function(){return i(new Error("Unable to load file: ".concat(r.name)))},a.src=n})));case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"arrow",value:function(){var e=Object(f.a)(c.a.mark((function e(){var t,n,r,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([$(pe.resolve()),Ce(this)]);case 2:return t=e.sent,n=Object(o.a)(t,2),r=n[0],i=n[1],e.abrupt("return",r.Table.from(i));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"sqlite",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",we.open(Ce(this)));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"zip",value:function(){var e=Object(f.a)(c.a.mark((function e(){var t,n,r,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([$(ce.resolve()),this.arrayBuffer()]);case 2:return t=e.sent,n=Object(o.a)(t,2),r=n[0],i=n[1],e.t0=Re,e.next=9,r.loadAsync(i);case 9:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"xml",value:function(){var e=Object(f.a)(c.a.mark((function e(){var t,n=arguments;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"application/xml",e.t0=new DOMParser,e.next=4,this.text();case 4:return e.t1=e.sent,e.t2=t,e.abrupt("return",e.t0.parseFromString.call(e.t0,e.t1,e.t2));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"html",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.xml("text/html"));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"xlsx",value:function(){var e=Object(f.a)(c.a.mark((function e(){var t,n,r,i;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([$(be.resolve()),this.arrayBuffer()]);case 2:return t=e.sent,n=Object(o.a)(t,2),r=n[0],i=n[1],e.t0=Se,e.next=9,(new r.Workbook).xlsx.load(i);case 9:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 11:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Me=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e,i){var a;return Object(s.a)(this,n),a=t.call(this,i),Object.defineProperty(Object(r.a)(a),"_url",{value:e}),a}return Object(l.a)(n,[{key:"url",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._url;case 2:return e.t0=e.sent,e.abrupt("return",e.t0+"");case 4:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(Fe);function Pe(e){throw new Error("File not found: ".concat(e))}function Ue(e){return Object.assign((function(t){var n=e(t+="");if(null==n)throw new Error("File not found: ".concat(t));return new Me(n,t)}),{prototype:Me.prototype})}var Re=function(){function e(t){Object(s.a)(this,e),Object.defineProperty(this,"_",{value:t}),this.filenames=Object.keys(t.files).filter((function(e){return!t.files[e].dir}))}return Object(l.a)(e,[{key:"file",value:function(e){var t=this._.file(e+="");if(!t||t.dir)throw new Error("file not found: ".concat(e));return new ze(t)}}]),e}(),ze=function(e){Object(i.a)(n,e);var t=Object(a.a)(n);function n(e){var i;return Object(s.a)(this,n),i=t.call(this,e.name),Object.defineProperty(Object(r.a)(i),"_",{value:e}),Object.defineProperty(Object(r.a)(i),"_url",{writable:!0}),i}return Object(l.a)(n,[{key:"url",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._url||(this._url=this.blob().then(URL.createObjectURL)));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"blob",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._.async("blob"));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"arrayBuffer",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._.async("arraybuffer"));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"text",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._.async("text"));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"json",value:function(){var e=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=JSON,e.next=3,this.text();case 3:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),n}(Fe),Ve=n(10),We={math:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Ye=0;function qe(e){this.id=e,this.href=new URL("#".concat(e),location)+""}qe.prototype.toString=function(){return"url("+this.href+")"};var He={canvas:function(e,t){var n=document.createElement("canvas");return n.width=e,n.height=t,n},context2d:function(e,t,n){null==n&&(n=devicePixelRatio);var r=document.createElement("canvas");r.width=e*n,r.height=t*n,r.style.width=e+"px";var i=r.getContext("2d");return i.scale(n,n),i},download:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"untitled",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Save",r=document.createElement("a"),i=r.appendChild(document.createElement("button"));function a(){return o.apply(this,arguments)}function o(){return(o=Object(f.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,new Promise(requestAnimationFrame);case 2:URL.revokeObjectURL(r.href),r.removeAttribute("href"),i.textContent=n,i.disabled=!1;case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return i.textContent=n,r.download=t,r.onclick=function(){var t=Object(f.a)(c.a.mark((function t(o){var u;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(i.disabled=!0,!r.href){t.next=3;break}return t.abrupt("return",a());case 3:return i.textContent="Saving\u2026",t.prev=4,t.next=7,"function"===typeof e?e():e;case 7:u=t.sent,i.textContent="Download",r.href=URL.createObjectURL(u),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(4),i.textContent=n;case 15:if(!o.eventPhase){t.next=17;break}return t.abrupt("return",a());case 17:i.disabled=!1;case 18:case"end":return t.stop()}}),t,null,[[4,12]])})));return function(e){return t.apply(this,arguments)}}(),r},element:function(e,t){var n,r=e+="",i=r.indexOf(":");i>=0&&"xmlns"!==(r=e.slice(0,i))&&(e=e.slice(i+1));var a=We.hasOwnProperty(r)?document.createElementNS(We[r],e):document.createElement(e);if(t)for(var o in t)i=(r=o).indexOf(":"),n=t[o],i>=0&&"xmlns"!==(r=o.slice(0,i))&&(o=o.slice(i+1)),We.hasOwnProperty(r)?a.setAttributeNS(We[r],o,n):a.setAttribute(o,n);return a},input:function(e){var t=document.createElement("input");return null!=e&&(t.type=e),t},range:function(e,t,n){1===arguments.length&&(t=e,e=null);var r=document.createElement("input");return r.min=e=null==e?0:+e,r.max=t=null==t?1:+t,r.step=null==n?"any":n=+n,r.type="range",r},select:function(e){var t=document.createElement("select");return Array.prototype.forEach.call(e,(function(e){var n=document.createElement("option");n.value=n.textContent=e,t.appendChild(n)})),t},svg:function(e,t){var n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttribute("viewBox",[0,0,e,t]),n.setAttribute("width",e),n.setAttribute("height",t),n},text:function(e){return document.createTextNode(e)},uid:function(e){return new qe("O-"+(null==e?"":e+"-")+ ++Ye)}},$e={buffer:function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsArrayBuffer(e)}))},text:function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsText(e)}))},url:function(e){return new Promise((function(t,n){var r=new FileReader;r.onload=function(){t(r.result)},r.onerror=n,r.readAsDataURL(e)}))}},Ke=n(11);function Qe(){return this}function Ge(e,t){var n,r=!1;if("function"!==typeof t)throw new Error("dispose is not a function");return n={},Object(Ke.a)(n,Symbol.iterator,Qe),Object(Ke.a)(n,"next",(function(){return r?{done:!0}:(r=!0,{done:!1,value:e})})),Object(Ke.a)(n,"return",(function(){return r=!0,t(e),{done:!0}})),Object(Ke.a)(n,"throw",(function(){return{done:r=!0}})),n}var Je=c.a.mark(Ze);function Ze(e,t){var n,r;return c.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=-1;case 1:if((n=e.next()).done){i.next=7;break}if(!t(n.value,++r)){i.next=5;break}return i.next=5,n.value;case 5:i.next=1;break;case 7:case"end":return i.stop()}}),Je)}var Xe=function(e){var t,n,r,i=!1,a=e((function(e){r?(r(e),r=null):i=!0;return n=e}));if(null!=a&&"function"!==typeof a)throw new Error("function"===typeof a.then?"async initializers are not supported":"initializer returned something, but not a dispose function");return t={},Object(Ke.a)(t,Symbol.iterator,Qe),Object(Ke.a)(t,"throw",(function(){return{done:!0}})),Object(Ke.a)(t,"return",(function(){return null!=a&&a(),{done:!0}})),Object(Ke.a)(t,"next",(function(){return{done:!1,value:i?(i=!1,Promise.resolve(n)):new Promise((function(e){return r=e}))}})),t};function et(e){switch(e.type){case"range":case"number":return e.valueAsNumber;case"date":return e.valueAsDate;case"checkbox":return e.checked;case"file":return e.multiple?e.files:e.files[0];case"select-multiple":return Array.from(e.selectedOptions,(function(e){return e.value}));default:return e.value}}var tt=c.a.mark(nt);function nt(e,t){var n,r;return c.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:r=-1;case 1:if((n=e.next()).done){i.next=6;break}return i.next=4,t(n.value,++r);case 4:i.next=1;break;case 6:case"end":return i.stop()}}),tt)}var rt=c.a.mark(it);function it(e,t,n){var r,i,a=arguments;return c.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:e=+e,t=+t,n=(i=a.length)<2?(t=e,e=0,1):i<3?1:+n,r=-1,i=0|Math.max(0,Math.ceil((t-e)/n));case 4:if(!(++r<i)){o.next=9;break}return o.next=7,e+r*n;case 7:o.next=4;break;case 9:case"end":return o.stop()}}),rt)}var at={disposable:Ge,filter:Ze,input:function(e){return Xe((function(t){var n=function(e){switch(e.type){case"button":case"submit":case"checkbox":return"click";case"file":return"change";default:return"input"}}(e),r=et(e);function i(){t(et(e))}return e.addEventListener(n,i),void 0!==r&&t(r),function(){e.removeEventListener(n,i)}}))},map:nt,observe:Xe,queue:function(e){var t,n,r=[],i=e((function(e){r.push(e),n&&(n(r.shift()),n=null);return e}));if(null!=i&&"function"!==typeof i)throw new Error("function"===typeof i.then?"async initializers are not supported":"initializer returned something, but not a dispose function");return t={},Object(Ke.a)(t,Symbol.iterator,Qe),Object(Ke.a)(t,"throw",(function(){return{done:!0}})),Object(Ke.a)(t,"return",(function(){return null!=i&&i(),{done:!0}})),Object(Ke.a)(t,"next",(function(){return{done:!1,value:r.length?Promise.resolve(r.shift()):new Promise((function(e){return n=e}))}})),t},range:it,valueAt:function(e,t){if(!(!isFinite(t=+t)||t<0||t!==t|0))for(var n,r=-1;!(n=e.next()).done;)if(++r===t)return n.value},worker:function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/javascript"})),n=new Worker(t);return Ge(n,(function(){n.terminate(),URL.revokeObjectURL(t)}))}};function ot(e,t){return function(n){var r,i,a,o,u,c,s,l,f=n[0],h=[],d=null,p=-1;for(u=1,c=arguments.length;u<c;++u){if((r=arguments[u])instanceof Node)h[++p]=r,f+="\x3c!--o:"+p+"--\x3e";else if(Array.isArray(r)){for(s=0,l=r.length;s<l;++s)(i=r[s])instanceof Node?(null===d&&(h[++p]=d=document.createDocumentFragment(),f+="\x3c!--o:"+p+"--\x3e"),d.appendChild(i)):(d=null,f+=i);d=null}else f+=r;f+=n[u]}if(d=e(f),++p>0){for(a=new Array(p),o=document.createTreeWalker(d,NodeFilter.SHOW_COMMENT,null,!1);o.nextNode();)i=o.currentNode,/^o:/.test(i.nodeValue)&&(a[+i.nodeValue.slice(2)]=i);for(u=0;u<p;++u)(i=a[u])&&i.parentNode.replaceChild(h[u],i)}return 1===d.childNodes.length?d.removeChild(d.firstChild):11===d.nodeType?((i=t()).appendChild(d),i):d}}var ut=ot((function(e){var t=document.createElement("template");return t.innerHTML=e.trim(),document.importNode(t.content,!0)}),(function(){return document.createElement("span")}));function ct(e){var t;Object.defineProperties(this,{generator:{value:Xe((function(e){t=e}))},value:{get:function(){return e},set:function(n){return t(e=n)}}}),void 0!==e&&t(e)}var st=c.a.mark(lt);function lt(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=3,Date.now();case 3:e.next=0;break;case 5:case"end":return e.stop()}}),st)}var ft=new Map;function ht(e,t){var n;return(n=ft.get(e=+e))?n.then((function(){return t})):(n=Date.now())>=e?Promise.resolve(t):function(e,t){var n=new Promise((function(n){ft.delete(t);var r=t-e;if(!(r>0))throw new Error("invalid time");if(r>2147483647)throw new Error("too long to wait");setTimeout(n,r)}));return ft.set(t,n),n}(n,e).then((function(){return t}))}var dt={delay:function(e,t){return new Promise((function(n){setTimeout((function(){n(t)}),e)}))},tick:function(e,t){return ht(Math.ceil((Date.now()+1)/e)*e,t)},when:ht};function pt(e,t){if(/^(\w+:)|\/\//i.test(e))return e;if(/^[.]{0,2}\//i.test(e))return new URL(e,null==t?location:t).href;if(!e.length||/^[\s._]/.test(e)||/\s$/.test(e))throw new Error("illegal name");return"https://unpkg.com/"+e}var vt=ot((function(e){var t=document.createElementNS("http://www.w3.org/2000/svg","g");return t.innerHTML=e.trim(),t}),(function(){return document.createElementNS("http://www.w3.org/2000/svg","g")})),yt=String.raw;function bt(){return(bt=Object(f.a)(c.a.mark((function e(t){var n,r,i,a,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([fe,he,de].map((function(e){return t(e.resolve())})));case 2:return n=e.sent,r=Object(o.a)(n,3),i=r[0],a=r[1],u=r[2],e.abrupt("return",u.register(i,a));case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var mt=function(){return Xe((function(e){var t=e(document.body.clientWidth);function n(){var n=document.body.clientWidth;n!==t&&e(t=n)}return window.addEventListener("resize",n),function(){window.removeEventListener("resize",n)}}))},gt=Object.assign((function(e){var t,n,r=null==(t=e)?$:K(t);Object.defineProperties(this,(n={FileAttachment:function(){return Pe},Arrow:function(){return r(pe.resolve())},Inputs:function(){return r(te.resolve()).then((function(e){return Object(Ve.a)(Object(Ve.a)({},e),{},{file:e.fileOf(Fe)})}))},Mutable:function(){return ct},Plot:function(){return r(ne.resolve())},SQLite:function(){return me(r)},SQLiteDatabaseClient:function(){return we},_:function(){return r(oe.resolve())},aq:function(){return r.alias({"apache-arrow":pe.resolve()})(ve.resolve())},d3:function(){return r(ee.resolve())},dot:function(){return r(re.resolve())},htl:function(){return r(ue.resolve())},html:function(){return ut},md:function(){return(e=r)(se.resolve()).then((function(t){return ot((function(n){var r=document.createElement("div");r.innerHTML=t(n,{langPrefix:""}).trim();var i=r.querySelectorAll("pre code[class]");return i.length>0&&e(ie.resolve()).then((function(t){i.forEach((function(n){function r(){t.highlightBlock(n),n.parentNode.classList.add("observablehq--md-pre")}t.getLanguage(n.className)?r():e(ie.resolve("async-languages/index.js")).then((function(r){if(r.has(n.className))return e(ie.resolve("async-languages/"+r.get(n.className))).then((function(e){t.registerLanguage(n.className,e)}))})).then(r,r)}))})),r}),(function(){return document.createElement("div")}))}));var e},now:lt,require:function(){return r},resolve:function(){return pt},svg:function(){return vt},tex:function(){return function(e){return Promise.all([e(ae.resolve()),(t=ae.resolve("dist/katex.min.css"),new Promise((function(e,n){var r=document.createElement("link");r.rel="stylesheet",r.href=t,r.onerror=n,r.onload=e,document.head.appendChild(r)})))]).then((function(e){var t=e[0],n=r();function r(e){return function(){var n=document.createElement("div");return t.render(yt.apply(String,arguments),n,e),n.removeChild(n.firstChild)}}return n.options=r,n.block=r({displayMode:!0}),n}));var t}(r)},topojson:function(){return r(ye.resolve())},vl:function(){return function(e){return bt.apply(this,arguments)}(r)},width:mt,DOM:He,Files:$e,Generators:at,Promises:dt},Object.fromEntries(Object.entries(n).map(wt))))}),{resolve:$.resolve});function wt(e){var t=Object(o.a)(e,2);return[t[0],{value:t[1],writable:!0,enumerable:!0}]}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return a}));var i=n(16);function a(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?Object(i.a)(e):t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(25);function i(e,t){if(e){if("string"===typeof e)return Object(r.a)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(e,t):void 0}}},function(e,t,n){"use strict";function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return wt})),n.d(t,"a",(function(){return cs}));var r={};n.r(r),n.d(r,"memcpy",(function(){return ve})),n.d(r,"joinUint8Arrays",(function(){return ye})),n.d(r,"toArrayBufferView",(function(){return be})),n.d(r,"toInt8Array",(function(){return me})),n.d(r,"toInt16Array",(function(){return ge})),n.d(r,"toInt32Array",(function(){return we})),n.d(r,"toBigInt64Array",(function(){return ke})),n.d(r,"toUint8Array",(function(){return _e})),n.d(r,"toUint16Array",(function(){return Oe})),n.d(r,"toUint32Array",(function(){return xe})),n.d(r,"toBigUint64Array",(function(){return je})),n.d(r,"toFloat32Array",(function(){return Se})),n.d(r,"toFloat64Array",(function(){return Te})),n.d(r,"toUint8ClampedArray",(function(){return Ie})),n.d(r,"toArrayBufferViewIterator",(function(){return Ae})),n.d(r,"toInt8ArrayIterator",(function(){return Be})),n.d(r,"toInt16ArrayIterator",(function(){return Ce})),n.d(r,"toInt32ArrayIterator",(function(){return De})),n.d(r,"toUint8ArrayIterator",(function(){return Le})),n.d(r,"toUint16ArrayIterator",(function(){return Ne})),n.d(r,"toUint32ArrayIterator",(function(){return Fe})),n.d(r,"toFloat32ArrayIterator",(function(){return Me})),n.d(r,"toFloat64ArrayIterator",(function(){return Pe})),n.d(r,"toUint8ClampedArrayIterator",(function(){return Ue})),n.d(r,"toArrayBufferViewAsyncIterator",(function(){return Re})),n.d(r,"toInt8ArrayAsyncIterator",(function(){return Ve})),n.d(r,"toInt16ArrayAsyncIterator",(function(){return We})),n.d(r,"toInt32ArrayAsyncIterator",(function(){return Ye})),n.d(r,"toUint8ArrayAsyncIterator",(function(){return qe})),n.d(r,"toUint16ArrayAsyncIterator",(function(){return He})),n.d(r,"toUint32ArrayAsyncIterator",(function(){return $e})),n.d(r,"toFloat32ArrayAsyncIterator",(function(){return Ke})),n.d(r,"toFloat64ArrayAsyncIterator",(function(){return Qe})),n.d(r,"toUint8ClampedArrayAsyncIterator",(function(){return Ge})),n.d(r,"rebaseValueOffsets",(function(){return Je})),n.d(r,"compareArrayLike",(function(){return Ze}));var i={};n.r(i),n.d(i,"getBool",(function(){return At})),n.d(i,"getBit",(function(){return Bt})),n.d(i,"setBool",(function(){return Ct})),n.d(i,"truncateBitmap",(function(){return Dt})),n.d(i,"packBools",(function(){return Lt})),n.d(i,"iterateBits",(function(){return Nt})),n.d(i,"popcnt_bit_range",(function(){return Ft})),n.d(i,"popcnt_array",(function(){return Mt})),n.d(i,"popcnt_uint32",(function(){return Pt}));var a={};n.r(a),n.d(a,"uint16ToFloat64",(function(){return cr})),n.d(a,"float64ToUint16",(function(){return sr}));var o={};n.r(o),n.d(o,"isArrowBigNumSymbol",(function(){return br})),n.d(o,"bignumToString",(function(){return lr})),n.d(o,"bignumToBigInt",(function(){return fr})),n.d(o,"BN",(function(){return jr}));var u={};n.r(u),n.d(u,"clampIndex",(function(){return hi})),n.d(u,"clampRange",(function(){return di})),n.d(u,"createElementComparator",(function(){return yi}));var c={};n.r(c),n.d(c,"BaseInt64",(function(){return Da})),n.d(c,"Uint64",(function(){return La})),n.d(c,"Int64",(function(){return Na})),n.d(c,"Int128",(function(){return Fa}));var s=n(8),l=n(5),f=n(0),h=n(4),d=n(1),p=n(7);function v(e){this.wrapped=e}function y(e){return new v(e)}function b(e){var t,n;function r(t,n){try{var a=e[t](n),o=a.value,u=o instanceof v;Promise.resolve(u?o.wrapped:o).then((function(e){u?r("return"===t?"return":"next",e):i(a.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(c){i("throw",c)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(a,o){var u={key:e,arg:i,resolve:a,reject:o,next:null};n?n=n.next=u:(t=n=u,r(e,i))}))},"function"!==typeof e.return&&(this.return=void 0)}function m(e){return function(){return new b(e.apply(this,arguments))}}function g(e,t){var n={},r=!1;function i(n,i){return r=!0,i=new Promise((function(t){t(e[n](i))})),{done:!1,value:t(i)}}return"function"===typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return r?(r=!1,e):i("next",e)},"function"===typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return i("throw",e)}),"function"===typeof e.return&&(n.return=function(e){return r?(r=!1,e):i("return",e)}),n}"function"===typeof Symbol&&Symbol.asyncIterator&&(b.prototype[Symbol.asyncIterator]=function(){return this}),b.prototype.next=function(e){return this._invoke("next",e)},b.prototype.throw=function(e){return this._invoke("throw",e)},b.prototype.return=function(e){return this._invoke("return",e)};var w={};function k(e,t,n){return t<=e&&e<=n}function _(e){if(void 0===e)return{};if(e===Object(e))return e;throw TypeError("Could not convert argument to dictionary")}w.Offset,w.Table,w.SIZEOF_SHORT=2,w.SIZEOF_INT=4,w.FILE_IDENTIFIER_LENGTH=4,w.Encoding={UTF8_BYTES:1,UTF16_STRING:2},w.int32=new Int32Array(2),w.float32=new Float32Array(w.int32.buffer),w.float64=new Float64Array(w.int32.buffer),w.isLittleEndian=1===new Uint16Array(new Uint8Array([1,0]).buffer)[0],w.Long=function(e,t){this.low=0|e,this.high=0|t},w.Long.create=function(e,t){return 0==e&&0==t?w.Long.ZERO:new w.Long(e,t)},w.Long.prototype.toFloat64=function(){return(this.low>>>0)+4294967296*this.high},w.Long.prototype.equals=function(e){return this.low==e.low&&this.high==e.high},w.Long.ZERO=new w.Long(0,0),w.Builder=function(e){if(e)t=e;else var t=1024;this.bb=w.ByteBuffer.allocate(t),this.space=t,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},w.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},w.Builder.prototype.forceDefaults=function(e){this.force_defaults=e},w.Builder.prototype.dataBuffer=function(){return this.bb},w.Builder.prototype.asUint8Array=function(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())},w.Builder.prototype.prep=function(e,t){e>this.minalign&&(this.minalign=e);for(var n=1+~(this.bb.capacity()-this.space+t)&e-1;this.space<n+e+t;){var r=this.bb.capacity();this.bb=w.Builder.growByteBuffer(this.bb),this.space+=this.bb.capacity()-r}this.pad(n)},w.Builder.prototype.pad=function(e){for(var t=0;t<e;t++)this.bb.writeInt8(--this.space,0)},w.Builder.prototype.writeInt8=function(e){this.bb.writeInt8(this.space-=1,e)},w.Builder.prototype.writeInt16=function(e){this.bb.writeInt16(this.space-=2,e)},w.Builder.prototype.writeInt32=function(e){this.bb.writeInt32(this.space-=4,e)},w.Builder.prototype.writeInt64=function(e){this.bb.writeInt64(this.space-=8,e)},w.Builder.prototype.writeFloat32=function(e){this.bb.writeFloat32(this.space-=4,e)},w.Builder.prototype.writeFloat64=function(e){this.bb.writeFloat64(this.space-=8,e)},w.Builder.prototype.addInt8=function(e){this.prep(1,0),this.writeInt8(e)},w.Builder.prototype.addInt16=function(e){this.prep(2,0),this.writeInt16(e)},w.Builder.prototype.addInt32=function(e){this.prep(4,0),this.writeInt32(e)},w.Builder.prototype.addInt64=function(e){this.prep(8,0),this.writeInt64(e)},w.Builder.prototype.addFloat32=function(e){this.prep(4,0),this.writeFloat32(e)},w.Builder.prototype.addFloat64=function(e){this.prep(8,0),this.writeFloat64(e)},w.Builder.prototype.addFieldInt8=function(e,t,n){(this.force_defaults||t!=n)&&(this.addInt8(t),this.slot(e))},w.Builder.prototype.addFieldInt16=function(e,t,n){(this.force_defaults||t!=n)&&(this.addInt16(t),this.slot(e))},w.Builder.prototype.addFieldInt32=function(e,t,n){(this.force_defaults||t!=n)&&(this.addInt32(t),this.slot(e))},w.Builder.prototype.addFieldInt64=function(e,t,n){!this.force_defaults&&t.equals(n)||(this.addInt64(t),this.slot(e))},w.Builder.prototype.addFieldFloat32=function(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat32(t),this.slot(e))},w.Builder.prototype.addFieldFloat64=function(e,t,n){(this.force_defaults||t!=n)&&(this.addFloat64(t),this.slot(e))},w.Builder.prototype.addFieldOffset=function(e,t,n){(this.force_defaults||t!=n)&&(this.addOffset(t),this.slot(e))},w.Builder.prototype.addFieldStruct=function(e,t,n){t!=n&&(this.nested(t),this.slot(e))},w.Builder.prototype.nested=function(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")},w.Builder.prototype.notNested=function(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")},w.Builder.prototype.slot=function(e){this.vtable[e]=this.offset()},w.Builder.prototype.offset=function(){return this.bb.capacity()-this.space},w.Builder.growByteBuffer=function(e){var t=e.capacity();if(3221225472&t)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");var n=t<<1,r=w.ByteBuffer.allocate(n);return r.setPosition(n-t),r.bytes().set(e.bytes(),n-t),r},w.Builder.prototype.addOffset=function(e){this.prep(w.SIZEOF_INT,0),this.writeInt32(this.offset()-e+w.SIZEOF_INT)},w.Builder.prototype.startObject=function(e){this.notNested(),null==this.vtable&&(this.vtable=[]),this.vtable_in_use=e;for(var t=0;t<e;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()},w.Builder.prototype.endObject=function(){if(null==this.vtable||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);for(var e=this.offset(),t=this.vtable_in_use-1;t>=0&&0==this.vtable[t];t--);for(var n=t+1;t>=0;t--)this.addInt16(0!=this.vtable[t]?e-this.vtable[t]:0);this.addInt16(e-this.object_start);var r=(n+2)*w.SIZEOF_SHORT;this.addInt16(r);var i=0,a=this.space;e:for(t=0;t<this.vtables.length;t++){var o=this.bb.capacity()-this.vtables[t];if(r==this.bb.readInt16(o)){for(var u=w.SIZEOF_SHORT;u<r;u+=w.SIZEOF_SHORT)if(this.bb.readInt16(a+u)!=this.bb.readInt16(o+u))continue e;i=this.vtables[t];break}}return i?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,i-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e},w.Builder.prototype.finish=function(e,t){if(t){var n=t;if(this.prep(this.minalign,w.SIZEOF_INT+w.FILE_IDENTIFIER_LENGTH),n.length!=w.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+w.FILE_IDENTIFIER_LENGTH);for(var r=w.FILE_IDENTIFIER_LENGTH-1;r>=0;r--)this.writeInt8(n.charCodeAt(r))}this.prep(this.minalign,w.SIZEOF_INT),this.addOffset(e),this.bb.setPosition(this.space)},w.Builder.prototype.requiredField=function(e,t){var n=this.bb.capacity()-e,r=n-this.bb.readInt32(n);if(!(0!=this.bb.readInt16(r+t)))throw new Error("FlatBuffers: field "+t+" must be set")},w.Builder.prototype.startVector=function(e,t,n){this.notNested(),this.vector_num_elems=t,this.prep(w.SIZEOF_INT,e*t),this.prep(n,e*t)},w.Builder.prototype.endVector=function(){return this.writeInt32(this.vector_num_elems),this.offset()},w.Builder.prototype.createString=function(e){if(e instanceof Uint8Array)var t=e;else{t=[];for(var n=0;n<e.length;){var r,i=e.charCodeAt(n++);if(i<55296||i>=56320)r=i;else r=(i<<10)+e.charCodeAt(n++)+-56613888;r<128?t.push(r):(r<2048?t.push(r>>6&31|192):(r<65536?t.push(r>>12&15|224):t.push(r>>18&7|240,r>>12&63|128),t.push(r>>6&63|128)),t.push(63&r|128))}}this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length);n=0;for(var a=this.space,o=this.bb.bytes();n<t.length;n++)o[a++]=t[n];return this.endVector()},w.Builder.prototype.createLong=function(e,t){return w.Long.create(e,t)},w.ByteBuffer=function(e){this.bytes_=e,this.position_=0},w.ByteBuffer.allocate=function(e){return new w.ByteBuffer(new Uint8Array(e))},w.ByteBuffer.prototype.clear=function(){this.position_=0},w.ByteBuffer.prototype.bytes=function(){return this.bytes_},w.ByteBuffer.prototype.position=function(){return this.position_},w.ByteBuffer.prototype.setPosition=function(e){this.position_=e},w.ByteBuffer.prototype.capacity=function(){return this.bytes_.length},w.ByteBuffer.prototype.readInt8=function(e){return this.readUint8(e)<<24>>24},w.ByteBuffer.prototype.readUint8=function(e){return this.bytes_[e]},w.ByteBuffer.prototype.readInt16=function(e){return this.readUint16(e)<<16>>16},w.ByteBuffer.prototype.readUint16=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8},w.ByteBuffer.prototype.readInt32=function(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24},w.ByteBuffer.prototype.readUint32=function(e){return this.readInt32(e)>>>0},w.ByteBuffer.prototype.readInt64=function(e){return new w.Long(this.readInt32(e),this.readInt32(e+4))},w.ByteBuffer.prototype.readUint64=function(e){return new w.Long(this.readUint32(e),this.readUint32(e+4))},w.ByteBuffer.prototype.readFloat32=function(e){return w.int32[0]=this.readInt32(e),w.float32[0]},w.ByteBuffer.prototype.readFloat64=function(e){return w.int32[w.isLittleEndian?0:1]=this.readInt32(e),w.int32[w.isLittleEndian?1:0]=this.readInt32(e+4),w.float64[0]},w.ByteBuffer.prototype.writeInt8=function(e,t){this.bytes_[e]=t},w.ByteBuffer.prototype.writeUint8=function(e,t){this.bytes_[e]=t},w.ByteBuffer.prototype.writeInt16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8},w.ByteBuffer.prototype.writeUint16=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8},w.ByteBuffer.prototype.writeInt32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24},w.ByteBuffer.prototype.writeUint32=function(e,t){this.bytes_[e]=t,this.bytes_[e+1]=t>>8,this.bytes_[e+2]=t>>16,this.bytes_[e+3]=t>>24},w.ByteBuffer.prototype.writeInt64=function(e,t){this.writeInt32(e,t.low),this.writeInt32(e+4,t.high)},w.ByteBuffer.prototype.writeUint64=function(e,t){this.writeUint32(e,t.low),this.writeUint32(e+4,t.high)},w.ByteBuffer.prototype.writeFloat32=function(e,t){w.float32[0]=t,this.writeInt32(e,w.int32[0])},w.ByteBuffer.prototype.writeFloat64=function(e,t){w.float64[0]=t,this.writeInt32(e,w.int32[w.isLittleEndian?0:1]),this.writeInt32(e+4,w.int32[w.isLittleEndian?1:0])},w.ByteBuffer.prototype.getBufferIdentifier=function(){if(this.bytes_.length<this.position_+w.SIZEOF_INT+w.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");for(var e="",t=0;t<w.FILE_IDENTIFIER_LENGTH;t++)e+=String.fromCharCode(this.readInt8(this.position_+w.SIZEOF_INT+t));return e},w.ByteBuffer.prototype.__offset=function(e,t){var n=e-this.readInt32(e);return t<this.readInt16(n)?this.readInt16(n+t):0},w.ByteBuffer.prototype.__union=function(e,t){return e.bb_pos=t+this.readInt32(t),e.bb=this,e},w.ByteBuffer.prototype.__string=function(e,t){e+=this.readInt32(e);var n=this.readInt32(e),r="",i=0;if(e+=w.SIZEOF_INT,t===w.Encoding.UTF8_BYTES)return this.bytes_.subarray(e,e+n);for(;i<n;){var a,o=this.readUint8(e+i++);if(o<192)a=o;else{var u=this.readUint8(e+i++);if(o<224)a=(31&o)<<6|63&u;else{var c=this.readUint8(e+i++);if(o<240)a=(15&o)<<12|(63&u)<<6|63&c;else a=(7&o)<<18|(63&u)<<12|(63&c)<<6|63&this.readUint8(e+i++)}}a<65536?r+=String.fromCharCode(a):(a-=65536,r+=String.fromCharCode(55296+(a>>10),56320+(1023&a)))}return r},w.ByteBuffer.prototype.__indirect=function(e){return e+this.readInt32(e)},w.ByteBuffer.prototype.__vector=function(e){return e+this.readInt32(e)+w.SIZEOF_INT},w.ByteBuffer.prototype.__vector_len=function(e){return this.readInt32(e+this.readInt32(e))},w.ByteBuffer.prototype.__has_identifier=function(e){if(e.length!=w.FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+w.FILE_IDENTIFIER_LENGTH);for(var t=0;t<w.FILE_IDENTIFIER_LENGTH;t++)if(e.charCodeAt(t)!=this.readInt8(this.position_+w.SIZEOF_INT+t))return!1;return!0},w.ByteBuffer.prototype.createLong=function(e,t){return w.Long.create(e,t)};function O(e){this.tokens=[].slice.call(e)}O.prototype={endOfStream:function(){return!this.tokens.length},read:function(){return this.tokens.length?this.tokens.shift():-1},prepend:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.unshift(t.pop());else this.tokens.unshift(e)},push:function(e){if(Array.isArray(e))for(var t=e;t.length;)this.tokens.push(t.shift());else this.tokens.push(e)}};function x(e,t){if(e)throw TypeError("Decoder error");return t||65533}function j(e,t){if(!(this instanceof j))return new j(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=_(t),this._streaming=!1,this._BOMseen=!1,this._decoder=null,this._fatal=Boolean(t.fatal),this._ignoreBOM=Boolean(t.ignoreBOM),Object.defineProperty(this,"encoding",{value:"utf-8"}),Object.defineProperty(this,"fatal",{value:this._fatal}),Object.defineProperty(this,"ignoreBOM",{value:this._ignoreBOM})}function S(e,t){if(!(this instanceof S))return new S(e,t);if("utf-8"!==(e=void 0!==e?String(e).toLowerCase():"utf-8"))throw new Error("Encoding not supported. Only utf-8 is supported");t=_(t),this._streaming=!1,this._encoder=null,this._options={fatal:Boolean(t.fatal)},Object.defineProperty(this,"encoding",{value:"utf-8"})}function T(e){var t=e.fatal,n=0,r=0,i=0,a=128,o=191;this.handler=function(e,u){if(-1===u&&0!==i)return i=0,x(t);if(-1===u)return-1;if(0===i){if(k(u,0,127))return u;if(k(u,194,223))i=1,n=u-192;else if(k(u,224,239))224===u&&(a=160),237===u&&(o=159),i=2,n=u-224;else{if(!k(u,240,244))return x(t);240===u&&(a=144),244===u&&(o=143),i=3,n=u-240}return n<<=6*i,null}if(!k(u,a,o))return n=i=r=0,a=128,o=191,e.prepend(u),x(t);if(a=128,o=191,n+=u-128<<6*(i-(r+=1)),r!==i)return null;var c=n;return n=i=r=0,c}}function I(e){e.fatal;this.handler=function(e,t){if(-1===t)return-1;if(k(t,0,127))return t;var n,r;k(t,128,2047)?(n=1,r=192):k(t,2048,65535)?(n=2,r=224):k(t,65536,1114111)&&(n=3,r=240);for(var i=[(t>>6*n)+r];n>0;){var a=t>>6*(n-1);i.push(128|63&a),n-=1}return i}}j.prototype={decode:function(e,t){var n;n="object"===typeof e&&e instanceof ArrayBuffer?new Uint8Array(e):"object"===typeof e&&"buffer"in e&&e.buffer instanceof ArrayBuffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(0),t=_(t),this._streaming||(this._decoder=new T({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(t.stream);for(var r,i=new O(n),a=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?a.push.apply(a,r):a.push(r))}while(!i.endOfStream());this._decoder=null}return a.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===a[0]?(this._BOMseen=!0,a.shift()):this._BOMseen=!0)),function(e){for(var t="",n=0;n<e.length;++n){var r=e[n];r<=65535?t+=String.fromCharCode(r):(r-=65536,t+=String.fromCharCode(55296+(r>>10),56320+(1023&r)))}return t}(a)}},S.prototype={encode:function(e,t){e=e?String(e):"",t=_(t),this._streaming||(this._encoder=new I(this._options)),this._streaming=Boolean(t.stream);for(var n,r=[],i=new O(function(e){for(var t=String(e),n=t.length,r=0,i=[];r<n;){var a=t.charCodeAt(r);if(a<55296||a>57343)i.push(a);else if(56320<=a&&a<=57343)i.push(65533);else if(55296<=a&&a<=56319)if(r===n-1)i.push(65533);else{var o=e.charCodeAt(r+1);if(56320<=o&&o<=57343){var u=1023&a,c=1023&o;i.push(65536+(u<<10)+c),r+=1}else i.push(65533)}r+=1}return i}(e));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var E="function"===typeof Buffer?Buffer:null,A="function"===typeof TextDecoder&&"function"===typeof TextEncoder,B=function(e){if(A||!E){var t=new e("utf-8");return function(e){return t.decode(e)}}return function(e){var t=_e(e),n=t.buffer,r=t.byteOffset,i=t.length;return E.from(n,r,i).toString()}}("undefined"!==typeof TextDecoder?TextDecoder:j),C=function(e){if(A||!E){var t=new e;return function(e){return t.encode(e)}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return _e(E.from(e,"utf8"))}}("undefined"!==typeof TextEncoder?TextEncoder:S),D=n(2),L=n(3),N=Object.freeze({done:!0,value:void 0}),F=function(){function e(t){Object(f.a)(this,e),this._json=t}return Object(h.a)(e,[{key:"schema",get:function(){return this._json.schema}},{key:"batches",get:function(){return this._json.batches||[]}},{key:"dictionaries",get:function(){return this._json.dictionaries||[]}}]),e}(),M=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"tee",value:function(){return this._getDOMStream().tee()}},{key:"pipe",value:function(e,t){return this._getNodeStream().pipe(e,t)}},{key:"pipeTo",value:function(e,t){return this._getDOMStream().pipeTo(e,t)}},{key:"pipeThrough",value:function(e,t){return this._getDOMStream().pipeThrough(e,t)}},{key:"_getDOMStream",value:function(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}},{key:"_getNodeStream",value:function(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}]),e}(),P=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(){var e;return Object(f.a)(this,r),(e=n.call(this))._values=[],e.resolvers=[],e._closedPromise=new Promise((function(t){return e._closedPromiseResolve=t})),e}return Object(h.a)(r,[{key:"closed",get:function(){return this._closedPromise}},{key:"cancel",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.return(t);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"write",value:function(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}},{key:"abort",value:function(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}},{key:"close",value:function(){if(this._closedPromiseResolve){for(var e=this.resolvers;e.length>0;)e.shift().resolve(N);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}},{key:t,value:function(){return this}},{key:"toDOMStream",value:function(e){return et.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}},{key:"toNodeStream",value:function(e){return et.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}},{key:"throw",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.abort(t);case 2:return e.abrupt("return",N);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"return",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:return e.abrupt("return",N);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.next(t,"read");case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"peek",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.next(t,"peek");case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"next",value:function(){var e=this;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((function(t,n){e.resolvers.push({resolve:t,reject:n})})):Promise.resolve(N)}},{key:"_ensureOpen",value:function(){if(this._closedPromiseResolve)return!0;throw new Error("".concat(this," is closed"))}}]),r}(M,Symbol.asyncIterator),U=function(){var e=function(){throw new Error("BigInt is not available in this environment")};function t(){throw e()}return t.asIntN=function(){throw e()},t.asUintN=function(){throw e()},"undefined"!==typeof BigInt?[BigInt,!0]:[t,!1]}(),R=Object(p.a)(U,2),z=R[0],V=R[1],W=function(){var e=function(){throw new Error("BigInt64Array is not available in this environment")};return"undefined"!==typeof BigInt64Array?[BigInt64Array,!0]:[function(){function t(){throw Object(f.a)(this,t),e()}return Object(h.a)(t,null,[{key:"BYTES_PER_ELEMENT",get:function(){return 8}},{key:"of",value:function(){throw e()}},{key:"from",value:function(){throw e()}}]),t}(),!1]}(),Y=Object(p.a)(W,2),q=Y[0],H=(Y[1],function(){var e=function(){throw new Error("BigUint64Array is not available in this environment")};return"undefined"!==typeof BigUint64Array?[BigUint64Array,!0]:[function(){function t(){throw Object(f.a)(this,t),e()}return Object(h.a)(t,null,[{key:"BYTES_PER_ELEMENT",get:function(){return 8}},{key:"of",value:function(){throw e()}},{key:"from",value:function(){throw e()}}]),t}(),!1]}()),$=Object(p.a)(H,2),K=$[0],Q=($[1],function(e){return"number"===typeof e}),G=function(e){return"boolean"===typeof e},J=function(e){return"function"===typeof e},Z=function(e){return null!=e&&Object(e)===e},X=function(e){return Z(e)&&J(e.then)},ee=function(e){return Z(e)&&J(e[Symbol.iterator])},te=function(e){return Z(e)&&J(e[Symbol.asyncIterator])},ne=function(e){return Z(e)&&Z(e.schema)},re=function(e){return Z(e)&&"done"in e&&"value"in e},ie=function(e){return Z(e)&&J(e.stat)&&Q(e.fd)},ae=function(e){return Z(e)&&ue(e.body)},oe=function(e){return Z(e)&&J(e.abort)&&J(e.getWriter)&&!(e instanceof M)},ue=function(e){return Z(e)&&J(e.cancel)&&J(e.getReader)&&!(e instanceof M)},ce=function(e){return Z(e)&&J(e.end)&&J(e.write)&&G(e.writable)&&!(e instanceof M)},se=function(e){return Z(e)&&J(e.read)&&J(e.pipe)&&G(e.readable)&&!(e instanceof M)},le=d.mark(Ae);function fe(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new he(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function he(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(he=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new he(e)}var de=w.ByteBuffer,pe="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:ArrayBuffer;function ve(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.byteLength,i=e.byteLength,a=new Uint8Array(e.buffer,e.byteOffset,i),o=new Uint8Array(t.buffer,t.byteOffset,Math.min(r,i));return a.set(o,n),e}function ye(e,t){for(var n,r,i,a=function(e){for(var t,n,r,i,a,o,u=e[0]?[e[0]]:[],c=0,s=0,l=e.length;++c<l;)if(a=u[s],o=e[c],!a||!o||a.buffer!==o.buffer||o.byteOffset<a.byteOffset)o&&(u[++s]=o);else{var f=a;t=f.byteOffset,r=f.byteLength;var h=o;n=h.byteOffset,i=h.byteLength,t+r<n||n+i<t?o&&(u[++s]=o):u[s]=new Uint8Array(a.buffer,t,n-t+i)}return u}(e),o=a.reduce((function(e,t){return e+t.byteLength}),0),u=0,c=-1,s=Math.min(t||1/0,o),l=a.length;++c<l;){if(s<=u+(r=(n=a[c]).subarray(0,Math.min(n.length,s-u))).length){r.length<n.length?a[c]=n.subarray(r.length):r.length===n.length&&c++,i?ve(i,r,u):i=r;break}ve(i||(i=new Uint8Array(s)),r,u),u+=r.length}return[i||new Uint8Array(0),a.slice(c),o-(i?i.byteLength:0)]}function be(e,t){var n=re(t)?t.value:t;return n instanceof e?e===Uint8Array?new e(n.buffer,n.byteOffset,n.byteLength):n:n?("string"===typeof n&&(n=C(n)),n instanceof ArrayBuffer||n instanceof pe?new e(n):n instanceof de?be(e,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new e(0):new e(n.buffer,n.byteOffset,n.byteLength/e.BYTES_PER_ELEMENT):e.from(n)):new e(0)}var me=function(e){return be(Int8Array,e)},ge=function(e){return be(Int16Array,e)},we=function(e){return be(Int32Array,e)},ke=function(e){return be(q,e)},_e=function(e){return be(Uint8Array,e)},Oe=function(e){return be(Uint16Array,e)},xe=function(e){return be(Uint32Array,e)},je=function(e){return be(K,e)},Se=function(e){return be(Float32Array,e)},Te=function(e){return be(Float64Array,e)},Ie=function(e){return be(Uint8ClampedArray,e)},Ee=function(e){return e.next(),e};function Ae(e,t){var n,r;return d.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return n=d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:case"end":return e.stop()}}),e)})),r="string"===typeof t||ArrayBuffer.isView(t)||t instanceof ArrayBuffer||t instanceof pe?n(t):ee(t)?t:n(t),i.delegateYield(Ee(d.mark((function t(n){var r;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=null;case 1:return t.t0=n,t.next=4,be(e,r);case 4:t.t1=t.sent,r=t.t0.next.call(t.t0,t.t1);case 6:if(!r.done){t.next=1;break}case 7:case"end":return t.stop()}}),t)}))(r[Symbol.iterator]())),"t0",3);case 3:case"end":return i.stop()}}),le)}var Be=function(e){return Ae(Int8Array,e)},Ce=function(e){return Ae(Int16Array,e)},De=function(e){return Ae(Int32Array,e)},Le=function(e){return Ae(Uint8Array,e)},Ne=function(e){return Ae(Uint16Array,e)},Fe=function(e){return Ae(Uint32Array,e)},Me=function(e){return Ae(Float32Array,e)},Pe=function(e){return Ae(Float64Array,e)},Ue=function(e){return Ae(Uint8ClampedArray,e)};function Re(e,t){return ze.apply(this,arguments)}function ze(){return(ze=m(d.mark((function e(t,n){var r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!X(n)){e.next=13;break}return e.t0=g,e.t1=fe,e.t2=Re,e.t3=t,e.next=7,y(n);case 7:return e.t4=e.sent,e.t5=(0,e.t2)(e.t3,e.t4),e.t6=(0,e.t1)(e.t5),e.t7=y,e.delegateYield((0,e.t0)(e.t6,e.t7),"t8",12);case 12:return e.abrupt("return",e.t8);case 13:return r=function(){var e=m(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(t);case 2:return e.next=4,e.sent;case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),i=function(){var e=m(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(g(fe(Ee(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=null;case 1:return e.t0=t,e.next=4,n&&n.value;case 4:e.t1=e.sent,n=e.t0.next.call(e.t0,e.t1);case 6:if(!n.done){e.next=1;break}case 7:case"end":return e.stop()}}),e)}))(t[Symbol.iterator]()))),y),"t0",1);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),a="string"===typeof n||ArrayBuffer.isView(n)||n instanceof ArrayBuffer||n instanceof pe?r(n):ee(n)?i(n):te(n)?n:r(n),e.delegateYield(g(fe(Ee(function(){var e=m(d.mark((function e(n){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=null;case 1:return e.t0=y,e.t1=n,e.next=5,be(t,r);case 5:return e.t2=e.sent,e.t3=e.t1.next.call(e.t1,e.t2),e.next=9,(0,e.t0)(e.t3);case 9:r=e.sent;case 10:if(!r.done){e.next=1;break}case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()(a[Symbol.asyncIterator]()))),y),"t9",17);case 17:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ve=function(e){return Re(Int8Array,e)},We=function(e){return Re(Int16Array,e)},Ye=function(e){return Re(Int32Array,e)},qe=function(e){return Re(Uint8Array,e)},He=function(e){return Re(Uint16Array,e)},$e=function(e){return Re(Uint32Array,e)},Ke=function(e){return Re(Float32Array,e)},Qe=function(e){return Re(Float64Array,e)},Ge=function(e){return Re(Uint8ClampedArray,e)};function Je(e,t,n){if(0!==e){n=n.slice(0,t+1);for(var r=-1;++r<=t;)n[r]+=e}return n}function Ze(e,t){var n=0,r=e.length;if(r!==t.length)return!1;if(r>0)do{if(e[n]!==t[n])return!1}while(++n<r);return!0}var Xe=d.mark(nt),et={fromIterable:function(e){return tt(nt(e))},fromAsyncIterable:function(e){return tt(function(e){return rt.apply(this,arguments)}(e))},fromDOMStream:function(e){return tt(function(e){return it.apply(this,arguments)}(e))},fromNodeStream:function(e){return tt(function(e){return st.apply(this,arguments)}(e))},toDOMStream:function(e,t){throw new Error('"toDOMStream" not available in this environment')},toNodeStream:function(e,t){throw new Error('"toNodeStream" not available in this environment')}},tt=function(e){return e.next(),e};function nt(e){var t,n,r,i,a,o,u,c,s,l,f,h;return d.wrap((function(d){for(;;)switch(d.prev=d.next){case 0:return c=function(){if("peek"===a)return ye(r,o)[0];var e=ye(r,o),t=Object(p.a)(e,3);return i=t[0],r=t[1],u=t[2],i},n=!1,r=[],u=0,d.next=6,null;case 6:s=d.sent,a=s.cmd,o=s.size,l=Le(e)[Symbol.iterator](),d.prev=10;case 11:if(f=isNaN(o-u)?l.next(void 0):l.next(o-u),t=f.done,i=f.value,!t&&i.byteLength>0&&(r.push(i),u+=i.byteLength),!(t||o<=u)){d.next=22;break}case 16:return d.next=18,c();case 18:h=d.sent,a=h.cmd,o=h.size;case 21:if(o<u){d.next=16;break}case 22:if(!t){d.next=11;break}case 23:d.next=28;break;case 25:d.prev=25,d.t0=d.catch(10),(n=!0)&&"function"===typeof l.throw&&l.throw(d.t0);case 28:return d.prev=28,!1===n&&"function"===typeof l.return&&l.return(),d.finish(28);case 31:case"end":return d.stop()}}),Xe,null,[[10,25,28,31]])}function rt(){return(rt=m(d.mark((function e(t){var n,r,i,a,o,u,c,s,l,f,h,v;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=function(){if("peek"===o)return ye(i,u)[0];var e=ye(i,u),t=Object(p.a)(e,3);return a=t[0],i=t[1],c=t[2],a},r=!1,i=[],c=0,e.next=6,null;case 6:l=e.sent,o=l.cmd,u=l.size,f=qe(t)[Symbol.asyncIterator](),e.prev=10;case 11:if(!isNaN(u-c)){e.next=17;break}return e.next=14,y(f.next(void 0));case 14:e.t0=e.sent,e.next=20;break;case 17:return e.next=19,y(f.next(u-c));case 19:e.t0=e.sent;case 20:if(h=e.t0,n=h.done,a=h.value,!n&&a.byteLength>0&&(i.push(a),c+=a.byteLength),!(n||u<=c)){e.next=31;break}case 25:return e.next=27,s();case 27:v=e.sent,o=v.cmd,u=v.size;case 30:if(u<c){e.next=25;break}case 31:if(!n){e.next=11;break}case 32:e.next=40;break;case 34:if(e.prev=34,e.t1=e.catch(10),e.t2=(r=!0)&&"function"===typeof f.throw,!e.t2){e.next=40;break}return e.next=40,y(f.throw(e.t1));case 40:if(e.prev=40,e.t3=!1===r&&"function"===typeof f.return,!e.t3){e.next=45;break}return e.next=45,y(f.return());case 45:return e.finish(40);case 46:case"end":return e.stop()}}),e,null,[[10,34,40,46]])})))).apply(this,arguments)}function it(){return(it=m(d.mark((function e(t){var n,r,i,a,o,u,c,s,l,f,h,v;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=function(){if("peek"===o)return ye(i,u)[0];var e=ye(i,u),t=Object(p.a)(e,3);return a=t[0],i=t[1],c=t[2],a},n=!1,r=!1,i=[],c=0,e.next=6,null;case 6:l=e.sent,o=l.cmd,u=l.size,f=new at(t),e.prev=10;case 11:if(!isNaN(u-c)){e.next=17;break}return e.next=14,y(f.read(void 0));case 14:e.t0=e.sent,e.next=20;break;case 17:return e.next=19,y(f.read(u-c));case 19:e.t0=e.sent;case 20:if(h=e.t0,n=h.done,a=h.value,!n&&a.byteLength>0&&(i.push(_e(a)),c+=a.byteLength),!(n||u<=c)){e.next=31;break}case 25:return e.next=27,s();case 27:v=e.sent,o=v.cmd,u=v.size;case 30:if(u<c){e.next=25;break}case 31:if(!n){e.next=11;break}case 32:e.next=40;break;case 34:if(e.prev=34,e.t1=e.catch(10),e.t2=r=!0,!e.t2){e.next=40;break}return e.next=40,y(f.cancel(e.t1));case 40:if(e.prev=40,!1!==r){e.next=46;break}return e.next=44,y(f.cancel());case 44:e.next=47;break;case 46:t.locked&&f.releaseLock();case 47:return e.finish(40);case 48:case"end":return e.stop()}}),e,null,[[10,34,40,48]])})))).apply(this,arguments)}var at=function(){function e(t){Object(f.a)(this,e),this.source=t,this.byobReader=null,this.defaultReader=null;try{this.supportsBYOB=!!(this.reader=this.getBYOBReader())}catch(n){this.supportsBYOB=!(this.reader=this.getDefaultReader())}}return Object(h.a)(e,[{key:"closed",get:function(){return this.reader?this.reader.closed.catch((function(){})):Promise.resolve()}},{key:"releaseLock",value:function(){this.reader&&this.reader.releaseLock(),this.reader=this.byobReader=this.defaultReader=null}},{key:"cancel",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.reader,r=this.source,e.t0=n,!e.t0){e.next=5;break}return e.next=5,n.cancel(t).catch((function(){}));case 5:r&&r.locked&&this.releaseLock();case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==t){e.next=2;break}return e.abrupt("return",{done:null==this.reader,value:new Uint8Array(0)});case 2:if(this.supportsBYOB&&"number"===typeof t){e.next=8;break}return e.next=5,this.getDefaultReader().read();case 5:e.t0=e.sent,e.next=11;break;case 8:return e.next=10,this.readFromBYOBReader(t);case 10:e.t0=e.sent;case 11:return!(n=e.t0).done&&(n.value=_e(n)),e.abrupt("return",n);case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getDefaultReader",value:function(){return this.byobReader&&this.releaseLock(),this.defaultReader||(this.defaultReader=this.source.getReader(),this.defaultReader.closed.catch((function(){}))),this.reader=this.defaultReader}},{key:"getBYOBReader",value:function(){return this.defaultReader&&this.releaseLock(),this.byobReader||(this.byobReader=this.source.getReader({mode:"byob"}),this.byobReader.closed.catch((function(){}))),this.reader=this.byobReader}},{key:"readFromBYOBReader",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ot(this.getBYOBReader(),new ArrayBuffer(t),0,t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}();function ot(e,t,n,r){return ut.apply(this,arguments)}function ut(){return(ut=Object(l.a)(d.mark((function e(t,n,r,i){var a,o,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r>=i)){e.next=2;break}return e.abrupt("return",{done:!1,value:new Uint8Array(n,0,i)});case 2:return e.next=4,t.read(new Uint8Array(n,r,i-r));case 4:if(a=e.sent,o=a.done,u=a.value,!((r+=u.byteLength)<i)||o){e.next=11;break}return e.next=10,ot(t,u.buffer,r,i);case 10:return e.abrupt("return",e.sent);case 11:return e.abrupt("return",{done:o,value:new Uint8Array(u.buffer,0,r)});case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ct=function(e,t){var n,r=function(e){return n([t,e])};return[t,r,new Promise((function(i){return(n=i)&&e.once(t,r)}))]};function st(){return(st=m(d.mark((function e(t){var n,r,i,a,o,u,c,f,h,v,b,m,g,w,k;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k=function(e,n){return h=f=null,new Promise(function(){var r=Object(l.a)(d.mark((function r(i,a){var o,u,c,l,f,h;return d.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:o=Object(s.a)(e);try{for(o.s();!(u=o.n()).done;)c=Object(p.a)(u.value,2),l=c[0],f=c[1],t.off(l,f)}catch(n){o.e(n)}finally{o.f()}try{(h=t.destroy)&&h.call(t,n),n=void 0}catch(d){n=d||n}finally{null!=n?a(n):i()}case 3:case"end":return r.stop()}}),r)})));return function(e,t){return r.apply(this,arguments)}}())},v=function(){if("peek"===o)return ye(f,u)[0];var e=ye(f,u),t=Object(p.a)(e,3);return h=t[0],f=t[1],c=t[2],h},n=[],r="error",i=!1,a=null,c=0,f=[],e.next=9,null;case 9:if(b=e.sent,o=b.cmd,u=b.size,!t.isTTY){e.next=16;break}return e.next=15,new Uint8Array(0);case 15:return e.abrupt("return",e.sent);case 16:e.prev=16,n[0]=ct(t,"end"),n[1]=ct(t,"error");case 19:return n[2]=ct(t,"readable"),e.next=22,y(Promise.race(n.map((function(e){return e[2]}))));case 22:if(m=e.sent,g=Object(p.a)(m,2),r=g[0],a=g[1],"error"!==r){e.next=28;break}return e.abrupt("break",37);case 28:if((i="end"===r)||(isFinite(u-c)?(h=_e(t.read(u-c))).byteLength<u-c&&(h=_e(t.read(void 0))):h=_e(t.read(void 0)),h.byteLength>0&&(f.push(h),c+=h.byteLength)),!(i||u<=c)){e.next=36;break}case 30:return e.next=32,v();case 32:w=e.sent,o=w.cmd,u=w.size;case 35:if(u<c){e.next=30;break}case 36:if(!i){e.next=19;break}case 37:return e.prev=37,e.next=40,y(k(n,"error"===r?a:null));case 40:return e.finish(37);case 41:case"end":return e.stop()}}),e,null,[[16,,37,41]])})))).apply(this,arguments)}var lt=n(10),ft=n(9);function ht(e,t,n){return(ht="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(ft.a)(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}var dt,pt,vt,yt,bt,mt,gt=function e(){Object(f.a)(this,e)};bt=dt||(dt={}),yt=bt.apache||(bt.apache={}),vt=yt.arrow||(yt.arrow={}),function(e){e[e.V1=0]="V1",e[e.V2=1]="V2",e[e.V3=2]="V3",e[e.V4=3]="V4"}((pt=vt.flatbuf||(vt.flatbuf={})).MetadataVersion||(pt.MetadataVersion={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.Sparse=0]="Sparse",e[e.Dense=1]="Dense"}(e.UnionMode||(e.UnionMode={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.HALF=0]="HALF",e[e.SINGLE=1]="SINGLE",e[e.DOUBLE=2]="DOUBLE"}(e.Precision||(e.Precision={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.DAY=0]="DAY",e[e.MILLISECOND=1]="MILLISECOND"}(e.DateUnit||(e.DateUnit={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.SECOND=0]="SECOND",e[e.MILLISECOND=1]="MILLISECOND",e[e.MICROSECOND=2]="MICROSECOND",e[e.NANOSECOND=3]="NANOSECOND"}(e.TimeUnit||(e.TimeUnit={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.YEAR_MONTH=0]="YEAR_MONTH",e[e.DAY_TIME=1]="DAY_TIME"}(e.IntervalUnit||(e.IntervalUnit={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.FloatingPoint=3]="FloatingPoint",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct_=13]="Struct_",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Duration=18]="Duration",e[e.LargeBinary=19]="LargeBinary",e[e.LargeUtf8=20]="LargeUtf8",e[e.LargeList=21]="LargeList"}(e.Type||(e.Type={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(e.Endianness||(e.Endianness={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsNull",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startNull",value:function(e){e.startObject(0)}},{key:"endNull",value:function(e){return e.endObject()}},{key:"createNull",value:function(t){return e.startNull(t),e.endNull(t)}}]),e}();e.Null=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsStruct_",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startStruct_",value:function(e){e.startObject(0)}},{key:"endStruct_",value:function(e){return e.endObject()}},{key:"createStruct_",value:function(t){return e.startStruct_(t),e.endStruct_(t)}}]),e}();e.Struct_=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsList",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startList",value:function(e){e.startObject(0)}},{key:"endList",value:function(e){return e.endObject()}},{key:"createList",value:function(t){return e.startList(t),e.endList(t)}}]),e}();e.List=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsLargeList",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startLargeList",value:function(e){e.startObject(0)}},{key:"endLargeList",value:function(e){return e.endObject()}},{key:"createLargeList",value:function(t){return e.startLargeList(t),e.endLargeList(t)}}]),e}();e.LargeList=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"listSize",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}}],[{key:"getRootAsFixedSizeList",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFixedSizeList",value:function(e){e.startObject(1)}},{key:"addListSize",value:function(e,t){e.addFieldInt32(0,t,0)}},{key:"endFixedSizeList",value:function(e){return e.endObject()}},{key:"createFixedSizeList",value:function(t,n){return e.startFixedSizeList(t),e.addListSize(t,n),e.endFixedSizeList(t)}}]),e}();e.FixedSizeList=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"keysSorted",value:function(){var e=this.bb.__offset(this.bb_pos,4);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}}],[{key:"getRootAsMap",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startMap",value:function(e){e.startObject(1)}},{key:"addKeysSorted",value:function(e,t){e.addFieldInt8(0,+t,0)}},{key:"endMap",value:function(e){return e.endObject()}},{key:"createMap",value:function(t,n){return e.startMap(t),e.addKeysSorted(t,n),e.endMap(t)}}]),e}();e.Map=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"mode",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.UnionMode.Sparse}},{key:"typeIds",value:function(e){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readInt32(this.bb.__vector(this.bb_pos+t)+4*e):0}},{key:"typeIdsLength",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}},{key:"typeIdsArray",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+e),this.bb.__vector_len(this.bb_pos+e)):null}}],[{key:"getRootAsUnion",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startUnion",value:function(e){e.startObject(2)}},{key:"addMode",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.UnionMode.Sparse)}},{key:"addTypeIds",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"createTypeIdsVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addInt32(t[n]);return e.endVector()}},{key:"startTypeIdsVector",value:function(e,t){e.startVector(4,t,4)}},{key:"endUnion",value:function(e){return e.endObject()}},{key:"createUnion",value:function(e,n,r){return t.startUnion(e),t.addMode(e,n),t.addTypeIds(e,r),t.endUnion(e)}}]),t}();t.Union=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"bitWidth",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}},{key:"isSigned",value:function(){var e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}}],[{key:"getRootAsInt",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startInt",value:function(e){e.startObject(2)}},{key:"addBitWidth",value:function(e,t){e.addFieldInt32(0,t,0)}},{key:"addIsSigned",value:function(e,t){e.addFieldInt8(1,+t,0)}},{key:"endInt",value:function(e){return e.endObject()}},{key:"createInt",value:function(t,n,r){return e.startInt(t),e.addBitWidth(t,n),e.addIsSigned(t,r),e.endInt(t)}}]),e}();e.Int=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"precision",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.Precision.HALF}}],[{key:"getRootAsFloatingPoint",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFloatingPoint",value:function(e){e.startObject(1)}},{key:"addPrecision",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.Precision.HALF)}},{key:"endFloatingPoint",value:function(e){return e.endObject()}},{key:"createFloatingPoint",value:function(e,n){return t.startFloatingPoint(e),t.addPrecision(e,n),t.endFloatingPoint(e)}}]),t}();t.FloatingPoint=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsUtf8",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startUtf8",value:function(e){e.startObject(0)}},{key:"endUtf8",value:function(e){return e.endObject()}},{key:"createUtf8",value:function(t){return e.startUtf8(t),e.endUtf8(t)}}]),e}();e.Utf8=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsBinary",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startBinary",value:function(e){e.startObject(0)}},{key:"endBinary",value:function(e){return e.endObject()}},{key:"createBinary",value:function(t){return e.startBinary(t),e.endBinary(t)}}]),e}();e.Binary=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsLargeUtf8",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startLargeUtf8",value:function(e){e.startObject(0)}},{key:"endLargeUtf8",value:function(e){return e.endObject()}},{key:"createLargeUtf8",value:function(t){return e.startLargeUtf8(t),e.endLargeUtf8(t)}}]),e}();e.LargeUtf8=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsLargeBinary",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startLargeBinary",value:function(e){e.startObject(0)}},{key:"endLargeBinary",value:function(e){return e.endObject()}},{key:"createLargeBinary",value:function(t){return e.startLargeBinary(t),e.endLargeBinary(t)}}]),e}();e.LargeBinary=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"byteWidth",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}}],[{key:"getRootAsFixedSizeBinary",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startFixedSizeBinary",value:function(e){e.startObject(1)}},{key:"addByteWidth",value:function(e,t){e.addFieldInt32(0,t,0)}},{key:"endFixedSizeBinary",value:function(e){return e.endObject()}},{key:"createFixedSizeBinary",value:function(t,n){return e.startFixedSizeBinary(t),e.addByteWidth(t,n),e.endFixedSizeBinary(t)}}]),e}();e.FixedSizeBinary=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}}],[{key:"getRootAsBool",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startBool",value:function(e){e.startObject(0)}},{key:"endBool",value:function(e){return e.endObject()}},{key:"createBool",value:function(t){return e.startBool(t),e.endBool(t)}}]),e}();e.Bool=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"precision",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}},{key:"scale",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}}],[{key:"getRootAsDecimal",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startDecimal",value:function(e){e.startObject(2)}},{key:"addPrecision",value:function(e,t){e.addFieldInt32(0,t,0)}},{key:"addScale",value:function(e,t){e.addFieldInt32(1,t,0)}},{key:"endDecimal",value:function(e){return e.endObject()}},{key:"createDecimal",value:function(t,n,r){return e.startDecimal(t),e.addPrecision(t,n),e.addScale(t,r),e.endDecimal(t)}}]),e}();e.Decimal=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"unit",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.DateUnit.MILLISECOND}}],[{key:"getRootAsDate",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDate",value:function(e){e.startObject(1)}},{key:"addUnit",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.DateUnit.MILLISECOND)}},{key:"endDate",value:function(e){return e.endObject()}},{key:"createDate",value:function(e,n){return t.startDate(e),t.addUnit(e,n),t.endDate(e)}}]),t}();t.Date=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"unit",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}},{key:"bitWidth",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}}],[{key:"getRootAsTime",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startTime",value:function(e){e.startObject(2)}},{key:"addUnit",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"addBitWidth",value:function(e,t){e.addFieldInt32(1,t,32)}},{key:"endTime",value:function(e){return e.endObject()}},{key:"createTime",value:function(e,n,r){return t.startTime(e),t.addUnit(e,n),t.addBitWidth(e,r),t.endTime(e)}}]),t}();t.Time=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"unit",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.TimeUnit.SECOND}},{key:"timezone",value:function(e){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}}],[{key:"getRootAsTimestamp",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startTimestamp",value:function(e){e.startObject(2)}},{key:"addUnit",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.TimeUnit.SECOND)}},{key:"addTimezone",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"endTimestamp",value:function(e){return e.endObject()}},{key:"createTimestamp",value:function(e,n,r){return t.startTimestamp(e),t.addUnit(e,n),t.addTimezone(e,r),t.endTimestamp(e)}}]),t}();t.Timestamp=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"unit",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH}}],[{key:"getRootAsInterval",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startInterval",value:function(e){e.startObject(1)}},{key:"addUnit",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.IntervalUnit.YEAR_MONTH)}},{key:"endInterval",value:function(e){return e.endObject()}},{key:"createInterval",value:function(e,n){return t.startInterval(e),t.addUnit(e,n),t.endInterval(e)}}]),t}();t.Interval=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"unit",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.TimeUnit.MILLISECOND}}],[{key:"getRootAsDuration",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDuration",value:function(e){e.startObject(1)}},{key:"addUnit",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.TimeUnit.MILLISECOND)}},{key:"endDuration",value:function(e){return e.endObject()}},{key:"createDuration",value:function(e,n){return t.startDuration(e),t.addUnit(e,n),t.endDuration(e)}}]),t}();t.Duration=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"key",value:function(e){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}},{key:"value",value:function(e){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,e):null}}],[{key:"getRootAsKeyValue",value:function(t,n){return(n||new e).__init(t.readInt32(t.position())+t.position(),t)}},{key:"startKeyValue",value:function(e){e.startObject(2)}},{key:"addKey",value:function(e,t){e.addFieldOffset(0,t,0)}},{key:"addValue",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"endKeyValue",value:function(e){return e.endObject()}},{key:"createKeyValue",value:function(t,n,r){return e.startKeyValue(t),e.addKey(t,n),e.addValue(t,r),e.endKeyValue(t)}}]),e}();e.KeyValue=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"id",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}},{key:"indexType",value:function(t){var n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.apache.arrow.flatbuf.Int).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isOrdered",value:function(){var e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}}],[{key:"getRootAsDictionaryEncoding",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDictionaryEncoding",value:function(e){e.startObject(3)}},{key:"addId",value:function(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}},{key:"addIndexType",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"addIsOrdered",value:function(e,t){e.addFieldInt8(2,+t,0)}},{key:"endDictionaryEncoding",value:function(e){return e.endObject()}},{key:"createDictionaryEncoding",value:function(e,n,r,i){return t.startDictionaryEncoding(e),t.addId(e,n),t.addIndexType(e,r),t.addIsOrdered(e,i),t.endDictionaryEncoding(e)}}]),t}();t.DictionaryEncoding=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"name",value:function(e){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,e):null}},{key:"nullable",value:function(){var e=this.bb.__offset(this.bb_pos,6);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}},{key:"typeType",value:function(){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb_pos+t):e.apache.arrow.flatbuf.Type.NONE}},{key:"type",value:function(e){var t=this.bb.__offset(this.bb_pos,10);return t?this.bb.__union(e,this.bb_pos+t):null}},{key:"dictionary",value:function(t){var n=this.bb.__offset(this.bb_pos,12);return n?(t||new e.apache.arrow.flatbuf.DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"children",value:function(t,n){var r=this.bb.__offset(this.bb_pos,14);return r?(n||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}},{key:"childrenLength",value:function(){var e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}},{key:"customMetadata",value:function(t,n){var r=this.bb.__offset(this.bb_pos,16);return r?(n||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}},{key:"customMetadataLength",value:function(){var e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}}],[{key:"getRootAsField",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startField",value:function(e){e.startObject(7)}},{key:"addName",value:function(e,t){e.addFieldOffset(0,t,0)}},{key:"addNullable",value:function(e,t){e.addFieldInt8(1,+t,0)}},{key:"addTypeType",value:function(t,n){t.addFieldInt8(2,n,e.apache.arrow.flatbuf.Type.NONE)}},{key:"addType",value:function(e,t){e.addFieldOffset(3,t,0)}},{key:"addDictionary",value:function(e,t){e.addFieldOffset(4,t,0)}},{key:"addChildren",value:function(e,t){e.addFieldOffset(5,t,0)}},{key:"createChildrenVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}},{key:"startChildrenVector",value:function(e,t){e.startVector(4,t,4)}},{key:"addCustomMetadata",value:function(e,t){e.addFieldOffset(6,t,0)}},{key:"createCustomMetadataVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}},{key:"startCustomMetadataVector",value:function(e,t){e.startVector(4,t,4)}},{key:"endField",value:function(e){return e.endObject()}},{key:"createField",value:function(e,n,r,i,a,o,u,c){return t.startField(e),t.addName(e,n),t.addNullable(e,r),t.addTypeType(e,i),t.addType(e,a),t.addDictionary(e,o),t.addChildren(e,u),t.addCustomMetadata(e,c),t.endField(e)}}]),t}();t.Field=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createBuffer",value:function(e,t,n){return e.prep(8,16),e.writeInt64(n),e.writeInt64(t),e.offset()}}]),e}();e.Buffer=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"endianness",value:function(){var t=this.bb.__offset(this.bb_pos,4);return t?this.bb.readInt16(this.bb_pos+t):e.apache.arrow.flatbuf.Endianness.Little}},{key:"fields",value:function(t,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.apache.arrow.flatbuf.Field).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}},{key:"fieldsLength",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}},{key:"customMetadata",value:function(t,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new e.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+4*t),this.bb):null}},{key:"customMetadataLength",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}}],[{key:"getRootAsSchema",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startSchema",value:function(e){e.startObject(3)}},{key:"addEndianness",value:function(t,n){t.addFieldInt16(0,n,e.apache.arrow.flatbuf.Endianness.Little)}},{key:"addFields",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"createFieldsVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}},{key:"startFieldsVector",value:function(e,t){e.startVector(4,t,4)}},{key:"addCustomMetadata",value:function(e,t){e.addFieldOffset(2,t,0)}},{key:"createCustomMetadataVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}},{key:"startCustomMetadataVector",value:function(e,t){e.startVector(4,t,4)}},{key:"endSchema",value:function(e){return e.endObject()}},{key:"finishSchemaBuffer",value:function(e,t){e.finish(t)}},{key:"createSchema",value:function(e,n,r,i){return t.startSchema(e),t.addEndianness(e,n),t.addFields(e,r),t.addCustomMetadata(e,i),t.endSchema(e)}}]),t}();t.Schema=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(dt||(dt={})),function(e){!function(e){!function(e){!function(e){e.Schema=dt.apache.arrow.flatbuf.Schema}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={})),function(e){!function(e){!function(e){!function(e){!function(e){e[e.NONE=0]="NONE",e[e.Schema=1]="Schema",e[e.DictionaryBatch=2]="DictionaryBatch",e[e.RecordBatch=3]="RecordBatch",e[e.Tensor=4]="Tensor",e[e.SparseTensor=5]="SparseTensor"}(e.MessageHeader||(e.MessageHeader={}))}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"length",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"nullCount",value:function(){return this.bb.readInt64(this.bb_pos+8)}}],[{key:"createFieldNode",value:function(e,t,n){return e.prep(8,16),e.writeInt64(n),e.writeInt64(t),e.offset()}}]),e}();e.FieldNode=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"length",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}},{key:"nodes",value:function(t,n){var r=this.bb.__offset(this.bb_pos,6);return r?(n||new e.apache.arrow.flatbuf.FieldNode).__init(this.bb.__vector(this.bb_pos+r)+16*t,this.bb):null}},{key:"nodesLength",value:function(){var e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}},{key:"buffers",value:function(e,t){var n=this.bb.__offset(this.bb_pos,8);return n?(t||new dt.apache.arrow.flatbuf.Buffer).__init(this.bb.__vector(this.bb_pos+n)+16*e,this.bb):null}},{key:"buffersLength",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}}],[{key:"getRootAsRecordBatch",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startRecordBatch",value:function(e){e.startObject(3)}},{key:"addLength",value:function(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}},{key:"addNodes",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"startNodesVector",value:function(e,t){e.startVector(16,t,8)}},{key:"addBuffers",value:function(e,t){e.addFieldOffset(2,t,0)}},{key:"startBuffersVector",value:function(e,t){e.startVector(16,t,8)}},{key:"endRecordBatch",value:function(e){return e.endObject()}},{key:"createRecordBatch",value:function(e,n,r,i){return t.startRecordBatch(e),t.addLength(e,n),t.addNodes(e,r),t.addBuffers(e,i),t.endRecordBatch(e)}}]),t}();t.RecordBatch=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"id",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}},{key:"data",value:function(t){var n=this.bb.__offset(this.bb_pos,6);return n?(t||new e.apache.arrow.flatbuf.RecordBatch).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}},{key:"isDelta",value:function(){var e=this.bb.__offset(this.bb_pos,8);return!!e&&!!this.bb.readInt8(this.bb_pos+e)}}],[{key:"getRootAsDictionaryBatch",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startDictionaryBatch",value:function(e){e.startObject(3)}},{key:"addId",value:function(e,t){e.addFieldInt64(0,t,e.createLong(0,0))}},{key:"addData",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"addIsDelta",value:function(e,t){e.addFieldInt8(2,+t,0)}},{key:"endDictionaryBatch",value:function(e){return e.endObject()}},{key:"createDictionaryBatch",value:function(e,n,r,i){return t.startDictionaryBatch(e),t.addId(e,n),t.addData(e,r),t.addIsDelta(e,i),t.endDictionaryBatch(e)}}]),t}();t.DictionaryBatch=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={})),function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"version",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):dt.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"headerType",value:function(){var t=this.bb.__offset(this.bb_pos,6);return t?this.bb.readUint8(this.bb_pos+t):e.apache.arrow.flatbuf.MessageHeader.NONE}},{key:"header",value:function(e){var t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__union(e,this.bb_pos+t):null}},{key:"bodyLength",value:function(){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}},{key:"customMetadata",value:function(e,t){var n=this.bb.__offset(this.bb_pos,12);return n?(t||new dt.apache.arrow.flatbuf.KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+n)+4*e),this.bb):null}},{key:"customMetadataLength",value:function(){var e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}}],[{key:"getRootAsMessage",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startMessage",value:function(e){e.startObject(5)}},{key:"addVersion",value:function(e,t){e.addFieldInt16(0,t,dt.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addHeaderType",value:function(t,n){t.addFieldInt8(1,n,e.apache.arrow.flatbuf.MessageHeader.NONE)}},{key:"addHeader",value:function(e,t){e.addFieldOffset(2,t,0)}},{key:"addBodyLength",value:function(e,t){e.addFieldInt64(3,t,e.createLong(0,0))}},{key:"addCustomMetadata",value:function(e,t){e.addFieldOffset(4,t,0)}},{key:"createCustomMetadataVector",value:function(e,t){e.startVector(4,t.length,4);for(var n=t.length-1;n>=0;n--)e.addOffset(t[n]);return e.endVector()}},{key:"startCustomMetadataVector",value:function(e,t){e.startVector(4,t,4)}},{key:"endMessage",value:function(e){return e.endObject()}},{key:"finishMessageBuffer",value:function(e,t){e.finish(t)}},{key:"createMessage",value:function(e,n,r,i,a,o){return t.startMessage(e),t.addVersion(e,n),t.addHeaderType(e,r),t.addHeader(e,i),t.addBodyLength(e,a),t.addCustomMetadata(e,o),t.endMessage(e)}}]),t}();t.Message=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(mt||(mt={}));dt.apache.arrow.flatbuf.Type;var wt,kt,_t=dt.apache.arrow.flatbuf.DateUnit,Ot=dt.apache.arrow.flatbuf.TimeUnit,xt=dt.apache.arrow.flatbuf.Precision,jt=dt.apache.arrow.flatbuf.UnionMode,St=dt.apache.arrow.flatbuf.IntervalUnit,Tt=mt.apache.arrow.flatbuf.MessageHeader,It=dt.apache.arrow.flatbuf.MetadataVersion;!function(e){e[e.NONE=0]="NONE",e[e.Null=1]="Null",e[e.Int=2]="Int",e[e.Float=3]="Float",e[e.Binary=4]="Binary",e[e.Utf8=5]="Utf8",e[e.Bool=6]="Bool",e[e.Decimal=7]="Decimal",e[e.Date=8]="Date",e[e.Time=9]="Time",e[e.Timestamp=10]="Timestamp",e[e.Interval=11]="Interval",e[e.List=12]="List",e[e.Struct=13]="Struct",e[e.Union=14]="Union",e[e.FixedSizeBinary=15]="FixedSizeBinary",e[e.FixedSizeList=16]="FixedSizeList",e[e.Map=17]="Map",e[e.Dictionary=-1]="Dictionary",e[e.Int8=-2]="Int8",e[e.Int16=-3]="Int16",e[e.Int32=-4]="Int32",e[e.Int64=-5]="Int64",e[e.Uint8=-6]="Uint8",e[e.Uint16=-7]="Uint16",e[e.Uint32=-8]="Uint32",e[e.Uint64=-9]="Uint64",e[e.Float16=-10]="Float16",e[e.Float32=-11]="Float32",e[e.Float64=-12]="Float64",e[e.DateDay=-13]="DateDay",e[e.DateMillisecond=-14]="DateMillisecond",e[e.TimestampSecond=-15]="TimestampSecond",e[e.TimestampMillisecond=-16]="TimestampMillisecond",e[e.TimestampMicrosecond=-17]="TimestampMicrosecond",e[e.TimestampNanosecond=-18]="TimestampNanosecond",e[e.TimeSecond=-19]="TimeSecond",e[e.TimeMillisecond=-20]="TimeMillisecond",e[e.TimeMicrosecond=-21]="TimeMicrosecond",e[e.TimeNanosecond=-22]="TimeNanosecond",e[e.DenseUnion=-23]="DenseUnion",e[e.SparseUnion=-24]="SparseUnion",e[e.IntervalDayTime=-25]="IntervalDayTime",e[e.IntervalYearMonth=-26]="IntervalYearMonth"}(wt||(wt={})),function(e){e[e.OFFSET=0]="OFFSET",e[e.DATA=1]="DATA",e[e.VALIDITY=2]="VALIDITY",e[e.TYPE=3]="TYPE"}(kt||(kt={}));var Et=d.mark(Nt);function At(e,t,n,r){return 0!==(n&1<<r)}function Bt(e,t,n,r){return(n&1<<r)>>r}function Ct(e,t,n){return n?!!(e[t>>3]|=1<<t%8)||!0:!(e[t>>3]&=~(1<<t%8))&&!1}function Dt(e,t,n){var r=n.byteLength+7&-8;if(e>0||n.byteLength<r){var i=new Uint8Array(r);return i.set(e%8===0?n.subarray(e>>3):Lt(Nt(n,e,t,null,At)).subarray(0,r)),i}return n}function Lt(e){var t,n=[],r=0,i=0,a=0,o=Object(s.a)(e);try{for(o.s();!(t=o.n()).done;){t.value&&(a|=1<<i),8===++i&&(n[r++]=a,a=i=0)}}catch(c){o.e(c)}finally{o.f()}(0===r||i>0)&&(n[r++]=a);var u=new Uint8Array(n.length+7&-8);return u.set(n),u}function Nt(e,t,n,r,i){var a,o,u,c,s;return d.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:a=t%8,o=t>>3,u=0,c=n;case 3:if(!(c>0)){l.next=11;break}s=e[o++];case 5:return l.next=7,i(r,u++,s,a);case 7:if(--c>0&&++a<8){l.next=5;break}case 8:a=0,l.next=3;break;case 11:case"end":return l.stop()}}),Et)}function Ft(e,t,n){if(n-t<=0)return 0;if(n-t<8){var r,i=0,a=Object(s.a)(Nt(e,t,n-t,e,Bt));try{for(a.s();!(r=a.n()).done;){i+=r.value}}catch(c){a.e(c)}finally{a.f()}return i}var o=n>>3<<3,u=t+(t%8===0?0:8-t%8);return Ft(e,t,u)+Ft(e,o,n)+Mt(e,u>>3,o-u>>3)}function Mt(e,t,n){for(var r=0,i=0|t,a=new DataView(e.buffer,e.byteOffset,e.byteLength),o=void 0===n?e.byteLength:i+n;o-i>=4;)r+=Pt(a.getUint32(i)),i+=4;for(;o-i>=2;)r+=Pt(a.getUint16(i)),i+=2;for(;o-i>=1;)r+=Pt(a.getUint8(i)),i+=1;return r}function Pt(e){var t=0|e;return 16843009*((t=(858993459&(t-=t>>>1&1431655765))+(t>>>2&858993459))+(t>>>4)&252645135)>>>24}var Ut=n(6),Rt=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"visitMany",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return e.map((function(e,n){return t.visit.apply(t,[e].concat(Object(Ut.a)(r.map((function(e){return e[n]})))))}))}},{key:"visit",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.getVisitFn(t[0],!1).apply(this,t)}},{key:"getVisitFn",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return zt(this,e,t)}},{key:"visitNull",value:function(e){return null}},{key:"visitBool",value:function(e){return null}},{key:"visitInt",value:function(e){return null}},{key:"visitFloat",value:function(e){return null}},{key:"visitUtf8",value:function(e){return null}},{key:"visitBinary",value:function(e){return null}},{key:"visitFixedSizeBinary",value:function(e){return null}},{key:"visitDate",value:function(e){return null}},{key:"visitTimestamp",value:function(e){return null}},{key:"visitTime",value:function(e){return null}},{key:"visitDecimal",value:function(e){return null}},{key:"visitList",value:function(e){return null}},{key:"visitStruct",value:function(e){return null}},{key:"visitUnion",value:function(e){return null}},{key:"visitDictionary",value:function(e){return null}},{key:"visitInterval",value:function(e){return null}},{key:"visitFixedSizeList",value:function(e){return null}},{key:"visitMap",value:function(e){return null}}]),e}();function zt(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=null,i=wt.NONE;switch(t instanceof Mn||t instanceof gt?i=Vt(t.type):t instanceof tn?i=Vt(t):"number"!==typeof(i=t)&&(i=wt[t]),i){case wt.Null:r=e.visitNull;break;case wt.Bool:r=e.visitBool;break;case wt.Int:r=e.visitInt;break;case wt.Int8:r=e.visitInt8||e.visitInt;break;case wt.Int16:r=e.visitInt16||e.visitInt;break;case wt.Int32:r=e.visitInt32||e.visitInt;break;case wt.Int64:r=e.visitInt64||e.visitInt;break;case wt.Uint8:r=e.visitUint8||e.visitInt;break;case wt.Uint16:r=e.visitUint16||e.visitInt;break;case wt.Uint32:r=e.visitUint32||e.visitInt;break;case wt.Uint64:r=e.visitUint64||e.visitInt;break;case wt.Float:r=e.visitFloat;break;case wt.Float16:r=e.visitFloat16||e.visitFloat;break;case wt.Float32:r=e.visitFloat32||e.visitFloat;break;case wt.Float64:r=e.visitFloat64||e.visitFloat;break;case wt.Utf8:r=e.visitUtf8;break;case wt.Binary:r=e.visitBinary;break;case wt.FixedSizeBinary:r=e.visitFixedSizeBinary;break;case wt.Date:r=e.visitDate;break;case wt.DateDay:r=e.visitDateDay||e.visitDate;break;case wt.DateMillisecond:r=e.visitDateMillisecond||e.visitDate;break;case wt.Timestamp:r=e.visitTimestamp;break;case wt.TimestampSecond:r=e.visitTimestampSecond||e.visitTimestamp;break;case wt.TimestampMillisecond:r=e.visitTimestampMillisecond||e.visitTimestamp;break;case wt.TimestampMicrosecond:r=e.visitTimestampMicrosecond||e.visitTimestamp;break;case wt.TimestampNanosecond:r=e.visitTimestampNanosecond||e.visitTimestamp;break;case wt.Time:r=e.visitTime;break;case wt.TimeSecond:r=e.visitTimeSecond||e.visitTime;break;case wt.TimeMillisecond:r=e.visitTimeMillisecond||e.visitTime;break;case wt.TimeMicrosecond:r=e.visitTimeMicrosecond||e.visitTime;break;case wt.TimeNanosecond:r=e.visitTimeNanosecond||e.visitTime;break;case wt.Decimal:r=e.visitDecimal;break;case wt.List:r=e.visitList;break;case wt.Struct:r=e.visitStruct;break;case wt.Union:r=e.visitUnion;break;case wt.DenseUnion:r=e.visitDenseUnion||e.visitUnion;break;case wt.SparseUnion:r=e.visitSparseUnion||e.visitUnion;break;case wt.Dictionary:r=e.visitDictionary;break;case wt.Interval:r=e.visitInterval;break;case wt.IntervalDayTime:r=e.visitIntervalDayTime||e.visitInterval;break;case wt.IntervalYearMonth:r=e.visitIntervalYearMonth||e.visitInterval;break;case wt.FixedSizeList:r=e.visitFixedSizeList;break;case wt.Map:r=e.visitMap}if("function"===typeof r)return r;if(!n)return function(){return null};throw new Error("Unrecognized type '".concat(wt[i],"'"))}function Vt(e){switch(e.typeId){case wt.Null:return wt.Null;case wt.Int:var t=e.bitWidth,n=e.isSigned;switch(t){case 8:return n?wt.Int8:wt.Uint8;case 16:return n?wt.Int16:wt.Uint16;case 32:return n?wt.Int32:wt.Uint32;case 64:return n?wt.Int64:wt.Uint64}return wt.Int;case wt.Float:switch(e.precision){case xt.HALF:return wt.Float16;case xt.SINGLE:return wt.Float32;case xt.DOUBLE:return wt.Float64}return wt.Float;case wt.Binary:return wt.Binary;case wt.Utf8:return wt.Utf8;case wt.Bool:return wt.Bool;case wt.Decimal:return wt.Decimal;case wt.Time:switch(e.unit){case Ot.SECOND:return wt.TimeSecond;case Ot.MILLISECOND:return wt.TimeMillisecond;case Ot.MICROSECOND:return wt.TimeMicrosecond;case Ot.NANOSECOND:return wt.TimeNanosecond}return wt.Time;case wt.Timestamp:switch(e.unit){case Ot.SECOND:return wt.TimestampSecond;case Ot.MILLISECOND:return wt.TimestampMillisecond;case Ot.MICROSECOND:return wt.TimestampMicrosecond;case Ot.NANOSECOND:return wt.TimestampNanosecond}return wt.Timestamp;case wt.Date:switch(e.unit){case _t.DAY:return wt.DateDay;case _t.MILLISECOND:return wt.DateMillisecond}return wt.Date;case wt.Interval:switch(e.unit){case St.DAY_TIME:return wt.IntervalDayTime;case St.YEAR_MONTH:return wt.IntervalYearMonth}return wt.Interval;case wt.Map:return wt.Map;case wt.List:return wt.List;case wt.Struct:return wt.Struct;case wt.Union:switch(e.mode){case jt.Dense:return wt.DenseUnion;case jt.Sparse:return wt.SparseUnion}return wt.Union;case wt.FixedSizeBinary:return wt.FixedSizeBinary;case wt.FixedSizeList:return wt.FixedSizeList;case wt.Dictionary:return wt.Dictionary}throw new Error("Unrecognized type '".concat(wt[e.typeId],"'"))}Rt.prototype.visitInt8=null,Rt.prototype.visitInt16=null,Rt.prototype.visitInt32=null,Rt.prototype.visitInt64=null,Rt.prototype.visitUint8=null,Rt.prototype.visitUint16=null,Rt.prototype.visitUint32=null,Rt.prototype.visitUint64=null,Rt.prototype.visitFloat16=null,Rt.prototype.visitFloat32=null,Rt.prototype.visitFloat64=null,Rt.prototype.visitDateDay=null,Rt.prototype.visitDateMillisecond=null,Rt.prototype.visitTimestampSecond=null,Rt.prototype.visitTimestampMillisecond=null,Rt.prototype.visitTimestampMicrosecond=null,Rt.prototype.visitTimestampNanosecond=null,Rt.prototype.visitTimeSecond=null,Rt.prototype.visitTimeMillisecond=null,Rt.prototype.visitTimeMicrosecond=null,Rt.prototype.visitTimeNanosecond=null,Rt.prototype.visitDenseUnion=null,Rt.prototype.visitSparseUnion=null,Rt.prototype.visitIntervalDayTime=null,Rt.prototype.visitIntervalYearMonth=null;var Wt=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"compareSchemas",value:function(e,t){return e===t||t instanceof e.constructor&&en.compareFields(e.fields,t.fields)}},{key:"compareFields",value:function(e,t){return e===t||Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((function(e,n){return en.compareField(e,t[n])}))}},{key:"compareField",value:function(e,t){return e===t||t instanceof e.constructor&&e.name===t.name&&e.nullable===t.nullable&&en.visit(e.type,t.type)}}]),n}(Rt);function Yt(e,t){return t instanceof e.constructor}function qt(e,t){return e===t||Yt(e,t)}function Ht(e,t){return e===t||Yt(e,t)&&e.bitWidth===t.bitWidth&&e.isSigned===t.isSigned}function $t(e,t){return e===t||Yt(e,t)&&e.precision===t.precision}function Kt(e,t){return e===t||Yt(e,t)&&e.unit===t.unit}function Qt(e,t){return e===t||Yt(e,t)&&e.unit===t.unit&&e.timezone===t.timezone}function Gt(e,t){return e===t||Yt(e,t)&&e.unit===t.unit&&e.bitWidth===t.bitWidth}function Jt(e,t){return e===t||Yt(e,t)&&e.mode===t.mode&&e.typeIds.every((function(e,n){return e===t.typeIds[n]}))&&en.compareFields(e.children,t.children)}function Zt(e,t){return e===t||Yt(e,t)&&e.unit===t.unit}Wt.prototype.visitNull=qt,Wt.prototype.visitBool=qt,Wt.prototype.visitInt=Ht,Wt.prototype.visitInt8=Ht,Wt.prototype.visitInt16=Ht,Wt.prototype.visitInt32=Ht,Wt.prototype.visitInt64=Ht,Wt.prototype.visitUint8=Ht,Wt.prototype.visitUint16=Ht,Wt.prototype.visitUint32=Ht,Wt.prototype.visitUint64=Ht,Wt.prototype.visitFloat=$t,Wt.prototype.visitFloat16=$t,Wt.prototype.visitFloat32=$t,Wt.prototype.visitFloat64=$t,Wt.prototype.visitUtf8=qt,Wt.prototype.visitBinary=qt,Wt.prototype.visitFixedSizeBinary=function(e,t){return e===t||Yt(e,t)&&e.byteWidth===t.byteWidth},Wt.prototype.visitDate=Kt,Wt.prototype.visitDateDay=Kt,Wt.prototype.visitDateMillisecond=Kt,Wt.prototype.visitTimestamp=Qt,Wt.prototype.visitTimestampSecond=Qt,Wt.prototype.visitTimestampMillisecond=Qt,Wt.prototype.visitTimestampMicrosecond=Qt,Wt.prototype.visitTimestampNanosecond=Qt,Wt.prototype.visitTime=Gt,Wt.prototype.visitTimeSecond=Gt,Wt.prototype.visitTimeMillisecond=Gt,Wt.prototype.visitTimeMicrosecond=Gt,Wt.prototype.visitTimeNanosecond=Gt,Wt.prototype.visitDecimal=qt,Wt.prototype.visitList=function(e,t){return e===t||Yt(e,t)&&e.children.length===t.children.length&&en.compareFields(e.children,t.children)},Wt.prototype.visitStruct=function(e,t){return e===t||Yt(e,t)&&e.children.length===t.children.length&&en.compareFields(e.children,t.children)},Wt.prototype.visitUnion=Jt,Wt.prototype.visitDenseUnion=Jt,Wt.prototype.visitSparseUnion=Jt,Wt.prototype.visitDictionary=function(e,t){return e===t||Yt(e,t)&&e.id===t.id&&e.isOrdered===t.isOrdered&&en.visit(e.indices,t.indices)&&en.visit(e.dictionary,t.dictionary)},Wt.prototype.visitInterval=Zt,Wt.prototype.visitIntervalDayTime=Zt,Wt.prototype.visitIntervalYearMonth=Zt,Wt.prototype.visitFixedSizeList=function(e,t){return e===t||Yt(e,t)&&e.listSize===t.listSize&&e.children.length===t.children.length&&en.compareFields(e.children,t.children)},Wt.prototype.visitMap=function(e,t){return e===t||Yt(e,t)&&e.keysSorted===t.keysSorted&&e.children.length===t.children.length&&en.compareFields(e.children,t.children)};var Xt,en=new Wt,tn=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"typeId",get:function(){return wt.NONE}},{key:"compareTo",value:function(e){return en.visit(this,e)}}],[{key:"isNull",value:function(e){return e&&e.typeId===wt.Null}},{key:"isInt",value:function(e){return e&&e.typeId===wt.Int}},{key:"isFloat",value:function(e){return e&&e.typeId===wt.Float}},{key:"isBinary",value:function(e){return e&&e.typeId===wt.Binary}},{key:"isUtf8",value:function(e){return e&&e.typeId===wt.Utf8}},{key:"isBool",value:function(e){return e&&e.typeId===wt.Bool}},{key:"isDecimal",value:function(e){return e&&e.typeId===wt.Decimal}},{key:"isDate",value:function(e){return e&&e.typeId===wt.Date}},{key:"isTime",value:function(e){return e&&e.typeId===wt.Time}},{key:"isTimestamp",value:function(e){return e&&e.typeId===wt.Timestamp}},{key:"isInterval",value:function(e){return e&&e.typeId===wt.Interval}},{key:"isList",value:function(e){return e&&e.typeId===wt.List}},{key:"isStruct",value:function(e){return e&&e.typeId===wt.Struct}},{key:"isUnion",value:function(e){return e&&e.typeId===wt.Union}},{key:"isFixedSizeBinary",value:function(e){return e&&e.typeId===wt.FixedSizeBinary}},{key:"isFixedSizeList",value:function(e){return e&&e.typeId===wt.FixedSizeList}},{key:"isMap",value:function(e){return e&&e.typeId===wt.Map}},{key:"isDictionary",value:function(e){return e&&e.typeId===wt.Dictionary}}]),e}();tn[Symbol.toStringTag]=((Xt=tn.prototype).children=null,Xt.ArrayType=Array,Xt[Symbol.toStringTag]="DataType");var nn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"toString",value:function(){return"Null"}},{key:"typeId",get:function(){return wt.Null}}]),n}(tn);nn[Symbol.toStringTag]=function(e){return e[Symbol.toStringTag]="Null"}(nn.prototype);var rn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).isSigned=e,i.bitWidth=r,i}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Int}},{key:"ArrayType",get:function(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:case 64:return this.isSigned?Int32Array:Uint32Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}},{key:"toString",value:function(){return"".concat(this.isSigned?"I":"Ui","nt").concat(this.bitWidth)}}]),n}(tn);rn[Symbol.toStringTag]=function(e){return e.isSigned=null,e.bitWidth=null,e[Symbol.toStringTag]="Int"}(rn.prototype);var an=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!0,8)}return n}(rn),on=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!0,16)}return n}(rn),un=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!0,32)}return n}(rn),cn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!0,64)}return n}(rn),sn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!1,8)}return n}(rn),ln=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!1,16)}return n}(rn),fn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!1,32)}return n}(rn),hn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,!1,64)}return n}(rn);Object.defineProperty(an.prototype,"ArrayType",{value:Int8Array}),Object.defineProperty(on.prototype,"ArrayType",{value:Int16Array}),Object.defineProperty(un.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(cn.prototype,"ArrayType",{value:Int32Array}),Object.defineProperty(sn.prototype,"ArrayType",{value:Uint8Array}),Object.defineProperty(ln.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(fn.prototype,"ArrayType",{value:Uint32Array}),Object.defineProperty(hn.prototype,"ArrayType",{value:Uint32Array});var dn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).precision=e,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Float}},{key:"ArrayType",get:function(){switch(this.precision){case xt.HALF:return Uint16Array;case xt.SINGLE:return Float32Array;case xt.DOUBLE:return Float64Array}throw new Error("Unrecognized ".concat(this[Symbol.toStringTag]," type"))}},{key:"toString",value:function(){return"Float".concat(this.precision<<5||16)}}]),n}(tn);dn[Symbol.toStringTag]=function(e){return e.precision=null,e[Symbol.toStringTag]="Float"}(dn.prototype);var pn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,xt.HALF)}return n}(dn),vn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,xt.SINGLE)}return n}(dn),yn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,xt.DOUBLE)}return n}(dn);Object.defineProperty(pn.prototype,"ArrayType",{value:Uint16Array}),Object.defineProperty(vn.prototype,"ArrayType",{value:Float32Array}),Object.defineProperty(yn.prototype,"ArrayType",{value:Float64Array});var bn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this)}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Binary}},{key:"toString",value:function(){return"Binary"}}]),n}(tn);bn[Symbol.toStringTag]=function(e){return e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Binary"}(bn.prototype);var mn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this)}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Utf8}},{key:"toString",value:function(){return"Utf8"}}]),n}(tn);mn[Symbol.toStringTag]=function(e){return e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Utf8"}(mn.prototype);var gn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this)}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Bool}},{key:"toString",value:function(){return"Bool"}}]),n}(tn);gn[Symbol.toStringTag]=function(e){return e.ArrayType=Uint8Array,e[Symbol.toStringTag]="Bool"}(gn.prototype);var wn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).scale=e,i.precision=r,i}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Decimal}},{key:"toString",value:function(){return"Decimal[".concat(this.precision,"e").concat(this.scale>0?"+":"").concat(this.scale,"]")}}]),n}(tn);wn[Symbol.toStringTag]=function(e){return e.scale=null,e.precision=null,e.ArrayType=Uint32Array,e[Symbol.toStringTag]="Decimal"}(wn.prototype);var kn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).unit=e,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Date}},{key:"toString",value:function(){return"Date".concat(32*(this.unit+1),"<").concat(_t[this.unit],">")}}]),n}(tn);kn[Symbol.toStringTag]=function(e){return e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Date"}(kn.prototype);var _n=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,_t.DAY)}return n}(kn),On=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.call(this,_t.MILLISECOND)}return n}(kn),xn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).unit=e,i.bitWidth=r,i}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Time}},{key:"toString",value:function(){return"Time".concat(this.bitWidth,"<").concat(Ot[this.unit],">")}}]),n}(tn);xn[Symbol.toStringTag]=function(e){return e.unit=null,e.bitWidth=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Time"}(xn.prototype);var jn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).unit=e,i.timezone=r,i}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Timestamp}},{key:"toString",value:function(){return"Timestamp<".concat(Ot[this.unit]).concat(this.timezone?", ".concat(this.timezone):"",">")}}]),n}(tn);jn[Symbol.toStringTag]=function(e){return e.unit=null,e.timezone=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Timestamp"}(jn.prototype);var Sn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).unit=e,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Interval}},{key:"toString",value:function(){return"Interval<".concat(St[this.unit],">")}}]),n}(tn);Sn[Symbol.toStringTag]=function(e){return e.unit=null,e.ArrayType=Int32Array,e[Symbol.toStringTag]="Interval"}(Sn.prototype);var Tn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).children=[e],r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.List}},{key:"toString",value:function(){return"List<".concat(this.valueType,">")}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}}]),n}(tn);Tn[Symbol.toStringTag]=function(e){return e.children=null,e[Symbol.toStringTag]="List"}(Tn.prototype);var In=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).children=e,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Struct}},{key:"toString",value:function(){return"Struct<{".concat(this.children.map((function(e){return"".concat(e.name,":").concat(e.type)})).join(", "),"}>")}}]),n}(tn);In[Symbol.toStringTag]=function(e){return e.children=null,e[Symbol.toStringTag]="Struct"}(In.prototype);var En=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this)).mode=e,a.children=i,a.typeIds=r=Int32Array.from(r),a.typeIdToChildIndex=r.reduce((function(e,t,n){return(e[t]=n)&&e||e}),Object.create(null)),a}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Union}},{key:"toString",value:function(){return"".concat(this[Symbol.toStringTag],"<").concat(this.children.map((function(e){return"".concat(e.type)})).join(" | "),">")}}]),n}(tn);En[Symbol.toStringTag]=function(e){return e.mode=null,e.typeIds=null,e.children=null,e.typeIdToChildIndex=null,e.ArrayType=Int8Array,e[Symbol.toStringTag]="Union"}(En.prototype);var An=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).byteWidth=e,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.FixedSizeBinary}},{key:"toString",value:function(){return"FixedSizeBinary[".concat(this.byteWidth,"]")}}]),n}(tn);An[Symbol.toStringTag]=function(e){return e.byteWidth=null,e.ArrayType=Uint8Array,e[Symbol.toStringTag]="FixedSizeBinary"}(An.prototype);var Bn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).listSize=e,i.children=[r],i}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.FixedSizeList}},{key:"valueType",get:function(){return this.children[0].type}},{key:"valueField",get:function(){return this.children[0]}},{key:"ArrayType",get:function(){return this.valueType.ArrayType}},{key:"toString",value:function(){return"FixedSizeList[".concat(this.listSize,"]<").concat(this.valueType,">")}}]),n}(tn);Bn[Symbol.toStringTag]=function(e){return e.children=null,e.listSize=null,e[Symbol.toStringTag]="FixedSizeList"}(Bn.prototype);var Cn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(f.a)(this,n),(r=t.call(this)).children=[e],r.keysSorted=i,r}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Map}},{key:"keyType",get:function(){return this.children[0].type.children[0].type}},{key:"valueType",get:function(){return this.children[0].type.children[1].type}},{key:"toString",value:function(){return"Map<{".concat(this.children[0].type.children.map((function(e){return"".concat(e.name,":").concat(e.type)})).join(", "),"}>")}}]),n}(tn);Cn[Symbol.toStringTag]=function(e){return e.children=null,e.keysSorted=null,e[Symbol.toStringTag]="Map_"}(Cn.prototype);var Dn,Ln=(Dn=-1,function(){return++Dn}),Nn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r,i,a){var o;return Object(f.a)(this,n),(o=t.call(this)).indices=r,o.dictionary=e,o.isOrdered=a||!1,o.id=null==i?Ln():"number"===typeof i?i:i.low,o}return Object(h.a)(n,[{key:"typeId",get:function(){return wt.Dictionary}},{key:"children",get:function(){return this.dictionary.children}},{key:"valueType",get:function(){return this.dictionary}},{key:"ArrayType",get:function(){return this.dictionary.ArrayType}},{key:"toString",value:function(){return"Dictionary<".concat(this.indices,", ").concat(this.dictionary,">")}}]),n}(tn);function Fn(e){var t=e;switch(e.typeId){case wt.Decimal:return 4;case wt.Timestamp:return 2;case wt.Date:case wt.Interval:return 1+t.unit;case wt.Int:case wt.Time:return+(t.bitWidth>32)+1;case wt.FixedSizeList:return t.listSize;case wt.FixedSizeBinary:return t.byteWidth;default:return 1}}Nn[Symbol.toStringTag]=function(e){return e.id=null,e.indices=null,e.isOrdered=null,e.dictionary=null,e[Symbol.toStringTag]="Dictionary"}(Nn.prototype);var Mn=function(){function e(t,n,r,i,a,o,u){var c;Object(f.a)(this,e),this.type=t,this.dictionary=u,this.offset=Math.floor(Math.max(n||0,0)),this.length=Math.floor(Math.max(r||0,0)),this._nullCount=Math.floor(Math.max(i||0,-1)),this.childData=(o||[]).map((function(t){return t instanceof e?t:t.data})),a instanceof e?(this.stride=a.stride,this.values=a.values,this.typeIds=a.typeIds,this.nullBitmap=a.nullBitmap,this.valueOffsets=a.valueOffsets):(this.stride=Fn(t),a&&((c=a[0])&&(this.valueOffsets=c),(c=a[1])&&(this.values=c),(c=a[2])&&(this.nullBitmap=c),(c=a[3])&&(this.typeIds=c)))}return Object(h.a)(e,[{key:"typeId",get:function(){return this.type.typeId}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"buffers",get:function(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}},{key:"byteLength",get:function(){var e=0,t=this.valueOffsets,n=this.values,r=this.nullBitmap,i=this.typeIds;return t&&(e+=t.byteLength),n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),this.childData.reduce((function(e,t){return e+t.byteLength}),e)}},{key:"nullCount",get:function(){var e,t=this._nullCount;return t<=-1&&(e=this.nullBitmap)&&(this._nullCount=t=this.length-Ft(e,this.offset,this.offset+this.length)),t}},{key:"clone",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.offset,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.length,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:this._nullCount,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:this.childData;return new e(t,n,r,i,a,o,this.dictionary)}},{key:"slice",value:function(e,t){var n=this.stride,r=this.typeId,i=this.childData,a=+(0===this._nullCount)-1,o=16===r?n:1,u=this._sliceBuffers(e,t,n,r);return this.clone(this.type,this.offset+e,t,a,u,!i.length||this.valueOffsets?i:this._sliceChildren(i,o*e,o*t))}},{key:"_changeLengthAndBackfillNullBitmap",value:function(e){if(this.typeId===wt.Null)return this.clone(this.type,0,e,0);var t=this.length,n=this.nullCount,r=new Uint8Array((e+63&-64)>>3).fill(255,0,t>>3);r[t>>3]=(1<<t-(-8&t))-1,n>0&&r.set(Dt(this.offset,t,this.nullBitmap),0);var i=this.buffers;return i[kt.VALIDITY]=r,this.clone(this.type,0,e,n+(e-t),i)}},{key:"_sliceBuffers",value:function(e,t,n,r){var i,a=this.buffers;return(i=a[kt.TYPE])&&(a[kt.TYPE]=i.subarray(e,e+t)),(i=a[kt.OFFSET])&&(a[kt.OFFSET]=i.subarray(e,e+t+1))||(i=a[kt.DATA])&&(a[kt.DATA]=6===r?i:i.subarray(n*e,n*(e+t))),a}},{key:"_sliceChildren",value:function(e,t,n){return e.map((function(e){return e.slice(t,n)}))}}],[{key:"new",value:function(t,n,r,i,a,o,u){switch(a instanceof e?a=a.buffers:a||(a=[]),t.typeId){case wt.Null:return e.Null(t,n,r);case wt.Int:return e.Int(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Dictionary:return e.Dictionary(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[],u);case wt.Float:return e.Float(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Bool:return e.Bool(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Decimal:return e.Decimal(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Date:return e.Date(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Time:return e.Time(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Timestamp:return e.Timestamp(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Interval:return e.Interval(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.FixedSizeBinary:return e.FixedSizeBinary(t,n,r,i||0,a[kt.VALIDITY],a[kt.DATA]||[]);case wt.Binary:return e.Binary(t,n,r,i||0,a[kt.VALIDITY],a[kt.OFFSET]||[],a[kt.DATA]||[]);case wt.Utf8:return e.Utf8(t,n,r,i||0,a[kt.VALIDITY],a[kt.OFFSET]||[],a[kt.DATA]||[]);case wt.List:return e.List(t,n,r,i||0,a[kt.VALIDITY],a[kt.OFFSET]||[],(o||[])[0]);case wt.FixedSizeList:return e.FixedSizeList(t,n,r,i||0,a[kt.VALIDITY],(o||[])[0]);case wt.Struct:return e.Struct(t,n,r,i||0,a[kt.VALIDITY],o||[]);case wt.Map:return e.Map(t,n,r,i||0,a[kt.VALIDITY],a[kt.OFFSET]||[],(o||[])[0]);case wt.Union:return e.Union(t,n,r,i||0,a[kt.VALIDITY],a[kt.TYPE]||[],a[kt.OFFSET]||o,o)}throw new Error("Unrecognized typeId ".concat(t.typeId))}},{key:"Null",value:function(t,n,r){return new e(t,n,r,0)}},{key:"Int",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Dictionary",value:function(t,n,r,i,a,o,u){return new e(t,n,r,i,[void 0,be(t.indices.ArrayType,o),_e(a)],[],u)}},{key:"Float",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Bool",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Decimal",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Date",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Time",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Timestamp",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Interval",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"FixedSizeBinary",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,be(t.ArrayType,o),_e(a)])}},{key:"Binary",value:function(t,n,r,i,a,o,u){return new e(t,n,r,i,[we(o),_e(u),_e(a)])}},{key:"Utf8",value:function(t,n,r,i,a,o,u){return new e(t,n,r,i,[we(o),_e(u),_e(a)])}},{key:"List",value:function(t,n,r,i,a,o,u){return new e(t,n,r,i,[we(o),void 0,_e(a)],[u])}},{key:"FixedSizeList",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,void 0,_e(a)],[o])}},{key:"Struct",value:function(t,n,r,i,a,o){return new e(t,n,r,i,[void 0,void 0,_e(a)],o)}},{key:"Map",value:function(t,n,r,i,a,o,u){return new e(t,n,r,i,[we(o),void 0,_e(a)],[u])}},{key:"Union",value:function(t,n,r,i,a,o,u,c){var s=[void 0,void 0,_e(a),be(t.ArrayType,o)];return t.mode===jt.Sparse?new e(t,n,r,i,s,u):(s[kt.OFFSET]=we(u),new e(t,n,r,i,s,c))}}]),e}();Mn.prototype.childData=Object.freeze([]);function Pn(e){if(null===e)return"null";if(void 0===e)return"undefined";switch(typeof e){case"number":case"bigint":return"".concat(e);case"string":return'"'.concat(e,'"')}return"function"===typeof e[Symbol.toPrimitive]?e[Symbol.toPrimitive]("string"):ArrayBuffer.isView(e)?"[".concat(e,"]"):JSON.stringify(e)}function Un(e){if(!e||e.length<=0)return function(e){return!0};var t="",n=e.filter((function(e){return e===e}));return n.length>0&&(t="\n    switch (x) {".concat(n.map((function(e){return"\n        case ".concat(function(e){if("bigint"!==typeof e)return Pn(e);if(V)return"".concat(Pn(e),"n");return'"'.concat(Pn(e),'"')}(e),":")})).join(""),"\n            return false;\n    }")),e.length!==n.length&&(t="if (x !== x) return false;\n".concat(t)),new Function("x","".concat(t,"\nreturn true;"))}var Rn=function(e,t){return(e*t+63&-64||64)/t},zn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.length>=t?e.subarray(0,t):ve(new e.constructor(t),e,0)},Vn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;Object(f.a)(this,e),this.buffer=t,this.stride=n,this.BYTES_PER_ELEMENT=t.BYTES_PER_ELEMENT,this.ArrayType=t.constructor,this._resize(this.length=t.length/n|0)}return Object(h.a)(e,[{key:"byteLength",get:function(){return this.length*this.stride*this.BYTES_PER_ELEMENT|0}},{key:"reservedLength",get:function(){return this.buffer.length/this.stride}},{key:"reservedByteLength",get:function(){return this.buffer.byteLength}},{key:"set",value:function(e,t){return this}},{key:"append",value:function(e){return this.set(this.length,e)}},{key:"reserve",value:function(e){if(e>0){this.length+=e;var t=this.stride,n=this.length*t,r=this.buffer.length;n>=r&&this._resize(Rn(0===r?1*n:2*n,this.BYTES_PER_ELEMENT))}return this}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length;e=Rn(e*this.stride,this.BYTES_PER_ELEMENT);var t=zn(this.buffer,e);return this.clear(),t}},{key:"clear",value:function(){return this.length=0,this._resize(0),this}},{key:"_resize",value:function(e){return this.buffer=ve(new this.ArrayType(e),this.buffer)}}]),e}();Vn.prototype.offset=0;var Wn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"last",value:function(){return this.get(this.length-1)}},{key:"get",value:function(e){return this.buffer[e]}},{key:"set",value:function(e,t){return this.reserve(e-this.length+1),this.buffer[e*this.stride]=t,this}}]),n}(Vn),Yn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array(0);return Object(f.a)(this,n),(e=t.call(this,r,1/8)).numValid=0,e}return Object(h.a)(n,[{key:"numInvalid",get:function(){return this.length-this.numValid}},{key:"get",value:function(e){return this.buffer[e>>3]>>e%8&1}},{key:"set",value:function(e,t){var n=this.reserve(e-this.length+1).buffer,r=e>>3,i=e%8,a=n[r]>>i&1;return t?0===a&&(n[r]|=1<<i,++this.numValid):1===a&&(n[r]&=~(1<<i),--this.numValid),this}},{key:"clear",value:function(){return this.numValid=0,ht(Object(ft.a)(n.prototype),"clear",this).call(this)}}]),n}(Wn),qn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Int32Array(1);return Object(f.a)(this,n),t.call(this,e,1)}return Object(h.a)(n,[{key:"append",value:function(e){return this.set(this.length-1,e)}},{key:"set",value:function(e,t){var n=this.length-1,r=this.reserve(e-n+1).buffer;return n<e++&&r.fill(r[n],n,e),r[e]=r[e-1]+t,this}},{key:"flush",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length-1;return e>this.length&&this.set(e-1,0),ht(Object(ft.a)(n.prototype),"flush",this).call(this,e+1)}}]),n}(Wn),Hn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"ArrayType64",get:function(){return this._ArrayType64||(this._ArrayType64=this.buffer instanceof Int32Array?q:K)}},{key:"set",value:function(e,t){switch(this.reserve(e-this.length+1),typeof t){case"bigint":this.buffer64[e]=t;break;case"number":this.buffer[e*this.stride]=t;break;default:this.buffer.set(t,e*this.stride)}return this}},{key:"_resize",value:function(e){var t=ht(Object(ft.a)(n.prototype),"_resize",this).call(this,e),r=t.byteLength/(this.BYTES_PER_ELEMENT*this.stride);return V&&(this.buffer64=new this.ArrayType64(t.buffer,t.byteOffset,r)),t}}]),n}(Vn);function $n(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Kn(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Kn(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(Kn=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Kn(e)}var Qn=function(){function e(t){var n=t.type,r=t.nullValues;Object(f.a)(this,e),this.length=0,this.finished=!1,this.type=n,this.children=[],this.nullValues=r,this.stride=Fn(n),this._nulls=new Yn,r&&r.length>0&&(this._isValid=Un(r))}return Object(h.a)(e,[{key:"toVector",value:function(){return gt.new(this.flush())}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"nullCount",get:function(){return this._nulls.numInvalid}},{key:"numChildren",get:function(){return this.children.length}},{key:"byteLength",get:function(){var e=0;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),this._typeIds&&(e+=this._typeIds.byteLength),this.children.reduce((function(e,t){return e+t.byteLength}),e)}},{key:"reservedLength",get:function(){return this._nulls.reservedLength}},{key:"reservedByteLength",get:function(){var e=0;return this._offsets&&(e+=this._offsets.reservedByteLength),this._values&&(e+=this._values.reservedByteLength),this._nulls&&(e+=this._nulls.reservedByteLength),this._typeIds&&(e+=this._typeIds.reservedByteLength),this.children.reduce((function(e,t){return e+t.reservedByteLength}),e)}},{key:"valueOffsets",get:function(){return this._offsets?this._offsets.buffer:null}},{key:"values",get:function(){return this._values?this._values.buffer:null}},{key:"nullBitmap",get:function(){return this._nulls?this._nulls.buffer:null}},{key:"typeIds",get:function(){return this._typeIds?this._typeIds.buffer:null}},{key:"append",value:function(e){return this.set(this.length,e)}},{key:"isValid",value:function(e){return this._isValid(e)}},{key:"set",value:function(e,t){return this.setValid(e,this.isValid(t))&&this.setValue(e,t),this}},{key:"setValue",value:function(e,t){this._setValue(this,e,t)}},{key:"setValid",value:function(e,t){return this.length=this._nulls.set(e,+t).length,t}},{key:"addChild",value:function(e){arguments.length>1&&void 0!==arguments[1]||"".concat(this.numChildren);throw new Error('Cannot append children to non-nested type "'.concat(this.type,'"'))}},{key:"getChildAt",value:function(e){return this.children[e]||null}},{key:"flush",value:function(){var e=[],t=this._values,n=this._offsets,r=this._typeIds,i=this.length,a=this.nullCount;r?(e[kt.TYPE]=r.flush(i),n&&(e[kt.OFFSET]=n.flush(i))):n?(t&&(e[kt.DATA]=t.flush(n.last())),e[kt.OFFSET]=n.flush(i)):t&&(e[kt.DATA]=t.flush(i)),a>0&&(e[kt.VALIDITY]=this._nulls.flush(i));var o=Mn.new(this.type,0,i,a,e,this.children.map((function(e){return e.flush()})));return this.clear(),o}},{key:"finish",value:function(){return this.finished=!0,this.children.forEach((function(e){return e.finish()})),this}},{key:"clear",value:function(){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((function(e){return e.clear()})),this}}],[{key:"new",value:function(e){}},{key:"throughNode",value:function(e){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(e){throw new Error('"throughDOM" not available in this environment')}},{key:"throughIterable",value:function(e){return function(e){var t=e.queueingStrategy,n=void 0===t?"count":t,r=e.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,a="bytes"!==n?"length":"byteLength";return d.mark((function t(n){var r,o,u,c,l;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=0,o=Qn.new(e),u=Object(s.a)(n),t.prev=3,u.s();case 5:if((c=u.n()).done){t.next=14;break}if(l=c.value,!(o.append(l)[a]>=i)){t.next=12;break}if(t.t0=++r,!t.t0){t.next=12;break}return t.next=12,o.toVector();case 12:t.next=5;break;case 14:t.next=19;break;case 16:t.prev=16,t.t1=t.catch(3),u.e(t.t1);case 19:return t.prev=19,u.f(),t.finish(19);case 22:if(!(o.finish().length>0||0===r)){t.next=25;break}return t.next=25,o.toVector();case 25:case"end":return t.stop()}}),t,null,[[3,16,19,22]])}))}(e)}},{key:"throughAsyncIterable",value:function(e){return function(e){var t=e.queueingStrategy,n=void 0===t?"count":t,r=e.highWaterMark,i=void 0===r?"bytes"!==n?1e3:Math.pow(2,14):r,a="bytes"!==n?"length":"byteLength";return function(){var t=m(d.mark((function t(n){var r,o,u,c,s,l,f,h;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:r=0,o=Qn.new(e),u=!1,c=!1,t.prev=4,l=$n(n);case 6:return t.next=8,y(l.next());case 8:if(!(u=!(f=t.sent).done)){t.next=18;break}if(h=f.value,!(o.append(h)[a]>=i)){t.next=15;break}if(t.t0=++r,!t.t0){t.next=15;break}return t.next=15,o.toVector();case 15:u=!1,t.next=6;break;case 18:t.next=24;break;case 20:t.prev=20,t.t1=t.catch(4),c=!0,s=t.t1;case 24:if(t.prev=24,t.prev=25,!u||null==l.return){t.next=29;break}return t.next=29,y(l.return());case 29:if(t.prev=29,!c){t.next=32;break}throw s;case 32:return t.finish(29);case 33:return t.finish(24);case 34:if(!(o.finish().length>0||0===r)){t.next=37;break}return t.next=37,o.toVector();case 37:case"end":return t.stop()}}),t,null,[[4,20,24,34],[25,,29,33]])})));return function(e){return t.apply(this,arguments)}}()}(e)}}]),e}();Qn.prototype.length=1,Qn.prototype.stride=1,Qn.prototype.children=null,Qn.prototype.finished=!1,Qn.prototype.nullValues=null,Qn.prototype._isValid=function(){return!0};var Gn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._values=new Wn(new r.ArrayType(0),r.stride),r}return Object(h.a)(n,[{key:"setValue",value:function(e,t){var r=this._values;return r.reserve(e-r.length+1),ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,t)}}]),n}(Qn),Jn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._pendingLength=0,r._offsets=new qn,r}return Object(h.a)(n,[{key:"setValue",value:function(e,t){var n=this._pending||(this._pending=new Map),r=n.get(e);r&&(this._pendingLength-=r.length),this._pendingLength+=t.length,n.set(e,t)}},{key:"setValid",value:function(e,t){return!!ht(Object(ft.a)(n.prototype),"setValid",this).call(this,e,t)||((this._pending||(this._pending=new Map)).set(e,void 0),!1)}},{key:"clear",value:function(){return this._pendingLength=0,this._pending=void 0,ht(Object(ft.a)(n.prototype),"clear",this).call(this)}},{key:"flush",value:function(){return this._flush(),ht(Object(ft.a)(n.prototype),"flush",this).call(this)}},{key:"finish",value:function(){return this._flush(),ht(Object(ft.a)(n.prototype),"finish",this).call(this)}},{key:"_flush",value:function(){var e=this._pending,t=this._pendingLength;return this._pendingLength=0,this._pending=void 0,e&&e.size>0&&this._flushPending(e,t),this}}]),n}(Qn);var Zn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._values=new Yn,r}return Object(h.a)(n,[{key:"setValue",value:function(e,t){this._values.set(e,+t)}}]),n}(Qn),Xn=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"setValue",value:function(e,t){}},{key:"setValid",value:function(e,t){return this.length=Math.max(e+1,this.length),t}}]),n}(Qn),er=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),tr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(er),nr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(er),rr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),ir=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r,i=e.type,a=e.nullValues,o=e.dictionaryHashFunction;return Object(f.a)(this,n),(r=t.call(this,{type:new Nn(i.dictionary,i.indices,i.id,i.isOrdered)}))._nulls=null,r._dictionaryOffset=0,r._keysToIndices=Object.create(null),r.indices=Qn.new({type:r.type.indices,nullValues:a}),r.dictionary=Qn.new({type:r.type.dictionary,nullValues:null}),"function"===typeof o&&(r.valueToKey=o),r}return Object(h.a)(n,[{key:"values",get:function(){return this.indices.values}},{key:"nullCount",get:function(){return this.indices.nullCount}},{key:"nullBitmap",get:function(){return this.indices.nullBitmap}},{key:"byteLength",get:function(){return this.indices.byteLength+this.dictionary.byteLength}},{key:"reservedLength",get:function(){return this.indices.reservedLength+this.dictionary.reservedLength}},{key:"reservedByteLength",get:function(){return this.indices.reservedByteLength+this.dictionary.reservedByteLength}},{key:"isValid",value:function(e){return this.indices.isValid(e)}},{key:"setValid",value:function(e,t){var n=this.indices;return t=n.setValid(e,t),this.length=n.length,t}},{key:"setValue",value:function(e,t){var n=this._keysToIndices,r=this.valueToKey(t),i=n[r];return void 0===i&&(n[r]=i=this._dictionaryOffset+this.dictionary.append(t).length-1),this.indices.setValue(e,i)}},{key:"flush",value:function(){var e=this.type,t=this._dictionary,n=this.dictionary.toVector(),r=this.indices.flush().clone(e);return r.dictionary=t?t.concat(n):n,this.finished||(this._dictionaryOffset+=n.length),this._dictionary=r.dictionary,this.clear(),r}},{key:"finish",value:function(){return this.indices.finish(),this.dictionary.finish(),this._dictionaryOffset=0,this._keysToIndices=Object.create(null),ht(Object(ft.a)(n.prototype),"finish",this).call(this)}},{key:"clear",value:function(){return this.indices.clear(),this.dictionary.clear(),ht(Object(ft.a)(n.prototype),"clear",this).call(this)}},{key:"valueToKey",value:function(e){return"string"===typeof e?e:"".concat(e)}}]),n}(Qn),ar=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),or=new Float64Array(1),ur=new Uint32Array(or.buffer);function cr(e){var t=(31744&e)>>10,n=(1023&e)/1024,r=Math.pow(-1,(32768&e)>>15);switch(t){case 31:return r*(n?NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,t-15)*(1+n)}function sr(e){if(e!==e)return 32256;or[0]=e;var t=(2147483648&ur[1])>>16&65535,n=2146435072&ur[1],r=0;return n>=1089470464?ur[0]>0?n=31744:(n=(2080374784&n)>>16,r=(1048575&ur[1])>>10):n<=1056964608?(r=1048576+((r=1048576+(1048575&ur[1]))<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=512+(1048575&ur[1])>>10),t|n|65535&r}var lr,fr,hr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),dr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"setValue",value:function(e,t){this._values.set(e,sr(t))}}]),n}(hr),pr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"setValue",value:function(e,t){this._values.set(e,t)}}]),n}(hr),vr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"setValue",value:function(e,t){this._values.set(e,t)}}]),n}(hr),yr=n(13),br=Symbol.for("isArrowBigNum");function mr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return 0===n.length?Object.setPrototypeOf(be(this.TypedArray,e),this.constructor.prototype):Object.setPrototypeOf(Object(yr.a)(this.TypedArray,[e].concat(n)),this.constructor.prototype)}function gr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr.apply(this,t)}function wr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr.apply(this,t)}function kr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return mr.apply(this,t)}function _r(e){for(var t,n,r=e.buffer,i=e.byteOffset,a=e.length,o=e.signed,u=new Int32Array(r,i,a),c=0,s=0,l=u.length;s<l;)n=u[s++],t=u[s++],o||(t>>>=0),c+=(n>>>0)+t*Math.pow(s,32);return c}function Or(e){var t="",n=new Uint32Array(2),r=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer),a=-1,o=r.length-1;do{for(n[0]=r[a=0];a<o;)r[a++]=n[1]=n[0]/10,n[0]=(n[0]-10*n[1]<<16)+r[a];r[a]=n[1]=n[0]/10,n[0]=n[0]-10*n[1],t="".concat(n[0]).concat(t)}while(i[0]||i[1]||i[2]||i[3]);return t||"0"}mr.prototype[br]=!0,mr.prototype.toJSON=function(){return'"'.concat(lr(this),'"')},mr.prototype.valueOf=function(){return _r(this)},mr.prototype.toString=function(){return lr(this)},mr.prototype[Symbol.toPrimitive]=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";switch(e){case"number":return _r(this);case"string":return lr(this);case"default":return fr(this)}return lr(this)},Object.setPrototypeOf(gr.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(wr.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(kr.prototype,Object.create(Uint32Array.prototype)),Object.assign(gr.prototype,mr.prototype,{constructor:gr,signed:!0,TypedArray:Int32Array,BigIntArray:q}),Object.assign(wr.prototype,mr.prototype,{constructor:wr,signed:!1,TypedArray:Uint32Array,BigIntArray:K}),Object.assign(kr.prototype,mr.prototype,{constructor:kr,signed:!0,TypedArray:Uint32Array,BigIntArray:K}),V?(fr=function(e){return 8===e.byteLength?new e.BigIntArray(e.buffer,e.byteOffset,1)[0]:Or(e)},lr=function(e){return 8===e.byteLength?"".concat(new e.BigIntArray(e.buffer,e.byteOffset,1)[0]):Or(e)}):fr=lr=Or;var xr,jr=function(){function e(t,n){return Object(f.a)(this,e),e.new(t,n)}return Object(h.a)(e,null,[{key:"new",value:function(e,t){switch(t){case!0:return new gr(e);case!1:return new wr(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case q:return new gr(e)}return 16===e.byteLength?new kr(e):new wr(e)}},{key:"signed",value:function(e){return new gr(e)}},{key:"unsigned",value:function(e){return new wr(e)}},{key:"decimal",value:function(e){return new kr(e)}}]),e}(),Sr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"setValue",value:function(e,t){this._values.set(e,t)}}]),n}(Gn),Tr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Ir=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Er=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Ar=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),e.nullValues&&(e.nullValues=e.nullValues.map(Nr)),(r=t.call(this,e))._values=new Hn(new Int32Array(0),2),r}return Object(h.a)(n,[{key:"values64",get:function(){return this._values.buffer64}},{key:"isValid",value:function(e){return ht(Object(ft.a)(n.prototype),"isValid",this).call(this,Nr(e))}}]),n}(Sr),Br=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Cr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Dr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Sr),Lr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),e.nullValues&&(e.nullValues=e.nullValues.map(Nr)),(r=t.call(this,e))._values=new Hn(new Uint32Array(0),2),r}return Object(h.a)(n,[{key:"values64",get:function(){return this._values.buffer64}},{key:"isValid",value:function(e){return ht(Object(ft.a)(n.prototype),"isValid",this).call(this,Nr(e))}}]),n}(Sr),Nr=(xr={BigIntArray:q},function(e){return ArrayBuffer.isView(e)&&(xr.buffer=e.buffer,xr.byteOffset=e.byteOffset,xr.byteLength=e.byteLength,e=fr(xr),xr.buffer=null),e}),Fr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),Mr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Fr),Pr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Fr),Ur=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Fr),Rr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Fr),zr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),Vr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zr),Wr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zr),Yr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zr),qr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zr),Hr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Gn),$r=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Hr),Kr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Hr),Qr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._values=new Vn(new Uint8Array(0)),r}return Object(h.a)(n,[{key:"byteLength",get:function(){var e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}},{key:"setValue",value:function(e,t){return ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,_e(t))}},{key:"_flushPending",value:function(e,t){var n,r,i=this._offsets,a=this._values.reserve(t).buffer,o=0,u=0,c=0,l=Object(s.a)(e);try{for(l.s();!(r=l.n()).done;){var f=Object(p.a)(r.value,2);o=f[0],void 0===(n=f[1])?i.set(o,0):(u=n.length,a.set(n,c),i.set(o,u),c+=u)}}catch(h){l.e(h)}finally{l.f()}}}]),n}(Jn),Gr=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._values=new Vn(new Uint8Array(0)),r}return Object(h.a)(n,[{key:"byteLength",get:function(){var e=this._pendingLength+4*this.length;return this._offsets&&(e+=this._offsets.byteLength),this._values&&(e+=this._values.byteLength),this._nulls&&(e+=this._nulls.byteLength),e}},{key:"setValue",value:function(e,t){return ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,C(t))}},{key:"_flushPending",value:function(e,t){}}]),n}(Jn);Gr.prototype._flushPending=Qr.prototype._flushPending;var Jr=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"length",get:function(){return this._values.length}},{key:"get",value:function(e){return this._values[e]}},{key:"clear",value:function(){return this._values=null,this}},{key:"bind",value:function(e){return e instanceof gt?e:(this._values=e,this)}}]),e}(),Zr=n(21),Xr=n(16),ei=n(11),ti=Symbol.for("parent"),ni=Symbol.for("rowIndex"),ri=Symbol.for("keyToIdx"),ii=Symbol.for("idxToVal"),ai=Symbol.for("nodejs.util.inspect.custom"),oi=function(e){function t(e,n){Object(f.a)(this,t),this[ti]=e,this.size=n}return Object(h.a)(t,[{key:"entries",value:function(){return this[Symbol.iterator]()}},{key:"has",value:function(e){return void 0!==this.get(e)}},{key:"get",value:function(e){var t=void 0;if(null!==e&&void 0!==e){var n=this[ri]||(this[ri]=new Map),r=n.get(e);if(void 0!==r){var i=this[ii]||(this[ii]=new Array(this.size));void 0!==(t=i[r])||(i[r]=t=this.getValue(r))}else if((r=this.getIndex(e))>-1){n.set(e,r);var a=this[ii]||(this[ii]=new Array(this.size));void 0!==(t=a[r])||(a[r]=t=this.getValue(r))}}return t}},{key:"set",value:function(e,t){if(null!==e&&void 0!==e){var n=this[ri]||(this[ri]=new Map),r=n.get(e);if(void 0===r&&n.set(e,r=this.getIndex(e)),r>-1)(this[ii]||(this[ii]=new Array(this.size)))[r]=this.setValue(r,t)}return this}},{key:"clear",value:function(){throw new Error("Clearing ".concat(this[Symbol.toStringTag]," not supported."))}},{key:"delete",value:function(e){throw new Error("Deleting ".concat(this[Symbol.toStringTag]," values not supported."))}},{key:e,value:d.mark((function e(){var t,n,r,i,a,o,u,c,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this.keys(),n=this.values(),r=this[ri]||(this[ri]=new Map),i=this[ii]||(this[ii]=new Array(this.size)),u=0;case 5:if((c=t.next()).done||(s=n.next()).done){e.next=15;break}return a=c.value,o=s.value,i[u]=o,r.has(a)||r.set(a,u),e.next=12,[a,o];case 12:++u,e.next=5;break;case 15:case"end":return e.stop()}}),e,this)}))},{key:"forEach",value:function(e,t){for(var n,r,i,a,o=this.keys(),u=this.values(),c=void 0===t?e:function(n,r,i){return e.call(t,n,r,i)},s=this[ri]||(this[ri]=new Map),l=this[ii]||(this[ii]=new Array(this.size)),f=0;!(i=o.next()).done&&!(a=u.next()).done;++f)n=i.value,r=a.value,l[f]=r,s.has(n)||s.set(n,f),c(r,n,this)}},{key:"toArray",value:function(){return Object(Ut.a)(this.values())}},{key:"toJSON",value:function(){var e={};return this.forEach((function(t,n){return e[n]=t})),e}},{key:"inspect",value:function(){return this.toString()}},{key:ai,value:function(){return this.toString()}},{key:"toString",value:function(){var e=[];return this.forEach((function(t,n){n=Pn(n),t=Pn(t),e.push("".concat(n,": ").concat(t))})),"{ ".concat(e.join(", ")," }")}}]),t}(Symbol.iterator);oi[Symbol.toStringTag]=function(e){var t;return Object.defineProperties(e,(t={size:{writable:!0,enumerable:!1,configurable:!1,value:0}},Object(ei.a)(t,ti,{writable:!0,enumerable:!1,configurable:!1,value:null}),Object(ei.a)(t,ni,{writable:!0,enumerable:!1,configurable:!1,value:-1}),t)),e[Symbol.toStringTag]="Row"}(oi.prototype);var ui=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),r=t.call(this,e,e.length),Object(Zr.a)(r,fi(Object(Xr.a)(r)))}return Object(h.a)(n,[{key:"keys",value:function(){return this[ti].getChildAt(0)[Symbol.iterator]()}},{key:"values",value:function(){return this[ti].getChildAt(1)[Symbol.iterator]()}},{key:"getKey",value:function(e){return this[ti].getChildAt(0).get(e)}},{key:"getIndex",value:function(e){return this[ti].getChildAt(0).indexOf(e)}},{key:"getValue",value:function(e){return this[ti].getChildAt(1).get(e)}},{key:"setValue",value:function(e,t){this[ti].getChildAt(1).set(e,t)}}]),n}(oi),ci=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),r=t.call(this,e,e.type.children.length),Object(Zr.a)(r,li(Object(Xr.a)(r)))}return Object(h.a)(n,[{key:"keys",value:d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(s.a)(this[ti].type.children),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.name;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"values",value:d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(s.a)(this[ti].type.children),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,this[r.name];case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getKey",value:function(e){return this[ti].type.children[e].name}},{key:"getIndex",value:function(e){return this[ti].type.children.findIndex((function(t){return t.name===e}))}},{key:"getValue",value:function(e){return this[ti].getChildAt(e).get(this[ni])}},{key:"setValue",value:function(e,t){return this[ti].getChildAt(e).set(this[ni],t)}}]),n}(oi);Object.setPrototypeOf(oi.prototype,Map.prototype);var si,li=function(){var e={enumerable:!0,configurable:!1,get:null,set:null};return function(t){var n,r=-1,i=t[ri]||(t[ri]=new Map),a=function(e){return function(){return this.get(e)}},o=function(e){return function(t){return this.set(e,t)}},u=Object(s.a)(t.keys());try{for(u.s();!(n=u.n()).done;){var c=n.value;i.set(c,++r),e.get=a(c),e.set=o(c),t.hasOwnProperty(c)||(e.enumerable=!0,Object.defineProperty(t,c,e)),t.hasOwnProperty(r)||(e.enumerable=!1,Object.defineProperty(t,r,e))}}catch(l){u.e(l)}finally{u.f()}return e.get=e.set=null,t}}(),fi=function(){if("undefined"===typeof Proxy)return li;var e=oi.prototype.has,t=oi.prototype.get,n=oi.prototype.set,r=oi.prototype.getKey,i={isExtensible:function(){return!1},deleteProperty:function(){return!1},preventExtensions:function(){return!0},ownKeys:function(e){return Object(Ut.a)(e.keys()).map((function(e){return"".concat(e)}))},has:function(e,t){switch(t){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 ti:case ni:case ii:case ri:case ai:return!0}return"number"!==typeof t||e.has(t)||(t=e.getKey(t)),e.has(t)},get:function(n,i,a){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 ti:case ni:case ii:case ri:case ai:return Reflect.get(n,i,a)}return"number"!==typeof i||e.call(a,i)||(i=r.call(a,i)),t.call(a,i)},set:function(t,i,a,o){switch(i){case ti:case ni:case ii:case ri:return Reflect.set(t,i,a,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||e.call(o,i)||(i=r.call(o,i)),!!e.call(o,i)&&!!n.call(o,i,a)}};return function(e){return new Proxy(e,i)}}();function hi(e,t,n){var r=e.length,i=t>-1?t:r+t%r;return n?n(e,i):i}function di(e,t,n,r){var i=e.length,a=void 0===i?0:i,o="number"!==typeof t?0:t,u="number"!==typeof n?a:n;return o<0&&(o=(o%a+a)%a),u<0&&(u=(u%a+a)%a),u<o&&(si=o,o=u,u=si),u>a&&(u=a),r?r(e,o,u):[o,u]}var pi=V?z(0):0,vi=function(e){return e!==e};function yi(e){var t=typeof e;if("object"!==t||null===e)return vi(e)?vi:"bigint"!==t?function(t){return t===e}:function(t){return pi+t===e};if(e instanceof Date){var n=e.valueOf();return function(e){return e instanceof Date&&e.valueOf()===n}}return ArrayBuffer.isView(e)?function(t){return!!t&&Ze(e,t)}:e instanceof Map?function(e){var t=-1,n=[];return e.forEach((function(e){return n[++t]=yi(e)})),bi(n)}(e):Array.isArray(e)?function(e){for(var t=[],n=-1,r=e.length;++n<r;)t[n]=yi(e[n]);return bi(t)}(e):e instanceof gt?function(e){for(var t=[],n=-1,r=e.length;++n<r;)t[n]=yi(e.get(n));return bi(t)}(e):function(e){var t=Object.keys(e);if(0===t.length)return function(){return!1};for(var n=[],r=-1,i=t.length;++r<i;)n[r]=yi(e[t[r]]);return bi(n,t)}(e)}function bi(e,t){return function(n){if(!n||"object"!==typeof n)return!1;switch(n.constructor){case Array:return function(e,t){var n=e.length;if(t.length!==n)return!1;for(var r=-1;++r<n;)if(!e[r](t[r]))return!1;return!0}(e,n);case Map:case ui:case ci:return mi(e,n,n.keys());case Object:case void 0:return mi(e,n,t||Object.keys(n))}return n instanceof gt&&function(e,t){var n=e.length;if(t.length!==n)return!1;for(var r=-1;++r<n;)if(!e[r](t.get(r)))return!1;return!0}(e,n)}}function mi(e,t,n){for(var r=n[Symbol.iterator](),i=t instanceof Map?t.keys():Object.keys(t)[Symbol.iterator](),a=t instanceof Map?t.values():Object.values(t)[Symbol.iterator](),o=0,u=e.length,c=a.next(),s=r.next(),l=i.next();o<u&&!s.done&&!l.done&&!c.done&&(s.value===l.value&&e[o](c.value));++o,s=r.next(),l=i.next(),c=a.next());return!!(o===u&&s.done&&l.done&&c.done)||(r.return&&r.return(),i.return&&i.return(),a.return&&a.return(),!1)}var gi=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:wi(i);return Object(f.a)(this,r),(t=n.call(this))._nullCount=-1,t._type=e,t._chunks=i,t._chunkOffsets=a,t._length=a[a.length-1],t._numChildren=(t._type.children||[]).length,t}return Object(h.a)(r,[{key:"type",get:function(){return this._type}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"typeId",get:function(){return this._type.typeId}},{key:"VectorName",get:function(){return"Chunked<".concat(this._type,">")}},{key:"data",get:function(){return this._chunks[0]?this._chunks[0].data:null}},{key:"ArrayType",get:function(){return this._type.ArrayType}},{key:"numChildren",get:function(){return this._numChildren}},{key:"stride",get:function(){return this._chunks[0]?this._chunks[0].stride:1}},{key:"byteLength",get:function(){return this._chunks.reduce((function(e,t){return e+t.byteLength}),0)}},{key:"nullCount",get:function(){var e=this._nullCount;return e<0&&(this._nullCount=e=this._chunks.reduce((function(e,t){return e+t.nullCount}),0)),e}},{key:"indices",get:function(){if(tn.isDictionary(this._type)){if(!this._indices){var e=this._chunks;this._indices=1===e.length?e[0].indices:r.concat.apply(r,Object(Ut.a)(e.map((function(e){return e.indices}))))}return this._indices}return null}},{key:"dictionary",get:function(){return tn.isDictionary(this._type)?this._chunks[this._chunks.length-1].data.dictionary:null}},{key:t,value:d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Object(s.a)(this._chunks),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=8;break}return r=n.value,e.delegateYield(r,"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e.catch(1),t.e(e.t1);case 13:return e.prev=13,t.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,this,[[1,10,13,16]])}))},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new r(this._type,e)}},{key:"concat",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.clone(r.flatten.apply(r,[this].concat(t)))}},{key:"slice",value:function(e,t){return di(this,e,t,this._sliceInternal)}},{key:"getChildAt",value:function(e){if(e<0||e>=this._numChildren)return null;var t,n,i,a=this._children||(this._children=[]);return(t=a[e])?t:(n=(this._type.children||[])[e])&&(i=this._chunks.map((function(t){return t.getChildAt(e)})).filter((function(e){return null!=e}))).length>0?a[e]=new r(n.type,i):null}},{key:"search",value:function(e,t){var n=e,r=this._chunkOffsets,i=r.length-1;if(n<0)return null;if(n>=r[i])return null;if(i<=1)return t?t(this,0,n):[0,n];var a=0,o=0,u=0;do{if(a+1===i)return t?t(this,a,n-o):[a,n-o];n>=r[u=a+(i-a)/2|0]?a=u:i=u}while(n<r[i]&&n>=(o=r[a]));return null}},{key:"isValid",value:function(e){return!!this.search(e,this.isValidInternal)}},{key:"get",value:function(e){return this.search(e,this.getInternal)}},{key:"set",value:function(e,t){this.search(e,(function(e,n,r){return e.chunks[n].set(r,t)}))}},{key:"indexOf",value:function(e,t){var n=this;return t&&"number"===typeof t?this.search(t,(function(t,r,i){return n.indexOfInternal(t,r,i,e)})):this.indexOfInternal(this,0,Math.max(0,t||0),e)}},{key:"toArray",value:function(){var e=this.chunks,t=e.length,n=this._type.ArrayType;if(t<=0)return new n(0);if(t<=1)return e[0].toArray();for(var r=0,i=new Array(t),a=-1;++a<t;)r+=(i[a]=e[a].toArray()).length;n!==i[0].constructor&&(n=i[0].constructor);for(var o=new n(r),u=n===Array?_i:ki,c=-1,s=0;++c<t;)s=u(i[c],o,s);return o}},{key:"getInternal",value:function(e,t,n){return e._chunks[t].get(n)}},{key:"isValidInternal",value:function(e,t,n){return e._chunks[t].isValid(n)}},{key:"indexOfInternal",value:function(e,t,n,r){for(var i=e._chunks,a=t-1,o=i.length,u=n,c=0,s=-1;++a<o;){if(~(s=i[a].indexOf(r,u)))return c+s;u=0,c+=i[a].length}return-1}},{key:"_sliceInternal",value:function(e,t,n){for(var r=[],i=e.chunks,a=e._chunkOffsets,o=-1,u=i.length;++o<u;){var c=i[o],s=c.length,l=a[o];if(l>=n)break;if(!(t>=l+s))if(l>=t&&l+s<=n)r.push(c);else{var f=Math.max(0,t-l),h=Math.min(n-l,s);r.push(c.slice(f,h))}}return e.clone(r)}}],[{key:"flatten",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ei(gt,t)}},{key:"concat",value:function(){var e=r.flatten.apply(r,arguments);return new r(e[0].type,e)}}]),r}(gt,Symbol.iterator);function wi(e){for(var t=new Uint32Array((e||[]).length+1),n=t[0]=0,r=t.length,i=0;++i<r;)t[i]=n+=e[i-1].length;return t}var ki=function(e,t,n){return t.set(e,n),n+e.length},_i=function(e,t,n){for(var r=n,i=-1,a=e.length;++i<a;)t[r++]=e[i];return r},Oi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0;return Object(f.a)(this,n),i=gi.flatten.apply(gi,Object(Ut.a)(i)),(r=t.call(this,e.type,i,a))._field=e,1!==i.length||Object(Xr.a)(r)instanceof xi?r:Object(Zr.a)(r,new xi(e,i[0],r._chunkOffsets))}return Object(h.a)(n,[{key:"field",get:function(){return this._field}},{key:"name",get:function(){return this._field.name}},{key:"nullable",get:function(){return this._field.nullable}},{key:"metadata",get:function(){return this._field.metadata}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new n(this._field,e)}},{key:"getChildAt",value:function(e){if(e<0||e>=this.numChildren)return null;var t,r,i,a=this._children||(this._children=[]);return(t=a[e])?t:(r=(this.type.children||[])[e])&&(i=this._chunks.map((function(t){return t.getChildAt(e)})).filter((function(e){return null!=e}))).length>0?a[e]=new n(r,i):null}}],[{key:"new",value:function(e,t){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];var o=gi.flatten(Array.isArray(t)?[].concat(Object(Ut.a)(t),i):t instanceof gt?[t].concat(i):[gt.new.apply(gt,[t].concat(i))]);if("string"===typeof e){var u=o[0].data.type;e=new Ni(e,u,!0)}else!e.nullable&&o.some((function(e){return e.nullCount>0}))&&(e=e.clone({nullable:!0}));return new n(e,o)}}]),n}(gi),xi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r,i){var a;return Object(f.a)(this,n),(a=t.call(this,e,[r],i))._chunk=r,a}return Object(h.a)(n,[{key:"search",value:function(e,t){return t?t(this,0,e):[0,e]}},{key:"isValid",value:function(e){return this._chunk.isValid(e)}},{key:"get",value:function(e){return this._chunk.get(e)}},{key:"set",value:function(e,t){this._chunk.set(e,t)}},{key:"indexOf",value:function(e,t){return this._chunk.indexOf(e,t)}}]),n}(Oi),ji=Array.isArray,Si=function(e,t){return Bi(e,t,[],0)},Ti=function(e){var t=Di(e,[[],[]]),n=Object(p.a)(t,2),r=n[0];return n[1].map((function(e,t){return e instanceof Oi?Oi.new(e.field.clone(r[t]),e):e instanceof gt?Oi.new(r[t],e):Oi.new(r[t],[])}))},Ii=function(e){return Di(e,[[],[]])},Ei=function(e,t){return function e(t,n,r,i){var a,o=i,u=-1,c=n.length;for(;++u<c;)ji(a=n[u])?o=e(t,a,r,o).length:a instanceof gi?o=e(t,a.chunks,r,o).length:a instanceof t&&(r[o++]=a);return r}(e,t,[],0)},Ai=function(e,t){return function e(t,n,r,i){var a,o=i,u=-1,c=n.length;for(;++u<c;)ji(a=n[u])?o=e(t,a,r,o).length:a instanceof t?o=Bi(gt,a.schema.fields.map((function(e,t){return a.getChildAt(t)})),r,o).length:a instanceof gt&&(r[o++]=a);return r}(e,t,[],0)};function Bi(e,t,n,r){for(var i,a=r,o=-1,u=t.length;++o<u;)ji(i=t[o])?a=Bi(e,i,n,a).length:i instanceof e&&(n[a++]=i);return n}var Ci=function(e,t,n){var r=Object(p.a)(t,2),i=r[0],a=r[1];return e[0][n]=i,e[1][n]=a,e};function Di(e,t){var n,r;switch(r=e.length){case 0:return t;case 1:if(n=t[0],!e[0])return t;if(ji(e[0]))return Di(e[0],t);if(!(e[0]instanceof Mn||e[0]instanceof gt||e[0]instanceof tn)){var i=Object.entries(e[0]).reduce(Ci,t),a=Object(p.a)(i,2);n=a[0],e=a[1]}break;default:ji(n=e[r-1])?e=ji(e[0])?e[0]:e.slice(0,r-1):(e=ji(e[0])?e[0]:e,n=[])}for(var o,u,c=-1,s=-1,l=-1,f=e.length,h=Object(p.a)(t,2),d=h[0],v=h[1];++l<f;)if((u=e[l])instanceof Oi&&(v[++s]=u))d[++c]=u.field.clone(n[l],u.type,!0);else{var y=n[l];o=void 0===y?l:y,u instanceof tn&&(v[++s]=u)?d[++c]=Ni.new(o,u,!0):u&&u.type&&(v[++s]=u)&&(u instanceof Mn&&(v[s]=u=gt.new(u)),d[++c]=Ni.new(o,u.type,!0))}return t}var Li=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;Object(f.a)(this,t),this.fields=e||[],this.metadata=n||new Map,r||(r=Mi(e)),this.dictionaries=r}return Object(h.a)(t,[{key:e,get:function(){return"Schema"}},{key:"toString",value:function(){return"Schema<{ ".concat(this.fields.map((function(e,t){return"".concat(t,": ").concat(e)})).join(", ")," }>")}},{key:"compareTo",value:function(e){return en.compareSchemas(this,e)}},{key:"select",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n.reduce((function(e,t){return(e[t]=!0)&&e}),Object.create(null));return new t(this.fields.filter((function(e){return i[e.name]})),this.metadata)}},{key:"selectAt",value:function(){for(var e=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return new t(r.map((function(t){return e.fields[t]})).filter(Boolean),this.metadata)}},{key:"assign",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0]instanceof t?n[0]:new t(Si(Ni,n)),a=Object(Ut.a)(this.fields),o=Fi(Fi(new Map,this.metadata),i.metadata),u=i.fields.filter((function(e){var t=a.findIndex((function(t){return t.name===e.name}));return!~t||(a[t]=e.clone({metadata:Fi(Fi(new Map,a[t].metadata),e.metadata)}))&&!1})),c=Mi(u,new Map);return new t([].concat(Object(Ut.a)(a),Object(Ut.a)(u)),o,new Map([].concat(Object(Ut.a)(this.dictionaries),Object(Ut.a)(c))))}}],[{key:"from",value:function(){return t.new(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}},{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return new t(Ii(n)[0])}}]),t}(Symbol.toStringTag),Ni=function(e){function t(e,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;Object(f.a)(this,t),this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}return Object(h.a)(t,[{key:"typeId",get:function(){return this.type.typeId}},{key:e,get:function(){return"Field"}},{key:"toString",value:function(){return"".concat(this.name,": ").concat(this.type)}},{key:"compareTo",value:function(e){return en.compareField(this,e)}},{key:"clone",value:function(){for(var e,n,r,i,a,o,u,c,s,l,f,h=arguments.length,d=new Array(h),v=0;v<h;v++)d[v]=arguments[v];var y=d[0],b=d[1],m=d[2],g=d[3];return d[0]&&"object"===typeof d[0]?(y=void 0===(c=(u=d[0]).name)?this.name:c,b=void 0===(s=u.type)?this.type:s,m=void 0===(l=u.nullable)?this.nullable:l,g=void 0===(f=u.metadata)?this.metadata:f):(e=d,y=void 0===(r=(n=Object(p.a)(e,4))[0])?this.name:r,b=void 0===(i=n[1])?this.type:i,m=void 0===(a=n[2])?this.nullable:a,g=void 0===(o=n[3])?this.metadata:o),t.new(y,b,m,g)}}],[{key:"new",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],u=n[3];return n[0]&&"object"===typeof n[0]&&(i=n[0].name,void 0===a&&(a=n[0].type),void 0===o&&(o=n[0].nullable),void 0===u&&(u=n[0].metadata)),new t("".concat(i),a,o,u)}}]),t}(Symbol.toStringTag);function Fi(e,t){return new Map([].concat(Object(Ut.a)(e||new Map),Object(Ut.a)(t||new Map)))}function Mi(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=-1,r=e.length;++n<r;){var i=e[n],a=i.type;if(tn.isDictionary(a))if(t.has(a.id)){if(t.get(a.id)!==a.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}else t.set(a.id,a.dictionary);a.children&&a.children.length>0&&Mi(a.children,t)}return t}Li.prototype.fields=null,Li.prototype.metadata=null,Li.prototype.dictionaries=null,Ni.prototype.type=null,Ni.prototype.name=null,Ni.prototype.nullable=null,Ni.prototype.metadata=null;var Pi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._run=new Jr,r._offsets=new qn,r}return Object(h.a)(n,[{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Tn(new Ni(t,e.type,!0)),this.numChildren-1}},{key:"clear",value:function(){return this._run.clear(),ht(Object(ft.a)(n.prototype),"clear",this).call(this)}},{key:"_flushPending",value:function(e){var t,n,r=this._run,i=this._offsets,a=this._setValue,o=0,u=Object(s.a)(e);try{for(u.s();!(n=u.n()).done;){var c=Object(p.a)(n.value,2);o=c[0],void 0===(t=c[1])?i.set(o,0):(i.set(o,t.length),a(this,o,r.bind(t)))}}catch(l){u.e(l)}finally{u.f()}}}]),n}(Jn),Ui=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;return Object(f.a)(this,n),(e=t.apply(this,arguments))._run=new Jr,e}return Object(h.a)(n,[{key:"setValue",value:function(e,t){ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,this._run.bind(t))}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0";if(this.numChildren>0)throw new Error("FixedSizeListBuilder can only have one child.");var n=this.children.push(e);return this.type=new Bn(this.type.listSize,new Ni(t,e.type,!0)),n}},{key:"clear",value:function(){return this._run.clear(),ht(Object(ft.a)(n.prototype),"clear",this).call(this)}}]),n}(Qn),Ri=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"set",value:function(e,t){return ht(Object(ft.a)(n.prototype),"set",this).call(this,e,t)}},{key:"setValue",value:function(e,t){t=t instanceof Map?t:new Map(Object.entries(t));var n=this._pending||(this._pending=new Map),r=n.get(e);r&&(this._pendingLength-=r.size),this._pendingLength+=t.size,n.set(e,t)}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren);if(this.numChildren>0)throw new Error("ListBuilder can only have one child.");return this.children[this.numChildren]=e,this.type=new Cn(new Ni(t,e.type,!0),this.type.keysSorted),this.numChildren-1}},{key:"_flushPending",value:function(e){var t=this,n=this._offsets,r=this._setValue;e.forEach((function(e,i){void 0===e?n.set(i,0):(n.set(i,e.size),r(t,i,e))}))}}]),n}(Jn),zi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.numChildren),n=this.children.push(e);return this.type=new In([].concat(Object(Ut.a)(this.type.children),[new Ni(t,e.type,!0)])),n}}]),n}(Qn),Vi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._typeIds=new Wn(new Int8Array(0),1),"function"===typeof e.valueToChildTypeId&&(r._valueToChildTypeId=e.valueToChildTypeId),r}return Object(h.a)(n,[{key:"typeIdToChildIndex",get:function(){return this.type.typeIdToChildIndex}},{key:"append",value:function(e,t){return this.set(this.length,e,t)}},{key:"set",value:function(e,t,n){return void 0===n&&(n=this._valueToChildTypeId(this,t,e)),this.setValid(e,this.isValid(t))&&this.setValue(e,t,n),this}},{key:"setValue",value:function(e,t,r){this._typeIds.set(e,r),ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,t)}},{key:"addChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"".concat(this.children.length),n=this.children.push(e),r=this.type,i=r.children,a=r.mode,o=r.typeIds,u=[].concat(Object(Ut.a)(i),[new Ni(t,e.type)]);return this.type=new En(a,[].concat(Object(Ut.a)(o),[n]),u),n}},{key:"_valueToChildTypeId",value:function(e,t,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.")}}]),n}(Qn),Wi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Vi),Yi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._offsets=new Wn(new Int32Array(0)),r}return Object(h.a)(n,[{key:"setValue",value:function(e,t,r){var i=this.type.typeIdToChildIndex[r];return this._offsets.set(e,this.getChildAt(i).length),ht(Object(ft.a)(n.prototype),"setValue",this).call(this,e,t,r)}}]),n}(Vi),qi=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Rt),Hi=function(e,t,n){e[t]=n%4294967296|0,e[t+1]=n/4294967296|0},$i=function(e,t,n,r){var i=t[n],a=t[n+1];null!=i&&null!=a&&e.set(r.subarray(0,a-i),i)},Ki=function(e,t,n){!function(e,t,n){e[t]=n/864e5|0}(e.values,t,n.valueOf())},Qi=function(e,t,n){var r=e.values;Hi(r,2*t,n.valueOf())},Gi=function(e,t,n){var r=e.stride;e.values[r*t]=n},Ji=function(e,t,n){var r=e.stride;e.values[r*t]=sr(n)},Zi=function(e,t,n){switch(typeof n){case"bigint":e.values64[t]=n;break;case"number":e.values[t*e.stride]=n;break;default:var r=n,i=e.stride,a=be(e.ArrayType,r);e.values.set(a.subarray(0,i),i*t)}},Xi=function(e,t,n){var r=e.values;return Hi(r,2*t,n/1e3)},ea=function(e,t,n){var r=e.values;return Hi(r,2*t,n)},ta=function(e,t,n){return function(e,t,n){e[t]=1e3*n%4294967296|0,e[t+1]=1e3*n/4294967296|0}(e.values,2*t,n)},na=function(e,t,n){return function(e,t,n){e[t]=1e6*n%4294967296|0,e[t+1]=1e6*n/4294967296|0}(e.values,2*t,n)},ra=function(e,t,n){e.values[e.stride*t]=n},ia=function(e,t,n){e.values[e.stride*t]=n},aa=function(e,t,n){e.values.set(n.subarray(0,2),2*t)},oa=function(e,t,n){e.values.set(n.subarray(0,2),2*t)},ua=function(e,t,n){var r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(e.valueOffsets[t],n)},ca=function(e,t,n){var r=e.typeIdToChildIndex[e.typeIds[t]],i=e.getChildAt(r);i&&i.set(t,n)},sa=function(e,t,n){e.values.set(n.subarray(0,2),2*t)},la=function(e,t,n){e.values[t]=12*n[0]+n[1]%12};qi.prototype.visitBool=function(e,t,n){var r=e.offset,i=e.values,a=r+t;n?i[a>>3]|=1<<a%8:i[a>>3]&=~(1<<a%8)},qi.prototype.visitInt=function(e,t,n){e.type.bitWidth<64?Gi(e,t,n):Zi(e,t,n)},qi.prototype.visitInt8=Gi,qi.prototype.visitInt16=Gi,qi.prototype.visitInt32=Gi,qi.prototype.visitInt64=Zi,qi.prototype.visitUint8=Gi,qi.prototype.visitUint16=Gi,qi.prototype.visitUint32=Gi,qi.prototype.visitUint64=Zi,qi.prototype.visitFloat=function(e,t,n){e.type.precision!==xt.HALF?Gi(e,t,n):Ji(e,t,n)},qi.prototype.visitFloat16=Ji,qi.prototype.visitFloat32=Gi,qi.prototype.visitFloat64=Gi,qi.prototype.visitUtf8=function(e,t,n){var r=e.values,i=e.valueOffsets;$i(r,i,t,C(n))},qi.prototype.visitBinary=function(e,t,n){var r=e.values,i=e.valueOffsets;return $i(r,i,t,n)},qi.prototype.visitFixedSizeBinary=function(e,t,n){var r=e.stride;e.values.set(n.subarray(0,r),r*t)},qi.prototype.visitDate=function(e,t,n){e.type.unit===_t.DAY?Ki(e,t,n):Qi(e,t,n)},qi.prototype.visitDateDay=Ki,qi.prototype.visitDateMillisecond=Qi,qi.prototype.visitTimestamp=function(e,t,n){switch(e.type.unit){case Ot.SECOND:return Xi(e,t,n);case Ot.MILLISECOND:return ea(e,t,n);case Ot.MICROSECOND:return ta(e,t,n);case Ot.NANOSECOND:return na(e,t,n)}},qi.prototype.visitTimestampSecond=Xi,qi.prototype.visitTimestampMillisecond=ea,qi.prototype.visitTimestampMicrosecond=ta,qi.prototype.visitTimestampNanosecond=na,qi.prototype.visitTime=function(e,t,n){switch(e.type.unit){case Ot.SECOND:return ra(e,t,n);case Ot.MILLISECOND:return ia(e,t,n);case Ot.MICROSECOND:return aa(e,t,n);case Ot.NANOSECOND:return oa(e,t,n)}},qi.prototype.visitTimeSecond=ra,qi.prototype.visitTimeMillisecond=ia,qi.prototype.visitTimeMicrosecond=aa,qi.prototype.visitTimeNanosecond=oa,qi.prototype.visitDecimal=function(e,t,n){e.values.set(n.subarray(0,4),4*t)},qi.prototype.visitList=function(e,t,n){for(var r=e.getChildAt(0),i=e.valueOffsets,a=-1,o=i[t],u=i[t+1];o<u;)r.set(o++,n.get(++a))},qi.prototype.visitStruct=function(e,t,n){var r,i,a=n instanceof Map?(r=t,i=n,function(e,t,n){return e&&e.set(r,i.get(t.name))}):n instanceof gt?function(e,t){return function(n,r,i){return n&&n.set(e,t.get(i))}}(t,n):Array.isArray(n)?function(e,t){return function(n,r,i){return n&&n.set(e,t[i])}}(t,n):function(e,t){return function(n,r,i){return n&&n.set(e,t[r.name])}}(t,n);e.type.children.forEach((function(t,n){return a(e.getChildAt(n),t,n)}))},qi.prototype.visitUnion=function(e,t,n){e.type.mode===jt.Dense?ua(e,t,n):ca(e,t,n)},qi.prototype.visitDenseUnion=ua,qi.prototype.visitSparseUnion=ca,qi.prototype.visitDictionary=function(e,t,n){var r=e.getKey(t);null!==r&&e.setValue(r,n)},qi.prototype.visitInterval=function(e,t,n){e.type.unit===St.DAY_TIME?sa(e,t,n):la(e,t,n)},qi.prototype.visitIntervalDayTime=sa,qi.prototype.visitIntervalYearMonth=la,qi.prototype.visitFixedSizeList=function(e,t,n){for(var r=e.getChildAt(0),i=e.stride,a=-1,o=t*i;++a<i;)r.set(o+a,n.get(a))},qi.prototype.visitMap=function(e,t,n){for(var r=e.getChildAt(0),i=e.valueOffsets,a=n instanceof Map?Object(Ut.a)(n):Object.entries(n),o=-1,u=i[t],c=i[t+1];u<c;)r.set(u++,a[++o])};var fa,ha=new qi,da=new(function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"visitNull",value:function(){return Xn}},{key:"visitBool",value:function(){return Zn}},{key:"visitInt",value:function(){return Sr}},{key:"visitInt8",value:function(){return Tr}},{key:"visitInt16",value:function(){return Ir}},{key:"visitInt32",value:function(){return Er}},{key:"visitInt64",value:function(){return Ar}},{key:"visitUint8",value:function(){return Br}},{key:"visitUint16",value:function(){return Cr}},{key:"visitUint32",value:function(){return Dr}},{key:"visitUint64",value:function(){return Lr}},{key:"visitFloat",value:function(){return hr}},{key:"visitFloat16",value:function(){return dr}},{key:"visitFloat32",value:function(){return pr}},{key:"visitFloat64",value:function(){return vr}},{key:"visitUtf8",value:function(){return Gr}},{key:"visitBinary",value:function(){return Qr}},{key:"visitFixedSizeBinary",value:function(){return ar}},{key:"visitDate",value:function(){return er}},{key:"visitDateDay",value:function(){return tr}},{key:"visitDateMillisecond",value:function(){return nr}},{key:"visitTimestamp",value:function(){return zr}},{key:"visitTimestampSecond",value:function(){return Vr}},{key:"visitTimestampMillisecond",value:function(){return Wr}},{key:"visitTimestampMicrosecond",value:function(){return Yr}},{key:"visitTimestampNanosecond",value:function(){return qr}},{key:"visitTime",value:function(){return Fr}},{key:"visitTimeSecond",value:function(){return Mr}},{key:"visitTimeMillisecond",value:function(){return Pr}},{key:"visitTimeMicrosecond",value:function(){return Ur}},{key:"visitTimeNanosecond",value:function(){return Rr}},{key:"visitDecimal",value:function(){return rr}},{key:"visitList",value:function(){return Pi}},{key:"visitStruct",value:function(){return zi}},{key:"visitUnion",value:function(){return Vi}},{key:"visitDenseUnion",value:function(){return Yi}},{key:"visitSparseUnion",value:function(){return Wi}},{key:"visitDictionary",value:function(){return ir}},{key:"visitInterval",value:function(){return Hr}},{key:"visitIntervalDayTime",value:function(){return $r}},{key:"visitIntervalYearMonth",value:function(){return Kr}},{key:"visitFixedSizeList",value:function(){return Ui}},{key:"visitMap",value:function(){return Ri}}]),n}(Rt));Qn.new=function e(t){var n=t.type,r=new(da.getVisitFn(n)())(t);if(n.children&&n.children.length>0){var i=t.children||[],a={nullValues:t.nullValues},o=Array.isArray(i)?function(e,t){return i[t]||a}:function(e){var t=e.name;return i[t]||a};n.children.forEach((function(t,n){var i=t.type,a=o(t,n);r.children.push(e(Object(lt.a)(Object(lt.a)({},a),{},{type:i})))}))}return r},Object.keys(wt).map((function(e){return wt[e]})).filter((function(e){return"number"===typeof e&&e!==wt.NONE})).forEach((function(e){da.visit(e).prototype._setValue=ha.getVisitFn(e)})),Gr.prototype._setValue=ha.visitBinary,function(e){!function(t){!function(t){!function(t){var n=function(){function t(){Object(f.a)(this,t),this.bb=null,this.bb_pos=0}return Object(h.a)(t,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"version",value:function(){var e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):dt.apache.arrow.flatbuf.MetadataVersion.V1}},{key:"schema",value:function(e){var t=this.bb.__offset(this.bb_pos,6);return t?(e||new dt.apache.arrow.flatbuf.Schema).__init(this.bb.__indirect(this.bb_pos+t),this.bb):null}},{key:"dictionaries",value:function(t,n){var r=this.bb.__offset(this.bb_pos,8);return r?(n||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}},{key:"dictionariesLength",value:function(){var e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}},{key:"recordBatches",value:function(t,n){var r=this.bb.__offset(this.bb_pos,10);return r?(n||new e.apache.arrow.flatbuf.Block).__init(this.bb.__vector(this.bb_pos+r)+24*t,this.bb):null}},{key:"recordBatchesLength",value:function(){var e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}}],[{key:"getRootAsFooter",value:function(e,n){return(n||new t).__init(e.readInt32(e.position())+e.position(),e)}},{key:"startFooter",value:function(e){e.startObject(4)}},{key:"addVersion",value:function(e,t){e.addFieldInt16(0,t,dt.apache.arrow.flatbuf.MetadataVersion.V1)}},{key:"addSchema",value:function(e,t){e.addFieldOffset(1,t,0)}},{key:"addDictionaries",value:function(e,t){e.addFieldOffset(2,t,0)}},{key:"startDictionariesVector",value:function(e,t){e.startVector(24,t,8)}},{key:"addRecordBatches",value:function(e,t){e.addFieldOffset(3,t,0)}},{key:"startRecordBatchesVector",value:function(e,t){e.startVector(24,t,8)}},{key:"endFooter",value:function(e){return e.endObject()}},{key:"finishFooterBuffer",value:function(e,t){e.finish(t)}},{key:"createFooter",value:function(e,n,r,i,a){return t.startFooter(e),t.addVersion(e,n),t.addSchema(e,r),t.addDictionaries(e,i),t.addRecordBatches(e,a),t.endFooter(e)}}]),t}();t.Footer=n}(t.flatbuf||(t.flatbuf={}))}(t.arrow||(t.arrow={}))}(e.apache||(e.apache={}))}(fa||(fa={})),function(e){!function(e){!function(e){!function(e){var t=function(){function e(){Object(f.a)(this,e),this.bb=null,this.bb_pos=0}return Object(h.a)(e,[{key:"__init",value:function(e,t){return this.bb_pos=e,this.bb=t,this}},{key:"offset",value:function(){return this.bb.readInt64(this.bb_pos)}},{key:"metaDataLength",value:function(){return this.bb.readInt32(this.bb_pos+8)}},{key:"bodyLength",value:function(){return this.bb.readInt64(this.bb_pos+16)}}],[{key:"createBlock",value:function(e,t,n,r){return e.prep(8,24),e.writeInt64(r),e.pad(4),e.writeInt32(n),e.writeInt64(t),e.offset()}}]),e}();e.Block=t}(e.flatbuf||(e.flatbuf={}))}(e.arrow||(e.arrow={}))}(e.apache||(e.apache={}))}(fa||(fa={}));var pa=w.Long,va=w.Builder,ya=w.ByteBuffer,ba=fa.apache.arrow.flatbuf.Block,ma=fa.apache.arrow.flatbuf.Footer,ga=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.V4,r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;Object(f.a)(this,e),this.schema=t,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}return Object(h.a)(e,[{key:"numRecordBatches",get:function(){return this._recordBatches.length}},{key:"numDictionaries",get:function(){return this._dictionaryBatches.length}},{key:"recordBatches",value:d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=-1,r=this.numRecordBatches;case 1:if(!(++n<r)){e.next=7;break}if(!(t=this.getRecordBatch(n))){e.next=5;break}return e.next=5,t;case 5:e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"dictionaryBatches",value:d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=-1,r=this.numDictionaries;case 1:if(!(++n<r)){e.next=7;break}if(!(t=this.getDictionaryBatch(n))){e.next=5;break}return e.next=5,t;case 5:e.next=1;break;case 7:case"end":return e.stop()}}),e,this)}))},{key:"getRecordBatch",value:function(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}},{key:"getDictionaryBatch",value:function(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}],[{key:"decode",value:function(e){e=new ya(_e(e));var t=ma.getRootAsFooter(e),n=Li.decode(t.schema());return new wa(n,t)}},{key:"encode",value:function(e){var t=new va,n=Li.encode(t,e.schema);ma.startRecordBatchesVector(t,e.numRecordBatches),Object(Ut.a)(e.recordBatches()).slice().reverse().forEach((function(e){return ka.encode(t,e)}));var r=t.endVector();ma.startDictionariesVector(t,e.numDictionaries),Object(Ut.a)(e.dictionaryBatches()).slice().reverse().forEach((function(e){return ka.encode(t,e)}));var i=t.endVector();return ma.startFooter(t),ma.addSchema(t,n),ma.addVersion(t,It.V4),ma.addRecordBatches(t,r),ma.addDictionaries(t,i),ma.finishFooterBuffer(t,ma.endFooter(t)),t.asUint8Array()}}]),e}(),wa=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this,e,r.version()))._footer=r,i}return Object(h.a)(n,[{key:"numRecordBatches",get:function(){return this._footer.recordBatchesLength()}},{key:"numDictionaries",get:function(){return this._footer.dictionariesLength()}},{key:"getRecordBatch",value:function(e){if(e>=0&&e<this.numRecordBatches){var t=this._footer.recordBatches(e);if(t)return ka.decode(t)}return null}},{key:"getDictionaryBatch",value:function(e){if(e>=0&&e<this.numDictionaries){var t=this._footer.dictionaries(e);if(t)return ka.decode(t)}return null}}]),n}(ga),ka=function(){function e(t,n,r){Object(f.a)(this,e),this.metaDataLength=t,this.offset="number"===typeof r?r:r.low,this.bodyLength="number"===typeof n?n:n.low}return Object(h.a)(e,null,[{key:"decode",value:function(t){return new e(t.metaDataLength(),t.bodyLength(),t.offset())}},{key:"encode",value:function(e,t){var n=t.metaDataLength,r=new pa(t.offset,0),i=new pa(t.bodyLength,0);return ba.createBlock(e,r,n,i)}}]),e}();function _a(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Oa(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Oa(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(Oa=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Oa(e)}var xa=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"write",value:function(e){if((e=_e(e)).byteLength>0)return ht(Object(ft.a)(n.prototype),"write",this).call(this,e)}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?B(this.toUint8Array(!0)):this.toUint8Array(!1).then(B)}},{key:"toUint8Array",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?ye(this._values)[0]:Object(l.a)(d.mark((function t(){var n,r,i,a,o,u,c,s;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=[],r=0,i=!1,a=!1,t.prev=3,u=_a(e);case 5:return t.next=7,u.next();case 7:if(!(i=!(c=t.sent).done)){t.next=14;break}s=c.value,n.push(s),r+=s.byteLength;case 11:i=!1,t.next=5;break;case 14:t.next=20;break;case 16:t.prev=16,t.t0=t.catch(3),a=!0,o=t.t0;case 20:if(t.prev=20,t.prev=21,!i||null==u.return){t.next=25;break}return t.next=25,u.return();case 25:if(t.prev=25,!a){t.next=28;break}throw o;case 28:return t.finish(25);case 29:return t.finish(20);case 30:return t.abrupt("return",ye(n,r)[0]);case 31:case"end":return t.stop()}}),t,null,[[3,16,20,30],[21,,25,29]])})))()}}]),n}(P),ja=function(e){function t(e){Object(f.a)(this,t),e&&(this.source=new Ta(et.fromIterable(e)))}return Object(h.a)(t,[{key:e,value:function(){return this}},{key:"next",value:function(e){return this.source.next(e)}},{key:"throw",value:function(e){return this.source.throw(e)}},{key:"return",value:function(e){return this.source.return(e)}},{key:"peek",value:function(e){return this.source.peek(e)}},{key:"read",value:function(e){return this.source.read(e)}}]),t}(Symbol.iterator),Sa=function(e){function t(e){Object(f.a)(this,t),e instanceof t?this.source=e.source:e instanceof xa?this.source=new Ia(et.fromAsyncIterable(e)):se(e)?this.source=new Ia(et.fromNodeStream(e)):ue(e)?this.source=new Ia(et.fromDOMStream(e)):ae(e)?this.source=new Ia(et.fromDOMStream(e.body)):ee(e)?this.source=new Ia(et.fromIterable(e)):(X(e)||te(e))&&(this.source=new Ia(et.fromAsyncIterable(e)))}return Object(h.a)(t,[{key:e,value:function(){return this}},{key:"next",value:function(e){return this.source.next(e)}},{key:"throw",value:function(e){return this.source.throw(e)}},{key:"return",value:function(e){return this.source.return(e)}},{key:"closed",get:function(){return this.source.closed}},{key:"cancel",value:function(e){return this.source.cancel(e)}},{key:"peek",value:function(e){return this.source.peek(e)}},{key:"read",value:function(e){return this.source.read(e)}}]),t}(Symbol.asyncIterator),Ta=function(){function e(t){Object(f.a)(this,e),this.source=t}return Object(h.a)(e,[{key:"cancel",value:function(e){this.return(e)}},{key:"peek",value:function(e){return this.next(e,"peek").value}},{key:"read",value:function(e){return this.next(e,"read").value}},{key:"next",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"read";return this.source.next({cmd:t,size:e})}},{key:"throw",value:function(e){return Object.create(this.source.throw&&this.source.throw(e)||N)}},{key:"return",value:function(e){return Object.create(this.source.return&&this.source.return(e)||N)}}]),e}(),Ia=function(){function e(t){var n=this;Object(f.a)(this,e),this.source=t,this._closedPromise=new Promise((function(e){return n._closedPromiseResolve=e}))}return Object(h.a)(e,[{key:"cancel",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.return(t);case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"closed",get:function(){return this._closedPromise}},{key:"read",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.next(t,"read");case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"peek",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.next(t,"peek");case 2:return e.abrupt("return",e.sent.value);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"next",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:"read",e.next=3,this.source.next({cmd:n,size:t});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"throw",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t1=this.source.throw,!e.t1){e.next=5;break}return e.next=4,this.source.throw(t);case 4:e.t1=e.sent;case 5:if(e.t0=e.t1,e.t0){e.next=8;break}e.t0=N;case 8:return n=e.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,e.abrupt("return",Object.create(n));case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"return",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t1=this.source.return,!e.t1){e.next=5;break}return e.next=4,this.source.return(t);case 4:e.t1=e.sent;case 5:if(e.t0=e.t1,e.t0){e.next=8;break}e.t0=N;case 8:return n=e.t0,this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,e.abrupt("return",Object.create(n));case 12:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Ea=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).position=0,i.buffer=_e(e),i.size="undefined"===typeof r?i.buffer.byteLength:r,i}return Object(h.a)(n,[{key:"readInt32",value:function(e){var t=this.readAt(e,4),n=t.buffer,r=t.byteOffset;return new DataView(n,r).getInt32(0,!0)}},{key:"seek",value:function(e){return this.position=Math.min(e,this.size),e<this.size}},{key:"read",value:function(e){var t=this.buffer,n=this.size,r=this.position;return t&&r<n?("number"!==typeof e&&(e=1/0),this.position=Math.min(n,r+Math.min(n-r,e)),t.subarray(r,this.position)):null}},{key:"readAt",value:function(e,t){var n=this.buffer,r=Math.min(this.size,e+t);return n?n.subarray(e,r):new Uint8Array(t)}},{key:"close",value:function(){this.buffer&&(this.buffer=null)}},{key:"throw",value:function(e){return this.close(),{done:!0,value:e}}},{key:"return",value:function(e){return this.close(),{done:!0,value:e}}}]),n}(ja),Aa=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).position=0,i._handle=e,"number"===typeof r?i.size=r:i._pending=Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.stat();case 2:i.size=t.sent.size,delete i._pending;case 4:case"end":return t.stop()}}),t)})))(),i}return Object(h.a)(n,[{key:"readInt32",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readAt(t,4);case 2:return n=e.sent,r=n.buffer,i=n.byteOffset,e.abrupt("return",new DataView(r,i).getInt32(0,!0));case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"seek",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._pending,!e.t0){e.next=4;break}return e.next=4,this._pending;case 4:return this.position=Math.min(t,this.size),e.abrupt("return",t<this.size);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"read",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r,i,a,o,u,c,s,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._pending,!e.t0){e.next=4;break}return e.next=4,this._pending;case 4:if(n=this._handle,r=this.size,i=this.position,!(n&&i<r)){e.next=18;break}"number"!==typeof t&&(t=1/0),a=i,o=0,u=0,c=Math.min(r,a+Math.min(r-a,t)),s=new Uint8Array(Math.max(0,(this.position=c)-a));case 10:if(!((a+=u)<c&&(o+=u)<s.byteLength)){e.next=17;break}return e.next=13,n.read(s,o,s.byteLength-o,a);case 13:l=e.sent,u=l.bytesRead,e.next=10;break;case 17:return e.abrupt("return",s);case 18:return e.abrupt("return",null);case 19:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"readAt",value:function(){var e=Object(l.a)(d.mark((function e(t,n){var r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._pending,!e.t0){e.next=4;break}return e.next=4,this._pending;case 4:if(r=this._handle,i=this.size,!(r&&t+n<i)){e.next=11;break}return a=Math.min(i,t+n),o=new Uint8Array(a-t),e.next=10,r.read(o,0,n,t);case 10:return e.abrupt("return",e.sent.buffer);case 11:return e.abrupt("return",new Uint8Array(n));case 12:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"close",value:function(){var e=Object(l.a)(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._handle,this._handle=null,e.t0=t,!e.t0){e.next=6;break}return e.next=6,t.close();case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"throw",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:return e.abrupt("return",{done:!0,value:t});case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"return",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.close();case 2:return e.abrupt("return",{done:!0,value:t});case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(Sa);function Ba(e){return e<0&&(e=4294967295+e+1),"0x".concat(e.toString(16))}var Ca=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8],Da=function(){function e(t){Object(f.a)(this,e),this.buffer=t}return Object(h.a)(e,[{key:"high",value:function(){return this.buffer[1]}},{key:"low",value:function(){return this.buffer[0]}},{key:"_times",value:function(e){var t=new Uint32Array([this.buffer[1]>>>16,65535&this.buffer[1],this.buffer[0]>>>16,65535&this.buffer[0]]),n=new Uint32Array([e.buffer[1]>>>16,65535&e.buffer[1],e.buffer[0]>>>16,65535&e.buffer[0]]),r=t[3]*n[3];this.buffer[0]=65535&r;var i=r>>>16;return i+=r=t[2]*n[3],i+=r=t[3]*n[2]>>>0,this.buffer[0]+=i<<16,this.buffer[1]=i>>>0<r?65536:0,this.buffer[1]+=i>>>16,this.buffer[1]+=t[1]*n[3]+t[2]*n[2]+t[3]*n[1],this.buffer[1]+=t[0]*n[3]+t[1]*n[2]+t[2]*n[1]+t[3]*n[0]<<16,this}},{key:"_plus",value:function(e){var t=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],t<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=t}},{key:"lessThan",value:function(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}},{key:"equals",value:function(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}},{key:"greaterThan",value:function(e){return e.lessThan(this)}},{key:"hex",value:function(){return"".concat(Ba(this.buffer[1])," ").concat(Ba(this.buffer[0]))}}]),e}(),La=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"times",value:function(e){return this._times(e),this}},{key:"plus",value:function(e){return this._plus(e),this}}],[{key:"from",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString("string"===typeof e?e:e.toString(),t)}},{key:"fromNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString(e.toString(),t)}},{key:"fromString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=e.length,i=new n(t),a=0;a<r;){var o=8<r-a?8:r-a,u=new n(new Uint32Array([parseInt(e.substr(a,o),10),0])),c=new n(new Uint32Array([Ca[o],0]));i.times(c),i.plus(u),a+=o}return i}},{key:"convertArray",value:function(e){for(var t=new Uint32Array(2*e.length),r=-1,i=e.length;++r<i;)n.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}},{key:"multiply",value:function(e,t){return new n(new Uint32Array(e.buffer)).times(t)}},{key:"add",value:function(e,t){return new n(new Uint32Array(e.buffer)).plus(t)}}]),n}(Da),Na=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],0==this.buffer[0]&&++this.buffer[1],this}},{key:"times",value:function(e){return this._times(e),this}},{key:"plus",value:function(e){return this._plus(e),this}},{key:"lessThan",value:function(e){var t=this.buffer[1]<<0,n=e.buffer[1]<<0;return t<n||t===n&&this.buffer[0]<e.buffer[0]}}],[{key:"from",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString("string"===typeof e?e:e.toString(),t)}},{key:"fromNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2);return n.fromString(e.toString(),t)}},{key:"fromString",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(2),r=e.startsWith("-"),i=e.length,a=new n(t),o=r?1:0;o<i;){var u=8<i-o?8:i-o,c=new n(new Uint32Array([parseInt(e.substr(o,u),10),0])),s=new n(new Uint32Array([Ca[u],0]));a.times(s),a.plus(c),o+=u}return r?a.negate():a}},{key:"convertArray",value:function(e){for(var t=new Uint32Array(2*e.length),r=-1,i=e.length;++r<i;)n.from(e[r],new Uint32Array(t.buffer,t.byteOffset+2*r*4,2));return t}},{key:"multiply",value:function(e,t){return new n(new Uint32Array(e.buffer)).times(t)}},{key:"add",value:function(e,t){return new n(new Uint32Array(e.buffer)).plus(t)}}]),n}(Da),Fa=function(){function e(t){Object(f.a)(this,e),this.buffer=t}return Object(h.a)(e,[{key:"high",value:function(){return new Na(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}},{key:"low",value:function(){return new Na(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}},{key:"negate",value:function(){return this.buffer[0]=1+~this.buffer[0],this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],0==this.buffer[0]&&++this.buffer[1],0==this.buffer[1]&&++this.buffer[2],0==this.buffer[2]&&++this.buffer[3],this}},{key:"times",value:function(e){var t=new La(new Uint32Array([this.buffer[3],0])),n=new La(new Uint32Array([this.buffer[2],0])),r=new La(new Uint32Array([this.buffer[1],0])),i=new La(new Uint32Array([this.buffer[0],0])),a=new La(new Uint32Array([e.buffer[3],0])),o=new La(new Uint32Array([e.buffer[2],0])),u=new La(new Uint32Array([e.buffer[1],0])),c=new La(new Uint32Array([e.buffer[0],0])),s=La.multiply(i,c);this.buffer[0]=s.low();var l=new La(new Uint32Array([s.high(),0]));return s=La.multiply(r,c),l.plus(s),s=La.multiply(i,u),l.plus(s),this.buffer[1]=l.low(),this.buffer[3]=l.lessThan(s)?1:0,this.buffer[2]=l.high(),new La(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(La.multiply(n,c)).plus(La.multiply(r,u)).plus(La.multiply(i,o)),this.buffer[3]+=La.multiply(t,c).plus(La.multiply(n,u)).plus(La.multiply(r,o)).plus(La.multiply(i,a)).low(),this}},{key:"plus",value:function(e){var t=new Uint32Array(4);return t[3]=this.buffer[3]+e.buffer[3]>>>0,t[2]=this.buffer[2]+e.buffer[2]>>>0,t[1]=this.buffer[1]+e.buffer[1]>>>0,t[0]=this.buffer[0]+e.buffer[0]>>>0,t[0]<this.buffer[0]>>>0&&++t[1],t[1]<this.buffer[1]>>>0&&++t[2],t[2]<this.buffer[2]>>>0&&++t[3],this.buffer[3]=t[3],this.buffer[2]=t[2],this.buffer[1]=t[1],this.buffer[0]=t[0],this}},{key:"hex",value:function(){return"".concat(Ba(this.buffer[3])," ").concat(Ba(this.buffer[2])," ").concat(Ba(this.buffer[1])," ").concat(Ba(this.buffer[0]))}}],[{key:"multiply",value:function(t,n){return new e(new Uint32Array(t.buffer)).times(n)}},{key:"add",value:function(t,n){return new e(new Uint32Array(t.buffer)).plus(n)}},{key:"from",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return e.fromString("string"===typeof t?t:t.toString(),n)}},{key:"fromNumber",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4);return e.fromString(t.toString(),n)}},{key:"fromString",value:function(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Uint32Array(4),r=t.startsWith("-"),i=t.length,a=new e(n),o=r?1:0;o<i;){var u=8<i-o?8:i-o,c=new e(new Uint32Array([parseInt(t.substr(o,u),10),0,0,0])),s=new e(new Uint32Array([Ca[u],0,0,0]));a.times(s),a.plus(c),o+=u}return r?a.negate():a}},{key:"convertArray",value:function(t){for(var n=new Uint32Array(4*t.length),r=-1,i=t.length;++r<i;)e.from(t[r],new Uint32Array(n.buffer,n.byteOffset+16*r,4));return n}}]),e}(),Ma=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r,i,a){var o;return Object(f.a)(this,n),(o=t.call(this)).nodesIndex=-1,o.buffersIndex=-1,o.bytes=e,o.nodes=r,o.buffers=i,o.dictionaries=a,o}return Object(h.a)(n,[{key:"visit",value:function(e){return ht(Object(ft.a)(n.prototype),"visit",this).call(this,e instanceof Ni?e.type:e)}},{key:"visitNull",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length;return Mn.Null(e,0,n)}},{key:"visitBool",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Bool(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitInt",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Int(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitFloat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Float(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitUtf8",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Utf8(e,0,n,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}},{key:"visitBinary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Binary(e,0,n,r,this.readNullBitmap(e,r),this.readOffsets(e),this.readData(e))}},{key:"visitFixedSizeBinary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.FixedSizeBinary(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Date(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitTimestamp",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Timestamp(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitTime",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Time(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitDecimal",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Decimal(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.List(e,0,n,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}},{key:"visitStruct",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Struct(e,0,n,r,this.readNullBitmap(e,r),this.visitMany(e.children))}},{key:"visitUnion",value:function(e){return e.mode===jt.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}},{key:"visitDenseUnion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Union(e,0,n,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.readOffsets(e),this.visitMany(e.children))}},{key:"visitSparseUnion",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Union(e,0,n,r,this.readNullBitmap(e,r),this.readTypeIds(e),this.visitMany(e.children))}},{key:"visitDictionary",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Dictionary(e,0,n,r,this.readNullBitmap(e,r),this.readData(e.indices),this.readDictionary(e))}},{key:"visitInterval",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Interval(e,0,n,r,this.readNullBitmap(e,r),this.readData(e))}},{key:"visitFixedSizeList",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.FixedSizeList(e,0,n,r,this.readNullBitmap(e,r),this.visit(e.children[0]))}},{key:"visitMap",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextFieldNode(),n=t.length,r=t.nullCount;return Mn.Map(e,0,n,r,this.readNullBitmap(e,r),this.readOffsets(e),this.visit(e.children[0]))}},{key:"nextFieldNode",value:function(){return this.nodes[++this.nodesIndex]}},{key:"nextBufferRange",value:function(){return this.buffers[++this.buffersIndex]}},{key:"readNullBitmap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange();return t>0&&this.readData(e,n)||new Uint8Array(0)}},{key:"readOffsets",value:function(e,t){return this.readData(e,t)}},{key:"readTypeIds",value:function(e,t){return this.readData(e,t)}},{key:"readData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=t.length,r=t.offset;return this.bytes.subarray(r,r+n)}},{key:"readDictionary",value:function(e){return this.dictionaries.get(e.id)}}]),n}(Rt),Pa=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r,i,a){var o;return Object(f.a)(this,n),(o=t.call(this,new Uint8Array(0),r,i,a)).sources=e,o}return Object(h.a)(n,[{key:"readNullBitmap",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.nextBufferRange(),r=n.offset;return t<=0?new Uint8Array(0):Lt(this.sources[r])}},{key:"readOffsets",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=t.offset;return be(Uint8Array,be(Int32Array,this.sources[n]))}},{key:"readTypeIds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=t.offset;return be(Uint8Array,be(e.ArrayType,this.sources[n]))}},{key:"readData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.nextBufferRange(),n=t.offset,r=this.sources;return tn.isTimestamp(e)||(tn.isInt(e)||tn.isTime(e))&&64===e.bitWidth||tn.isDate(e)&&e.unit===_t.MILLISECOND?be(Uint8Array,Na.convertArray(r[n])):tn.isDecimal(e)?be(Uint8Array,Fa.convertArray(r[n])):tn.isBinary(e)||tn.isFixedSizeBinary(e)?Ua(r[n]):tn.isBool(e)?Lt(r[n]):tn.isUtf8(e)?C(r[n].join("")):be(Uint8Array,be(e.ArrayType,r[n].map((function(e){return+e}))))}}]),n}(Ma);function Ua(e){for(var t=e.join(""),n=new Uint8Array(t.length/2),r=0;r<t.length;r+=2)n[r>>1]=parseInt(t.substr(r,2),16);return n}var Ra=w.Long,za=dt.apache.arrow.flatbuf.Null,Va=dt.apache.arrow.flatbuf.Int,Wa=dt.apache.arrow.flatbuf.FloatingPoint,Ya=dt.apache.arrow.flatbuf.Binary,qa=dt.apache.arrow.flatbuf.Bool,Ha=dt.apache.arrow.flatbuf.Utf8,$a=dt.apache.arrow.flatbuf.Decimal,Ka=dt.apache.arrow.flatbuf.Date,Qa=dt.apache.arrow.flatbuf.Time,Ga=dt.apache.arrow.flatbuf.Timestamp,Ja=dt.apache.arrow.flatbuf.Interval,Za=dt.apache.arrow.flatbuf.List,Xa=dt.apache.arrow.flatbuf.Struct_,eo=dt.apache.arrow.flatbuf.Union,to=dt.apache.arrow.flatbuf.DictionaryEncoding,no=dt.apache.arrow.flatbuf.FixedSizeBinary,ro=dt.apache.arrow.flatbuf.FixedSizeList,io=dt.apache.arrow.flatbuf.Map,ao=new(function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"visit",value:function(e,t){return null==e||null==t?void 0:ht(Object(ft.a)(n.prototype),"visit",this).call(this,e,t)}},{key:"visitNull",value:function(e,t){return za.startNull(t),za.endNull(t)}},{key:"visitInt",value:function(e,t){return Va.startInt(t),Va.addBitWidth(t,e.bitWidth),Va.addIsSigned(t,e.isSigned),Va.endInt(t)}},{key:"visitFloat",value:function(e,t){return Wa.startFloatingPoint(t),Wa.addPrecision(t,e.precision),Wa.endFloatingPoint(t)}},{key:"visitBinary",value:function(e,t){return Ya.startBinary(t),Ya.endBinary(t)}},{key:"visitBool",value:function(e,t){return qa.startBool(t),qa.endBool(t)}},{key:"visitUtf8",value:function(e,t){return Ha.startUtf8(t),Ha.endUtf8(t)}},{key:"visitDecimal",value:function(e,t){return $a.startDecimal(t),$a.addScale(t,e.scale),$a.addPrecision(t,e.precision),$a.endDecimal(t)}},{key:"visitDate",value:function(e,t){return Ka.startDate(t),Ka.addUnit(t,e.unit),Ka.endDate(t)}},{key:"visitTime",value:function(e,t){return Qa.startTime(t),Qa.addUnit(t,e.unit),Qa.addBitWidth(t,e.bitWidth),Qa.endTime(t)}},{key:"visitTimestamp",value:function(e,t){var n=e.timezone&&t.createString(e.timezone)||void 0;return Ga.startTimestamp(t),Ga.addUnit(t,e.unit),void 0!==n&&Ga.addTimezone(t,n),Ga.endTimestamp(t)}},{key:"visitInterval",value:function(e,t){return Ja.startInterval(t),Ja.addUnit(t,e.unit),Ja.endInterval(t)}},{key:"visitList",value:function(e,t){return Za.startList(t),Za.endList(t)}},{key:"visitStruct",value:function(e,t){return Xa.startStruct_(t),Xa.endStruct_(t)}},{key:"visitUnion",value:function(e,t){eo.startTypeIdsVector(t,e.typeIds.length);var n=eo.createTypeIdsVector(t,e.typeIds);return eo.startUnion(t),eo.addMode(t,e.mode),eo.addTypeIds(t,n),eo.endUnion(t)}},{key:"visitDictionary",value:function(e,t){var n=this.visit(e.indices,t);return to.startDictionaryEncoding(t),to.addId(t,new Ra(e.id,0)),to.addIsOrdered(t,e.isOrdered),void 0!==n&&to.addIndexType(t,n),to.endDictionaryEncoding(t)}},{key:"visitFixedSizeBinary",value:function(e,t){return no.startFixedSizeBinary(t),no.addByteWidth(t,e.byteWidth),no.endFixedSizeBinary(t)}},{key:"visitFixedSizeList",value:function(e,t){return ro.startFixedSizeList(t),ro.addListSize(t,e.listSize),ro.endFixedSizeList(t)}},{key:"visitMap",value:function(e,t){return io.startMap(t),io.addKeysSorted(t,e.keysSorted),io.endMap(t)}}]),n}(Rt));function oo(e){return new To(e.count,function e(t){return(t||[]).reduce((function(t,n){return[].concat(Object(Ut.a)(t),[new Ao(n.count,(r=n.VALIDITY,(r||[]).reduce((function(e,t){return e+ +(0===t)}),0)))],Object(Ut.a)(e(n.children)));var r}),[])}(e.columns),function e(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=-1,i=(t||[]).length;++r<i;){var a=t[r];a.VALIDITY&&n.push(new Eo(n.length,a.VALIDITY.length)),a.TYPE&&n.push(new Eo(n.length,a.TYPE.length)),a.OFFSET&&n.push(new Eo(n.length,a.OFFSET.length)),a.DATA&&n.push(new Eo(n.length,a.DATA.length)),n=e(a.children,n)}return n}(e.columns))}function uo(e,t){return(e.fields||[]).filter(Boolean).map((function(e){return Ni.fromJSON(e,t)}))}function co(e,t){return(e.children||[]).filter(Boolean).map((function(e){return Ni.fromJSON(e,t)}))}function so(e){return new Map(Object.entries(e||{}))}function lo(e){return new rn(e.isSigned,e.bitWidth)}function fo(e,t){var n=e.type.name;switch(n){case"NONE":case"null":return new nn;case"binary":return new bn;case"utf8":return new mn;case"bool":return new gn;case"list":return new Tn((t||[])[0]);case"struct":case"struct_":return new In(t||[])}switch(n){case"int":var r=e.type;return new rn(r.isSigned,r.bitWidth);case"floatingpoint":var i=e.type;return new dn(xt[i.precision]);case"decimal":var a=e.type;return new wn(a.scale,a.precision);case"date":var o=e.type;return new kn(_t[o.unit]);case"time":var u=e.type;return new xn(Ot[u.unit],u.bitWidth);case"timestamp":var c=e.type;return new jn(Ot[c.unit],c.timezone);case"interval":var s=e.type;return new Sn(St[s.unit]);case"union":var l=e.type;return new En(jt[l.mode],l.typeIds||[],t||[]);case"fixedsizebinary":var f=e.type;return new An(f.byteWidth);case"fixedsizelist":var h=e.type;return new Bn(h.listSize,(t||[])[0]);case"map":var d=e.type;return new Cn((t||[])[0],d.keysSorted)}throw new Error('Unrecognized type: "'.concat(n,'"'))}var ho=w.Long,po=w.Builder,vo=w.ByteBuffer,yo=dt.apache.arrow.flatbuf.Type,bo=dt.apache.arrow.flatbuf.Field,mo=dt.apache.arrow.flatbuf.Schema,go=dt.apache.arrow.flatbuf.Buffer,wo=mt.apache.arrow.flatbuf.Message,ko=dt.apache.arrow.flatbuf.KeyValue,_o=mt.apache.arrow.flatbuf.FieldNode,Oo=dt.apache.arrow.flatbuf.Endianness,xo=mt.apache.arrow.flatbuf.RecordBatch,jo=mt.apache.arrow.flatbuf.DictionaryBatch,So=function(){function e(t,n,r,i){Object(f.a)(this,e),this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=function(){return i}),this._bodyLength="number"===typeof t?t:t.low}return Object(h.a)(e,[{key:"type",get:function(){return this.headerType}},{key:"version",get:function(){return this._version}},{key:"headerType",get:function(){return this._headerType}},{key:"bodyLength",get:function(){return this._bodyLength}},{key:"header",value:function(){return this._createHeader()}},{key:"isSchema",value:function(){return this.headerType===Tt.Schema}},{key:"isRecordBatch",value:function(){return this.headerType===Tt.RecordBatch}},{key:"isDictionaryBatch",value:function(){return this.headerType===Tt.DictionaryBatch}}],[{key:"fromJSON",value:function(t,n){var r=new e(0,It.V4,n);return r._createHeader=function(e,t){return function(){switch(t){case Tt.Schema:return Li.fromJSON(e);case Tt.RecordBatch:return To.fromJSON(e);case Tt.DictionaryBatch:return Io.fromJSON(e)}throw new Error("Unrecognized Message type: { name: ".concat(Tt[t],", type: ").concat(t," }"))}}(t,n),r}},{key:"decode",value:function(t){t=new vo(_e(t));var n=wo.getRootAsMessage(t),r=n.bodyLength(),i=n.version(),a=n.headerType(),o=new e(r,i,a);return o._createHeader=function(e,t){return function(){switch(t){case Tt.Schema:return Li.decode(e.header(new mo));case Tt.RecordBatch:return To.decode(e.header(new xo),e.version());case Tt.DictionaryBatch:return Io.decode(e.header(new jo),e.version())}throw new Error("Unrecognized Message type: { name: ".concat(Tt[t],", type: ").concat(t," }"))}}(n,a),o}},{key:"encode",value:function(e){var t=new po,n=-1;return e.isSchema()?n=Li.encode(t,e.header()):e.isRecordBatch()?n=To.encode(t,e.header()):e.isDictionaryBatch()&&(n=Io.encode(t,e.header())),wo.startMessage(t),wo.addVersion(t,It.V4),wo.addHeader(t,n),wo.addHeaderType(t,e.headerType),wo.addBodyLength(t,new ho(e.bodyLength,0)),wo.finishMessageBuffer(t,wo.endMessage(t)),t.asUint8Array()}},{key:"from",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(t instanceof Li)return new e(0,It.V4,Tt.Schema,t);if(t instanceof To)return new e(n,It.V4,Tt.RecordBatch,t);if(t instanceof Io)return new e(n,It.V4,Tt.DictionaryBatch,t);throw new Error("Unrecognized Message header: ".concat(t))}}]),e}(),To=function(){function e(t,n,r){Object(f.a)(this,e),this._nodes=n,this._buffers=r,this._length="number"===typeof t?t:t.low}return Object(h.a)(e,[{key:"nodes",get:function(){return this._nodes}},{key:"length",get:function(){return this._length}},{key:"buffers",get:function(){return this._buffers}}]),e}(),Io=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];Object(f.a)(this,e),this._data=t,this._isDelta=r,this._id="number"===typeof n?n:n.low}return Object(h.a)(e,[{key:"id",get:function(){return this._id}},{key:"data",get:function(){return this._data}},{key:"isDelta",get:function(){return this._isDelta}},{key:"length",get:function(){return this.data.length}},{key:"nodes",get:function(){return this.data.nodes}},{key:"buffers",get:function(){return this.data.buffers}}]),e}(),Eo=function e(t,n){Object(f.a)(this,e),this.offset="number"===typeof t?t:t.low,this.length="number"===typeof n?n:n.low},Ao=function e(t,n){Object(f.a)(this,e),this.length="number"===typeof t?t:t.low,this.nullCount="number"===typeof n?n:n.low};function Bo(e){for(var t,n=[],r=-1,i=-1,a=e.nodesLength();++r<a;)(t=e.nodes(r))&&(n[++i]=Ao.decode(t));return n}function Co(e,t){for(var n,r=[],i=-1,a=-1,o=e.buffersLength();++i<o;)(n=e.buffers(i))&&(t<It.V4&&(n.bb_pos+=8*(i+1)),r[++a]=Eo.decode(n));return r}function Do(e,t){for(var n,r=[],i=-1,a=-1,o=e.fieldsLength();++i<o;)(n=e.fields(i))&&(r[++a]=Ni.decode(n,t));return r}function Lo(e,t){for(var n,r=[],i=-1,a=-1,o=e.childrenLength();++i<o;)(n=e.children(i))&&(r[++a]=Ni.decode(n,t));return r}function No(e){var t=new Map;if(e)for(var n,r,i=-1,a=0|e.customMetadataLength();++i<a;)(n=e.customMetadata(i))&&null!=(r=n.key())&&t.set(r,n.value());return t}function Fo(e){return new rn(e.isSigned(),e.bitWidth())}function Mo(e,t){var n=e.typeType();switch(n){case yo.NONE:case yo.Null:return new nn;case yo.Binary:return new bn;case yo.Utf8:return new mn;case yo.Bool:return new gn;case yo.List:return new Tn((t||[])[0]);case yo.Struct_:return new In(t||[])}switch(n){case yo.Int:var r=e.type(new dt.apache.arrow.flatbuf.Int);return new rn(r.isSigned(),r.bitWidth());case yo.FloatingPoint:var i=e.type(new dt.apache.arrow.flatbuf.FloatingPoint);return new dn(i.precision());case yo.Decimal:var a=e.type(new dt.apache.arrow.flatbuf.Decimal);return new wn(a.scale(),a.precision());case yo.Date:var o=e.type(new dt.apache.arrow.flatbuf.Date);return new kn(o.unit());case yo.Time:var u=e.type(new dt.apache.arrow.flatbuf.Time);return new xn(u.unit(),u.bitWidth());case yo.Timestamp:var c=e.type(new dt.apache.arrow.flatbuf.Timestamp);return new jn(c.unit(),c.timezone());case yo.Interval:var s=e.type(new dt.apache.arrow.flatbuf.Interval);return new Sn(s.unit());case yo.Union:var l=e.type(new dt.apache.arrow.flatbuf.Union);return new En(l.mode(),l.typeIdsArray()||[],t||[]);case yo.FixedSizeBinary:var f=e.type(new dt.apache.arrow.flatbuf.FixedSizeBinary);return new An(f.byteWidth());case yo.FixedSizeList:var h=e.type(new dt.apache.arrow.flatbuf.FixedSizeList);return new Bn(h.listSize(),(t||[])[0]);case yo.Map:var d=e.type(new dt.apache.arrow.flatbuf.Map);return new Cn((t||[])[0],d.keysSorted())}throw new Error('Unrecognized type: "'.concat(yo[n],'" (').concat(n,")"))}Ni.encode=function(e,t){var n=-1,r=-1,i=-1,a=t.type,o=t.typeId;tn.isDictionary(a)?(o=a.dictionary.typeId,i=ao.visit(a,e),r=ao.visit(a.dictionary,e)):r=ao.visit(a,e);var u=(a.children||[]).map((function(t){return Ni.encode(e,t)})),c=bo.createChildrenVector(e,u),s=t.metadata&&t.metadata.size>0?bo.createCustomMetadataVector(e,Object(Ut.a)(t.metadata).map((function(t){var n=Object(p.a)(t,2),r=n[0],i=n[1],a=e.createString("".concat(r)),o=e.createString("".concat(i));return ko.startKeyValue(e),ko.addKey(e,a),ko.addValue(e,o),ko.endKeyValue(e)}))):-1;t.name&&(n=e.createString(t.name));bo.startField(e),bo.addType(e,r),bo.addTypeType(e,o),bo.addChildren(e,c),bo.addNullable(e,!!t.nullable),-1!==n&&bo.addName(e,n);-1!==i&&bo.addDictionary(e,i);-1!==s&&bo.addCustomMetadata(e,s);return bo.endField(e)},Ni.decode=function(e,t){var n,r,i,a,o,u;t&&(u=e.dictionary())?t.has(n=u.id().low)?(a=(a=u.indexType())?Fo(a):new un,o=new Nn(t.get(n),a,n,u.isOrdered()),r=new Ni(e.name(),o,e.nullable(),No(e))):(a=(a=u.indexType())?Fo(a):new un,t.set(n,i=Mo(e,Lo(e,t))),o=new Nn(i,a,n,u.isOrdered()),r=new Ni(e.name(),o,e.nullable(),No(e))):(i=Mo(e,Lo(e,t)),r=new Ni(e.name(),i,e.nullable(),No(e)));return r||null},Ni.fromJSON=function(e,t){var n,r,i,a,o,u;return t&&(a=e.dictionary)?t.has(n=a.id)?(r=(r=a.indexType)?lo(r):new un,u=new Nn(t.get(n),r,n,a.isOrdered),i=new Ni(e.name,u,e.nullable,so(e.customMetadata))):(r=(r=a.indexType)?lo(r):new un,t.set(n,o=fo(e,co(e,t))),u=new Nn(o,r,n,a.isOrdered),i=new Ni(e.name,u,e.nullable,so(e.customMetadata))):(o=fo(e,co(e,t)),i=new Ni(e.name,o,e.nullable,so(e.customMetadata))),i||null},Li.encode=function(e,t){var n=t.fields.map((function(t){return Ni.encode(e,t)}));mo.startFieldsVector(e,n.length);var r=mo.createFieldsVector(e,n),i=t.metadata&&t.metadata.size>0?mo.createCustomMetadataVector(e,Object(Ut.a)(t.metadata).map((function(t){var n=Object(p.a)(t,2),r=n[0],i=n[1],a=e.createString("".concat(r)),o=e.createString("".concat(i));return ko.startKeyValue(e),ko.addKey(e,a),ko.addValue(e,o),ko.endKeyValue(e)}))):-1;mo.startSchema(e),mo.addFields(e,r),mo.addEndianness(e,Po?Oo.Little:Oo.Big),-1!==i&&mo.addCustomMetadata(e,i);return mo.endSchema(e)},Li.decode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map,n=Do(e,t);return new Li(n,No(e),t)},Li.fromJSON=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Map;return new Li(uo(e,t),so(e.customMetadata),t)},To.encode=function(e,t){var n=t.nodes||[],r=t.buffers||[];xo.startNodesVector(e,n.length),n.slice().reverse().forEach((function(t){return Ao.encode(e,t)}));var i=e.endVector();xo.startBuffersVector(e,r.length),r.slice().reverse().forEach((function(t){return Eo.encode(e,t)}));var a=e.endVector();return xo.startRecordBatch(e),xo.addLength(e,new ho(t.length,0)),xo.addNodes(e,i),xo.addBuffers(e,a),xo.endRecordBatch(e)},To.decode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.V4;return new To(e.length(),Bo(e),Co(e,t))},To.fromJSON=oo,Io.encode=function(e,t){var n=To.encode(e,t.data);return jo.startDictionaryBatch(e),jo.addId(e,new ho(t.id,0)),jo.addIsDelta(e,t.isDelta),jo.addData(e,n),jo.endDictionaryBatch(e)},Io.decode=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.V4;return new Io(To.decode(e.data(),t),e.id(),e.isDelta())},Io.fromJSON=function(e){return new Io(oo(e.data),e.id,e.isDelta)},Ao.encode=function(e,t){return _o.createFieldNode(e,new ho(t.length,0),new ho(t.nullCount,0))},Ao.decode=function(e){return new Ao(e.length(),e.nullCount())},Eo.encode=function(e,t){return go.createBuffer(e,new ho(t.offset,0),new ho(t.length,0))},Eo.decode=function(e){return new Eo(e.offset(),e.length())};for(var Po=function(){var e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}(),Uo=w.ByteBuffer,Ro=function(e){return"Expected ".concat(Tt[e]," Message in stream, but was null or length 0.")},zo=function(e){return"Header pointer of flatbuffer-encoded ".concat(Tt[e]," Message is null or length 0.")},Vo=function(e,t){return"Expected to read ".concat(e," metadata bytes, but only read ").concat(t,".")},Wo=function(e,t){return"Expected to read ".concat(e," bytes for message body, but only read ").concat(t,".")},Yo=function(e){function t(e){Object(f.a)(this,t),this.source=e instanceof ja?e:new ja(e)}return Object(h.a)(t,[{key:e,value:function(){return this}},{key:"next",value:function(){var e;return(e=this.readMetadataLength()).done||-1===e.value&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?N:e}},{key:"throw",value:function(e){return this.source.throw(e)}},{key:"return",value:function(e){return this.source.return(e)}},{key:"readMessage",value:function(e){var t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(Ro(e));return t.value}},{key:"readMessageBody",value:function(e){if(e<=0)return new Uint8Array(0);var t=_e(this.source.read(e));if(t.byteLength<e)throw new Error(Wo(e,t.byteLength));return t.byteOffset%8===0&&t.byteOffset+t.byteLength<=t.buffer.byteLength?t:t.slice()}},{key:"readSchema",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=Tt.Schema,n=this.readMessage(t),r=n&&n.header();if(e&&!r)throw new Error(zo(t));return r}},{key:"readMetadataLength",value:function(){var e=this.source.read($o),t=e&&new Uo(e),n=t&&t.readInt32(0)||0;return{done:0===n,value:n}}},{key:"readMetadata",value:function(e){var t=this.source.read(e);if(!t)return N;if(t.byteLength<e)throw new Error(Vo(e,t.byteLength));return{done:!1,value:So.decode(t)}}}]),t}(Symbol.iterator),qo=function(e){function t(e,n){Object(f.a)(this,t),this.source=e instanceof Sa?e:ie(e)?new Aa(e,n):new Sa(e)}return Object(h.a)(t,[{key:e,value:function(){return this}},{key:"next",value:function(){var e=Object(l.a)(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.readMetadataLength();case 2:if(!(t=e.sent).done){e.next=4;break}return e.abrupt("return",N);case 4:if(e.t0=-1===t.value,!e.t0){e.next=9;break}return e.next=8,this.readMetadataLength();case 8:e.t0=(t=e.sent).done;case 9:if(!e.t0){e.next=11;break}return e.abrupt("return",N);case 11:return e.next=13,this.readMetadata(t.value);case 13:if(!(t=e.sent).done){e.next=15;break}return e.abrupt("return",N);case 15:return e.abrupt("return",t);case 16:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"throw",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.source.throw(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"return",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.source.return(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"readMessage",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.next();case 2:if(!(n=e.sent).done){e.next=4;break}return e.abrupt("return",null);case 4:if(null==t||n.value.headerType===t){e.next=6;break}throw new Error(Ro(t));case 6:return e.abrupt("return",n.value);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"readMessageBody",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t<=0)){e.next=2;break}return e.abrupt("return",new Uint8Array(0));case 2:return e.t0=_e,e.next=5,this.source.read(t);case 5:if(e.t1=e.sent,!((n=(0,e.t0)(e.t1)).byteLength<t)){e.next=9;break}throw new Error(Wo(t,n.byteLength));case 9:return e.abrupt("return",n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice());case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"readSchema",value:function(){var e=Object(l.a)(d.mark((function e(){var t,n,r,i,a=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],n=Tt.Schema,e.next=4,this.readMessage(n);case 4:if(r=e.sent,i=r&&r.header(),!t||i){e.next=8;break}throw new Error(zo(n));case 8:return e.abrupt("return",i);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readMetadataLength",value:function(){var e=Object(l.a)(d.mark((function e(){var t,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.source.read($o);case 2:return t=e.sent,n=t&&new Uo(t),r=n&&n.readInt32(0)||0,e.abrupt("return",{done:0===r,value:r});case 6:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"readMetadata",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.source.read(t);case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",N);case 5:if(!(n.byteLength<t)){e.next=7;break}throw new Error(Vo(t,n.byteLength));case 7:return e.abrupt("return",{done:!1,value:So.decode(n)});case 8:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),t}(Symbol.asyncIterator),Ho=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,new Uint8Array(0)))._schema=!1,r._body=[],r._batchIndex=0,r._dictionaryIndex=0,r._json=e instanceof F?e:new F(e),r}return Object(h.a)(n,[{key:"next",value:function(){var e=this._json;if(!this._schema)return this._schema=!0,{done:!1,value:So.fromJSON(e.schema,Tt.Schema)};if(this._dictionaryIndex<e.dictionaries.length){var t=e.dictionaries[this._dictionaryIndex++];return this._body=t.data.columns,{done:!1,value:So.fromJSON(t,Tt.DictionaryBatch)}}if(this._batchIndex<e.batches.length){var n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:So.fromJSON(n,Tt.RecordBatch)}}return this._body=[],N}},{key:"readMessageBody",value:function(e){return function e(t){return(t||[]).reduce((function(t,n){return[].concat(Object(Ut.a)(t),Object(Ut.a)(n.VALIDITY&&[n.VALIDITY]||[]),Object(Ut.a)(n.TYPE&&[n.TYPE]||[]),Object(Ut.a)(n.OFFSET&&[n.OFFSET]||[]),Object(Ut.a)(n.DATA&&[n.DATA]||[]),Object(Ut.a)(e(n.children)))}),[])}(this._body)}},{key:"readMessage",value:function(e){var t;if((t=this.next()).done)return null;if(null!=e&&t.value.headerType!==e)throw new Error(Ro(e));return t.value}},{key:"readSchema",value:function(){var e=Tt.Schema,t=this.readMessage(e),n=t&&t.header();if(!t||!n)throw new Error(zo(e));return n}}]),n}(Yo),$o=4,Ko=new Uint8Array("ARROW1".length),Qo=0;Qo<"ARROW1".length;Qo+=1)Ko[Qo]="ARROW1".charCodeAt(Qo);function Go(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=-1,r=Ko.length;++n<r;)if(Ko[n]!==e[t+n])return!1;return!0}var Jo=Ko.length,Zo=Jo+$o,Xo=2*Jo+$o,eu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;return Object(f.a)(this,n),(e=t.call(this))._byteLength=0,e._nodes=[],e._buffers=[],e._bufferRegions=[],e}return Object(h.a)(n,[{key:"visit",value:function(e){if(!tn.isDictionary(e.type)){var t=e.data,r=e.length,i=e.nullCount;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");tn.isNull(e.type)||tu.call(this,i<=0?new Uint8Array(0):Dt(t.offset,r,t.nullBitmap)),this.nodes.push(new Ao(r,i))}return ht(Object(ft.a)(n.prototype),"visit",this).call(this,e)}},{key:"visitNull",value:function(e){return this}},{key:"visitDictionary",value:function(e){return this.visit(e.indices)}},{key:"nodes",get:function(){return this._nodes}},{key:"buffers",get:function(){return this._buffers}},{key:"byteLength",get:function(){return this._byteLength}},{key:"bufferRegions",get:function(){return this._bufferRegions}}],[{key:"assemble",value:function(){for(var e=new n,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=Ai(ss,r),o=e.visitMany(a),u=Object(p.a)(o,1),c=u[0],s=void 0===c?e:c;return s}}]),n}(Rt);function tu(e){var t=e.byteLength+7&-8;return this.buffers.push(e),this.bufferRegions.push(new Eo(this._byteLength,t)),this._byteLength+=t,this}function nu(e){return tu.call(this,e.values.subarray(0,e.length*e.stride))}function ru(e){var t=e.length,n=e.values,r=e.valueOffsets,i=r[0],a=r[t],o=Math.min(a-i,n.byteLength-i);return tu.call(this,Je(-r[0],t,r)),tu.call(this,n.subarray(i,i+o)),this}function iu(e){var t=e.length,n=e.valueOffsets;return n&&tu.call(this,Je(n[0],t,n)),this.visit(e.getChildAt(0))}function au(e){return this.visitMany(e.type.children.map((function(t,n){return e.getChildAt(n)})).filter(Boolean))[0]}eu.prototype.visitBool=function(e){var t;return e.nullCount>=e.length?tu.call(this,new Uint8Array(0)):(t=e.values)instanceof Uint8Array?tu.call(this,Dt(e.offset,e.length,t)):tu.call(this,Lt(e))},eu.prototype.visitInt=nu,eu.prototype.visitFloat=nu,eu.prototype.visitUtf8=ru,eu.prototype.visitBinary=ru,eu.prototype.visitFixedSizeBinary=nu,eu.prototype.visitDate=nu,eu.prototype.visitTimestamp=nu,eu.prototype.visitTime=nu,eu.prototype.visitDecimal=nu,eu.prototype.visitList=iu,eu.prototype.visitStruct=au,eu.prototype.visitUnion=function(e){var t=e.type,n=e.length,r=e.typeIds,i=e.valueOffsets;if(tu.call(this,r),t.mode===jt.Sparse)return au.call(this,e);if(t.mode===jt.Dense){if(e.offset<=0)return tu.call(this,i),au.call(this,e);for(var a,o,u=r.reduce((function(e,t){return Math.max(e,t)}),r[0]),c=new Int32Array(u+1),s=new Int32Array(u+1).fill(-1),l=new Int32Array(n),f=Je(-i[0],n,i),h=-1;++h<n;)-1===(o=s[a=r[h]])&&(o=s[a]=f[a]),l[h]=f[h]-o,++c[a];tu.call(this,l);for(var d,p=-1,v=t.children.length;++p<v;)if(d=e.getChildAt(p)){var y=t.typeIds[p],b=Math.min(n,c[y]);this.visit(d.slice(s[y],b))}}return this},eu.prototype.visitInterval=nu,eu.prototype.visitFixedSizeList=iu,eu.prototype.visitMap=iu;function ou(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new uu(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function uu(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(uu=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new uu(e)}var cu=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e){var t;return Object(f.a)(this,r),(t=n.call(this))._position=0,t._started=!1,t._sink=new xa,t._schema=null,t._dictionaryBlocks=[],t._recordBatchBlocks=[],t._dictionaryDeltaOffsets=new Map,Z(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),t._autoDestroy="boolean"!==typeof e.autoDestroy||e.autoDestroy,t._writeLegacyIpcFormat="boolean"===typeof e.writeLegacyIpcFormat&&e.writeLegacyIpcFormat,t}return Object(h.a)(r,[{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toString(e)}},{key:"toUint8Array",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._sink.toUint8Array(e)}},{key:"writeAll",value:function(e){var t=this;return X(e)?e.then((function(e){return t.writeAll(e)})):te(e)?hu(this,e):fu(this,e)}},{key:"closed",get:function(){return this._sink.closed}},{key:t,value:function(){return this._sink[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(e){return this._sink.toDOMStream(e)}},{key:"toNodeStream",value:function(e){return this._sink.toNodeStream(e)}},{key:"close",value:function(){return this.reset()._sink.close()}},{key:"abort",value:function(e){return this.reset()._sink.abort(e)}},{key:"finish",value:function(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._sink,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e===this._sink||e instanceof xa?this._sink=e:(this._sink=new xa,e&&oe(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&ce(e)&&this.toNodeStream({objectMode:!1}).pipe(e)),this._started&&this._schema&&this._writeFooter(this._schema),this._started=!1,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,t&&t.compareTo(this._schema)||(null===t?(this._position=0,this._schema=null):(this._started=!0,this._schema=t,this._writeSchema(t))),this}},{key:"write",value:function(e){var t=null;if(!this._sink)throw new Error("RecordBatchWriter is closed");if(null===e||void 0===e)return this.finish()&&void 0;if(e instanceof cs&&!(t=e.schema))return this.finish()&&void 0;if(e instanceof ss&&!(t=e.schema))return this.finish()&&void 0;if(t&&!t.compareTo(this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,t)}e instanceof ss?e instanceof ls||this._writeRecordBatch(e):e instanceof cs?this.writeAll(e.chunks):ee(e)&&this.writeAll(e)}},{key:"_writeMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:8,n=t-1,r=So.encode(e),i=r.byteLength,a=this._writeLegacyIpcFormat?4:8,o=i+a+n&~n,u=o-i-a;return e.headerType===Tt.RecordBatch?this._recordBatchBlocks.push(new ka(o,e.bodyLength,this._position)):e.headerType===Tt.DictionaryBatch&&this._dictionaryBlocks.push(new ka(o,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(o-a)),i>0&&this._write(r),this._writePadding(u)}},{key:"_write",value:function(e){if(this._started){var t=_e(e);t&&t.byteLength>0&&(this._sink.write(t),this._position+=t.byteLength)}return this}},{key:"_writeSchema",value:function(e){return this._writeMessage(So.from(e))}},{key:"_writeFooter",value:function(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}},{key:"_writeMagic",value:function(){return this._write(Ko)}},{key:"_writePadding",value:function(e){return e>0?this._write(new Uint8Array(e)):this}},{key:"_writeRecordBatch",value:function(e){var t=eu.assemble(e),n=t.byteLength,r=t.nodes,i=t.bufferRegions,a=t.buffers,o=new To(e.length,r,i),u=So.from(o,n);return this._writeDictionaries(e)._writeMessage(u)._writeBodyBuffers(a)}},{key:"_writeDictionaryBatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this._dictionaryDeltaOffsets.set(t,e.length+(this._dictionaryDeltaOffsets.get(t)||0));var r=eu.assemble(e),i=r.byteLength,a=r.nodes,o=r.bufferRegions,u=r.buffers,c=new To(e.length,a,o),s=new Io(c,t,n),l=So.from(s,i);return this._writeMessage(l)._writeBodyBuffers(u)}},{key:"_writeBodyBuffers",value:function(e){for(var t,n,r,i=-1,a=e.length;++i<a;)(t=e[i])&&(n=t.byteLength)>0&&(this._write(t),(r=(n+7&-8)-n)>0&&this._writePadding(r));return this}},{key:"_writeDictionaries",value:function(e){var t,n=Object(s.a)(e.dictionaries);try{for(n.s();!(t=n.n()).done;){var r=Object(p.a)(t.value,2),i=r[0],a=r[1],o=this._dictionaryDeltaOffsets.get(i)||0;if(0===o||(a=a.slice(o)).length>0){var u,c="chunks"in a?a.chunks:[a],l=Object(s.a)(c);try{for(l.s();!(u=l.n()).done;){var f=u.value;this._writeDictionaryBatch(f,i,o>0),o+=f.length}}catch(h){l.e(h)}finally{l.f()}}}}catch(h){n.e(h)}finally{n.f()}return this}}],[{key:"throughNode",value:function(e){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(e,t){throw new Error('"throughDOM" not available in this environment')}}]),r}(M,Symbol.asyncIterator),su=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,null,[{key:"writeAll",value:function(e,t){var r=new n(t);return X(e)?e.then((function(e){return r.writeAll(e)})):te(e)?hu(r,e):fu(r,e)}}]),n}(cu),lu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;return Object(f.a)(this,n),(e=t.call(this))._autoDestroy=!0,e}return Object(h.a)(n,[{key:"_writeSchema",value:function(e){return this._writeMagic()._writePadding(2)}},{key:"_writeFooter",value:function(e){var t=ga.encode(new ga(e,It.V4,this._recordBatchBlocks,this._dictionaryBlocks));return ht(Object(ft.a)(n.prototype),"_writeFooter",this).call(this,e)._write(t)._write(Int32Array.of(t.byteLength))._writeMagic()}}],[{key:"writeAll",value:function(e){var t=new n;return X(e)?e.then((function(e){return t.writeAll(e)})):te(e)?hu(t,e):fu(t,e)}}]),n}(cu);function fu(e,t){var n=t;t instanceof cs&&(n=t.chunks,e.reset(void 0,t.schema));var r,i=Object(s.a)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;e.write(a)}}catch(o){i.e(o)}finally{i.f()}return e.finish()}function hu(e,t){return du.apply(this,arguments)}function du(){return(du=Object(l.a)(d.mark((function e(t,n){var r,i,a,o,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,i=!1,e.prev=2,o=ou(n);case 4:return e.next=6,o.next();case 6:if(!(r=!(u=e.sent).done)){e.next=12;break}c=u.value,t.write(c);case 9:r=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t0=e.catch(2),i=!0,a=e.t0;case 18:if(e.prev=18,e.prev=19,!r||null==o.return){e.next=23;break}return e.next=23,o.return();case 23:if(e.prev=23,!i){e.next=26;break}throw a;case 26:return e.finish(23);case 27:return e.finish(18);case 28:return e.abrupt("return",t.finish());case 29:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})))).apply(this,arguments)}var pu=new Uint8Array(0),vu=function(e){return[pu,pu,new Uint8Array(e),pu]};function yu(e,t){for(var n,r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.reduce((function(e,t){return Math.max(e,t.length)}),0),a=-1,o=t.length,u=Object(Ut.a)(e.fields),c=[],s=(i+63&-64)>>3;++a<o;)(n=t[a])&&n.length===i?c[a]=n:((r=u[a]).nullable||(u[a]=u[a].clone({nullable:!0})),c[a]=n?n._changeLengthAndBackfillNullBitmap(i):Mn.new(r.type,0,i,i,vu(s)));return[new Li(u),i,c]}function bu(e){return mu(new Li(e.map((function(e){return e.field}))),e)}function mu(e,t){return function(e,t){var n,r=Object(Ut.a)(e.fields),i=[],a={numBatches:t.reduce((function(e,t){return Math.max(e,t.length)}),0)},o=0,u=0,c=-1,s=t.length,l=[];for(;a.numBatches-- >0;){for(u=Number.POSITIVE_INFINITY,c=-1;++c<s;)l[c]=n=t[c].shift(),u=Math.min(u,n?n.length:u);isFinite(u)&&(l=gu(r,u,l,t,a),u>0&&(i[o++]=[u,l.slice()]))}return[e=new Li(r,e.metadata),i.map((function(t){return Object(yr.a)(ss,[e].concat(Object(Ut.a)(t)))}))]}(e,t.map((function(e){return e instanceof gi?e.chunks.map((function(e){return e.data})):[e.data]})))}function gu(e,t,n,r,i){for(var a,o,u=0,c=-1,s=r.length,l=(t+63&-64)>>3;++c<s;)(a=n[c])&&(u=a.length)>=t?u===t?n[c]=a:(n[c]=a.slice(0,t),a=a.slice(t,u-t),i.numBatches=Math.max(i.numBatches,r[c].unshift(a))):((o=e[c]).nullable||(e[c]=o.clone({nullable:!0})),n[c]=a?a._changeLengthAndBackfillNullBitmap(t):Mn.new(o.type,0,t,t,vu(l)));return n}function wu(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ku=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e,t){var i;return Object(f.a)(this,r),(i=n.call(this))._children=t,i.numChildren=e.childData.length,i._bindDataAccessors(i.data=e),i}return Object(h.a)(r,[{key:"type",get:function(){return this.data.type}},{key:"typeId",get:function(){return this.data.typeId}},{key:"length",get:function(){return this.data.length}},{key:"offset",get:function(){return this.data.offset}},{key:"stride",get:function(){return this.data.stride}},{key:"nullCount",get:function(){return this.data.nullCount}},{key:"byteLength",get:function(){return this.data.byteLength}},{key:"VectorName",get:function(){return"".concat(wt[this.typeId],"Vector")}},{key:"ArrayType",get:function(){return this.type.ArrayType}},{key:"values",get:function(){return this.data.values}},{key:"typeIds",get:function(){return this.data.typeIds}},{key:"nullBitmap",get:function(){return this.data.nullBitmap}},{key:"valueOffsets",get:function(){return this.data.valueOffsets}},{key:t,get:function(){return"".concat(this.VectorName,"<").concat(this.type[Symbol.toStringTag],">")}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return gt.new(e,t)}},{key:"concat",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return gi.concat.apply(gi,[this].concat(t))}},{key:"slice",value:function(e,t){return di(this,e,t,this._sliceInternal)}},{key:"isValid",value:function(e){if(this.nullCount>0){var t=this.offset+e;return 0!==(this.nullBitmap[t>>3]&1<<t%8)}return!0}},{key:"getChildAt",value:function(e){return e<0||e>=this.numChildren?null:(this._children||(this._children=[]))[e]||(this._children[e]=gt.new(this.data.childData[e]))}},{key:"toJSON",value:function(){return Object(Ut.a)(this)}},{key:"_sliceInternal",value:function(e,t,n){return e.clone(e.data.slice(t,n-t),null)}},{key:"_bindDataAccessors",value:function(e){}}]),r}(gt,Symbol.toStringTag);ku.prototype[Symbol.isConcatSpreadable]=!0;var _u=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"asUtf8",value:function(){return gt.new(this.data.clone(new mn))}}]),n}(ku),Ou=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,null,[{key:"from",value:function(e){return as((function(){return new gn}),e)}}]),n}(ku),xu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,null,[{key:"from",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 2===t.length?as((function(){return t[1]===_t.DAY?new _n:new On}),t[0]):as((function(){return new On}),t[0])}}]),n}(ku),ju=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(xu),Su=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(xu),Tu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),Iu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e)).indices=gt.new(e.clone(r.type.indices)),r}return Object(h.a)(n,[{key:"dictionary",get:function(){return this.data.dictionary}},{key:"reverseLookup",value:function(e){return this.dictionary.indexOf(e)}},{key:"getKey",value:function(e){return this.indices.get(e)}},{key:"getValue",value:function(e){return this.dictionary.get(e)}},{key:"setKey",value:function(e,t){return this.indices.set(e,t)}},{key:"setValue",value:function(e,t){return this.dictionary.set(e,t)}}],[{key:"from",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(3===t.length){var r=t[0],i=t[1],a=t[2],o=new Nn(r.type,i,null,null);return gt.new(Mn.Dictionary(o,0,a.length,0,null,a,r))}return as((function(){return t[0].type}),t[0])}}]),n}(ku);Iu.prototype.indices=null;var Eu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),Au=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),Bu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,null,[{key:"from",value:function(e){var t=Mu(this);if(e instanceof ArrayBuffer||ArrayBuffer.isView(e)){var n=Fu(e.constructor)||t;if(null===t&&(t=n),t&&t===n){var r=new t,i=e.byteLength/r.ArrayType.BYTES_PER_ELEMENT;if(!Nu(t,e.constructor))return gt.new(Mn.Float(r,0,i,0,null,e))}}if(t)return as((function(){return new t}),e);if(e instanceof DataView||e instanceof ArrayBuffer)throw new TypeError("Cannot infer float type from instance of ".concat(e.constructor.name));throw new TypeError("Unrecognized FloatVector input")}}]),n}(ku),Cu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"toFloat32Array",value:function(){return new Float32Array(this)}},{key:"toFloat64Array",value:function(){return new Float64Array(this)}}]),n}(Bu),Du=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Bu),Lu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Bu),Nu=function(e,t){return e===pn&&t!==Uint16Array},Fu=function(e){switch(e){case Uint16Array:return pn;case Float32Array:return vn;case Float64Array:return yn;default:return null}},Mu=function(e){switch(e){case Cu:return pn;case Du:return vn;case Lu:return yn;default:return null}},Pu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),Uu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Pu),Ru=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Pu),zu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,null,[{key:"from",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0],i=t[1],a=void 0!==i&&i,o=Zu(this,a);if(r instanceof ArrayBuffer||ArrayBuffer.isView(r)){var u=Ju(r.constructor,a)||o;if(null===o&&(o=u),o&&o===u){var c=new o,s=r.byteLength/c.ArrayType.BYTES_PER_ELEMENT;return Gu(o,r.constructor)&&(s*=.5),gt.new(Mn.Int(c,0,s,0,null,r))}}if(o)return as((function(){return new o}),r);if(r instanceof DataView||r instanceof ArrayBuffer)throw new TypeError("Cannot infer integer type from instance of ".concat(r.constructor.name));throw new TypeError("Unrecognized IntVector input")}}]),n}(ku),Vu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),Wu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),Yu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),qu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"toBigInt64Array",value:function(){return ke(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigInt64Array())}}]),n}(zu),Hu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),$u=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),Ku=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(zu),Qu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"toBigUint64Array",value:function(){return je(this.values)}},{key:"values64",get:function(){return this._values64||(this._values64=this.toBigUint64Array())}}]),n}(zu),Gu=function(e,t){return(e===cn||e===hn)&&(t===Int32Array||t===Uint32Array)},Ju=function(e,t){switch(e){case Int8Array:return an;case Int16Array:return on;case Int32Array:return t?cn:un;case q:return cn;case Uint8Array:return sn;case Uint16Array:return ln;case Uint32Array:return t?hn:fn;case K:return hn;default:return null}},Zu=function(e,t){switch(e){case Vu:return an;case Wu:return on;case Yu:return t?cn:un;case qu:return cn;case Hu:return sn;case $u:return ln;case Ku:return t?hn:fn;case Qu:return hn;default:return null}},Xu=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),ec=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"asList",value:function(){var e=this.type.children[0];return gt.new(this.data.clone(new Tn(e)))}},{key:"bind",value:function(e){var t=this.getChildAt(0),n=this.valueOffsets,r=n[e],i=n[e+1];return new ui(t.slice(r,i))}}]),n}(ku),tc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),nc=Symbol.for("rowIndex"),rc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"bind",value:function(e){var t=this._row||(this._row=new ci(this)),n=Object.create(t);return n[nc]=e,n}}]),n}(ku),ic=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),ac=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ic),oc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ic),uc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ic),cc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ic),sc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(ku),lc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(sc),fc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(sc),hc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(sc),dc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(sc),pc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"typeIdToChildIndex",get:function(){return this.data.type.typeIdToChildIndex}}]),n}(ku),vc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"valueOffsets",get:function(){return this.data.valueOffsets}}]),n}(pc),yc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(pc),bc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"asBinary",value:function(){return gt.new(this.data.clone(new bn))}}],[{key:"from",value:function(e){return as((function(){return new mn}),e)}}]),n}(ku);function mc(e){return function(){return e(this)}}function gc(e){return function(t,n){return e(this,t,n)}}var wc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Rt),kc=function(e,t){return 4294967296*e[t+1]+(e[t]>>>0)},_c=function(e){return new Date(e)},Oc=function(e,t,n){var r=t[n],i=t[n+1];return null!=r&&null!=i?e.subarray(r,i):null},xc=function(e,t){return function(e,t){return _c(function(e,t){return 864e5*e[t]}(e,t))}(e.values,t)},jc=function(e,t){return function(e,t){return _c(kc(e,t))}(e.values,2*t)},Sc=function(e,t){var n=e.stride;return e.values[n*t]},Tc=function(e,t){var n=e.stride;return cr(e.values[n*t])},Ic=function(e,t){var n=e.stride,r=e.values,i=e.type;return jr.new(r.subarray(n*t,n*(t+1)),i.isSigned)},Ec=function(e,t){var n=e.values;return 1e3*kc(n,2*t)},Ac=function(e,t){var n=e.values;return kc(n,2*t)},Bc=function(e,t){return function(e,t){return e[t+1]/1e3*4294967296+(e[t]>>>0)/1e3}(e.values,2*t)},Cc=function(e,t){return function(e,t){return e[t+1]/1e6*4294967296+(e[t]>>>0)/1e6}(e.values,2*t)},Dc=function(e,t){return e.values[e.stride*t]},Lc=function(e,t){return e.values[e.stride*t]},Nc=function(e,t){var n=e.values;return jr.signed(n.subarray(2*t,2*(t+1)))},Fc=function(e,t){var n=e.values;return jr.signed(n.subarray(2*t,2*(t+1)))},Mc=function(e,t){var n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(e.valueOffsets[t]):null},Pc=function(e,t){var n=e.typeIdToChildIndex[e.typeIds[t]],r=e.getChildAt(n);return r?r.get(t):null},Uc=function(e,t){return e.values.subarray(2*t,2*(t+1))},Rc=function(e,t){var n=e.values[t],r=new Int32Array(2);return r[0]=n/12|0,r[1]=n%12|0,r};wc.prototype.visitNull=function(e,t){return null},wc.prototype.visitBool=function(e,t){var n=e.offset+t;return 0!==(e.values[n>>3]&1<<n%8)},wc.prototype.visitInt=function(e,t){return e.type.bitWidth<64?Sc(e,t):Ic(e,t)},wc.prototype.visitInt8=Sc,wc.prototype.visitInt16=Sc,wc.prototype.visitInt32=Sc,wc.prototype.visitInt64=Ic,wc.prototype.visitUint8=Sc,wc.prototype.visitUint16=Sc,wc.prototype.visitUint32=Sc,wc.prototype.visitUint64=Ic,wc.prototype.visitFloat=function(e,t){return e.type.precision!==xt.HALF?Sc(e,t):Tc(e,t)},wc.prototype.visitFloat16=Tc,wc.prototype.visitFloat32=Sc,wc.prototype.visitFloat64=Sc,wc.prototype.visitUtf8=function(e,t){var n=e.values,r=e.valueOffsets,i=Oc(n,r,t);return null!==i?B(i):null},wc.prototype.visitBinary=function(e,t){var n=e.values,r=e.valueOffsets;return Oc(n,r,t)},wc.prototype.visitFixedSizeBinary=function(e,t){var n=e.stride;return e.values.subarray(n*t,n*(t+1))},wc.prototype.visitDate=function(e,t){return e.type.unit===_t.DAY?xc(e,t):jc(e,t)},wc.prototype.visitDateDay=xc,wc.prototype.visitDateMillisecond=jc,wc.prototype.visitTimestamp=function(e,t){switch(e.type.unit){case Ot.SECOND:return Ec(e,t);case Ot.MILLISECOND:return Ac(e,t);case Ot.MICROSECOND:return Bc(e,t);case Ot.NANOSECOND:return Cc(e,t)}},wc.prototype.visitTimestampSecond=Ec,wc.prototype.visitTimestampMillisecond=Ac,wc.prototype.visitTimestampMicrosecond=Bc,wc.prototype.visitTimestampNanosecond=Cc,wc.prototype.visitTime=function(e,t){switch(e.type.unit){case Ot.SECOND:return Dc(e,t);case Ot.MILLISECOND:return Lc(e,t);case Ot.MICROSECOND:return Nc(e,t);case Ot.NANOSECOND:return Fc(e,t)}},wc.prototype.visitTimeSecond=Dc,wc.prototype.visitTimeMillisecond=Lc,wc.prototype.visitTimeMicrosecond=Nc,wc.prototype.visitTimeNanosecond=Fc,wc.prototype.visitDecimal=function(e,t){var n=e.values;return jr.decimal(n.subarray(4*t,4*(t+1)))},wc.prototype.visitList=function(e,t){var n=e.getChildAt(0),r=e.valueOffsets,i=e.stride;return n.slice(r[t*i],r[t*i+1])},wc.prototype.visitStruct=function(e,t){return e.bind(t)},wc.prototype.visitUnion=function(e,t){return e.type.mode===jt.Dense?Mc(e,t):Pc(e,t)},wc.prototype.visitDenseUnion=Mc,wc.prototype.visitSparseUnion=Pc,wc.prototype.visitDictionary=function(e,t){return e.getValue(e.getKey(t))},wc.prototype.visitInterval=function(e,t){return e.type.unit===St.DAY_TIME?Uc(e,t):Rc(e,t)},wc.prototype.visitIntervalDayTime=Uc,wc.prototype.visitIntervalYearMonth=Rc,wc.prototype.visitFixedSizeList=function(e,t){var n=e.getChildAt(0),r=e.stride;return n.slice(t*r,(t+1)*r)},wc.prototype.visitMap=function(e,t){return e.bind(t)};var zc=new wc,Vc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Rt);function Wc(e,t,n){if(void 0===t)return-1;if(null===t)return function(e,t){var n=e.nullBitmap;if(!n||e.nullCount<=0)return-1;var r,i=0,a=Object(s.a)(Nt(n,e.data.offset+(t||0),e.length,n,At));try{for(a.s();!(r=a.n()).done;){if(!r.value)return i;++i}}catch(o){a.e(o)}finally{a.f()}return-1}(e,n);for(var r=yi(t),i=(n||0)-1,a=e.length;++i<a;)if(r(e.get(i)))return i;return-1}function Yc(e,t,n){for(var r=yi(t),i=(n||0)-1,a=e.length;++i<a;)if(r(e.get(i)))return i;return-1}Vc.prototype.visitNull=function(e,t){return null===t&&e.length>0?0:-1},Vc.prototype.visitBool=Wc,Vc.prototype.visitInt=Wc,Vc.prototype.visitInt8=Wc,Vc.prototype.visitInt16=Wc,Vc.prototype.visitInt32=Wc,Vc.prototype.visitInt64=Wc,Vc.prototype.visitUint8=Wc,Vc.prototype.visitUint16=Wc,Vc.prototype.visitUint32=Wc,Vc.prototype.visitUint64=Wc,Vc.prototype.visitFloat=Wc,Vc.prototype.visitFloat16=Wc,Vc.prototype.visitFloat32=Wc,Vc.prototype.visitFloat64=Wc,Vc.prototype.visitUtf8=Wc,Vc.prototype.visitBinary=Wc,Vc.prototype.visitFixedSizeBinary=Wc,Vc.prototype.visitDate=Wc,Vc.prototype.visitDateDay=Wc,Vc.prototype.visitDateMillisecond=Wc,Vc.prototype.visitTimestamp=Wc,Vc.prototype.visitTimestampSecond=Wc,Vc.prototype.visitTimestampMillisecond=Wc,Vc.prototype.visitTimestampMicrosecond=Wc,Vc.prototype.visitTimestampNanosecond=Wc,Vc.prototype.visitTime=Wc,Vc.prototype.visitTimeSecond=Wc,Vc.prototype.visitTimeMillisecond=Wc,Vc.prototype.visitTimeMicrosecond=Wc,Vc.prototype.visitTimeNanosecond=Wc,Vc.prototype.visitDecimal=Wc,Vc.prototype.visitList=Wc,Vc.prototype.visitStruct=Wc,Vc.prototype.visitUnion=Wc,Vc.prototype.visitDenseUnion=Yc,Vc.prototype.visitSparseUnion=Yc,Vc.prototype.visitDictionary=Wc,Vc.prototype.visitInterval=Wc,Vc.prototype.visitIntervalDayTime=Wc,Vc.prototype.visitIntervalYearMonth=Wc,Vc.prototype.visitFixedSizeList=Wc,Vc.prototype.visitMap=Wc;var qc=new Vc,Hc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Rt);function $c(e){if(e.nullCount>0)return function(e){var t=zc.getVisitFn(e);return Nt(e.nullBitmap,e.offset,e.length,e,(function(e,n,r,i){return 0!==(r&1<<i)?t(e,n):null}))}(e);var t=e.type,n=e.typeId,r=e.length;return 1===e.stride&&(n===wt.Timestamp||n===wt.Int&&64!==t.bitWidth||n===wt.Time&&64!==t.bitWidth||n===wt.Float&&t.precision>0)?e.values.subarray(0,r)[Symbol.iterator]():d.mark((function t(n){var i;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=-1;case 1:if(!(++i<r)){t.next=6;break}return t.next=4,n(e,i);case 4:t.next=1;break;case 6:case"end":return t.stop()}}),t)}))(zc.getVisitFn(e))}Hc.prototype.visitNull=$c,Hc.prototype.visitBool=$c,Hc.prototype.visitInt=$c,Hc.prototype.visitInt8=$c,Hc.prototype.visitInt16=$c,Hc.prototype.visitInt32=$c,Hc.prototype.visitInt64=$c,Hc.prototype.visitUint8=$c,Hc.prototype.visitUint16=$c,Hc.prototype.visitUint32=$c,Hc.prototype.visitUint64=$c,Hc.prototype.visitFloat=$c,Hc.prototype.visitFloat16=$c,Hc.prototype.visitFloat32=$c,Hc.prototype.visitFloat64=$c,Hc.prototype.visitUtf8=$c,Hc.prototype.visitBinary=$c,Hc.prototype.visitFixedSizeBinary=$c,Hc.prototype.visitDate=$c,Hc.prototype.visitDateDay=$c,Hc.prototype.visitDateMillisecond=$c,Hc.prototype.visitTimestamp=$c,Hc.prototype.visitTimestampSecond=$c,Hc.prototype.visitTimestampMillisecond=$c,Hc.prototype.visitTimestampMicrosecond=$c,Hc.prototype.visitTimestampNanosecond=$c,Hc.prototype.visitTime=$c,Hc.prototype.visitTimeSecond=$c,Hc.prototype.visitTimeMillisecond=$c,Hc.prototype.visitTimeMicrosecond=$c,Hc.prototype.visitTimeNanosecond=$c,Hc.prototype.visitDecimal=$c,Hc.prototype.visitList=$c,Hc.prototype.visitStruct=$c,Hc.prototype.visitUnion=$c,Hc.prototype.visitDenseUnion=$c,Hc.prototype.visitSparseUnion=$c,Hc.prototype.visitDictionary=$c,Hc.prototype.visitInterval=$c,Hc.prototype.visitIntervalDayTime=$c,Hc.prototype.visitIntervalYearMonth=$c,Hc.prototype.visitFixedSizeList=$c,Hc.prototype.visitMap=$c;var Kc=new Hc,Qc=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return n}(Rt);function Gc(e){var t=e.type,n=e.length,r=e.stride;switch(t.typeId){case wt.Int:case wt.Float:case wt.Decimal:case wt.Time:case wt.Timestamp:return e.values.subarray(0,n*r)}return Object(Ut.a)(Kc.visit(e))}Qc.prototype.visitNull=Gc,Qc.prototype.visitBool=Gc,Qc.prototype.visitInt=Gc,Qc.prototype.visitInt8=Gc,Qc.prototype.visitInt16=Gc,Qc.prototype.visitInt32=Gc,Qc.prototype.visitInt64=Gc,Qc.prototype.visitUint8=Gc,Qc.prototype.visitUint16=Gc,Qc.prototype.visitUint32=Gc,Qc.prototype.visitUint64=Gc,Qc.prototype.visitFloat=Gc,Qc.prototype.visitFloat16=Gc,Qc.prototype.visitFloat32=Gc,Qc.prototype.visitFloat64=Gc,Qc.prototype.visitUtf8=Gc,Qc.prototype.visitBinary=Gc,Qc.prototype.visitFixedSizeBinary=Gc,Qc.prototype.visitDate=Gc,Qc.prototype.visitDateDay=Gc,Qc.prototype.visitDateMillisecond=Gc,Qc.prototype.visitTimestamp=Gc,Qc.prototype.visitTimestampSecond=Gc,Qc.prototype.visitTimestampMillisecond=Gc,Qc.prototype.visitTimestampMicrosecond=Gc,Qc.prototype.visitTimestampNanosecond=Gc,Qc.prototype.visitTime=Gc,Qc.prototype.visitTimeSecond=Gc,Qc.prototype.visitTimeMillisecond=Gc,Qc.prototype.visitTimeMicrosecond=Gc,Qc.prototype.visitTimeNanosecond=Gc,Qc.prototype.visitDecimal=Gc,Qc.prototype.visitList=Gc,Qc.prototype.visitStruct=Gc,Qc.prototype.visitUnion=Gc,Qc.prototype.visitDenseUnion=Gc,Qc.prototype.visitSparseUnion=Gc,Qc.prototype.visitDictionary=Gc,Qc.prototype.visitInterval=Gc,Qc.prototype.visitIntervalDayTime=Gc,Qc.prototype.visitIntervalYearMonth=Gc,Qc.prototype.visitFixedSizeList=Gc,Qc.prototype.visitMap=Gc;var Jc=new Qc,Zc=function(e,t){return e+t},Xc=function(e){return"Cannot compute the byte width of variable-width column ".concat(e)},es=new(function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"visitNull",value:function(e){return 0}},{key:"visitInt",value:function(e){return e.bitWidth/8}},{key:"visitFloat",value:function(e){return e.ArrayType.BYTES_PER_ELEMENT}},{key:"visitBinary",value:function(e){throw new Error(Xc(e))}},{key:"visitUtf8",value:function(e){throw new Error(Xc(e))}},{key:"visitBool",value:function(e){return 1/8}},{key:"visitDecimal",value:function(e){return 16}},{key:"visitDate",value:function(e){return 4*(e.unit+1)}},{key:"visitTime",value:function(e){return e.bitWidth/8}},{key:"visitTimestamp",value:function(e){return e.unit===Ot.SECOND?4:8}},{key:"visitInterval",value:function(e){return 4*(e.unit+1)}},{key:"visitList",value:function(e){throw new Error(Xc(e))}},{key:"visitStruct",value:function(e){return this.visitFields(e.children).reduce(Zc,0)}},{key:"visitUnion",value:function(e){return this.visitFields(e.children).reduce(Zc,0)}},{key:"visitFixedSizeBinary",value:function(e){return e.byteWidth}},{key:"visitFixedSizeList",value:function(e){return e.listSize*this.visitFields(e.children).reduce(Zc,0)}},{key:"visitMap",value:function(e){return this.visitFields(e.children).reduce(Zc,0)}},{key:"visitDictionary",value:function(e){return this.visit(e.indices)}},{key:"visitFields",value:function(e){var t=this;return(e||[]).map((function(e){return t.visit(e.type)}))}},{key:"visitSchema",value:function(e){return this.visitFields(e.fields).reduce(Zc,0)}}]),n}(Rt)),ts=new(function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"visitNull",value:function(){return tc}},{key:"visitBool",value:function(){return Ou}},{key:"visitInt",value:function(){return zu}},{key:"visitInt8",value:function(){return Vu}},{key:"visitInt16",value:function(){return Wu}},{key:"visitInt32",value:function(){return Yu}},{key:"visitInt64",value:function(){return qu}},{key:"visitUint8",value:function(){return Hu}},{key:"visitUint16",value:function(){return $u}},{key:"visitUint32",value:function(){return Ku}},{key:"visitUint64",value:function(){return Qu}},{key:"visitFloat",value:function(){return Bu}},{key:"visitFloat16",value:function(){return Cu}},{key:"visitFloat32",value:function(){return Du}},{key:"visitFloat64",value:function(){return Lu}},{key:"visitUtf8",value:function(){return bc}},{key:"visitBinary",value:function(){return _u}},{key:"visitFixedSizeBinary",value:function(){return Eu}},{key:"visitDate",value:function(){return xu}},{key:"visitDateDay",value:function(){return ju}},{key:"visitDateMillisecond",value:function(){return Su}},{key:"visitTimestamp",value:function(){return ic}},{key:"visitTimestampSecond",value:function(){return ac}},{key:"visitTimestampMillisecond",value:function(){return oc}},{key:"visitTimestampMicrosecond",value:function(){return uc}},{key:"visitTimestampNanosecond",value:function(){return cc}},{key:"visitTime",value:function(){return sc}},{key:"visitTimeSecond",value:function(){return lc}},{key:"visitTimeMillisecond",value:function(){return fc}},{key:"visitTimeMicrosecond",value:function(){return hc}},{key:"visitTimeNanosecond",value:function(){return dc}},{key:"visitDecimal",value:function(){return Tu}},{key:"visitList",value:function(){return Xu}},{key:"visitStruct",value:function(){return rc}},{key:"visitUnion",value:function(){return pc}},{key:"visitDenseUnion",value:function(){return vc}},{key:"visitSparseUnion",value:function(){return yc}},{key:"visitDictionary",value:function(){return Iu}},{key:"visitInterval",value:function(){return Pu}},{key:"visitIntervalDayTime",value:function(){return Uu}},{key:"visitIntervalYearMonth",value:function(){return Ru}},{key:"visitFixedSizeList",value:function(){return Au}},{key:"visitMap",value:function(){return ec}}]),n}(Rt)),ns=["values"];function rs(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new is(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function is(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(is=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new is(e)}function as(e,t){if(ee(t))return gt.from({nullValues:[null,void 0],type:e(),values:t});if(te(t))return gt.from({nullValues:[null,void 0],type:e(),values:t});var n=Object(lt.a)({},t),r=n.values,i=void 0===r?[]:r,a=n.type,o=void 0===a?e():a,u=n.nullValues,c=void 0===u?[null,void 0]:u;return ee(i),gt.from(Object(lt.a)(Object(lt.a)({nullValues:c},t),{},{type:o}))}function os(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new us(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function us(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(us=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new us(e)}gt.new=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object(yr.a)(ts.getVisitFn(e)(),[e].concat(n))},gt.from=function(e){var t=Object(lt.a)({nullValues:[null,void 0]},e),n=t.values,r=void 0===n?[]:n,i=wu(t,ns);if(ee(r)){var a=Object(Ut.a)(Qn.throughIterable(i)(r));return 1===a.length?a[0]:gi.concat(a)}return function(){var e=Object(l.a)(d.mark((function e(t){var n,a,o,u,c,s,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=Qn.throughAsyncIterable(i),a=!1,o=!1,e.prev=3,c=rs(n(r));case 5:return e.next=7,c.next();case 7:if(!(a=!(s=e.sent).done)){e.next=13;break}l=s.value,t.push(l);case 10:a=!1,e.next=5;break;case 13:e.next=19;break;case 15:e.prev=15,e.t0=e.catch(3),o=!0,u=e.t0;case 19:if(e.prev=19,e.prev=20,!a||null==c.return){e.next=24;break}return e.next=24,c.return();case 24:if(e.prev=24,!o){e.next=27;break}throw u;case 27:return e.finish(24);case 28:return e.finish(19);case 29:return e.abrupt("return",1===t.length?t[0]:gi.concat(t));case 30:case"end":return e.stop()}}),e,null,[[3,15,19,29],[20,,24,28]])})));return function(t){return e.apply(this,arguments)}}()([])},ku.prototype.get=function(e){return zc.visit(this,e)},ku.prototype.set=function(e,t){return ha.visit(this,e,t)},ku.prototype.indexOf=function(e,t){return qc.visit(this,e,t)},ku.prototype.toArray=function(){return Jc.visit(this)},ku.prototype.getByteWidth=function(){return es.visit(this.type)},ku.prototype[Symbol.iterator]=function(){return Kc.visit(this)},ku.prototype._bindDataAccessors=function(){var e=this.nullBitmap;e&&e.byteLength>0&&(this.get=(t=this.get,function(e){return this.isValid(e)?t.call(this,e):null}),this.set=function(e){return function(t,n){Ct(this.nullBitmap,this.offset+t,!(null===n||void 0===n))&&e.call(this,t,n)}}(this.set));var t},Object.keys(wt).map((function(e){return wt[e]})).filter((function(e){return"number"===typeof e})).filter((function(e){return e!==wt.NONE})).forEach((function(e){var t,n=ts.visit(e);n.prototype.get=(t=zc.getVisitFn(e),function(e){return t(this,e)}),n.prototype.set=gc(ha.getVisitFn(e)),n.prototype.indexOf=gc(qc.getVisitFn(e)),n.prototype.toArray=mc(Jc.getVisitFn(e)),n.prototype.getByteWidth=function(e){return function(){return e(this.type)}}(es.getVisitFn(e)),n.prototype[Symbol.iterator]=mc(Kc.getVisitFn(e))}));var cs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;Object(f.a)(this,n);for(var r=null,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];a[0]instanceof Li&&(r=a.shift());var u=Si(ss,a);if(!r&&!(r=u[0]&&u[0].schema))throw new TypeError("Table must be initialized with a Schema or at least one RecordBatch");return u[0]||(u[0]=new ls(r)),(e=t.call(this,new In(r.fields),u))._schema=r,e._chunks=u,e}return Object(h.a)(n,[{key:"schema",get:function(){return this._schema}},{key:"length",get:function(){return this._length}},{key:"chunks",get:function(){return this._chunks}},{key:"numCols",get:function(){return this._numChildren}},{key:"clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._chunks;return new n(this._schema,e)}},{key:"getColumn",value:function(e){return this.getColumnAt(this.getColumnIndex(e))}},{key:"getColumnAt",value:function(e){return this.getChildAt(e)}},{key:"getColumnIndex",value:function(e){return this._schema.fields.findIndex((function(t){return t.name===e}))}},{key:"getChildAt",value:function(e){if(e<0||e>=this.numChildren)return null;var t,n,r=this._schema.fields,i=this._children||(this._children=[]);if(n=i[e])return n;if(t=r[e]){var a=this._chunks.map((function(t){return t.getChildAt(e)})).filter((function(e){return null!=e}));if(a.length>0)return i[e]=new Oi(t,a)}return null}},{key:"serialize",value:function(){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],t=e?su:lu;return t.writeAll(this).toUint8Array(!0)}},{key:"count",value:function(){return this._length}},{key:"select",value:function(){for(var e=this._schema.fields.reduce((function(e,t,n){return e.set(t.name,n)}),new Map),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.selectAt.apply(this,Object(Ut.a)(n.map((function(t){return e.get(t)})).filter((function(e){return e>-1}))))}},{key:"selectAt",value:function(){for(var e,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];var a=(e=this._schema).selectAt.apply(e,r);return new n(a,this._chunks.map((function(e){var t=e.length,n=e.data.childData;return new ss(a,t,r.map((function(e){return n[e]})).filter(Boolean))})))}},{key:"assign",value:function(e){var t=this,r=this._schema.fields,i=e.schema.fields.reduce((function(e,t,n){var i=Object(p.a)(e,2),a=i[0],o=i[1],u=r.findIndex((function(e){return e.name===t.name}));return~u?o[u]=n:a.push(n),e}),[[],[]]),a=Object(p.a)(i,2),o=a[0],u=a[1],c=this._schema.assign(e.schema),s=[].concat(Object(Ut.a)(r.map((function(n,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:u[r];return void 0===a?t.getColumnAt(r):e.getColumnAt(a)}))),Object(Ut.a)(o.map((function(t){return e.getColumnAt(t)})))).filter(Boolean);return Object(yr.a)(n,Object(Ut.a)(mu(c,s)))}}],[{key:"empty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Li([]);return new n(e,[])}},{key:"from",value:function(e){if(!e)return n.empty();if("object"===typeof e){var t=ee(e.values)?function(e){if(e.type instanceof In)return cs.fromStruct(rc.from(e));return null}(e):te(e.values)?function(e){if(e.type instanceof In)return rc.from(e).then((function(e){return cs.fromStruct(e)}));return null}(e):null;if(null!==t)return t}var r=vs.from(e);return X(r)?Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=n,e.next=3,r;case 3:return e.t1=e.sent,e.next=6,e.t0.from.call(e.t0,e.t1);case 6:return e.abrupt("return",e.sent);case 7:case"end":return e.stop()}}),e)})))():r.isSync()&&(r=r.open())?r.schema?new n(r.schema,Object(Ut.a)(r)):n.empty():function(){var e=Object(l.a)(d.mark((function e(t){var r,i,a,o,u,c,s,l,f;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:if(r=e.sent,i=r.schema,a=[],!i){e.next=35;break}o=!1,u=!1,e.prev=8,s=os(r);case 10:return e.next=12,s.next();case 12:if(!(o=!(l=e.sent).done)){e.next=18;break}f=l.value,a.push(f);case 15:o=!1,e.next=10;break;case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(8),u=!0,c=e.t0;case 24:if(e.prev=24,e.prev=25,!o||null==s.return){e.next=29;break}return e.next=29,s.return();case 29:if(e.prev=29,!u){e.next=32;break}throw c;case 32:return e.finish(29);case 33:return e.finish(24);case 34:return e.abrupt("return",new n(i,a));case 35:return e.abrupt("return",n.empty());case 36:case"end":return e.stop()}}),e,null,[[8,20,24,34],[25,,29,33]])})));return function(t){return e.apply(this,arguments)}}()(r.open())}},{key:"fromAsync",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.from(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"fromStruct",value:function(e){return n.new(e.data.childData,e.type.children)}},{key:"new",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Object(yr.a)(n,Object(Ut.a)(bu(Ti(t))))}}]),n}(gi);var ss=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e,r;Object(f.a)(this,n);for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];var u,c=a[0];if(a[1]instanceof Mn)r=a[1],u=a[2];else{var s=c.fields,l=a[1],h=a[2];r=Mn.Struct(new In(s),0,l,0,null,h)}return(e=t.call(this,r,u))._schema=c,e}return Object(h.a)(n,[{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._children;return new n(this._schema,e,t)}},{key:"concat",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=this._schema,a=gi.flatten.apply(gi,[this].concat(t));return new cs(i,a.map((function(e){var t=e.data;return new n(i,t)})))}},{key:"schema",get:function(){return this._schema}},{key:"numCols",get:function(){return this._schema.fields.length}},{key:"dictionaries",get:function(){return this._dictionaries||(this._dictionaries=fs.collect(this))}},{key:"select",value:function(){for(var e=this._schema.fields.reduce((function(e,t,n){return e.set(t.name,n)}),new Map),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.selectAt.apply(this,Object(Ut.a)(n.map((function(t){return e.get(t)})).filter((function(e){return e>-1}))))}},{key:"selectAt",value:function(){for(var e,t=this,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=(e=this._schema).selectAt.apply(e,i),u=i.map((function(e){return t.data.childData[e]})).filter(Boolean);return new n(o,this.length,u)}}],[{key:"from",value:function(e){return ee(e.values),cs.from(e)}},{key:"new",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=Ii(t),a=Object(p.a)(i,2),o=a[0],u=a[1],c=u.filter((function(e){return e instanceof gt}));return Object(yr.a)(n,Object(Ut.a)(yu(new Li(o),c.map((function(e){return e.data})))))}}]),n}(rc),ls=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){return Object(f.a)(this,n),t.call(this,e,0,e.fields.map((function(e){return Mn.new(e.type,0,0,0)})))}return n}(ss),fs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;return Object(f.a)(this,n),(e=t.apply(this,arguments)).dictionaries=new Map,e}return Object(h.a)(n,[{key:"visit",value:function(e,t){var n=this;return tn.isDictionary(t)?this.visitDictionary(e,t):(e.childData.forEach((function(e,r){return n.visit(e,t.children[r].type)})),this)}},{key:"visitDictionary",value:function(e,t){var n=e.dictionary;return n&&n.length>0&&this.dictionaries.set(t.id,n),this}}],[{key:"collect",value:function(e){return(new n).visit(e.data,new In(e.schema.fields)).dictionaries}}]),n}(Rt),hs=d.mark(Ts);function ds(e){var t,n,r,i=2;for("undefined"!==typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new ps(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function ps(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return(ps=function(e){this.s=e,this.n=e.next}).prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new ps(e)}var vs=function(e,t,n){Object(D.a)(i,e);var r=Object(L.a)(i);function i(e){var t;return Object(f.a)(this,i),(t=r.call(this))._impl=e,t}return Object(h.a)(i,[{key:"closed",get:function(){return this._impl.closed}},{key:"schema",get:function(){return this._impl.schema}},{key:"autoDestroy",get:function(){return this._impl.autoDestroy}},{key:"dictionaries",get:function(){return this._impl.dictionaries}},{key:"numDictionaries",get:function(){return this._impl.numDictionaries}},{key:"numRecordBatches",get:function(){return this._impl.numRecordBatches}},{key:"footer",get:function(){return this._impl.isFile()?this._impl.footer:null}},{key:"isSync",value:function(){return this._impl.isSync()}},{key:"isAsync",value:function(){return this._impl.isAsync()}},{key:"isFile",value:function(){return this._impl.isFile()}},{key:"isStream",value:function(){return this._impl.isStream()}},{key:"next",value:function(){return this._impl.next()}},{key:"throw",value:function(e){return this._impl.throw(e)}},{key:"return",value:function(e){return this._impl.return(e)}},{key:"cancel",value:function(){return this._impl.cancel()}},{key:"reset",value:function(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}},{key:"open",value:function(e){var t=this,n=this._impl.open(e);return X(n)?n.then((function(){return t})):this}},{key:"readRecordBatch",value:function(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}},{key:t,value:function(){return this._impl[Symbol.iterator]()}},{key:n,value:function(){return this._impl[Symbol.asyncIterator]()}},{key:"toDOMStream",value:function(){var e=this;return et.toDOMStream(this.isSync()?Object(ei.a)({},Symbol.iterator,(function(){return e})):Object(ei.a)({},Symbol.asyncIterator,(function(){return e})))}},{key:"toNodeStream",value:function(){var e=this;return et.toNodeStream(this.isSync()?Object(ei.a)({},Symbol.iterator,(function(){return e})):Object(ei.a)({},Symbol.asyncIterator,(function(){return e})),{objectMode:!0})}}],[{key:"throughNode",value:function(e){throw new Error('"throughNode" not available in this environment')}},{key:"throughDOM",value:function(e,t){throw new Error('"throughDOM" not available in this environment')}},{key:"from",value:function(e){return e instanceof i?e:ne(e)?function(e){return new ys(new js(e))}(e):ie(e)?function(e){return Bs.apply(this,arguments)}(e):X(e)?Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=i,t.next=3,e;case 3:return t.t1=t.sent,t.next=6,t.t0.from.call(t.t0,t.t1);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t)})))():ae(e)||ue(e)||se(e)||te(e)?function(e){return As.apply(this,arguments)}(new Sa(e)):function(e){var t=e.peek(Jo+7&-8);return t&&t.byteLength>=4?Go(t)?new ms(new Os(e.read())):new ys(new ks(e)):new ys(new ks(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))()))}(new ja(e))}},{key:"readAll",value:function(e){return e instanceof i?e.isSync()?Ts(e):Is(e):ne(e)||ArrayBuffer.isView(e)||ee(e)||re(e)?Ts(e):Is(e)}}]),i}(M,Symbol.iterator,Symbol.asyncIterator),ys=function(e,t,n){Object(D.a)(i,e);var r=Object(L.a)(i);function i(e){var t;return Object(f.a)(this,i),(t=r.call(this,e))._impl=e,t}return Object(h.a)(i,[{key:t,value:function(){return this._impl[Symbol.iterator]()}},{key:n,value:function(){var e=this;return m(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(g(ds(e[Symbol.iterator]()),y),"t0",1);case 1:case"end":return t.stop()}}),t)})))()}}]),i}(vs,Symbol.iterator,Symbol.asyncIterator),bs=function(e,t,n){Object(D.a)(i,e);var r=Object(L.a)(i);function i(e){var t;return Object(f.a)(this,i),(t=r.call(this,e))._impl=e,t}return Object(h.a)(i,[{key:t,value:function(){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}},{key:n,value:function(){return this._impl[Symbol.asyncIterator]()}}]),i}(vs,Symbol.iterator,Symbol.asyncIterator),ms=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._impl=e,r}return n}(ys),gs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this,e))._impl=e,r}return n}(bs),ws=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map;Object(f.a)(this,e),this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=t}return Object(h.a)(e,[{key:"numDictionaries",get:function(){return this._dictionaryIndex}},{key:"numRecordBatches",get:function(){return this._recordBatchIndex}},{key:"isSync",value:function(){return!1}},{key:"isAsync",value:function(){return!1}},{key:"isFile",value:function(){return!1}},{key:"isStream",value:function(){return!1}},{key:"reset",value:function(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}},{key:"_loadRecordBatch",value:function(e,t){return new ss(this.schema,e.length,this._loadVectors(e,t,this.schema.fields))}},{key:"_loadDictionaryBatch",value:function(e,t){var n=e.id,r=e.isDelta,i=e.data,a=this.dictionaries,o=this.schema,u=a.get(n);if(r||!u){var c=o.dictionaries.get(n);return u&&r?u.concat(gt.new(this._loadVectors(i,t,[c])[0])):gt.new(this._loadVectors(i,t,[c])[0])}return u}},{key:"_loadVectors",value:function(e,t,n){return new Ma(t,e.nodes,e.buffers,this.dictionaries).visitMany(n)}}]),e}(),ks=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e,t){var i;return Object(f.a)(this,r),(i=n.call(this,t))._reader=ne(e)?new Ho(i._handle=e):new Yo(i._handle=e),i}return Object(h.a)(r,[{key:"isSync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:t,value:function(){return this}},{key:"cancel",value:function(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}},{key:"open",value:function(e){return this.closed||(this.autoDestroy=Ss(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}},{key:"throw",value:function(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):N}},{key:"return",value:function(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):N}},{key:"next",value:function(){if(this.closed)return N;for(var e,t=this._reader;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else{if(e.isRecordBatch()){this._recordBatchIndex++;var n=e.header(),r=t.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(n,r)}}if(e.isDictionaryBatch()){this._dictionaryIndex++;var i=e.header(),a=t.readMessageBody(e.bodyLength),o=this._loadDictionaryBatch(i,a);this.dictionaries.set(i.id,o)}}return this.schema&&0===this._recordBatchIndex?(this._recordBatchIndex++,{done:!1,value:new ls(this.schema)}):this.return()}},{key:"_readNextMessageAndValidate",value:function(e){return this._reader.readMessage(e)}}]),r}(ws,Symbol.iterator),_s=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e,t){var i;return Object(f.a)(this,r),(i=n.call(this,t))._reader=new qo(i._handle=e),i}return Object(h.a)(r,[{key:"isAsync",value:function(){return!0}},{key:"isStream",value:function(){return!0}},{key:t,value:function(){return this}},{key:"cancel",value:function(){var e=Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closed||!(this.closed=!0)){e.next=5;break}return e.next=3,this.reset()._reader.return();case 3:this._reader=null,this.dictionaries=null;case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"open",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closed){e.next=10;break}if(this.autoDestroy=Ss(this,t),e.t0=this.schema,e.t0){e.next=7;break}return e.next=6,this._reader.readSchema();case 6:e.t0=this.schema=e.sent;case 7:if(e.t0){e.next=10;break}return e.next=10,this.cancel();case 10:return e.abrupt("return",this);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"throw",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){e.next=4;break}return e.next=3,this.reset()._reader.throw(t);case 3:return e.abrupt("return",e.sent);case 4:return e.abrupt("return",N);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"return",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closed||!this.autoDestroy||!(this.closed=!0)){e.next=4;break}return e.next=3,this.reset()._reader.return(t);case 3:return e.abrupt("return",e.sent);case 4:return e.abrupt("return",N);case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"next",value:function(){var e=Object(l.a)(d.mark((function e(){var t,n,r,i,a,o,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.closed){e.next=2;break}return e.abrupt("return",N);case 2:n=this._reader;case 3:return e.next=5,this._readNextMessageAndValidate();case 5:if(!(t=e.sent)){e.next=31;break}if(!t.isSchema()){e.next=11;break}return e.next=9,this.reset(t.header());case 9:e.next=29;break;case 11:if(!t.isRecordBatch()){e.next=21;break}return this._recordBatchIndex++,r=t.header(),e.next=16,n.readMessageBody(t.bodyLength);case 16:return i=e.sent,a=this._loadRecordBatch(r,i),e.abrupt("return",{done:!1,value:a});case 21:if(!t.isDictionaryBatch()){e.next=29;break}return this._dictionaryIndex++,o=t.header(),e.next=26,n.readMessageBody(t.bodyLength);case 26:u=e.sent,c=this._loadDictionaryBatch(o,u),this.dictionaries.set(o.id,c);case 29:e.next=3;break;case 31:if(!this.schema||0!==this._recordBatchIndex){e.next=34;break}return this._recordBatchIndex++,e.abrupt("return",{done:!1,value:new ls(this.schema)});case 34:return e.next=36,this.return();case 36:return e.abrupt("return",e.sent);case 37:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var e=Object(l.a)(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._reader.readMessage(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),r}(ws,Symbol.asyncIterator),Os=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){return Object(f.a)(this,n),t.call(this,e instanceof Ea?e:new Ea(e),r)}return Object(h.a)(n,[{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}},{key:"isSync",value:function(){return!0}},{key:"isFile",value:function(){return!0}},{key:"open",value:function(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;var t,r=Object(s.a)(this._footer.dictionaryBatches());try{for(r.s();!(t=r.n()).done;){t.value&&this._readDictionaryBatch(this._dictionaryIndex++)}}catch(i){r.e(i)}finally{r.f()}}return ht(Object(ft.a)(n.prototype),"open",this).call(this,e)}},{key:"readRecordBatch",value:function(e){if(this.closed)return null;this._footer||this.open();var t=this._footer&&this._footer.getRecordBatch(e);if(t&&this._handle.seek(t.offset)){var n=this._reader.readMessage(Tt.RecordBatch);if(n&&n.isRecordBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength);return this._loadRecordBatch(r,i)}}return null}},{key:"_readDictionaryBatch",value:function(e){var t=this._footer&&this._footer.getDictionaryBatch(e);if(t&&this._handle.seek(t.offset)){var n=this._reader.readMessage(Tt.DictionaryBatch);if(n&&n.isDictionaryBatch()){var r=n.header(),i=this._reader.readMessageBody(n.bodyLength),a=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,a)}}}},{key:"_readFooter",value:function(){var e=this._handle,t=e.size-Zo,n=e.readInt32(t),r=e.readAt(t-n,n);return ga.decode(r)}},{key:"_readNextMessageAndValidate",value:function(e){if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){var t=this._footer&&this._footer.getRecordBatch(this._recordBatchIndex);if(t&&this._handle.seek(t.offset))return this._reader.readMessage(e)}return null}}]),n}(ks),xs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){Object(f.a)(this,n);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];var o="number"!==typeof i[0]?i.shift():void 0,u=i[0]instanceof Map?i.shift():void 0;return t.call(this,e instanceof Aa?e:new Aa(e,o),u)}return Object(h.a)(n,[{key:"footer",get:function(){return this._footer}},{key:"numDictionaries",get:function(){return this._footer?this._footer.numDictionaries:0}},{key:"numRecordBatches",get:function(){return this._footer?this._footer.numRecordBatches:0}},{key:"isFile",value:function(){return!0}},{key:"isAsync",value:function(){return!0}},{key:"open",value:function(){var e=Object(l.a)(d.mark((function e(t){var r,i,a;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.closed||this._footer){e.next=23;break}return e.next=3,this._readFooter();case 3:this.schema=(this._footer=e.sent).schema,r=Object(s.a)(this._footer.dictionaryBatches()),e.prev=5,r.s();case 7:if((i=r.n()).done){e.next=15;break}if(a=i.value,e.t0=a,!e.t0){e.next=13;break}return e.next=13,this._readDictionaryBatch(this._dictionaryIndex++);case 13:e.next=7;break;case 15:e.next=20;break;case 17:e.prev=17,e.t1=e.catch(5),r.e(e.t1);case 20:return e.prev=20,r.f(),e.finish(20);case 23:return e.next=25,ht(Object(ft.a)(n.prototype),"open",this).call(this,t);case 25:return e.abrupt("return",e.sent);case 26:case"end":return e.stop()}}),e,this,[[5,17,20,23]])})));return function(t){return e.apply(this,arguments)}}()},{key:"readRecordBatch",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.closed){e.next=2;break}return e.abrupt("return",null);case 2:if(this._footer){e.next=5;break}return e.next=5,this.open();case 5:if(n=this._footer&&this._footer.getRecordBatch(t),e.t0=n,!e.t0){e.next=11;break}return e.next=10,this._handle.seek(n.offset);case 10:e.t0=e.sent;case 11:if(!e.t0){e.next=22;break}return e.next=14,this._reader.readMessage(Tt.RecordBatch);case 14:if(!(r=e.sent)||!r.isRecordBatch()){e.next=22;break}return i=r.header(),e.next=19,this._reader.readMessageBody(r.bodyLength);case 19:return a=e.sent,o=this._loadRecordBatch(i,a),e.abrupt("return",o);case 22:return e.abrupt("return",null);case 23:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_readDictionaryBatch",value:function(){var e=Object(l.a)(d.mark((function e(t){var n,r,i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._footer&&this._footer.getDictionaryBatch(t),e.t0=n,!e.t0){e.next=6;break}return e.next=5,this._handle.seek(n.offset);case 5:e.t0=e.sent;case 6:if(!e.t0){e.next=17;break}return e.next=9,this._reader.readMessage(Tt.DictionaryBatch);case 9:if(!(r=e.sent)||!r.isDictionaryBatch()){e.next=17;break}return i=r.header(),e.next=14,this._reader.readMessageBody(r.bodyLength);case 14:a=e.sent,o=this._loadDictionaryBatch(i,a),this.dictionaries.set(i.id,o);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_readFooter",value:function(){var e=Object(l.a)(d.mark((function e(){var t,n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this._handle,e.t0=t._pending,!e.t0){e.next=5;break}return e.next=5,t._pending;case 5:return n=t.size-Zo,e.next=8,t.readInt32(n);case 8:return r=e.sent,e.next=11,t.readAt(n-r,r);case 11:return i=e.sent,e.abrupt("return",ga.decode(i));case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_readNextMessageAndValidate",value:function(){var e=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._footer){e.next=3;break}return e.next=3,this.open();case 3:if(!(this._footer&&this._recordBatchIndex<this.numRecordBatches)){e.next=14;break}if(n=this._footer.getRecordBatch(this._recordBatchIndex),e.t0=n,!e.t0){e.next=10;break}return e.next=9,this._handle.seek(n.offset);case 9:e.t0=e.sent;case 10:if(!e.t0){e.next=14;break}return e.next=13,this._reader.readMessage(t);case 13:return e.abrupt("return",e.sent);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(_s),js=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){return Object(f.a)(this,n),t.call(this,e,r)}return Object(h.a)(n,[{key:"_loadVectors",value:function(e,t,n){return new Pa(t,e.nodes,e.buffers,this.dictionaries).visitMany(n)}}]),n}(ks);function Ss(e,t){return t&&"boolean"===typeof t.autoDestroy?t.autoDestroy:e.autoDestroy}function Ts(e){var t;return d.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t=vs.from(e),n.prev=1,t.open({autoDestroy:!1}).closed){n.next=6;break}case 3:return n.next=5,t;case 5:if(!t.reset().open().closed){n.next=3;break}case 6:return n.prev=6,t.cancel(),n.finish(6);case 9:case"end":return n.stop()}}),hs,null,[[1,,6,9]])}function Is(e){return Es.apply(this,arguments)}function Es(){return(Es=m(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,y(vs.from(t));case 2:return n=e.sent,e.prev=3,e.next=6,y(n.open({autoDestroy:!1}));case 6:if(e.sent.closed){e.next=12;break}case 7:return e.next=9,n;case 9:return e.next=11,y(n.reset().open());case 11:if(!e.sent.closed){e.next=7;break}case 12:return e.prev=12,e.next=15,y(n.cancel());case 15:return e.finish(12);case 16:case"end":return e.stop()}}),e,null,[[3,,12,16]])})))).apply(this,arguments)}function As(){return(As=Object(l.a)(d.mark((function e(t){var n;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.peek(Jo+7&-8);case 2:if(!((n=e.sent)&&n.byteLength>=4)){e.next=18;break}if(Go(n)){e.next=8;break}e.t1=new bs(new _s(t)),e.next=15;break;case 8:return e.t2=ms,e.t3=Os,e.next=12,t.read();case 12:e.t4=e.sent,e.t5=new e.t3(e.t4),e.t1=new e.t2(e.t5);case 15:e.t0=e.t1,e.next=19;break;case 18:e.t0=new bs(new _s(m(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()));case 19:return e.abrupt("return",e.t0);case 20:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Bs(){return(Bs=Object(l.a)(d.mark((function e(t){var n,r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.stat();case 2:if(n=e.sent,r=n.size,i=new Aa(t,r),!(r>=Xo)){e.next=12;break}return e.t0=Go,e.next=9,i.readAt(0,Jo+7&-8);case 9:if(e.t1=e.sent,!(0,e.t0)(e.t1)){e.next=12;break}return e.abrupt("return",new gs(new xs(i)));case 12:return e.abrupt("return",new bs(new _s(i)));case 13:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Cs=["readableStrategy","writableStrategy","queueingStrategy"];var Ds=function(){function e(t){var n,r,i=this;Object(f.a)(this,e),this._numChunks=0,this._finished=!1,this._bufferedSize=0;var a=t.readableStrategy,o=t.writableStrategy,u=t.queueingStrategy,c=void 0===u?"count":u,s=wu(t,Cs);this._controller=null,this._builder=Qn.new(s),this._getSize="bytes"!==c?Ls:Ns;var l=Object(lt.a)({},a).highWaterMark,h=void 0===l?"bytes"===c?Math.pow(2,14):1e3:l,d=Object(lt.a)({},o).highWaterMark,p=void 0===d?"bytes"===c?Math.pow(2,14):1e3:d;this.readable=new ReadableStream((n={},Object(ei.a)(n,"cancel",(function(){i._builder.clear()})),Object(ei.a)(n,"pull",(function(e){i._maybeFlush(i._builder,i._controller=e)})),Object(ei.a)(n,"start",(function(e){i._maybeFlush(i._builder,i._controller=e)})),n),{highWaterMark:h,size:"bytes"!==c?Ls:Ns}),this.writable=new WritableStream((r={},Object(ei.a)(r,"abort",(function(){i._builder.clear()})),Object(ei.a)(r,"write",(function(){i._maybeFlush(i._builder,i._controller)})),Object(ei.a)(r,"close",(function(){i._maybeFlush(i._builder.finish(),i._controller)})),r),{highWaterMark:p,size:function(e){return i._writeValueAndReturnChunkSize(e)}})}return Object(h.a)(e,[{key:"_writeValueAndReturnChunkSize",value:function(e){var t=this._bufferedSize;return this._bufferedSize=this._getSize(this._builder.append(e)),this._bufferedSize-t}},{key:"_maybeFlush",value:function(e,t){null!==t&&(this._bufferedSize>=t.desiredSize&&++this._numChunks&&this._enqueue(t,e.toVector()),e.finished&&((e.length>0||0===this._numChunks)&&++this._numChunks&&this._enqueue(t,e.toVector()),!this._finished&&(this._finished=!0)&&this._enqueue(t,null)))}},{key:"_enqueue",value:function(e,t){this._bufferedSize=0,this._controller=null,null===t?e.close():e.enqueue(t)}}]),e}(),Ls=function(e){return e.length},Ns=function(e){return e.byteLength};var Fs=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"eq",value:function(t){return t instanceof e||(t=new Ms(t)),new Ys(this,t)}},{key:"le",value:function(t){return t instanceof e||(t=new Ms(t)),new qs(this,t)}},{key:"ge",value:function(t){return t instanceof e||(t=new Ms(t)),new Hs(this,t)}},{key:"lt",value:function(e){return new $s(this.ge(e))}},{key:"gt",value:function(e){return new $s(this.le(e))}},{key:"ne",value:function(e){return new $s(this.eq(e))}}]),e}(),Ms=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).v=e,r}return n}(Fs),Ps=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).name=e,r}return Object(h.a)(n,[{key:"bind",value:function(e){if(!this.colidx){this.colidx=-1;for(var t=e.schema.fields,n=-1;++n<t.length;)if(t[n].name===this.name){this.colidx=n;break}if(this.colidx<0)throw new Error('Failed to bind Col "'.concat(this.name,'"'))}var r=this.vector=e.getChildAt(this.colidx);return function(e){return r.get(e)}}}]),n}(Fs),Us=function(){function e(){Object(f.a)(this,e)}return Object(h.a)(e,[{key:"and",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(yr.a)(Vs,[this].concat(t))}},{key:"or",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object(yr.a)(Ws,[this].concat(t))}},{key:"not",value:function(){return new $s(this)}}]),e}(),Rs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){var i;return Object(f.a)(this,n),(i=t.call(this)).left=e,i.right=r,i}return Object(h.a)(n,[{key:"bind",value:function(e){return this.left instanceof Ms?this.right instanceof Ms?this._bindLitLit(e,this.left,this.right):this._bindLitCol(e,this.left,this.right):this.right instanceof Ms?this._bindColLit(e,this.left,this.right):this._bindColCol(e,this.left,this.right)}}]),n}(Us),zs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){var e;Object(f.a)(this,n),e=t.call(this);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e.children=i,e}return n}(Us);zs.prototype.children=Object.freeze([]);var Vs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return Object(f.a)(this,n),r=r.reduce((function(e,t){return e.concat(t instanceof n?t.children:t)}),[]),t.call.apply(t,[this].concat(Object(Ut.a)(r)))}return Object(h.a)(n,[{key:"bind",value:function(e){var t=this.children.map((function(t){return t.bind(e)}));return function(e,n){return t.every((function(t){return t(e,n)}))}}}]),n}(zs),Ws=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return Object(f.a)(this,n),r=r.reduce((function(e,t){return e.concat(t instanceof n?t.children:t)}),[]),t.call.apply(t,[this].concat(Object(Ut.a)(r)))}return Object(h.a)(n,[{key:"bind",value:function(e){var t=this.children.map((function(t){return t.bind(e)}));return function(e,n){return t.some((function(t){return t(e,n)}))}}}]),n}(zs),Ys=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"_bindLitLit",value:function(e,t,n){var r=t.v==n.v;return function(){return r}}},{key:"_bindColCol",value:function(e,t,n){var r=t.bind(e),i=n.bind(e);return function(e,t){return r(e,t)==i(e,t)}}},{key:"_bindColLit",value:function(e,t,n){var r=t.bind(e);if(t.vector instanceof Iu){var i,a=t.vector;return a.dictionary!==this.lastDictionary?(i=a.reverseLookup(n.v),this.lastDictionary=a.dictionary,this.lastKey=i):i=this.lastKey,-1===i?function(){return!1}:function(e){return a.getKey(e)===i}}return function(e,t){return r(e,t)==n.v}}},{key:"_bindLitCol",value:function(e,t,n){return this._bindColLit(e,n,t)}}]),n}(Rs),qs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"_bindLitLit",value:function(e,t,n){var r=t.v<=n.v;return function(){return r}}},{key:"_bindColCol",value:function(e,t,n){var r=t.bind(e),i=n.bind(e);return function(e,t){return r(e,t)<=i(e,t)}}},{key:"_bindColLit",value:function(e,t,n){var r=t.bind(e);return function(e,t){return r(e,t)<=n.v}}},{key:"_bindLitCol",value:function(e,t,n){var r=n.bind(e);return function(e,n){return t.v<=r(e,n)}}}]),n}(Rs),Hs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"_bindLitLit",value:function(e,t,n){var r=t.v>=n.v;return function(){return r}}},{key:"_bindColCol",value:function(e,t,n){var r=t.bind(e),i=n.bind(e);return function(e,t){return r(e,t)>=i(e,t)}}},{key:"_bindColLit",value:function(e,t,n){var r=t.bind(e);return function(e,t){return r(e,t)>=n.v}}},{key:"_bindLitCol",value:function(e,t,n){var r=n.bind(e);return function(e,n){return t.v>=r(e,n)}}}]),n}(Rs),$s=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e){var r;return Object(f.a)(this,n),(r=t.call(this)).child=e,r}return Object(h.a)(n,[{key:"bind",value:function(e){var t=this.child.bind(e);return function(e,n){return!t(e,n)}}}]),n}(Us);cs.prototype.countBy=function(e){return new Ks(this.chunks).countBy(e)},cs.prototype.scan=function(e,t){return new Ks(this.chunks).scan(e,t)},cs.prototype.scanReverse=function(e,t){return new Ks(this.chunks).scanReverse(e,t)},cs.prototype.filter=function(e){return new Ks(this.chunks).filter(e)};var Ks=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(){return Object(f.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"filter",value:function(e){return new Gs(this.chunks,e)}},{key:"scan",value:function(e,t){for(var n=this.chunks,r=n.length,i=-1;++i<r;){var a=n[i];t&&t(a);for(var o=-1,u=a.length;++o<u;)e(o,a)}}},{key:"scanReverse",value:function(e,t){for(var n=this.chunks,r=n.length;--r>=0;){var i=n[r];t&&t(i);for(var a=i.length;--a>=0;)e(a,i)}}},{key:"countBy",value:function(e){var t=this.chunks,n=t.length,r="string"===typeof e?new Ps(e):e;r.bind(t[n-1]);var i=r.vector;if(!tn.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var a=Math.ceil(Math.log(i.length)/Math.log(256)),o=new(4==a?Uint32Array:a>=2?Uint16Array:Uint8Array)(i.dictionary.length),u=-1;++u<n;){var c=t[u];r.bind(c);for(var s=r.vector.indices,l=-1,f=c.length;++l<f;){var h=s.get(l);null!==h&&o[h]++}}return new Qs(i.dictionary,zu.from(o))}}]),n}(cs),Qs=function(e){Object(D.a)(n,e);var t=Object(L.a)(n);function n(e,r){Object(f.a)(this,n);var i=new Li([new Ni("values",e.type),new Ni("counts",r.type)]);return t.call(this,new ss(i,r.length,[e,r]))}return Object(h.a)(n,[{key:"toJSON",value:function(){for(var e=this.getColumnAt(0),t=this.getColumnAt(1),n={},r=-1;++r<this.length;)n[e.get(r)]=t.get(r);return n}}]),n}(cs),Gs=function(e,t){Object(D.a)(r,e);var n=Object(L.a)(r);function r(e,t){var i;return Object(f.a)(this,r),(i=n.call(this,e))._predicate=t,i}return Object(h.a)(r,[{key:"scan",value:function(e,t){for(var n=this._chunks,r=n.length,i=-1;++i<r;)for(var a=n[i],o=this._predicate.bind(a),u=!1,c=-1,s=a.length;++c<s;)o(c,a)&&(t&&!u&&(t(a),u=!0),e(c,a))}},{key:"scanReverse",value:function(e,t){for(var n=this._chunks,r=n.length;--r>=0;)for(var i=n[r],a=this._predicate.bind(i),o=!1,u=i.length;--u>=0;)a(u,i)&&(t&&!o&&(t(i),o=!0),e(u,i))}},{key:"count",value:function(){for(var e=0,t=this._chunks,n=t.length,r=-1;++r<n;)for(var i=t[r],a=this._predicate.bind(i),o=-1,u=i.length;++o<u;)a(o,i)&&++e;return e}},{key:t,value:d.mark((function e(){var t,n,r,i,a,o,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=this._chunks,n=t.length,r=-1;case 3:if(!(++r<n)){e.next=15;break}i=t[r],a=this._predicate.bind(i),o=-1,u=i.length;case 7:if(!(++o<u)){e.next=13;break}if(!a(o,i)){e.next=11;break}return e.next=11,i.get(o);case 11:e.next=7;break;case 13:e.next=3;break;case 15:case"end":return e.stop()}}),e,this)}))},{key:"filter",value:function(e){return new r(this._chunks,this._predicate.and(e))}},{key:"countBy",value:function(e){var t=this._chunks,n=t.length,r="string"===typeof e?new Ps(e):e;r.bind(t[n-1]);var i=r.vector;if(!tn.isDictionary(i.type))throw new Error("countBy currently only supports dictionary-encoded columns");for(var a=Math.ceil(Math.log(i.length)/Math.log(256)),o=new(4==a?Uint32Array:a>=2?Uint16Array:Uint8Array)(i.dictionary.length),u=-1;++u<n;){var c=t[u],s=this._predicate.bind(c);r.bind(c);for(var l=r.vector.indices,f=-1,h=c.length;++f<h;){var d=l.get(f);null!==d&&s(f,c)&&o[d]++}}return new Qs(i.dictionary,zu.from(o))}}]),r}(Ks,Symbol.iterator);Object(lt.a)(Object(lt.a)(Object(lt.a)(Object(lt.a)(Object(lt.a)(Object(lt.a)({},o),c),i),a),r),u);et.toDOMStream=function(e,t){if(te(e))return function(e,t){var n=null,r=t&&"bytes"===t.type||!1,i=t&&t.highWaterMark||Math.pow(2,24);return new ReadableStream(Object(lt.a)(Object(lt.a)({},t),{},{start:function(t){return Object(l.a)(d.mark((function r(){return d.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,a(t,n||(n=e[Symbol.asyncIterator]()));case 2:case"end":return r.stop()}}),r)})))()},pull:function(e){return Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=5;break}return t.next=3,a(e,n);case 3:t.next=6;break;case 5:e.close();case 6:case"end":return t.stop()}}),t)})))()},cancel:function(){return Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t1=n,!e.t1){e.next=8;break}if(e.t2=n.return,!e.t2){e.next=7;break}return e.next=6,n.return();case 6:e.t2=e.sent;case 7:e.t1=e.t2;case 8:if(e.t0=e.t1,e.t0){e.next=11;break}e.t0=!0;case 11:if(e.t3=e.t0,!e.t3){e.next=14;break}n=null;case 14:case"end":return e.stop()}}),e)})))()}}),Object(lt.a)({highWaterMark:r?i:void 0},t));function a(e,t){return o.apply(this,arguments)}function o(){return(o=Object(l.a)(d.mark((function e(t,n){var i,a,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a=null,o=t.desiredSize||null;case 2:return e.next=4,n.next(r?o:null);case 4:if((a=e.sent).done){e.next=11;break}if(ArrayBuffer.isView(a.value)&&(i=_e(a.value))&&(null!=o&&r&&(o=o-i.byteLength+1),a.value=i),t.enqueue(a.value),!(null!=o&&--o<=0)){e.next=9;break}return e.abrupt("return");case 9:e.next=2;break;case 11:t.close();case 12:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}(e,t);if(ee(e))return function(e,t){var n=null,r=t&&"bytes"===t.type||!1,i=t&&t.highWaterMark||Math.pow(2,24);return new ReadableStream(Object(lt.a)(Object(lt.a)({},t),{},{start:function(t){a(t,n||(n=e[Symbol.iterator]()))},pull:function(e){n?a(e,n):e.close()},cancel:function(){n&&n.return&&n.return(),n=null}}),Object(lt.a)({highWaterMark:r?i:void 0},t));function a(e,t){for(var n,i=null,a=e.desiredSize||null;!(i=t.next(r?a:null)).done;)if(ArrayBuffer.isView(i.value)&&(n=_e(i.value))&&(null!=a&&r&&(a=a-n.byteLength+1),i.value=n),e.enqueue(i.value),null!=a&&--a<=0)return;e.close()}}(e,t);throw new Error("toDOMStream() must be called with an Iterable or AsyncIterable")},Qn.throughDOM=function(e){return new Ds(e)},vs.throughDOM=function(e,t){var n=new xa,r=null,i=new ReadableStream({cancel:function(){return Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.close();case 2:case"end":return e.stop()}}),e)})))()},start:function(e){return Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=u,t.t1=e,t.t2=r,t.t2){t.next=7;break}return t.next=6,a();case 6:t.t2=r=t.sent;case 7:return t.t3=t.t2,t.next=10,(0,t.t0)(t.t1,t.t3);case 10:case"end":return t.stop()}}),t)})))()},pull:function(e){return Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r){t.next=5;break}return t.next=3,u(e,r);case 3:t.next=6;break;case 5:e.close();case 6:case"end":return t.stop()}}),t)})))()}});return{writable:new WritableStream(n,Object(lt.a)({highWaterMark:Math.pow(2,14)},e)),readable:i};function a(){return o.apply(this,arguments)}function o(){return(o=Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,vs.from(n);case 2:return e.next=4,e.sent.open(t);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function u(e,t){return c.apply(this,arguments)}function c(){return(c=Object(l.a)(d.mark((function e(t,n){var r,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.desiredSize,i=null;case 2:return e.next=4,n.next();case 4:if((i=e.sent).done){e.next=10;break}if(t.enqueue(i.value),!(null!=r&&--r<=0)){e.next=8;break}return e.abrupt("return");case 8:e.next=2;break;case 10:t.close();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},cu.throughDOM=function(e,t){var n=new this(e),r=new Sa(n),i=new ReadableStream({type:"bytes",cancel:function(){return Object(l.a)(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r.cancel();case 2:case"end":return e.stop()}}),e)})))()},pull:function(e){return Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(e);case 2:case"end":return t.stop()}}),t)})))()},start:function(e){return Object(l.a)(d.mark((function t(){return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,a(e);case 2:case"end":return t.stop()}}),t)})))()}},Object(lt.a)({highWaterMark:Math.pow(2,14)},t));return{writable:new WritableStream(n,e),readable:i};function a(e){return o.apply(this,arguments)}function o(){return(o=Object(l.a)(d.mark((function e(t){var n,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=null,i=t.desiredSize;case 2:return e.next=4,r.read(i||null);case 4:if(!(n=e.sent)){e.next=10;break}if(t.enqueue(n),!(null!=i&&(i-=n.byteLength)<=0)){e.next=8;break}return e.abrupt("return");case 8:e.next=2;break;case 10:t.close();case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}}},function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";t.a=function(e){return function(){return e}}},function(e,t,n){"use strict";t.a=function(e){return e}},function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return a}));var r=Array.prototype,i=r.map,a=r.forEach},function(e,t,n){"use strict";n.d(t,"a",(function(){return Ce})),n.d(t,"b",(function(){return De.a}));var r=n(0),i=n(4);function a(e,t,n){n=n||{};var r=e.ownerDocument,i=r.defaultView.CustomEvent;"function"===typeof i?i=new i(t,{detail:n}):((i=r.createEvent("Event")).initEvent(t,!1,!1),i.detail=n),e.dispatchEvent(i)}var o=n(1),u=n.n(o),c=n(7),s=n(8);function l(e){return Array.isArray(e)||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function f(e){return e===(0|e)+""}function h(e){var t=document.createElement("span");return t.className="observablehq--cellname",t.textContent="".concat(e," = "),t}var d=Symbol.prototype.toString;function p(e){return d.call(e)}var v=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,b=Symbol.toStringTag,m={},g=v;function w(e,t){return y.call(e,t)}function k(e){return e[b]||e.constructor&&e.constructor.name||"Object"}function _(e,t){try{var n=e[t];return n&&n.constructor,n}catch(r){return m}}var O=[{symbol:"@@__IMMUTABLE_INDEXED__@@",name:"Indexed",modifier:!0},{symbol:"@@__IMMUTABLE_KEYED__@@",name:"Keyed",modifier:!0},{symbol:"@@__IMMUTABLE_LIST__@@",name:"List",arrayish:!0},{symbol:"@@__IMMUTABLE_MAP__@@",name:"Map"},{symbol:"@@__IMMUTABLE_ORDERED__@@",name:"Ordered",modifier:!0,prefix:!0},{symbol:"@@__IMMUTABLE_RECORD__@@",name:"Record"},{symbol:"@@__IMMUTABLE_SET__@@",name:"Set",arrayish:!0,setish:!0},{symbol:"@@__IMMUTABLE_STACK__@@",name:"Stack",arrayish:!0}];function x(e){try{var t=O.filter((function(t){var n=t.symbol;return!0===e[n]}));if(!t.length)return;var n=t.find((function(e){return!e.modifier})),r="Map"===n.name&&t.find((function(e){return e.modifier&&e.prefix})),i=t.some((function(e){return e.arrayish})),a=t.some((function(e){return e.setish}));return{name:"".concat(r?r.name:"").concat(n.name),symbols:t,arrayish:i&&!a,setish:a}}catch(o){return null}}var j=u.a.mark(M),S=u.a.mark(P),T=u.a.mark(U),I=u.a.mark(R),E=u.a.mark(z),A=u.a.mark(V),B=u.a.mark(W),C=u.a.mark(Y),D=Object.getPrototypeOf,L=Object.getOwnPropertyDescriptors,N=D({});function F(e,t,n,r){var i,o,u,c,s=l(e);e instanceof Map?e instanceof e.constructor?(i="Map(".concat(e.size,")"),o=M):(i="Map()",o=W):e instanceof Set?e instanceof e.constructor?(i="Set(".concat(e.size,")"),o=P):(i="Set()",o=W):s?(i="".concat(e.constructor.name,"(").concat(e.length,")"),o=R):(c=x(e))?(i="Immutable.".concat(c.name).concat("Record"===c.name?"":"(".concat(e.size,")")),s=c.arrayish,o=c.arrayish?z:c.setish?U:Y):r?(i=k(e),o=V):(i=k(e),o=W);var f=document.createElement("span");f.className="observablehq--expanded",n&&f.appendChild(h(n));var d=f.appendChild(document.createElement("a"));d.innerHTML="<svg width=8 height=8 class='observablehq--caret'>\n    <path d='M4 7L0 1h8z' fill='currentColor' />\n  </svg>",d.appendChild(document.createTextNode("".concat(i).concat(s?" [":" {"))),d.addEventListener("mouseup",(function(t){t.stopPropagation(),Ae(f,re(e,null,n,r))})),o=o(e);for(var p=0;!(u=o.next()).done&&p<20;++p)f.appendChild(u.value);if(!u.done){var v=f.appendChild(document.createElement("a"));v.className="observablehq--field",v.style.display="block",v.appendChild(document.createTextNode("  \u2026 more")),v.addEventListener("mouseup",(function(e){e.stopPropagation(),f.insertBefore(u.value,f.lastChild.previousSibling);for(var t=0;!(u=o.next()).done&&t<19;++t)f.insertBefore(u.value,f.lastChild.previousSibling);u.done&&f.removeChild(f.lastChild.previousSibling),a(f,"load")}))}return f.appendChild(document.createTextNode(s?"]":"}")),f}function M(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=Object(s.a)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=9;break}return r=Object(c.a)(n.value,2),i=r[0],a=r[1],o.next=7,$(i,a);case 7:o.next=3;break;case 9:o.next=14;break;case 11:o.prev=11,o.t0=o.catch(1),t.e(o.t0);case 14:return o.prev=14,t.f(),o.finish(14);case 17:return o.delegateYield(W(e),"t1",18);case 18:case"end":return o.stop()}}),j,null,[[1,11,14,17]])}function P(e){var t,n,r;return u.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=Object(s.a)(e),i.prev=1,t.s();case 3:if((n=t.n()).done){i.next=9;break}return r=n.value,i.next=7,K(r);case 7:i.next=3;break;case 9:i.next=14;break;case 11:i.prev=11,i.t0=i.catch(1),t.e(i.t0);case 14:return i.prev=14,t.f(),i.finish(14);case 17:return i.delegateYield(W(e),"t1",18);case 18:case"end":return i.stop()}}),S,null,[[1,11,14,17]])}function U(e){var t,n,r;return u.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=Object(s.a)(e),i.prev=1,t.s();case 3:if((n=t.n()).done){i.next=9;break}return r=n.value,i.next=7,K(r);case 7:i.next=3;break;case 9:i.next=14;break;case 11:i.prev=11,i.t0=i.catch(1),t.e(i.t0);case 14:return i.prev=14,t.f(),i.finish(14);case 17:case"end":return i.stop()}}),T,null,[[1,11,14,17]])}function R(e){var t,n,r,i,a,o;return u.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:t=0,n=e.length;case 1:if(!(t<n)){c.next=8;break}if(!(t in e)){c.next=5;break}return c.next=5,H(t,_(e,t),"observablehq--index");case 5:++t,c.next=1;break;case 8:c.t0=u.a.keys(e);case 9:if((c.t1=c.t0()).done){c.next=16;break}if(f(r=c.t1.value)||!w(e,r)){c.next=14;break}return c.next=14,H(r,_(e,r),"observablehq--key");case 14:c.next=9;break;case 16:i=Object(s.a)(g(e)),c.prev=17,i.s();case 19:if((a=i.n()).done){c.next=25;break}return o=a.value,c.next=23,H(p(o),_(e,o),"observablehq--symbol");case 23:c.next=19;break;case 25:c.next=30;break;case 27:c.prev=27,c.t2=c.catch(17),i.e(c.t2);case 30:return c.prev=30,i.f(),c.finish(30);case 33:case"end":return c.stop()}}),I,null,[[17,27,30,33]])}function z(e){var t,n;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:t=0,n=e.size;case 2:if(!(t<n)){r.next=8;break}return r.next=5,H(t,e.get(t),!0);case 5:++t,r.next=2;break;case 8:case"end":return r.stop()}}),E)}function V(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:o.t0=u.a.keys(L(e));case 1:if((o.t1=o.t0()).done){o.next=7;break}return t=o.t1.value,o.next=5,H(t,_(e,t),"observablehq--key");case 5:o.next=1;break;case 7:n=Object(s.a)(g(e)),o.prev=8,n.s();case 10:if((r=n.n()).done){o.next=16;break}return i=r.value,o.next=14,H(p(i),_(e,i),"observablehq--symbol");case 14:o.next=10;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o.catch(8),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:if(!(a=D(e))||a===N){o.next=28;break}return o.next=28,q(a);case 28:case"end":return o.stop()}}),A,null,[[8,18,21,24]])}function W(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:o.t0=u.a.keys(e);case 1:if((o.t1=o.t0()).done){o.next=8;break}if(t=o.t1.value,!w(e,t)){o.next=6;break}return o.next=6,H(t,_(e,t),"observablehq--key");case 6:o.next=1;break;case 8:n=Object(s.a)(g(e)),o.prev=9,n.s();case 11:if((r=n.n()).done){o.next=17;break}return i=r.value,o.next=15,H(p(i),_(e,i),"observablehq--symbol");case 15:o.next=11;break;case 17:o.next=22;break;case 19:o.prev=19,o.t2=o.catch(9),n.e(o.t2);case 22:return o.prev=22,n.f(),o.finish(22);case 25:if(!(a=D(e))||a===N){o.next=29;break}return o.next=29,q(a);case 29:case"end":return o.stop()}}),B,null,[[9,19,22,25]])}function Y(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=Object(s.a)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=9;break}return r=Object(c.a)(n.value,2),i=r[0],a=r[1],o.next=7,H(i,a,"observablehq--key");case 7:o.next=3;break;case 9:o.next=14;break;case 11:o.prev=11,o.t0=o.catch(1),t.e(o.t0);case 14:return o.prev=14,t.f(),o.finish(14);case 17:case"end":return o.stop()}}),C,null,[[1,11,14,17]])}function q(e){var t=document.createElement("div"),n=t.appendChild(document.createElement("span"));return t.className="observablehq--field",n.className="observablehq--prototype-key",n.textContent="  <prototype>",t.appendChild(document.createTextNode(": ")),t.appendChild(Ee(e,void 0,void 0,void 0,!0)),t}function H(e,t,n){var r=document.createElement("div"),i=r.appendChild(document.createElement("span"));return r.className="observablehq--field",i.className=n,i.textContent="  ".concat(e),r.appendChild(document.createTextNode(": ")),r.appendChild(Ee(t)),r}function $(e,t){var n=document.createElement("div");return n.className="observablehq--field",n.appendChild(document.createTextNode("  ")),n.appendChild(Ee(e)),n.appendChild(document.createTextNode(" => ")),n.appendChild(Ee(t)),n}function K(e){var t=document.createElement("div");return t.className="observablehq--field",t.appendChild(document.createTextNode("  ")),t.appendChild(Ee(e)),t}var Q=u.a.mark(ie),G=u.a.mark(ae),J=u.a.mark(oe),Z=u.a.mark(ue),X=u.a.mark(ce),ee=u.a.mark(se),te=u.a.mark(le);function ne(e){var t=window.getSelection();return"Range"===t.type&&(t.containsNode(e,!0)||t.anchorNode.isSelfOrDescendant(e)||t.focusNode.isSelfOrDescendant(e))}function re(e,t,n,r){var i,a,o,u,c=l(e);if(e instanceof Map?e instanceof e.constructor?(i="Map(".concat(e.size,")"),a=ie):(i="Map()",a=se):e instanceof Set?e instanceof e.constructor?(i="Set(".concat(e.size,")"),a=ae):(i="Set()",a=se):c?(i="".concat(e.constructor.name,"(").concat(e.length,")"),a=ce):(u=x(e))?(i="Immutable.".concat(u.name).concat("Record"===u.name?"":"(".concat(e.size,")")),c=u.arrayish,a=u.arrayish?ue:u.setish?oe:le):(i=k(e),a=se),t){var s=document.createElement("span");return s.className="observablehq--shallow",n&&s.appendChild(h(n)),s.appendChild(document.createTextNode(i)),s.addEventListener("mouseup",(function(t){ne(s)||(t.stopPropagation(),Ae(s,re(e)))})),s}var f=document.createElement("span");f.className="observablehq--collapsed",n&&f.appendChild(h(n));var d=f.appendChild(document.createElement("a"));d.innerHTML="<svg width=8 height=8 class='observablehq--caret'>\n    <path d='M7 4L1 8V0z' fill='currentColor' />\n  </svg>",d.appendChild(document.createTextNode("".concat(i).concat(c?" [":" {"))),f.addEventListener("mouseup",(function(t){ne(f)||(t.stopPropagation(),Ae(f,F(e,0,n,r)))}),!0),a=a(e);for(var p=0;!(o=a.next()).done&&p<20;++p)p>0&&f.appendChild(document.createTextNode(", ")),f.appendChild(o.value);return o.done||f.appendChild(document.createTextNode(", \u2026")),f.appendChild(document.createTextNode(c?"]":"}")),f}function ie(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=Object(s.a)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=9;break}return r=Object(c.a)(n.value,2),i=r[0],a=r[1],o.next=7,de(i,a);case 7:o.next=3;break;case 9:o.next=14;break;case 11:o.prev=11,o.t0=o.catch(1),t.e(o.t0);case 14:return o.prev=14,t.f(),o.finish(14);case 17:return o.delegateYield(se(e),"t1",18);case 18:case"end":return o.stop()}}),Q,null,[[1,11,14,17]])}function ae(e){var t,n,r;return u.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=Object(s.a)(e),i.prev=1,t.s();case 3:if((n=t.n()).done){i.next=9;break}return r=n.value,i.next=7,Ee(r,!0);case 7:i.next=3;break;case 9:i.next=14;break;case 11:i.prev=11,i.t0=i.catch(1),t.e(i.t0);case 14:return i.prev=14,t.f(),i.finish(14);case 17:return i.delegateYield(se(e),"t1",18);case 18:case"end":return i.stop()}}),G,null,[[1,11,14,17]])}function oe(e){var t,n,r;return u.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=Object(s.a)(e),i.prev=1,t.s();case 3:if((n=t.n()).done){i.next=9;break}return r=n.value,i.next=7,Ee(r,!0);case 7:i.next=3;break;case 9:i.next=14;break;case 11:i.prev=11,i.t0=i.catch(1),t.e(i.t0);case 14:return i.prev=14,t.f(),i.finish(14);case 17:case"end":return i.stop()}}),J,null,[[1,11,14,17]])}function ue(e){var t,n,r;return u.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=-1,n=0,r=e.size;case 2:if(!(n<r)){i.next=12;break}if(!(n>t+1)){i.next=6;break}return i.next=6,fe(n-t-1);case 6:return i.next=8,Ee(e.get(n),!0);case 8:t=n;case 9:++n,i.next=2;break;case 12:if(!(n>t+1)){i.next=15;break}return i.next=15,fe(n-t-1);case 15:case"end":return i.stop()}}),Z)}function ce(e){var t,n,r,i,a,o,c;return u.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:t=-1,n=0,r=e.length;case 2:if(!(n<r)){l.next=13;break}if(!(n in e)){l.next=10;break}if(!(n>t+1)){l.next=7;break}return l.next=7,fe(n-t-1);case 7:return l.next=9,Ee(_(e,n),!0);case 9:t=n;case 10:++n,l.next=2;break;case 13:if(!(n>t+1)){l.next=16;break}return l.next=16,fe(n-t-1);case 16:l.t0=u.a.keys(e);case 17:if((l.t1=l.t0()).done){l.next=24;break}if(f(i=l.t1.value)||!w(e,i)){l.next=22;break}return l.next=22,he(i,_(e,i),"observablehq--key");case 22:l.next=17;break;case 24:a=Object(s.a)(g(e)),l.prev=25,a.s();case 27:if((o=a.n()).done){l.next=33;break}return c=o.value,l.next=31,he(p(c),_(e,c),"observablehq--symbol");case 31:l.next=27;break;case 33:l.next=38;break;case 35:l.prev=35,l.t2=l.catch(25),a.e(l.t2);case 38:return l.prev=38,a.f(),l.finish(38);case 41:case"end":return l.stop()}}),X,null,[[25,35,38,41]])}function se(e){var t,n,r,i;return u.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=u.a.keys(e);case 1:if((a.t1=a.t0()).done){a.next=8;break}if(t=a.t1.value,!w(e,t)){a.next=6;break}return a.next=6,he(t,_(e,t),"observablehq--key");case 6:a.next=1;break;case 8:n=Object(s.a)(g(e)),a.prev=9,n.s();case 11:if((r=n.n()).done){a.next=17;break}return i=r.value,a.next=15,he(p(i),_(e,i),"observablehq--symbol");case 15:a.next=11;break;case 17:a.next=22;break;case 19:a.prev=19,a.t2=a.catch(9),n.e(a.t2);case 22:return a.prev=22,n.f(),a.finish(22);case 25:case"end":return a.stop()}}),ee,null,[[9,19,22,25]])}function le(e){var t,n,r,i,a;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:t=Object(s.a)(e),o.prev=1,t.s();case 3:if((n=t.n()).done){o.next=9;break}return r=Object(c.a)(n.value,2),i=r[0],a=r[1],o.next=7,he(i,a,"observablehq--key");case 7:o.next=3;break;case 9:o.next=14;break;case 11:o.prev=11,o.t0=o.catch(1),t.e(o.t0);case 14:return o.prev=14,t.f(),o.finish(14);case 17:case"end":return o.stop()}}),te,null,[[1,11,14,17]])}function fe(e){var t=document.createElement("span");return t.className="observablehq--empty",t.textContent=1===e?"empty":"empty \xd7 ".concat(e),t}function he(e,t,n){var r=document.createDocumentFragment(),i=r.appendChild(document.createElement("span"));return i.className=n,i.textContent=e,r.appendChild(document.createTextNode(": ")),r.appendChild(Ee(t,!0)),r}function de(e,t){var n=document.createDocumentFragment();return n.appendChild(Ee(e,!0)),n.appendChild(document.createTextNode(" => ")),n.appendChild(Ee(t,!0)),n}function pe(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return"function"===typeof t?t(e):t;var n,r=e.getUTCHours(),i=e.getUTCMinutes(),a=e.getUTCSeconds(),o=e.getUTCMilliseconds();return"".concat((n=e.getUTCFullYear(),n<0?"-".concat(ve(-n,6)):n>9999?"+".concat(ve(n,6)):ve(n,4)),"-").concat(ve(e.getUTCMonth()+1,2),"-").concat(ve(e.getUTCDate(),2)).concat(r||i||a||o?"T".concat(ve(r,2),":").concat(ve(i,2)).concat(a||o?":".concat(ve(a,2)).concat(o?".".concat(ve(o,3)):""):"","Z"):"")}function ve(e,t){return"".concat(e).padStart(t,"0")}var ye=Error.prototype.toString;var be=RegExp.prototype.toString;function me(e){return e.replace(/[\\`\x00-\x09\x0b-\x19]|\${/g,ge)}function ge(e){var t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 9:return"\\t";case 11:return"\\v";case 12:return"\\f";case 13:return"\\r"}return t<16?"\\x0"+t.toString(16):t<32?"\\x"+t.toString(16):"\\"+e}function we(e,t){for(var n=0;t.exec(e);)++n;return n}var ke=Function.prototype.toString,_e={prefix:"async \u0192"},Oe={prefix:"async \u0192*"},xe={prefix:"class"},je={prefix:"\u0192"},Se={prefix:"\u0192*"};function Te(e,t,n){var r=document.createElement("span");r.className="observablehq--function",n&&r.appendChild(h(n));var i=r.appendChild(document.createElement("span"));return i.className="observablehq--keyword",i.textContent=e.prefix,r.appendChild(document.createTextNode(t)),r}var Ie=Object.prototype.toString;function Ee(e,t,n,r,i){var a=typeof e;switch(a){case"boolean":case"undefined":e+="";break;case"number":e=0===e&&1/e<0?"-0":e+"";break;case"bigint":e+="n";break;case"symbol":e=p(e);break;case"function":return function(e,t){var n,r,i=ke.call(e);switch(e.constructor&&e.constructor.name){case"AsyncFunction":n=_e;break;case"AsyncGeneratorFunction":n=Oe;break;case"GeneratorFunction":n=Se;break;default:n=/^class\b/.test(i)?xe:je}return n===xe?Te(n,"",t):(r=/^(?:async\s*)?(\w+)\s*=>/.exec(i))?Te(n,"("+r[1]+")",t):(r=/^(?:async\s*)?\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(i))||(r=/^(?:async\s*)?function(?:\s*\*)?(?:\s*\w+)?\s*\(\s*(\w+(?:\s*,\s*\w+)*)?\s*\)/.exec(i))?Te(n,r[1]?"("+r[1].replace(/\s*,\s*/g,", ")+")":"()",t):Te(n,"(\u2026)",t)}(e,r);case"string":return function(e,t,n,r){if(!1===t){if(we(e,/["\n]/g)<=we(e,/`|\${/g)){var i=document.createElement("span");r&&i.appendChild(h(r));var a=i.appendChild(document.createElement("span"));return a.className="observablehq--string",a.textContent=JSON.stringify(e),i}var o=e.split("\n");if(o.length>20&&!n){var u=document.createElement("div");r&&u.appendChild(h(r));var c=u.appendChild(document.createElement("span"));c.className="observablehq--string",c.textContent="`"+me(o.slice(0,20).join("\n"));var s=u.appendChild(document.createElement("span")),l=o.length-20;return s.textContent="Show ".concat(l," truncated line").concat(l>1?"s":""),s.className="observablehq--string-expand",s.addEventListener("mouseup",(function(n){n.stopPropagation(),Ae(u,Ee(e,t,!0,r))})),u}var f=document.createElement("span");r&&f.appendChild(h(r));var d=f.appendChild(document.createElement("span"));return d.className="observablehq--string".concat(n?" observablehq--expanded":""),d.textContent="`"+me(e)+"`",f}var p=document.createElement("span");r&&p.appendChild(h(r));var v=p.appendChild(document.createElement("span"));return v.className="observablehq--string",v.textContent=JSON.stringify(e.length>100?"".concat(e.slice(0,50),"\u2026").concat(e.slice(-49)):e),p}(e,t,n,r);default:if(null===e){a=null,e="null";break}if(e instanceof Date){a="date",e=pe(e,"Invalid Date");break}if(e===m){a="forbidden",e="[forbidden]";break}switch(Ie.call(e)){case"[object RegExp]":a="regexp",e=function(e){return be.call(e)}(e);break;case"[object Error]":case"[object DOMException]":a="error",e=function(e){return e.stack||ye.call(e)}(e);break;default:return(n?F:re)(e,t,r,i)}}var o=document.createElement("span");r&&o.appendChild(h(r));var u=o.appendChild(document.createElement("span"));return u.className="observablehq--".concat(a),u.textContent=e,o}function Ae(e,t){e.classList.contains("observablehq--inspect")&&t.classList.add("observablehq--inspect"),e.parentNode.replaceChild(t,e),a(t,"load")}var Be=/\s+\(\d+:\d+\)$/m,Ce=function(){function e(t){if(Object(r.a)(this,e),!t)throw new Error("invalid node");this._node=t,t.classList.add("observablehq")}return Object(i.a)(e,[{key:"pending",value:function(){var e=this._node;e.classList.remove("observablehq--error"),e.classList.add("observablehq--running")}},{key:"fulfilled",value:function(e,t){var n=this._node;if((!function(e){return(e instanceof Element||e instanceof Text)&&e instanceof e.constructor}(e)||e.parentNode&&e.parentNode!==n)&&(e=Ee(e,!1,n.firstChild&&n.firstChild.classList&&n.firstChild.classList.contains("observablehq--expanded"),t)).classList.add("observablehq--inspect"),n.classList.remove("observablehq--running","observablehq--error"),n.firstChild!==e)if(n.firstChild){for(;n.lastChild!==n.firstChild;)n.removeChild(n.lastChild);n.replaceChild(e,n.firstChild)}else n.appendChild(e);a(n,"update")}},{key:"rejected",value:function(e,t){var n=this._node;for(n.classList.remove("observablehq--running"),n.classList.add("observablehq--error");n.lastChild;)n.removeChild(n.lastChild);var r=document.createElement("div");r.className="observablehq--inspect",t&&r.appendChild(h(t)),r.appendChild(document.createTextNode((e+"").replace(Be,""))),n.appendChild(r),a(n,"error",{error:e})}}]),e}();Ce.into=function(e){if("string"===typeof e&&null==(e=document.querySelector(e)))throw new Error("container not found");return function(){return new Ce(e.appendChild(document.createElement("div")))}};n(20),n(15);var De=n(19)},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),i=n.n(r),a=n(7),o=n(8),u=n(5),c=n(6),s=n(29),l=n(26),f=n(15),h=n(27),d=n(19),p=n(14);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Object.defineProperties(this,{_runtime:{value:e},_scope:{value:new Map},_builtins:{value:new Map([["invalidation",d.b],["visibility",d.c]].concat(Object(c.a)(t)))},_source:{value:null,writable:!0}})}function y(){return(y=Object(u.a)(i.a.mark((function e(t){var n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this._scope.get(t)){e.next=3;break}throw new f.a(t+" is not defined");case 3:return n._observer===p.e&&(n._observer=!0,this._runtime._dirty.add(n)),e.next=6,this._runtime._compute();case 6:return e.abrupt("return",n._promise);case 7:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function b(e){return e._name}Object.defineProperties(v.prototype,{_copy:{value:function(e,t){e._source=this,t.set(this,e);var n,r=Object(o.a)(this._scope);try{for(r.s();!(n=r.n()).done;){var i=Object(a.a)(n.value,2),u=i[0],c=i[1],s=e._scope.get(u);if(!s||s._type!==p.c)if(c._definition===h.a){var l=c._inputs[0],f=l._module;e.import(l._name,u,t.get(f)||(f._source?f._copy(new v(e._runtime,e._builtins),t):f))}else e.define(u,c._inputs.map(b),c._definition)}}catch(d){r.e(d)}finally{r.f()}return e},writable:!0,configurable:!0},_resolve:{value:function(e){var t,n=this._scope.get(e);if(!n)if(n=new p.d(p.b,this),this._builtins.has(e))n.define(e,Object(l.a)(this._builtins.get(e)));else if(this._runtime._builtin._scope.has(e))n.import(e,this._runtime._builtin);else{try{t=this._runtime._global(e)}catch(i){return n.define(e,(r=i,function(){throw r}))}void 0===t?this._scope.set(n._name=e,n):n.define(e,Object(l.a)(t))}var r;return n},writable:!0,configurable:!0},redefine:{value:function(e){var t=this._scope.get(e);if(!t)throw new f.a(e+" is not defined");if(t._type===p.a)throw new f.a(e+" is defined more than once");return t.define.apply(t,arguments)},writable:!0,configurable:!0},define:{value:function(){var e=new p.d(p.c,this);return e.define.apply(e,arguments)},writable:!0,configurable:!0},derive:{value:function(e,t){var n=this,r=new v(this._runtime,this._builtins);return r._source=this,s.a.call(e,(function(e){"object"!==typeof e&&(e={name:e+""}),null==e.alias&&(e.alias=e.name),r.import(e.name,e.alias,t)})),Promise.resolve().then((function(){var e,t=new Set([n]),i=Object(o.a)(t);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,c=Object(o.a)(u._scope.values());try{for(c.s();!(a=c.n()).done;){var s=a.value;if(s._definition===h.a){var l=s._inputs[0]._module,f=l._source||l;if(f===n)return void console.warn("circular module definition; ignoring");t.add(f)}}}catch(d){c.e(d)}finally{c.f()}}}catch(d){i.e(d)}finally{i.f()}n._copy(r,new Map)})),r},writable:!0,configurable:!0},import:{value:function(){var e=new p.d(p.c,this);return e.import.apply(e,arguments)},writable:!0,configurable:!0},value:{value:function(e){return y.apply(this,arguments)},writable:!0,configurable:!0},variable:{value:function(e){return new p.d(p.c,this,e)},writable:!0,configurable:!0},builtin:{value:function(e,t){this._builtins.set(e,t)},writable:!0,configurable:!0}})},function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function o(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(i){return!1}}()?Object.assign:function(e,t){for(var n,u,c=o(e),s=1;s<arguments.length;s++){for(var l in n=Object(arguments[s]))i.call(n,l)&&(c[l]=n[l]);if(r){u=r(n);for(var f=0;f<u.length;f++)a.call(n,u[f])&&(c[u[f]]=n[u[f]])}}return c}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=n(43)},,function(e,t,n){"use strict";var r=n(47),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function c(e){return r.isMemo(e)?o:u[e.$$typeof]||i}u[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[r.Memo]=o;var s=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=d(n);i&&i!==p&&e(t,i,r)}var o=l(n);f&&(o=o.concat(f(n)));for(var u=c(t),v=c(n),y=0;y<o.length;++y){var b=o[y];if(!a[b]&&(!r||!r[b])&&(!v||!v[b])&&(!u||!u[b])){var m=h(n,b);try{s(t,b,m)}catch(g){}}}}return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=new WeakMap,i=new WeakMap;function a(e){var t=r.get(e);return console.assert(null!=t,"'this' is expected an Event object, but got",e),t}function o(e){null==e.passiveListener?e.event.cancelable&&(e.canceled=!0,"function"===typeof e.event.preventDefault&&e.event.preventDefault()):"undefined"!==typeof console&&"function"===typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",e.passiveListener)}function u(e,t){r.set(this,{eventTarget:e,event:t,eventPhase:2,currentTarget:e,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:t.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var n=Object.keys(t),i=0;i<n.length;++i){var a=n[i];a in this||Object.defineProperty(this,a,c(a))}}function c(e){return{get:function(){return a(this).event[e]},set:function(t){a(this).event[e]=t},configurable:!0,enumerable:!0}}function s(e){return{value:function(){var t=a(this).event;return t[e].apply(t,arguments)},configurable:!0,enumerable:!0}}function l(e){if(null==e||e===Object.prototype)return u;var t=i.get(e);return null==t&&(t=function(e,t){var n=Object.keys(t);if(0===n.length)return e;function r(t,n){e.call(this,t,n)}r.prototype=Object.create(e.prototype,{constructor:{value:r,configurable:!0,writable:!0}});for(var i=0;i<n.length;++i){var a=n[i];if(!(a in e.prototype)){var o="function"===typeof Object.getOwnPropertyDescriptor(t,a).value;Object.defineProperty(r.prototype,a,o?s(a):c(a))}}return r}(l(Object.getPrototypeOf(e)),e),i.set(e,t)),t}function f(e){return a(e).immediateStopped}function h(e,t){a(e).passiveListener=t}u.prototype={get type(){return a(this).event.type},get target(){return a(this).eventTarget},get currentTarget(){return a(this).currentTarget},composedPath:function(){var e=a(this).currentTarget;return null==e?[]:[e]},get NONE(){return 0},get CAPTURING_PHASE(){return 1},get AT_TARGET(){return 2},get BUBBLING_PHASE(){return 3},get eventPhase(){return a(this).eventPhase},stopPropagation:function(){var e=a(this);e.stopped=!0,"function"===typeof e.event.stopPropagation&&e.event.stopPropagation()},stopImmediatePropagation:function(){var e=a(this);e.stopped=!0,e.immediateStopped=!0,"function"===typeof e.event.stopImmediatePropagation&&e.event.stopImmediatePropagation()},get bubbles(){return Boolean(a(this).event.bubbles)},get cancelable(){return Boolean(a(this).event.cancelable)},preventDefault:function(){o(a(this))},get defaultPrevented(){return a(this).canceled},get composed(){return Boolean(a(this).event.composed)},get timeStamp(){return a(this).timeStamp},get srcElement(){return a(this).eventTarget},get cancelBubble(){return a(this).stopped},set cancelBubble(e){if(e){var t=a(this);t.stopped=!0,"boolean"===typeof t.event.cancelBubble&&(t.event.cancelBubble=!0)}},get returnValue(){return!a(this).canceled},set returnValue(e){e||o(a(this))},initEvent:function(){}},Object.defineProperty(u.prototype,"constructor",{value:u,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.Event&&(Object.setPrototypeOf(u.prototype,window.Event.prototype),i.set(window.Event.prototype,u));var d=new WeakMap;function p(e){return null!==e&&"object"===typeof e}function v(e){var t=d.get(e);if(null==t)throw new TypeError("'this' is expected an EventTarget object, but got another value.");return t}function y(e,t){Object.defineProperty(e,"on".concat(t),function(e){return{get:function(){for(var t=v(this).get(e);null!=t;){if(3===t.listenerType)return t.listener;t=t.next}return null},set:function(t){"function"===typeof t||p(t)||(t=null);for(var n=v(this),r=null,i=n.get(e);null!=i;)3===i.listenerType?null!==r?r.next=i.next:null!==i.next?n.set(e,i.next):n.delete(e):r=i,i=i.next;if(null!==t){var a={listener:t,listenerType:3,passive:!1,once:!1,next:null};null===r?n.set(e,a):r.next=a}},configurable:!0,enumerable:!0}}(t))}function b(e){function t(){m.call(this)}t.prototype=Object.create(m.prototype,{constructor:{value:t,configurable:!0,writable:!0}});for(var n=0;n<e.length;++n)y(t.prototype,e[n]);return t}function m(){if(!(this instanceof m)){if(1===arguments.length&&Array.isArray(arguments[0]))return b(arguments[0]);if(arguments.length>0){for(var e=new Array(arguments.length),t=0;t<arguments.length;++t)e[t]=arguments[t];return b(e)}throw new TypeError("Cannot call a class as a function")}d.set(this,new Map)}m.prototype={addEventListener:function(e,t,n){if(null!=t){if("function"!==typeof t&&!p(t))throw new TypeError("'listener' should be a function or an object.");var r=v(this),i=p(n),a=(i?Boolean(n.capture):Boolean(n))?1:2,o={listener:t,listenerType:a,passive:i&&Boolean(n.passive),once:i&&Boolean(n.once),next:null},u=r.get(e);if(void 0!==u){for(var c=null;null!=u;){if(u.listener===t&&u.listenerType===a)return;c=u,u=u.next}c.next=o}else r.set(e,o)}},removeEventListener:function(e,t,n){if(null!=t)for(var r=v(this),i=(p(n)?Boolean(n.capture):Boolean(n))?1:2,a=null,o=r.get(e);null!=o;){if(o.listener===t&&o.listenerType===i)return void(null!==a?a.next=o.next:null!==o.next?r.set(e,o.next):r.delete(e));a=o,o=o.next}},dispatchEvent:function(e){if(null==e||"string"!==typeof e.type)throw new TypeError('"event.type" should be a string.');var t=v(this),n=e.type,r=t.get(n);if(null==r)return!0;for(var i=function(e,t){return new(l(Object.getPrototypeOf(t)))(e,t)}(this,e),o=null;null!=r;){if(r.once?null!==o?o.next=r.next:null!==r.next?t.set(n,r.next):t.delete(n):o=r,h(i,r.passive?r.listener:null),"function"===typeof r.listener)try{r.listener.call(this,i)}catch(u){"undefined"!==typeof console&&"function"===typeof console.error&&console.error(u)}else 3!==r.listenerType&&"function"===typeof r.listener.handleEvent&&r.listener.handleEvent(i);if(f(i))break;r=r.next}return h(i,null),function(e,t){a(e).eventPhase=t}(i,0),function(e,t){a(e).currentTarget=t}(i,null),!i.defaultPrevented}},Object.defineProperty(m.prototype,"constructor",{value:m,configurable:!0,writable:!0}),"undefined"!==typeof window&&"undefined"!==typeof window.EventTarget&&Object.setPrototypeOf(m.prototype,window.EventTarget.prototype)},function(e,t,n){"use strict";function r(e){return e&&"function"===typeof e.next&&"function"===typeof e.return}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(8),i=n(20),a=n(19);function o(e,t,n){if("function"==typeof t&&(n=t,t=null),"function"!==typeof n)throw new Error("invalid observer");null==t&&(t=new i.b);var o=e.modules,u=e.id,c=new Map,s=new a.a(t),l=f(u);function f(e){var t=c.get(e);return t||c.set(e,t=s.module()),t}var h,d=Object(r.a)(o);try{for(d.s();!(h=d.n()).done;){var p,v=h.value,y=f(v.id),b=0,m=Object(r.a)(v.variables);try{for(m.s();!(p=m.n()).done;){var g=p.value;g.from?y.import(g.remote,g.name,f(g.from)):y===l?y.variable(n(g,b,v.variables)).define(g.name,g.inputs,g.value):y.define(g.name,g.inputs,g.value),++b}}catch(w){m.e(w)}finally{m.f()}}}catch(w){d.e(w)}finally{d.f()}return s}},,,function(e,t,n){"use strict";var r=n(32),i="function"===typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,o=i?Symbol.for("react.portal"):60106,u=i?Symbol.for("react.fragment"):60107,c=i?Symbol.for("react.strict_mode"):60108,s=i?Symbol.for("react.profiler"):60114,l=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,h=i?Symbol.for("react.forward_ref"):60112,d=i?Symbol.for("react.suspense"):60113,p=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,y="function"===typeof Symbol&&Symbol.iterator;function b(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g={};function w(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}function k(){}function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}w.prototype.isReactComponent={},w.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(b(85));this.updater.enqueueSetState(this,e,t,"setState")},w.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},k.prototype=w.prototype;var O=_.prototype=new k;O.constructor=_,r(O,w.prototype),O.isPureReactComponent=!0;var x={current:null},j=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,n){var r,i={},o=null,u=null;if(null!=t)for(r in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(o=""+t.key),t)j.call(t,r)&&!S.hasOwnProperty(r)&&(i[r]=t[r]);var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){for(var s=Array(c),l=0;l<c;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in c=e.defaultProps)void 0===i[r]&&(i[r]=c[r]);return{$$typeof:a,type:e,key:o,ref:u,props:i,_owner:x.current}}function I(e){return"object"===typeof e&&null!==e&&e.$$typeof===a}var E=/\/+/g,A=[];function B(e,t,n,r){if(A.length){var i=A.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function C(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>A.length&&A.push(e)}function D(e,t,n){return null==e?0:function e(t,n,r,i){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case a:case o:c=!0}}if(c)return r(i,t,""===n?"."+L(t,0):n),1;if(c=0,n=""===n?".":n+":",Array.isArray(t))for(var s=0;s<t.length;s++){var l=n+L(u=t[s],s);c+=e(u,l,r,i)}else if(null===t||"object"!==typeof t?l=null:l="function"===typeof(l=y&&t[y]||t["@@iterator"])?l:null,"function"===typeof l)for(t=l.call(t),s=0;!(u=t.next()).done;)c+=e(u=u.value,l=n+L(u,s++),r,i);else if("object"===u)throw r=""+t,Error(b(31,"[object Object]"===r?"object with keys {"+Object.keys(t).join(", ")+"}":r,""));return c}(e,"",t,n)}function L(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function N(e,t){e.func.call(e.context,t,e.count++)}function F(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?M(e,r,n,(function(e){return e})):null!=e&&(I(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(E,"$&/")+"/")+n)),r.push(e))}function M(e,t,n,r,i){var a="";null!=n&&(a=(""+n).replace(E,"$&/")+"/"),D(e,F,t=B(t,a,r,i)),C(t)}var P={current:null};function U(){var e=P.current;if(null===e)throw Error(b(321));return e}var R={ReactCurrentDispatcher:P,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};t.Children={map:function(e,t,n){if(null==e)return e;var r=[];return M(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;D(e,N,t=B(null,null,t,n)),C(t)},count:function(e){return D(e,(function(){return null}),null)},toArray:function(e){var t=[];return M(e,t,null,(function(e){return e})),t},only:function(e){if(!I(e))throw Error(b(143));return e}},t.Component=w,t.Fragment=u,t.Profiler=s,t.PureComponent=_,t.StrictMode=c,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=R,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(b(267,e));var i=r({},e.props),o=e.key,u=e.ref,c=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,c=x.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)j.call(t,l)&&!S.hasOwnProperty(l)&&(i[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)i.children=n;else if(1<l){s=Array(l);for(var f=0;f<l;f++)s[f]=arguments[f+2];i.children=s}return{$$typeof:a,type:e.type,key:o,ref:u,props:i,_owner:c}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=I,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return U().useCallback(e,t)},t.useContext=function(e,t){return U().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return U().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return U().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return U().useLayoutEffect(e,t)},t.useMemo=function(e,t){return U().useMemo(e,t)},t.useReducer=function(e,t,n){return U().useReducer(e,t,n)},t.useRef=function(e){return U().useRef(e)},t.useState=function(e){return U().useState(e)},t.version="16.14.0"},function(e,t,n){"use strict";var r=n(12),i=n(32),a=n(44);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(o(227));function u(e,t,n,r,i,a,o,u,c){var s=Array.prototype.slice.call(arguments,3);try{t.apply(n,s)}catch(l){this.onError(l)}}var c=!1,s=null,l=!1,f=null,h={onError:function(e){c=!0,s=e}};function d(e,t,n,r,i,a,o,l,f){c=!1,s=null,u.apply(h,arguments)}var p=null,v=null,y=null;function b(e,t,n){var r=e.type||"unknown-event";e.currentTarget=y(n),function(e,t,n,r,i,a,u,h,p){if(d.apply(this,arguments),c){if(!c)throw Error(o(198));var v=s;c=!1,s=null,l||(l=!0,f=v)}}(r,t,void 0,e),e.currentTarget=null}var m=null,g={};function w(){if(m)for(var e in g){var t=g[e],n=m.indexOf(e);if(!(-1<n))throw Error(o(96,e));if(!_[n]){if(!t.extractEvents)throw Error(o(97,e));for(var r in _[n]=t,n=t.eventTypes){var i=void 0,a=n[r],u=t,c=r;if(O.hasOwnProperty(c))throw Error(o(99,c));O[c]=a;var s=a.phasedRegistrationNames;if(s){for(i in s)s.hasOwnProperty(i)&&k(s[i],u,c);i=!0}else a.registrationName?(k(a.registrationName,u,c),i=!0):i=!1;if(!i)throw Error(o(98,r,e))}}}}function k(e,t,n){if(x[e])throw Error(o(100,e));x[e]=t,j[e]=t.eventTypes[n].dependencies}var _=[],O={},x={},j={};function S(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!g.hasOwnProperty(t)||g[t]!==r){if(g[t])throw Error(o(102,t));g[t]=r,n=!0}}n&&w()}var T=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),I=null,E=null,A=null;function B(e){if(e=v(e)){if("function"!==typeof I)throw Error(o(280));var t=e.stateNode;t&&(t=p(t),I(e.stateNode,e.type,t))}}function C(e){E?A?A.push(e):A=[e]:E=e}function D(){if(E){var e=E,t=A;if(A=E=null,B(e),t)for(e=0;e<t.length;e++)B(t[e])}}function L(e,t){return e(t)}function N(e,t,n,r,i){return e(t,n,r,i)}function F(){}var M=L,P=!1,U=!1;function R(){null===E&&null===A||(F(),D())}function z(e,t,n){if(U)return e(t,n);U=!0;try{return M(e,t,n)}finally{U=!1,R()}}var V=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,W=Object.prototype.hasOwnProperty,Y={},q={};function H(e,t,n,r,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new H(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new H(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new H(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new H(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new H(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new H(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new H(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new H(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new H(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Q);$[t]=new H(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Q);$[t]=new H(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Q);$[t]=new H(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new H(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new H("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new H(e,1,!1,e.toLowerCase(),null,!0)}));var G=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function J(e,t,n,r){var i=$.hasOwnProperty(t)?$[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!W.call(q,e)||!W.call(Y,e)&&(V.test(e)?q[e]=!0:(Y[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}G.hasOwnProperty("ReactCurrentDispatcher")||(G.ReactCurrentDispatcher={current:null}),G.hasOwnProperty("ReactCurrentBatchConfig")||(G.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,X="function"===typeof Symbol&&Symbol.for,ee=X?Symbol.for("react.element"):60103,te=X?Symbol.for("react.portal"):60106,ne=X?Symbol.for("react.fragment"):60107,re=X?Symbol.for("react.strict_mode"):60108,ie=X?Symbol.for("react.profiler"):60114,ae=X?Symbol.for("react.provider"):60109,oe=X?Symbol.for("react.context"):60110,ue=X?Symbol.for("react.concurrent_mode"):60111,ce=X?Symbol.for("react.forward_ref"):60112,se=X?Symbol.for("react.suspense"):60113,le=X?Symbol.for("react.suspense_list"):60120,fe=X?Symbol.for("react.memo"):60115,he=X?Symbol.for("react.lazy"):60116,de=X?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function ye(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case ie:return"Profiler";case re:return"StrictMode";case se:return"Suspense";case le:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case oe:return"Context.Consumer";case ae:return"Context.Provider";case ce:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ye(e.type);case de:return ye(e.render);case he:if(e=1===e._status?e._result:null)return ye(e)}return null}function be(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,i=e._debugSource,a=ye(e.type);n=null,r&&(n=ye(r.type)),r=a,a="",i?a=" (at "+i.fileName.replace(Z,"")+":"+i.lineNumber+")":n&&(a=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+a}t+=n,e=e.return}while(e);return t}function me(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ge(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=ge(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ge(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function _e(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Oe(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=me(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xe(e,t){null!=(t=t.checked)&&J(e,"checked",t,!1)}function je(e,t){xe(e,t);var n=me(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?Te(e,t.type,n):t.hasOwnProperty("defaultValue")&&Te(e,t.type,me(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Se(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function Te(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Ie(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ee(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function Ae(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Be(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:me(n)}}function Ce(e,t){var n=me(t.value),r=me(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function De(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Le="http://www.w3.org/1999/xhtml",Ne="http://www.w3.org/2000/svg";function Fe(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Me(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Fe(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Pe,Ue=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==Ne||"innerHTML"in e)e.innerHTML=t;else{for((Pe=Pe||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function Re(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function ze(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ve={animationend:ze("Animation","AnimationEnd"),animationiteration:ze("Animation","AnimationIteration"),animationstart:ze("Animation","AnimationStart"),transitionend:ze("Transition","TransitionEnd")},We={},Ye={};function qe(e){if(We[e])return We[e];if(!Ve[e])return e;var t,n=Ve[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ye)return We[e]=n[t];return e}T&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete Ve.animationend.animation,delete Ve.animationiteration.animation,delete Ve.animationstart.animation),"TransitionEvent"in window||delete Ve.transitionend.transition);var He=qe("animationend"),$e=qe("animationiteration"),Ke=qe("animationstart"),Qe=qe("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Je=new("function"===typeof WeakMap?WeakMap:Map);function Ze(e){var t=Je.get(e);return void 0===t&&(t=new Map,Je.set(e,t)),t}function Xe(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if(Xe(e)!==e)throw Error(o(188))}function nt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=Xe(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return tt(i),e;if(a===r)return tt(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var u=!1,c=i.child;c;){if(c===n){u=!0,n=i,r=a;break}if(c===r){u=!0,r=i,n=a;break}c=c.sibling}if(!u){for(c=a.child;c;){if(c===n){u=!0,n=a,r=i;break}if(c===r){u=!0,r=a,n=i;break}c=c.sibling}if(!u)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function rt(e,t){if(null==t)throw Error(o(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ot(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)b(e,t[r],n[r]);else t&&b(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=rt(at,e)),e=at,at=null,e){if(it(e,ot),at)throw Error(o(95));if(l)throw e=f,l=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!T)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var lt=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>lt.length&&lt.push(e)}function ht(e,t,n,r){if(lt.length){var i=lt.pop();return i.topLevelType=e,i.eventSystemFlags=r,i.nativeEvent=t,i.targetInst=n,i}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function dt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=Tn(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var i=ct(e.nativeEvent);r=e.topLevelType;var a=e.nativeEvent,o=e.eventSystemFlags;0===n&&(o|=64);for(var u=null,c=0;c<_.length;c++){var s=_[c];s&&(s=s.extractEvents(r,t,a,i,o))&&(u=rt(u,s))}ut(u)}}function pt(e,t,n){if(!n.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&$t(e,t)}n.set(e,null)}}var vt,yt,bt,mt=!1,gt=[],wt=null,kt=null,_t=null,Ot=new Map,xt=new Map,jt=[],St="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Tt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function It(e,t,n,r,i){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:i,container:r}}function Et(e,t){switch(e){case"focus":case"blur":wt=null;break;case"dragenter":case"dragleave":kt=null;break;case"mouseover":case"mouseout":_t=null;break;case"pointerover":case"pointerout":Ot.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":xt.delete(t.pointerId)}}function At(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e=It(t,n,r,i,a),null!==t&&(null!==(t=In(t))&&yt(t)),e):(e.eventSystemFlags|=r,e)}function Bt(e){var t=Tn(e.target);if(null!==t){var n=Xe(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=et(n)))return e.blockedOn=t,void a.unstable_runWithPriority(e.priority,(function(){bt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Ct(e){if(null!==e.blockedOn)return!1;var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=In(t);return null!==n&&yt(n),e.blockedOn=t,!1}return!0}function Dt(e,t,n){Ct(e)&&n.delete(t)}function Lt(){for(mt=!1;0<gt.length;){var e=gt[0];if(null!==e.blockedOn){null!==(e=In(e.blockedOn))&&vt(e);break}var t=Zt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:gt.shift()}null!==wt&&Ct(wt)&&(wt=null),null!==kt&&Ct(kt)&&(kt=null),null!==_t&&Ct(_t)&&(_t=null),Ot.forEach(Dt),xt.forEach(Dt)}function Nt(e,t){e.blockedOn===t&&(e.blockedOn=null,mt||(mt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Lt)))}function Ft(e){function t(t){return Nt(t,e)}if(0<gt.length){Nt(gt[0],e);for(var n=1;n<gt.length;n++){var r=gt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==wt&&Nt(wt,e),null!==kt&&Nt(kt,e),null!==_t&&Nt(_t,e),Ot.forEach(t),xt.forEach(t),n=0;n<jt.length;n++)(r=jt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<jt.length&&null===(n=jt[0]).blockedOn;)Bt(n),null===n.blockedOn&&jt.shift()}var Mt={},Pt=new Map,Ut=new Map,Rt=["abort","abort",He,"animationEnd",$e,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function zt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],i=e[n+1],a="on"+(i[0].toUpperCase()+i.slice(1));a={phasedRegistrationNames:{bubbled:a,captured:a+"Capture"},dependencies:[r],eventPriority:t},Ut.set(r,t),Pt.set(r,a),Mt[i]=a}}zt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),zt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),zt(Rt,2);for(var Vt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Wt=0;Wt<Vt.length;Wt++)Ut.set(Vt[Wt],0);var Yt=a.unstable_UserBlockingPriority,qt=a.unstable_runWithPriority,Ht=!0;function $t(e,t){Kt(t,e,!1)}function Kt(e,t,n){var r=Ut.get(t);switch(void 0===r?2:r){case 0:r=Qt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Jt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Qt(e,t,n,r){P||F();var i=Jt,a=P;P=!0;try{N(i,e,t,n,r)}finally{(P=a)||R()}}function Gt(e,t,n,r){qt(Yt,Jt.bind(null,e,t,n,r))}function Jt(e,t,n,r){if(Ht)if(0<gt.length&&-1<St.indexOf(e))e=It(null,e,t,n,r),gt.push(e);else{var i=Zt(e,t,n,r);if(null===i)Et(e,r);else if(-1<St.indexOf(e))e=It(i,e,t,n,r),gt.push(e);else if(!function(e,t,n,r,i){switch(t){case"focus":return wt=At(wt,e,t,n,r,i),!0;case"dragenter":return kt=At(kt,e,t,n,r,i),!0;case"mouseover":return _t=At(_t,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Ot.set(a,At(Ot.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,xt.set(a,At(xt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r)){Et(e,r),e=ht(e,r,null,t);try{z(dt,e)}finally{ft(e)}}}}function Zt(e,t,n,r){if(null!==(n=Tn(n=ct(r)))){var i=Xe(n);if(null===i)n=null;else{var a=i.tag;if(13===a){if(null!==(n=et(i)))return n;n=null}else if(3===a){if(i.stateNode.hydrate)return 3===i.tag?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}e=ht(e,r,n,t);try{z(dt,e)}finally{ft(e)}return null}var Xt={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},en=["Webkit","ms","Moz","O"];function tn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||Xt.hasOwnProperty(e)&&Xt[e]?(""+t).trim():t+"px"}function nn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=tn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Xt).forEach((function(e){en.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Xt[t]=Xt[e]}))}));var rn=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(rn[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Le;function cn(e,t){var n=Ze(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=j[t];for(var r=0;r<t.length;r++)pt(t[r],e,n)}function sn(){}function ln(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function fn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function hn(e,t){var n,r=fn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=fn(r)}}function dn(){for(var e=window,t=ln();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=ln((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn=null,yn=null;function bn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function mn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var gn="function"===typeof setTimeout?setTimeout:void 0,wn="function"===typeof clearTimeout?clearTimeout:void 0;function kn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function _n(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var On=Math.random().toString(36).slice(2),xn="__reactInternalInstance$"+On,jn="__reactEventHandlers$"+On,Sn="__reactContainere$"+On;function Tn(e){var t=e[xn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sn]||n[xn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=_n(e);null!==e;){if(n=e[xn])return n;e=_n(e)}return t}n=(e=n).parentNode}return null}function In(e){return!(e=e[xn]||e[Sn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function En(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function An(e){return e[jn]||null}function Bn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Cn(e,t){var n=e.stateNode;if(!n)return null;var r=p(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}function Dn(e,t,n){(t=Cn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Ln(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Bn(t);for(t=n.length;0<t--;)Dn(n[t],"captured",e);for(t=0;t<n.length;t++)Dn(n[t],"bubbled",e)}}function Nn(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Cn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=rt(n._dispatchListeners,t),n._dispatchInstances=rt(n._dispatchInstances,e))}function Fn(e){e&&e.dispatchConfig.registrationName&&Nn(e._targetInst,null,e)}function Mn(e){it(e,Ln)}var Pn=null,Un=null,Rn=null;function zn(){if(Rn)return Rn;var e,t,n=Un,r=n.length,i="value"in Pn?Pn.value:Pn.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Rn=i.slice(e,1<t?1-t:void 0)}function Vn(){return!0}function Wn(){return!1}function Yn(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Vn:Wn,this.isPropagationStopped=Wn,this}function qn(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Hn(e){if(!(e instanceof this))throw Error(o(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function $n(e){e.eventPool=[],e.getPooled=qn,e.release=Hn}i(Yn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Vn)},persist:function(){this.isPersistent=Vn},isPersistent:Wn,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Wn,this._dispatchInstances=this._dispatchListeners=null}}),Yn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Yn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var a=new t;return i(a,n.prototype),n.prototype=a,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,$n(n),n},$n(Yn);var Kn=Yn.extend({data:null}),Qn=Yn.extend({data:null}),Gn=[9,13,27,32],Jn=T&&"CompositionEvent"in window,Zn=null;T&&"documentMode"in document&&(Zn=document.documentMode);var Xn=T&&"TextEvent"in window&&!Zn,er=T&&(!Jn||Zn&&8<Zn&&11>=Zn),tr=String.fromCharCode(32),nr={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rr=!1;function ir(e,t){switch(e){case"keyup":return-1!==Gn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ar(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var or=!1;var ur={eventTypes:nr,extractEvents:function(e,t,n,r){var i;if(Jn)e:{switch(e){case"compositionstart":var a=nr.compositionStart;break e;case"compositionend":a=nr.compositionEnd;break e;case"compositionupdate":a=nr.compositionUpdate;break e}a=void 0}else or?ir(e,n)&&(a=nr.compositionEnd):"keydown"===e&&229===n.keyCode&&(a=nr.compositionStart);return a?(er&&"ko"!==n.locale&&(or||a!==nr.compositionStart?a===nr.compositionEnd&&or&&(i=zn()):(Un="value"in(Pn=r)?Pn.value:Pn.textContent,or=!0)),a=Kn.getPooled(a,t,n,r),i?a.data=i:null!==(i=ar(n))&&(a.data=i),Mn(a),i=a):i=null,(e=Xn?function(e,t){switch(e){case"compositionend":return ar(t);case"keypress":return 32!==t.which?null:(rr=!0,tr);case"textInput":return(e=t.data)===tr&&rr?null:e;default:return null}}(e,n):function(e,t){if(or)return"compositionend"===e||!Jn&&ir(e,t)?(e=zn(),Rn=Un=Pn=null,or=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return er&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=Qn.getPooled(nr.beforeInput,t,n,r)).data=e,Mn(t)):t=null,null===i?t:null===t?i:[i,t]}},cr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function sr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!cr[e.type]:"textarea"===t}var lr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fr(e,t,n){return(e=Yn.getPooled(lr.change,e,t,n)).type="change",C(n),Mn(e),e}var hr=null,dr=null;function pr(e){ut(e)}function vr(e){if(ke(En(e)))return e}function yr(e,t){if("change"===e)return t}var br=!1;function mr(){hr&&(hr.detachEvent("onpropertychange",gr),dr=hr=null)}function gr(e){if("value"===e.propertyName&&vr(dr))if(e=fr(dr,e,ct(e)),P)ut(e);else{P=!0;try{L(pr,e)}finally{P=!1,R()}}}function wr(e,t,n){"focus"===e?(mr(),dr=n,(hr=t).attachEvent("onpropertychange",gr)):"blur"===e&&mr()}function kr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vr(dr)}function _r(e,t){if("click"===e)return vr(t)}function Or(e,t){if("input"===e||"change"===e)return vr(t)}T&&(br=st("input")&&(!document.documentMode||9<document.documentMode));var xr={eventTypes:lr,_isInputEventSupported:br,extractEvents:function(e,t,n,r){var i=t?En(t):window,a=i.nodeName&&i.nodeName.toLowerCase();if("select"===a||"input"===a&&"file"===i.type)var o=yr;else if(sr(i))if(br)o=Or;else{o=kr;var u=wr}else(a=i.nodeName)&&"input"===a.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=_r);if(o&&(o=o(e,t)))return fr(o,n,r);u&&u(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Te(i,"number",i.value)}},jr=Yn.extend({view:null,detail:null}),Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Tr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Ir(){return Tr}var Er=0,Ar=0,Br=!1,Cr=!1,Dr=jr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ir,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Er;return Er=e.screenX,Br?"mousemove"===e.type?e.screenX-t:0:(Br=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Ar;return Ar=e.screenY,Cr?"mousemove"===e.type?e.screenY-t:0:(Cr=!0,0)}}),Lr=Dr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Nr={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Fr={eventTypes:Nr,extractEvents:function(e,t,n,r,i){var a="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(a&&0===(32&i)&&(n.relatedTarget||n.fromElement)||!o&&!a)return null;(a=r.window===r?r:(a=r.ownerDocument)?a.defaultView||a.parentWindow:window,o)?(o=t,null!==(t=(t=n.relatedTarget||n.toElement)?Tn(t):null)&&(t!==Xe(t)||5!==t.tag&&6!==t.tag)&&(t=null)):o=null;if(o===t)return null;if("mouseout"===e||"mouseover"===e)var u=Dr,c=Nr.mouseLeave,s=Nr.mouseEnter,l="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Lr,c=Nr.pointerLeave,s=Nr.pointerEnter,l="pointer");if(e=null==o?a:En(o),a=null==t?a:En(t),(c=u.getPooled(c,o,n,r)).type=l+"leave",c.target=e,c.relatedTarget=a,(n=u.getPooled(s,t,n,r)).type=l+"enter",n.target=a,n.relatedTarget=e,l=t,(r=o)&&l)e:{for(s=l,o=0,e=u=r;e;e=Bn(e))o++;for(e=0,t=s;t;t=Bn(t))e++;for(;0<o-e;)u=Bn(u),o--;for(;0<e-o;)s=Bn(s),e--;for(;o--;){if(u===s||u===s.alternate)break e;u=Bn(u),s=Bn(s)}u=null}else u=null;for(s=u,u=[];r&&r!==s&&(null===(o=r.alternate)||o!==s);)u.push(r),r=Bn(r);for(r=[];l&&l!==s&&(null===(o=l.alternate)||o!==s);)r.push(l),l=Bn(l);for(l=0;l<u.length;l++)Nn(u[l],"bubbled",c);for(l=r.length;0<l--;)Nn(r[l],"captured",n);return 0===(64&i)?[c]:[c,n]}};var Mr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Pr=Object.prototype.hasOwnProperty;function Ur(e,t){if(Mr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!Pr.call(t,n[r])||!Mr(e[n[r]],t[n[r]]))return!1;return!0}var Rr=T&&"documentMode"in document&&11>=document.documentMode,zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Vr=null,Wr=null,Yr=null,qr=!1;function Hr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return qr||null==Vr||Vr!==ln(n)?null:("selectionStart"in(n=Vr)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Yr&&Ur(Yr,n)?null:(Yr=n,(e=Yn.getPooled(zr.select,Wr,e,t)).type="select",e.target=Vr,Mn(e),e))}var $r={eventTypes:zr,extractEvents:function(e,t,n,r,i,a){if(!(a=!(i=a||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{i=Ze(i),a=j.onSelect;for(var o=0;o<a.length;o++)if(!i.has(a[o])){i=!1;break e}i=!0}a=!i}if(a)return null;switch(i=t?En(t):window,e){case"focus":(sr(i)||"true"===i.contentEditable)&&(Vr=i,Wr=t,Yr=null);break;case"blur":Yr=Wr=Vr=null;break;case"mousedown":qr=!0;break;case"contextmenu":case"mouseup":case"dragend":return qr=!1,Hr(n,r);case"selectionchange":if(Rr)break;case"keydown":case"keyup":return Hr(n,r)}return null}},Kr=Yn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qr=Yn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Gr=jr.extend({relatedTarget:null});function Jr(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Zr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Xr={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ei=jr.extend({key:function(e){if(e.key){var t=Zr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Xr[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ir,charCode:function(e){return"keypress"===e.type?Jr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),ti=Dr.extend({dataTransfer:null}),ni=jr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ir}),ri=Yn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ii=Dr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),ai={eventTypes:Mt,extractEvents:function(e,t,n,r){var i=Pt.get(e);if(!i)return null;switch(e){case"keypress":if(0===Jr(n))return null;case"keydown":case"keyup":e=ei;break;case"blur":case"focus":e=Gr;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Dr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=ti;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ni;break;case He:case $e:case Ke:e=Kr;break;case Qe:e=ri;break;case"scroll":e=jr;break;case"wheel":e=ii;break;case"copy":case"cut":case"paste":e=Qr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Lr;break;default:e=Yn}return Mn(t=e.getPooled(i,t,n,r)),t}};if(m)throw Error(o(101));m=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),p=An,v=In,y=En,S({SimpleEventPlugin:ai,EnterLeaveEventPlugin:Fr,ChangeEventPlugin:xr,SelectEventPlugin:$r,BeforeInputEventPlugin:ur});var oi=[],ui=-1;function ci(e){0>ui||(e.current=oi[ui],oi[ui]=null,ui--)}function si(e,t){ui++,oi[ui]=e.current,e.current=t}var li={},fi={current:li},hi={current:!1},di=li;function pi(e,t){var n=e.type.contextTypes;if(!n)return li;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function vi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function yi(){ci(hi),ci(fi)}function bi(e,t,n){if(fi.current!==li)throw Error(o(168));si(fi,t),si(hi,n)}function mi(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in e))throw Error(o(108,ye(t)||"Unknown",a));return i({},n,{},r)}function gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,di=fi.current,si(fi,e),si(hi,hi.current),!0}function wi(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=mi(e,t,di),r.__reactInternalMemoizedMergedChildContext=e,ci(hi),ci(fi),si(fi,e)):ci(hi),si(hi,n)}var ki=a.unstable_runWithPriority,_i=a.unstable_scheduleCallback,Oi=a.unstable_cancelCallback,xi=a.unstable_requestPaint,ji=a.unstable_now,Si=a.unstable_getCurrentPriorityLevel,Ti=a.unstable_ImmediatePriority,Ii=a.unstable_UserBlockingPriority,Ei=a.unstable_NormalPriority,Ai=a.unstable_LowPriority,Bi=a.unstable_IdlePriority,Ci={},Di=a.unstable_shouldYield,Li=void 0!==xi?xi:function(){},Ni=null,Fi=null,Mi=!1,Pi=ji(),Ui=1e4>Pi?ji:function(){return ji()-Pi};function Ri(){switch(Si()){case Ti:return 99;case Ii:return 98;case Ei:return 97;case Ai:return 96;case Bi:return 95;default:throw Error(o(332))}}function zi(e){switch(e){case 99:return Ti;case 98:return Ii;case 97:return Ei;case 96:return Ai;case 95:return Bi;default:throw Error(o(332))}}function Vi(e,t){return e=zi(e),ki(e,t)}function Wi(e,t,n){return e=zi(e),_i(e,t,n)}function Yi(e){return null===Ni?(Ni=[e],Fi=_i(Ti,Hi)):Ni.push(e),Ci}function qi(){if(null!==Fi){var e=Fi;Fi=null,Oi(e)}Hi()}function Hi(){if(!Mi&&null!==Ni){Mi=!0;var e=0;try{var t=Ni;Vi(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ni=null}catch(n){throw null!==Ni&&(Ni=Ni.slice(e+1)),_i(Ti,qi),n}finally{Mi=!1}}}function $i(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Ki(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Qi={current:null},Gi=null,Ji=null,Zi=null;function Xi(){Zi=Ji=Gi=null}function ea(e){var t=Qi.current;ci(Qi),e.type._context._currentValue=t}function ta(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function na(e,t){Gi=e,Zi=Ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ao=!0),e.firstContext=null)}function ra(e,t){if(Zi!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(Zi=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Ji){if(null===Gi)throw Error(o(308));Ji=t,Gi.dependencies={expirationTime:0,firstContext:t,responders:null}}else Ji=Ji.next=t;return e._currentValue}var ia=!1;function aa(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function oa(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function ua(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function ca(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function sa(e,t){var n=e.alternate;null!==n&&oa(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function la(e,t,n,r){var a=e.updateQueue;ia=!1;var o=a.baseQueue,u=a.shared.pending;if(null!==u){if(null!==o){var c=o.next;o.next=u.next,u.next=c}o=u,a.shared.pending=null,null!==(c=e.alternate)&&(null!==(c=c.updateQueue)&&(c.baseQueue=u))}if(null!==o){c=o.next;var s=a.baseState,l=0,f=null,h=null,d=null;if(null!==c)for(var p=c;;){if((u=p.expirationTime)<r){var v={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=v,f=s):d=d.next=v,u>l&&(l=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),ac(u,p.suspenseConfig);e:{var y=e,b=p;switch(u=t,v=n,b.tag){case 1:if("function"===typeof(y=b.payload)){s=y.call(v,s,u);break e}s=y;break e;case 3:y.effectTag=-4097&y.effectTag|64;case 0:if(null===(u="function"===typeof(y=b.payload)?y.call(v,s,u):y)||void 0===u)break e;s=i({},s,u);break e;case 2:ia=!0}}null!==p.callback&&(e.effectTag|=32,null===(u=a.effects)?a.effects=[p]:u.push(p))}if(null===(p=p.next)||p===c){if(null===(u=a.shared.pending))break;p=o.next=u.next,u.next=c,a.baseQueue=o=u,a.shared.pending=null}}null===d?f=s:d.next=h,a.baseState=f,a.baseQueue=d,oc(l),e.expirationTime=l,e.memoizedState=s}}function fa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=i,i=n,"function"!==typeof r)throw Error(o(191,r));r.call(i)}}}var ha=G.ReactCurrentBatchConfig,da=(new r.Component).refs;function pa(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:i({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var va={isMounted:function(e){return!!(e=e._reactInternalFiber)&&Xe(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Hu(),i=ha.suspense;(i=ua(r=$u(r,e,i),i)).payload=t,void 0!==n&&null!==n&&(i.callback=n),ca(e,i),Ku(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Hu(),i=ha.suspense;(i=ua(r=$u(r,e,i),i)).tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),ca(e,i),Ku(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Hu(),r=ha.suspense;(r=ua(n=$u(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),ca(e,r),Ku(e,n)}};function ya(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Ur(n,r)||!Ur(i,a))}function ba(e,t,n){var r=!1,i=li,a=t.contextType;return"object"===typeof a&&null!==a?a=ra(a):(i=vi(t)?di:fi.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?pi(e,i):li),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=va,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ma(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&va.enqueueReplaceState(t,t.state,null)}function ga(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=da,aa(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=ra(a):(a=vi(t)?di:fi.current,i.context=pi(e,a)),la(e,n,i,r),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(pa(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&va.enqueueReplaceState(i,i.state,null),la(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.effectTag|=4)}var wa=Array.isArray;function ka(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs;t===da&&(t=r.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function _a(e,t){if("textarea"!==e.type)throw Error(o(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Oa(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Sc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function c(e,t,n,r){return null===t||6!==t.tag?((t=Ec(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function s(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=ka(e,t,n),r.return=e,r):((r=Tc(n.type,n.key,n.props,null,e.mode,r)).ref=ka(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Ac(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Ec(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Tc(t.type,t.key,t.props,null,e.mode,n)).ref=ka(e,null,t),n.return=e,n;case te:return(t=Ac(t,e.mode,n)).return=e,t}if(wa(t)||ve(t))return(t=Ic(t,e.mode,n,null)).return=e,t;_a(e,t)}return null}function d(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==i?null:c(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===i?n.type===ne?f(e,t,n.props.children,r,i):s(e,t,n,r):null;case te:return n.key===i?l(e,t,n,r):null}if(wa(n)||ve(n))return null!==i?null:f(e,t,n,r,null);_a(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r||"number"===typeof r)return c(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,i,r.key):s(t,e,r,i);case te:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(wa(r)||ve(r))return f(t,e=e.get(n)||null,r,i,null);_a(t,r)}return null}function v(i,o,u,c){for(var s=null,l=null,f=o,v=o=0,y=null;null!==f&&v<u.length;v++){f.index>v?(y=f,f=null):y=f.sibling;var b=d(i,f,u[v],c);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(i,f),o=a(b,o,v),null===l?s=b:l.sibling=b,l=b,f=y}if(v===u.length)return n(i,f),s;if(null===f){for(;v<u.length;v++)null!==(f=h(i,u[v],c))&&(o=a(f,o,v),null===l?s=f:l.sibling=f,l=f);return s}for(f=r(i,f);v<u.length;v++)null!==(y=p(f,i,v,u[v],c))&&(e&&null!==y.alternate&&f.delete(null===y.key?v:y.key),o=a(y,o,v),null===l?s=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(i,e)})),s}function y(i,u,c,s){var l=ve(c);if("function"!==typeof l)throw Error(o(150));if(null==(c=l.call(c)))throw Error(o(151));for(var f=l=null,v=u,y=u=0,b=null,m=c.next();null!==v&&!m.done;y++,m=c.next()){v.index>y?(b=v,v=null):b=v.sibling;var g=d(i,v,m.value,s);if(null===g){null===v&&(v=b);break}e&&v&&null===g.alternate&&t(i,v),u=a(g,u,y),null===f?l=g:f.sibling=g,f=g,v=b}if(m.done)return n(i,v),l;if(null===v){for(;!m.done;y++,m=c.next())null!==(m=h(i,m.value,s))&&(u=a(m,u,y),null===f?l=m:f.sibling=m,f=m);return l}for(v=r(i,v);!m.done;y++,m=c.next())null!==(m=p(v,i,y,m.value,s))&&(e&&null!==m.alternate&&v.delete(null===m.key?y:m.key),u=a(m,u,y),null===f?l=m:f.sibling=m,f=m);return e&&v.forEach((function(e){return t(i,e)})),l}return function(e,r,a,c){var s="object"===typeof a&&null!==a&&a.type===ne&&null===a.key;s&&(a=a.props.children);var l="object"===typeof a&&null!==a;if(l)switch(a.$$typeof){case ee:e:{for(l=a.key,s=r;null!==s;){if(s.key===l){switch(s.tag){case 7:if(a.type===ne){n(e,s.sibling),(r=i(s,a.props.children)).return=e,e=r;break e}break;default:if(s.elementType===a.type){n(e,s.sibling),(r=i(s,a.props)).ref=ka(e,s,a),r.return=e,e=r;break e}}n(e,s);break}t(e,s),s=s.sibling}a.type===ne?((r=Ic(a.props.children,e.mode,c,a.key)).return=e,e=r):((c=Tc(a.type,a.key,a.props,null,e.mode,c)).ref=ka(e,r,a),c.return=e,e=c)}return u(e);case te:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),(r=i(r,a.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Ac(a,e.mode,c)).return=e,e=r}return u(e)}if("string"===typeof a||"number"===typeof a)return a=""+a,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,a)).return=e,e=r):(n(e,r),(r=Ec(a,e.mode,c)).return=e,e=r),u(e);if(wa(a))return v(e,r,a,c);if(ve(a))return y(e,r,a,c);if(l&&_a(e,a),"undefined"===typeof a&&!s)switch(e.tag){case 1:case 0:throw e=e.type,Error(o(152,e.displayName||e.name||"Component"))}return n(e,r)}}var xa=Oa(!0),ja=Oa(!1),Sa={},Ta={current:Sa},Ia={current:Sa},Ea={current:Sa};function Aa(e){if(e===Sa)throw Error(o(174));return e}function Ba(e,t){switch(si(Ea,t),si(Ia,e),si(Ta,Sa),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Me(null,"");break;default:t=Me(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}ci(Ta),si(Ta,t)}function Ca(){ci(Ta),ci(Ia),ci(Ea)}function Da(e){Aa(Ea.current);var t=Aa(Ta.current),n=Me(t,e.type);t!==n&&(si(Ia,e),si(Ta,n))}function La(e){Ia.current===e&&(ci(Ta),ci(Ia))}var Na={current:0};function Fa(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Ma(e,t){return{responder:e,props:t}}var Pa=G.ReactCurrentDispatcher,Ua=G.ReactCurrentBatchConfig,Ra=0,za=null,Va=null,Wa=null,Ya=!1;function qa(){throw Error(o(321))}function Ha(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function $a(e,t,n,r,i,a){if(Ra=a,za=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Pa.current=null===e||null===e.memoizedState?bo:mo,e=n(r,i),t.expirationTime===Ra){a=0;do{if(t.expirationTime=0,!(25>a))throw Error(o(301));a+=1,Wa=Va=null,t.updateQueue=null,Pa.current=go,e=n(r,i)}while(t.expirationTime===Ra)}if(Pa.current=yo,t=null!==Va&&null!==Va.next,Ra=0,Wa=Va=za=null,Ya=!1,t)throw Error(o(300));return e}function Ka(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Wa?za.memoizedState=Wa=e:Wa=Wa.next=e,Wa}function Qa(){if(null===Va){var e=za.alternate;e=null!==e?e.memoizedState:null}else e=Va.next;var t=null===Wa?za.memoizedState:Wa.next;if(null!==t)Wa=t,Va=e;else{if(null===e)throw Error(o(310));e={memoizedState:(Va=e).memoizedState,baseState:Va.baseState,baseQueue:Va.baseQueue,queue:Va.queue,next:null},null===Wa?za.memoizedState=Wa=e:Wa=Wa.next=e}return Wa}function Ga(e,t){return"function"===typeof t?t(e):t}function Ja(e){var t=Qa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=Va,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var u=i.next;i.next=a.next,a.next=u}r.baseQueue=i=a,n.pending=null}if(null!==i){i=i.next,r=r.baseState;var c=u=a=null,s=i;do{var l=s.expirationTime;if(l<Ra){var f={expirationTime:s.expirationTime,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===c?(u=c=f,a=r):c=c.next=f,l>za.expirationTime&&(za.expirationTime=l,oc(l))}else null!==c&&(c=c.next={expirationTime:1073741823,suspenseConfig:s.suspenseConfig,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),ac(l,s.suspenseConfig),r=s.eagerReducer===e?s.eagerState:e(r,s.action);s=s.next}while(null!==s&&s!==i);null===c?a=r:c.next=u,Mr(r,t.memoizedState)||(Ao=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=c,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function Za(e){var t=Qa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var u=i=i.next;do{a=e(a,u.action),u=u.next}while(u!==i);Mr(a,t.memoizedState)||(Ao=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Xa(e){var t=Ka();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Ga,lastRenderedState:e}).dispatch=vo.bind(null,za,e),[t.memoizedState,e]}function eo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=za.updateQueue)?(t={lastEffect:null},za.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function to(){return Qa().memoizedState}function no(e,t,n,r){var i=Ka();za.effectTag|=e,i.memoizedState=eo(1|t,n,void 0,void 0===r?null:r)}function ro(e,t,n,r){var i=Qa();r=void 0===r?null:r;var a=void 0;if(null!==Va){var o=Va.memoizedState;if(a=o.destroy,null!==r&&Ha(r,o.deps))return void eo(t,n,a,r)}za.effectTag|=e,i.memoizedState=eo(1|t,n,a,r)}function io(e,t){return no(516,4,e,t)}function ao(e,t){return ro(516,4,e,t)}function oo(e,t){return ro(4,2,e,t)}function uo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function co(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,ro(4,2,uo.bind(null,t,e),n)}function so(){}function lo(e,t){return Ka().memoizedState=[e,void 0===t?null:t],e}function fo(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ha(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ho(e,t){var n=Qa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Ha(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function po(e,t,n){var r=Ri();Vi(98>r?98:r,(function(){e(!0)})),Vi(97<r?97:r,(function(){var r=Ua.suspense;Ua.suspense=void 0===t?null:t;try{e(!1),n()}finally{Ua.suspense=r}}))}function vo(e,t,n){var r=Hu(),i=ha.suspense;i={expirationTime:r=$u(r,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.pending;if(null===a?i.next=i:(i.next=a.next,a.next=i),t.pending=i,a=e.alternate,e===za||null!==a&&a===za)Ya=!0,i.expirationTime=Ra,za.expirationTime=Ra;else{if(0===e.expirationTime&&(null===a||0===a.expirationTime)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,u=a(o,n);if(i.eagerReducer=a,i.eagerState=u,Mr(u,o))return}catch(c){}Ku(e,r)}}var yo={readContext:ra,useCallback:qa,useContext:qa,useEffect:qa,useImperativeHandle:qa,useLayoutEffect:qa,useMemo:qa,useReducer:qa,useRef:qa,useState:qa,useDebugValue:qa,useResponder:qa,useDeferredValue:qa,useTransition:qa},bo={readContext:ra,useCallback:lo,useContext:ra,useEffect:io,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,no(4,2,uo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return no(4,2,e,t)},useMemo:function(e,t){var n=Ka();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Ka();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=vo.bind(null,za,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Ka().memoizedState=e},useState:Xa,useDebugValue:so,useResponder:Ma,useDeferredValue:function(e,t){var n=Xa(e),r=n[0],i=n[1];return io((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Xa(!1),n=t[0];return t=t[1],[lo(po.bind(null,t,e),[t,e]),n]}},mo={readContext:ra,useCallback:fo,useContext:ra,useEffect:ao,useImperativeHandle:co,useLayoutEffect:oo,useMemo:ho,useReducer:Ja,useRef:to,useState:function(){return Ja(Ga)},useDebugValue:so,useResponder:Ma,useDeferredValue:function(e,t){var n=Ja(Ga),r=n[0],i=n[1];return ao((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Ja(Ga),n=t[0];return t=t[1],[fo(po.bind(null,t,e),[t,e]),n]}},go={readContext:ra,useCallback:fo,useContext:ra,useEffect:ao,useImperativeHandle:co,useLayoutEffect:oo,useMemo:ho,useReducer:Za,useRef:to,useState:function(){return Za(Ga)},useDebugValue:so,useResponder:Ma,useDeferredValue:function(e,t){var n=Za(Ga),r=n[0],i=n[1];return ao((function(){var n=Ua.suspense;Ua.suspense=void 0===t?null:t;try{i(e)}finally{Ua.suspense=n}}),[e,t]),r},useTransition:function(e){var t=Za(Ga),n=t[0];return t=t[1],[fo(po.bind(null,t,e),[t,e]),n]}},wo=null,ko=null,_o=!1;function Oo(e,t){var n=xc(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function xo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function jo(e){if(_o){var t=ko;if(t){var n=t;if(!xo(e,t)){if(!(t=kn(n.nextSibling))||!xo(e,t))return e.effectTag=-1025&e.effectTag|2,_o=!1,void(wo=e);Oo(wo,n)}wo=e,ko=kn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,_o=!1,wo=e}}function So(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;wo=e}function To(e){if(e!==wo)return!1;if(!_o)return So(e),_o=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!mn(t,e.memoizedProps))for(t=ko;t;)Oo(e,t),t=kn(t.nextSibling);if(So(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ko=kn(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ko=null}}else ko=wo?kn(e.stateNode.nextSibling):null;return!0}function Io(){ko=wo=null,_o=!1}var Eo=G.ReactCurrentOwner,Ao=!1;function Bo(e,t,n,r){t.child=null===e?ja(t,null,n,r):xa(t,e.child,n,r)}function Co(e,t,n,r,i){n=n.render;var a=t.ref;return na(t,i),r=$a(e,t,n,r,a,i),null===e||Ao?(t.effectTag|=1,Bo(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ko(e,t,i))}function Do(e,t,n,r,i,a){if(null===e){var o=n.type;return"function"!==typeof o||jc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Tc(n.type,null,r,null,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Lo(e,t,o,r,i,a))}return o=e.child,i<a&&(i=o.memoizedProps,(n=null!==(n=n.compare)?n:Ur)(i,r)&&e.ref===t.ref)?Ko(e,t,a):(t.effectTag|=1,(e=Sc(o,r)).ref=t.ref,e.return=t,t.child=e)}function Lo(e,t,n,r,i,a){return null!==e&&Ur(e.memoizedProps,r)&&e.ref===t.ref&&(Ao=!1,i<a)?(t.expirationTime=e.expirationTime,Ko(e,t,a)):Fo(e,t,n,r,a)}function No(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Fo(e,t,n,r,i){var a=vi(n)?di:fi.current;return a=pi(t,a),na(t,i),n=$a(e,t,n,r,a,i),null===e||Ao?(t.effectTag|=1,Bo(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=i&&(e.expirationTime=0),Ko(e,t,i))}function Mo(e,t,n,r,i){if(vi(n)){var a=!0;gi(t)}else a=!1;if(na(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ba(t,n,r),ga(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,u=t.memoizedProps;o.props=u;var c=o.context,s=n.contextType;"object"===typeof s&&null!==s?s=ra(s):s=pi(t,s=vi(n)?di:fi.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||c!==s)&&ma(t,o,r,s),ia=!1;var h=t.memoizedState;o.state=h,la(t,r,o,i),c=t.memoizedState,u!==r||h!==c||hi.current||ia?("function"===typeof l&&(pa(t,n,l,r),c=t.memoizedState),(u=ia||ya(t,n,u,r,h,c,s))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.effectTag|=4)):("function"===typeof o.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=s,r=u):("function"===typeof o.componentDidMount&&(t.effectTag|=4),r=!1)}else o=t.stateNode,oa(e,t),u=t.memoizedProps,o.props=t.type===t.elementType?u:Ki(t.type,u),c=o.context,"object"===typeof(s=n.contextType)&&null!==s?s=ra(s):s=pi(t,s=vi(n)?di:fi.current),(f="function"===typeof(l=n.getDerivedStateFromProps)||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(u!==r||c!==s)&&ma(t,o,r,s),ia=!1,c=t.memoizedState,o.state=c,la(t,r,o,i),h=t.memoizedState,u!==r||c!==h||hi.current||ia?("function"===typeof l&&(pa(t,n,l,r),h=t.memoizedState),(l=ia||ya(t,n,u,r,c,h,s))?(f||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,h,s),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,h,s)),"function"===typeof o.componentDidUpdate&&(t.effectTag|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=h),o.props=r,o.state=h,o.context=s,r=l):("function"!==typeof o.componentDidUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!==typeof o.getSnapshotBeforeUpdate||u===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return Po(e,t,n,r,a,i)}function Po(e,t,n,r,i,a){No(e,t);var o=0!==(64&t.effectTag);if(!r&&!o)return i&&wi(t,n,!1),Ko(e,t,a);r=t.stateNode,Eo.current=t;var u=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&o?(t.child=xa(t,e.child,null,a),t.child=xa(t,null,u,a)):Bo(e,t,u,a),t.memoizedState=r.state,i&&wi(t,n,!0),t.child}function Uo(e){var t=e.stateNode;t.pendingContext?bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bi(0,t.context,!1),Ba(e,t.containerInfo)}var Ro,zo,Vo,Wo={dehydrated:null,retryTime:0};function Yo(e,t,n){var r,i=t.mode,a=t.pendingProps,o=Na.current,u=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&o)&&(null===e||null!==e.memoizedState)),r?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===a.fallback||!0===a.unstable_avoidThisFallback||(o|=1),si(Na,1&o),null===e){if(void 0!==a.fallback&&jo(t),u){if(u=a.fallback,(a=Ic(null,i,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Ic(u,i,n,null)).return=t,a.sibling=n,t.memoizedState=Wo,t.child=a,n}return i=a.children,t.memoizedState=null,t.child=ja(t,null,i,n)}if(null!==e.memoizedState){if(i=(e=e.child).sibling,u){if(a=a.fallback,(n=Sc(e,e.pendingProps)).return=t,0===(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=u;null!==u;)u.return=n,u=u.sibling;return(i=Sc(i,a)).return=t,n.sibling=i,n.childExpirationTime=0,t.memoizedState=Wo,t.child=n,i}return n=xa(t,e.child,a.children,n),t.memoizedState=null,t.child=n}if(e=e.child,u){if(u=a.fallback,(a=Ic(null,i,0,null)).return=t,a.child=e,null!==e&&(e.return=a),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,a.child=e;null!==e;)e.return=a,e=e.sibling;return(n=Ic(u,i,n,null)).return=t,a.sibling=n,n.effectTag|=2,a.childExpirationTime=0,t.memoizedState=Wo,t.child=a,n}return t.memoizedState=null,t.child=xa(t,e,a.children,n)}function qo(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ta(e.return,t)}function Ho(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:i,lastEffect:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailExpiration=0,o.tailMode=i,o.lastEffect=a)}function $o(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Bo(e,t,r.children,n),0!==(2&(r=Na.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qo(e,n);else if(19===e.tag)qo(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(si(Na,r),0===(2&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Fa(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ho(t,!1,i,n,a,t.lastEffect);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Fa(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ho(t,!0,n,null,a,t.lastEffect);break;case"together":Ho(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ko(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&oc(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Sc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Sc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qo(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Go(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return vi(t.type)&&yi(),null;case 3:return Ca(),ci(hi),ci(fi),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!To(t)||(t.effectTag|=4),null;case 5:La(t),n=Aa(Ea.current);var a=t.type;if(null!==e&&null!=t.stateNode)zo(e,t,a,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(o(166));return null}if(e=Aa(Ta.current),To(t)){r=t.stateNode,a=t.type;var u=t.memoizedProps;switch(r[xn]=t,r[jn]=u,a){case"iframe":case"object":case"embed":$t("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)$t(Ge[e],r);break;case"source":$t("error",r);break;case"img":case"image":case"link":$t("error",r),$t("load",r);break;case"form":$t("reset",r),$t("submit",r);break;case"details":$t("toggle",r);break;case"input":Oe(r,u),$t("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!u.multiple},$t("invalid",r),cn(n,"onChange");break;case"textarea":Be(r,u),$t("invalid",r),cn(n,"onChange")}for(var c in an(a,u),e=null,u)if(u.hasOwnProperty(c)){var s=u[c];"children"===c?"string"===typeof s?r.textContent!==s&&(e=["children",s]):"number"===typeof s&&r.textContent!==""+s&&(e=["children",""+s]):x.hasOwnProperty(c)&&null!=s&&cn(n,c)}switch(a){case"input":we(r),Se(r,u,!0);break;case"textarea":we(r),De(r);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(c=9===n.nodeType?n:n.ownerDocument,e===un&&(e=Fe(a)),e===un?"script"===a?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=c.createElement(a,{is:r.is}):(e=c.createElement(a),"select"===a&&(c=e,r.multiple?c.multiple=!0:r.size&&(c.size=r.size))):e=c.createElementNS(e,a),e[xn]=t,e[jn]=r,Ro(e,t),t.stateNode=e,c=on(a,r),a){case"iframe":case"object":case"embed":$t("load",e),s=r;break;case"video":case"audio":for(s=0;s<Ge.length;s++)$t(Ge[s],e);s=r;break;case"source":$t("error",e),s=r;break;case"img":case"image":case"link":$t("error",e),$t("load",e),s=r;break;case"form":$t("reset",e),$t("submit",e),s=r;break;case"details":$t("toggle",e),s=r;break;case"input":Oe(e,r),s=_e(e,r),$t("invalid",e),cn(n,"onChange");break;case"option":s=Ie(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},s=i({},r,{value:void 0}),$t("invalid",e),cn(n,"onChange");break;case"textarea":Be(e,r),s=Ae(e,r),$t("invalid",e),cn(n,"onChange");break;default:s=r}an(a,s);var l=s;for(u in l)if(l.hasOwnProperty(u)){var f=l[u];"style"===u?nn(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Ue(e,f):"children"===u?"string"===typeof f?("textarea"!==a||""!==f)&&Re(e,f):"number"===typeof f&&Re(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(x.hasOwnProperty(u)?null!=f&&cn(n,u):null!=f&&J(e,u,f,c))}switch(a){case"input":we(e),Se(e,r,!1);break;case"textarea":we(e),De(e);break;case"option":null!=r.value&&e.setAttribute("value",""+me(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ee(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ee(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof s.onClick&&(e.onclick=sn)}bn(a,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Vo(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));n=Aa(Ea.current),Aa(Ta.current),To(t)?(n=t.stateNode,r=t.memoizedProps,n[xn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[xn]=t,t.stateNode=n)}return null;case 13:return ci(Na),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&To(t):(r=null!==(a=e.memoizedState),n||null===a||null!==(a=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=a,a.nextEffect=u):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Na.current)?Tu===wu&&(Tu=ku):(Tu!==wu&&Tu!==ku||(Tu=_u),0!==Cu&&null!==xu&&(Dc(xu,Su),Lc(xu,Cu)))),(n||r)&&(t.effectTag|=4),null);case 4:return Ca(),null;case 10:return ea(t),null;case 17:return vi(t.type)&&yi(),null;case 19:if(ci(Na),null===(r=t.memoizedState))return null;if(a=0!==(64&t.effectTag),null===(u=r.rendering)){if(a)Qo(r,!1);else if(Tu!==wu||null!==e&&0!==(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=Fa(u))){for(t.effectTag|=64,Qo(r,!1),null!==(a=e.updateQueue)&&(t.updateQueue=a,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)u=n,(a=r).effectTag&=2,a.nextEffect=null,a.firstEffect=null,a.lastEffect=null,null===(e=a.alternate)?(a.childExpirationTime=0,a.expirationTime=u,a.child=null,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null):(a.childExpirationTime=e.childExpirationTime,a.expirationTime=e.expirationTime,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,u=e.dependencies,a.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),r=r.sibling;return si(Na,1&Na.current|2),t.child}u=u.sibling}}else{if(!a)if(null!==(e=Fa(u))){if(t.effectTag|=64,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Qo(r,!0),null===r.tail&&"hidden"===r.tailMode&&!u.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ui()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,a=!0,Qo(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=r.last)?n.sibling=u:t.child=u,r.last=u)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ui()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ui(),n.sibling=null,t=Na.current,si(Na,a?1&t|2:1&t),n):null}throw Error(o(156,t.tag))}function Jo(e){switch(e.tag){case 1:vi(e.type)&&yi();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Ca(),ci(hi),ci(fi),0!==(64&(t=e.effectTag)))throw Error(o(285));return e.effectTag=-4097&t|64,e;case 5:return La(e),null;case 13:return ci(Na),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return ci(Na),null;case 4:return Ca(),null;case 10:return ea(e),null;default:return null}}function Zo(e,t){return{value:e,source:t,stack:be(t)}}Ro=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},zo=function(e,t,n,r,a){var o=e.memoizedProps;if(o!==r){var u,c,s=t.stateNode;switch(Aa(Ta.current),e=null,n){case"input":o=_e(s,o),r=_e(s,r),e=[];break;case"option":o=Ie(s,o),r=Ie(s,r),e=[];break;case"select":o=i({},o,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":o=Ae(s,o),r=Ae(s,r),e=[];break;default:"function"!==typeof o.onClick&&"function"===typeof r.onClick&&(s.onclick=sn)}for(u in an(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u)for(c in s=o[u])s.hasOwnProperty(c)&&(n||(n={}),n[c]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(x.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in r){var l=r[u];if(s=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s))if("style"===u)if(s){for(c in s)!s.hasOwnProperty(c)||l&&l.hasOwnProperty(c)||(n||(n={}),n[c]="");for(c in l)l.hasOwnProperty(c)&&s[c]!==l[c]&&(n||(n={}),n[c]=l[c])}else n||(e||(e=[]),e.push(u,n)),n=l;else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(e=e||[]).push(u,l)):"children"===u?s===l||"string"!==typeof l&&"number"!==typeof l||(e=e||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(x.hasOwnProperty(u)?(null!=l&&cn(a,u),e||s===l||(e=[])):(e=e||[]).push(u,l))}n&&(e=e||[]).push("style",n),a=e,(t.updateQueue=a)&&(t.effectTag|=4)}},Vo=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var Xo="function"===typeof WeakSet?WeakSet:Set;function eu(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=be(n)),null!==n&&ye(n.type),t=t.value,null!==e&&1===e.tag&&ye(e.type);try{console.error(t)}catch(i){setTimeout((function(){throw i}))}}function tu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){mc(e,n)}else t.current=null}function nu(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Ki(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(o(163))}function ru(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function au(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void iu(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Ki(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&fa(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}fa(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&bn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ft(n)))));case 19:case 17:case 20:case 21:return}throw Error(o(163))}function ou(e,t,n){switch("function"===typeof _c&&_c(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Vi(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var i=t;try{n()}catch(a){mc(i,a)}}e=e.next}while(e!==r)}))}break;case 1:tu(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){mc(e,n)}}(t,n);break;case 5:tu(t);break;case 4:lu(e,t,n)}}function uu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&uu(t)}function cu(e){return 5===e.tag||3===e.tag||4===e.tag}function su(e){e:{for(var t=e.return;null!==t;){if(cu(t)){var n=t;break e}t=t.return}throw Error(o(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(o(161))}16&n.effectTag&&(Re(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||cu(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?8===r.nodeType?r.parentNode.insertBefore(t,n):r.insertBefore(t,n):(8===r.nodeType?(n=r.parentNode).insertBefore(t,r):(n=r).appendChild(t),null!==(r=r._reactRootContainer)&&void 0!==r||null!==n.onclick||(n.onclick=sn));else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t):function e(t,n,r){var i=t.tag,a=5===i||6===i;if(a)t=a?t.stateNode:t.stateNode.instance,n?r.insertBefore(t,n):r.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,n,r),t=t.sibling;null!==t;)e(t,n,r),t=t.sibling}(e,n,t)}function lu(e,t,n){for(var r,i,a=t,u=!1;;){if(!u){u=a.return;e:for(;;){if(null===u)throw Error(o(160));switch(r=u.stateNode,u.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}u=u.return}u=!0}if(5===a.tag||6===a.tag){e:for(var c=e,s=a,l=n,f=s;;)if(ou(c,f,l),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===s)break e;for(;null===f.sibling;){if(null===f.return||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(c=r,s=a.stateNode,8===c.nodeType?c.parentNode.removeChild(s):c.removeChild(s)):r.removeChild(a.stateNode)}else if(4===a.tag){if(null!==a.child){r=a.stateNode.containerInfo,i=!0,a.child.return=a,a=a.child;continue}}else if(ou(e,a,n),null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;4===(a=a.return).tag&&(u=!1)}a.sibling.return=a.return,a=a.sibling}}function fu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ru(3,t);case 1:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var a=t.updateQueue;if(t.updateQueue=null,null!==a){for(n[jn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xe(n,r),on(e,i),t=on(e,r),i=0;i<a.length;i+=2){var u=a[i],c=a[i+1];"style"===u?nn(n,c):"dangerouslySetInnerHTML"===u?Ue(n,c):"children"===u?Re(n,c):J(n,u,c,t)}switch(e){case"input":je(n,r);break;case"textarea":Ce(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ee(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ee(n,!!r.multiple,r.defaultValue,!0):Ee(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(o(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Ft(t.containerInfo)));case 12:return;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Lu=Ui()),null!==n)e:for(e=n;;){if(5===e.tag)a=e.stateNode,r?"function"===typeof(a=a.style).setProperty?a.setProperty("display","none","important"):a.display="none":(a=e.stateNode,i=void 0!==(i=e.memoizedProps.style)&&null!==i&&i.hasOwnProperty("display")?i.display:null,a.style.display=tn("display",i));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(a=e.child.sibling).return=e,e=a;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void hu(t);case 19:return void hu(t);case 17:return}throw Error(o(163))}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xo),t.forEach((function(t){var r=wc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var du="function"===typeof WeakMap?WeakMap:Map;function pu(e,t,n){(n=ua(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Fu||(Fu=!0,Mu=r),eu(e,t)},n}function vu(e,t,n){(n=ua(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return eu(e,t),r(i)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Pu?Pu=new Set([this]):Pu.add(this),eu(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var yu,bu=Math.ceil,mu=G.ReactCurrentDispatcher,gu=G.ReactCurrentOwner,wu=0,ku=3,_u=4,Ou=0,xu=null,ju=null,Su=0,Tu=wu,Iu=null,Eu=1073741823,Au=1073741823,Bu=null,Cu=0,Du=!1,Lu=0,Nu=null,Fu=!1,Mu=null,Pu=null,Uu=!1,Ru=null,zu=90,Vu=null,Wu=0,Yu=null,qu=0;function Hu(){return 0!==(48&Ou)?1073741821-(Ui()/10|0):0!==qu?qu:qu=1073741821-(Ui()/10|0)}function $u(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Ri();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(16&Ou))return Su;if(null!==n)e=$i(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=$i(e,150,100);break;case 97:case 96:e=$i(e,5e3,250);break;case 95:e=2;break;default:throw Error(o(326))}return null!==xu&&e===Su&&--e,e}function Ku(e,t){if(50<Wu)throw Wu=0,Yu=null,Error(o(185));if(null!==(e=Qu(e,t))){var n=Ri();1073741823===t?0!==(8&Ou)&&0===(48&Ou)?Xu(e):(Ju(e),0===Ou&&qi()):Ju(e),0===(4&Ou)||98!==n&&99!==n||(null===Vu?Vu=new Map([[e,t]]):(void 0===(n=Vu.get(e))||n>t)&&Vu.set(e,t))}}function Qu(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,i=null;if(null===r&&3===e.tag)i=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return null!==i&&(xu===i&&(oc(t),Tu===_u&&Dc(i,Su)),Lc(i,t)),i}function Gu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Cc(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function Ju(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=Yi(Xu.bind(null,e));else{var t=Gu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=Hu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var i=e.callbackPriority;if(e.callbackExpirationTime===t&&i>=r)return;n!==Ci&&Oi(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?Yi(Xu.bind(null,e)):Wi(r,Zu.bind(null,e),{timeout:10*(1073741821-t)-Ui()}),e.callbackNode=t}}}function Zu(e,t){if(qu=0,t)return Nc(e,t=Hu()),Ju(e),null;var n=Gu(e);if(0!==n){if(t=e.callbackNode,0!==(48&Ou))throw Error(o(327));if(vc(),e===xu&&n===Su||nc(e,n),null!==ju){var r=Ou;Ou|=16;for(var i=ic();;)try{cc();break}catch(c){rc(e,c)}if(Xi(),Ou=r,mu.current=i,1===Tu)throw t=Iu,nc(e,n),Dc(e,n),Ju(e),t;if(null===ju)switch(i=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Tu,xu=null,r){case wu:case 1:throw Error(o(345));case 2:Nc(e,2<n?2:n);break;case ku:if(Dc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),1073741823===Eu&&10<(i=Lu+500-Ui())){if(Du){var a=e.lastPingedTime;if(0===a||a>=n){e.lastPingedTime=n,nc(e,n);break}}if(0!==(a=Gu(e))&&a!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=gn(hc.bind(null,e),i);break}hc(e);break;case _u:if(Dc(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fc(i)),Du&&(0===(i=e.lastPingedTime)||i>=n)){e.lastPingedTime=n,nc(e,n);break}if(0!==(i=Gu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Au?r=10*(1073741821-Au)-Ui():1073741823===Eu?r=0:(r=10*(1073741821-Eu)-5e3,0>(r=(i=Ui())-r)&&(r=0),(n=10*(1073741821-n)-i)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*bu(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=gn(hc.bind(null,e),r);break}hc(e);break;case 5:if(1073741823!==Eu&&null!==Bu){a=Eu;var u=Bu;if(0>=(r=0|u.busyMinDurationMs)?r=0:(i=0|u.busyDelayMs,r=(a=Ui()-(10*(1073741821-a)-(0|u.timeoutMs||5e3)))<=i?0:i+r-a),10<r){Dc(e,n),e.timeoutHandle=gn(hc.bind(null,e),r);break}}hc(e);break;default:throw Error(o(329))}if(Ju(e),e.callbackNode===t)return Zu.bind(null,e)}}return null}function Xu(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Ou))throw Error(o(327));if(vc(),e===xu&&t===Su||nc(e,t),null!==ju){var n=Ou;Ou|=16;for(var r=ic();;)try{uc();break}catch(i){rc(e,i)}if(Xi(),Ou=n,mu.current=r,1===Tu)throw n=Iu,nc(e,t),Dc(e,t),Ju(e),n;if(null!==ju)throw Error(o(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,xu=null,hc(e),Ju(e)}return null}function ec(e,t){var n=Ou;Ou|=1;try{return e(t)}finally{0===(Ou=n)&&qi()}}function tc(e,t){var n=Ou;Ou&=-2,Ou|=8;try{return e(t)}finally{0===(Ou=n)&&qi()}}function nc(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,wn(n)),null!==ju)for(n=ju.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&yi();break;case 3:Ca(),ci(hi),ci(fi);break;case 5:La(r);break;case 4:Ca();break;case 13:case 19:ci(Na);break;case 10:ea(r)}n=n.return}xu=e,ju=Sc(e.current,null),Su=t,Tu=wu,Iu=null,Au=Eu=1073741823,Bu=null,Cu=0,Du=!1}function rc(e,t){for(;;){try{if(Xi(),Pa.current=yo,Ya)for(var n=za.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Ra=0,Wa=Va=za=null,Ya=!1,null===ju||null===ju.return)return Tu=1,Iu=t,ju=null;e:{var i=e,a=ju.return,o=ju,u=t;if(t=Su,o.effectTag|=2048,o.firstEffect=o.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u;if(0===(2&o.mode)){var s=o.alternate;s?(o.updateQueue=s.updateQueue,o.memoizedState=s.memoizedState,o.expirationTime=s.expirationTime):(o.updateQueue=null,o.memoizedState=null)}var l=0!==(1&Na.current),f=a;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!l)}}if(h){var v=f.updateQueue;if(null===v){var y=new Set;y.add(c),f.updateQueue=y}else v.add(c);if(0===(2&f.mode)){if(f.effectTag|=64,o.effectTag&=-2981,1===o.tag)if(null===o.alternate)o.tag=17;else{var b=ua(1073741823,null);b.tag=2,ca(o,b)}o.expirationTime=1073741823;break e}u=void 0,o=t;var m=i.pingCache;if(null===m?(m=i.pingCache=new du,u=new Set,m.set(c,u)):void 0===(u=m.get(c))&&(u=new Set,m.set(c,u)),!u.has(o)){u.add(o);var g=gc.bind(null,i,c,o);c.then(g,g)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((ye(o.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+be(o))}5!==Tu&&(Tu=2),u=Zo(u,o),f=a;do{switch(f.tag){case 3:c=u,f.effectTag|=4096,f.expirationTime=t,sa(f,pu(f,c,t));break e;case 1:c=u;var w=f.type,k=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Pu||!Pu.has(k)))){f.effectTag|=4096,f.expirationTime=t,sa(f,vu(f,c,t));break e}}f=f.return}while(null!==f)}ju=lc(ju)}catch(_){t=_;continue}break}}function ic(){var e=mu.current;return mu.current=yo,null===e?yo:e}function ac(e,t){e<Eu&&2<e&&(Eu=e),null!==t&&e<Au&&2<e&&(Au=e,Bu=t)}function oc(e){e>Cu&&(Cu=e)}function uc(){for(;null!==ju;)ju=sc(ju)}function cc(){for(;null!==ju&&!Di();)ju=sc(ju)}function sc(e){var t=yu(e.alternate,e,Su);return e.memoizedProps=e.pendingProps,null===t&&(t=lc(e)),gu.current=null,t}function lc(e){ju=e;do{var t=ju.alternate;if(e=ju.return,0===(2048&ju.effectTag)){if(t=Go(t,ju,Su),1===Su||1!==ju.childExpirationTime){for(var n=0,r=ju.child;null!==r;){var i=r.expirationTime,a=r.childExpirationTime;i>n&&(n=i),a>n&&(n=a),r=r.sibling}ju.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=ju.firstEffect),null!==ju.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=ju.firstEffect),e.lastEffect=ju.lastEffect),1<ju.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=ju:e.firstEffect=ju,e.lastEffect=ju))}else{if(null!==(t=Jo(ju)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=ju.sibling))return t;ju=e}while(null!==ju);return Tu===wu&&(Tu=5),null}function fc(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hc(e){var t=Ri();return Vi(99,dc.bind(null,e,t)),null}function dc(e,t){do{vc()}while(null!==Ru);if(0!==(48&Ou))throw Error(o(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var i=fc(n);if(e.firstPendingTime=i,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===xu&&(ju=xu=null,Su=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,i=n.firstEffect):i=n:i=n.firstEffect,null!==i){var a=Ou;Ou|=32,gu.current=null,vn=Ht;var u=dn();if(pn(u)){if("selectionStart"in u)var c={start:u.selectionStart,end:u.selectionEnd};else e:{var s=(c=(c=u.ownerDocument)&&c.defaultView||window).getSelection&&c.getSelection();if(s&&0!==s.rangeCount){c=s.anchorNode;var l=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{c.nodeType,f.nodeType}catch(S){c=null;break e}var h=0,d=-1,p=-1,v=0,y=0,b=u,m=null;t:for(;;){for(var g;b!==c||0!==l&&3!==b.nodeType||(d=h+l),b!==f||0!==s&&3!==b.nodeType||(p=h+s),3===b.nodeType&&(h+=b.nodeValue.length),null!==(g=b.firstChild);)m=b,b=g;for(;;){if(b===u)break t;if(m===c&&++v===l&&(d=h),m===f&&++y===s&&(p=h),null!==(g=b.nextSibling))break;m=(b=m).parentNode}b=g}c=-1===d||-1===p?null:{start:d,end:p}}else c=null}c=c||{start:0,end:0}}else c=null;yn={activeElementDetached:null,focusedElem:u,selectionRange:c},Ht=!1,Nu=i;do{try{pc()}catch(S){if(null===Nu)throw Error(o(330));mc(Nu,S),Nu=Nu.nextEffect}}while(null!==Nu);Nu=i;do{try{for(u=e,c=t;null!==Nu;){var w=Nu.effectTag;if(16&w&&Re(Nu.stateNode,""),128&w){var k=Nu.alternate;if(null!==k){var _=k.ref;null!==_&&("function"===typeof _?_(null):_.current=null)}}switch(1038&w){case 2:su(Nu),Nu.effectTag&=-3;break;case 6:su(Nu),Nu.effectTag&=-3,fu(Nu.alternate,Nu);break;case 1024:Nu.effectTag&=-1025;break;case 1028:Nu.effectTag&=-1025,fu(Nu.alternate,Nu);break;case 4:fu(Nu.alternate,Nu);break;case 8:lu(u,l=Nu,c),uu(l)}Nu=Nu.nextEffect}}catch(S){if(null===Nu)throw Error(o(330));mc(Nu,S),Nu=Nu.nextEffect}}while(null!==Nu);if(_=yn,k=dn(),w=_.focusedElem,c=_.selectionRange,k!==w&&w&&w.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(w.ownerDocument.documentElement,w)){null!==c&&pn(w)&&(k=c.start,void 0===(_=c.end)&&(_=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(_,w.value.length)):(_=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(_=_.getSelection(),l=w.textContent.length,u=Math.min(c.start,l),c=void 0===c.end?u:Math.min(c.end,l),!_.extend&&u>c&&(l=c,c=u,u=l),l=hn(w,u),f=hn(w,c),l&&f&&(1!==_.rangeCount||_.anchorNode!==l.node||_.anchorOffset!==l.offset||_.focusNode!==f.node||_.focusOffset!==f.offset)&&((k=k.createRange()).setStart(l.node,l.offset),_.removeAllRanges(),u>c?(_.addRange(k),_.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),_.addRange(k))))),k=[];for(_=w;_=_.parentNode;)1===_.nodeType&&k.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<k.length;w++)(_=k[w]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Ht=!!vn,yn=vn=null,e.current=n,Nu=i;do{try{for(w=e;null!==Nu;){var O=Nu.effectTag;if(36&O&&au(w,Nu.alternate,Nu),128&O){k=void 0;var x=Nu.ref;if(null!==x){var j=Nu.stateNode;switch(Nu.tag){case 5:k=j;break;default:k=j}"function"===typeof x?x(k):x.current=k}}Nu=Nu.nextEffect}}catch(S){if(null===Nu)throw Error(o(330));mc(Nu,S),Nu=Nu.nextEffect}}while(null!==Nu);Nu=null,Li(),Ou=a}else e.current=n;if(Uu)Uu=!1,Ru=e,zu=t;else for(Nu=i;null!==Nu;)t=Nu.nextEffect,Nu.nextEffect=null,Nu=t;if(0===(t=e.firstPendingTime)&&(Pu=null),1073741823===t?e===Yu?Wu++:(Wu=0,Yu=e):Wu=0,"function"===typeof kc&&kc(n.stateNode,r),Ju(e),Fu)throw Fu=!1,e=Mu,Mu=null,e;return 0!==(8&Ou)||qi(),null}function pc(){for(;null!==Nu;){var e=Nu.effectTag;0!==(256&e)&&nu(Nu.alternate,Nu),0===(512&e)||Uu||(Uu=!0,Wi(97,(function(){return vc(),null}))),Nu=Nu.nextEffect}}function vc(){if(90!==zu){var e=97<zu?97:zu;return zu=90,Vi(e,yc)}}function yc(){if(null===Ru)return!1;var e=Ru;if(Ru=null,0!==(48&Ou))throw Error(o(331));var t=Ou;for(Ou|=32,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ru(5,n),iu(5,n)}}catch(r){if(null===e)throw Error(o(330));mc(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Ou=t,qi(),!0}function bc(e,t,n){ca(e,t=pu(e,t=Zo(n,t),1073741823)),null!==(e=Qu(e,1073741823))&&Ju(e)}function mc(e,t){if(3===e.tag)bc(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){bc(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Pu||!Pu.has(r))){ca(n,e=vu(n,e=Zo(t,e),1073741823)),null!==(n=Qu(n,1073741823))&&Ju(n);break}}n=n.return}}function gc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),xu===e&&Su===n?Tu===_u||Tu===ku&&1073741823===Eu&&Ui()-Lu<500?nc(e,Su):Du=!0:Cc(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,Ju(e)))}function wc(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=$u(t=Hu(),e,null)),null!==(e=Qu(e,t))&&Ju(e)}yu=function(e,t,n){var r=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||hi.current)Ao=!0;else{if(r<n){switch(Ao=!1,t.tag){case 3:Uo(t),Io();break;case 5:if(Da(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:vi(t.type)&&gi(t);break;case 4:Ba(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,i=t.type._context,si(Qi,i._currentValue),i._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?Yo(e,t,n):(si(Na,1&Na.current),null!==(t=Ko(e,t,n))?t.sibling:null);si(Na,1&Na.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return $o(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),si(Na,Na.current),!r)return null}return Ko(e,t,n)}Ao=!1}}else Ao=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=pi(t,fi.current),na(t,n),i=$a(null,t,r,e,i,n),t.effectTag|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,vi(r)){var a=!0;gi(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,aa(t);var u=r.getDerivedStateFromProps;"function"===typeof u&&pa(t,r,u,e),i.updater=va,t.stateNode=i,i._reactInternalFiber=t,ga(t,r,e,n),t=Po(null,t,r,!0,a,n)}else t.tag=0,Bo(null,t,i,n),t=t.child;return t;case 16:e:{if(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i),1!==i._status)throw i._result;switch(i=i._result,t.type=i,a=t.tag=function(e){if("function"===typeof e)return jc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ce)return 11;if(e===fe)return 14}return 2}(i),e=Ki(i,e),a){case 0:t=Fo(null,t,i,e,n);break e;case 1:t=Mo(null,t,i,e,n);break e;case 11:t=Co(null,t,i,e,n);break e;case 14:t=Do(null,t,i,Ki(i.type,e),r,n);break e}throw Error(o(306,i,""))}return t;case 0:return r=t.type,i=t.pendingProps,Fo(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 1:return r=t.type,i=t.pendingProps,Mo(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 3:if(Uo(t),r=t.updateQueue,null===e||null===r)throw Error(o(282));if(r=t.pendingProps,i=null!==(i=t.memoizedState)?i.element:null,oa(e,t),la(t,r,null,n),(r=t.memoizedState.element)===i)Io(),t=Ko(e,t,n);else{if((i=t.stateNode.hydrate)&&(ko=kn(t.stateNode.containerInfo.firstChild),wo=t,i=_o=!0),i)for(n=ja(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Bo(e,t,r,n),Io();t=t.child}return t;case 5:return Da(t),null===e&&jo(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,u=i.children,mn(r,i)?u=null:null!==a&&mn(r,a)&&(t.effectTag|=16),No(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Bo(e,t,u,n),t=t.child),t;case 6:return null===e&&jo(t),null;case 13:return Yo(e,t,n);case 4:return Ba(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=xa(t,null,r,n):Bo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,Co(e,t,r,i=t.elementType===r?i:Ki(r,i),n);case 7:return Bo(e,t,t.pendingProps,n),t.child;case 8:case 12:return Bo(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,i=t.pendingProps,u=t.memoizedProps,a=i.value;var c=t.type._context;if(si(Qi,c._currentValue),c._currentValue=a,null!==u)if(c=u.value,0===(a=Mr(c,a)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(c,a):1073741823))){if(u.children===i.children&&!hi.current){t=Ko(e,t,n);break e}}else for(null!==(c=t.child)&&(c.return=t);null!==c;){var s=c.dependencies;if(null!==s){u=c.child;for(var l=s.firstContext;null!==l;){if(l.context===r&&0!==(l.observedBits&a)){1===c.tag&&((l=ua(n,null)).tag=2,ca(c,l)),c.expirationTime<n&&(c.expirationTime=n),null!==(l=c.alternate)&&l.expirationTime<n&&(l.expirationTime=n),ta(c.return,n),s.expirationTime<n&&(s.expirationTime=n);break}l=l.next}}else u=10===c.tag&&c.type===t.type?null:c.child;if(null!==u)u.return=c;else for(u=c;null!==u;){if(u===t){u=null;break}if(null!==(c=u.sibling)){c.return=u.return,u=c;break}u=u.return}c=u}Bo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=(a=t.pendingProps).children,na(t,n),r=r(i=ra(i,a.unstable_observedBits)),t.effectTag|=1,Bo(e,t,r,n),t.child;case 14:return a=Ki(i=t.type,t.pendingProps),Do(e,t,i,a=Ki(i.type,a),r,n);case 15:return Lo(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ki(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,vi(r)?(e=!0,gi(t)):e=!1,na(t,n),ba(t,r,i),ga(t,r,i,n),Po(null,t,r,!0,e,n);case 19:return $o(e,t,n)}throw Error(o(156,t.tag))};var kc=null,_c=null;function Oc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function xc(e,t,n,r){return new Oc(e,t,n,r)}function jc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Sc(e,t){var n=e.alternate;return null===n?((n=xc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Tc(e,t,n,r,i,a){var u=2;if(r=e,"function"===typeof e)jc(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case ne:return Ic(n.children,i,a,t);case ue:u=8,i|=7;break;case re:u=8,i|=1;break;case ie:return(e=xc(12,n,t,8|i)).elementType=ie,e.type=ie,e.expirationTime=a,e;case se:return(e=xc(13,n,t,i)).type=se,e.elementType=se,e.expirationTime=a,e;case le:return(e=xc(19,n,t,i)).elementType=le,e.expirationTime=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ae:u=10;break e;case oe:u=9;break e;case ce:u=11;break e;case fe:u=14;break e;case he:u=16,r=null;break e;case de:u=22;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=xc(u,n,t,i)).elementType=e,t.type=r,t.expirationTime=a,t}function Ic(e,t,n,r){return(e=xc(7,e,r,t)).expirationTime=n,e}function Ec(e,t,n){return(e=xc(6,e,null,t)).expirationTime=n,e}function Ac(e,t,n){return(t=xc(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Cc(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function Dc(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Lc(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Nc(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Fc(e,t,n,r){var i=t.current,a=Hu(),u=ha.suspense;a=$u(a,i,u);e:if(n){t:{if(Xe(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(o(170));var c=n;do{switch(c.tag){case 3:c=c.stateNode.context;break t;case 1:if(vi(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}}c=c.return}while(null!==c);throw Error(o(171))}if(1===n.tag){var s=n.type;if(vi(s)){n=mi(n,s,c);break e}}n=c}else n=li;return null===t.context?t.context=n:t.pendingContext=n,(t=ua(a,u)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),ca(i,t),Ku(i,a),a}function Mc(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Pc(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Uc(e,t){Pc(e,t),(e=e.alternate)&&Pc(e,t)}function Rc(e,t,n){var r=new Bc(e,t,n=null!=n&&!0===n.hydrate),i=xc(3,null,null,2===t?7:1===t?3:0);r.current=i,i.stateNode=r,aa(i),e[Sn]=r.current,n&&0!==t&&function(e,t){var n=Ze(t);St.forEach((function(e){pt(e,t,n)})),Tt.forEach((function(e){pt(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vc(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a._internalRoot;if("function"===typeof i){var u=i;i=function(){var e=Mc(o);u.call(e)}}Fc(t,o,e,i)}else{if(a=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new Rc(e,0,t?{hydrate:!0}:void 0)}(n,r),o=a._internalRoot,"function"===typeof i){var c=i;i=function(){var e=Mc(o);c.call(e)}}tc((function(){Fc(t,o,e,i)}))}return Mc(o)}function Wc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Yc(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!zc(t))throw Error(o(200));return Wc(e,t,null,n)}Rc.prototype.render=function(e){Fc(e,this._internalRoot,null,null)},Rc.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Fc(null,e,null,(function(){t[Sn]=null}))},vt=function(e){if(13===e.tag){var t=$i(Hu(),150,100);Ku(e,t),Uc(e,t)}},yt=function(e){13===e.tag&&(Ku(e,3),Uc(e,3))},bt=function(e){if(13===e.tag){var t=Hu();Ku(e,t=$u(t,e,null)),Uc(e,t)}},I=function(e,t,n){switch(t){case"input":if(je(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=An(r);if(!i)throw Error(o(90));ke(r),je(r,i)}}}break;case"textarea":Ce(e,n);break;case"select":null!=(t=n.value)&&Ee(e,!!n.multiple,t,!1)}},L=ec,N=function(e,t,n,r,i){var a=Ou;Ou|=4;try{return Vi(98,e.bind(null,t,n,r,i))}finally{0===(Ou=a)&&qi()}},F=function(){0===(49&Ou)&&(function(){if(null!==Vu){var e=Vu;Vu=null,e.forEach((function(e,t){Nc(t,e),Ju(t)})),qi()}}(),vc())},M=function(e,t){var n=Ou;Ou|=2;try{return e(t)}finally{0===(Ou=n)&&qi()}};var qc={Events:[In,En,An,S,O,Mn,function(e){it(e,Fn)},C,D,Jt,ut,vc,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);kc=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},_c=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(i({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=nt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Tn,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qc,t.createPortal=Yc,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw Error(o(268,Object.keys(e)))}return e=null===(e=nt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Ou))throw Error(o(187));var n=Ou;Ou|=1;try{return Vi(99,e.bind(null,t))}finally{Ou=n,qi()}},t.hydrate=function(e,t,n){if(!zc(t))throw Error(o(200));return Vc(null,e,t,!0,n)},t.render=function(e,t,n){if(!zc(t))throw Error(o(200));return Vc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!zc(e))throw Error(o(40));return!!e._reactRootContainer&&(tc((function(){Vc(null,null,e,!1,(function(){e._reactRootContainer=null,e[Sn]=null}))})),!0)},t.unstable_batchedUpdates=ec,t.unstable_createPortal=function(e,t){return Yc(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternalFiber)throw Error(o(38));return Vc(e,t,n,!1,r)},t.version="16.14.0"},function(e,t,n){"use strict";e.exports=n(45)},function(e,t,n){"use strict";var r,i,a,o,u;if("undefined"===typeof window||"function"!==typeof MessageChannel){var c=null,s=null,l=function e(){if(null!==c)try{var n=t.unstable_now();c(!0,n),c=null}catch(r){throw setTimeout(e,0),r}},f=Date.now();t.unstable_now=function(){return Date.now()-f},r=function(e){null!==c?setTimeout(r,0,e):(c=e,setTimeout(l,0))},i=function(e,t){s=setTimeout(e,t)},a=function(){clearTimeout(s)},o=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var y=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)t.unstable_now=function(){return h.now()};else{var b=d.now();t.unstable_now=function(){return d.now()-b}}var m=!1,g=null,w=-1,k=5,_=0;o=function(){return t.unstable_now()>=_},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):k=0<e?Math.floor(1e3/e):5};var O=new MessageChannel,x=O.port2;O.port1.onmessage=function(){if(null!==g){var e=t.unstable_now();_=e+k;try{g(!0,e)?x.postMessage(null):(m=!1,g=null)}catch(n){throw x.postMessage(null),n}}else m=!1},r=function(e){g=e,m||(m=!0,x.postMessage(null))},i=function(e,n){w=p((function(){e(t.unstable_now())}),n)},a=function(){v(w),w=-1}}function j(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,i=e[r];if(!(void 0!==i&&0<I(i,t)))break e;e[r]=t,e[n]=i,n=r}}function S(e){return void 0===(e=e[0])?null:e}function T(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length;r<i;){var a=2*(r+1)-1,o=e[a],u=a+1,c=e[u];if(void 0!==o&&0>I(o,n))void 0!==c&&0>I(c,o)?(e[r]=c,e[u]=n,r=u):(e[r]=o,e[a]=n,r=a);else{if(!(void 0!==c&&0>I(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}return null}function I(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var E=[],A=[],B=1,C=null,D=3,L=!1,N=!1,F=!1;function M(e){for(var t=S(A);null!==t;){if(null===t.callback)T(A);else{if(!(t.startTime<=e))break;T(A),t.sortIndex=t.expirationTime,j(E,t)}t=S(A)}}function P(e){if(F=!1,M(e),!N)if(null!==S(E))N=!0,r(U);else{var t=S(A);null!==t&&i(P,t.startTime-e)}}function U(e,n){N=!1,F&&(F=!1,a()),L=!0;var r=D;try{for(M(n),C=S(E);null!==C&&(!(C.expirationTime>n)||e&&!o());){var u=C.callback;if(null!==u){C.callback=null,D=C.priorityLevel;var c=u(C.expirationTime<=n);n=t.unstable_now(),"function"===typeof c?C.callback=c:C===S(E)&&T(E),M(n)}else T(E);C=S(E)}if(null!==C)var s=!0;else{var l=S(A);null!==l&&i(P,l.startTime-n),s=!1}return s}finally{C=null,D=r,L=!1}}function R(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var z=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){N||L||(N=!0,r(U))},t.unstable_getCurrentPriorityLevel=function(){return D},t.unstable_getFirstCallbackNode=function(){return S(E)},t.unstable_next=function(e){switch(D){case 1:case 2:case 3:var t=3;break;default:t=D}var n=D;D=t;try{return e()}finally{D=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=z,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=D;D=e;try{return t()}finally{D=n}},t.unstable_scheduleCallback=function(e,n,o){var u=t.unstable_now();if("object"===typeof o&&null!==o){var c=o.delay;c="number"===typeof c&&0<c?u+c:u,o="number"===typeof o.timeout?o.timeout:R(e)}else o=R(e),c=u;return e={id:B++,callback:n,priorityLevel:e,startTime:c,expirationTime:o=c+o,sortIndex:-1},c>u?(e.sortIndex=c,j(A,e),null===S(E)&&e===S(A)&&(F?a():F=!0,i(P,c-u))):(e.sortIndex=o,j(E,e),N||L||(N=!0,r(U))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();M(e);var n=S(E);return n!==C&&null!==C&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<C.expirationTime||o()},t.unstable_wrapCallback=function(e){var t=D;return function(){var n=D;D=t;try{return e.apply(this,arguments)}finally{D=n}}}},function(e,t,n){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"===typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",o=r.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(S){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,a=Object.create(i.prototype),o=new O(r||[]);return a._invoke=function(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return j()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var u=w(o,n);if(u){if(u===l)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=s(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function s(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(S){return{type:"throw",arg:S}}}e.wrap=c;var l={};function f(){}function h(){}function d(){}var p={};u(p,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(x([])));y&&y!==t&&n.call(y,i)&&(p=y);var b=d.prototype=f.prototype=Object.create(p);function m(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function g(e,t){var r;this._invoke=function(i,a){function o(){return new t((function(r,o){!function r(i,a,o,u){var c=s(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"===typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,o,u)}),(function(e){r("throw",e,o,u)})):t.resolve(f).then((function(e){l.value=e,o(l)}),(function(e){return r("throw",e,o,u)}))}u(c.arg)}(i,a,r,o)}))}return r=r?r.then(o,o):o()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=s(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function x(e){if(e){var t=e[i];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=d,u(b,"constructor",d),u(d,"constructor",h),h.displayName=u(d,o,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,o,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},m(g.prototype),u(g.prototype,a,(function(){return this})),e.AsyncIterator=g,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new g(c(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},m(b),u(b,o,"Generator"),u(b,i,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=x,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),c=n.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,l):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:x(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){"use strict";e.exports=n(48)},function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,a=r?Symbol.for("react.portal"):60106,o=r?Symbol.for("react.fragment"):60107,u=r?Symbol.for("react.strict_mode"):60108,c=r?Symbol.for("react.profiler"):60114,s=r?Symbol.for("react.provider"):60109,l=r?Symbol.for("react.context"):60110,f=r?Symbol.for("react.async_mode"):60111,h=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,v=r?Symbol.for("react.suspense_list"):60120,y=r?Symbol.for("react.memo"):60115,b=r?Symbol.for("react.lazy"):60116,m=r?Symbol.for("react.block"):60121,g=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case f:case h:case o:case c:case u:case p:return e;default:switch(e=e&&e.$$typeof){case l:case d:case b:case y:case s:return e;default:return t}}case a:return t}}}function O(e){return _(e)===h}t.AsyncMode=f,t.ConcurrentMode=h,t.ContextConsumer=l,t.ContextProvider=s,t.Element=i,t.ForwardRef=d,t.Fragment=o,t.Lazy=b,t.Memo=y,t.Portal=a,t.Profiler=c,t.StrictMode=u,t.Suspense=p,t.isAsyncMode=function(e){return O(e)||_(e)===f},t.isConcurrentMode=O,t.isContextConsumer=function(e){return _(e)===l},t.isContextProvider=function(e){return _(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===o},t.isLazy=function(e){return _(e)===b},t.isMemo=function(e){return _(e)===y},t.isPortal=function(e){return _(e)===a},t.isProfiler=function(e){return _(e)===c},t.isStrictMode=function(e){return _(e)===u},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===h||e===c||e===u||e===p||e===v||"object"===typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===y||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===w||e.$$typeof===k||e.$$typeof===m)},t.typeOf=_},function(e,t,n){(function(e){var r="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(50),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(33))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i=1,a={},o=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){l(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?function(){var t="setImmediate$"+Math.random()+"$",n=function(n){n.source===e&&"string"===typeof n.data&&0===n.data.indexOf(t)&&l(+n.data.slice(t.length))};e.addEventListener?e.addEventListener("message",n,!1):e.attachEvent("onmessage",n),r=function(n){e.postMessage(t+n,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){l(e.data)},r=function(t){e.port2.postMessage(t)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var e=u.documentElement;r=function(t){var n=u.createElement("script");n.onreadystatechange=function(){l(t),n.onreadystatechange=null,e.removeChild(n),n=null},e.appendChild(n)}}():r=function(e){setTimeout(l,0,e)},c.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return a[i]=o,r(i),i++},c.clearImmediate=s}function s(e){delete a[e]}function l(e){if(o)setTimeout(l,0,e);else{var t=a[e];if(t){o=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{s(e),o=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,n(33),n(51))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var c,s=[],l=!1,f=-1;function h(){l&&c&&(l=!1,c.length?s=c.concat(s):f=-1,s.length&&d())}function d(){if(!l){var e=u(h);l=!0;for(var t=s.length;t;){for(c=s,s=[];++f<t;)c&&c[f].run();f=-1,t=s.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||l||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}]]);
+//# sourceMappingURL=2.b1c975ff.chunk.js.map
\ No newline at end of file