streamlit-react-components 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit_react_components/__init__.py +40 -0
- streamlit_react_components/_frontend/index.css +1 -0
- streamlit_react_components/_frontend/index.html +13 -0
- streamlit_react_components/_frontend/index.js +63 -0
- streamlit_react_components/common/__init__.py +21 -0
- streamlit_react_components/common/button_group.py +57 -0
- streamlit_react_components/common/chart_legend.py +49 -0
- streamlit_react_components/common/data_table.py +65 -0
- streamlit_react_components/common/metric_row.py +47 -0
- streamlit_react_components/common/panel.py +43 -0
- streamlit_react_components/common/section_header.py +59 -0
- streamlit_react_components/common/stat_card.py +54 -0
- streamlit_react_components/common/step_indicator.py +51 -0
- streamlit_react_components/form/__init__.py +11 -0
- streamlit_react_components/form/checkbox_group.py +61 -0
- streamlit_react_components/form/form_select.py +69 -0
- streamlit_react_components/form/form_slider.py +69 -0
- streamlit_react_components-0.1.0.dist-info/METADATA +18 -0
- streamlit_react_components-0.1.0.dist-info/RECORD +21 -0
- streamlit_react_components-0.1.0.dist-info/WHEEL +5 -0
- streamlit_react_components-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();function ig(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Zf={exports:{}},kl={},qf={exports:{}},$={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Fs=Symbol.for("react.element"),sg=Symbol.for("react.portal"),og=Symbol.for("react.fragment"),lg=Symbol.for("react.strict_mode"),ag=Symbol.for("react.profiler"),ug=Symbol.for("react.provider"),cg=Symbol.for("react.context"),dg=Symbol.for("react.forward_ref"),fg=Symbol.for("react.suspense"),hg=Symbol.for("react.memo"),pg=Symbol.for("react.lazy"),_d=Symbol.iterator;function yg(t){return t===null||typeof t!="object"?null:(t=_d&&t[_d]||t["@@iterator"],typeof t=="function"?t:null)}var eh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},th=Object.assign,nh={};function Ni(t,e,n){this.props=t,this.context=e,this.refs=nh,this.updater=n||eh}Ni.prototype.isReactComponent={};Ni.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ni.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function rh(){}rh.prototype=Ni.prototype;function Qu(t,e,n){this.props=t,this.context=e,this.refs=nh,this.updater=n||eh}var Ku=Qu.prototype=new rh;Ku.constructor=Qu;th(Ku,Ni.prototype);Ku.isPureReactComponent=!0;var Sd=Array.isArray,ih=Object.prototype.hasOwnProperty,Gu={current:null},sh={key:!0,ref:!0,__self:!0,__source:!0};function oh(t,e,n){var r,i={},s=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(s=""+e.key),e)ih.call(e,r)&&!sh.hasOwnProperty(r)&&(i[r]=e[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var a=Array(l),u=0;u<l;u++)a[u]=arguments[u+2];i.children=a}if(t&&t.defaultProps)for(r in l=t.defaultProps,l)i[r]===void 0&&(i[r]=l[r]);return{$$typeof:Fs,type:t,key:s,ref:o,props:i,_owner:Gu.current}}function mg(t,e){return{$$typeof:Fs,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function Ju(t){return typeof t=="object"&&t!==null&&t.$$typeof===Fs}function gg(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var bd=/\/+/g;function la(t,e){return typeof t=="object"&&t!==null&&t.key!=null?gg(""+t.key):e.toString(36)}function ao(t,e,n,r,i){var s=typeof t;(s==="undefined"||s==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(s){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case Fs:case sg:o=!0}}if(o)return o=t,i=i(o),t=r===""?"."+la(o,0):r,Sd(i)?(n="",t!=null&&(n=t.replace(bd,"$&/")+"/"),ao(i,e,n,"",function(u){return u})):i!=null&&(Ju(i)&&(i=mg(i,n+(!i.key||o&&o.key===i.key?"":(""+i.key).replace(bd,"$&/")+"/")+t)),e.push(i)),1;if(o=0,r=r===""?".":r+":",Sd(t))for(var l=0;l<t.length;l++){s=t[l];var a=r+la(s,l);o+=ao(s,e,n,a,i)}else if(a=yg(t),typeof a=="function")for(t=a.call(t),l=0;!(s=t.next()).done;)s=s.value,a=r+la(s,l++),o+=ao(s,e,n,a,i);else if(s==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return o}function Vs(t,e,n){if(t==null)return t;var r=[],i=0;return ao(t,r,"","",function(s){return e.call(n,s,i++)}),r}function vg(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var He={current:null},uo={transition:null},wg={ReactCurrentDispatcher:He,ReactCurrentBatchConfig:uo,ReactCurrentOwner:Gu};function lh(){throw Error("act(...) is not supported in production builds of React.")}$.Children={map:Vs,forEach:function(t,e,n){Vs(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return Vs(t,function(){e++}),e},toArray:function(t){return Vs(t,function(e){return e})||[]},only:function(t){if(!Ju(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};$.Component=Ni;$.Fragment=og;$.Profiler=ag;$.PureComponent=Qu;$.StrictMode=lg;$.Suspense=fg;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wg;$.act=lh;$.cloneElement=function(t,e,n){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var r=th({},t.props),i=t.key,s=t.ref,o=t._owner;if(e!=null){if(e.ref!==void 0&&(s=e.ref,o=Gu.current),e.key!==void 0&&(i=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(a in e)ih.call(e,a)&&!sh.hasOwnProperty(a)&&(r[a]=e[a]===void 0&&l!==void 0?l[a]:e[a])}var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){l=Array(a);for(var u=0;u<a;u++)l[u]=arguments[u+2];r.children=l}return{$$typeof:Fs,type:t.type,key:i,ref:s,props:r,_owner:o}};$.createContext=function(t){return t={$$typeof:cg,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:ug,_context:t},t.Consumer=t};$.createElement=oh;$.createFactory=function(t){var e=oh.bind(null,t);return e.type=t,e};$.createRef=function(){return{current:null}};$.forwardRef=function(t){return{$$typeof:dg,render:t}};$.isValidElement=Ju;$.lazy=function(t){return{$$typeof:pg,_payload:{_status:-1,_result:t},_init:vg}};$.memo=function(t,e){return{$$typeof:hg,type:t,compare:e===void 0?null:e}};$.startTransition=function(t){var e=uo.transition;uo.transition={};try{t()}finally{uo.transition=e}};$.unstable_act=lh;$.useCallback=function(t,e){return He.current.useCallback(t,e)};$.useContext=function(t){return He.current.useContext(t)};$.useDebugValue=function(){};$.useDeferredValue=function(t){return He.current.useDeferredValue(t)};$.useEffect=function(t,e){return He.current.useEffect(t,e)};$.useId=function(){return He.current.useId()};$.useImperativeHandle=function(t,e,n){return He.current.useImperativeHandle(t,e,n)};$.useInsertionEffect=function(t,e){return He.current.useInsertionEffect(t,e)};$.useLayoutEffect=function(t,e){return He.current.useLayoutEffect(t,e)};$.useMemo=function(t,e){return He.current.useMemo(t,e)};$.useReducer=function(t,e,n){return He.current.useReducer(t,e,n)};$.useRef=function(t){return He.current.useRef(t)};$.useState=function(t){return He.current.useState(t)};$.useSyncExternalStore=function(t,e,n){return He.current.useSyncExternalStore(t,e,n)};$.useTransition=function(){return He.current.useTransition()};$.version="18.3.1";qf.exports=$;var ee=qf.exports;const Fl=ig(ee);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var _g=ee,Sg=Symbol.for("react.element"),bg=Symbol.for("react.fragment"),Ig=Object.prototype.hasOwnProperty,Ng=_g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xg={key:!0,ref:!0,__self:!0,__source:!0};function ah(t,e,n){var r,i={},s=null,o=null;n!==void 0&&(s=""+n),e.key!==void 0&&(s=""+e.key),e.ref!==void 0&&(o=e.ref);for(r in e)Ig.call(e,r)&&!xg.hasOwnProperty(r)&&(i[r]=e[r]);if(t&&t.defaultProps)for(r in e=t.defaultProps,e)i[r]===void 0&&(i[r]=e[r]);return{$$typeof:Sg,type:t,key:s,ref:o,props:i,_owner:Ng.current}}kl.Fragment=bg;kl.jsx=ah;kl.jsxs=ah;Zf.exports=kl;var k=Zf.exports,za={},uh={exports:{}},yt={},ch={exports:{}},dh={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(t){function e(N,P){var V=N.length;N.push(P);e:for(;0<V;){var _e=V-1>>>1,Fe=N[_e];if(0<i(Fe,P))N[_e]=P,N[V]=Fe,V=_e;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var P=N[0],V=N.pop();if(V!==P){N[0]=V;e:for(var _e=0,Fe=N.length,zs=Fe>>>1;_e<zs;){var or=2*(_e+1)-1,oa=N[or],lr=or+1,js=N[lr];if(0>i(oa,V))lr<Fe&&0>i(js,oa)?(N[_e]=js,N[lr]=V,_e=lr):(N[_e]=oa,N[or]=V,_e=or);else if(lr<Fe&&0>i(js,V))N[_e]=js,N[lr]=V,_e=lr;else break e}}return P}function i(N,P){var V=N.sortIndex-P.sortIndex;return V!==0?V:N.id-P.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;t.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();t.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,d=null,h=3,g=!1,v=!1,S=!1,J=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(N){for(var P=n(u);P!==null;){if(P.callback===null)r(u);else if(P.startTime<=N)r(u),P.sortIndex=P.expirationTime,e(a,P);else break;P=n(u)}}function w(N){if(S=!1,m(N),!v)if(n(a)!==null)v=!0,ia(I);else{var P=n(u);P!==null&&sa(w,P.startTime-N)}}function I(N,P){v=!1,S&&(S=!1,p(F),F=-1),g=!0;var V=h;try{for(m(P),d=n(a);d!==null&&(!(d.expirationTime>P)||N&&!Ot());){var _e=d.callback;if(typeof _e=="function"){d.callback=null,h=d.priorityLevel;var Fe=_e(d.expirationTime<=P);P=t.unstable_now(),typeof Fe=="function"?d.callback=Fe:d===n(a)&&r(a),m(P)}else r(a);d=n(a)}if(d!==null)var zs=!0;else{var or=n(u);or!==null&&sa(w,or.startTime-P),zs=!1}return zs}finally{d=null,h=V,g=!1}}var x=!1,B=null,F=-1,we=5,W=-1;function Ot(){return!(t.unstable_now()-W<we)}function Oi(){if(B!==null){var N=t.unstable_now();W=N;var P=!0;try{P=B(!0,N)}finally{P?Ei():(x=!1,B=null)}}else x=!1}var Ei;if(typeof f=="function")Ei=function(){f(Oi)};else if(typeof MessageChannel<"u"){var wd=new MessageChannel,rg=wd.port2;wd.port1.onmessage=Oi,Ei=function(){rg.postMessage(null)}}else Ei=function(){J(Oi,0)};function ia(N){B=N,x||(x=!0,Ei())}function sa(N,P){F=J(function(){N(t.unstable_now())},P)}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(N){N.callback=null},t.unstable_continueExecution=function(){v||g||(v=!0,ia(I))},t.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):we=0<N?Math.floor(1e3/N):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return n(a)},t.unstable_next=function(N){switch(h){case 1:case 2:case 3:var P=3;break;default:P=h}var V=h;h=P;try{return N()}finally{h=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(N,P){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var V=h;h=N;try{return P()}finally{h=V}},t.unstable_scheduleCallback=function(N,P,V){var _e=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_e+V:_e):V=_e,N){case 1:var Fe=-1;break;case 2:Fe=250;break;case 5:Fe=1073741823;break;case 4:Fe=1e4;break;default:Fe=5e3}return Fe=V+Fe,N={id:c++,callback:P,priorityLevel:N,startTime:V,expirationTime:Fe,sortIndex:-1},V>_e?(N.sortIndex=V,e(u,N),n(a)===null&&N===n(u)&&(S?(p(F),F=-1):S=!0,sa(w,V-_e))):(N.sortIndex=Fe,e(a,N),v||g||(v=!0,ia(I))),N},t.unstable_shouldYield=Ot,t.unstable_wrapCallback=function(N){var P=h;return function(){var V=h;h=P;try{return N.apply(this,arguments)}finally{h=V}}}})(dh);ch.exports=dh;var Bg=ch.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var kg=ee,ft=Bg;function _(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fh=new Set,is={};function Er(t,e){ui(t,e),ui(t+"Capture",e)}function ui(t,e){for(is[t]=e,t=0;t<e.length;t++)fh.add(e[t])}var _n=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,Fg=/^[: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]*$/,Id={},Nd={};function Og(t){return ja.call(Nd,t)?!0:ja.call(Id,t)?!1:Fg.test(t)?Nd[t]=!0:(Id[t]=!0,!1)}function Eg(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function Dg(t,e,n,r){if(e===null||typeof e>"u"||Eg(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Ye(t,e,n,r,i,s,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=s,this.removeEmptyString=o}var Le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Le[t]=new Ye(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Le[e]=new Ye(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Le[t]=new Ye(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Le[t]=new Ye(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Le[t]=new Ye(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Le[t]=new Ye(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Le[t]=new Ye(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Le[t]=new Ye(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Le[t]=new Ye(t,5,!1,t.toLowerCase(),null,!1,!1)});var Xu=/[\-:]([a-z])/g;function Zu(t){return t[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(t){var e=t.replace(Xu,Zu);Le[e]=new Ye(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Xu,Zu);Le[e]=new Ye(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Xu,Zu);Le[e]=new Ye(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Le[t]=new Ye(t,1,!1,t.toLowerCase(),null,!1,!1)});Le.xlinkHref=new Ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Le[t]=new Ye(t,1,!1,t.toLowerCase(),null,!0,!0)});function qu(t,e,n,r){var i=Le.hasOwnProperty(e)?Le[e]:null;(i!==null?i.type!==0:r||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Dg(e,n,i,r)&&(n=null),r||i===null?Og(e)&&(n===null?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=n===null?i.type===3?!1:"":n:(e=i.attributeName,r=i.attributeNamespace,n===null?t.removeAttribute(e):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}var xn=kg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,$s=Symbol.for("react.element"),Pr=Symbol.for("react.portal"),zr=Symbol.for("react.fragment"),ec=Symbol.for("react.strict_mode"),Va=Symbol.for("react.profiler"),hh=Symbol.for("react.provider"),ph=Symbol.for("react.context"),tc=Symbol.for("react.forward_ref"),$a=Symbol.for("react.suspense"),Wa=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),En=Symbol.for("react.lazy"),yh=Symbol.for("react.offscreen"),xd=Symbol.iterator;function Di(t){return t===null||typeof t!="object"?null:(t=xd&&t[xd]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Object.assign,aa;function zi(t){if(aa===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);aa=e&&e[1]||""}return`
|
|
34
|
+
`+aa+t}var ua=!1;function ca(t,e){if(!t||ua)return"";ua=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(u){var r=u}Reflect.construct(t,[],e)}else{try{e.call()}catch(u){r=u}t.call(e.prototype)}else{try{throw Error()}catch(u){r=u}t()}}catch(u){if(u&&r&&typeof u.stack=="string"){for(var i=u.stack.split(`
|
|
35
|
+
`),s=r.stack.split(`
|
|
36
|
+
`),o=i.length-1,l=s.length-1;1<=o&&0<=l&&i[o]!==s[l];)l--;for(;1<=o&&0<=l;o--,l--)if(i[o]!==s[l]){if(o!==1||l!==1)do if(o--,l--,0>l||i[o]!==s[l]){var a=`
|
|
37
|
+
`+i[o].replace(" at new "," at ");return t.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",t.displayName)),a}while(1<=o&&0<=l);break}}}finally{ua=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?zi(t):""}function Cg(t){switch(t.tag){case 5:return zi(t.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return t=ca(t.type,!1),t;case 11:return t=ca(t.type.render,!1),t;case 1:return t=ca(t.type,!0),t;default:return""}}function Ha(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case zr:return"Fragment";case Pr:return"Portal";case Va:return"Profiler";case ec:return"StrictMode";case $a:return"Suspense";case Wa:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case ph:return(t.displayName||"Context")+".Consumer";case hh:return(t._context.displayName||"Context")+".Provider";case tc:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case nc:return e=t.displayName||null,e!==null?e:Ha(t.type)||"Memo";case En:e=t._payload,t=t._init;try{return Ha(t(e))}catch{}}return null}function Ag(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ha(e);case 8:return e===ec?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Yn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mh(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Tg(t){var e=mh(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ws(t){t._valueTracker||(t._valueTracker=Tg(t))}function gh(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=mh(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function Fo(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Ya(t,e){var n=e.checked;return ge({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function Bd(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=Yn(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function vh(t,e){e=e.checked,e!=null&&qu(t,"checked",e,!1)}function Qa(t,e){vh(t,e);var n=Yn(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Ka(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ka(t,e.type,Yn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function kd(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function Ka(t,e,n){(e!=="number"||Fo(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var ji=Array.isArray;function Zr(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+Yn(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,r&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Ga(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(_(91));return ge({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Fd(t,e){var n=e.value;if(n==null){if(n=e.children,e=e.defaultValue,n!=null){if(e!=null)throw Error(_(92));if(ji(n)){if(1<n.length)throw Error(_(93));n=n[0]}e=n}e==null&&(e=""),n=e}t._wrapperState={initialValue:Yn(n)}}function wh(t,e){var n=Yn(e.value),r=Yn(e.defaultValue);n!=null&&(n=""+n,n!==t.value&&(t.value=n),e.defaultValue==null&&t.defaultValue!==n&&(t.defaultValue=n)),r!=null&&(t.defaultValue=""+r)}function Od(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function _h(t){switch(t){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 Ja(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?_h(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var Hs,Sh=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n,r,i)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(Hs=Hs||document.createElement("div"),Hs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Hs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function ss(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var Yi={animationIterationCount:!0,aspectRatio:!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},Lg=["Webkit","ms","Moz","O"];Object.keys(Yi).forEach(function(t){Lg.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Yi[e]=Yi[t]})});function bh(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||Yi.hasOwnProperty(t)&&Yi[t]?(""+e).trim():e+"px"}function Ih(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=bh(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var Mg=ge({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 Xa(t,e){if(e){if(Mg[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(_(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(_(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(_(61))}if(e.style!=null&&typeof e.style!="object")throw Error(_(62))}}function Za(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){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 qa=null;function rc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var eu=null,qr=null,ei=null;function Ed(t){if(t=Ds(t)){if(typeof eu!="function")throw Error(_(280));var e=t.stateNode;e&&(e=Al(e),eu(t.stateNode,t.type,e))}}function Nh(t){qr?ei?ei.push(t):ei=[t]:qr=t}function xh(){if(qr){var t=qr,e=ei;if(ei=qr=null,Ed(t),e)for(t=0;t<e.length;t++)Ed(e[t])}}function Bh(t,e){return t(e)}function kh(){}var da=!1;function Fh(t,e,n){if(da)return t(e,n);da=!0;try{return Bh(t,e,n)}finally{da=!1,(qr!==null||ei!==null)&&(kh(),xh())}}function os(t,e){var n=t.stateNode;if(n===null)return null;var r=Al(n);if(r===null)return null;n=r[e];e:switch(e){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)||(t=t.type,r=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!r;break e;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(_(231,e,typeof n));return n}var tu=!1;if(_n)try{var Ci={};Object.defineProperty(Ci,"passive",{get:function(){tu=!0}}),window.addEventListener("test",Ci,Ci),window.removeEventListener("test",Ci,Ci)}catch{tu=!1}function Rg(t,e,n,r,i,s,o,l,a){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var Qi=!1,Oo=null,Eo=!1,nu=null,Ug={onError:function(t){Qi=!0,Oo=t}};function Pg(t,e,n,r,i,s,o,l,a){Qi=!1,Oo=null,Rg.apply(Ug,arguments)}function zg(t,e,n,r,i,s,o,l,a){if(Pg.apply(this,arguments),Qi){if(Qi){var u=Oo;Qi=!1,Oo=null}else throw Error(_(198));Eo||(Eo=!0,nu=u)}}function Dr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Oh(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Dd(t){if(Dr(t)!==t)throw Error(_(188))}function jg(t){var e=t.alternate;if(!e){if(e=Dr(t),e===null)throw Error(_(188));return e!==t?null:t}for(var n=t,r=e;;){var i=n.return;if(i===null)break;var s=i.alternate;if(s===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===s.child){for(s=i.child;s;){if(s===n)return Dd(i),t;if(s===r)return Dd(i),e;s=s.sibling}throw Error(_(188))}if(n.return!==r.return)n=i,r=s;else{for(var o=!1,l=i.child;l;){if(l===n){o=!0,n=i,r=s;break}if(l===r){o=!0,r=i,n=s;break}l=l.sibling}if(!o){for(l=s.child;l;){if(l===n){o=!0,n=s,r=i;break}if(l===r){o=!0,r=s,n=i;break}l=l.sibling}if(!o)throw Error(_(189))}}if(n.alternate!==r)throw Error(_(190))}if(n.tag!==3)throw Error(_(188));return n.stateNode.current===n?t:e}function Eh(t){return t=jg(t),t!==null?Dh(t):null}function Dh(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Dh(t);if(e!==null)return e;t=t.sibling}return null}var Ch=ft.unstable_scheduleCallback,Cd=ft.unstable_cancelCallback,Vg=ft.unstable_shouldYield,$g=ft.unstable_requestPaint,Se=ft.unstable_now,Wg=ft.unstable_getCurrentPriorityLevel,ic=ft.unstable_ImmediatePriority,Ah=ft.unstable_UserBlockingPriority,Do=ft.unstable_NormalPriority,Hg=ft.unstable_LowPriority,Th=ft.unstable_IdlePriority,Ol=null,tn=null;function Yg(t){if(tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(Ol,t,void 0,(t.current.flags&128)===128)}catch{}}var Lt=Math.clz32?Math.clz32:Gg,Qg=Math.log,Kg=Math.LN2;function Gg(t){return t>>>=0,t===0?32:31-(Qg(t)/Kg|0)|0}var Ys=64,Qs=4194304;function Vi(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Co(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,s=t.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Vi(l):(s&=o,s!==0&&(r=Vi(s)))}else o=n&~i,o!==0?r=Vi(o):s!==0&&(r=Vi(s));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,s=e&-e,i>=s||i===16&&(s&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0<e;)n=31-Lt(e),i=1<<n,r|=t[n],e&=~i;return r}function Jg(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xg(t,e){for(var n=t.suspendedLanes,r=t.pingedLanes,i=t.expirationTimes,s=t.pendingLanes;0<s;){var o=31-Lt(s),l=1<<o,a=i[o];a===-1?(!(l&n)||l&r)&&(i[o]=Jg(l,e)):a<=e&&(t.expiredLanes|=l),s&=~l}}function ru(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Lh(){var t=Ys;return Ys<<=1,!(Ys&4194240)&&(Ys=64),t}function fa(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Os(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Lt(e),t[e]=n}function Zg(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0<n;){var i=31-Lt(n),s=1<<i;e[i]=0,r[i]=-1,t[i]=-1,n&=~s}}function sc(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var r=31-Lt(n),i=1<<r;i&e|t[r]&e&&(t[r]|=e),n&=~i}}var ne=0;function Mh(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Rh,oc,Uh,Ph,zh,iu=!1,Ks=[],Un=null,Pn=null,zn=null,ls=new Map,as=new Map,Tn=[],qg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Ad(t,e){switch(t){case"focusin":case"focusout":Un=null;break;case"dragenter":case"dragleave":Pn=null;break;case"mouseover":case"mouseout":zn=null;break;case"pointerover":case"pointerout":ls.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":as.delete(e.pointerId)}}function Ai(t,e,n,r,i,s){return t===null||t.nativeEvent!==s?(t={blockedOn:e,domEventName:n,eventSystemFlags:r,nativeEvent:s,targetContainers:[i]},e!==null&&(e=Ds(e),e!==null&&oc(e)),t):(t.eventSystemFlags|=r,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function e0(t,e,n,r,i){switch(e){case"focusin":return Un=Ai(Un,t,e,n,r,i),!0;case"dragenter":return Pn=Ai(Pn,t,e,n,r,i),!0;case"mouseover":return zn=Ai(zn,t,e,n,r,i),!0;case"pointerover":var s=i.pointerId;return ls.set(s,Ai(ls.get(s)||null,t,e,n,r,i)),!0;case"gotpointercapture":return s=i.pointerId,as.set(s,Ai(as.get(s)||null,t,e,n,r,i)),!0}return!1}function jh(t){var e=dr(t.target);if(e!==null){var n=Dr(e);if(n!==null){if(e=n.tag,e===13){if(e=Oh(n),e!==null){t.blockedOn=e,zh(t.priority,function(){Uh(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function co(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=su(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(n===null){n=t.nativeEvent;var r=new n.constructor(n.type,n);qa=r,n.target.dispatchEvent(r),qa=null}else return e=Ds(n),e!==null&&oc(e),t.blockedOn=n,!1;e.shift()}return!0}function Td(t,e,n){co(t)&&n.delete(e)}function t0(){iu=!1,Un!==null&&co(Un)&&(Un=null),Pn!==null&&co(Pn)&&(Pn=null),zn!==null&&co(zn)&&(zn=null),ls.forEach(Td),as.forEach(Td)}function Ti(t,e){t.blockedOn===e&&(t.blockedOn=null,iu||(iu=!0,ft.unstable_scheduleCallback(ft.unstable_NormalPriority,t0)))}function us(t){function e(i){return Ti(i,t)}if(0<Ks.length){Ti(Ks[0],t);for(var n=1;n<Ks.length;n++){var r=Ks[n];r.blockedOn===t&&(r.blockedOn=null)}}for(Un!==null&&Ti(Un,t),Pn!==null&&Ti(Pn,t),zn!==null&&Ti(zn,t),ls.forEach(e),as.forEach(e),n=0;n<Tn.length;n++)r=Tn[n],r.blockedOn===t&&(r.blockedOn=null);for(;0<Tn.length&&(n=Tn[0],n.blockedOn===null);)jh(n),n.blockedOn===null&&Tn.shift()}var ti=xn.ReactCurrentBatchConfig,Ao=!0;function n0(t,e,n,r){var i=ne,s=ti.transition;ti.transition=null;try{ne=1,lc(t,e,n,r)}finally{ne=i,ti.transition=s}}function r0(t,e,n,r){var i=ne,s=ti.transition;ti.transition=null;try{ne=4,lc(t,e,n,r)}finally{ne=i,ti.transition=s}}function lc(t,e,n,r){if(Ao){var i=su(t,e,n,r);if(i===null)ba(t,e,r,To,n),Ad(t,r);else if(e0(i,t,e,n,r))r.stopPropagation();else if(Ad(t,r),e&4&&-1<qg.indexOf(t)){for(;i!==null;){var s=Ds(i);if(s!==null&&Rh(s),s=su(t,e,n,r),s===null&&ba(t,e,r,To,n),s===i)break;i=s}i!==null&&r.stopPropagation()}else ba(t,e,r,null,n)}}var To=null;function su(t,e,n,r){if(To=null,t=rc(r),t=dr(t),t!==null)if(e=Dr(t),e===null)t=null;else if(n=e.tag,n===13){if(t=Oh(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return To=t,null}function Vh(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Wg()){case ic:return 1;case Ah:return 4;case Do:case Hg:return 16;case Th:return 536870912;default:return 16}default:return 16}}var Mn=null,ac=null,fo=null;function $h(){if(fo)return fo;var t,e=ac,n=e.length,r,i="value"in Mn?Mn.value:Mn.textContent,s=i.length;for(t=0;t<n&&e[t]===i[t];t++);var o=n-t;for(r=1;r<=o&&e[n-r]===i[s-r];r++);return fo=i.slice(t,1<r?1-r:void 0)}function ho(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Gs(){return!0}function Ld(){return!1}function mt(t){function e(n,r,i,s,o){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=s,this.target=o,this.currentTarget=null;for(var l in t)t.hasOwnProperty(l)&&(n=t[l],this[l]=n?n(s):s[l]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?Gs:Ld,this.isPropagationStopped=Ld,this}return ge(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gs)},persist:function(){},isPersistent:Gs}),e}var xi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uc=mt(xi),Es=ge({},xi,{view:0,detail:0}),i0=mt(Es),ha,pa,Li,El=ge({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:cc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Li&&(Li&&t.type==="mousemove"?(ha=t.screenX-Li.screenX,pa=t.screenY-Li.screenY):pa=ha=0,Li=t),ha)},movementY:function(t){return"movementY"in t?t.movementY:pa}}),Md=mt(El),s0=ge({},El,{dataTransfer:0}),o0=mt(s0),l0=ge({},Es,{relatedTarget:0}),ya=mt(l0),a0=ge({},xi,{animationName:0,elapsedTime:0,pseudoElement:0}),u0=mt(a0),c0=ge({},xi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),d0=mt(c0),f0=ge({},xi,{data:0}),Rd=mt(f0),h0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p0={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"},y0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=y0[t])?!!e[t]:!1}function cc(){return m0}var g0=ge({},Es,{key:function(t){if(t.key){var e=h0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=ho(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?p0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:cc,charCode:function(t){return t.type==="keypress"?ho(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?ho(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),v0=mt(g0),w0=ge({},El,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=mt(w0),_0=ge({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:cc}),S0=mt(_0),b0=ge({},xi,{propertyName:0,elapsedTime:0,pseudoElement:0}),I0=mt(b0),N0=ge({},El,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),x0=mt(N0),B0=[9,13,27,32],dc=_n&&"CompositionEvent"in window,Ki=null;_n&&"documentMode"in document&&(Ki=document.documentMode);var k0=_n&&"TextEvent"in window&&!Ki,Wh=_n&&(!dc||Ki&&8<Ki&&11>=Ki),Pd=" ",zd=!1;function Hh(t,e){switch(t){case"keyup":return B0.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var jr=!1;function F0(t,e){switch(t){case"compositionend":return Yh(e);case"keypress":return e.which!==32?null:(zd=!0,Pd);case"textInput":return t=e.data,t===Pd&&zd?null:t;default:return null}}function O0(t,e){if(jr)return t==="compositionend"||!dc&&Hh(t,e)?(t=$h(),fo=ac=Mn=null,jr=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Wh&&e.locale!=="ko"?null:e.data;default:return null}}var E0={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 jd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!E0[t.type]:e==="textarea"}function Qh(t,e,n,r){Nh(r),e=Lo(e,"onChange"),0<e.length&&(n=new uc("onChange","change",null,n,r),t.push({event:n,listeners:e}))}var Gi=null,cs=null;function D0(t){ip(t,0)}function Dl(t){var e=Wr(t);if(gh(e))return t}function C0(t,e){if(t==="change")return e}var Kh=!1;if(_n){var ma;if(_n){var ga="oninput"in document;if(!ga){var Vd=document.createElement("div");Vd.setAttribute("oninput","return;"),ga=typeof Vd.oninput=="function"}ma=ga}else ma=!1;Kh=ma&&(!document.documentMode||9<document.documentMode)}function $d(){Gi&&(Gi.detachEvent("onpropertychange",Gh),cs=Gi=null)}function Gh(t){if(t.propertyName==="value"&&Dl(cs)){var e=[];Qh(e,cs,t,rc(t)),Fh(D0,e)}}function A0(t,e,n){t==="focusin"?($d(),Gi=e,cs=n,Gi.attachEvent("onpropertychange",Gh)):t==="focusout"&&$d()}function T0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Dl(cs)}function L0(t,e){if(t==="click")return Dl(e)}function M0(t,e){if(t==="input"||t==="change")return Dl(e)}function R0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ut=typeof Object.is=="function"?Object.is:R0;function ds(t,e){if(Ut(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!ja.call(e,i)||!Ut(t[i],e[i]))return!1}return!0}function Wd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Hd(t,e){var n=Wd(t);t=0;for(var r;n;){if(n.nodeType===3){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Wd(n)}}function Jh(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Jh(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Xh(){for(var t=window,e=Fo();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Fo(t.document)}return e}function fc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function U0(t){var e=Xh(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&Jh(n.ownerDocument.documentElement,n)){if(r!==null&&fc(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!t.extend&&s>r&&(i=r,r=s,s=i),i=Hd(n,s);var o=Hd(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),s>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var P0=_n&&"documentMode"in document&&11>=document.documentMode,Vr=null,ou=null,Ji=null,lu=!1;function Yd(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lu||Vr==null||Vr!==Fo(r)||(r=Vr,"selectionStart"in r&&fc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ji&&ds(Ji,r)||(Ji=r,r=Lo(ou,"onSelect"),0<r.length&&(e=new uc("onSelect","select",null,e,n),t.push({event:e,listeners:r}),e.target=Vr)))}function Js(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var $r={animationend:Js("Animation","AnimationEnd"),animationiteration:Js("Animation","AnimationIteration"),animationstart:Js("Animation","AnimationStart"),transitionend:Js("Transition","TransitionEnd")},va={},Zh={};_n&&(Zh=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);function Cl(t){if(va[t])return va[t];if(!$r[t])return t;var e=$r[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Zh)return va[t]=e[n];return t}var qh=Cl("animationend"),ep=Cl("animationiteration"),tp=Cl("animationstart"),np=Cl("transitionend"),rp=new Map,Qd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function er(t,e){rp.set(t,e),Er(e,[t])}for(var wa=0;wa<Qd.length;wa++){var _a=Qd[wa],z0=_a.toLowerCase(),j0=_a[0].toUpperCase()+_a.slice(1);er(z0,"on"+j0)}er(qh,"onAnimationEnd");er(ep,"onAnimationIteration");er(tp,"onAnimationStart");er("dblclick","onDoubleClick");er("focusin","onFocus");er("focusout","onBlur");er(np,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);Er("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Er("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Er("onBeforeInput",["compositionend","keypress","textInput","paste"]);Er("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Er("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Er("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $i="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),V0=new Set("cancel close invalid load scroll toggle".split(" ").concat($i));function Kd(t,e,n){var r=t.type||"unknown-event";t.currentTarget=n,zg(r,e,void 0,t),t.currentTarget=null}function ip(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var r=t[n],i=r.event;r=r.listeners;e:{var s=void 0;if(e)for(var o=r.length-1;0<=o;o--){var l=r[o],a=l.instance,u=l.currentTarget;if(l=l.listener,a!==s&&i.isPropagationStopped())break e;Kd(i,l,u),s=a}else for(o=0;o<r.length;o++){if(l=r[o],a=l.instance,u=l.currentTarget,l=l.listener,a!==s&&i.isPropagationStopped())break e;Kd(i,l,u),s=a}}}if(Eo)throw t=nu,Eo=!1,nu=null,t}function ue(t,e){var n=e[fu];n===void 0&&(n=e[fu]=new Set);var r=t+"__bubble";n.has(r)||(sp(e,t,2,!1),n.add(r))}function Sa(t,e,n){var r=0;e&&(r|=4),sp(n,t,r,e)}var Xs="_reactListening"+Math.random().toString(36).slice(2);function fs(t){if(!t[Xs]){t[Xs]=!0,fh.forEach(function(n){n!=="selectionchange"&&(V0.has(n)||Sa(n,!1,t),Sa(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Xs]||(e[Xs]=!0,Sa("selectionchange",!1,e))}}function sp(t,e,n,r){switch(Vh(e)){case 1:var i=n0;break;case 4:i=r0;break;default:i=lc}n=i.bind(null,e,n,t),i=void 0,!tu||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),r?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function ba(t,e,n,r,i){var s=r;if(!(e&1)&&!(e&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===i||a.nodeType===8&&a.parentNode===i))return;o=o.return}for(;l!==null;){if(o=dr(l),o===null)return;if(a=o.tag,a===5||a===6){r=s=o;continue e}l=l.parentNode}}r=r.return}Fh(function(){var u=s,c=rc(n),d=[];e:{var h=rp.get(t);if(h!==void 0){var g=uc,v=t;switch(t){case"keypress":if(ho(n)===0)break e;case"keydown":case"keyup":g=v0;break;case"focusin":v="focus",g=ya;break;case"focusout":v="blur",g=ya;break;case"beforeblur":case"afterblur":g=ya;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Md;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=o0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=S0;break;case qh:case ep:case tp:g=u0;break;case np:g=I0;break;case"scroll":g=i0;break;case"wheel":g=x0;break;case"copy":case"cut":case"paste":g=d0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ud}var S=(e&4)!==0,J=!S&&t==="scroll",p=S?h!==null?h+"Capture":null:h;S=[];for(var f=u,m;f!==null;){m=f;var w=m.stateNode;if(m.tag===5&&w!==null&&(m=w,p!==null&&(w=os(f,p),w!=null&&S.push(hs(f,w,m)))),J)break;f=f.return}0<S.length&&(h=new g(h,v,null,n,c),d.push({event:h,listeners:S}))}}if(!(e&7)){e:{if(h=t==="mouseover"||t==="pointerover",g=t==="mouseout"||t==="pointerout",h&&n!==qa&&(v=n.relatedTarget||n.fromElement)&&(dr(v)||v[Sn]))break e;if((g||h)&&(h=c.window===c?c:(h=c.ownerDocument)?h.defaultView||h.parentWindow:window,g?(v=n.relatedTarget||n.toElement,g=u,v=v?dr(v):null,v!==null&&(J=Dr(v),v!==J||v.tag!==5&&v.tag!==6)&&(v=null)):(g=null,v=u),g!==v)){if(S=Md,w="onMouseLeave",p="onMouseEnter",f="mouse",(t==="pointerout"||t==="pointerover")&&(S=Ud,w="onPointerLeave",p="onPointerEnter",f="pointer"),J=g==null?h:Wr(g),m=v==null?h:Wr(v),h=new S(w,f+"leave",g,n,c),h.target=J,h.relatedTarget=m,w=null,dr(c)===u&&(S=new S(p,f+"enter",v,n,c),S.target=m,S.relatedTarget=J,w=S),J=w,g&&v)t:{for(S=g,p=v,f=0,m=S;m;m=Ar(m))f++;for(m=0,w=p;w;w=Ar(w))m++;for(;0<f-m;)S=Ar(S),f--;for(;0<m-f;)p=Ar(p),m--;for(;f--;){if(S===p||p!==null&&S===p.alternate)break t;S=Ar(S),p=Ar(p)}S=null}else S=null;g!==null&&Gd(d,h,g,S,!1),v!==null&&J!==null&&Gd(d,J,v,S,!0)}}e:{if(h=u?Wr(u):window,g=h.nodeName&&h.nodeName.toLowerCase(),g==="select"||g==="input"&&h.type==="file")var I=C0;else if(jd(h))if(Kh)I=M0;else{I=T0;var x=A0}else(g=h.nodeName)&&g.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(I=L0);if(I&&(I=I(t,u))){Qh(d,I,n,c);break e}x&&x(t,h,u),t==="focusout"&&(x=h._wrapperState)&&x.controlled&&h.type==="number"&&Ka(h,"number",h.value)}switch(x=u?Wr(u):window,t){case"focusin":(jd(x)||x.contentEditable==="true")&&(Vr=x,ou=u,Ji=null);break;case"focusout":Ji=ou=Vr=null;break;case"mousedown":lu=!0;break;case"contextmenu":case"mouseup":case"dragend":lu=!1,Yd(d,n,c);break;case"selectionchange":if(P0)break;case"keydown":case"keyup":Yd(d,n,c)}var B;if(dc)e:{switch(t){case"compositionstart":var F="onCompositionStart";break e;case"compositionend":F="onCompositionEnd";break e;case"compositionupdate":F="onCompositionUpdate";break e}F=void 0}else jr?Hh(t,n)&&(F="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(F="onCompositionStart");F&&(Wh&&n.locale!=="ko"&&(jr||F!=="onCompositionStart"?F==="onCompositionEnd"&&jr&&(B=$h()):(Mn=c,ac="value"in Mn?Mn.value:Mn.textContent,jr=!0)),x=Lo(u,F),0<x.length&&(F=new Rd(F,t,null,n,c),d.push({event:F,listeners:x}),B?F.data=B:(B=Yh(n),B!==null&&(F.data=B)))),(B=k0?F0(t,n):O0(t,n))&&(u=Lo(u,"onBeforeInput"),0<u.length&&(c=new Rd("onBeforeInput","beforeinput",null,n,c),d.push({event:c,listeners:u}),c.data=B))}ip(d,e)})}function hs(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lo(t,e){for(var n=e+"Capture",r=[];t!==null;){var i=t,s=i.stateNode;i.tag===5&&s!==null&&(i=s,s=os(t,n),s!=null&&r.unshift(hs(t,s,i)),s=os(t,e),s!=null&&r.push(hs(t,s,i))),t=t.return}return r}function Ar(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Gd(t,e,n,r,i){for(var s=e._reactName,o=[];n!==null&&n!==r;){var l=n,a=l.alternate,u=l.stateNode;if(a!==null&&a===r)break;l.tag===5&&u!==null&&(l=u,i?(a=os(n,s),a!=null&&o.unshift(hs(n,a,l))):i||(a=os(n,s),a!=null&&o.push(hs(n,a,l)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var $0=/\r\n?/g,W0=/\u0000|\uFFFD/g;function Jd(t){return(typeof t=="string"?t:""+t).replace($0,`
|
|
38
|
+
`).replace(W0,"")}function Zs(t,e,n){if(e=Jd(e),Jd(t)!==e&&n)throw Error(_(425))}function Mo(){}var au=null,uu=null;function cu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var du=typeof setTimeout=="function"?setTimeout:void 0,H0=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,Y0=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(t){return Xd.resolve(null).then(t).catch(Q0)}:du;function Q0(t){setTimeout(function(){throw t})}function Ia(t,e){var n=e,r=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){t.removeChild(i),us(e);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);us(e)}function jn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Zd(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"){if(e===0)return t;e--}else n==="/$"&&e++}t=t.previousSibling}return null}var Bi=Math.random().toString(36).slice(2),Yt="__reactFiber$"+Bi,ps="__reactProps$"+Bi,Sn="__reactContainer$"+Bi,fu="__reactEvents$"+Bi,K0="__reactListeners$"+Bi,G0="__reactHandles$"+Bi;function dr(t){var e=t[Yt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Sn]||n[Yt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=Zd(t);t!==null;){if(n=t[Yt])return n;t=Zd(t)}return e}t=n,n=t.parentNode}return null}function Ds(t){return t=t[Yt]||t[Sn],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Wr(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(_(33))}function Al(t){return t[ps]||null}var hu=[],Hr=-1;function tr(t){return{current:t}}function ce(t){0>Hr||(t.current=hu[Hr],hu[Hr]=null,Hr--)}function ae(t,e){Hr++,hu[Hr]=t.current,t.current=e}var Qn={},Pe=tr(Qn),qe=tr(!1),Nr=Qn;function ci(t,e){var n=t.type.contextTypes;if(!n)return Qn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=e[s];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function et(t){return t=t.childContextTypes,t!=null}function Ro(){ce(qe),ce(Pe)}function qd(t,e,n){if(Pe.current!==Qn)throw Error(_(168));ae(Pe,e),ae(qe,n)}function op(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(_(108,Ag(t)||"Unknown",i));return ge({},n,r)}function Uo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Qn,Nr=Pe.current,ae(Pe,t),ae(qe,qe.current),!0}function ef(t,e,n){var r=t.stateNode;if(!r)throw Error(_(169));n?(t=op(t,e,Nr),r.__reactInternalMemoizedMergedChildContext=t,ce(qe),ce(Pe),ae(Pe,t)):ce(qe),ae(qe,n)}var fn=null,Tl=!1,Na=!1;function lp(t){fn===null?fn=[t]:fn.push(t)}function J0(t){Tl=!0,lp(t)}function nr(){if(!Na&&fn!==null){Na=!0;var t=0,e=ne;try{var n=fn;for(ne=1;t<n.length;t++){var r=n[t];do r=r(!0);while(r!==null)}fn=null,Tl=!1}catch(i){throw fn!==null&&(fn=fn.slice(t+1)),Ch(ic,nr),i}finally{ne=e,Na=!1}}return null}var Yr=[],Qr=0,Po=null,zo=0,_t=[],St=0,xr=null,yn=1,mn="";function ur(t,e){Yr[Qr++]=zo,Yr[Qr++]=Po,Po=t,zo=e}function ap(t,e,n){_t[St++]=yn,_t[St++]=mn,_t[St++]=xr,xr=t;var r=yn;t=mn;var i=32-Lt(r)-1;r&=~(1<<i),n+=1;var s=32-Lt(e)+i;if(30<s){var o=i-i%5;s=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yn=1<<32-Lt(e)+i|n<<i|r,mn=s+t}else yn=1<<s|n<<i|r,mn=t}function hc(t){t.return!==null&&(ur(t,1),ap(t,1,0))}function pc(t){for(;t===Po;)Po=Yr[--Qr],Yr[Qr]=null,zo=Yr[--Qr],Yr[Qr]=null;for(;t===xr;)xr=_t[--St],_t[St]=null,mn=_t[--St],_t[St]=null,yn=_t[--St],_t[St]=null}var dt=null,ct=null,fe=!1,Tt=null;function up(t,e){var n=Nt(5,null,null,0);n.elementType="DELETED",n.stateNode=e,n.return=t,e=t.deletions,e===null?(t.deletions=[n],t.flags|=16):e.push(n)}function tf(t,e){switch(t.tag){case 5:var n=t.type;return e=e.nodeType!==1||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,dt=t,ct=jn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,dt=t,ct=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(n=xr!==null?{id:yn,overflow:mn}:null,t.memoizedState={dehydrated:e,treeContext:n,retryLane:1073741824},n=Nt(18,null,null,0),n.stateNode=e,n.return=t,t.child=n,dt=t,ct=null,!0):!1;default:return!1}}function pu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function yu(t){if(fe){var e=ct;if(e){var n=e;if(!tf(t,e)){if(pu(t))throw Error(_(418));e=jn(n.nextSibling);var r=dt;e&&tf(t,e)?up(r,n):(t.flags=t.flags&-4097|2,fe=!1,dt=t)}}else{if(pu(t))throw Error(_(418));t.flags=t.flags&-4097|2,fe=!1,dt=t}}}function nf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;dt=t}function qs(t){if(t!==dt)return!1;if(!fe)return nf(t),fe=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!cu(t.type,t.memoizedProps)),e&&(e=ct)){if(pu(t))throw cp(),Error(_(418));for(;e;)up(t,e),e=jn(e.nextSibling)}if(nf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(_(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"){if(e===0){ct=jn(t.nextSibling);break e}e--}else n!=="$"&&n!=="$!"&&n!=="$?"||e++}t=t.nextSibling}ct=null}}else ct=dt?jn(t.stateNode.nextSibling):null;return!0}function cp(){for(var t=ct;t;)t=jn(t.nextSibling)}function di(){ct=dt=null,fe=!1}function yc(t){Tt===null?Tt=[t]:Tt.push(t)}var X0=xn.ReactCurrentBatchConfig;function Mi(t,e,n){if(t=n.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(_(309));var r=n.stateNode}if(!r)throw Error(_(147,t));var i=r,s=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===s?e.ref:(e=function(o){var l=i.refs;o===null?delete l[s]:l[s]=o},e._stringRef=s,e)}if(typeof t!="string")throw Error(_(284));if(!n._owner)throw Error(_(290,t))}return t}function eo(t,e){throw t=Object.prototype.toString.call(e),Error(_(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function rf(t){var e=t._init;return e(t._payload)}function dp(t){function e(p,f){if(t){var m=p.deletions;m===null?(p.deletions=[f],p.flags|=16):m.push(f)}}function n(p,f){if(!t)return null;for(;f!==null;)e(p,f),f=f.sibling;return null}function r(p,f){for(p=new Map;f!==null;)f.key!==null?p.set(f.key,f):p.set(f.index,f),f=f.sibling;return p}function i(p,f){return p=Hn(p,f),p.index=0,p.sibling=null,p}function s(p,f,m){return p.index=m,t?(m=p.alternate,m!==null?(m=m.index,m<f?(p.flags|=2,f):m):(p.flags|=2,f)):(p.flags|=1048576,f)}function o(p){return t&&p.alternate===null&&(p.flags|=2),p}function l(p,f,m,w){return f===null||f.tag!==6?(f=Da(m,p.mode,w),f.return=p,f):(f=i(f,m),f.return=p,f)}function a(p,f,m,w){var I=m.type;return I===zr?c(p,f,m.props.children,w,m.key):f!==null&&(f.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===En&&rf(I)===f.type)?(w=i(f,m.props),w.ref=Mi(p,f,m),w.return=p,w):(w=_o(m.type,m.key,m.props,null,p.mode,w),w.ref=Mi(p,f,m),w.return=p,w)}function u(p,f,m,w){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Ca(m,p.mode,w),f.return=p,f):(f=i(f,m.children||[]),f.return=p,f)}function c(p,f,m,w,I){return f===null||f.tag!==7?(f=Sr(m,p.mode,w,I),f.return=p,f):(f=i(f,m),f.return=p,f)}function d(p,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Da(""+f,p.mode,m),f.return=p,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case $s:return m=_o(f.type,f.key,f.props,null,p.mode,m),m.ref=Mi(p,null,f),m.return=p,m;case Pr:return f=Ca(f,p.mode,m),f.return=p,f;case En:var w=f._init;return d(p,w(f._payload),m)}if(ji(f)||Di(f))return f=Sr(f,p.mode,m,null),f.return=p,f;eo(p,f)}return null}function h(p,f,m,w){var I=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return I!==null?null:l(p,f,""+m,w);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case $s:return m.key===I?a(p,f,m,w):null;case Pr:return m.key===I?u(p,f,m,w):null;case En:return I=m._init,h(p,f,I(m._payload),w)}if(ji(m)||Di(m))return I!==null?null:c(p,f,m,w,null);eo(p,m)}return null}function g(p,f,m,w,I){if(typeof w=="string"&&w!==""||typeof w=="number")return p=p.get(m)||null,l(f,p,""+w,I);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case $s:return p=p.get(w.key===null?m:w.key)||null,a(f,p,w,I);case Pr:return p=p.get(w.key===null?m:w.key)||null,u(f,p,w,I);case En:var x=w._init;return g(p,f,m,x(w._payload),I)}if(ji(w)||Di(w))return p=p.get(m)||null,c(f,p,w,I,null);eo(f,w)}return null}function v(p,f,m,w){for(var I=null,x=null,B=f,F=f=0,we=null;B!==null&&F<m.length;F++){B.index>F?(we=B,B=null):we=B.sibling;var W=h(p,B,m[F],w);if(W===null){B===null&&(B=we);break}t&&B&&W.alternate===null&&e(p,B),f=s(W,f,F),x===null?I=W:x.sibling=W,x=W,B=we}if(F===m.length)return n(p,B),fe&&ur(p,F),I;if(B===null){for(;F<m.length;F++)B=d(p,m[F],w),B!==null&&(f=s(B,f,F),x===null?I=B:x.sibling=B,x=B);return fe&&ur(p,F),I}for(B=r(p,B);F<m.length;F++)we=g(B,p,F,m[F],w),we!==null&&(t&&we.alternate!==null&&B.delete(we.key===null?F:we.key),f=s(we,f,F),x===null?I=we:x.sibling=we,x=we);return t&&B.forEach(function(Ot){return e(p,Ot)}),fe&&ur(p,F),I}function S(p,f,m,w){var I=Di(m);if(typeof I!="function")throw Error(_(150));if(m=I.call(m),m==null)throw Error(_(151));for(var x=I=null,B=f,F=f=0,we=null,W=m.next();B!==null&&!W.done;F++,W=m.next()){B.index>F?(we=B,B=null):we=B.sibling;var Ot=h(p,B,W.value,w);if(Ot===null){B===null&&(B=we);break}t&&B&&Ot.alternate===null&&e(p,B),f=s(Ot,f,F),x===null?I=Ot:x.sibling=Ot,x=Ot,B=we}if(W.done)return n(p,B),fe&&ur(p,F),I;if(B===null){for(;!W.done;F++,W=m.next())W=d(p,W.value,w),W!==null&&(f=s(W,f,F),x===null?I=W:x.sibling=W,x=W);return fe&&ur(p,F),I}for(B=r(p,B);!W.done;F++,W=m.next())W=g(B,p,F,W.value,w),W!==null&&(t&&W.alternate!==null&&B.delete(W.key===null?F:W.key),f=s(W,f,F),x===null?I=W:x.sibling=W,x=W);return t&&B.forEach(function(Oi){return e(p,Oi)}),fe&&ur(p,F),I}function J(p,f,m,w){if(typeof m=="object"&&m!==null&&m.type===zr&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case $s:e:{for(var I=m.key,x=f;x!==null;){if(x.key===I){if(I=m.type,I===zr){if(x.tag===7){n(p,x.sibling),f=i(x,m.props.children),f.return=p,p=f;break e}}else if(x.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===En&&rf(I)===x.type){n(p,x.sibling),f=i(x,m.props),f.ref=Mi(p,x,m),f.return=p,p=f;break e}n(p,x);break}else e(p,x);x=x.sibling}m.type===zr?(f=Sr(m.props.children,p.mode,w,m.key),f.return=p,p=f):(w=_o(m.type,m.key,m.props,null,p.mode,w),w.ref=Mi(p,f,m),w.return=p,p=w)}return o(p);case Pr:e:{for(x=m.key;f!==null;){if(f.key===x)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){n(p,f.sibling),f=i(f,m.children||[]),f.return=p,p=f;break e}else{n(p,f);break}else e(p,f);f=f.sibling}f=Ca(m,p.mode,w),f.return=p,p=f}return o(p);case En:return x=m._init,J(p,f,x(m._payload),w)}if(ji(m))return v(p,f,m,w);if(Di(m))return S(p,f,m,w);eo(p,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(n(p,f.sibling),f=i(f,m),f.return=p,p=f):(n(p,f),f=Da(m,p.mode,w),f.return=p,p=f),o(p)):n(p,f)}return J}var fi=dp(!0),fp=dp(!1),jo=tr(null),Vo=null,Kr=null,mc=null;function gc(){mc=Kr=Vo=null}function vc(t){var e=jo.current;ce(jo),t._currentValue=e}function mu(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function ni(t,e){Vo=t,mc=Kr=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(Ze=!0),t.firstContext=null)}function Bt(t){var e=t._currentValue;if(mc!==t)if(t={context:t,memoizedValue:e,next:null},Kr===null){if(Vo===null)throw Error(_(308));Kr=t,Vo.dependencies={lanes:0,firstContext:t}}else Kr=Kr.next=t;return e}var fr=null;function wc(t){fr===null?fr=[t]:fr.push(t)}function hp(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,wc(e)):(n.next=i.next,i.next=n),e.interleaved=n,bn(t,r)}function bn(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Dn=!1;function _c(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pp(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function gn(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Vn(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,Q&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,bn(t,n)}return i=r.interleaved,i===null?(e.next=e,wc(r)):(e.next=i.next,i.next=e),r.interleaved=e,bn(t,n)}function po(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sc(t,n)}}function sf(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,s=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};s===null?i=s=o:s=s.next=o,n=n.next}while(n!==null);s===null?i=s=e:s=s.next=e}else i=s=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:s,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function $o(t,e,n,r){var i=t.updateQueue;Dn=!1;var s=i.firstBaseUpdate,o=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var a=l,u=a.next;a.next=null,o===null?s=u:o.next=u,o=a;var c=t.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==o&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(s!==null){var d=i.baseState;o=0,c=u=a=null,l=s;do{var h=l.lane,g=l.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var v=t,S=l;switch(h=e,g=n,S.tag){case 1:if(v=S.payload,typeof v=="function"){d=v.call(g,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=S.payload,h=typeof v=="function"?v.call(g,d,h):v,h==null)break e;d=ge({},d,h);break e;case 2:Dn=!0}}l.callback!==null&&l.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[l]:h.push(l))}else g={eventTime:g,lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=g,a=d):c=c.next=g,o|=h;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;h=l,l=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(a=d),i.baseState=a,i.firstBaseUpdate=u,i.lastBaseUpdate=c,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else s===null&&(i.shared.lanes=0);kr|=o,t.lanes=o,t.memoizedState=d}}function of(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var r=t[e],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(_(191,i));i.call(r)}}}var Cs={},nn=tr(Cs),ys=tr(Cs),ms=tr(Cs);function hr(t){if(t===Cs)throw Error(_(174));return t}function Sc(t,e){switch(ae(ms,e),ae(ys,t),ae(nn,Cs),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ja(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ja(e,t)}ce(nn),ae(nn,e)}function hi(){ce(nn),ce(ys),ce(ms)}function yp(t){hr(ms.current);var e=hr(nn.current),n=Ja(e,t.type);e!==n&&(ae(ys,t),ae(nn,n))}function bc(t){ys.current===t&&(ce(nn),ce(ys))}var pe=tr(0);function Wo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var xa=[];function Ic(){for(var t=0;t<xa.length;t++)xa[t]._workInProgressVersionPrimary=null;xa.length=0}var yo=xn.ReactCurrentDispatcher,Ba=xn.ReactCurrentBatchConfig,Br=0,me=null,Ne=null,Oe=null,Ho=!1,Xi=!1,gs=0,Z0=0;function Me(){throw Error(_(321))}function Nc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Ut(t[n],e[n]))return!1;return!0}function xc(t,e,n,r,i,s){if(Br=s,me=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,yo.current=t===null||t.memoizedState===null?nv:rv,t=n(r,i),Xi){s=0;do{if(Xi=!1,gs=0,25<=s)throw Error(_(301));s+=1,Oe=Ne=null,e.updateQueue=null,yo.current=iv,t=n(r,i)}while(Xi)}if(yo.current=Yo,e=Ne!==null&&Ne.next!==null,Br=0,Oe=Ne=me=null,Ho=!1,e)throw Error(_(300));return t}function Bc(){var t=gs!==0;return gs=0,t}function $t(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Oe===null?me.memoizedState=Oe=t:Oe=Oe.next=t,Oe}function kt(){if(Ne===null){var t=me.alternate;t=t!==null?t.memoizedState:null}else t=Ne.next;var e=Oe===null?me.memoizedState:Oe.next;if(e!==null)Oe=e,Ne=t;else{if(t===null)throw Error(_(310));Ne=t,t={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Oe===null?me.memoizedState=Oe=t:Oe=Oe.next=t}return Oe}function vs(t,e){return typeof e=="function"?e(t):e}function ka(t){var e=kt(),n=e.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=t;var r=Ne,i=r.baseQueue,s=n.pending;if(s!==null){if(i!==null){var o=i.next;i.next=s.next,s.next=o}r.baseQueue=i=s,n.pending=null}if(i!==null){s=i.next,r=r.baseState;var l=o=null,a=null,u=s;do{var c=u.lane;if((Br&c)===c)a!==null&&(a=a.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:t(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};a===null?(l=a=d,o=r):a=a.next=d,me.lanes|=c,kr|=c}u=u.next}while(u!==null&&u!==s);a===null?o=r:a.next=l,Ut(r,e.memoizedState)||(Ze=!0),e.memoizedState=r,e.baseState=o,e.baseQueue=a,n.lastRenderedState=r}if(t=n.interleaved,t!==null){i=t;do s=i.lane,me.lanes|=s,kr|=s,i=i.next;while(i!==t)}else i===null&&(n.lanes=0);return[e.memoizedState,n.dispatch]}function Fa(t){var e=kt(),n=e.queue;if(n===null)throw Error(_(311));n.lastRenderedReducer=t;var r=n.dispatch,i=n.pending,s=e.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do s=t(s,o.action),o=o.next;while(o!==i);Ut(s,e.memoizedState)||(Ze=!0),e.memoizedState=s,e.baseQueue===null&&(e.baseState=s),n.lastRenderedState=s}return[s,r]}function mp(){}function gp(t,e){var n=me,r=kt(),i=e(),s=!Ut(r.memoizedState,i);if(s&&(r.memoizedState=i,Ze=!0),r=r.queue,kc(_p.bind(null,n,r,t),[t]),r.getSnapshot!==e||s||Oe!==null&&Oe.memoizedState.tag&1){if(n.flags|=2048,ws(9,wp.bind(null,n,r,i,e),void 0,null),Ee===null)throw Error(_(349));Br&30||vp(n,e,i)}return i}function vp(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=me.updateQueue,e===null?(e={lastEffect:null,stores:null},me.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function wp(t,e,n,r){e.value=n,e.getSnapshot=r,Sp(e)&&bp(t)}function _p(t,e,n){return n(function(){Sp(e)&&bp(t)})}function Sp(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!Ut(t,n)}catch{return!0}}function bp(t){var e=bn(t,1);e!==null&&Mt(e,t,1,-1)}function lf(t){var e=$t();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:t},e.queue=t,t=t.dispatch=tv.bind(null,me,t),[e.memoizedState,t]}function ws(t,e,n,r){return t={tag:t,create:e,destroy:n,deps:r,next:null},e=me.updateQueue,e===null?(e={lastEffect:null,stores:null},me.updateQueue=e,e.lastEffect=t.next=t):(n=e.lastEffect,n===null?e.lastEffect=t.next=t:(r=n.next,n.next=t,t.next=r,e.lastEffect=t)),t}function Ip(){return kt().memoizedState}function mo(t,e,n,r){var i=$t();me.flags|=t,i.memoizedState=ws(1|e,n,void 0,r===void 0?null:r)}function Ll(t,e,n,r){var i=kt();r=r===void 0?null:r;var s=void 0;if(Ne!==null){var o=Ne.memoizedState;if(s=o.destroy,r!==null&&Nc(r,o.deps)){i.memoizedState=ws(e,n,s,r);return}}me.flags|=t,i.memoizedState=ws(1|e,n,s,r)}function af(t,e){return mo(8390656,8,t,e)}function kc(t,e){return Ll(2048,8,t,e)}function Np(t,e){return Ll(4,2,t,e)}function xp(t,e){return Ll(4,4,t,e)}function Bp(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function kp(t,e,n){return n=n!=null?n.concat([t]):null,Ll(4,4,Bp.bind(null,e,t),n)}function Fc(){}function Fp(t,e){var n=kt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Nc(e,r[1])?r[0]:(n.memoizedState=[t,e],t)}function Op(t,e){var n=kt();e=e===void 0?null:e;var r=n.memoizedState;return r!==null&&e!==null&&Nc(e,r[1])?r[0]:(t=t(),n.memoizedState=[t,e],t)}function Ep(t,e,n){return Br&21?(Ut(n,e)||(n=Lh(),me.lanes|=n,kr|=n,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,Ze=!0),t.memoizedState=n)}function q0(t,e){var n=ne;ne=n!==0&&4>n?n:4,t(!0);var r=Ba.transition;Ba.transition={};try{t(!1),e()}finally{ne=n,Ba.transition=r}}function Dp(){return kt().memoizedState}function ev(t,e,n){var r=Wn(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Cp(t))Ap(e,n);else if(n=hp(t,e,n,r),n!==null){var i=We();Mt(n,t,r,i),Tp(n,e,r)}}function tv(t,e,n){var r=Wn(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Cp(t))Ap(e,i);else{var s=t.alternate;if(t.lanes===0&&(s===null||s.lanes===0)&&(s=e.lastRenderedReducer,s!==null))try{var o=e.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,Ut(l,o)){var a=e.interleaved;a===null?(i.next=i,wc(e)):(i.next=a.next,a.next=i),e.interleaved=i;return}}catch{}finally{}n=hp(t,e,i,r),n!==null&&(i=We(),Mt(n,t,r,i),Tp(n,e,r))}}function Cp(t){var e=t.alternate;return t===me||e!==null&&e===me}function Ap(t,e){Xi=Ho=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Tp(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,sc(t,n)}}var Yo={readContext:Bt,useCallback:Me,useContext:Me,useEffect:Me,useImperativeHandle:Me,useInsertionEffect:Me,useLayoutEffect:Me,useMemo:Me,useReducer:Me,useRef:Me,useState:Me,useDebugValue:Me,useDeferredValue:Me,useTransition:Me,useMutableSource:Me,useSyncExternalStore:Me,useId:Me,unstable_isNewReconciler:!1},nv={readContext:Bt,useCallback:function(t,e){return $t().memoizedState=[t,e===void 0?null:e],t},useContext:Bt,useEffect:af,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,mo(4194308,4,Bp.bind(null,e,t),n)},useLayoutEffect:function(t,e){return mo(4194308,4,t,e)},useInsertionEffect:function(t,e){return mo(4,2,t,e)},useMemo:function(t,e){var n=$t();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=$t();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=ev.bind(null,me,t),[r.memoizedState,t]},useRef:function(t){var e=$t();return t={current:t},e.memoizedState=t},useState:lf,useDebugValue:Fc,useDeferredValue:function(t){return $t().memoizedState=t},useTransition:function(){var t=lf(!1),e=t[0];return t=q0.bind(null,t[1]),$t().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=me,i=$t();if(fe){if(n===void 0)throw Error(_(407));n=n()}else{if(n=e(),Ee===null)throw Error(_(349));Br&30||vp(r,e,n)}i.memoizedState=n;var s={value:n,getSnapshot:e};return i.queue=s,af(_p.bind(null,r,s,t),[t]),r.flags|=2048,ws(9,wp.bind(null,r,s,n,e),void 0,null),n},useId:function(){var t=$t(),e=Ee.identifierPrefix;if(fe){var n=mn,r=yn;n=(r&~(1<<32-Lt(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=gs++,0<n&&(e+="H"+n.toString(32)),e+=":"}else n=Z0++,e=":"+e+"r"+n.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},rv={readContext:Bt,useCallback:Fp,useContext:Bt,useEffect:kc,useImperativeHandle:kp,useInsertionEffect:Np,useLayoutEffect:xp,useMemo:Op,useReducer:ka,useRef:Ip,useState:function(){return ka(vs)},useDebugValue:Fc,useDeferredValue:function(t){var e=kt();return Ep(e,Ne.memoizedState,t)},useTransition:function(){var t=ka(vs)[0],e=kt().memoizedState;return[t,e]},useMutableSource:mp,useSyncExternalStore:gp,useId:Dp,unstable_isNewReconciler:!1},iv={readContext:Bt,useCallback:Fp,useContext:Bt,useEffect:kc,useImperativeHandle:kp,useInsertionEffect:Np,useLayoutEffect:xp,useMemo:Op,useReducer:Fa,useRef:Ip,useState:function(){return Fa(vs)},useDebugValue:Fc,useDeferredValue:function(t){var e=kt();return Ne===null?e.memoizedState=t:Ep(e,Ne.memoizedState,t)},useTransition:function(){var t=Fa(vs)[0],e=kt().memoizedState;return[t,e]},useMutableSource:mp,useSyncExternalStore:gp,useId:Dp,unstable_isNewReconciler:!1};function Dt(t,e){if(t&&t.defaultProps){e=ge({},e),t=t.defaultProps;for(var n in t)e[n]===void 0&&(e[n]=t[n]);return e}return e}function gu(t,e,n,r){e=t.memoizedState,n=n(r,e),n=n==null?e:ge({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Ml={isMounted:function(t){return(t=t._reactInternals)?Dr(t)===t:!1},enqueueSetState:function(t,e,n){t=t._reactInternals;var r=We(),i=Wn(t),s=gn(r,i);s.payload=e,n!=null&&(s.callback=n),e=Vn(t,s,i),e!==null&&(Mt(e,t,i,r),po(e,t,i))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var r=We(),i=Wn(t),s=gn(r,i);s.tag=1,s.payload=e,n!=null&&(s.callback=n),e=Vn(t,s,i),e!==null&&(Mt(e,t,i,r),po(e,t,i))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=We(),r=Wn(t),i=gn(n,r);i.tag=2,e!=null&&(i.callback=e),e=Vn(t,i,r),e!==null&&(Mt(e,t,r,n),po(e,t,r))}};function uf(t,e,n,r,i,s,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(r,s,o):e.prototype&&e.prototype.isPureReactComponent?!ds(n,r)||!ds(i,s):!0}function Lp(t,e,n){var r=!1,i=Qn,s=e.contextType;return typeof s=="object"&&s!==null?s=Bt(s):(i=et(e)?Nr:Pe.current,r=e.contextTypes,s=(r=r!=null)?ci(t,i):Qn),e=new e(n,s),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=Ml,t.stateNode=e,e._reactInternals=t,r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=s),e}function cf(t,e,n,r){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,r),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ml.enqueueReplaceState(e,e.state,null)}function vu(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs={},_c(t);var s=e.contextType;typeof s=="object"&&s!==null?i.context=Bt(s):(s=et(e)?Nr:Pe.current,i.context=ci(t,s)),i.state=t.memoizedState,s=e.getDerivedStateFromProps,typeof s=="function"&&(gu(t,e,s,n),i.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(e=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),e!==i.state&&Ml.enqueueReplaceState(i,i.state,null),$o(t,n,i,r),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308)}function pi(t,e){try{var n="",r=e;do n+=Cg(r),r=r.return;while(r);var i=n}catch(s){i=`
|
|
39
|
+
Error generating stack: `+s.message+`
|
|
40
|
+
`+s.stack}return{value:t,source:e,stack:i,digest:null}}function Oa(t,e,n){return{value:t,source:null,stack:n??null,digest:e??null}}function wu(t,e){try{console.error(e.value)}catch(n){setTimeout(function(){throw n})}}var sv=typeof WeakMap=="function"?WeakMap:Map;function Mp(t,e,n){n=gn(-1,n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ko||(Ko=!0,Ou=r),wu(t,e)},n}function Rp(t,e,n){n=gn(-1,n),n.tag=3;var r=t.type.getDerivedStateFromError;if(typeof r=="function"){var i=e.value;n.payload=function(){return r(i)},n.callback=function(){wu(t,e)}}var s=t.stateNode;return s!==null&&typeof s.componentDidCatch=="function"&&(n.callback=function(){wu(t,e),typeof r!="function"&&($n===null?$n=new Set([this]):$n.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),n}function df(t,e,n){var r=t.pingCache;if(r===null){r=t.pingCache=new sv;var i=new Set;r.set(e,i)}else i=r.get(e),i===void 0&&(i=new Set,r.set(e,i));i.has(n)||(i.add(n),t=wv.bind(null,t,e,n),e.then(t,t))}function ff(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function hf(t,e,n,r,i){return t.mode&1?(t.flags|=65536,t.lanes=i,t):(t===e?t.flags|=65536:(t.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(e=gn(-1,1),e.tag=2,Vn(n,e,1))),n.lanes|=1),t)}var ov=xn.ReactCurrentOwner,Ze=!1;function ze(t,e,n,r){e.child=t===null?fp(e,null,n,r):fi(e,t.child,n,r)}function pf(t,e,n,r,i){n=n.render;var s=e.ref;return ni(e,i),r=xc(t,e,n,r,s,i),n=Bc(),t!==null&&!Ze?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,In(t,e,i)):(fe&&n&&hc(e),e.flags|=1,ze(t,e,r,i),e.child)}function yf(t,e,n,r,i){if(t===null){var s=n.type;return typeof s=="function"&&!Mc(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(e.tag=15,e.type=s,Up(t,e,s,r,i)):(t=_o(n.type,null,r,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(s=t.child,!(t.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:ds,n(o,r)&&t.ref===e.ref)return In(t,e,i)}return e.flags|=1,t=Hn(s,r),t.ref=e.ref,t.return=e,e.child=t}function Up(t,e,n,r,i){if(t!==null){var s=t.memoizedProps;if(ds(s,r)&&t.ref===e.ref)if(Ze=!1,e.pendingProps=r=s,(t.lanes&i)!==0)t.flags&131072&&(Ze=!0);else return e.lanes=t.lanes,In(t,e,i)}return _u(t,e,n,r,i)}function Pp(t,e,n){var r=e.pendingProps,i=r.children,s=t!==null?t.memoizedState:null;if(r.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},ae(Jr,lt),lt|=n;else{if(!(n&1073741824))return t=s!==null?s.baseLanes|n:n,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,ae(Jr,lt),lt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,ae(Jr,lt),lt|=r}else s!==null?(r=s.baseLanes|n,e.memoizedState=null):r=n,ae(Jr,lt),lt|=r;return ze(t,e,i,n),e.child}function zp(t,e){var n=e.ref;(t===null&&n!==null||t!==null&&t.ref!==n)&&(e.flags|=512,e.flags|=2097152)}function _u(t,e,n,r,i){var s=et(n)?Nr:Pe.current;return s=ci(e,s),ni(e,i),n=xc(t,e,n,r,s,i),r=Bc(),t!==null&&!Ze?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~i,In(t,e,i)):(fe&&r&&hc(e),e.flags|=1,ze(t,e,n,i),e.child)}function mf(t,e,n,r,i){if(et(n)){var s=!0;Uo(e)}else s=!1;if(ni(e,i),e.stateNode===null)go(t,e),Lp(e,n,r),vu(e,n,r,i),r=!0;else if(t===null){var o=e.stateNode,l=e.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Bt(u):(u=et(n)?Nr:Pe.current,u=ci(e,u));var c=n.getDerivedStateFromProps,d=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&cf(e,o,r,u),Dn=!1;var h=e.memoizedState;o.state=h,$o(e,r,o,i),a=e.memoizedState,l!==r||h!==a||qe.current||Dn?(typeof c=="function"&&(gu(e,n,c,r),a=e.memoizedState),(l=Dn||uf(e,n,l,r,h,a,u))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=r,e.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),r=!1)}else{o=e.stateNode,pp(t,e),l=e.memoizedProps,u=e.type===e.elementType?l:Dt(e.type,l),o.props=u,d=e.pendingProps,h=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Bt(a):(a=et(n)?Nr:Pe.current,a=ci(e,a));var g=n.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==d||h!==a)&&cf(e,o,r,a),Dn=!1,h=e.memoizedState,o.state=h,$o(e,r,o,i);var v=e.memoizedState;l!==d||h!==v||qe.current||Dn?(typeof g=="function"&&(gu(e,n,g,r),v=e.memoizedState),(u=Dn||uf(e,n,u,r,h,v,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,v,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,v,a)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=r,e.memoizedState=v),o.props=r,o.state=v,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),r=!1)}return Su(t,e,n,r,s,i)}function Su(t,e,n,r,i,s){zp(t,e);var o=(e.flags&128)!==0;if(!r&&!o)return i&&ef(e,n,!1),In(t,e,s);r=e.stateNode,ov.current=e;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return e.flags|=1,t!==null&&o?(e.child=fi(e,t.child,null,s),e.child=fi(e,null,l,s)):ze(t,e,l,s),e.memoizedState=r.state,i&&ef(e,n,!0),e.child}function jp(t){var e=t.stateNode;e.pendingContext?qd(t,e.pendingContext,e.pendingContext!==e.context):e.context&&qd(t,e.context,!1),Sc(t,e.containerInfo)}function gf(t,e,n,r,i){return di(),yc(i),e.flags|=256,ze(t,e,n,r),e.child}var bu={dehydrated:null,treeContext:null,retryLane:0};function Iu(t){return{baseLanes:t,cachePool:null,transitions:null}}function Vp(t,e,n){var r=e.pendingProps,i=pe.current,s=!1,o=(e.flags&128)!==0,l;if((l=o)||(l=t!==null&&t.memoizedState===null?!1:(i&2)!==0),l?(s=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(i|=1),ae(pe,i&1),t===null)return yu(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=r.children,t=r.fallback,s?(r=e.mode,s=e.child,o={mode:"hidden",children:o},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=o):s=Pl(o,r,0,null),t=Sr(t,r,n,null),s.return=e,t.return=e,s.sibling=t,e.child=s,e.child.memoizedState=Iu(n),e.memoizedState=bu,t):Oc(e,o));if(i=t.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return lv(t,e,o,r,l,i,n);if(s){s=r.fallback,o=e.mode,i=t.child,l=i.sibling;var a={mode:"hidden",children:r.children};return!(o&1)&&e.child!==i?(r=e.child,r.childLanes=0,r.pendingProps=a,e.deletions=null):(r=Hn(i,a),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?s=Hn(l,s):(s=Sr(s,o,n,null),s.flags|=2),s.return=e,r.return=e,r.sibling=s,e.child=r,r=s,s=e.child,o=t.child.memoizedState,o=o===null?Iu(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},s.memoizedState=o,s.childLanes=t.childLanes&~n,e.memoizedState=bu,r}return s=t.child,t=s.sibling,r=Hn(s,{mode:"visible",children:r.children}),!(e.mode&1)&&(r.lanes=n),r.return=e,r.sibling=null,t!==null&&(n=e.deletions,n===null?(e.deletions=[t],e.flags|=16):n.push(t)),e.child=r,e.memoizedState=null,r}function Oc(t,e){return e=Pl({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function to(t,e,n,r){return r!==null&&yc(r),fi(e,t.child,null,n),t=Oc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function lv(t,e,n,r,i,s,o){if(n)return e.flags&256?(e.flags&=-257,r=Oa(Error(_(422))),to(t,e,o,r)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(s=r.fallback,i=e.mode,r=Pl({mode:"visible",children:r.children},i,0,null),s=Sr(s,i,o,null),s.flags|=2,r.return=e,s.return=e,r.sibling=s,e.child=r,e.mode&1&&fi(e,t.child,null,o),e.child.memoizedState=Iu(o),e.memoizedState=bu,s);if(!(e.mode&1))return to(t,e,o,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,s=Error(_(419)),r=Oa(s,r,void 0),to(t,e,o,r)}if(l=(o&t.childLanes)!==0,Ze||l){if(r=Ee,r!==null){switch(o&-o){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|o)?0:i,i!==0&&i!==s.retryLane&&(s.retryLane=i,bn(t,i),Mt(r,t,i,-1))}return Lc(),r=Oa(Error(_(421))),to(t,e,o,r)}return i.data==="$?"?(e.flags|=128,e.child=t.child,e=_v.bind(null,t),i._reactRetry=e,null):(t=s.treeContext,ct=jn(i.nextSibling),dt=e,fe=!0,Tt=null,t!==null&&(_t[St++]=yn,_t[St++]=mn,_t[St++]=xr,yn=t.id,mn=t.overflow,xr=e),e=Oc(e,r.children),e.flags|=4096,e)}function vf(t,e,n){t.lanes|=e;var r=t.alternate;r!==null&&(r.lanes|=e),mu(t.return,e,n)}function Ea(t,e,n,r,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function $p(t,e,n){var r=e.pendingProps,i=r.revealOrder,s=r.tail;if(ze(t,e,r.children,n),r=pe.current,r&2)r=r&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&vf(t,n,e);else if(t.tag===19)vf(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}r&=1}if(ae(pe,r),!(e.mode&1))e.memoizedState=null;else switch(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&Wo(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),Ea(e,!1,i,n,s);break;case"backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&Wo(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}Ea(e,!0,n,null,s);break;case"together":Ea(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function go(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function In(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),kr|=e.lanes,!(n&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(_(153));if(e.child!==null){for(t=e.child,n=Hn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=Hn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function av(t,e,n){switch(e.tag){case 3:jp(e),di();break;case 5:yp(e);break;case 1:et(e.type)&&Uo(e);break;case 4:Sc(e,e.stateNode.containerInfo);break;case 10:var r=e.type._context,i=e.memoizedProps.value;ae(jo,r._currentValue),r._currentValue=i;break;case 13:if(r=e.memoizedState,r!==null)return r.dehydrated!==null?(ae(pe,pe.current&1),e.flags|=128,null):n&e.child.childLanes?Vp(t,e,n):(ae(pe,pe.current&1),t=In(t,e,n),t!==null?t.sibling:null);ae(pe,pe.current&1);break;case 19:if(r=(n&e.childLanes)!==0,t.flags&128){if(r)return $p(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),ae(pe,pe.current),r)break;return null;case 22:case 23:return e.lanes=0,Pp(t,e,n)}return In(t,e,n)}var Wp,Nu,Hp,Yp;Wp=function(t,e){for(var n=e.child;n!==null;){if(n.tag===5||n.tag===6)t.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Nu=function(){};Hp=function(t,e,n,r){var i=t.memoizedProps;if(i!==r){t=e.stateNode,hr(nn.current);var s=null;switch(n){case"input":i=Ya(t,i),r=Ya(t,r),s=[];break;case"select":i=ge({},i,{value:void 0}),r=ge({},r,{value:void 0}),s=[];break;case"textarea":i=Ga(t,i),r=Ga(t,r),s=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(t.onclick=Mo)}Xa(n,r);var o;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(is.hasOwnProperty(u)?s||(s=[]):(s=s||[]).push(u,null));for(u in r){var a=r[u];if(l=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&a!==l&&(a!=null||l!=null))if(u==="style")if(l){for(o in l)!l.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in a)a.hasOwnProperty(o)&&l[o]!==a[o]&&(n||(n={}),n[o]=a[o])}else n||(s||(s=[]),s.push(u,n)),n=a;else u==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(s=s||[]).push(u,a)):u==="children"?typeof a!="string"&&typeof a!="number"||(s=s||[]).push(u,""+a):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(is.hasOwnProperty(u)?(a!=null&&u==="onScroll"&&ue("scroll",t),s||l===a||(s=[])):(s=s||[]).push(u,a))}n&&(s=s||[]).push("style",n);var u=s;(e.updateQueue=u)&&(e.flags|=4)}};Yp=function(t,e,n,r){n!==r&&(e.flags|=4)};function Ri(t,e){if(!fe)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:r.sibling=null}}function Re(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,r=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=r,t.childLanes=n,e}function uv(t,e,n){var r=e.pendingProps;switch(pc(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Re(e),null;case 1:return et(e.type)&&Ro(),Re(e),null;case 3:return r=e.stateNode,hi(),ce(qe),ce(Pe),Ic(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(t===null||t.child===null)&&(qs(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Tt!==null&&(Cu(Tt),Tt=null))),Nu(t,e),Re(e),null;case 5:bc(e);var i=hr(ms.current);if(n=e.type,t!==null&&e.stateNode!=null)Hp(t,e,n,r,i),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!r){if(e.stateNode===null)throw Error(_(166));return Re(e),null}if(t=hr(nn.current),qs(e)){r=e.stateNode,n=e.type;var s=e.memoizedProps;switch(r[Yt]=e,r[ps]=s,t=(e.mode&1)!==0,n){case"dialog":ue("cancel",r),ue("close",r);break;case"iframe":case"object":case"embed":ue("load",r);break;case"video":case"audio":for(i=0;i<$i.length;i++)ue($i[i],r);break;case"source":ue("error",r);break;case"img":case"image":case"link":ue("error",r),ue("load",r);break;case"details":ue("toggle",r);break;case"input":Bd(r,s),ue("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!s.multiple},ue("invalid",r);break;case"textarea":Fd(r,s),ue("invalid",r)}Xa(n,s),i=null;for(var o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="children"?typeof l=="string"?r.textContent!==l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,t),i=["children",l]):typeof l=="number"&&r.textContent!==""+l&&(s.suppressHydrationWarning!==!0&&Zs(r.textContent,l,t),i=["children",""+l]):is.hasOwnProperty(o)&&l!=null&&o==="onScroll"&&ue("scroll",r)}switch(n){case"input":Ws(r),kd(r,s,!0);break;case"textarea":Ws(r),Od(r);break;case"select":case"option":break;default:typeof s.onClick=="function"&&(r.onclick=Mo)}r=i,e.updateQueue=r,r!==null&&(e.flags|=4)}else{o=i.nodeType===9?i:i.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=_h(n)),t==="http://www.w3.org/1999/xhtml"?n==="script"?(t=o.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Yt]=e,t[ps]=r,Wp(t,e,!1,!1),e.stateNode=t;e:{switch(o=Za(n,r),n){case"dialog":ue("cancel",t),ue("close",t),i=r;break;case"iframe":case"object":case"embed":ue("load",t),i=r;break;case"video":case"audio":for(i=0;i<$i.length;i++)ue($i[i],t);i=r;break;case"source":ue("error",t),i=r;break;case"img":case"image":case"link":ue("error",t),ue("load",t),i=r;break;case"details":ue("toggle",t),i=r;break;case"input":Bd(t,r),i=Ya(t,r),ue("invalid",t);break;case"option":i=r;break;case"select":t._wrapperState={wasMultiple:!!r.multiple},i=ge({},r,{value:void 0}),ue("invalid",t);break;case"textarea":Fd(t,r),i=Ga(t,r),ue("invalid",t);break;default:i=r}Xa(n,i),l=i;for(s in l)if(l.hasOwnProperty(s)){var a=l[s];s==="style"?Ih(t,a):s==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&Sh(t,a)):s==="children"?typeof a=="string"?(n!=="textarea"||a!=="")&&ss(t,a):typeof a=="number"&&ss(t,""+a):s!=="suppressContentEditableWarning"&&s!=="suppressHydrationWarning"&&s!=="autoFocus"&&(is.hasOwnProperty(s)?a!=null&&s==="onScroll"&&ue("scroll",t):a!=null&&qu(t,s,a,o))}switch(n){case"input":Ws(t),kd(t,r,!1);break;case"textarea":Ws(t),Od(t);break;case"option":r.value!=null&&t.setAttribute("value",""+Yn(r.value));break;case"select":t.multiple=!!r.multiple,s=r.value,s!=null?Zr(t,!!r.multiple,s,!1):r.defaultValue!=null&&Zr(t,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(t.onclick=Mo)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return Re(e),null;case 6:if(t&&e.stateNode!=null)Yp(t,e,t.memoizedProps,r);else{if(typeof r!="string"&&e.stateNode===null)throw Error(_(166));if(n=hr(ms.current),hr(nn.current),qs(e)){if(r=e.stateNode,n=e.memoizedProps,r[Yt]=e,(s=r.nodeValue!==n)&&(t=dt,t!==null))switch(t.tag){case 3:Zs(r.nodeValue,n,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Zs(r.nodeValue,n,(t.mode&1)!==0)}s&&(e.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[Yt]=e,e.stateNode=r}return Re(e),null;case 13:if(ce(pe),r=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(fe&&ct!==null&&e.mode&1&&!(e.flags&128))cp(),di(),e.flags|=98560,s=!1;else if(s=qs(e),r!==null&&r.dehydrated!==null){if(t===null){if(!s)throw Error(_(318));if(s=e.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(_(317));s[Yt]=e}else di(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Re(e),s=!1}else Tt!==null&&(Cu(Tt),Tt=null),s=!0;if(!s)return e.flags&65536?e:null}return e.flags&128?(e.lanes=n,e):(r=r!==null,r!==(t!==null&&t.memoizedState!==null)&&r&&(e.child.flags|=8192,e.mode&1&&(t===null||pe.current&1?ke===0&&(ke=3):Lc())),e.updateQueue!==null&&(e.flags|=4),Re(e),null);case 4:return hi(),Nu(t,e),t===null&&fs(e.stateNode.containerInfo),Re(e),null;case 10:return vc(e.type._context),Re(e),null;case 17:return et(e.type)&&Ro(),Re(e),null;case 19:if(ce(pe),s=e.memoizedState,s===null)return Re(e),null;if(r=(e.flags&128)!==0,o=s.rendering,o===null)if(r)Ri(s,!1);else{if(ke!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(o=Wo(t),o!==null){for(e.flags|=128,Ri(s,!1),r=o.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),e.subtreeFlags=0,r=n,n=e.child;n!==null;)s=n,t=r,s.flags&=14680066,o=s.alternate,o===null?(s.childLanes=0,s.lanes=t,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,t=o.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),n=n.sibling;return ae(pe,pe.current&1|2),e.child}t=t.sibling}s.tail!==null&&Se()>yi&&(e.flags|=128,r=!0,Ri(s,!1),e.lanes=4194304)}else{if(!r)if(t=Wo(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),Ri(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!fe)return Re(e),null}else 2*Se()-s.renderingStartTime>yi&&n!==1073741824&&(e.flags|=128,r=!0,Ri(s,!1),e.lanes=4194304);s.isBackwards?(o.sibling=e.child,e.child=o):(n=s.last,n!==null?n.sibling=o:e.child=o,s.last=o)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Se(),e.sibling=null,n=pe.current,ae(pe,r?n&1|2:n&1),e):(Re(e),null);case 22:case 23:return Tc(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?lt&1073741824&&(Re(e),e.subtreeFlags&6&&(e.flags|=8192)):Re(e),null;case 24:return null;case 25:return null}throw Error(_(156,e.tag))}function cv(t,e){switch(pc(e),e.tag){case 1:return et(e.type)&&Ro(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return hi(),ce(qe),ce(Pe),Ic(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return bc(e),null;case 13:if(ce(pe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(_(340));di()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ce(pe),null;case 4:return hi(),null;case 10:return vc(e.type._context),null;case 22:case 23:return Tc(),null;case 24:return null;default:return null}}var no=!1,Ue=!1,dv=typeof WeakSet=="function"?WeakSet:Set,b=null;function Gr(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ve(t,e,r)}else n.current=null}function xu(t,e,n){try{n()}catch(r){ve(t,e,r)}}var wf=!1;function fv(t,e){if(au=Ao,t=Xh(),fc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var g;d!==n||i!==0&&d.nodeType!==3||(l=o+i),d!==s||r!==0&&d.nodeType!==3||(a=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(g=d.firstChild)!==null;)h=d,d=g;for(;;){if(d===t)break t;if(h===n&&++u===i&&(l=o),h===s&&++c===r&&(a=o),(g=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=g}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(uu={focusedElem:t,selectionRange:n},Ao=!1,b=e;b!==null;)if(e=b,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,b=t;else for(;b!==null;){e=b;try{var v=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var S=v.memoizedProps,J=v.memoizedState,p=e.stateNode,f=p.getSnapshotBeforeUpdate(e.elementType===e.type?S:Dt(e.type,S),J);p.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_(163))}}catch(w){ve(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,b=t;break}b=e.return}return v=wf,wf=!1,v}function Zi(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var s=i.destroy;i.destroy=void 0,s!==void 0&&xu(e,n,s)}i=i.next}while(i!==r)}}function Rl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Bu(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function Qp(t){var e=t.alternate;e!==null&&(t.alternate=null,Qp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Yt],delete e[ps],delete e[fu],delete e[K0],delete e[G0])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Kp(t){return t.tag===5||t.tag===3||t.tag===4}function _f(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Kp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ku(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Mo));else if(r!==4&&(t=t.child,t!==null))for(ku(t,e,n),t=t.sibling;t!==null;)ku(t,e,n),t=t.sibling}function Fu(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Fu(t,e,n),t=t.sibling;t!==null;)Fu(t,e,n),t=t.sibling}var Ce=null,Ct=!1;function Fn(t,e,n){for(n=n.child;n!==null;)Gp(t,e,n),n=n.sibling}function Gp(t,e,n){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(Ol,n)}catch{}switch(n.tag){case 5:Ue||Gr(n,e);case 6:var r=Ce,i=Ct;Ce=null,Fn(t,e,n),Ce=r,Ct=i,Ce!==null&&(Ct?(t=Ce,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Ce.removeChild(n.stateNode));break;case 18:Ce!==null&&(Ct?(t=Ce,n=n.stateNode,t.nodeType===8?Ia(t.parentNode,n):t.nodeType===1&&Ia(t,n),us(t)):Ia(Ce,n.stateNode));break;case 4:r=Ce,i=Ct,Ce=n.stateNode.containerInfo,Ct=!0,Fn(t,e,n),Ce=r,Ct=i;break;case 0:case 11:case 14:case 15:if(!Ue&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&xu(n,e,o),i=i.next}while(i!==r)}Fn(t,e,n);break;case 1:if(!Ue&&(Gr(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ve(n,e,l)}Fn(t,e,n);break;case 21:Fn(t,e,n);break;case 22:n.mode&1?(Ue=(r=Ue)||n.memoizedState!==null,Fn(t,e,n),Ue=r):Fn(t,e,n);break;default:Fn(t,e,n)}}function Sf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new dv),e.forEach(function(r){var i=Sv.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Et(t,e){var n=e.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var s=t,o=e,l=o;e:for(;l!==null;){switch(l.tag){case 5:Ce=l.stateNode,Ct=!1;break e;case 3:Ce=l.stateNode.containerInfo,Ct=!0;break e;case 4:Ce=l.stateNode.containerInfo,Ct=!0;break e}l=l.return}if(Ce===null)throw Error(_(160));Gp(s,o,i),Ce=null,Ct=!1;var a=i.alternate;a!==null&&(a.return=null),i.return=null}catch(u){ve(i,e,u)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Jp(e,t),e=e.sibling}function Jp(t,e){var n=t.alternate,r=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Et(e,t),jt(t),r&4){try{Zi(3,t,t.return),Rl(3,t)}catch(S){ve(t,t.return,S)}try{Zi(5,t,t.return)}catch(S){ve(t,t.return,S)}}break;case 1:Et(e,t),jt(t),r&512&&n!==null&&Gr(n,n.return);break;case 5:if(Et(e,t),jt(t),r&512&&n!==null&&Gr(n,n.return),t.flags&32){var i=t.stateNode;try{ss(i,"")}catch(S){ve(t,t.return,S)}}if(r&4&&(i=t.stateNode,i!=null)){var s=t.memoizedProps,o=n!==null?n.memoizedProps:s,l=t.type,a=t.updateQueue;if(t.updateQueue=null,a!==null)try{l==="input"&&s.type==="radio"&&s.name!=null&&vh(i,s),Za(l,o);var u=Za(l,s);for(o=0;o<a.length;o+=2){var c=a[o],d=a[o+1];c==="style"?Ih(i,d):c==="dangerouslySetInnerHTML"?Sh(i,d):c==="children"?ss(i,d):qu(i,c,d,u)}switch(l){case"input":Qa(i,s);break;case"textarea":wh(i,s);break;case"select":var h=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!s.multiple;var g=s.value;g!=null?Zr(i,!!s.multiple,g,!1):h!==!!s.multiple&&(s.defaultValue!=null?Zr(i,!!s.multiple,s.defaultValue,!0):Zr(i,!!s.multiple,s.multiple?[]:"",!1))}i[ps]=s}catch(S){ve(t,t.return,S)}}break;case 6:if(Et(e,t),jt(t),r&4){if(t.stateNode===null)throw Error(_(162));i=t.stateNode,s=t.memoizedProps;try{i.nodeValue=s}catch(S){ve(t,t.return,S)}}break;case 3:if(Et(e,t),jt(t),r&4&&n!==null&&n.memoizedState.isDehydrated)try{us(e.containerInfo)}catch(S){ve(t,t.return,S)}break;case 4:Et(e,t),jt(t);break;case 13:Et(e,t),jt(t),i=t.child,i.flags&8192&&(s=i.memoizedState!==null,i.stateNode.isHidden=s,!s||i.alternate!==null&&i.alternate.memoizedState!==null||(Cc=Se())),r&4&&Sf(t);break;case 22:if(c=n!==null&&n.memoizedState!==null,t.mode&1?(Ue=(u=Ue)||c,Et(e,t),Ue=u):Et(e,t),jt(t),r&8192){if(u=t.memoizedState!==null,(t.stateNode.isHidden=u)&&!c&&t.mode&1)for(b=t,c=t.child;c!==null;){for(d=b=c;b!==null;){switch(h=b,g=h.child,h.tag){case 0:case 11:case 14:case 15:Zi(4,h,h.return);break;case 1:Gr(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){r=h,n=h.return;try{e=r,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(S){ve(r,n,S)}}break;case 5:Gr(h,h.return);break;case 22:if(h.memoizedState!==null){If(d);continue}}g!==null?(g.return=h,b=g):If(d)}c=c.sibling}e:for(c=null,d=t;;){if(d.tag===5){if(c===null){c=d;try{i=d.stateNode,u?(s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none"):(l=d.stateNode,a=d.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,l.style.display=bh("display",o))}catch(S){ve(t,t.return,S)}}}else if(d.tag===6){if(c===null)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(S){ve(t,t.return,S)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Et(e,t),jt(t),r&4&&Sf(t);break;case 21:break;default:Et(e,t),jt(t)}}function jt(t){var e=t.flags;if(e&2){try{e:{for(var n=t.return;n!==null;){if(Kp(n)){var r=n;break e}n=n.return}throw Error(_(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(ss(i,""),r.flags&=-33);var s=_f(t);Fu(t,s,i);break;case 3:case 4:var o=r.stateNode.containerInfo,l=_f(t);ku(t,l,o);break;default:throw Error(_(161))}}catch(a){ve(t,t.return,a)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function hv(t,e,n){b=t,Xp(t)}function Xp(t,e,n){for(var r=(t.mode&1)!==0;b!==null;){var i=b,s=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||no;if(!o){var l=i.alternate,a=l!==null&&l.memoizedState!==null||Ue;l=no;var u=Ue;if(no=o,(Ue=a)&&!u)for(b=i;b!==null;)o=b,a=o.child,o.tag===22&&o.memoizedState!==null?Nf(i):a!==null?(a.return=o,b=a):Nf(i);for(;s!==null;)b=s,Xp(s),s=s.sibling;b=i,no=l,Ue=u}bf(t)}else i.subtreeFlags&8772&&s!==null?(s.return=i,b=s):bf(t)}}function bf(t){for(;b!==null;){var e=b;if(e.flags&8772){var n=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ue||Rl(5,e);break;case 1:var r=e.stateNode;if(e.flags&4&&!Ue)if(n===null)r.componentDidMount();else{var i=e.elementType===e.type?n.memoizedProps:Dt(e.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var s=e.updateQueue;s!==null&&of(e,s,r);break;case 3:var o=e.updateQueue;if(o!==null){if(n=null,e.child!==null)switch(e.child.tag){case 5:n=e.child.stateNode;break;case 1:n=e.child.stateNode}of(e,o,n)}break;case 5:var l=e.stateNode;if(n===null&&e.flags&4){n=l;var a=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break;case"img":a.src&&(n.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var u=e.alternate;if(u!==null){var c=u.memoizedState;if(c!==null){var d=c.dehydrated;d!==null&&us(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(_(163))}Ue||e.flags&512&&Bu(e)}catch(h){ve(e,e.return,h)}}if(e===t){b=null;break}if(n=e.sibling,n!==null){n.return=e.return,b=n;break}b=e.return}}function If(t){for(;b!==null;){var e=b;if(e===t){b=null;break}var n=e.sibling;if(n!==null){n.return=e.return,b=n;break}b=e.return}}function Nf(t){for(;b!==null;){var e=b;try{switch(e.tag){case 0:case 11:case 15:var n=e.return;try{Rl(4,e)}catch(a){ve(e,n,a)}break;case 1:var r=e.stateNode;if(typeof r.componentDidMount=="function"){var i=e.return;try{r.componentDidMount()}catch(a){ve(e,i,a)}}var s=e.return;try{Bu(e)}catch(a){ve(e,s,a)}break;case 5:var o=e.return;try{Bu(e)}catch(a){ve(e,o,a)}}}catch(a){ve(e,e.return,a)}if(e===t){b=null;break}var l=e.sibling;if(l!==null){l.return=e.return,b=l;break}b=e.return}}var pv=Math.ceil,Qo=xn.ReactCurrentDispatcher,Ec=xn.ReactCurrentOwner,xt=xn.ReactCurrentBatchConfig,Q=0,Ee=null,be=null,Ae=0,lt=0,Jr=tr(0),ke=0,_s=null,kr=0,Ul=0,Dc=0,qi=null,Ge=null,Cc=0,yi=1/0,an=null,Ko=!1,Ou=null,$n=null,ro=!1,Rn=null,Go=0,es=0,Eu=null,vo=-1,wo=0;function We(){return Q&6?Se():vo!==-1?vo:vo=Se()}function Wn(t){return t.mode&1?Q&2&&Ae!==0?Ae&-Ae:X0.transition!==null?(wo===0&&(wo=Lh()),wo):(t=ne,t!==0||(t=window.event,t=t===void 0?16:Vh(t.type)),t):1}function Mt(t,e,n,r){if(50<es)throw es=0,Eu=null,Error(_(185));Os(t,n,r),(!(Q&2)||t!==Ee)&&(t===Ee&&(!(Q&2)&&(Ul|=n),ke===4&&Ln(t,Ae)),tt(t,r),n===1&&Q===0&&!(e.mode&1)&&(yi=Se()+500,Tl&&nr()))}function tt(t,e){var n=t.callbackNode;Xg(t,e);var r=Co(t,t===Ee?Ae:0);if(r===0)n!==null&&Cd(n),t.callbackNode=null,t.callbackPriority=0;else if(e=r&-r,t.callbackPriority!==e){if(n!=null&&Cd(n),e===1)t.tag===0?J0(xf.bind(null,t)):lp(xf.bind(null,t)),Y0(function(){!(Q&6)&&nr()}),n=null;else{switch(Mh(r)){case 1:n=ic;break;case 4:n=Ah;break;case 16:n=Do;break;case 536870912:n=Th;break;default:n=Do}n=sy(n,Zp.bind(null,t))}t.callbackPriority=e,t.callbackNode=n}}function Zp(t,e){if(vo=-1,wo=0,Q&6)throw Error(_(327));var n=t.callbackNode;if(ri()&&t.callbackNode!==n)return null;var r=Co(t,t===Ee?Ae:0);if(r===0)return null;if(r&30||r&t.expiredLanes||e)e=Jo(t,r);else{e=r;var i=Q;Q|=2;var s=ey();(Ee!==t||Ae!==e)&&(an=null,yi=Se()+500,_r(t,e));do try{gv();break}catch(l){qp(t,l)}while(!0);gc(),Qo.current=s,Q=i,be!==null?e=0:(Ee=null,Ae=0,e=ke)}if(e!==0){if(e===2&&(i=ru(t),i!==0&&(r=i,e=Du(t,i))),e===1)throw n=_s,_r(t,0),Ln(t,r),tt(t,Se()),n;if(e===6)Ln(t,r);else{if(i=t.current.alternate,!(r&30)&&!yv(i)&&(e=Jo(t,r),e===2&&(s=ru(t),s!==0&&(r=s,e=Du(t,s))),e===1))throw n=_s,_r(t,0),Ln(t,r),tt(t,Se()),n;switch(t.finishedWork=i,t.finishedLanes=r,e){case 0:case 1:throw Error(_(345));case 2:cr(t,Ge,an);break;case 3:if(Ln(t,r),(r&130023424)===r&&(e=Cc+500-Se(),10<e)){if(Co(t,0)!==0)break;if(i=t.suspendedLanes,(i&r)!==r){We(),t.pingedLanes|=t.suspendedLanes&i;break}t.timeoutHandle=du(cr.bind(null,t,Ge,an),e);break}cr(t,Ge,an);break;case 4:if(Ln(t,r),(r&4194240)===r)break;for(e=t.eventTimes,i=-1;0<r;){var o=31-Lt(r);s=1<<o,o=e[o],o>i&&(i=o),r&=~s}if(r=i,r=Se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pv(r/1960))-r,10<r){t.timeoutHandle=du(cr.bind(null,t,Ge,an),r);break}cr(t,Ge,an);break;case 5:cr(t,Ge,an);break;default:throw Error(_(329))}}}return tt(t,Se()),t.callbackNode===n?Zp.bind(null,t):null}function Du(t,e){var n=qi;return t.current.memoizedState.isDehydrated&&(_r(t,e).flags|=256),t=Jo(t,e),t!==2&&(e=Ge,Ge=n,e!==null&&Cu(e)),t}function Cu(t){Ge===null?Ge=t:Ge.push.apply(Ge,t)}function yv(t){for(var e=t;;){if(e.flags&16384){var n=e.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],s=i.getSnapshot;i=i.value;try{if(!Ut(s(),i))return!1}catch{return!1}}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Ln(t,e){for(e&=~Dc,e&=~Ul,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var n=31-Lt(e),r=1<<n;t[n]=-1,e&=~r}}function xf(t){if(Q&6)throw Error(_(327));ri();var e=Co(t,0);if(!(e&1))return tt(t,Se()),null;var n=Jo(t,e);if(t.tag!==0&&n===2){var r=ru(t);r!==0&&(e=r,n=Du(t,r))}if(n===1)throw n=_s,_r(t,0),Ln(t,e),tt(t,Se()),n;if(n===6)throw Error(_(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,cr(t,Ge,an),tt(t,Se()),null}function Ac(t,e){var n=Q;Q|=1;try{return t(e)}finally{Q=n,Q===0&&(yi=Se()+500,Tl&&nr())}}function Fr(t){Rn!==null&&Rn.tag===0&&!(Q&6)&&ri();var e=Q;Q|=1;var n=xt.transition,r=ne;try{if(xt.transition=null,ne=1,t)return t()}finally{ne=r,xt.transition=n,Q=e,!(Q&6)&&nr()}}function Tc(){lt=Jr.current,ce(Jr)}function _r(t,e){t.finishedWork=null,t.finishedLanes=0;var n=t.timeoutHandle;if(n!==-1&&(t.timeoutHandle=-1,H0(n)),be!==null)for(n=be.return;n!==null;){var r=n;switch(pc(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Ro();break;case 3:hi(),ce(qe),ce(Pe),Ic();break;case 5:bc(r);break;case 4:hi();break;case 13:ce(pe);break;case 19:ce(pe);break;case 10:vc(r.type._context);break;case 22:case 23:Tc()}n=n.return}if(Ee=t,be=t=Hn(t.current,null),Ae=lt=e,ke=0,_s=null,Dc=Ul=kr=0,Ge=qi=null,fr!==null){for(e=0;e<fr.length;e++)if(n=fr[e],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,s=n.pending;if(s!==null){var o=s.next;s.next=i,r.next=o}n.pending=r}fr=null}return t}function qp(t,e){do{var n=be;try{if(gc(),yo.current=Yo,Ho){for(var r=me.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}Ho=!1}if(Br=0,Oe=Ne=me=null,Xi=!1,gs=0,Ec.current=null,n===null||n.return===null){ke=1,_s=e,be=null;break}e:{var s=t,o=n.return,l=n,a=e;if(e=Ae,l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var u=a,c=l,d=c.tag;if(!(c.mode&1)&&(d===0||d===11||d===15)){var h=c.alternate;h?(c.updateQueue=h.updateQueue,c.memoizedState=h.memoizedState,c.lanes=h.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=ff(o);if(g!==null){g.flags&=-257,hf(g,o,l,s,e),g.mode&1&&df(s,u,e),e=g,a=u;var v=e.updateQueue;if(v===null){var S=new Set;S.add(a),e.updateQueue=S}else v.add(a);break e}else{if(!(e&1)){df(s,u,e),Lc();break e}a=Error(_(426))}}else if(fe&&l.mode&1){var J=ff(o);if(J!==null){!(J.flags&65536)&&(J.flags|=256),hf(J,o,l,s,e),yc(pi(a,l));break e}}s=a=pi(a,l),ke!==4&&(ke=2),qi===null?qi=[s]:qi.push(s),s=o;do{switch(s.tag){case 3:s.flags|=65536,e&=-e,s.lanes|=e;var p=Mp(s,a,e);sf(s,p);break e;case 1:l=a;var f=s.type,m=s.stateNode;if(!(s.flags&128)&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&($n===null||!$n.has(m)))){s.flags|=65536,e&=-e,s.lanes|=e;var w=Rp(s,l,e);sf(s,w);break e}}s=s.return}while(s!==null)}ny(n)}catch(I){e=I,be===n&&n!==null&&(be=n=n.return);continue}break}while(!0)}function ey(){var t=Qo.current;return Qo.current=Yo,t===null?Yo:t}function Lc(){(ke===0||ke===3||ke===2)&&(ke=4),Ee===null||!(kr&268435455)&&!(Ul&268435455)||Ln(Ee,Ae)}function Jo(t,e){var n=Q;Q|=2;var r=ey();(Ee!==t||Ae!==e)&&(an=null,_r(t,e));do try{mv();break}catch(i){qp(t,i)}while(!0);if(gc(),Q=n,Qo.current=r,be!==null)throw Error(_(261));return Ee=null,Ae=0,ke}function mv(){for(;be!==null;)ty(be)}function gv(){for(;be!==null&&!Vg();)ty(be)}function ty(t){var e=iy(t.alternate,t,lt);t.memoizedProps=t.pendingProps,e===null?ny(t):be=e,Ec.current=null}function ny(t){var e=t;do{var n=e.alternate;if(t=e.return,e.flags&32768){if(n=cv(n,e),n!==null){n.flags&=32767,be=n;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ke=6,be=null;return}}else if(n=uv(n,e,lt),n!==null){be=n;return}if(e=e.sibling,e!==null){be=e;return}be=e=t}while(e!==null);ke===0&&(ke=5)}function cr(t,e,n){var r=ne,i=xt.transition;try{xt.transition=null,ne=1,vv(t,e,n,r)}finally{xt.transition=i,ne=r}return null}function vv(t,e,n,r){do ri();while(Rn!==null);if(Q&6)throw Error(_(327));n=t.finishedWork;var i=t.finishedLanes;if(n===null)return null;if(t.finishedWork=null,t.finishedLanes=0,n===t.current)throw Error(_(177));t.callbackNode=null,t.callbackPriority=0;var s=n.lanes|n.childLanes;if(Zg(t,s),t===Ee&&(be=Ee=null,Ae=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||ro||(ro=!0,sy(Do,function(){return ri(),null})),s=(n.flags&15990)!==0,n.subtreeFlags&15990||s){s=xt.transition,xt.transition=null;var o=ne;ne=1;var l=Q;Q|=4,Ec.current=null,fv(t,n),Jp(n,t),U0(uu),Ao=!!au,uu=au=null,t.current=n,hv(n),$g(),Q=l,ne=o,xt.transition=s}else t.current=n;if(ro&&(ro=!1,Rn=t,Go=i),s=t.pendingLanes,s===0&&($n=null),Yg(n.stateNode),tt(t,Se()),e!==null)for(r=t.onRecoverableError,n=0;n<e.length;n++)i=e[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ko)throw Ko=!1,t=Ou,Ou=null,t;return Go&1&&t.tag!==0&&ri(),s=t.pendingLanes,s&1?t===Eu?es++:(es=0,Eu=t):es=0,nr(),null}function ri(){if(Rn!==null){var t=Mh(Go),e=xt.transition,n=ne;try{if(xt.transition=null,ne=16>t?16:t,Rn===null)var r=!1;else{if(t=Rn,Rn=null,Go=0,Q&6)throw Error(_(331));var i=Q;for(Q|=4,b=t.current;b!==null;){var s=b,o=s.child;if(b.flags&16){var l=s.deletions;if(l!==null){for(var a=0;a<l.length;a++){var u=l[a];for(b=u;b!==null;){var c=b;switch(c.tag){case 0:case 11:case 15:Zi(8,c,s)}var d=c.child;if(d!==null)d.return=c,b=d;else for(;b!==null;){c=b;var h=c.sibling,g=c.return;if(Qp(c),c===u){b=null;break}if(h!==null){h.return=g,b=h;break}b=g}}}var v=s.alternate;if(v!==null){var S=v.child;if(S!==null){v.child=null;do{var J=S.sibling;S.sibling=null,S=J}while(S!==null)}}b=s}}if(s.subtreeFlags&2064&&o!==null)o.return=s,b=o;else e:for(;b!==null;){if(s=b,s.flags&2048)switch(s.tag){case 0:case 11:case 15:Zi(9,s,s.return)}var p=s.sibling;if(p!==null){p.return=s.return,b=p;break e}b=s.return}}var f=t.current;for(b=f;b!==null;){o=b;var m=o.child;if(o.subtreeFlags&2064&&m!==null)m.return=o,b=m;else e:for(o=f;b!==null;){if(l=b,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Rl(9,l)}}catch(I){ve(l,l.return,I)}if(l===o){b=null;break e}var w=l.sibling;if(w!==null){w.return=l.return,b=w;break e}b=l.return}}if(Q=i,nr(),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(Ol,t)}catch{}r=!0}return r}finally{ne=n,xt.transition=e}}return!1}function Bf(t,e,n){e=pi(n,e),e=Mp(t,e,1),t=Vn(t,e,1),e=We(),t!==null&&(Os(t,1,e),tt(t,e))}function ve(t,e,n){if(t.tag===3)Bf(t,t,n);else for(;e!==null;){if(e.tag===3){Bf(e,t,n);break}else if(e.tag===1){var r=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($n===null||!$n.has(r))){t=pi(n,t),t=Rp(e,t,1),e=Vn(e,t,1),t=We(),e!==null&&(Os(e,1,t),tt(e,t));break}}e=e.return}}function wv(t,e,n){var r=t.pingCache;r!==null&&r.delete(e),e=We(),t.pingedLanes|=t.suspendedLanes&n,Ee===t&&(Ae&n)===n&&(ke===4||ke===3&&(Ae&130023424)===Ae&&500>Se()-Cc?_r(t,0):Dc|=n),tt(t,e)}function ry(t,e){e===0&&(t.mode&1?(e=Qs,Qs<<=1,!(Qs&130023424)&&(Qs=4194304)):e=1);var n=We();t=bn(t,e),t!==null&&(Os(t,e,n),tt(t,n))}function _v(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),ry(t,n)}function Sv(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(_(314))}r!==null&&r.delete(e),ry(t,n)}var iy;iy=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||qe.current)Ze=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return Ze=!1,av(t,e,n);Ze=!!(t.flags&131072)}else Ze=!1,fe&&e.flags&1048576&&ap(e,zo,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;go(t,e),t=e.pendingProps;var i=ci(e,Pe.current);ni(e,n),i=xc(null,e,r,t,i,n);var s=Bc();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,et(r)?(s=!0,Uo(e)):s=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,_c(e),i.updater=Ml,e.stateNode=i,i._reactInternals=e,vu(e,r,t,n),e=Su(null,e,r,!0,s,n)):(e.tag=0,fe&&s&&hc(e),ze(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(go(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Iv(r),t=Dt(r,t),i){case 0:e=_u(null,e,r,t,n);break e;case 1:e=mf(null,e,r,t,n);break e;case 11:e=pf(null,e,r,t,n);break e;case 14:e=yf(null,e,r,Dt(r.type,t),n);break e}throw Error(_(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Dt(r,i),_u(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Dt(r,i),mf(t,e,r,i,n);case 3:e:{if(jp(e),t===null)throw Error(_(387));r=e.pendingProps,s=e.memoizedState,i=s.element,pp(t,e),$o(e,r,null,n);var o=e.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=s,e.memoizedState=s,e.flags&256){i=pi(Error(_(423)),e),e=gf(t,e,r,n,i);break e}else if(r!==i){i=pi(Error(_(424)),e),e=gf(t,e,r,n,i);break e}else for(ct=jn(e.stateNode.containerInfo.firstChild),dt=e,fe=!0,Tt=null,n=fp(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(di(),r===i){e=In(t,e,n);break e}ze(t,e,r,n)}e=e.child}return e;case 5:return yp(e),t===null&&yu(e),r=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,o=i.children,cu(r,i)?o=null:s!==null&&cu(r,s)&&(e.flags|=32),zp(t,e),ze(t,e,o,n),e.child;case 6:return t===null&&yu(e),null;case 13:return Vp(t,e,n);case 4:return Sc(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=fi(e,null,r,n):ze(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Dt(r,i),pf(t,e,r,i,n);case 7:return ze(t,e,e.pendingProps,n),e.child;case 8:return ze(t,e,e.pendingProps.children,n),e.child;case 12:return ze(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,s=e.memoizedProps,o=i.value,ae(jo,r._currentValue),r._currentValue=o,s!==null)if(Ut(s.value,o)){if(s.children===i.children&&!qe.current){e=In(t,e,n);break e}}else for(s=e.child,s!==null&&(s.return=e);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=gn(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),mu(s.return,n,e),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===e.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(_(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),mu(o,n,e),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===e){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ze(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,ni(e,n),i=Bt(i),r=r(i),e.flags|=1,ze(t,e,r,n),e.child;case 14:return r=e.type,i=Dt(r,e.pendingProps),i=Dt(r.type,i),yf(t,e,r,i,n);case 15:return Up(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Dt(r,i),go(t,e),e.tag=1,et(r)?(t=!0,Uo(e)):t=!1,ni(e,n),Lp(e,r,i),vu(e,r,i,n),Su(null,e,r,!0,t,n);case 19:return $p(t,e,n);case 22:return Pp(t,e,n)}throw Error(_(156,e.tag))};function sy(t,e){return Ch(t,e)}function bv(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Nt(t,e,n,r){return new bv(t,e,n,r)}function Mc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Iv(t){if(typeof t=="function")return Mc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===tc)return 11;if(t===nc)return 14}return 2}function Hn(t,e){var n=t.alternate;return n===null?(n=Nt(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function _o(t,e,n,r,i,s){var o=2;if(r=t,typeof t=="function")Mc(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case zr:return Sr(n.children,i,s,e);case ec:o=8,i|=8;break;case Va:return t=Nt(12,n,e,i|2),t.elementType=Va,t.lanes=s,t;case $a:return t=Nt(13,n,e,i),t.elementType=$a,t.lanes=s,t;case Wa:return t=Nt(19,n,e,i),t.elementType=Wa,t.lanes=s,t;case yh:return Pl(n,i,s,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case hh:o=10;break e;case ph:o=9;break e;case tc:o=11;break e;case nc:o=14;break e;case En:o=16,r=null;break e}throw Error(_(130,t==null?t:typeof t,""))}return e=Nt(o,n,e,i),e.elementType=t,e.type=r,e.lanes=s,e}function Sr(t,e,n,r){return t=Nt(7,t,r,e),t.lanes=n,t}function Pl(t,e,n,r){return t=Nt(22,t,r,e),t.elementType=yh,t.lanes=n,t.stateNode={isHidden:!1},t}function Da(t,e,n){return t=Nt(6,t,null,e),t.lanes=n,t}function Ca(t,e,n){return e=Nt(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Nv(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=fa(0),this.expirationTimes=fa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fa(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Rc(t,e,n,r,i,s,o,l,a){return t=new Nv(t,e,n,l,a),e===1?(e=1,s===!0&&(e|=8)):e=0,s=Nt(3,null,null,e),t.current=s,s.stateNode=t,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},_c(s),t}function xv(t,e,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Pr,key:r==null?null:""+r,children:t,containerInfo:e,implementation:n}}function oy(t){if(!t)return Qn;t=t._reactInternals;e:{if(Dr(t)!==t||t.tag!==1)throw Error(_(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(et(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(_(171))}if(t.tag===1){var n=t.type;if(et(n))return op(t,n,e)}return e}function ly(t,e,n,r,i,s,o,l,a){return t=Rc(n,r,!0,t,i,s,o,l,a),t.context=oy(null),n=t.current,r=We(),i=Wn(n),s=gn(r,i),s.callback=e??null,Vn(n,s,i),t.current.lanes=i,Os(t,i,r),tt(t,r),t}function zl(t,e,n,r){var i=e.current,s=We(),o=Wn(i);return n=oy(n),e.context===null?e.context=n:e.pendingContext=n,e=gn(s,o),e.payload={element:t},r=r===void 0?null:r,r!==null&&(e.callback=r),t=Vn(i,e,o),t!==null&&(Mt(t,i,o,s),po(t,i,o)),o}function Xo(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function kf(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Uc(t,e){kf(t,e),(t=t.alternate)&&kf(t,e)}function Bv(){return null}var ay=typeof reportError=="function"?reportError:function(t){console.error(t)};function Pc(t){this._internalRoot=t}jl.prototype.render=Pc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(_(409));zl(t,e,null,null)};jl.prototype.unmount=Pc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Fr(function(){zl(null,t,null,null)}),e[Sn]=null}};function jl(t){this._internalRoot=t}jl.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ph();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Tn.length&&e!==0&&e<Tn[n].priority;n++);Tn.splice(n,0,t),n===0&&jh(t)}};function zc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Vl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Ff(){}function kv(t,e,n,r,i){if(i){if(typeof r=="function"){var s=r;r=function(){var u=Xo(o);s.call(u)}}var o=ly(e,r,t,0,null,!1,!1,"",Ff);return t._reactRootContainer=o,t[Sn]=o.current,fs(t.nodeType===8?t.parentNode:t),Fr(),o}for(;i=t.lastChild;)t.removeChild(i);if(typeof r=="function"){var l=r;r=function(){var u=Xo(a);l.call(u)}}var a=Rc(t,0,!1,null,null,!1,!1,"",Ff);return t._reactRootContainer=a,t[Sn]=a.current,fs(t.nodeType===8?t.parentNode:t),Fr(function(){zl(e,a,n,r)}),a}function $l(t,e,n,r,i){var s=n._reactRootContainer;if(s){var o=s;if(typeof i=="function"){var l=i;i=function(){var a=Xo(o);l.call(a)}}zl(e,o,t,i)}else o=kv(n,e,t,i,r);return Xo(o)}Rh=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var n=Vi(e.pendingLanes);n!==0&&(sc(e,n|1),tt(e,Se()),!(Q&6)&&(yi=Se()+500,nr()))}break;case 13:Fr(function(){var r=bn(t,1);if(r!==null){var i=We();Mt(r,t,1,i)}}),Uc(t,1)}};oc=function(t){if(t.tag===13){var e=bn(t,134217728);if(e!==null){var n=We();Mt(e,t,134217728,n)}Uc(t,134217728)}};Uh=function(t){if(t.tag===13){var e=Wn(t),n=bn(t,e);if(n!==null){var r=We();Mt(n,t,e,r)}Uc(t,e)}};Ph=function(){return ne};zh=function(t,e){var n=ne;try{return ne=t,e()}finally{ne=n}};eu=function(t,e,n){switch(e){case"input":if(Qa(t,n),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=Al(r);if(!i)throw Error(_(90));gh(r),Qa(r,i)}}}break;case"textarea":wh(t,n);break;case"select":e=n.value,e!=null&&Zr(t,!!n.multiple,e,!1)}};Bh=Ac;kh=Fr;var Fv={usingClientEntryPoint:!1,Events:[Ds,Wr,Al,Nh,xh,Ac]},Ui={findFiberByHostInstance:dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ov={bundleType:Ui.bundleType,version:Ui.version,rendererPackageName:Ui.rendererPackageName,rendererConfig:Ui.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:xn.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Eh(t),t===null?null:t.stateNode},findFiberByHostInstance:Ui.findFiberByHostInstance||Bv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var io=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!io.isDisabled&&io.supportsFiber)try{Ol=io.inject(Ov),tn=io}catch{}}yt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Fv;yt.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!zc(e))throw Error(_(200));return xv(t,e,null,n)};yt.createRoot=function(t,e){if(!zc(t))throw Error(_(299));var n=!1,r="",i=ay;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(r=e.identifierPrefix),e.onRecoverableError!==void 0&&(i=e.onRecoverableError)),e=Rc(t,1,!1,null,null,n,!1,r,i),t[Sn]=e.current,fs(t.nodeType===8?t.parentNode:t),new Pc(e)};yt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(_(188)):(t=Object.keys(t).join(","),Error(_(268,t)));return t=Eh(e),t=t===null?null:t.stateNode,t};yt.flushSync=function(t){return Fr(t)};yt.hydrate=function(t,e,n){if(!Vl(e))throw Error(_(200));return $l(null,t,e,!0,n)};yt.hydrateRoot=function(t,e,n){if(!zc(t))throw Error(_(405));var r=n!=null&&n.hydratedSources||null,i=!1,s="",o=ay;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(s=n.identifierPrefix),n.onRecoverableError!==void 0&&(o=n.onRecoverableError)),e=ly(e,null,t,1,n??null,i,!1,s,o),t[Sn]=e.current,fs(t),r)for(t=0;t<r.length;t++)n=r[t],i=n._getVersion,i=i(n._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[n,i]:e.mutableSourceEagerHydrationData.push(n,i);return new jl(e)};yt.render=function(t,e,n){if(!Vl(e))throw Error(_(200));return $l(null,t,e,!1,n)};yt.unmountComponentAtNode=function(t){if(!Vl(t))throw Error(_(40));return t._reactRootContainer?(Fr(function(){$l(null,null,t,!1,function(){t._reactRootContainer=null,t[Sn]=null})}),!0):!1};yt.unstable_batchedUpdates=Ac;yt.unstable_renderSubtreeIntoContainer=function(t,e,n,r){if(!Vl(n))throw Error(_(200));if(t==null||t._reactInternals===void 0)throw Error(_(38));return $l(t,e,n,!1,r)};yt.version="18.3.1-next-f1338f8080-20240426";function uy(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(uy)}catch(t){console.error(t)}}uy(),uh.exports=yt;var Ev=uh.exports,Of=Ev;za.createRoot=Of.createRoot,za.hydrateRoot=Of.hydrateRoot;var cy={exports:{}},re={};/** @license React v16.13.1
|
|
41
|
+
* react-is.production.min.js
|
|
42
|
+
*
|
|
43
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
44
|
+
*
|
|
45
|
+
* This source code is licensed under the MIT license found in the
|
|
46
|
+
* LICENSE file in the root directory of this source tree.
|
|
47
|
+
*/var De=typeof Symbol=="function"&&Symbol.for,jc=De?Symbol.for("react.element"):60103,Vc=De?Symbol.for("react.portal"):60106,Wl=De?Symbol.for("react.fragment"):60107,Hl=De?Symbol.for("react.strict_mode"):60108,Yl=De?Symbol.for("react.profiler"):60114,Ql=De?Symbol.for("react.provider"):60109,Kl=De?Symbol.for("react.context"):60110,$c=De?Symbol.for("react.async_mode"):60111,Gl=De?Symbol.for("react.concurrent_mode"):60111,Jl=De?Symbol.for("react.forward_ref"):60112,Xl=De?Symbol.for("react.suspense"):60113,Dv=De?Symbol.for("react.suspense_list"):60120,Zl=De?Symbol.for("react.memo"):60115,ql=De?Symbol.for("react.lazy"):60116,Cv=De?Symbol.for("react.block"):60121,Av=De?Symbol.for("react.fundamental"):60117,Tv=De?Symbol.for("react.responder"):60118,Lv=De?Symbol.for("react.scope"):60119;function gt(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case jc:switch(t=t.type,t){case $c:case Gl:case Wl:case Yl:case Hl:case Xl:return t;default:switch(t=t&&t.$$typeof,t){case Kl:case Jl:case ql:case Zl:case Ql:return t;default:return e}}case Vc:return e}}}function dy(t){return gt(t)===Gl}re.AsyncMode=$c;re.ConcurrentMode=Gl;re.ContextConsumer=Kl;re.ContextProvider=Ql;re.Element=jc;re.ForwardRef=Jl;re.Fragment=Wl;re.Lazy=ql;re.Memo=Zl;re.Portal=Vc;re.Profiler=Yl;re.StrictMode=Hl;re.Suspense=Xl;re.isAsyncMode=function(t){return dy(t)||gt(t)===$c};re.isConcurrentMode=dy;re.isContextConsumer=function(t){return gt(t)===Kl};re.isContextProvider=function(t){return gt(t)===Ql};re.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===jc};re.isForwardRef=function(t){return gt(t)===Jl};re.isFragment=function(t){return gt(t)===Wl};re.isLazy=function(t){return gt(t)===ql};re.isMemo=function(t){return gt(t)===Zl};re.isPortal=function(t){return gt(t)===Vc};re.isProfiler=function(t){return gt(t)===Yl};re.isStrictMode=function(t){return gt(t)===Hl};re.isSuspense=function(t){return gt(t)===Xl};re.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===Wl||t===Gl||t===Yl||t===Hl||t===Xl||t===Dv||typeof t=="object"&&t!==null&&(t.$$typeof===ql||t.$$typeof===Zl||t.$$typeof===Ql||t.$$typeof===Kl||t.$$typeof===Jl||t.$$typeof===Av||t.$$typeof===Tv||t.$$typeof===Lv||t.$$typeof===Cv)};re.typeOf=gt;cy.exports=re;var Mv=cy.exports,fy=Mv,Rv={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Uv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},hy={};hy[fy.ForwardRef]=Rv;hy[fy.Memo]=Uv;function O(t,e,n,r){function i(s){return s instanceof n?s:new n(function(o){o(s)})}return new(n||(n=Promise))(function(s,o){function l(c){try{u(r.next(c))}catch(d){o(d)}}function a(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):i(c.value).then(l,a)}u((r=r.apply(t,e||[])).next())})}function Ef(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function z(t){return this instanceof z?(this.v=t,this):new z(t)}function qt(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(t,e||[]),i,s=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),l("next"),l("throw"),l("return",o),i[Symbol.asyncIterator]=function(){return this},i;function o(g){return function(v){return Promise.resolve(v).then(g,d)}}function l(g,v){r[g]&&(i[g]=function(S){return new Promise(function(J,p){s.push([g,S,J,p])>1||a(g,S)})},v&&(i[g]=v(i[g])))}function a(g,v){try{u(r[g](v))}catch(S){h(s[0][3],S)}}function u(g){g.value instanceof z?Promise.resolve(g.value.v).then(c,d):h(s[0][2],g)}function c(g){a("next",g)}function d(g){a("throw",g)}function h(g,v){g(v),s.shift(),s.length&&a(s[0][0],s[0][1])}}function So(t){var e,n;return e={},r("next"),r("throw",function(i){throw i}),r("return"),e[Symbol.iterator]=function(){return this},e;function r(i,s){e[i]=t[i]?function(o){return(n=!n)?{value:z(t[i](o)),done:!1}:s?s(o):o}:s}}function br(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],n;return e?e.call(t):(t=typeof Ef=="function"?Ef(t):t[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(o){return new Promise(function(l,a){o=t[s](o),i(l,a,o.done,o.value)})}}function i(s,o,l,a){Promise.resolve(a).then(function(u){s({value:u,done:l})},o)}}const Pv=new TextDecoder("utf-8"),Au=t=>Pv.decode(t),zv=new TextEncoder,Wc=t=>zv.encode(t),[j1,jv]=(()=>{const t=()=>{throw new Error("BigInt is not available in this environment")};function e(){throw t()}return e.asIntN=()=>{throw t()},e.asUintN=()=>{throw t()},typeof BigInt<"u"?[BigInt,!0]:[e,!1]})(),[As]=(()=>{const t=()=>{throw new Error("BigInt64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigInt64Array<"u"?[BigInt64Array,!0]:[e,!1]})(),[Ts]=(()=>{const t=()=>{throw new Error("BigUint64Array is not available in this environment")};class e{static get BYTES_PER_ELEMENT(){return 8}static of(){throw t()}static from(){throw t()}constructor(){throw t()}}return typeof BigUint64Array<"u"?[BigUint64Array,!0]:[e,!1]})(),Vv=t=>typeof t=="number",py=t=>typeof t=="boolean",xe=t=>typeof t=="function",rt=t=>t!=null&&Object(t)===t,Kn=t=>rt(t)&&xe(t.then),Ls=t=>rt(t)&&xe(t[Symbol.iterator]),ki=t=>rt(t)&&xe(t[Symbol.asyncIterator]),Tu=t=>rt(t)&&rt(t.schema),yy=t=>rt(t)&&"done"in t&&"value"in t,my=t=>rt(t)&&xe(t.stat)&&Vv(t.fd),gy=t=>rt(t)&&Hc(t.body),ea=t=>"_getDOMStream"in t&&"_getNodeStream"in t,$v=t=>rt(t)&&xe(t.abort)&&xe(t.getWriter)&&!ea(t),Hc=t=>rt(t)&&xe(t.cancel)&&xe(t.getReader)&&!ea(t),Wv=t=>rt(t)&&xe(t.end)&&xe(t.write)&&py(t.writable)&&!ea(t),vy=t=>rt(t)&&xe(t.read)&&xe(t.pipe)&&py(t.readable)&&!ea(t),Hv=t=>rt(t)&&xe(t.clear)&&xe(t.bytes)&&xe(t.position)&&xe(t.setPosition)&&xe(t.capacity)&&xe(t.getBufferIdentifier)&&xe(t.createLong),Yc=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function Yv(t){const e=t[0]?[t[0]]:[];let n,r,i,s;for(let o,l,a=0,u=0,c=t.length;++a<c;){if(o=e[u],l=t[a],!o||!l||o.buffer!==l.buffer||l.byteOffset<o.byteOffset){l&&(e[++u]=l);continue}if({byteOffset:n,byteLength:i}=o,{byteOffset:r,byteLength:s}=l,n+i<r||r+s<n){l&&(e[++u]=l);continue}e[u]=new Uint8Array(o.buffer,n,r-n+s)}return e}function Df(t,e,n=0,r=e.byteLength){const i=t.byteLength,s=new Uint8Array(t.buffer,t.byteOffset,i),o=new Uint8Array(e.buffer,e.byteOffset,Math.min(r,i));return s.set(o,n),t}function rn(t,e){const n=Yv(t),r=n.reduce((c,d)=>c+d.byteLength,0);let i,s,o,l=0,a=-1;const u=Math.min(e||Number.POSITIVE_INFINITY,r);for(const c=n.length;++a<c;){if(i=n[a],s=i.subarray(0,Math.min(i.length,u-l)),u<=l+s.length){s.length<i.length?n[a]=i.subarray(s.length):s.length===i.length&&a++,o?Df(o,s,l):o=s;break}Df(o||(o=new Uint8Array(u)),s,l),l+=s.length}return[o||new Uint8Array(0),n.slice(a),r-(o?o.byteLength:0)]}function se(t,e){let n=yy(e)?e.value:e;return n instanceof t?t===Uint8Array?new t(n.buffer,n.byteOffset,n.byteLength):n:n?(typeof n=="string"&&(n=Wc(n)),n instanceof ArrayBuffer?new t(n):n instanceof Yc?new t(n):Hv(n)?se(t,n.bytes()):ArrayBuffer.isView(n)?n.byteLength<=0?new t(0):new t(n.buffer,n.byteOffset,n.byteLength/t.BYTES_PER_ELEMENT):t.from(n)):new t(0)}const Pi=t=>se(Int32Array,t),K=t=>se(Uint8Array,t),Lu=t=>(t.next(),t);function*Qv(t,e){const n=function*(i){yield i},r=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Yc?n(e):Ls(e)?e:n(e);return yield*Lu(function*(i){let s=null;do s=i.next(yield se(t,s));while(!s.done)}(r[Symbol.iterator]())),new t}const Kv=t=>Qv(Uint8Array,t);function wy(t,e){return qt(this,arguments,function*(){if(Kn(e))return yield z(yield z(yield*So(br(wy(t,yield z(e))))));const r=function(o){return qt(this,arguments,function*(){yield yield z(yield z(o))})},i=function(o){return qt(this,arguments,function*(){yield z(yield*So(br(Lu(function*(l){let a=null;do a=l.next(yield a==null?void 0:a.value);while(!a.done)}(o[Symbol.iterator]())))))})},s=typeof e=="string"||ArrayBuffer.isView(e)||e instanceof ArrayBuffer||e instanceof Yc?r(e):Ls(e)?i(e):ki(e)?e:r(e);return yield z(yield*So(br(Lu(function(o){return qt(this,arguments,function*(){let l=null;do l=yield z(o.next(yield yield z(se(t,l))));while(!l.done)})}(s[Symbol.asyncIterator]()))))),yield z(new t)})}const Gv=t=>wy(Uint8Array,t);function Qc(t,e,n){if(t!==0){n=n.slice(0,e+1);for(let r=-1;++r<=e;)n[r]+=t}return n}function Jv(t,e){let n=0;const r=t.length;if(r!==e.length)return!1;if(r>0)do if(t[n]!==e[n])return!1;while(++n<r);return!0}const wt={fromIterable(t){return so(Xv(t))},fromAsyncIterable(t){return so(Zv(t))},fromDOMStream(t){return so(qv(t))},fromNodeStream(t){return so(tw(t))},toDOMStream(t,e){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(t,e){throw new Error('"toNodeStream" not available in this environment')}},so=t=>(t.next(),t);function*Xv(t){let e,n=!1,r=[],i,s,o,l=0;function a(){return s==="peek"?rn(r,o)[0]:([i,r,l]=rn(r,o),i)}({cmd:s,size:o}=yield null);const u=Kv(t)[Symbol.iterator]();try{do if({done:e,value:i}=Number.isNaN(o-l)?u.next():u.next(o-l),!e&&i.byteLength>0&&(r.push(i),l+=i.byteLength),e||o<=l)do({cmd:s,size:o}=yield a());while(o<l);while(!e)}catch(c){(n=!0)&&typeof u.throw=="function"&&u.throw(c)}finally{n===!1&&typeof u.return=="function"&&u.return(null)}return null}function Zv(t){return qt(this,arguments,function*(){let n,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?rn(i,l)[0]:([s,i,a]=rn(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=Gv(t)[Symbol.asyncIterator]();try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.next()):yield z(c.next(l-a)),!n&&s.byteLength>0&&(i.push(s),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(d){(r=!0)&&typeof c.throw=="function"&&(yield z(c.throw(d)))}finally{r===!1&&typeof c.return=="function"&&(yield z(c.return(new Uint8Array(0))))}return yield z(null)})}function qv(t){return qt(this,arguments,function*(){let n=!1,r=!1,i=[],s,o,l,a=0;function u(){return o==="peek"?rn(i,l)[0]:([s,i,a]=rn(i,l),s)}({cmd:o,size:l}=yield yield z(null));const c=new ew(t);try{do if({done:n,value:s}=Number.isNaN(l-a)?yield z(c.read()):yield z(c.read(l-a)),!n&&s.byteLength>0&&(i.push(K(s)),a+=s.byteLength),n||l<=a)do({cmd:o,size:l}=yield yield z(u()));while(l<a);while(!n)}catch(d){(r=!0)&&(yield z(c.cancel(d)))}finally{r===!1?yield z(c.cancel()):t.locked&&c.releaseLock()}return yield z(null)})}class ew{constructor(e){this.source=e,this.reader=null,this.reader=this.source.getReader(),this.reader.closed.catch(()=>{})}get closed(){return this.reader?this.reader.closed.catch(()=>{}):Promise.resolve()}releaseLock(){this.reader&&this.reader.releaseLock(),this.reader=null}cancel(e){return O(this,void 0,void 0,function*(){const{reader:n,source:r}=this;n&&(yield n.cancel(e).catch(()=>{})),r&&r.locked&&this.releaseLock()})}read(e){return O(this,void 0,void 0,function*(){if(e===0)return{done:this.reader==null,value:new Uint8Array(0)};const n=yield this.reader.read();return!n.done&&(n.value=K(n)),n})}}const Aa=(t,e)=>{const n=i=>r([e,i]);let r;return[e,n,new Promise(i=>(r=i)&&t.once(e,n))]};function tw(t){return qt(this,arguments,function*(){const n=[];let r="error",i=!1,s=null,o,l,a=0,u=[],c;function d(){return o==="peek"?rn(u,l)[0]:([c,u,a]=rn(u,l),c)}if({cmd:o,size:l}=yield yield z(null),t.isTTY)return yield yield z(new Uint8Array(0)),yield z(null);try{n[0]=Aa(t,"end"),n[1]=Aa(t,"error");do{if(n[2]=Aa(t,"readable"),[r,s]=yield z(Promise.race(n.map(g=>g[2]))),r==="error")break;if((i=r==="end")||(Number.isFinite(l-a)?(c=K(t.read(l-a)),c.byteLength<l-a&&(c=K(t.read()))):c=K(t.read()),c.byteLength>0&&(u.push(c),a+=c.byteLength)),i||l<=a)do({cmd:o,size:l}=yield yield z(d()));while(l<a)}while(!i)}finally{yield z(h(n,r==="error"?s:null))}return yield z(null);function h(g,v){return c=u=null,new Promise((S,J)=>{for(const[p,f]of g)t.off(p,f);try{const p=t.destroy;p&&p.call(t,v),v=void 0}catch(p){v=p||v}finally{v!=null?J(v):S()}})}})}var ut;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(ut||(ut={}));var ht;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(ht||(ht={}));var nt;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(nt||(nt={}));var Nn;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(Nn||(Nn={}));var G;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(G||(G={}));var Gn;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(Gn||(Gn={}));var X;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(X||(X={}));var y;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.Float=3]="Float",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct=13]="Struct",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Dictionary=-1]="Dictionary",t[t.Int8=-2]="Int8",t[t.Int16=-3]="Int16",t[t.Int32=-4]="Int32",t[t.Int64=-5]="Int64",t[t.Uint8=-6]="Uint8",t[t.Uint16=-7]="Uint16",t[t.Uint32=-8]="Uint32",t[t.Uint64=-9]="Uint64",t[t.Float16=-10]="Float16",t[t.Float32=-11]="Float32",t[t.Float64=-12]="Float64",t[t.DateDay=-13]="DateDay",t[t.DateMillisecond=-14]="DateMillisecond",t[t.TimestampSecond=-15]="TimestampSecond",t[t.TimestampMillisecond=-16]="TimestampMillisecond",t[t.TimestampMicrosecond=-17]="TimestampMicrosecond",t[t.TimestampNanosecond=-18]="TimestampNanosecond",t[t.TimeSecond=-19]="TimeSecond",t[t.TimeMillisecond=-20]="TimeMillisecond",t[t.TimeMicrosecond=-21]="TimeMicrosecond",t[t.TimeNanosecond=-22]="TimeNanosecond",t[t.DenseUnion=-23]="DenseUnion",t[t.SparseUnion=-24]="SparseUnion",t[t.IntervalDayTime=-25]="IntervalDayTime",t[t.IntervalYearMonth=-26]="IntervalYearMonth"})(y||(y={}));var un;(function(t){t[t.OFFSET=0]="OFFSET",t[t.DATA=1]="DATA",t[t.VALIDITY=2]="VALIDITY",t[t.TYPE=3]="TYPE"})(un||(un={}));const nw=void 0;function Ss(t){if(t===null)return"null";if(t===nw)return"undefined";switch(typeof t){case"number":return`${t}`;case"bigint":return`${t}`;case"string":return`"${t}"`}return typeof t[Symbol.toPrimitive]=="function"?t[Symbol.toPrimitive]("string"):ArrayBuffer.isView(t)?t instanceof As||t instanceof Ts?`[${[...t].map(e=>Ss(e))}]`:`[${t}]`:ArrayBuffer.isView(t)?`[${t}]`:JSON.stringify(t,(e,n)=>typeof n=="bigint"?`${n}`:n)}const rw=Symbol.for("isArrowBigNum");function Pt(t,...e){return e.length===0?Object.setPrototypeOf(se(this.TypedArray,t),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(t,...e),this.constructor.prototype)}Pt.prototype[rw]=!0;Pt.prototype.toJSON=function(){return`"${Ir(this)}"`};Pt.prototype.valueOf=function(){return _y(this)};Pt.prototype.toString=function(){return Ir(this)};Pt.prototype[Symbol.toPrimitive]=function(t="default"){switch(t){case"number":return _y(this);case"string":return Ir(this);case"default":return Mu(this)}return Ir(this)};function ii(...t){return Pt.apply(this,t)}function si(...t){return Pt.apply(this,t)}function bs(...t){return Pt.apply(this,t)}Object.setPrototypeOf(ii.prototype,Object.create(Int32Array.prototype));Object.setPrototypeOf(si.prototype,Object.create(Uint32Array.prototype));Object.setPrototypeOf(bs.prototype,Object.create(Uint32Array.prototype));Object.assign(ii.prototype,Pt.prototype,{constructor:ii,signed:!0,TypedArray:Int32Array,BigIntArray:As});Object.assign(si.prototype,Pt.prototype,{constructor:si,signed:!1,TypedArray:Uint32Array,BigIntArray:Ts});Object.assign(bs.prototype,Pt.prototype,{constructor:bs,signed:!0,TypedArray:Uint32Array,BigIntArray:Ts});function _y(t){const{buffer:e,byteOffset:n,length:r,signed:i}=t,s=new Ts(e,n,r),o=i&&s[s.length-1]&BigInt(1)<<BigInt(63);let l=BigInt(o?1:0),a=BigInt(0);if(o){for(const u of s)l+=~u*(BigInt(1)<<BigInt(32)*a++);l*=BigInt(-1)}else for(const u of s)l+=u*(BigInt(1)<<BigInt(32)*a++);return l}let Ir,Mu;jv?(Mu=t=>t.byteLength===8?new t.BigIntArray(t.buffer,t.byteOffset,1)[0]:Ta(t),Ir=t=>t.byteLength===8?`${new t.BigIntArray(t.buffer,t.byteOffset,1)[0]}`:Ta(t)):(Ir=Ta,Mu=Ir);function Ta(t){let e="";const n=new Uint32Array(2);let r=new Uint16Array(t.buffer,t.byteOffset,t.byteLength/2);const i=new Uint32Array((r=new Uint16Array(r).reverse()).buffer);let s=-1;const o=r.length-1;do{for(n[0]=r[s=0];s<o;)r[s++]=n[1]=n[0]/10,n[0]=(n[0]-n[1]*10<<16)+r[s];r[s]=n[1]=n[0]/10,n[0]=n[0]-n[1]*10,e=`${n[0]}${e}`}while(i[0]||i[1]||i[2]||i[3]);return e??"0"}class Kc{static new(e,n){switch(n){case!0:return new ii(e);case!1:return new si(e)}switch(e.constructor){case Int8Array:case Int16Array:case Int32Array:case As:return new ii(e)}return e.byteLength===16?new bs(e):new si(e)}static signed(e){return new ii(e)}static unsigned(e){return new si(e)}static decimal(e){return new bs(e)}constructor(e,n){return Kc.new(e,n)}}var Sy,by,Iy,Ny,xy,By,ky,Fy,Oy,Ey,Dy,Cy,Ay,Ty,Ly,My,Ry,Uy,Py;class E{static isNull(e){return(e==null?void 0:e.typeId)===y.Null}static isInt(e){return(e==null?void 0:e.typeId)===y.Int}static isFloat(e){return(e==null?void 0:e.typeId)===y.Float}static isBinary(e){return(e==null?void 0:e.typeId)===y.Binary}static isUtf8(e){return(e==null?void 0:e.typeId)===y.Utf8}static isBool(e){return(e==null?void 0:e.typeId)===y.Bool}static isDecimal(e){return(e==null?void 0:e.typeId)===y.Decimal}static isDate(e){return(e==null?void 0:e.typeId)===y.Date}static isTime(e){return(e==null?void 0:e.typeId)===y.Time}static isTimestamp(e){return(e==null?void 0:e.typeId)===y.Timestamp}static isInterval(e){return(e==null?void 0:e.typeId)===y.Interval}static isList(e){return(e==null?void 0:e.typeId)===y.List}static isStruct(e){return(e==null?void 0:e.typeId)===y.Struct}static isUnion(e){return(e==null?void 0:e.typeId)===y.Union}static isFixedSizeBinary(e){return(e==null?void 0:e.typeId)===y.FixedSizeBinary}static isFixedSizeList(e){return(e==null?void 0:e.typeId)===y.FixedSizeList}static isMap(e){return(e==null?void 0:e.typeId)===y.Map}static isDictionary(e){return(e==null?void 0:e.typeId)===y.Dictionary}static isDenseUnion(e){return E.isUnion(e)&&e.mode===ht.Dense}static isSparseUnion(e){return E.isUnion(e)&&e.mode===ht.Sparse}get typeId(){return y.NONE}}Sy=Symbol.toStringTag;E[Sy]=(t=>(t.children=null,t.ArrayType=Array,t[Symbol.toStringTag]="DataType"))(E.prototype);let Jn=class extends E{toString(){return"Null"}get typeId(){return y.Null}};by=Symbol.toStringTag;Jn[by]=(t=>t[Symbol.toStringTag]="Null")(Jn.prototype);class Xn extends E{constructor(e,n){super(),this.isSigned=e,this.bitWidth=n}get typeId(){return y.Int}get ArrayType(){switch(this.bitWidth){case 8:return this.isSigned?Int8Array:Uint8Array;case 16:return this.isSigned?Int16Array:Uint16Array;case 32:return this.isSigned?Int32Array:Uint32Array;case 64:return this.isSigned?As:Ts}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}Iy=Symbol.toStringTag;Xn[Iy]=(t=>(t.isSigned=null,t.bitWidth=null,t[Symbol.toStringTag]="Int"))(Xn.prototype);class Is extends Xn{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Is.prototype,"ArrayType",{value:Int32Array});class Ns extends E{constructor(e){super(),this.precision=e}get typeId(){return y.Float}get ArrayType(){switch(this.precision){case nt.HALF:return Uint16Array;case nt.SINGLE:return Float32Array;case nt.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}Ny=Symbol.toStringTag;Ns[Ny]=(t=>(t.precision=null,t[Symbol.toStringTag]="Float"))(Ns.prototype);let Zo=class extends E{constructor(){super()}get typeId(){return y.Binary}toString(){return"Binary"}};xy=Symbol.toStringTag;Zo[xy]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Binary"))(Zo.prototype);let qo=class extends E{constructor(){super()}get typeId(){return y.Utf8}toString(){return"Utf8"}};By=Symbol.toStringTag;qo[By]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Utf8"))(qo.prototype);let el=class extends E{constructor(){super()}get typeId(){return y.Bool}toString(){return"Bool"}};ky=Symbol.toStringTag;el[ky]=(t=>(t.ArrayType=Uint8Array,t[Symbol.toStringTag]="Bool"))(el.prototype);let tl=class extends E{constructor(e,n,r=128){super(),this.scale=e,this.precision=n,this.bitWidth=r}get typeId(){return y.Decimal}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}};Fy=Symbol.toStringTag;tl[Fy]=(t=>(t.scale=null,t.precision=null,t.ArrayType=Uint32Array,t[Symbol.toStringTag]="Decimal"))(tl.prototype);class nl extends E{constructor(e){super(),this.unit=e}get typeId(){return y.Date}toString(){return`Date${(this.unit+1)*32}<${Nn[this.unit]}>`}}Oy=Symbol.toStringTag;nl[Oy]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Date"))(nl.prototype);class xs extends E{constructor(e,n){super(),this.unit=e,this.bitWidth=n}get typeId(){return y.Time}toString(){return`Time${this.bitWidth}<${G[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return As}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}Ey=Symbol.toStringTag;xs[Ey]=(t=>(t.unit=null,t.bitWidth=null,t[Symbol.toStringTag]="Time"))(xs.prototype);class rl extends E{constructor(e,n){super(),this.unit=e,this.timezone=n}get typeId(){return y.Timestamp}toString(){return`Timestamp<${G[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}Dy=Symbol.toStringTag;rl[Dy]=(t=>(t.unit=null,t.timezone=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Timestamp"))(rl.prototype);class il extends E{constructor(e){super(),this.unit=e}get typeId(){return y.Interval}toString(){return`Interval<${Gn[this.unit]}>`}}Cy=Symbol.toStringTag;il[Cy]=(t=>(t.unit=null,t.ArrayType=Int32Array,t[Symbol.toStringTag]="Interval"))(il.prototype);let sl=class extends E{constructor(e){super(),this.children=[e]}get typeId(){return y.List}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}};Ay=Symbol.toStringTag;sl[Ay]=(t=>(t.children=null,t[Symbol.toStringTag]="List"))(sl.prototype);class Ve extends E{constructor(e){super(),this.children=e}get typeId(){return y.Struct}toString(){return`Struct<{${this.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}Ty=Symbol.toStringTag;Ve[Ty]=(t=>(t.children=null,t[Symbol.toStringTag]="Struct"))(Ve.prototype);class ol extends E{constructor(e,n,r){super(),this.mode=e,this.children=r,this.typeIds=n=Int32Array.from(n),this.typeIdToChildIndex=n.reduce((i,s,o)=>(i[s]=o)&&i||i,Object.create(null))}get typeId(){return y.Union}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(e=>`${e.type}`).join(" | ")}>`}}Ly=Symbol.toStringTag;ol[Ly]=(t=>(t.mode=null,t.typeIds=null,t.children=null,t.typeIdToChildIndex=null,t.ArrayType=Int8Array,t[Symbol.toStringTag]="Union"))(ol.prototype);let ll=class extends E{constructor(e){super(),this.byteWidth=e}get typeId(){return y.FixedSizeBinary}toString(){return`FixedSizeBinary[${this.byteWidth}]`}};My=Symbol.toStringTag;ll[My]=(t=>(t.byteWidth=null,t.ArrayType=Uint8Array,t[Symbol.toStringTag]="FixedSizeBinary"))(ll.prototype);let al=class extends E{constructor(e,n){super(),this.listSize=e,this.children=[n]}get typeId(){return y.FixedSizeList}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}toString(){return`FixedSizeList[${this.listSize}]<${this.valueType}>`}};Ry=Symbol.toStringTag;al[Ry]=(t=>(t.children=null,t.listSize=null,t[Symbol.toStringTag]="FixedSizeList"))(al.prototype);class ul extends E{constructor(e,n=!1){super(),this.children=[e],this.keysSorted=n}get typeId(){return y.Map}get keyType(){return this.children[0].type.children[0].type}get valueType(){return this.children[0].type.children[1].type}get childType(){return this.children[0].type}toString(){return`Map<{${this.children[0].type.children.map(e=>`${e.name}:${e.type}`).join(", ")}}>`}}Uy=Symbol.toStringTag;ul[Uy]=(t=>(t.children=null,t.keysSorted=null,t[Symbol.toStringTag]="Map_"))(ul.prototype);const iw=(t=>()=>++t)(-1);class mi extends E{constructor(e,n,r,i){super(),this.indices=n,this.dictionary=e,this.isOrdered=i||!1,this.id=r==null?iw():typeof r=="number"?r:r.low}get typeId(){return y.Dictionary}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}Py=Symbol.toStringTag;mi[Py]=(t=>(t.id=null,t.indices=null,t.isOrdered=null,t.dictionary=null,t[Symbol.toStringTag]="Dictionary"))(mi.prototype);function cn(t){const e=t;switch(t.typeId){case y.Decimal:return t.bitWidth/32;case y.Timestamp:return 2;case y.Date:return 1+e.unit;case y.Interval:return 1+e.unit;case y.FixedSizeList:return e.listSize;case y.FixedSizeBinary:return e.byteWidth;default:return 1}}class Y{visitMany(e,...n){return e.map((r,i)=>this.visit(r,...n.map(s=>s[i])))}visit(...e){return this.getVisitFn(e[0],!1).apply(this,e)}getVisitFn(e,n=!0){return sw(this,e,n)}getVisitFnByTypeId(e,n=!0){return Lr(this,e,n)}visitNull(e,...n){return null}visitBool(e,...n){return null}visitInt(e,...n){return null}visitFloat(e,...n){return null}visitUtf8(e,...n){return null}visitBinary(e,...n){return null}visitFixedSizeBinary(e,...n){return null}visitDate(e,...n){return null}visitTimestamp(e,...n){return null}visitTime(e,...n){return null}visitDecimal(e,...n){return null}visitList(e,...n){return null}visitStruct(e,...n){return null}visitUnion(e,...n){return null}visitDictionary(e,...n){return null}visitInterval(e,...n){return null}visitFixedSizeList(e,...n){return null}visitMap(e,...n){return null}}function sw(t,e,n=!0){return typeof e=="number"?Lr(t,e,n):typeof e=="string"&&e in y?Lr(t,y[e],n):e&&e instanceof E?Lr(t,Cf(e),n):e!=null&&e.type&&e.type instanceof E?Lr(t,Cf(e.type),n):Lr(t,y.NONE,n)}function Lr(t,e,n=!0){let r=null;switch(e){case y.Null:r=t.visitNull;break;case y.Bool:r=t.visitBool;break;case y.Int:r=t.visitInt;break;case y.Int8:r=t.visitInt8||t.visitInt;break;case y.Int16:r=t.visitInt16||t.visitInt;break;case y.Int32:r=t.visitInt32||t.visitInt;break;case y.Int64:r=t.visitInt64||t.visitInt;break;case y.Uint8:r=t.visitUint8||t.visitInt;break;case y.Uint16:r=t.visitUint16||t.visitInt;break;case y.Uint32:r=t.visitUint32||t.visitInt;break;case y.Uint64:r=t.visitUint64||t.visitInt;break;case y.Float:r=t.visitFloat;break;case y.Float16:r=t.visitFloat16||t.visitFloat;break;case y.Float32:r=t.visitFloat32||t.visitFloat;break;case y.Float64:r=t.visitFloat64||t.visitFloat;break;case y.Utf8:r=t.visitUtf8;break;case y.Binary:r=t.visitBinary;break;case y.FixedSizeBinary:r=t.visitFixedSizeBinary;break;case y.Date:r=t.visitDate;break;case y.DateDay:r=t.visitDateDay||t.visitDate;break;case y.DateMillisecond:r=t.visitDateMillisecond||t.visitDate;break;case y.Timestamp:r=t.visitTimestamp;break;case y.TimestampSecond:r=t.visitTimestampSecond||t.visitTimestamp;break;case y.TimestampMillisecond:r=t.visitTimestampMillisecond||t.visitTimestamp;break;case y.TimestampMicrosecond:r=t.visitTimestampMicrosecond||t.visitTimestamp;break;case y.TimestampNanosecond:r=t.visitTimestampNanosecond||t.visitTimestamp;break;case y.Time:r=t.visitTime;break;case y.TimeSecond:r=t.visitTimeSecond||t.visitTime;break;case y.TimeMillisecond:r=t.visitTimeMillisecond||t.visitTime;break;case y.TimeMicrosecond:r=t.visitTimeMicrosecond||t.visitTime;break;case y.TimeNanosecond:r=t.visitTimeNanosecond||t.visitTime;break;case y.Decimal:r=t.visitDecimal;break;case y.List:r=t.visitList;break;case y.Struct:r=t.visitStruct;break;case y.Union:r=t.visitUnion;break;case y.DenseUnion:r=t.visitDenseUnion||t.visitUnion;break;case y.SparseUnion:r=t.visitSparseUnion||t.visitUnion;break;case y.Dictionary:r=t.visitDictionary;break;case y.Interval:r=t.visitInterval;break;case y.IntervalDayTime:r=t.visitIntervalDayTime||t.visitInterval;break;case y.IntervalYearMonth:r=t.visitIntervalYearMonth||t.visitInterval;break;case y.FixedSizeList:r=t.visitFixedSizeList;break;case y.Map:r=t.visitMap;break}if(typeof r=="function")return r;if(!n)return()=>null;throw new Error(`Unrecognized type '${y[e]}'`)}function Cf(t){switch(t.typeId){case y.Null:return y.Null;case y.Int:{const{bitWidth:e,isSigned:n}=t;switch(e){case 8:return n?y.Int8:y.Uint8;case 16:return n?y.Int16:y.Uint16;case 32:return n?y.Int32:y.Uint32;case 64:return n?y.Int64:y.Uint64}return y.Int}case y.Float:switch(t.precision){case nt.HALF:return y.Float16;case nt.SINGLE:return y.Float32;case nt.DOUBLE:return y.Float64}return y.Float;case y.Binary:return y.Binary;case y.Utf8:return y.Utf8;case y.Bool:return y.Bool;case y.Decimal:return y.Decimal;case y.Time:switch(t.unit){case G.SECOND:return y.TimeSecond;case G.MILLISECOND:return y.TimeMillisecond;case G.MICROSECOND:return y.TimeMicrosecond;case G.NANOSECOND:return y.TimeNanosecond}return y.Time;case y.Timestamp:switch(t.unit){case G.SECOND:return y.TimestampSecond;case G.MILLISECOND:return y.TimestampMillisecond;case G.MICROSECOND:return y.TimestampMicrosecond;case G.NANOSECOND:return y.TimestampNanosecond}return y.Timestamp;case y.Date:switch(t.unit){case Nn.DAY:return y.DateDay;case Nn.MILLISECOND:return y.DateMillisecond}return y.Date;case y.Interval:switch(t.unit){case Gn.DAY_TIME:return y.IntervalDayTime;case Gn.YEAR_MONTH:return y.IntervalYearMonth}return y.Interval;case y.Map:return y.Map;case y.List:return y.List;case y.Struct:return y.Struct;case y.Union:switch(t.mode){case ht.Dense:return y.DenseUnion;case ht.Sparse:return y.SparseUnion}return y.Union;case y.FixedSizeBinary:return y.FixedSizeBinary;case y.FixedSizeList:return y.FixedSizeList;case y.Dictionary:return y.Dictionary}throw new Error(`Unrecognized type '${y[t.typeId]}'`)}Y.prototype.visitInt8=null;Y.prototype.visitInt16=null;Y.prototype.visitInt32=null;Y.prototype.visitInt64=null;Y.prototype.visitUint8=null;Y.prototype.visitUint16=null;Y.prototype.visitUint32=null;Y.prototype.visitUint64=null;Y.prototype.visitFloat16=null;Y.prototype.visitFloat32=null;Y.prototype.visitFloat64=null;Y.prototype.visitDateDay=null;Y.prototype.visitDateMillisecond=null;Y.prototype.visitTimestampSecond=null;Y.prototype.visitTimestampMillisecond=null;Y.prototype.visitTimestampMicrosecond=null;Y.prototype.visitTimestampNanosecond=null;Y.prototype.visitTimeSecond=null;Y.prototype.visitTimeMillisecond=null;Y.prototype.visitTimeMicrosecond=null;Y.prototype.visitTimeNanosecond=null;Y.prototype.visitDenseUnion=null;Y.prototype.visitSparseUnion=null;Y.prototype.visitIntervalDayTime=null;Y.prototype.visitIntervalYearMonth=null;const zy=new Float64Array(1),Tr=new Uint32Array(zy.buffer);function jy(t){const e=(t&31744)>>10,n=(t&1023)/1024,r=Math.pow(-1,(t&32768)>>15);switch(e){case 31:return r*(n?Number.NaN:1/0);case 0:return r*(n?6103515625e-14*n:0)}return r*Math.pow(2,e-15)*(1+n)}function ow(t){if(t!==t)return 32256;zy[0]=t;const e=(Tr[1]&2147483648)>>16&65535;let n=Tr[1]&2146435072,r=0;return n>=1089470464?Tr[0]>0?n=31744:(n=(n&2080374784)>>16,r=(Tr[1]&1048575)>>10):n<=1056964608?(r=1048576+(Tr[1]&1048575),r=1048576+(r<<(n>>20)-998)>>21,n=0):(n=n-1056964608>>10,r=(Tr[1]&1048575)+512>>10),e|n|r&65535}class L extends Y{}function U(t){return(e,n,r)=>{if(e.setValid(n,r!=null))return t(e,n,r)}}const lw=(t,e,n)=>{t[e]=Math.trunc(n/864e5)},Gc=(t,e,n)=>{t[e]=Math.trunc(n%4294967296),t[e+1]=Math.trunc(n/4294967296)},aw=(t,e,n)=>{t[e]=Math.trunc(n*1e3%4294967296),t[e+1]=Math.trunc(n*1e3/4294967296)},uw=(t,e,n)=>{t[e]=Math.trunc(n*1e6%4294967296),t[e+1]=Math.trunc(n*1e6/4294967296)},Vy=(t,e,n,r)=>{if(n+1<e.length){const{[n]:i,[n+1]:s}=e;t.set(r.subarray(0,s-i),i)}},cw=({offset:t,values:e},n,r)=>{const i=t+n;r?e[i>>3]|=1<<i%8:e[i>>3]&=~(1<<i%8)},Bn=({values:t},e,n)=>{t[e]=n},Jc=({values:t},e,n)=>{t[e]=n},$y=({values:t},e,n)=>{t[e]=ow(n)},dw=(t,e,n)=>{switch(t.type.precision){case nt.HALF:return $y(t,e,n);case nt.SINGLE:case nt.DOUBLE:return Jc(t,e,n)}},Wy=({values:t},e,n)=>{lw(t,e,n.valueOf())},Hy=({values:t},e,n)=>{Gc(t,e*2,n.valueOf())},fw=({stride:t,values:e},n,r)=>{e.set(r.subarray(0,t),t*n)},hw=({values:t,valueOffsets:e},n,r)=>Vy(t,e,n,r),pw=({values:t,valueOffsets:e},n,r)=>{Vy(t,e,n,Wc(r))},yw=(t,e,n)=>{t.type.unit===Nn.DAY?Wy(t,e,n):Hy(t,e,n)},Yy=({values:t},e,n)=>Gc(t,e*2,n/1e3),Qy=({values:t},e,n)=>Gc(t,e*2,n),Ky=({values:t},e,n)=>aw(t,e*2,n),Gy=({values:t},e,n)=>uw(t,e*2,n),mw=(t,e,n)=>{switch(t.type.unit){case G.SECOND:return Yy(t,e,n);case G.MILLISECOND:return Qy(t,e,n);case G.MICROSECOND:return Ky(t,e,n);case G.NANOSECOND:return Gy(t,e,n)}},Jy=({values:t},e,n)=>{t[e]=n},Xy=({values:t},e,n)=>{t[e]=n},Zy=({values:t},e,n)=>{t[e]=n},qy=({values:t},e,n)=>{t[e]=n},gw=(t,e,n)=>{switch(t.type.unit){case G.SECOND:return Jy(t,e,n);case G.MILLISECOND:return Xy(t,e,n);case G.MICROSECOND:return Zy(t,e,n);case G.NANOSECOND:return qy(t,e,n)}},vw=({values:t,stride:e},n,r)=>{t.set(r.subarray(0,e),e*n)},ww=(t,e,n)=>{const r=t.children[0],i=t.valueOffsets,s=Ft.getVisitFn(r);if(Array.isArray(n))for(let o=-1,l=i[e],a=i[e+1];l<a;)s(r,l++,n[++o]);else for(let o=-1,l=i[e],a=i[e+1];l<a;)s(r,l++,n.get(++o))},_w=(t,e,n)=>{const r=t.children[0],{valueOffsets:i}=t,s=Ft.getVisitFn(r);let{[e]:o,[e+1]:l}=i;const a=n instanceof Map?n.entries():Object.entries(n);for(const u of a)if(s(r,o,u),++o>=l)break},Sw=(t,e)=>(n,r,i,s)=>r&&n(r,t,e[s]),bw=(t,e)=>(n,r,i,s)=>r&&n(r,t,e.get(s)),Iw=(t,e)=>(n,r,i,s)=>r&&n(r,t,e.get(i.name)),Nw=(t,e)=>(n,r,i,s)=>r&&n(r,t,e[i.name]),xw=(t,e,n)=>{const r=t.type.children.map(s=>Ft.getVisitFn(s.type)),i=n instanceof Map?Iw(e,n):n instanceof Z?bw(e,n):Array.isArray(n)?Sw(e,n):Nw(e,n);t.type.children.forEach((s,o)=>i(r[o],t.children[o],s,o))},Bw=(t,e,n)=>{t.type.mode===ht.Dense?em(t,e,n):tm(t,e,n)},em=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];Ft.visit(i,t.valueOffsets[e],n)},tm=(t,e,n)=>{const r=t.type.typeIdToChildIndex[t.typeIds[e]],i=t.children[r];Ft.visit(i,e,n)},kw=(t,e,n)=>{var r;(r=t.dictionary)===null||r===void 0||r.set(t.values[e],n)},Fw=(t,e,n)=>{t.type.unit===Gn.DAY_TIME?nm(t,e,n):rm(t,e,n)},nm=({values:t},e,n)=>{t.set(n.subarray(0,2),2*e)},rm=({values:t},e,n)=>{t[e]=n[0]*12+n[1]%12},Ow=(t,e,n)=>{const{stride:r}=t,i=t.children[0],s=Ft.getVisitFn(i);if(Array.isArray(n))for(let o=-1,l=e*r;++o<r;)s(i,l+o,n[o]);else for(let o=-1,l=e*r;++o<r;)s(i,l+o,n.get(o))};L.prototype.visitBool=U(cw);L.prototype.visitInt=U(Bn);L.prototype.visitInt8=U(Bn);L.prototype.visitInt16=U(Bn);L.prototype.visitInt32=U(Bn);L.prototype.visitInt64=U(Bn);L.prototype.visitUint8=U(Bn);L.prototype.visitUint16=U(Bn);L.prototype.visitUint32=U(Bn);L.prototype.visitUint64=U(Bn);L.prototype.visitFloat=U(dw);L.prototype.visitFloat16=U($y);L.prototype.visitFloat32=U(Jc);L.prototype.visitFloat64=U(Jc);L.prototype.visitUtf8=U(pw);L.prototype.visitBinary=U(hw);L.prototype.visitFixedSizeBinary=U(fw);L.prototype.visitDate=U(yw);L.prototype.visitDateDay=U(Wy);L.prototype.visitDateMillisecond=U(Hy);L.prototype.visitTimestamp=U(mw);L.prototype.visitTimestampSecond=U(Yy);L.prototype.visitTimestampMillisecond=U(Qy);L.prototype.visitTimestampMicrosecond=U(Ky);L.prototype.visitTimestampNanosecond=U(Gy);L.prototype.visitTime=U(gw);L.prototype.visitTimeSecond=U(Jy);L.prototype.visitTimeMillisecond=U(Xy);L.prototype.visitTimeMicrosecond=U(Zy);L.prototype.visitTimeNanosecond=U(qy);L.prototype.visitDecimal=U(vw);L.prototype.visitList=U(ww);L.prototype.visitStruct=U(xw);L.prototype.visitUnion=U(Bw);L.prototype.visitDenseUnion=U(em);L.prototype.visitSparseUnion=U(tm);L.prototype.visitDictionary=U(kw);L.prototype.visitInterval=U(Fw);L.prototype.visitIntervalDayTime=U(nm);L.prototype.visitIntervalYearMonth=U(rm);L.prototype.visitFixedSizeList=U(Ow);L.prototype.visitMap=U(_w);const Ft=new L,At=Symbol.for("parent"),oi=Symbol.for("rowIndex");class Xc{constructor(e,n){return this[At]=e,this[oi]=n,new Proxy(this,new Dw)}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[oi],n=this[At],r=n.type.children,i={};for(let s=-1,o=r.length;++s<o;)i[r[s].name]=it.visit(n.children[s],e);return i}toString(){return`{${[...this].map(([e,n])=>`${Ss(e)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new Ew(this[At],this[oi])}}class Ew{constructor(e,n){this.childIndex=0,this.children=e.children,this.rowIndex=n,this.childFields=e.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const e=this.childIndex;return e<this.numChildren?(this.childIndex=e+1,{done:!1,value:[this.childFields[e].name,it.visit(this.children[e],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(Xc.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[At]:{writable:!0,enumerable:!1,configurable:!1,value:null},[oi]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class Dw{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[At].type.children.map(n=>n.name)}has(e,n){return e[At].type.children.findIndex(r=>r.name===n)!==-1}getOwnPropertyDescriptor(e,n){if(e[At].type.children.findIndex(r=>r.name===n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[At].type.children.findIndex(i=>i.name===n);if(r!==-1){const i=it.visit(e[At].children[r],e[oi]);return Reflect.set(e,n,i),i}}set(e,n,r){const i=e[At].type.children.findIndex(s=>s.name===n);return i!==-1?(Ft.visit(e[At].children[i],e[oi],r),Reflect.set(e,n,r)):Reflect.has(e,n)||typeof n=="symbol"?Reflect.set(e,n,r):!1}}class D extends Y{}function M(t){return(e,n)=>e.getValid(n)?t(e,n):null}const Cw=(t,e)=>864e5*t[e],Zc=(t,e)=>4294967296*t[e+1]+(t[e]>>>0),Aw=(t,e)=>4294967296*(t[e+1]/1e3)+(t[e]>>>0)/1e3,Tw=(t,e)=>4294967296*(t[e+1]/1e6)+(t[e]>>>0)/1e6,im=t=>new Date(t),Lw=(t,e)=>im(Cw(t,e)),Mw=(t,e)=>im(Zc(t,e)),Rw=(t,e)=>null,sm=(t,e,n)=>{if(n+1>=e.length)return null;const r=e[n],i=e[n+1];return t.subarray(r,i)},Uw=({offset:t,values:e},n)=>{const r=t+n;return(e[r>>3]&1<<r%8)!==0},om=({values:t},e)=>Lw(t,e),lm=({values:t},e)=>Mw(t,e*2),rr=({stride:t,values:e},n)=>e[t*n],Pw=({stride:t,values:e},n)=>jy(e[t*n]),am=({values:t},e)=>t[e],zw=({stride:t,values:e},n)=>e.subarray(t*n,t*(n+1)),jw=({values:t,valueOffsets:e},n)=>sm(t,e,n),Vw=({values:t,valueOffsets:e},n)=>{const r=sm(t,e,n);return r!==null?Au(r):null},$w=({values:t},e)=>t[e],Ww=({type:t,values:e},n)=>t.precision!==nt.HALF?e[n]:jy(e[n]),Hw=(t,e)=>t.type.unit===Nn.DAY?om(t,e):lm(t,e),um=({values:t},e)=>1e3*Zc(t,e*2),cm=({values:t},e)=>Zc(t,e*2),dm=({values:t},e)=>Aw(t,e*2),fm=({values:t},e)=>Tw(t,e*2),Yw=(t,e)=>{switch(t.type.unit){case G.SECOND:return um(t,e);case G.MILLISECOND:return cm(t,e);case G.MICROSECOND:return dm(t,e);case G.NANOSECOND:return fm(t,e)}},hm=({values:t},e)=>t[e],pm=({values:t},e)=>t[e],ym=({values:t},e)=>t[e],mm=({values:t},e)=>t[e],Qw=(t,e)=>{switch(t.type.unit){case G.SECOND:return hm(t,e);case G.MILLISECOND:return pm(t,e);case G.MICROSECOND:return ym(t,e);case G.NANOSECOND:return mm(t,e)}},Kw=({values:t,stride:e},n)=>Kc.decimal(t.subarray(e*n,e*(n+1))),Gw=(t,e)=>{const{valueOffsets:n,stride:r,children:i}=t,{[e*r]:s,[e*r+1]:o}=n,a=i[0].slice(s,o-s);return new Z([a])},Jw=(t,e)=>{const{valueOffsets:n,children:r}=t,{[e]:i,[e+1]:s}=n,o=r[0];return new qc(o.slice(i,s-i))},Xw=(t,e)=>new Xc(t,e),Zw=(t,e)=>t.type.mode===ht.Dense?gm(t,e):vm(t,e),gm=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return it.visit(r,t.valueOffsets[e])},vm=(t,e)=>{const n=t.type.typeIdToChildIndex[t.typeIds[e]],r=t.children[n];return it.visit(r,e)},qw=(t,e)=>{var n;return(n=t.dictionary)===null||n===void 0?void 0:n.get(t.values[e])},e_=(t,e)=>t.type.unit===Gn.DAY_TIME?wm(t,e):_m(t,e),wm=({values:t},e)=>t.subarray(2*e,2*(e+1)),_m=({values:t},e)=>{const n=t[e],r=new Int32Array(2);return r[0]=Math.trunc(n/12),r[1]=Math.trunc(n%12),r},t_=(t,e)=>{const{stride:n,children:r}=t,s=r[0].slice(e*n,n);return new Z([s])};D.prototype.visitNull=M(Rw);D.prototype.visitBool=M(Uw);D.prototype.visitInt=M($w);D.prototype.visitInt8=M(rr);D.prototype.visitInt16=M(rr);D.prototype.visitInt32=M(rr);D.prototype.visitInt64=M(am);D.prototype.visitUint8=M(rr);D.prototype.visitUint16=M(rr);D.prototype.visitUint32=M(rr);D.prototype.visitUint64=M(am);D.prototype.visitFloat=M(Ww);D.prototype.visitFloat16=M(Pw);D.prototype.visitFloat32=M(rr);D.prototype.visitFloat64=M(rr);D.prototype.visitUtf8=M(Vw);D.prototype.visitBinary=M(jw);D.prototype.visitFixedSizeBinary=M(zw);D.prototype.visitDate=M(Hw);D.prototype.visitDateDay=M(om);D.prototype.visitDateMillisecond=M(lm);D.prototype.visitTimestamp=M(Yw);D.prototype.visitTimestampSecond=M(um);D.prototype.visitTimestampMillisecond=M(cm);D.prototype.visitTimestampMicrosecond=M(dm);D.prototype.visitTimestampNanosecond=M(fm);D.prototype.visitTime=M(Qw);D.prototype.visitTimeSecond=M(hm);D.prototype.visitTimeMillisecond=M(pm);D.prototype.visitTimeMicrosecond=M(ym);D.prototype.visitTimeNanosecond=M(mm);D.prototype.visitDecimal=M(Kw);D.prototype.visitList=M(Gw);D.prototype.visitStruct=M(Xw);D.prototype.visitUnion=M(Zw);D.prototype.visitDenseUnion=M(gm);D.prototype.visitSparseUnion=M(vm);D.prototype.visitDictionary=M(qw);D.prototype.visitInterval=M(e_);D.prototype.visitIntervalDayTime=M(wm);D.prototype.visitIntervalYearMonth=M(_m);D.prototype.visitFixedSizeList=M(t_);D.prototype.visitMap=M(Jw);const it=new D,Qt=Symbol.for("keys"),li=Symbol.for("vals");class qc{constructor(e){return this[Qt]=new Z([e.children[0]]).memoize(),this[li]=e.children[1],new Proxy(this,new r_)}[Symbol.iterator](){return new n_(this[Qt],this[li])}get size(){return this[Qt].length}toArray(){return Object.values(this.toJSON())}toJSON(){const e=this[Qt],n=this[li],r={};for(let i=-1,s=e.length;++i<s;)r[e.get(i)]=it.visit(n,i);return r}toString(){return`{${[...this].map(([e,n])=>`${Ss(e)}: ${Ss(n)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class n_{constructor(e,n){this.keys=e,this.vals=n,this.keyIndex=0,this.numKeys=e.length}[Symbol.iterator](){return this}next(){const e=this.keyIndex;return e===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(e),it.visit(this.vals,e)]})}}class r_{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(e){return e[Qt].toArray().map(String)}has(e,n){return e[Qt].includes(n)}getOwnPropertyDescriptor(e,n){if(e[Qt].indexOf(n)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(e,n){if(Reflect.has(e,n))return e[n];const r=e[Qt].indexOf(n);if(r!==-1){const i=it.visit(Reflect.get(e,li),r);return Reflect.set(e,n,i),i}}set(e,n,r){const i=e[Qt].indexOf(n);return i!==-1?(Ft.visit(Reflect.get(e,li),i,r),Reflect.set(e,n,r)):Reflect.has(e,n)?Reflect.set(e,n,r):!1}}Object.defineProperties(qc.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[Qt]:{writable:!0,enumerable:!1,configurable:!1,value:null},[li]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let Af;function Sm(t,e,n,r){const{length:i=0}=t;let s=typeof e!="number"?0:e,o=typeof n!="number"?i:n;return s<0&&(s=(s%i+i)%i),o<0&&(o=(o%i+i)%i),o<s&&(Af=s,s=o,o=Af),o>i&&(o=i),r?r(t,s,o):[s,o]}const Tf=t=>t!==t;function Fi(t){if(typeof t!=="object"||t===null)return Tf(t)?Tf:n=>n===t;if(t instanceof Date){const n=t.valueOf();return r=>r instanceof Date?r.valueOf()===n:!1}return ArrayBuffer.isView(t)?n=>n?Jv(t,n):!1:t instanceof Map?s_(t):Array.isArray(t)?i_(t):t instanceof Z?o_(t):l_(t,!0)}function i_(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Fi(t[n]);return ta(e)}function s_(t){let e=-1;const n=[];for(const r of t.values())n[++e]=Fi(r);return ta(n)}function o_(t){const e=[];for(let n=-1,r=t.length;++n<r;)e[n]=Fi(t.get(n));return ta(e)}function l_(t,e=!1){const n=Object.keys(t);if(!e&&n.length===0)return()=>!1;const r=[];for(let i=-1,s=n.length;++i<s;)r[i]=Fi(t[n[i]]);return ta(r,n)}function ta(t,e){return n=>{if(!n||typeof n!="object")return!1;switch(n.constructor){case Array:return a_(t,n);case Map:return Lf(t,n,n.keys());case qc:case Xc:case Object:case void 0:return Lf(t,n,e||Object.keys(n))}return n instanceof Z?u_(t,n):!1}}function a_(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e[r]))return!1;return!0}function u_(t,e){const n=t.length;if(e.length!==n)return!1;for(let r=-1;++r<n;)if(!t[r](e.get(r)))return!1;return!0}function Lf(t,e,n){const r=n[Symbol.iterator](),i=e instanceof Map?e.keys():Object.keys(e)[Symbol.iterator](),s=e instanceof Map?e.values():Object.values(e)[Symbol.iterator]();let o=0;const l=t.length;let a=s.next(),u=r.next(),c=i.next();for(;o<l&&!u.done&&!c.done&&!a.done&&!(u.value!==c.value||!t[o](a.value));++o,u=r.next(),c=i.next(),a=s.next());return o===l&&u.done&&c.done&&a.done?!0:(r.return&&r.return(),i.return&&i.return(),s.return&&s.return(),!1)}function bm(t,e,n,r){return(n&1<<r)!==0}function c_(t,e,n,r){return(n&1<<r)>>r}function ed(t,e,n){const r=n.byteLength+7&-8;if(t>0||n.byteLength<r){const i=new Uint8Array(r);return i.set(t%8===0?n.subarray(t>>3):cl(new td(n,t,e,null,bm)).subarray(0,r)),i}return n}function cl(t){const e=[];let n=0,r=0,i=0;for(const o of t)o&&(i|=1<<r),++r===8&&(e[n++]=i,i=r=0);(n===0||r>0)&&(e[n++]=i);const s=new Uint8Array(e.length+7&-8);return s.set(e),s}class td{constructor(e,n,r,i,s){this.bytes=e,this.length=r,this.context=i,this.get=s,this.bit=n%8,this.byteIndex=n>>3,this.byte=e[this.byteIndex++],this.index=0}next(){return this.index<this.length?(this.bit===8&&(this.bit=0,this.byte=this.bytes[this.byteIndex++]),{value:this.get(this.context,this.index++,this.byte,this.bit++)}):{done:!0,value:null}}[Symbol.iterator](){return this}}function Ru(t,e,n){if(n-e<=0)return 0;if(n-e<8){let s=0;for(const o of new td(t,e,n-e,t,c_))s+=o;return s}const r=n>>3<<3,i=e+(e%8===0?0:8-e%8);return Ru(t,e,i)+Ru(t,r,n)+d_(t,i>>3,r-i>>3)}function d_(t,e,n){let r=0,i=Math.trunc(e);const s=new DataView(t.buffer,t.byteOffset,t.byteLength),o=n===void 0?t.byteLength:i+n;for(;o-i>=4;)r+=La(s.getUint32(i)),i+=4;for(;o-i>=2;)r+=La(s.getUint16(i)),i+=2;for(;o-i>=1;)r+=La(s.getUint8(i)),i+=1;return r}function La(t){let e=Math.trunc(t);return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),(e+(e>>>4)&252645135)*16843009>>>24}const f_=-1;class le{constructor(e,n,r,i,s,o=[],l){this.type=e,this.children=o,this.dictionary=l,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));let a;s instanceof le?(this.stride=s.stride,this.values=s.values,this.typeIds=s.typeIds,this.nullBitmap=s.nullBitmap,this.valueOffsets=s.valueOffsets):(this.stride=cn(e),s&&((a=s[0])&&(this.valueOffsets=a),(a=s[1])&&(this.values=a),(a=s[2])&&(this.nullBitmap=a),(a=s[3])&&(this.typeIds=a))),this.nullable=this._nullCount!==0&&this.nullBitmap&&this.nullBitmap.byteLength>0}get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get byteLength(){let e=0;const{valueOffsets:n,values:r,nullBitmap:i,typeIds:s}=this;return n&&(e+=n.byteLength),r&&(e+=r.byteLength),i&&(e+=i.byteLength),s&&(e+=s.byteLength),this.children.reduce((o,l)=>o+l.byteLength,e)}get nullCount(){let e=this._nullCount,n;return e<=f_&&(n=this.nullBitmap)&&(this._nullCount=e=this.length-Ru(n,this.offset,this.offset+this.length)),e}getValid(e){if(this.nullable&&this.nullCount>0){const n=this.offset+e;return(this.nullBitmap[n>>3]&1<<n%8)!==0}return!0}setValid(e,n){if(!this.nullable)return n;if(!this.nullBitmap||this.nullBitmap.byteLength<=e>>3){const{nullBitmap:a}=this._changeLengthAndBackfillNullBitmap(this.length);Object.assign(this,{nullBitmap:a,_nullCount:0})}const{nullBitmap:r,offset:i}=this,s=i+e>>3,o=(i+e)%8,l=r[s]>>o&1;return n?l===0&&(r[s]|=1<<o,this._nullCount=this.nullCount+1):l===1&&(r[s]&=~(1<<o),this._nullCount=this.nullCount-1),n}clone(e=this.type,n=this.offset,r=this.length,i=this._nullCount,s=this,o=this.children){return new le(e,n,r,i,s,o,this.dictionary)}slice(e,n){const{stride:r,typeId:i,children:s}=this,o=+(this._nullCount===0)-1,l=i===16?r:1,a=this._sliceBuffers(e,n,r,i);return this.clone(this.type,this.offset+e,n,o,a,s.length===0||this.valueOffsets?s:this._sliceChildren(s,l*e,l*n))}_changeLengthAndBackfillNullBitmap(e){if(this.typeId===y.Null)return this.clone(this.type,0,e,0);const{length:n,nullCount:r}=this,i=new Uint8Array((e+63&-64)>>3).fill(255,0,n>>3);i[n>>3]=(1<<n-(n&-8))-1,r>0&&i.set(ed(this.offset,n,this.nullBitmap),0);const s=this.buffers;return s[un.VALIDITY]=i,this.clone(this.type,0,e,r+(e-n),s)}_sliceBuffers(e,n,r,i){let s;const{buffers:o}=this;return(s=o[un.TYPE])&&(o[un.TYPE]=s.subarray(e,e+n)),(s=o[un.OFFSET])&&(o[un.OFFSET]=s.subarray(e,e+n+1))||(s=o[un.DATA])&&(o[un.DATA]=i===6?s:s.subarray(r*e,r*(e+n))),o}_sliceChildren(e,n,r){return e.map(i=>i.slice(n,r))}}le.prototype.children=Object.freeze([]);class ts extends Y{visit(e){return this.getVisitFn(e.type).call(this,e)}visitNull(e){const{["type"]:n,["offset"]:r=0,["length"]:i=0}=e;return new le(n,r,i,0)}visitBool(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length>>3,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitInt(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitFloat(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length,["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitUtf8(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.data),s=K(e.nullBitmap),o=Pi(e.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new le(n,r,l,a,[o,i,s])}visitBinary(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.data),s=K(e.nullBitmap),o=Pi(e.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new le(n,r,l,a,[o,i,s])}visitFixedSizeBinary(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitDate(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitTimestamp(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitTime(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitDecimal(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitList(e){const{["type"]:n,["offset"]:r=0,["child"]:i}=e,s=K(e.nullBitmap),o=Pi(e.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new le(n,r,l,a,[o,void 0,s],[i])}visitStruct(e){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=e,s=K(e.nullBitmap),{length:o=i.reduce((a,{length:u})=>Math.max(a,u),0),nullCount:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,void 0,s],i)}visitUnion(e){const{["type"]:n,["offset"]:r=0,["children"]:i=[]}=e,s=K(e.nullBitmap),o=se(n.ArrayType,e.typeIds),{["length"]:l=o.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;if(E.isSparseUnion(n))return new le(n,r,l,a,[void 0,void 0,s,o],i);const u=Pi(e.valueOffsets);return new le(n,r,l,a,[u,void 0,s,o],i)}visitDictionary(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.indices.ArrayType,e.data),{["dictionary"]:o=new Z([new ts().visit({type:n.dictionary})])}=e,{["length"]:l=s.length,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new le(n,r,l,a,[void 0,s,i],[],o)}visitInterval(e){const{["type"]:n,["offset"]:r=0}=e,i=K(e.nullBitmap),s=se(n.ArrayType,e.data),{["length"]:o=s.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,s,i])}visitFixedSizeList(e){const{["type"]:n,["offset"]:r=0,["child"]:i=new ts().visit({type:n.valueType})}=e,s=K(e.nullBitmap),{["length"]:o=i.length/cn(n),["nullCount"]:l=e.nullBitmap?-1:0}=e;return new le(n,r,o,l,[void 0,void 0,s],[i])}visitMap(e){const{["type"]:n,["offset"]:r=0,["child"]:i=new ts().visit({type:n.childType})}=e,s=K(e.nullBitmap),o=Pi(e.valueOffsets),{["length"]:l=o.length-1,["nullCount"]:a=e.nullBitmap?-1:0}=e;return new le(n,r,l,a,[o,void 0,s],[i])}}function H(t){return new ts().visit(t)}class Mf{constructor(e=0,n){this.numChunks=e,this.getChunkIterator=n,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const e=this.chunkIterator.next();if(!e.done)return e;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function Im(t){return t.reduce((e,n)=>e+n.nullCount,0)}function Nm(t){return t.reduce((e,n,r)=>(e[r+1]=e[r]+n.length,e),new Uint32Array(t.length+1))}function xm(t,e,n,r){const i=[];for(let s=-1,o=t.length;++s<o;){const l=t[s],a=e[s],{length:u}=l;if(a>=r)break;if(n>=a+u)continue;if(a>=n&&a+u<=r){i.push(l);continue}const c=Math.max(0,n-a),d=Math.min(r-a,u);i.push(l.slice(c,d-c))}return i.length===0&&i.push(t[0].slice(0,0)),i}function nd(t,e,n,r){let i=0,s=0,o=e.length-1;do{if(i>=o-1)return n<e[o]?r(t,i,n-e[i]):null;s=i+Math.trunc((o-i)*.5),n<e[s]?o=s:i=s}while(i<o)}function rd(t,e){return t.getValid(e)}function ai(t){function e(n,r,i){return t(n[r],i)}return function(n){const r=this.data;return nd(r,this._offsets,n,e)}}function Bm(t){let e;function n(r,i,s){return t(r[i],s,e)}return function(r,i){const s=this.data;e=i;const o=nd(s,this._offsets,r,n);return e=void 0,o}}function km(t){let e;function n(r,i,s){let o=s,l=0,a=0;for(let u=i-1,c=r.length;++u<c;){const d=r[u];if(~(l=t(d,e,o)))return a+l;o=0,a+=d.length}return-1}return function(r,i){e=r;const s=this.data,o=typeof i!="number"?n(s,0,0):nd(s,this._offsets,i,n);return e=void 0,o}}class C extends Y{}function h_(t,e){return e===null&&t.length>0?0:-1}function p_(t,e){const{nullBitmap:n}=t;if(!n||t.nullCount<=0)return-1;let r=0;for(const i of new td(n,t.offset+(e||0),t.length,n,bm)){if(!i)return r;++r}return-1}function j(t,e,n){if(e===void 0)return-1;if(e===null)return p_(t,n);const r=it.getVisitFn(t),i=Fi(e);for(let s=(n||0)-1,o=t.length;++s<o;)if(i(r(t,s)))return s;return-1}function Fm(t,e,n){const r=it.getVisitFn(t),i=Fi(e);for(let s=(n||0)-1,o=t.length;++s<o;)if(i(r(t,s)))return s;return-1}C.prototype.visitNull=h_;C.prototype.visitBool=j;C.prototype.visitInt=j;C.prototype.visitInt8=j;C.prototype.visitInt16=j;C.prototype.visitInt32=j;C.prototype.visitInt64=j;C.prototype.visitUint8=j;C.prototype.visitUint16=j;C.prototype.visitUint32=j;C.prototype.visitUint64=j;C.prototype.visitFloat=j;C.prototype.visitFloat16=j;C.prototype.visitFloat32=j;C.prototype.visitFloat64=j;C.prototype.visitUtf8=j;C.prototype.visitBinary=j;C.prototype.visitFixedSizeBinary=j;C.prototype.visitDate=j;C.prototype.visitDateDay=j;C.prototype.visitDateMillisecond=j;C.prototype.visitTimestamp=j;C.prototype.visitTimestampSecond=j;C.prototype.visitTimestampMillisecond=j;C.prototype.visitTimestampMicrosecond=j;C.prototype.visitTimestampNanosecond=j;C.prototype.visitTime=j;C.prototype.visitTimeSecond=j;C.prototype.visitTimeMillisecond=j;C.prototype.visitTimeMicrosecond=j;C.prototype.visitTimeNanosecond=j;C.prototype.visitDecimal=j;C.prototype.visitList=j;C.prototype.visitStruct=j;C.prototype.visitUnion=j;C.prototype.visitDenseUnion=Fm;C.prototype.visitSparseUnion=Fm;C.prototype.visitDictionary=j;C.prototype.visitInterval=j;C.prototype.visitIntervalDayTime=j;C.prototype.visitIntervalYearMonth=j;C.prototype.visitFixedSizeList=j;C.prototype.visitMap=j;const dl=new C;class A extends Y{}function R(t){const{type:e}=t;if(t.nullCount===0&&t.stride===1&&(e.typeId===y.Timestamp||e instanceof Xn&&e.bitWidth!==64||e instanceof xs&&e.bitWidth!==64||e instanceof Ns&&e.precision!==nt.HALF))return new Mf(t.data.length,r=>{const i=t.data[r];return i.values.subarray(0,i.length)[Symbol.iterator]()});let n=0;return new Mf(t.data.length,r=>{const s=t.data[r].length,o=t.slice(n,n+s);return n+=s,new y_(o)})}class y_{constructor(e){this.vector=e,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}A.prototype.visitNull=R;A.prototype.visitBool=R;A.prototype.visitInt=R;A.prototype.visitInt8=R;A.prototype.visitInt16=R;A.prototype.visitInt32=R;A.prototype.visitInt64=R;A.prototype.visitUint8=R;A.prototype.visitUint16=R;A.prototype.visitUint32=R;A.prototype.visitUint64=R;A.prototype.visitFloat=R;A.prototype.visitFloat16=R;A.prototype.visitFloat32=R;A.prototype.visitFloat64=R;A.prototype.visitUtf8=R;A.prototype.visitBinary=R;A.prototype.visitFixedSizeBinary=R;A.prototype.visitDate=R;A.prototype.visitDateDay=R;A.prototype.visitDateMillisecond=R;A.prototype.visitTimestamp=R;A.prototype.visitTimestampSecond=R;A.prototype.visitTimestampMillisecond=R;A.prototype.visitTimestampMicrosecond=R;A.prototype.visitTimestampNanosecond=R;A.prototype.visitTime=R;A.prototype.visitTimeSecond=R;A.prototype.visitTimeMillisecond=R;A.prototype.visitTimeMicrosecond=R;A.prototype.visitTimeNanosecond=R;A.prototype.visitDecimal=R;A.prototype.visitList=R;A.prototype.visitStruct=R;A.prototype.visitUnion=R;A.prototype.visitDenseUnion=R;A.prototype.visitSparseUnion=R;A.prototype.visitDictionary=R;A.prototype.visitInterval=R;A.prototype.visitIntervalDayTime=R;A.prototype.visitIntervalYearMonth=R;A.prototype.visitFixedSizeList=R;A.prototype.visitMap=R;const id=new A,m_=(t,e)=>t+e;class ir extends Y{visitNull(e,n){return 0}visitInt(e,n){return e.type.bitWidth/8}visitFloat(e,n){return e.type.ArrayType.BYTES_PER_ELEMENT}visitBool(e,n){return 1/8}visitDecimal(e,n){return e.type.bitWidth/8}visitDate(e,n){return(e.type.unit+1)*4}visitTime(e,n){return e.type.bitWidth/8}visitTimestamp(e,n){return e.type.unit===G.SECOND?4:8}visitInterval(e,n){return(e.type.unit+1)*4}visitStruct(e,n){return e.children.reduce((r,i)=>r+sn.visit(i,n),0)}visitFixedSizeBinary(e,n){return e.type.byteWidth}visitMap(e,n){return 8+e.children.reduce((r,i)=>r+sn.visit(i,n),0)}visitDictionary(e,n){var r;return e.type.indices.bitWidth/8+(((r=e.dictionary)===null||r===void 0?void 0:r.getByteLength(e.values[n]))||0)}}const g_=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),v_=({valueOffsets:t},e)=>8+(t[e+1]-t[e]),w_=({valueOffsets:t,stride:e,children:n},r)=>{const i=n[0],{[r*e]:s}=t,{[r*e+1]:o}=t,l=sn.getVisitFn(i.type),a=i.slice(s,o-s);let u=8;for(let c=-1,d=o-s;++c<d;)u+=l(a,c);return u},__=({stride:t,children:e},n)=>{const r=e[0],i=r.slice(n*t,t),s=sn.getVisitFn(r.type);let o=0;for(let l=-1,a=i.length;++l<a;)o+=s(i,l);return o},S_=(t,e)=>t.type.mode===ht.Dense?Om(t,e):Em(t,e),Om=({type:t,children:e,typeIds:n,valueOffsets:r},i)=>{const s=t.typeIdToChildIndex[n[i]];return 8+sn.visit(e[s],r[i])},Em=({children:t},e)=>4+sn.visitMany(t,t.map(()=>e)).reduce(m_,0);ir.prototype.visitUtf8=g_;ir.prototype.visitBinary=v_;ir.prototype.visitList=w_;ir.prototype.visitFixedSizeList=__;ir.prototype.visitUnion=S_;ir.prototype.visitDenseUnion=Om;ir.prototype.visitSparseUnion=Em;const sn=new ir;var Dm;const Cm={},Am={};class Z{constructor(e){var n,r,i;const s=e[0]instanceof Z?e.flatMap(l=>l.data):e;if(s.length===0||s.some(l=>!(l instanceof le)))throw new TypeError("Vector constructor expects an Array of Data instances.");const o=(n=s[0])===null||n===void 0?void 0:n.type;switch(s.length){case 0:this._offsets=[0];break;case 1:{const{get:l,set:a,indexOf:u,byteLength:c}=Cm[o.typeId],d=s[0];this.isValid=h=>rd(d,h),this.get=h=>l(d,h),this.set=(h,g)=>a(d,h,g),this.indexOf=h=>u(d,h),this.getByteLength=h=>c(d,h),this._offsets=[0,d.length];break}default:Object.setPrototypeOf(this,Am[o.typeId]),this._offsets=Nm(s);break}this.data=s,this.type=o,this.stride=cn(o),this.numChildren=(i=(r=o.children)===null||r===void 0?void 0:r.length)!==null&&i!==void 0?i:0,this.length=this._offsets[this._offsets.length-1]}get byteLength(){return this._byteLength===-1&&(this._byteLength=this.data.reduce((e,n)=>e+n.byteLength,0)),this._byteLength}get nullCount(){return this._nullCount===-1&&(this._nullCount=Im(this.data)),this._nullCount}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${y[this.type.typeId]}Vector`}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}includes(e,n){return this.indexOf(e,n)>0}getByteLength(e){return 0}[Symbol.iterator](){return id.visit(this)}concat(...e){return new Z(this.data.concat(e.flatMap(n=>n.data).flat(Number.POSITIVE_INFINITY)))}slice(e,n){return new Z(Sm(this,e,n,({data:r,_offsets:i},s,o)=>xm(r,i,s,o)))}toJSON(){return[...this]}toArray(){const{type:e,data:n,length:r,stride:i,ArrayType:s}=this;switch(e.typeId){case y.Int:case y.Float:case y.Decimal:case y.Time:case y.Timestamp:switch(n.length){case 0:return new s;case 1:return n[0].values.subarray(0,r*i);default:return n.reduce((o,{values:l,length:a})=>(o.array.set(l.subarray(0,a*i),o.offset),o.offset+=a*i,o),{array:new s(r*i),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(e){var n;return this.getChildAt((n=this.type.children)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.numChildren?new Z(this.data.map(({children:n})=>n[e])):null}get isMemoized(){return E.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(E.isDictionary(this.type)){const e=new fl(this.data[0].dictionary),n=this.data.map(r=>{const i=r.clone();return i.dictionary=e,i});return new Z(n)}return new fl(this)}unmemoize(){if(E.isDictionary(this.type)&&this.isMemoized){const e=this.data[0].dictionary.unmemoize(),n=this.data.map(r=>{const i=r.clone();return i.dictionary=e,i});return new Z(n)}return this}}Dm=Symbol.toStringTag;Z[Dm]=(t=>{t.type=E.prototype,t.data=[],t.length=0,t.stride=1,t.numChildren=0,t._nullCount=-1,t._byteLength=-1,t._offsets=new Uint32Array([0]),t[Symbol.isConcatSpreadable]=!0;const e=Object.keys(y).map(n=>y[n]).filter(n=>typeof n=="number"&&n!==y.NONE);for(const n of e){const r=it.getVisitFnByTypeId(n),i=Ft.getVisitFnByTypeId(n),s=dl.getVisitFnByTypeId(n),o=sn.getVisitFnByTypeId(n);Cm[n]={get:r,set:i,indexOf:s,byteLength:o},Am[n]=Object.create(t,{isValid:{value:ai(rd)},get:{value:ai(it.getVisitFnByTypeId(n))},set:{value:Bm(Ft.getVisitFnByTypeId(n))},indexOf:{value:km(dl.getVisitFnByTypeId(n))},getByteLength:{value:ai(sn.getVisitFnByTypeId(n))}})}return"Vector"})(Z.prototype);class fl extends Z{constructor(e){super(e.data);const n=this.get,r=this.set,i=this.slice,s=new Array(this.length);Object.defineProperty(this,"get",{value(o){const l=s[o];if(l!==void 0)return l;const a=n.call(this,o);return s[o]=a,a}}),Object.defineProperty(this,"set",{value(o,l){r.call(this,o,l),s[o]=l}}),Object.defineProperty(this,"slice",{value:(o,l)=>new fl(i.call(this,o,l))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Z(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}class Uu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}metaDataLength(){return this.bb.readInt32(this.bb_pos+8)}bodyLength(){return this.bb.readInt64(this.bb_pos+16)}static sizeOf(){return 24}static createBlock(e,n,r,i){return e.prep(8,24),e.writeInt64(i),e.pad(4),e.writeInt32(r),e.writeInt64(n),e.offset()}}const Ma=2,Kt=4,hn=4,oe=4,Cn=new Int32Array(2),Rf=new Float32Array(Cn.buffer),Uf=new Float64Array(Cn.buffer),oo=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;let vn=class Pu{constructor(e,n){this.low=e|0,this.high=n|0}static create(e,n){return e==0&&n==0?Pu.ZERO:new Pu(e,n)}toFloat64(){return(this.low>>>0)+this.high*4294967296}equals(e){return this.low==e.low&&this.high==e.high}};vn.ZERO=new vn(0,0);var zu;(function(t){t[t.UTF8_BYTES=1]="UTF8_BYTES",t[t.UTF16_STRING=2]="UTF16_STRING"})(zu||(zu={}));let gi=class Tm{constructor(e){this.bytes_=e,this.position_=0}static allocate(e){return new Tm(new Uint8Array(e))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(e){this.position_=e}capacity(){return this.bytes_.length}readInt8(e){return this.readUint8(e)<<24>>24}readUint8(e){return this.bytes_[e]}readInt16(e){return this.readUint16(e)<<16>>16}readUint16(e){return this.bytes_[e]|this.bytes_[e+1]<<8}readInt32(e){return this.bytes_[e]|this.bytes_[e+1]<<8|this.bytes_[e+2]<<16|this.bytes_[e+3]<<24}readUint32(e){return this.readInt32(e)>>>0}readInt64(e){return new vn(this.readInt32(e),this.readInt32(e+4))}readUint64(e){return new vn(this.readUint32(e),this.readUint32(e+4))}readFloat32(e){return Cn[0]=this.readInt32(e),Rf[0]}readFloat64(e){return Cn[oo?0:1]=this.readInt32(e),Cn[oo?1:0]=this.readInt32(e+4),Uf[0]}writeInt8(e,n){this.bytes_[e]=n}writeUint8(e,n){this.bytes_[e]=n}writeInt16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeUint16(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8}writeInt32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeUint32(e,n){this.bytes_[e]=n,this.bytes_[e+1]=n>>8,this.bytes_[e+2]=n>>16,this.bytes_[e+3]=n>>24}writeInt64(e,n){this.writeInt32(e,n.low),this.writeInt32(e+4,n.high)}writeUint64(e,n){this.writeUint32(e,n.low),this.writeUint32(e+4,n.high)}writeFloat32(e,n){Rf[0]=n,this.writeInt32(e,Cn[0])}writeFloat64(e,n){Uf[0]=n,this.writeInt32(e,Cn[oo?0:1]),this.writeInt32(e+4,Cn[oo?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+Kt+hn)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let e="";for(let n=0;n<hn;n++)e+=String.fromCharCode(this.readInt8(this.position_+Kt+n));return e}__offset(e,n){const r=e-this.readInt32(e);return n<this.readInt16(r)?this.readInt16(r+n):0}__union(e,n){return e.bb_pos=n+this.readInt32(n),e.bb=this,e}__string(e,n){e+=this.readInt32(e);const r=this.readInt32(e);let i="",s=0;if(e+=Kt,n===zu.UTF8_BYTES)return this.bytes_.subarray(e,e+r);for(;s<r;){let o;const l=this.readUint8(e+s++);if(l<192)o=l;else{const a=this.readUint8(e+s++);if(l<224)o=(l&31)<<6|a&63;else{const u=this.readUint8(e+s++);if(l<240)o=(l&15)<<12|(a&63)<<6|u&63;else{const c=this.readUint8(e+s++);o=(l&7)<<18|(a&63)<<12|(u&63)<<6|c&63}}}o<65536?i+=String.fromCharCode(o):(o-=65536,i+=String.fromCharCode((o>>10)+55296,(o&1023)+56320))}return i}__union_with_string(e,n){return typeof e=="string"?this.__string(n):this.__union(e,n)}__indirect(e){return e+this.readInt32(e)}__vector(e){return e+this.readInt32(e)+Kt}__vector_len(e){return this.readInt32(e+this.readInt32(e))}__has_identifier(e){if(e.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let n=0;n<hn;n++)if(e.charCodeAt(n)!=this.readInt8(this.position()+Kt+n))return!1;return!0}createLong(e,n){return vn.create(e,n)}createScalarList(e,n){const r=[];for(let i=0;i<n;++i)e(i)!==null&&r.push(e(i));return r}createObjList(e,n){const r=[];for(let i=0;i<n;++i){const s=e(i);s!==null&&r.push(s.unpack())}return r}},Lm=class Mm{constructor(e){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null;let n;e?n=e:n=1024,this.bb=gi.allocate(n),this.space=n}clear(){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,this.string_maps=null}forceDefaults(e){this.force_defaults=e}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(e,n){e>this.minalign&&(this.minalign=e);const r=~(this.bb.capacity()-this.space+n)+1&e-1;for(;this.space<r+e+n;){const i=this.bb.capacity();this.bb=Mm.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(r)}pad(e){for(let n=0;n<e;n++)this.bb.writeInt8(--this.space,0)}writeInt8(e){this.bb.writeInt8(this.space-=1,e)}writeInt16(e){this.bb.writeInt16(this.space-=2,e)}writeInt32(e){this.bb.writeInt32(this.space-=4,e)}writeInt64(e){this.bb.writeInt64(this.space-=8,e)}writeFloat32(e){this.bb.writeFloat32(this.space-=4,e)}writeFloat64(e){this.bb.writeFloat64(this.space-=8,e)}addInt8(e){this.prep(1,0),this.writeInt8(e)}addInt16(e){this.prep(2,0),this.writeInt16(e)}addInt32(e){this.prep(4,0),this.writeInt32(e)}addInt64(e){this.prep(8,0),this.writeInt64(e)}addFloat32(e){this.prep(4,0),this.writeFloat32(e)}addFloat64(e){this.prep(8,0),this.writeFloat64(e)}addFieldInt8(e,n,r){(this.force_defaults||n!=r)&&(this.addInt8(n),this.slot(e))}addFieldInt16(e,n,r){(this.force_defaults||n!=r)&&(this.addInt16(n),this.slot(e))}addFieldInt32(e,n,r){(this.force_defaults||n!=r)&&(this.addInt32(n),this.slot(e))}addFieldInt64(e,n,r){(this.force_defaults||!n.equals(r))&&(this.addInt64(n),this.slot(e))}addFieldFloat32(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat32(n),this.slot(e))}addFieldFloat64(e,n,r){(this.force_defaults||n!=r)&&(this.addFloat64(n),this.slot(e))}addFieldOffset(e,n,r){(this.force_defaults||n!=r)&&(this.addOffset(n),this.slot(e))}addFieldStruct(e,n,r){n!=r&&(this.nested(n),this.slot(e))}nested(e){if(e!=this.offset())throw new Error("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new Error("FlatBuffers: object serialization must not be nested.")}slot(e){this.vtable!==null&&(this.vtable[e]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(e){const n=e.capacity();if(n&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const r=n<<1,i=gi.allocate(r);return i.setPosition(r-n),i.bytes().set(e.bytes(),r-n),i}addOffset(e){this.prep(Kt,0),this.writeInt32(this.offset()-e+Kt)}startObject(e){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=e;for(let n=0;n<e;n++)this.vtable[n]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const e=this.offset();let n=this.vtable_in_use-1;for(;n>=0&&this.vtable[n]==0;n--);const r=n+1;for(;n>=0;n--)this.addInt16(this.vtable[n]!=0?e-this.vtable[n]:0);const i=2;this.addInt16(e-this.object_start);const s=(r+i)*Ma;this.addInt16(s);let o=0;const l=this.space;e:for(n=0;n<this.vtables.length;n++){const a=this.bb.capacity()-this.vtables[n];if(s==this.bb.readInt16(a)){for(let u=Ma;u<s;u+=Ma)if(this.bb.readInt16(l+u)!=this.bb.readInt16(a+u))continue e;o=this.vtables[n];break}}return o?(this.space=this.bb.capacity()-e,this.bb.writeInt32(this.space,o-e)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-e,this.offset()-e)),this.isNested=!1,e}finish(e,n,r){const i=r?oe:0;if(n){const s=n;if(this.prep(this.minalign,Kt+hn+i),s.length!=hn)throw new Error("FlatBuffers: file identifier must be length "+hn);for(let o=hn-1;o>=0;o--)this.writeInt8(s.charCodeAt(o))}this.prep(this.minalign,Kt+i),this.addOffset(e),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(e,n){this.finish(e,n,!0)}requiredField(e,n){const r=this.bb.capacity()-e,i=r-this.bb.readInt32(r);if(!(this.bb.readInt16(i+n)!=0))throw new Error("FlatBuffers: field "+n+" must be set")}startVector(e,n,r){this.notNested(),this.vector_num_elems=n,this.prep(Kt,e*n),this.prep(r,e*n)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(e){if(!e)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(e))return this.string_maps.get(e);const n=this.createString(e);return this.string_maps.set(e,n),n}createString(e){if(!e)return 0;let n;if(e instanceof Uint8Array)n=e;else{n=[];let r=0;for(;r<e.length;){let i;const s=e.charCodeAt(r++);if(s<55296||s>=56320)i=s;else{const o=e.charCodeAt(r++);i=(s<<10)+o+-56613888}i<128?n.push(i):(i<2048?n.push(i>>6&31|192):(i<65536?n.push(i>>12&15|224):n.push(i>>18&7|240,i>>12&63|128),n.push(i>>6&63|128)),n.push(i&63|128))}}this.addInt8(0),this.startVector(1,n.length,1),this.bb.setPosition(this.space-=n.length);for(let r=0,i=this.space,s=this.bb.bytes();r<n.length;r++)s[i++]=n[r];return this.endVector()}createLong(e,n){return vn.create(e,n)}createObjectOffset(e){return e===null?0:typeof e=="string"?this.createString(e):e.pack(this)}createObjectOffsetList(e){const n=[];for(let r=0;r<e.length;++r){const i=e[r];if(i!==null)n.push(this.createObjectOffset(i));else throw new Error("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return n}createStructOffsetList(e,n){return n(this,e.length),this.createObjectOffsetList(e),this.endVector()}};class Be{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsKeyValue(e,n){return(n||new Be).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsKeyValue(e,n){return e.setPosition(e.position()+oe),(n||new Be).__init(e.readInt32(e.position())+e.position(),e)}key(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}value(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startKeyValue(e){e.startObject(2)}static addKey(e,n){e.addFieldOffset(0,n,0)}static addValue(e,n){e.addFieldOffset(1,n,0)}static endKeyValue(e){return e.endObject()}static createKeyValue(e,n,r){return Be.startKeyValue(e),Be.addKey(e,n),Be.addValue(e,r),Be.endKeyValue(e)}}var vi;(function(t){t[t.V1=0]="V1",t[t.V2=1]="V2",t[t.V3=2]="V3",t[t.V4=3]="V4",t[t.V5=4]="V5"})(vi||(vi={}));var wi;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(wi||(wi={}));var hl;(function(t){t[t.DenseArray=0]="DenseArray"})(hl||(hl={}));class at{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInt(e,n){return(n||new at).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInt(e,n){return e.setPosition(e.position()+oe),(n||new at).__init(e.readInt32(e.position())+e.position(),e)}bitWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}isSigned(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startInt(e){e.startObject(2)}static addBitWidth(e,n){e.addFieldInt32(0,n,0)}static addIsSigned(e,n){e.addFieldInt8(1,+n,0)}static endInt(e){return e.endObject()}static createInt(e,n,r){return at.startInt(e),at.addBitWidth(e,n),at.addIsSigned(e,r),at.endInt(e)}}class pn{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryEncoding(e,n){return(n||new pn).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryEncoding(e,n){return e.setPosition(e.position()+oe),(n||new pn).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}indexType(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new at).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isOrdered(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}dictionaryKind(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt16(this.bb_pos+e):hl.DenseArray}static startDictionaryEncoding(e){e.startObject(4)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addIndexType(e,n){e.addFieldOffset(1,n,0)}static addIsOrdered(e,n){e.addFieldInt8(2,+n,0)}static addDictionaryKind(e,n){e.addFieldInt16(3,n,hl.DenseArray)}static endDictionaryEncoding(e){return e.endObject()}}class pr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBinary(e,n){return(n||new pr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBinary(e,n){return e.setPosition(e.position()+oe),(n||new pr).__init(e.readInt32(e.position())+e.position(),e)}static startBinary(e){e.startObject(0)}static endBinary(e){return e.endObject()}static createBinary(e){return pr.startBinary(e),pr.endBinary(e)}}class yr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBool(e,n){return(n||new yr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBool(e,n){return e.setPosition(e.position()+oe),(n||new yr).__init(e.readInt32(e.position())+e.position(),e)}static startBool(e){e.startObject(0)}static endBool(e){return e.endObject()}static createBool(e){return yr.startBool(e),yr.endBool(e)}}var pl;(function(t){t[t.DAY=0]="DAY",t[t.MILLISECOND=1]="MILLISECOND"})(pl||(pl={}));let bo=class Mr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDate(e,n){return(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDate(e,n){return e.setPosition(e.position()+oe),(n||new Mr).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):pl.MILLISECOND}static startDate(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,pl.MILLISECOND)}static endDate(e){return e.endObject()}static createDate(e,n){return Mr.startDate(e),Mr.addUnit(e,n),Mr.endDate(e)}};class Ke{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDecimal(e,n){return(n||new Ke).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDecimal(e,n){return e.setPosition(e.position()+oe),(n||new Ke).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}scale(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):0}bitWidth(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readInt32(this.bb_pos+e):128}static startDecimal(e){e.startObject(3)}static addPrecision(e,n){e.addFieldInt32(0,n,0)}static addScale(e,n){e.addFieldInt32(1,n,0)}static addBitWidth(e,n){e.addFieldInt32(2,n,128)}static endDecimal(e){return e.endObject()}static createDecimal(e,n,r,i){return Ke.startDecimal(e),Ke.addPrecision(e,n),Ke.addScale(e,r),Ke.addBitWidth(e,i),Ke.endDecimal(e)}}var _i;(function(t){t[t.SECOND=0]="SECOND",t[t.MILLISECOND=1]="MILLISECOND",t[t.MICROSECOND=2]="MICROSECOND",t[t.NANOSECOND=3]="NANOSECOND"})(_i||(_i={}));class Gt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeBinary(e,n){return(n||new Gt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeBinary(e,n){return e.setPosition(e.position()+oe),(n||new Gt).__init(e.readInt32(e.position())+e.position(),e)}byteWidth(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeBinary(e){e.startObject(1)}static addByteWidth(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeBinary(e){return e.endObject()}static createFixedSizeBinary(e,n){return Gt.startFixedSizeBinary(e),Gt.addByteWidth(e,n),Gt.endFixedSizeBinary(e)}}class Jt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFixedSizeList(e,n){return(n||new Jt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFixedSizeList(e,n){return e.setPosition(e.position()+oe),(n||new Jt).__init(e.readInt32(e.position())+e.position(),e)}listSize(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt32(this.bb_pos+e):0}static startFixedSizeList(e){e.startObject(1)}static addListSize(e,n){e.addFieldInt32(0,n,0)}static endFixedSizeList(e){return e.endObject()}static createFixedSizeList(e,n){return Jt.startFixedSizeList(e),Jt.addListSize(e,n),Jt.endFixedSizeList(e)}}var yl;(function(t){t[t.HALF=0]="HALF",t[t.SINGLE=1]="SINGLE",t[t.DOUBLE=2]="DOUBLE"})(yl||(yl={}));class Xt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFloatingPoint(e,n){return(n||new Xt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFloatingPoint(e,n){return e.setPosition(e.position()+oe),(n||new Xt).__init(e.readInt32(e.position())+e.position(),e)}precision(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):yl.HALF}static startFloatingPoint(e){e.startObject(1)}static addPrecision(e,n){e.addFieldInt16(0,n,yl.HALF)}static endFloatingPoint(e){return e.endObject()}static createFloatingPoint(e,n){return Xt.startFloatingPoint(e),Xt.addPrecision(e,n),Xt.endFloatingPoint(e)}}var ml;(function(t){t[t.YEAR_MONTH=0]="YEAR_MONTH",t[t.DAY_TIME=1]="DAY_TIME",t[t.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(ml||(ml={}));class Zt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsInterval(e,n){return(n||new Zt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsInterval(e,n){return e.setPosition(e.position()+oe),(n||new Zt).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):ml.YEAR_MONTH}static startInterval(e){e.startObject(1)}static addUnit(e,n){e.addFieldInt16(0,n,ml.YEAR_MONTH)}static endInterval(e){return e.endObject()}static createInterval(e,n){return Zt.startInterval(e),Zt.addUnit(e,n),Zt.endInterval(e)}}class mr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsList(e,n){return(n||new mr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsList(e,n){return e.setPosition(e.position()+oe),(n||new mr).__init(e.readInt32(e.position())+e.position(),e)}static startList(e){e.startObject(0)}static endList(e){return e.endObject()}static createList(e){return mr.startList(e),mr.endList(e)}}let Io=class Rr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMap(e,n){return(n||new Rr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMap(e,n){return e.setPosition(e.position()+oe),(n||new Rr).__init(e.readInt32(e.position())+e.position(),e)}keysSorted(){const e=this.bb.__offset(this.bb_pos,4);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startMap(e){e.startObject(1)}static addKeysSorted(e,n){e.addFieldInt8(0,+n,0)}static endMap(e){return e.endObject()}static createMap(e,n){return Rr.startMap(e),Rr.addKeysSorted(e,n),Rr.endMap(e)}};class gr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsNull(e,n){return(n||new gr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsNull(e,n){return e.setPosition(e.position()+oe),(n||new gr).__init(e.readInt32(e.position())+e.position(),e)}static startNull(e){e.startObject(0)}static endNull(e){return e.endObject()}static createNull(e){return gr.startNull(e),gr.endNull(e)}}class vr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsStruct_(e,n){return(n||new vr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsStruct_(e,n){return e.setPosition(e.position()+oe),(n||new vr).__init(e.readInt32(e.position())+e.position(),e)}static startStruct_(e){e.startObject(0)}static endStruct_(e){return e.endObject()}static createStruct_(e){return vr.startStruct_(e),vr.endStruct_(e)}}class bt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTime(e,n){return(n||new bt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTime(e,n){return e.setPosition(e.position()+oe),(n||new bt).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_i.MILLISECOND}bitWidth(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt32(this.bb_pos+e):32}static startTime(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,_i.MILLISECOND)}static addBitWidth(e,n){e.addFieldInt32(1,n,32)}static endTime(e){return e.endObject()}static createTime(e,n,r){return bt.startTime(e),bt.addUnit(e,n),bt.addBitWidth(e,r),bt.endTime(e)}}class It{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsTimestamp(e,n){return(n||new It).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsTimestamp(e,n){return e.setPosition(e.position()+oe),(n||new It).__init(e.readInt32(e.position())+e.position(),e)}unit(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):_i.SECOND}timezone(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.__string(this.bb_pos+n,e):null}static startTimestamp(e){e.startObject(2)}static addUnit(e,n){e.addFieldInt16(0,n,_i.SECOND)}static addTimezone(e,n){e.addFieldOffset(1,n,0)}static endTimestamp(e){return e.endObject()}static createTimestamp(e,n,r){return It.startTimestamp(e),It.addUnit(e,n),It.addTimezone(e,r),It.endTimestamp(e)}}var gl;(function(t){t[t.Sparse=0]="Sparse",t[t.Dense=1]="Dense"})(gl||(gl={}));class Je{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUnion(e,n){return(n||new Je).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUnion(e,n){return e.setPosition(e.position()+oe),(n||new Je).__init(e.readInt32(e.position())+e.position(),e)}mode(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):gl.Sparse}typeIds(e){const n=this.bb.__offset(this.bb_pos,6);return n?this.bb.readInt32(this.bb.__vector(this.bb_pos+n)+e*4):0}typeIdsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}typeIdsArray(){const 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}static startUnion(e){e.startObject(2)}static addMode(e,n){e.addFieldInt16(0,n,gl.Sparse)}static addTypeIds(e,n){e.addFieldOffset(1,n,0)}static createTypeIdsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addInt32(n[r]);return e.endVector()}static startTypeIdsVector(e,n){e.startVector(4,n,4)}static endUnion(e){return e.endObject()}static createUnion(e,n,r){return Je.startUnion(e),Je.addMode(e,n),Je.addTypeIds(e,r),Je.endUnion(e)}}class wr{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsUtf8(e,n){return(n||new wr).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsUtf8(e,n){return e.setPosition(e.position()+oe),(n||new wr).__init(e.readInt32(e.position())+e.position(),e)}static startUtf8(e){e.startObject(0)}static endUtf8(e){return e.endObject()}static createUtf8(e){return wr.startUtf8(e),wr.endUtf8(e)}}var he;(function(t){t[t.NONE=0]="NONE",t[t.Null=1]="Null",t[t.Int=2]="Int",t[t.FloatingPoint=3]="FloatingPoint",t[t.Binary=4]="Binary",t[t.Utf8=5]="Utf8",t[t.Bool=6]="Bool",t[t.Decimal=7]="Decimal",t[t.Date=8]="Date",t[t.Time=9]="Time",t[t.Timestamp=10]="Timestamp",t[t.Interval=11]="Interval",t[t.List=12]="List",t[t.Struct_=13]="Struct_",t[t.Union=14]="Union",t[t.FixedSizeBinary=15]="FixedSizeBinary",t[t.FixedSizeList=16]="FixedSizeList",t[t.Map=17]="Map",t[t.Duration=18]="Duration",t[t.LargeBinary=19]="LargeBinary",t[t.LargeUtf8=20]="LargeUtf8",t[t.LargeList=21]="LargeList"})(he||(he={}));let vt=class No{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsField(e,n){return(n||new No).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsField(e,n){return e.setPosition(e.position()+oe),(n||new No).__init(e.readInt32(e.position())+e.position(),e)}name(e){const n=this.bb.__offset(this.bb_pos,4);return n?this.bb.__string(this.bb_pos+n,e):null}nullable(){const e=this.bb.__offset(this.bb_pos,6);return e?!!this.bb.readInt8(this.bb_pos+e):!1}typeType(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.readUint8(this.bb_pos+e):he.NONE}type(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.__union(e,this.bb_pos+n):null}dictionary(e){const n=this.bb.__offset(this.bb_pos,12);return n?(e||new pn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}children(e,n){const r=this.bb.__offset(this.bb_pos,14);return r?(n||new No).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}childrenLength(){const e=this.bb.__offset(this.bb_pos,14);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,16);return r?(n||new Be).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,16);return e?this.bb.__vector_len(this.bb_pos+e):0}static startField(e){e.startObject(7)}static addName(e,n){e.addFieldOffset(0,n,0)}static addNullable(e,n){e.addFieldInt8(1,+n,0)}static addTypeType(e,n){e.addFieldInt8(2,n,he.NONE)}static addType(e,n){e.addFieldOffset(3,n,0)}static addDictionary(e,n){e.addFieldOffset(4,n,0)}static addChildren(e,n){e.addFieldOffset(5,n,0)}static createChildrenVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startChildrenVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(6,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endField(e){return e.endObject()}},Wt=class ln{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsSchema(e,n){return(n||new ln).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsSchema(e,n){return e.setPosition(e.position()+oe),(n||new ln).__init(e.readInt32(e.position())+e.position(),e)}endianness(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):wi.Little}fields(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new vt).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}fieldsLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Be).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}features(e){const n=this.bb.__offset(this.bb_pos,10);return n?this.bb.readInt64(this.bb.__vector(this.bb_pos+n)+e*8):this.bb.createLong(0,0)}featuresLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}static startSchema(e){e.startObject(4)}static addEndianness(e,n){e.addFieldInt16(0,n,wi.Little)}static addFields(e,n){e.addFieldOffset(1,n,0)}static createFieldsVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startFieldsVector(e,n){e.startVector(4,n,4)}static addCustomMetadata(e,n){e.addFieldOffset(2,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static addFeatures(e,n){e.addFieldOffset(3,n,0)}static createFeaturesVector(e,n){e.startVector(8,n.length,8);for(let r=n.length-1;r>=0;r--)e.addInt64(n[r]);return e.endVector()}static startFeaturesVector(e,n){e.startVector(8,n,8)}static endSchema(e){return e.endObject()}static finishSchemaBuffer(e,n){e.finish(n)}static finishSizePrefixedSchemaBuffer(e,n){e.finish(n,void 0,!0)}static createSchema(e,n,r,i,s){return ln.startSchema(e),ln.addEndianness(e,n),ln.addFields(e,r),ln.addCustomMetadata(e,i),ln.addFeatures(e,s),ln.endSchema(e)}};class ot{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsFooter(e,n){return(n||new ot).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsFooter(e,n){return e.setPosition(e.position()+oe),(n||new ot).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):vi.V1}schema(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new Wt).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}dictionaries(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Uu).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}dictionariesLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}recordBatches(e,n){const r=this.bb.__offset(this.bb_pos,10);return r?(n||new Uu).__init(this.bb.__vector(this.bb_pos+r)+e*24,this.bb):null}recordBatchesLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.__vector_len(this.bb_pos+e):0}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Be).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startFooter(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,vi.V1)}static addSchema(e,n){e.addFieldOffset(1,n,0)}static addDictionaries(e,n){e.addFieldOffset(2,n,0)}static startDictionariesVector(e,n){e.startVector(24,n,8)}static addRecordBatches(e,n){e.addFieldOffset(3,n,0)}static startRecordBatchesVector(e,n){e.startVector(24,n,8)}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endFooter(e){return e.endObject()}static finishFooterBuffer(e,n){e.finish(n)}static finishSizePrefixedFooterBuffer(e,n){e.finish(n,void 0,!0)}}class q{constructor(e=[],n,r){this.fields=e||[],this.metadata=n||new Map,r||(r=ju(e)),this.dictionaries=r}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(e=>e.name)}toString(){return`Schema<{ ${this.fields.map((e,n)=>`${n}: ${e}`).join(", ")} }>`}select(e){const n=new Set(e),r=this.fields.filter(i=>n.has(i.name));return new q(r,this.metadata)}selectAt(e){const n=e.map(r=>this.fields[r]).filter(Boolean);return new q(n,this.metadata)}assign(...e){const n=e[0]instanceof q?e[0]:Array.isArray(e[0])?new q(e[0]):new q(e),r=[...this.fields],i=lo(lo(new Map,this.metadata),n.metadata),s=n.fields.filter(l=>{const a=r.findIndex(u=>u.name===l.name);return~a?(r[a]=l.clone({metadata:lo(lo(new Map,r[a].metadata),l.metadata)}))&&!1:!0}),o=ju(s,new Map);return new q([...r,...s],i,new Map([...this.dictionaries,...o]))}}q.prototype.fields=null;q.prototype.metadata=null;q.prototype.dictionaries=null;class de{constructor(e,n,r=!1,i){this.name=e,this.type=n,this.nullable=r,this.metadata=i||new Map}static new(...e){let[n,r,i,s]=e;return e[0]&&typeof e[0]=="object"&&({name:n}=e[0],r===void 0&&(r=e[0].type),i===void 0&&(i=e[0].nullable),s===void 0&&(s=e[0].metadata)),new de(`${n}`,r,i,s)}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...e){let[n,r,i,s]=e;return!e[0]||typeof e[0]!="object"?[n=this.name,r=this.type,i=this.nullable,s=this.metadata]=e:{name:n=this.name,type:r=this.type,nullable:i=this.nullable,metadata:s=this.metadata}=e[0],de.new(n,r,i,s)}}de.prototype.type=null;de.prototype.name=null;de.prototype.nullable=null;de.prototype.metadata=null;function lo(t,e){return new Map([...t||new Map,...e||new Map])}function ju(t,e=new Map){for(let n=-1,r=t.length;++n<r;){const s=t[n].type;if(E.isDictionary(s)){if(!e.has(s.id))e.set(s.id,s.dictionary);else if(e.get(s.id)!==s.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}s.children&&s.children.length>0&&ju(s.children,e)}return e}var Pf=vn,b_=Lm,I_=gi;class Bs{constructor(e,n=ut.V4,r,i){this.schema=e,this.version=n,r&&(this._recordBatches=r),i&&(this._dictionaryBatches=i)}static decode(e){e=new I_(K(e));const n=ot.getRootAsFooter(e),r=q.decode(n.schema());return new N_(r,n)}static encode(e){const n=new b_,r=q.encode(n,e.schema);ot.startRecordBatchesVector(n,e.numRecordBatches);for(const o of[...e.recordBatches()].slice().reverse())Zn.encode(n,o);const i=n.endVector();ot.startDictionariesVector(n,e.numDictionaries);for(const o of[...e.dictionaryBatches()].slice().reverse())Zn.encode(n,o);const s=n.endVector();return ot.startFooter(n),ot.addSchema(n,r),ot.addVersion(n,ut.V4),ot.addRecordBatches(n,i),ot.addDictionaries(n,s),ot.finishFooterBuffer(n,ot.endFooter(n)),n.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}*recordBatches(){for(let e,n=-1,r=this.numRecordBatches;++n<r;)(e=this.getRecordBatch(n))&&(yield e)}*dictionaryBatches(){for(let e,n=-1,r=this.numDictionaries;++n<r;)(e=this.getDictionaryBatch(n))&&(yield e)}getRecordBatch(e){return e>=0&&e<this.numRecordBatches&&this._recordBatches[e]||null}getDictionaryBatch(e){return e>=0&&e<this.numDictionaries&&this._dictionaryBatches[e]||null}}class N_ extends Bs{constructor(e,n){super(e,n.version()),this._footer=n}get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}getRecordBatch(e){if(e>=0&&e<this.numRecordBatches){const n=this._footer.recordBatches(e);if(n)return Zn.decode(n)}return null}getDictionaryBatch(e){if(e>=0&&e<this.numDictionaries){const n=this._footer.dictionaries(e);if(n)return Zn.decode(n)}return null}}class Zn{constructor(e,n,r){this.metaDataLength=e,this.offset=typeof r=="number"?r:r.low,this.bodyLength=typeof n=="number"?n:n.low}static decode(e){return new Zn(e.metaDataLength(),e.bodyLength(),e.offset())}static encode(e,n){const{metaDataLength:r}=n,i=new Pf(n.offset,0),s=new Pf(n.bodyLength,0);return Uu.createBlock(e,i,r,s)}}const ye=Object.freeze({done:!0,value:void 0});class zf{constructor(e){this._json=e}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class sd{tee(){return this._getDOMStream().tee()}pipe(e,n){return this._getNodeStream().pipe(e,n)}pipeTo(e,n){return this._getDOMStream().pipeTo(e,n)}pipeThrough(e,n){return this._getDOMStream().pipeThrough(e,n)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class x_ extends sd{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(e=>this._closedPromiseResolve=e)}get closed(){return this._closedPromise}cancel(e){return O(this,void 0,void 0,function*(){yield this.return(e)})}write(e){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(e):this.resolvers.shift().resolve({done:!1,value:e}))}abort(e){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:e}:this.resolvers.shift().reject({done:!0,value:e}))}close(){if(this._closedPromiseResolve){const{resolvers:e}=this;for(;e.length>0;)e.shift().resolve(ye);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(e){return wt.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,e)}toNodeStream(e){return wt.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,e)}throw(e){return O(this,void 0,void 0,function*(){return yield this.abort(e),ye})}return(e){return O(this,void 0,void 0,function*(){return yield this.close(),ye})}read(e){return O(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return O(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(...e){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((n,r)=>{this.resolvers.push({resolve:n,reject:r})}):Promise.resolve(ye)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class xo extends x_{write(e){if((e=K(e)).byteLength>0)return super.write(e)}toString(e=!1){return e?Au(this.toUint8Array(!0)):this.toUint8Array(!1).then(Au)}toUint8Array(e=!1){return e?rn(this._values)[0]:O(this,void 0,void 0,function*(){var n,r;const i=[];let s=0;try{for(var o=br(this),l;l=yield o.next(),!l.done;){const a=l.value;i.push(a),s+=a.byteLength}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=o.return)&&(yield r.call(o))}finally{if(n)throw n.error}}return rn(i,s)[0]})}}class vl{constructor(e){e&&(this.source=new B_(wt.fromIterable(e)))}[Symbol.iterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class Si{constructor(e){e instanceof Si?this.source=e.source:e instanceof xo?this.source=new ar(wt.fromAsyncIterable(e)):vy(e)?this.source=new ar(wt.fromNodeStream(e)):Hc(e)?this.source=new ar(wt.fromDOMStream(e)):gy(e)?this.source=new ar(wt.fromDOMStream(e.body)):Ls(e)?this.source=new ar(wt.fromIterable(e)):Kn(e)?this.source=new ar(wt.fromAsyncIterable(e)):ki(e)&&(this.source=new ar(wt.fromAsyncIterable(e)))}[Symbol.asyncIterator](){return this}next(e){return this.source.next(e)}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}get closed(){return this.source.closed}cancel(e){return this.source.cancel(e)}peek(e){return this.source.peek(e)}read(e){return this.source.read(e)}}class B_{constructor(e){this.source=e}cancel(e){this.return(e)}peek(e){return this.next(e,"peek").value}read(e){return this.next(e,"read").value}next(e,n="read"){return this.source.next({cmd:n,size:e})}throw(e){return Object.create(this.source.throw&&this.source.throw(e)||ye)}return(e){return Object.create(this.source.return&&this.source.return(e)||ye)}}class ar{constructor(e){this.source=e,this._closedPromise=new Promise(n=>this._closedPromiseResolve=n)}cancel(e){return O(this,void 0,void 0,function*(){yield this.return(e)})}get closed(){return this._closedPromise}read(e){return O(this,void 0,void 0,function*(){return(yield this.next(e,"read")).value})}peek(e){return O(this,void 0,void 0,function*(){return(yield this.next(e,"peek")).value})}next(e,n="read"){return O(this,void 0,void 0,function*(){return yield this.source.next({cmd:n,size:e})})}throw(e){return O(this,void 0,void 0,function*(){const n=this.source.throw&&(yield this.source.throw(e))||ye;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}return(e){return O(this,void 0,void 0,function*(){const n=this.source.return&&(yield this.source.return(e))||ye;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(n)})}}class jf extends vl{constructor(e,n){super(),this.position=0,this.buffer=K(e),this.size=typeof n>"u"?this.buffer.byteLength:n}readInt32(e){const{buffer:n,byteOffset:r}=this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)}seek(e){return this.position=Math.min(e,this.size),e<this.size}read(e){const{buffer:n,size:r,position:i}=this;return n&&i<r?(typeof e!="number"&&(e=Number.POSITIVE_INFINITY),this.position=Math.min(r,i+Math.min(r-i,e)),n.subarray(i,this.position)):null}readAt(e,n){const r=this.buffer,i=Math.min(this.size,e+n);return r?r.subarray(e,i):new Uint8Array(n)}close(){this.buffer&&(this.buffer=null)}throw(e){return this.close(),{done:!0,value:e}}return(e){return this.close(),{done:!0,value:e}}}class wl extends Si{constructor(e,n){super(),this.position=0,this._handle=e,typeof n=="number"?this.size=n:this._pending=O(this,void 0,void 0,function*(){this.size=(yield e.stat()).size,delete this._pending})}readInt32(e){return O(this,void 0,void 0,function*(){const{buffer:n,byteOffset:r}=yield this.readAt(e,4);return new DataView(n,r).getInt32(0,!0)})}seek(e){return O(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(e,this.size),e<this.size})}read(e){return O(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:n,size:r,position:i}=this;if(n&&i<r){typeof e!="number"&&(e=Number.POSITIVE_INFINITY);let s=i,o=0,l=0;const a=Math.min(r,s+Math.min(r-s,e)),u=new Uint8Array(Math.max(0,(this.position=a)-s));for(;(s+=l)<a&&(o+=l)<u.byteLength;)({bytesRead:l}=yield n.read(u,o,u.byteLength-o,s));return u}return null})}readAt(e,n){return O(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:r,size:i}=this;if(r&&e+n<i){const s=Math.min(i,e+n),o=new Uint8Array(s-e);return(yield r.read(o,0,n,e)).buffer}return new Uint8Array(n)})}close(){return O(this,void 0,void 0,function*(){const e=this._handle;this._handle=null,e&&(yield e.close())})}throw(e){return O(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}return(e){return O(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:e}})}}const k_=65536;function Xr(t){return t<0&&(t=4294967295+t+1),`0x${t.toString(16)}`}const bi=8,od=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class Rm{constructor(e){this.buffer=e}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(e){const n=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),r=new Uint32Array([e.buffer[1]>>>16,e.buffer[1]&65535,e.buffer[0]>>>16,e.buffer[0]&65535]);let i=n[3]*r[3];this.buffer[0]=i&65535;let s=i>>>16;return i=n[2]*r[3],s+=i,i=n[3]*r[2]>>>0,s+=i,this.buffer[0]+=s<<16,this.buffer[1]=s>>>0<i?k_:0,this.buffer[1]+=s>>>16,this.buffer[1]+=n[1]*r[3]+n[2]*r[2]+n[3]*r[1],this.buffer[1]+=n[0]*r[3]+n[1]*r[2]+n[2]*r[1]+n[3]*r[0]<<16,this}_plus(e){const n=this.buffer[0]+e.buffer[0]>>>0;this.buffer[1]+=e.buffer[1],n<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=n}lessThan(e){return this.buffer[1]<e.buffer[1]||this.buffer[1]===e.buffer[1]&&this.buffer[0]<e.buffer[0]}equals(e){return this.buffer[1]===e.buffer[1]&&this.buffer[0]==e.buffer[0]}greaterThan(e){return e.lessThan(this)}hex(){return`${Xr(this.buffer[1])} ${Xr(this.buffer[0])}`}}class te extends Rm{times(e){return this._times(e),this}plus(e){return this._plus(e),this}static from(e,n=new Uint32Array(2)){return te.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return te.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.length,i=new te(n);for(let s=0;s<r;){const o=bi<r-s?bi:r-s,l=new te(new Uint32Array([Number.parseInt(e.slice(s,s+o),10),0])),a=new te(new Uint32Array([od[o],0]));i.times(a),i.plus(l),s+=o}return i}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,i=e.length;++r<i;)te.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new te(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new te(new Uint32Array(e.buffer)).plus(n)}}class Qe extends Rm{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(e){return this._times(e),this}plus(e){return this._plus(e),this}lessThan(e){const n=this.buffer[1]<<0,r=e.buffer[1]<<0;return n<r||n===r&&this.buffer[0]<e.buffer[0]}static from(e,n=new Uint32Array(2)){return Qe.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(2)){return Qe.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(2)){const r=e.startsWith("-"),i=e.length,s=new Qe(n);for(let o=r?1:0;o<i;){const l=bi<i-o?bi:i-o,a=new Qe(new Uint32Array([Number.parseInt(e.slice(o,o+l),10),0])),u=new Qe(new Uint32Array([od[l],0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(e){const n=new Uint32Array(e.length*2);for(let r=-1,i=e.length;++r<i;)Qe.from(e[r],new Uint32Array(n.buffer,n.byteOffset+2*r*4,2));return n}static multiply(e,n){return new Qe(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Qe(new Uint32Array(e.buffer)).plus(n)}}class Ht{constructor(e){this.buffer=e}high(){return new Qe(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Qe(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset,2))}negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[2]=~this.buffer[2],this.buffer[3]=~this.buffer[3],this.buffer[0]==0&&++this.buffer[1],this.buffer[1]==0&&++this.buffer[2],this.buffer[2]==0&&++this.buffer[3],this}times(e){const n=new te(new Uint32Array([this.buffer[3],0])),r=new te(new Uint32Array([this.buffer[2],0])),i=new te(new Uint32Array([this.buffer[1],0])),s=new te(new Uint32Array([this.buffer[0],0])),o=new te(new Uint32Array([e.buffer[3],0])),l=new te(new Uint32Array([e.buffer[2],0])),a=new te(new Uint32Array([e.buffer[1],0])),u=new te(new Uint32Array([e.buffer[0],0]));let c=te.multiply(s,u);this.buffer[0]=c.low();const d=new te(new Uint32Array([c.high(),0]));return c=te.multiply(i,u),d.plus(c),c=te.multiply(s,a),d.plus(c),this.buffer[1]=d.low(),this.buffer[3]=d.lessThan(c)?1:0,this.buffer[2]=d.high(),new te(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(te.multiply(r,u)).plus(te.multiply(i,a)).plus(te.multiply(s,l)),this.buffer[3]+=te.multiply(n,u).plus(te.multiply(r,a)).plus(te.multiply(i,l)).plus(te.multiply(s,o)).low(),this}plus(e){const n=new Uint32Array(4);return n[3]=this.buffer[3]+e.buffer[3]>>>0,n[2]=this.buffer[2]+e.buffer[2]>>>0,n[1]=this.buffer[1]+e.buffer[1]>>>0,n[0]=this.buffer[0]+e.buffer[0]>>>0,n[0]<this.buffer[0]>>>0&&++n[1],n[1]<this.buffer[1]>>>0&&++n[2],n[2]<this.buffer[2]>>>0&&++n[3],this.buffer[3]=n[3],this.buffer[2]=n[2],this.buffer[1]=n[1],this.buffer[0]=n[0],this}hex(){return`${Xr(this.buffer[3])} ${Xr(this.buffer[2])} ${Xr(this.buffer[1])} ${Xr(this.buffer[0])}`}static multiply(e,n){return new Ht(new Uint32Array(e.buffer)).times(n)}static add(e,n){return new Ht(new Uint32Array(e.buffer)).plus(n)}static from(e,n=new Uint32Array(4)){return Ht.fromString(typeof e=="string"?e:e.toString(),n)}static fromNumber(e,n=new Uint32Array(4)){return Ht.fromString(e.toString(),n)}static fromString(e,n=new Uint32Array(4)){const r=e.startsWith("-"),i=e.length,s=new Ht(n);for(let o=r?1:0;o<i;){const l=bi<i-o?bi:i-o,a=new Ht(new Uint32Array([Number.parseInt(e.slice(o,o+l),10),0,0,0])),u=new Ht(new Uint32Array([od[l],0,0,0]));s.times(u),s.plus(a),o+=l}return r?s.negate():s}static convertArray(e){const n=new Uint32Array(e.length*4);for(let r=-1,i=e.length;++r<i;)Ht.from(e[r],new Uint32Array(n.buffer,n.byteOffset+4*4*r,4));return n}}class Um extends Y{constructor(e,n,r,i){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=e,this.nodes=n,this.buffers=r,this.dictionaries=i}visit(e){return super.visit(e instanceof de?e.type:e)}visitNull(e,{length:n}=this.nextFieldNode()){return H({type:e,length:n})}visitBool(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitInt(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFloat(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitUtf8(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),data:this.readData(e)})}visitFixedSizeBinary(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDate(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTimestamp(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitTime(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitDecimal(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitList(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}visitStruct(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),children:this.visitMany(e.children)})}visitUnion(e){return e.mode===ht.Sparse?this.visitSparseUnion(e):this.visitDenseUnion(e)}visitDenseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),valueOffsets:this.readOffsets(e),children:this.visitMany(e.children)})}visitSparseUnion(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),typeIds:this.readTypeIds(e),children:this.visitMany(e.children)})}visitDictionary(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e.indices),dictionary:this.readDictionary(e)})}visitInterval(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),data:this.readData(e)})}visitFixedSizeList(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),child:this.visit(e.children[0])})}visitMap(e,{length:n,nullCount:r}=this.nextFieldNode()){return H({type:e,length:n,nullCount:r,nullBitmap:this.readNullBitmap(e,r),valueOffsets:this.readOffsets(e),child:this.visit(e.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(e,n,r=this.nextBufferRange()){return n>0&&this.readData(e,r)||new Uint8Array(0)}readOffsets(e,n){return this.readData(e,n)}readTypeIds(e,n){return this.readData(e,n)}readData(e,{length:n,offset:r}=this.nextBufferRange()){return this.bytes.subarray(r,r+n)}readDictionary(e){return this.dictionaries.get(e.id)}}class F_ extends Um{constructor(e,n,r,i){super(new Uint8Array(0),n,r,i),this.sources=e}readNullBitmap(e,n,{offset:r}=this.nextBufferRange()){return n<=0?new Uint8Array(0):cl(this.sources[r])}readOffsets(e,{offset:n}=this.nextBufferRange()){return se(Uint8Array,se(Int32Array,this.sources[n]))}readTypeIds(e,{offset:n}=this.nextBufferRange()){return se(Uint8Array,se(e.ArrayType,this.sources[n]))}readData(e,{offset:n}=this.nextBufferRange()){const{sources:r}=this;return E.isTimestamp(e)||(E.isInt(e)||E.isTime(e))&&e.bitWidth===64||E.isDate(e)&&e.unit===Nn.MILLISECOND?se(Uint8Array,Qe.convertArray(r[n])):E.isDecimal(e)?se(Uint8Array,Ht.convertArray(r[n])):E.isBinary(e)||E.isFixedSizeBinary(e)?O_(r[n]):E.isBool(e)?cl(r[n]):E.isUtf8(e)?Wc(r[n].join("")):se(Uint8Array,se(e.ArrayType,r[n].map(i=>+i)))}}function O_(t){const e=t.join(""),n=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)n[r>>1]=Number.parseInt(e.slice(r,r+2),16);return n}class T extends Y{compareSchemas(e,n){return e===n||n instanceof e.constructor&&this.compareManyFields(e.fields,n.fields)}compareManyFields(e,n){return e===n||Array.isArray(e)&&Array.isArray(n)&&e.length===n.length&&e.every((r,i)=>this.compareFields(r,n[i]))}compareFields(e,n){return e===n||n instanceof e.constructor&&e.name===n.name&&e.nullable===n.nullable&&this.visit(e.type,n.type)}}function st(t,e){return e instanceof t.constructor}function Ms(t,e){return t===e||st(t,e)}function kn(t,e){return t===e||st(t,e)&&t.bitWidth===e.bitWidth&&t.isSigned===e.isSigned}function na(t,e){return t===e||st(t,e)&&t.precision===e.precision}function E_(t,e){return t===e||st(t,e)&&t.byteWidth===e.byteWidth}function ld(t,e){return t===e||st(t,e)&&t.unit===e.unit}function Rs(t,e){return t===e||st(t,e)&&t.unit===e.unit&&t.timezone===e.timezone}function Us(t,e){return t===e||st(t,e)&&t.unit===e.unit&&t.bitWidth===e.bitWidth}function D_(t,e){return t===e||st(t,e)&&t.children.length===e.children.length&&qn.compareManyFields(t.children,e.children)}function C_(t,e){return t===e||st(t,e)&&t.children.length===e.children.length&&qn.compareManyFields(t.children,e.children)}function ad(t,e){return t===e||st(t,e)&&t.mode===e.mode&&t.typeIds.every((n,r)=>n===e.typeIds[r])&&qn.compareManyFields(t.children,e.children)}function A_(t,e){return t===e||st(t,e)&&t.id===e.id&&t.isOrdered===e.isOrdered&&qn.visit(t.indices,e.indices)&&qn.visit(t.dictionary,e.dictionary)}function ud(t,e){return t===e||st(t,e)&&t.unit===e.unit}function T_(t,e){return t===e||st(t,e)&&t.listSize===e.listSize&&t.children.length===e.children.length&&qn.compareManyFields(t.children,e.children)}function L_(t,e){return t===e||st(t,e)&&t.keysSorted===e.keysSorted&&t.children.length===e.children.length&&qn.compareManyFields(t.children,e.children)}T.prototype.visitNull=Ms;T.prototype.visitBool=Ms;T.prototype.visitInt=kn;T.prototype.visitInt8=kn;T.prototype.visitInt16=kn;T.prototype.visitInt32=kn;T.prototype.visitInt64=kn;T.prototype.visitUint8=kn;T.prototype.visitUint16=kn;T.prototype.visitUint32=kn;T.prototype.visitUint64=kn;T.prototype.visitFloat=na;T.prototype.visitFloat16=na;T.prototype.visitFloat32=na;T.prototype.visitFloat64=na;T.prototype.visitUtf8=Ms;T.prototype.visitBinary=Ms;T.prototype.visitFixedSizeBinary=E_;T.prototype.visitDate=ld;T.prototype.visitDateDay=ld;T.prototype.visitDateMillisecond=ld;T.prototype.visitTimestamp=Rs;T.prototype.visitTimestampSecond=Rs;T.prototype.visitTimestampMillisecond=Rs;T.prototype.visitTimestampMicrosecond=Rs;T.prototype.visitTimestampNanosecond=Rs;T.prototype.visitTime=Us;T.prototype.visitTimeSecond=Us;T.prototype.visitTimeMillisecond=Us;T.prototype.visitTimeMicrosecond=Us;T.prototype.visitTimeNanosecond=Us;T.prototype.visitDecimal=Ms;T.prototype.visitList=D_;T.prototype.visitStruct=C_;T.prototype.visitUnion=ad;T.prototype.visitDenseUnion=ad;T.prototype.visitSparseUnion=ad;T.prototype.visitDictionary=A_;T.prototype.visitInterval=ud;T.prototype.visitIntervalDayTime=ud;T.prototype.visitIntervalYearMonth=ud;T.prototype.visitFixedSizeList=T_;T.prototype.visitMap=L_;const qn=new T;function Vu(t,e){return qn.compareSchemas(t,e)}function Ra(t,e){return M_(t,e.map(n=>n.data.concat()))}function M_(t,e){const n=[...t.fields],r=[],i={numBatches:e.reduce((d,h)=>Math.max(d,h.length),0)};let s=0,o=0,l=-1;const a=e.length;let u,c=[];for(;i.numBatches-- >0;){for(o=Number.POSITIVE_INFINITY,l=-1;++l<a;)c[l]=u=e[l].shift(),o=Math.min(o,u?u.length:o);Number.isFinite(o)&&(c=R_(n,o,c,e,i),o>0&&(r[s++]=H({type:new Ve(n),length:o,nullCount:0,children:c.slice()})))}return[t=t.assign(n),r.map(d=>new Xe(t,d))]}function R_(t,e,n,r,i){var s;const o=(e+63&-64)>>3;for(let l=-1,a=r.length;++l<a;){const u=n[l],c=u==null?void 0:u.length;if(c>=e)c===e?n[l]=u:(n[l]=u.slice(0,e),i.numBatches=Math.max(i.numBatches,r[l].unshift(u.slice(e,c-e))));else{const d=t[l];t[l]=d.clone({nullable:!0}),n[l]=(s=u==null?void 0:u._changeLengthAndBackfillNullBitmap(e))!==null&&s!==void 0?s:H({type:d.type,length:e,nullCount:e,nullBitmap:new Uint8Array(o)})}}return n}var Pm;class je{constructor(...e){var n,r;if(e.length===0)return this.batches=[],this.schema=new q([]),this._offsets=[0],this;let i,s;e[0]instanceof q&&(i=e.shift()),e[e.length-1]instanceof Uint32Array&&(s=e.pop());const o=a=>{if(a){if(a instanceof Xe)return[a];if(a instanceof je)return a.batches;if(a instanceof le){if(a.type instanceof Ve)return[new Xe(new q(a.type.children),a)]}else{if(Array.isArray(a))return a.flatMap(u=>o(u));if(typeof a[Symbol.iterator]=="function")return[...a].flatMap(u=>o(u));if(typeof a=="object"){const u=Object.keys(a),c=u.map(g=>new Z([a[g]])),d=new q(u.map((g,v)=>new de(String(g),c[v].type))),[,h]=Ra(d,c);return h.length===0?[new Xe(a)]:h}}}return[]},l=e.flatMap(a=>o(a));if(i=(r=i??((n=l[0])===null||n===void 0?void 0:n.schema))!==null&&r!==void 0?r:new q([]),!(i instanceof q))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const a of l){if(!(a instanceof Xe))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!Vu(i,a.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=i,this.batches=l,this._offsets=s??Nm(this.data)}get data(){return this.batches.map(({data:e})=>e)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((e,n)=>e+n.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=Im(this.data)),this._nullCount}isValid(e){return!1}get(e){return null}set(e,n){}indexOf(e,n){return-1}getByteLength(e){return 0}[Symbol.iterator](){return this.batches.length>0?id.visit(new Z(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
48
|
+
${this.toArray().join(`,
|
|
49
|
+
`)}
|
|
50
|
+
]`}concat(...e){const n=this.schema,r=this.data.concat(e.flatMap(({data:i})=>i));return new je(n,r.map(i=>new Xe(n,i)))}slice(e,n){const r=this.schema;[e,n]=Sm({length:this.numRows},e,n);const i=xm(this.data,this._offsets,e,n);return new je(r,i.map(s=>new Xe(r,s)))}getChild(e){return this.getChildAt(this.schema.fields.findIndex(n=>n.name===e))}getChildAt(e){if(e>-1&&e<this.schema.fields.length){const n=this.data.map(r=>r.children[e]);if(n.length===0){const{type:r}=this.schema.fields[e],i=H({type:r,length:0,nullCount:0});n.push(i._changeLengthAndBackfillNullBitmap(this.numRows))}return new Z(n)}return null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e),n)}setChildAt(e,n){let r=this.schema,i=[...this.batches];if(e>-1&&e<this.numCols){n||(n=new Z([H({type:new Jn,length:this.numRows})]));const s=r.fields.slice(),o=s[e].clone({type:n.type}),l=this.schema.fields.map((a,u)=>this.getChildAt(u));[s[e],l[e]]=[o,n],[r,i]=Ra(r,l)}return new je(r,i)}select(e){const n=this.schema.fields.reduce((r,i,s)=>r.set(i.name,s),new Map);return this.selectAt(e.map(r=>n.get(r)).filter(r=>r>-1))}selectAt(e){const n=this.schema.selectAt(e),r=this.batches.map(i=>i.selectAt(e));return new je(n,r)}assign(e){const n=this.schema.fields,[r,i]=e.schema.fields.reduce((l,a,u)=>{const[c,d]=l,h=n.findIndex(g=>g.name===a.name);return~h?d[h]=u:c.push(u),l},[[],[]]),s=this.schema.assign(e.schema),o=[...n.map((l,a)=>[a,i[a]]).map(([l,a])=>a===void 0?this.getChildAt(l):e.getChildAt(a)),...r.map(l=>e.getChildAt(l))].filter(Boolean);return new je(...Ra(s,o))}}Pm=Symbol.toStringTag;je[Pm]=(t=>(t.schema=null,t.batches=[],t._offsets=new Uint32Array([0]),t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,t.isValid=ai(rd),t.get=ai(it.getVisitFn(y.Struct)),t.set=Bm(Ft.getVisitFn(y.Struct)),t.indexOf=km(dl.getVisitFn(y.Struct)),t.getByteLength=ai(sn.getVisitFn(y.Struct)),"Table"))(je.prototype);var zm;let Xe=class Wi{constructor(...e){switch(e.length){case 2:{if([this.schema]=e,!(this.schema instanceof q))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");if([,this.data=H({nullCount:0,type:new Ve(this.schema.fields),children:this.schema.fields.map(n=>H({type:n.type,nullCount:0}))})]=e,!(this.data instanceof le))throw new TypeError("RecordBatch constructor expects a [Schema, Data] pair.");[this.schema,this.data]=Vf(this.schema,this.data.children);break}case 1:{const[n]=e,{fields:r,children:i,length:s}=Object.keys(n).reduce((a,u,c)=>(a.children[c]=n[u],a.length=Math.max(a.length,n[u].length),a.fields[c]=de.new({name:u,type:n[u].type,nullable:!0}),a),{length:0,fields:new Array,children:new Array}),o=new q(r),l=H({type:new Ve(r),length:s,children:i,nullCount:0});[this.schema,this.data]=Vf(o,l.children,s);break}default:throw new TypeError("RecordBatch constructor expects an Object mapping names to child Data, or a [Schema, Data] pair.")}}get dictionaries(){return this._dictionaries||(this._dictionaries=jm(this.schema.fields,this.data.children))}get numCols(){return this.schema.fields.length}get numRows(){return this.data.length}get nullCount(){return this.data.nullCount}isValid(e){return this.data.getValid(e)}get(e){return it.visit(this.data,e)}set(e,n){return Ft.visit(this.data,e,n)}indexOf(e,n){return dl.visit(this.data,e,n)}getByteLength(e){return sn.visit(this.data,e)}[Symbol.iterator](){return id.visit(new Z([this.data]))}toArray(){return[...this]}concat(...e){return new je(this.schema,[this,...e])}slice(e,n){const[r]=new Z([this.data]).slice(e,n).data;return new Wi(this.schema,r)}getChild(e){var n;return this.getChildAt((n=this.schema.fields)===null||n===void 0?void 0:n.findIndex(r=>r.name===e))}getChildAt(e){return e>-1&&e<this.schema.fields.length?new Z([this.data.children[e]]):null}setChild(e,n){var r;return this.setChildAt((r=this.schema.fields)===null||r===void 0?void 0:r.findIndex(i=>i.name===e),n)}setChildAt(e,n){let r=this.schema,i=this.data;if(e>-1&&e<this.numCols){n||(n=new Z([H({type:new Jn,length:this.numRows})]));const s=r.fields.slice(),o=i.children.slice(),l=s[e].clone({type:n.type});[s[e],o[e]]=[l,n.data[0]],r=new q(s,new Map(this.schema.metadata)),i=H({type:new Ve(s),children:o})}return new Wi(r,i)}select(e){const n=this.schema.select(e),r=new Ve(n.fields),i=[];for(const s of e){const o=this.schema.fields.findIndex(l=>l.name===s);~o&&(i[o]=this.data.children[o])}return new Wi(n,H({type:r,length:this.numRows,children:i}))}selectAt(e){const n=this.schema.selectAt(e),r=e.map(s=>this.data.children[s]).filter(Boolean),i=H({type:new Ve(n.fields),length:this.numRows,children:r});return new Wi(n,i)}};zm=Symbol.toStringTag;Xe[zm]=(t=>(t._nullCount=-1,t[Symbol.isConcatSpreadable]=!0,"RecordBatch"))(Xe.prototype);function Vf(t,e,n=e.reduce((r,i)=>Math.max(r,i.length),0)){var r;const i=[...t.fields],s=[...e],o=(n+63&-64)>>3;for(const[l,a]of t.fields.entries()){const u=e[l];(!u||u.length!==n)&&(i[l]=a.clone({nullable:!0}),s[l]=(r=u==null?void 0:u._changeLengthAndBackfillNullBitmap(n))!==null&&r!==void 0?r:H({type:a.type,length:n,nullCount:n,nullBitmap:new Uint8Array(o)}))}return[t.assign(i),H({type:new Ve(i),length:n,children:s})]}function jm(t,e,n=new Map){for(let r=-1,i=t.length;++r<i;){const o=t[r].type,l=e[r];if(E.isDictionary(o)){if(!n.has(o.id))l.dictionary&&n.set(o.id,l.dictionary);else if(n.get(o.id)!==l.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}o.children&&o.children.length>0&&jm(o.children,l.children,n)}return n}class cd extends Xe{constructor(e){const n=e.fields.map(i=>H({type:i.type})),r=H({type:new Ve(e.fields),nullCount:0,children:n});super(e,r)}}var _l;(function(t){t[t.BUFFER=0]="BUFFER"})(_l||(_l={}));var Sl;(function(t){t[t.LZ4_FRAME=0]="LZ4_FRAME",t[t.ZSTD=1]="ZSTD"})(Sl||(Sl={}));class An{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsBodyCompression(e,n){return(n||new An).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsBodyCompression(e,n){return e.setPosition(e.position()+oe),(n||new An).__init(e.readInt32(e.position())+e.position(),e)}codec(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt8(this.bb_pos+e):Sl.LZ4_FRAME}method(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readInt8(this.bb_pos+e):_l.BUFFER}static startBodyCompression(e){e.startObject(2)}static addCodec(e,n){e.addFieldInt8(0,n,Sl.LZ4_FRAME)}static addMethod(e,n){e.addFieldInt8(1,n,_l.BUFFER)}static endBodyCompression(e){return e.endObject()}static createBodyCompression(e,n,r){return An.startBodyCompression(e),An.addCodec(e,n),An.addMethod(e,r),An.endBodyCompression(e)}}class Vm{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}}let $m=class{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(e,n,r){return e.prep(8,16),e.writeInt64(r),e.writeInt64(n),e.offset()}},dn=class $u{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsRecordBatch(e,n){return(n||new $u).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsRecordBatch(e,n){return e.setPosition(e.position()+oe),(n||new $u).__init(e.readInt32(e.position())+e.position(),e)}length(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}nodes(e,n){const r=this.bb.__offset(this.bb_pos,6);return r?(n||new $m).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}nodesLength(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.__vector_len(this.bb_pos+e):0}buffers(e,n){const r=this.bb.__offset(this.bb_pos,8);return r?(n||new Vm).__init(this.bb.__vector(this.bb_pos+r)+e*16,this.bb):null}buffersLength(){const e=this.bb.__offset(this.bb_pos,8);return e?this.bb.__vector_len(this.bb_pos+e):0}compression(e){const n=this.bb.__offset(this.bb_pos,10);return n?(e||new An).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}static startRecordBatch(e){e.startObject(4)}static addLength(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addNodes(e,n){e.addFieldOffset(1,n,0)}static startNodesVector(e,n){e.startVector(16,n,8)}static addBuffers(e,n){e.addFieldOffset(2,n,0)}static startBuffersVector(e,n){e.startVector(16,n,8)}static addCompression(e,n){e.addFieldOffset(3,n,0)}static endRecordBatch(e){return e.endObject()}},Ur=class Wu{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsDictionaryBatch(e,n){return(n||new Wu).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsDictionaryBatch(e,n){return e.setPosition(e.position()+oe),(n||new Wu).__init(e.readInt32(e.position())+e.position(),e)}id(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}data(e){const n=this.bb.__offset(this.bb_pos,6);return n?(e||new dn).__init(this.bb.__indirect(this.bb_pos+n),this.bb):null}isDelta(){const e=this.bb.__offset(this.bb_pos,8);return e?!!this.bb.readInt8(this.bb_pos+e):!1}static startDictionaryBatch(e){e.startObject(3)}static addId(e,n){e.addFieldInt64(0,n,e.createLong(0,0))}static addData(e,n){e.addFieldOffset(1,n,0)}static addIsDelta(e,n){e.addFieldInt8(2,+n,0)}static endDictionaryBatch(e){return e.endObject()}};var bl;(function(t){t[t.NONE=0]="NONE",t[t.Schema=1]="Schema",t[t.DictionaryBatch=2]="DictionaryBatch",t[t.RecordBatch=3]="RecordBatch",t[t.Tensor=4]="Tensor",t[t.SparseTensor=5]="SparseTensor"})(bl||(bl={}));let On=class Vt{constructor(){this.bb=null,this.bb_pos=0}__init(e,n){return this.bb_pos=e,this.bb=n,this}static getRootAsMessage(e,n){return(n||new Vt).__init(e.readInt32(e.position())+e.position(),e)}static getSizePrefixedRootAsMessage(e,n){return e.setPosition(e.position()+oe),(n||new Vt).__init(e.readInt32(e.position())+e.position(),e)}version(){const e=this.bb.__offset(this.bb_pos,4);return e?this.bb.readInt16(this.bb_pos+e):vi.V1}headerType(){const e=this.bb.__offset(this.bb_pos,6);return e?this.bb.readUint8(this.bb_pos+e):bl.NONE}header(e){const n=this.bb.__offset(this.bb_pos,8);return n?this.bb.__union(e,this.bb_pos+n):null}bodyLength(){const e=this.bb.__offset(this.bb_pos,10);return e?this.bb.readInt64(this.bb_pos+e):this.bb.createLong(0,0)}customMetadata(e,n){const r=this.bb.__offset(this.bb_pos,12);return r?(n||new Be).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+r)+e*4),this.bb):null}customMetadataLength(){const e=this.bb.__offset(this.bb_pos,12);return e?this.bb.__vector_len(this.bb_pos+e):0}static startMessage(e){e.startObject(5)}static addVersion(e,n){e.addFieldInt16(0,n,vi.V1)}static addHeaderType(e,n){e.addFieldInt8(1,n,bl.NONE)}static addHeader(e,n){e.addFieldOffset(2,n,0)}static addBodyLength(e,n){e.addFieldInt64(3,n,e.createLong(0,0))}static addCustomMetadata(e,n){e.addFieldOffset(4,n,0)}static createCustomMetadataVector(e,n){e.startVector(4,n.length,4);for(let r=n.length-1;r>=0;r--)e.addOffset(n[r]);return e.endVector()}static startCustomMetadataVector(e,n){e.startVector(4,n,4)}static endMessage(e){return e.endObject()}static finishMessageBuffer(e,n){e.finish(n)}static finishSizePrefixedMessageBuffer(e,n){e.finish(n,void 0,!0)}static createMessage(e,n,r,i,s,o){return Vt.startMessage(e),Vt.addVersion(e,n),Vt.addHeaderType(e,r),Vt.addHeader(e,i),Vt.addBodyLength(e,s),Vt.addCustomMetadata(e,o),Vt.endMessage(e)}};var U_=vn;class P_ extends Y{visit(e,n){return e==null||n==null?void 0:super.visit(e,n)}visitNull(e,n){return gr.startNull(n),gr.endNull(n)}visitInt(e,n){return at.startInt(n),at.addBitWidth(n,e.bitWidth),at.addIsSigned(n,e.isSigned),at.endInt(n)}visitFloat(e,n){return Xt.startFloatingPoint(n),Xt.addPrecision(n,e.precision),Xt.endFloatingPoint(n)}visitBinary(e,n){return pr.startBinary(n),pr.endBinary(n)}visitBool(e,n){return yr.startBool(n),yr.endBool(n)}visitUtf8(e,n){return wr.startUtf8(n),wr.endUtf8(n)}visitDecimal(e,n){return Ke.startDecimal(n),Ke.addScale(n,e.scale),Ke.addPrecision(n,e.precision),Ke.addBitWidth(n,e.bitWidth),Ke.endDecimal(n)}visitDate(e,n){return bo.startDate(n),bo.addUnit(n,e.unit),bo.endDate(n)}visitTime(e,n){return bt.startTime(n),bt.addUnit(n,e.unit),bt.addBitWidth(n,e.bitWidth),bt.endTime(n)}visitTimestamp(e,n){const r=e.timezone&&n.createString(e.timezone)||void 0;return It.startTimestamp(n),It.addUnit(n,e.unit),r!==void 0&&It.addTimezone(n,r),It.endTimestamp(n)}visitInterval(e,n){return Zt.startInterval(n),Zt.addUnit(n,e.unit),Zt.endInterval(n)}visitList(e,n){return mr.startList(n),mr.endList(n)}visitStruct(e,n){return vr.startStruct_(n),vr.endStruct_(n)}visitUnion(e,n){Je.startTypeIdsVector(n,e.typeIds.length);const r=Je.createTypeIdsVector(n,e.typeIds);return Je.startUnion(n),Je.addMode(n,e.mode),Je.addTypeIds(n,r),Je.endUnion(n)}visitDictionary(e,n){const r=this.visit(e.indices,n);return pn.startDictionaryEncoding(n),pn.addId(n,new U_(e.id,0)),pn.addIsOrdered(n,e.isOrdered),r!==void 0&&pn.addIndexType(n,r),pn.endDictionaryEncoding(n)}visitFixedSizeBinary(e,n){return Gt.startFixedSizeBinary(n),Gt.addByteWidth(n,e.byteWidth),Gt.endFixedSizeBinary(n)}visitFixedSizeList(e,n){return Jt.startFixedSizeList(n),Jt.addListSize(n,e.listSize),Jt.endFixedSizeList(n)}visitMap(e,n){return Io.startMap(n),Io.addKeysSorted(n,e.keysSorted),Io.endMap(n)}}const Ua=new P_;function z_(t,e=new Map){return new q(V_(t,e),Bo(t.customMetadata),e)}function Wm(t){return new pt(t.count,Hm(t.columns),Ym(t.columns))}function j_(t){return new on(Wm(t.data),t.id,t.isDelta)}function V_(t,e){return(t.fields||[]).filter(Boolean).map(n=>de.fromJSON(n,e))}function $f(t,e){return(t.children||[]).filter(Boolean).map(n=>de.fromJSON(n,e))}function Hm(t){return(t||[]).reduce((e,n)=>[...e,new Cr(n.count,$_(n.VALIDITY)),...Hm(n.children)],[])}function Ym(t,e=[]){for(let n=-1,r=(t||[]).length;++n<r;){const i=t[n];i.VALIDITY&&e.push(new en(e.length,i.VALIDITY.length)),i.TYPE&&e.push(new en(e.length,i.TYPE.length)),i.OFFSET&&e.push(new en(e.length,i.OFFSET.length)),i.DATA&&e.push(new en(e.length,i.DATA.length)),e=Ym(i.children,e)}return e}function $_(t){return(t||[]).reduce((e,n)=>e+ +(n===0),0)}function W_(t,e){let n,r,i,s,o,l;return!e||!(s=t.dictionary)?(o=Hf(t,$f(t,e)),i=new de(t.name,o,t.nullable,Bo(t.customMetadata))):e.has(n=s.id)?(r=(r=s.indexType)?Wf(r):new Is,l=new mi(e.get(n),r,n,s.isOrdered),i=new de(t.name,l,t.nullable,Bo(t.customMetadata))):(r=(r=s.indexType)?Wf(r):new Is,e.set(n,o=Hf(t,$f(t,e))),l=new mi(o,r,n,s.isOrdered),i=new de(t.name,l,t.nullable,Bo(t.customMetadata))),i||null}function Bo(t){return new Map(Object.entries(t||{}))}function Wf(t){return new Xn(t.isSigned,t.bitWidth)}function Hf(t,e){const n=t.type.name;switch(n){case"NONE":return new Jn;case"null":return new Jn;case"binary":return new Zo;case"utf8":return new qo;case"bool":return new el;case"list":return new sl((e||[])[0]);case"struct":return new Ve(e||[]);case"struct_":return new Ve(e||[])}switch(n){case"int":{const r=t.type;return new Xn(r.isSigned,r.bitWidth)}case"floatingpoint":{const r=t.type;return new Ns(nt[r.precision])}case"decimal":{const r=t.type;return new tl(r.scale,r.precision,r.bitWidth)}case"date":{const r=t.type;return new nl(Nn[r.unit])}case"time":{const r=t.type;return new xs(G[r.unit],r.bitWidth)}case"timestamp":{const r=t.type;return new rl(G[r.unit],r.timezone)}case"interval":{const r=t.type;return new il(Gn[r.unit])}case"union":{const r=t.type;return new ol(ht[r.mode],r.typeIds||[],e||[])}case"fixedsizebinary":{const r=t.type;return new ll(r.byteWidth)}case"fixedsizelist":{const r=t.type;return new al(r.listSize,(e||[])[0])}case"map":{const r=t.type;return new ul((e||[])[0],r.keysSorted)}}throw new Error(`Unrecognized type: "${n}"`)}var Or=vn,H_=Lm,Y_=gi;class $e{constructor(e,n,r,i){this._version=n,this._headerType=r,this.body=new Uint8Array(0),i&&(this._createHeader=()=>i),this._bodyLength=typeof e=="number"?e:e.low}static fromJSON(e,n){const r=new $e(0,ut.V4,n);return r._createHeader=Q_(e,n),r}static decode(e){e=new Y_(K(e));const n=On.getRootAsMessage(e),r=n.bodyLength(),i=n.version(),s=n.headerType(),o=new $e(r,i,s);return o._createHeader=K_(n,s),o}static encode(e){const n=new H_;let r=-1;return e.isSchema()?r=q.encode(n,e.header()):e.isRecordBatch()?r=pt.encode(n,e.header()):e.isDictionaryBatch()&&(r=on.encode(n,e.header())),On.startMessage(n),On.addVersion(n,ut.V4),On.addHeader(n,r),On.addHeaderType(n,e.headerType),On.addBodyLength(n,new Or(e.bodyLength,0)),On.finishMessageBuffer(n,On.endMessage(n)),n.asUint8Array()}static from(e,n=0){if(e instanceof q)return new $e(0,ut.V4,X.Schema,e);if(e instanceof pt)return new $e(n,ut.V4,X.RecordBatch,e);if(e instanceof on)return new $e(n,ut.V4,X.DictionaryBatch,e);throw new Error(`Unrecognized Message header: ${e}`)}get type(){return this.headerType}get version(){return this._version}get headerType(){return this._headerType}get bodyLength(){return this._bodyLength}header(){return this._createHeader()}isSchema(){return this.headerType===X.Schema}isRecordBatch(){return this.headerType===X.RecordBatch}isDictionaryBatch(){return this.headerType===X.DictionaryBatch}}class pt{constructor(e,n,r){this._nodes=n,this._buffers=r,this._length=typeof e=="number"?e:e.low}get nodes(){return this._nodes}get length(){return this._length}get buffers(){return this._buffers}}class on{constructor(e,n,r=!1){this._data=e,this._isDelta=r,this._id=typeof n=="number"?n:n.low}get id(){return this._id}get data(){return this._data}get isDelta(){return this._isDelta}get length(){return this.data.length}get nodes(){return this.data.nodes}get buffers(){return this.data.buffers}}class en{constructor(e,n){this.offset=typeof e=="number"?e:e.low,this.length=typeof n=="number"?n:n.low}}class Cr{constructor(e,n){this.length=typeof e=="number"?e:e.low,this.nullCount=typeof n=="number"?n:n.low}}function Q_(t,e){return()=>{switch(e){case X.Schema:return q.fromJSON(t);case X.RecordBatch:return pt.fromJSON(t);case X.DictionaryBatch:return on.fromJSON(t)}throw new Error(`Unrecognized Message type: { name: ${X[e]}, type: ${e} }`)}}function K_(t,e){return()=>{switch(e){case X.Schema:return q.decode(t.header(new Wt));case X.RecordBatch:return pt.decode(t.header(new dn),t.version());case X.DictionaryBatch:return on.decode(t.header(new Ur),t.version())}throw new Error(`Unrecognized Message type: { name: ${X[e]}, type: ${e} }`)}}de.encode=s1;de.decode=r1;de.fromJSON=W_;q.encode=i1;q.decode=G_;q.fromJSON=z_;pt.encode=o1;pt.decode=J_;pt.fromJSON=Wm;on.encode=l1;on.decode=X_;on.fromJSON=j_;Cr.encode=a1;Cr.decode=q_;en.encode=u1;en.decode=Z_;function G_(t,e=new Map){const n=n1(t,e);return new q(n,ko(t),e)}function J_(t,e=ut.V4){if(t.compression()!==null)throw new Error("Record batch compression not implemented");return new pt(t.length(),e1(t),t1(t,e))}function X_(t,e=ut.V4){return new on(pt.decode(t.data(),e),t.id(),t.isDelta())}function Z_(t){return new en(t.offset(),t.length())}function q_(t){return new Cr(t.length(),t.nullCount())}function e1(t){const e=[];for(let n,r=-1,i=-1,s=t.nodesLength();++r<s;)(n=t.nodes(r))&&(e[++i]=Cr.decode(n));return e}function t1(t,e){const n=[];for(let r,i=-1,s=-1,o=t.buffersLength();++i<o;)(r=t.buffers(i))&&(e<ut.V4&&(r.bb_pos+=8*(i+1)),n[++s]=en.decode(r));return n}function n1(t,e){const n=[];for(let r,i=-1,s=-1,o=t.fieldsLength();++i<o;)(r=t.fields(i))&&(n[++s]=de.decode(r,e));return n}function Yf(t,e){const n=[];for(let r,i=-1,s=-1,o=t.childrenLength();++i<o;)(r=t.children(i))&&(n[++s]=de.decode(r,e));return n}function r1(t,e){let n,r,i,s,o,l;return!e||!(l=t.dictionary())?(i=Kf(t,Yf(t,e)),r=new de(t.name(),i,t.nullable(),ko(t))):e.has(n=l.id().low)?(s=(s=l.indexType())?Qf(s):new Is,o=new mi(e.get(n),s,n,l.isOrdered()),r=new de(t.name(),o,t.nullable(),ko(t))):(s=(s=l.indexType())?Qf(s):new Is,e.set(n,i=Kf(t,Yf(t,e))),o=new mi(i,s,n,l.isOrdered()),r=new de(t.name(),o,t.nullable(),ko(t))),r||null}function ko(t){const e=new Map;if(t)for(let n,r,i=-1,s=Math.trunc(t.customMetadataLength());++i<s;)(n=t.customMetadata(i))&&(r=n.key())!=null&&e.set(r,n.value());return e}function Qf(t){return new Xn(t.isSigned(),t.bitWidth())}function Kf(t,e){const n=t.typeType();switch(n){case he.NONE:return new Jn;case he.Null:return new Jn;case he.Binary:return new Zo;case he.Utf8:return new qo;case he.Bool:return new el;case he.List:return new sl((e||[])[0]);case he.Struct_:return new Ve(e||[])}switch(n){case he.Int:{const r=t.type(new at);return new Xn(r.isSigned(),r.bitWidth())}case he.FloatingPoint:{const r=t.type(new Xt);return new Ns(r.precision())}case he.Decimal:{const r=t.type(new Ke);return new tl(r.scale(),r.precision(),r.bitWidth())}case he.Date:{const r=t.type(new bo);return new nl(r.unit())}case he.Time:{const r=t.type(new bt);return new xs(r.unit(),r.bitWidth())}case he.Timestamp:{const r=t.type(new It);return new rl(r.unit(),r.timezone())}case he.Interval:{const r=t.type(new Zt);return new il(r.unit())}case he.Union:{const r=t.type(new Je);return new ol(r.mode(),r.typeIdsArray()||[],e||[])}case he.FixedSizeBinary:{const r=t.type(new Gt);return new ll(r.byteWidth())}case he.FixedSizeList:{const r=t.type(new Jt);return new al(r.listSize(),(e||[])[0])}case he.Map:{const r=t.type(new Io);return new ul((e||[])[0],r.keysSorted())}}throw new Error(`Unrecognized type: "${he[n]}" (${n})`)}function i1(t,e){const n=e.fields.map(s=>de.encode(t,s));Wt.startFieldsVector(t,n.length);const r=Wt.createFieldsVector(t,n),i=e.metadata&&e.metadata.size>0?Wt.createCustomMetadataVector(t,[...e.metadata].map(([s,o])=>{const l=t.createString(`${s}`),a=t.createString(`${o}`);return Be.startKeyValue(t),Be.addKey(t,l),Be.addValue(t,a),Be.endKeyValue(t)})):-1;return Wt.startSchema(t),Wt.addFields(t,r),Wt.addEndianness(t,c1?wi.Little:wi.Big),i!==-1&&Wt.addCustomMetadata(t,i),Wt.endSchema(t)}function s1(t,e){let n=-1,r=-1,i=-1;const s=e.type;let o=e.typeId;E.isDictionary(s)?(o=s.dictionary.typeId,i=Ua.visit(s,t),r=Ua.visit(s.dictionary,t)):r=Ua.visit(s,t);const l=(s.children||[]).map(c=>de.encode(t,c)),a=vt.createChildrenVector(t,l),u=e.metadata&&e.metadata.size>0?vt.createCustomMetadataVector(t,[...e.metadata].map(([c,d])=>{const h=t.createString(`${c}`),g=t.createString(`${d}`);return Be.startKeyValue(t),Be.addKey(t,h),Be.addValue(t,g),Be.endKeyValue(t)})):-1;return e.name&&(n=t.createString(e.name)),vt.startField(t),vt.addType(t,r),vt.addTypeType(t,o),vt.addChildren(t,a),vt.addNullable(t,!!e.nullable),n!==-1&&vt.addName(t,n),i!==-1&&vt.addDictionary(t,i),u!==-1&&vt.addCustomMetadata(t,u),vt.endField(t)}function o1(t,e){const n=e.nodes||[],r=e.buffers||[];dn.startNodesVector(t,n.length);for(const o of n.slice().reverse())Cr.encode(t,o);const i=t.endVector();dn.startBuffersVector(t,r.length);for(const o of r.slice().reverse())en.encode(t,o);const s=t.endVector();return dn.startRecordBatch(t),dn.addLength(t,new Or(e.length,0)),dn.addNodes(t,i),dn.addBuffers(t,s),dn.endRecordBatch(t)}function l1(t,e){const n=pt.encode(t,e.data);return Ur.startDictionaryBatch(t),Ur.addId(t,new Or(e.id,0)),Ur.addIsDelta(t,e.isDelta),Ur.addData(t,n),Ur.endDictionaryBatch(t)}function a1(t,e){return $m.createFieldNode(t,new Or(e.length,0),new Or(e.nullCount,0))}function u1(t,e){return Vm.createBuffer(t,new Or(e.offset,0),new Or(e.length,0))}const c1=(()=>{const t=new ArrayBuffer(2);return new DataView(t).setInt16(0,256,!0),new Int16Array(t)[0]===256})(),dd=t=>`Expected ${X[t]} Message in stream, but was null or length 0.`,fd=t=>`Header pointer of flatbuffer-encoded ${X[t]} Message is null or length 0.`,Qm=(t,e)=>`Expected to read ${t} metadata bytes, but only read ${e}.`,Km=(t,e)=>`Expected to read ${t} bytes for message body, but only read ${e}.`;class Gm{constructor(e){this.source=e instanceof vl?e:new vl(e)}[Symbol.iterator](){return this}next(){let e;return(e=this.readMetadataLength()).done||e.value===-1&&(e=this.readMetadataLength()).done||(e=this.readMetadata(e.value)).done?ye:e}throw(e){return this.source.throw(e)}return(e){return this.source.return(e)}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(dd(e));return n.value}readMessageBody(e){if(e<=0)return new Uint8Array(0);const n=K(this.source.read(e));if(n.byteLength<e)throw new Error(Km(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()}readSchema(e=!1){const n=X.Schema,r=this.readMessage(n),i=r==null?void 0:r.header();if(e&&!i)throw new Error(fd(n));return i}readMetadataLength(){const e=this.source.read(ra),n=e&&new gi(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}}readMetadata(e){const n=this.source.read(e);if(!n)return ye;if(n.byteLength<e)throw new Error(Qm(e,n.byteLength));return{done:!1,value:$e.decode(n)}}}class d1{constructor(e,n){this.source=e instanceof Si?e:my(e)?new wl(e,n):new Si(e)}[Symbol.asyncIterator](){return this}next(){return O(this,void 0,void 0,function*(){let e;return(e=yield this.readMetadataLength()).done||e.value===-1&&(e=yield this.readMetadataLength()).done||(e=yield this.readMetadata(e.value)).done?ye:e})}throw(e){return O(this,void 0,void 0,function*(){return yield this.source.throw(e)})}return(e){return O(this,void 0,void 0,function*(){return yield this.source.return(e)})}readMessage(e){return O(this,void 0,void 0,function*(){let n;if((n=yield this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(dd(e));return n.value})}readMessageBody(e){return O(this,void 0,void 0,function*(){if(e<=0)return new Uint8Array(0);const n=K(yield this.source.read(e));if(n.byteLength<e)throw new Error(Km(e,n.byteLength));return n.byteOffset%8===0&&n.byteOffset+n.byteLength<=n.buffer.byteLength?n:n.slice()})}readSchema(e=!1){return O(this,void 0,void 0,function*(){const n=X.Schema,r=yield this.readMessage(n),i=r==null?void 0:r.header();if(e&&!i)throw new Error(fd(n));return i})}readMetadataLength(){return O(this,void 0,void 0,function*(){const e=yield this.source.read(ra),n=e&&new gi(e),r=(n==null?void 0:n.readInt32(0))||0;return{done:r===0,value:r}})}readMetadata(e){return O(this,void 0,void 0,function*(){const n=yield this.source.read(e);if(!n)return ye;if(n.byteLength<e)throw new Error(Qm(e,n.byteLength));return{done:!1,value:$e.decode(n)}})}}class f1 extends Gm{constructor(e){super(new Uint8Array(0)),this._schema=!1,this._body=[],this._batchIndex=0,this._dictionaryIndex=0,this._json=e instanceof zf?e:new zf(e)}next(){const{_json:e}=this;if(!this._schema)return this._schema=!0,{done:!1,value:$e.fromJSON(e.schema,X.Schema)};if(this._dictionaryIndex<e.dictionaries.length){const n=e.dictionaries[this._dictionaryIndex++];return this._body=n.data.columns,{done:!1,value:$e.fromJSON(n,X.DictionaryBatch)}}if(this._batchIndex<e.batches.length){const n=e.batches[this._batchIndex++];return this._body=n.columns,{done:!1,value:$e.fromJSON(n,X.RecordBatch)}}return this._body=[],ye}readMessageBody(e){return n(this._body);function n(r){return(r||[]).reduce((i,s)=>[...i,...s.VALIDITY&&[s.VALIDITY]||[],...s.TYPE&&[s.TYPE]||[],...s.OFFSET&&[s.OFFSET]||[],...s.DATA&&[s.DATA]||[],...n(s.children)],[])}}readMessage(e){let n;if((n=this.next()).done)return null;if(e!=null&&n.value.headerType!==e)throw new Error(dd(e));return n.value}readSchema(){const e=X.Schema,n=this.readMessage(e),r=n==null?void 0:n.header();if(!n||!r)throw new Error(fd(e));return r}}const ra=4,Hu="ARROW1",ks=new Uint8Array(Hu.length);for(let t=0;t<Hu.length;t+=1)ks[t]=Hu.codePointAt(t);function hd(t,e=0){for(let n=-1,r=ks.length;++n<r;)if(ks[n]!==t[e+n])return!1;return!0}const Ps=ks.length,Jm=Ps+ra,h1=Ps*2+ra;class wn extends sd{constructor(e){super(),this._impl=e}get closed(){return this._impl.closed}get schema(){return this._impl.schema}get autoDestroy(){return this._impl.autoDestroy}get dictionaries(){return this._impl.dictionaries}get numDictionaries(){return this._impl.numDictionaries}get numRecordBatches(){return this._impl.numRecordBatches}get footer(){return this._impl.isFile()?this._impl.footer:null}isSync(){return this._impl.isSync()}isAsync(){return this._impl.isAsync()}isFile(){return this._impl.isFile()}isStream(){return this._impl.isStream()}next(){return this._impl.next()}throw(e){return this._impl.throw(e)}return(e){return this._impl.return(e)}cancel(){return this._impl.cancel()}reset(e){return this._impl.reset(e),this._DOMStream=void 0,this._nodeStream=void 0,this}open(e){const n=this._impl.open(e);return Kn(n)?n.then(()=>this):this}readRecordBatch(e){return this._impl.isFile()?this._impl.readRecordBatch(e):null}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}toDOMStream(){return wt.toDOMStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this})}toNodeStream(){return wt.toNodeStream(this.isSync()?{[Symbol.iterator]:()=>this}:{[Symbol.asyncIterator]:()=>this},{objectMode:!0})}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}static from(e){return e instanceof wn?e:Tu(e)?g1(e):my(e)?_1(e):Kn(e)?O(this,void 0,void 0,function*(){return yield wn.from(yield e)}):gy(e)||Hc(e)||vy(e)||ki(e)?w1(new Si(e)):v1(new vl(e))}static readAll(e){return e instanceof wn?e.isSync()?Gf(e):Jf(e):Tu(e)||ArrayBuffer.isView(e)||Ls(e)||yy(e)?Gf(e):Jf(e)}}class Il extends wn{constructor(e){super(e),this._impl=e}readAll(){return[...this]}[Symbol.iterator](){return this._impl[Symbol.iterator]()}[Symbol.asyncIterator](){return qt(this,arguments,function*(){yield z(yield*So(br(this[Symbol.iterator]())))})}}class Nl extends wn{constructor(e){super(e),this._impl=e}readAll(){var e,n;return O(this,void 0,void 0,function*(){const r=new Array;try{for(var i=br(this),s;s=yield i.next(),!s.done;){const o=s.value;r.push(o)}}catch(o){e={error:o}}finally{try{s&&!s.done&&(n=i.return)&&(yield n.call(i))}finally{if(e)throw e.error}}return r})}[Symbol.iterator](){throw new Error("AsyncRecordBatchStreamReader is not Iterable")}[Symbol.asyncIterator](){return this._impl[Symbol.asyncIterator]()}}class Xm extends Il{constructor(e){super(e),this._impl=e}}class p1 extends Nl{constructor(e){super(e),this._impl=e}}class Zm{constructor(e=new Map){this.closed=!1,this.autoDestroy=!0,this._dictionaryIndex=0,this._recordBatchIndex=0,this.dictionaries=e}get numDictionaries(){return this._dictionaryIndex}get numRecordBatches(){return this._recordBatchIndex}isSync(){return!1}isAsync(){return!1}isFile(){return!1}isStream(){return!1}reset(e){return this._dictionaryIndex=0,this._recordBatchIndex=0,this.schema=e,this.dictionaries=new Map,this}_loadRecordBatch(e,n){const r=this._loadVectors(e,n,this.schema.fields),i=H({type:new Ve(this.schema.fields),length:e.length,children:r});return new Xe(this.schema,i)}_loadDictionaryBatch(e,n){const{id:r,isDelta:i}=e,{dictionaries:s,schema:o}=this,l=s.get(r);if(i||!l){const a=o.dictionaries.get(r),u=this._loadVectors(e.data,n,[a]);return(l&&i?l.concat(new Z(u)):new Z(u)).memoize()}return l.memoize()}_loadVectors(e,n,r){return new Um(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}class xl extends Zm{constructor(e,n){super(n),this._reader=Tu(e)?new f1(this._handle=e):new Gm(this._handle=e)}isSync(){return!0}isStream(){return!0}[Symbol.iterator](){return this}cancel(){!this.closed&&(this.closed=!0)&&(this.reset()._reader.return(),this._reader=null,this.dictionaries=null)}open(e){return this.closed||(this.autoDestroy=eg(this,e),this.schema||(this.schema=this._reader.readSchema())||this.cancel()),this}throw(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.throw(e):ye}return(e){return!this.closed&&this.autoDestroy&&(this.closed=!0)?this.reset()._reader.return(e):ye}next(){if(this.closed)return ye;let e;const{_reader:n}=this;for(;e=this._readNextMessageAndValidate();)if(e.isSchema())this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),i=n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),i=n.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new cd(this.schema)}):this.return()}_readNextMessageAndValidate(e){return this._reader.readMessage(e)}}class Bl extends Zm{constructor(e,n){super(n),this._reader=new d1(this._handle=e)}isAsync(){return!0}isStream(){return!0}[Symbol.asyncIterator](){return this}cancel(){return O(this,void 0,void 0,function*(){!this.closed&&(this.closed=!0)&&(yield this.reset()._reader.return(),this._reader=null,this.dictionaries=null)})}open(e){return O(this,void 0,void 0,function*(){return this.closed||(this.autoDestroy=eg(this,e),this.schema||(this.schema=yield this._reader.readSchema())||(yield this.cancel())),this})}throw(e){return O(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.throw(e):ye})}return(e){return O(this,void 0,void 0,function*(){return!this.closed&&this.autoDestroy&&(this.closed=!0)?yield this.reset()._reader.return(e):ye})}next(){return O(this,void 0,void 0,function*(){if(this.closed)return ye;let e;const{_reader:n}=this;for(;e=yield this._readNextMessageAndValidate();)if(e.isSchema())yield this.reset(e.header());else if(e.isRecordBatch()){this._recordBatchIndex++;const r=e.header(),i=yield n.readMessageBody(e.bodyLength);return{done:!1,value:this._loadRecordBatch(r,i)}}else if(e.isDictionaryBatch()){this._dictionaryIndex++;const r=e.header(),i=yield n.readMessageBody(e.bodyLength),s=this._loadDictionaryBatch(r,i);this.dictionaries.set(r.id,s)}return this.schema&&this._recordBatchIndex===0?(this._recordBatchIndex++,{done:!1,value:new cd(this.schema)}):yield this.return()})}_readNextMessageAndValidate(e){return O(this,void 0,void 0,function*(){return yield this._reader.readMessage(e)})}}class qm extends xl{constructor(e,n){super(e instanceof jf?e:new jf(e),n)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isSync(){return!0}isFile(){return!0}open(e){if(!this.closed&&!this._footer){this.schema=(this._footer=this._readFooter()).schema;for(const n of this._footer.dictionaryBatches())n&&this._readDictionaryBatch(this._dictionaryIndex++)}return super.open(e)}readRecordBatch(e){var n;if(this.closed)return null;this._footer||this.open();const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null}_readDictionaryBatch(e){var n;const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&this._handle.seek(r.offset)){const i=this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}}_readFooter(){const{_handle:e}=this,n=e.size-Jm,r=e.readInt32(n),i=e.readAt(n-r,r);return Bs.decode(i)}_readNextMessageAndValidate(e){var n;if(this._footer||this.open(),this._footer&&this._recordBatchIndex<this.numRecordBatches){const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(this._recordBatchIndex);if(r&&this._handle.seek(r.offset))return this._reader.readMessage(e)}return null}}class y1 extends Bl{constructor(e,...n){const r=typeof n[0]!="number"?n.shift():void 0,i=n[0]instanceof Map?n.shift():void 0;super(e instanceof wl?e:new wl(e,r),i)}get footer(){return this._footer}get numDictionaries(){return this._footer?this._footer.numDictionaries:0}get numRecordBatches(){return this._footer?this._footer.numRecordBatches:0}isFile(){return!0}isAsync(){return!0}open(e){const n=Object.create(null,{open:{get:()=>super.open}});return O(this,void 0,void 0,function*(){if(!this.closed&&!this._footer){this.schema=(this._footer=yield this._readFooter()).schema;for(const r of this._footer.dictionaryBatches())r&&(yield this._readDictionaryBatch(this._dictionaryIndex++))}return yield n.open.call(this,e)})}readRecordBatch(e){var n;return O(this,void 0,void 0,function*(){if(this.closed)return null;this._footer||(yield this.open());const r=(n=this._footer)===null||n===void 0?void 0:n.getRecordBatch(e);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.RecordBatch);if(i!=null&&i.isRecordBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength);return this._loadRecordBatch(s,o)}}return null})}_readDictionaryBatch(e){var n;return O(this,void 0,void 0,function*(){const r=(n=this._footer)===null||n===void 0?void 0:n.getDictionaryBatch(e);if(r&&(yield this._handle.seek(r.offset))){const i=yield this._reader.readMessage(X.DictionaryBatch);if(i!=null&&i.isDictionaryBatch()){const s=i.header(),o=yield this._reader.readMessageBody(i.bodyLength),l=this._loadDictionaryBatch(s,o);this.dictionaries.set(s.id,l)}}})}_readFooter(){return O(this,void 0,void 0,function*(){const{_handle:e}=this;e._pending&&(yield e._pending);const n=e.size-Jm,r=yield e.readInt32(n),i=yield e.readAt(n-r,r);return Bs.decode(i)})}_readNextMessageAndValidate(e){return O(this,void 0,void 0,function*(){if(this._footer||(yield this.open()),this._footer&&this._recordBatchIndex<this.numRecordBatches){const n=this._footer.getRecordBatch(this._recordBatchIndex);if(n&&(yield this._handle.seek(n.offset)))return yield this._reader.readMessage(e)}return null})}}class m1 extends xl{constructor(e,n){super(e,n)}_loadVectors(e,n,r){return new F_(n,e.nodes,e.buffers,this.dictionaries).visitMany(r)}}function eg(t,e){return e&&typeof e.autoDestroy=="boolean"?e.autoDestroy:t.autoDestroy}function*Gf(t){const e=wn.from(t);try{if(!e.open({autoDestroy:!1}).closed)do yield e;while(!e.reset().open().closed)}finally{e.cancel()}}function Jf(t){return qt(this,arguments,function*(){const n=yield z(wn.from(t));try{if(!(yield z(n.open({autoDestroy:!1}))).closed)do yield yield z(n);while(!(yield z(n.reset().open())).closed)}finally{yield z(n.cancel())}})}function g1(t){return new Il(new m1(t))}function v1(t){const e=t.peek(Ps+7&-8);return e&&e.byteLength>=4?hd(e)?new Xm(new qm(t.read())):new Il(new xl(t)):new Il(new xl(function*(){}()))}function w1(t){return O(this,void 0,void 0,function*(){const e=yield t.peek(Ps+7&-8);return e&&e.byteLength>=4?hd(e)?new Xm(new qm(yield t.read())):new Nl(new Bl(t)):new Nl(new Bl(function(){return qt(this,arguments,function*(){})}()))})}function _1(t){return O(this,void 0,void 0,function*(){const{size:e}=yield t.stat(),n=new wl(t,e);return e>=h1&&hd(yield n.readAt(0,Ps+7&-8))?new p1(new y1(n)):new Nl(new Bl(n))})}class Ie extends Y{constructor(){super(),this._byteLength=0,this._nodes=[],this._buffers=[],this._bufferRegions=[]}static assemble(...e){const n=i=>i.flatMap(s=>Array.isArray(s)?n(s):s instanceof Xe?s.data.children:s.data),r=new Ie;return r.visitMany(n(e)),r}visit(e){if(e instanceof Z)return this.visitMany(e.data),this;const{type:n}=e;if(!E.isDictionary(n)){const{length:r,nullCount:i}=e;if(r>2147483647)throw new RangeError("Cannot write arrays larger than 2^31 - 1 in length");E.isNull(n)||Rt.call(this,i<=0?new Uint8Array(0):ed(e.offset,r,e.nullBitmap)),this.nodes.push(new Cr(r,i))}return super.visit(e)}visitNull(e){return this}visitDictionary(e){return this.visit(e.clone(e.type.indices))}get nodes(){return this._nodes}get buffers(){return this._buffers}get byteLength(){return this._byteLength}get bufferRegions(){return this._bufferRegions}}function Rt(t){const e=t.byteLength+7&-8;return this.buffers.push(t),this.bufferRegions.push(new en(this._byteLength,e)),this._byteLength+=e,this}function S1(t){const{type:e,length:n,typeIds:r,valueOffsets:i}=t;if(Rt.call(this,r),e.mode===ht.Sparse)return Yu.call(this,t);if(e.mode===ht.Dense){if(t.offset<=0)return Rt.call(this,i),Yu.call(this,t);{const s=r.reduce((c,d)=>Math.max(c,d),r[0]),o=new Int32Array(s+1),l=new Int32Array(s+1).fill(-1),a=new Int32Array(n),u=Qc(-i[0],n,i);for(let c,d,h=-1;++h<n;)(d=l[c=r[h]])===-1&&(d=l[c]=u[c]),a[h]=u[h]-d,++o[c];Rt.call(this,a);for(let c,d=-1,h=e.children.length;++d<h;)if(c=t.children[d]){const g=e.typeIds[d],v=Math.min(n,o[g]);this.visit(c.slice(l[g],v))}}}return this}function b1(t){let e;return t.nullCount>=t.length?Rt.call(this,new Uint8Array(0)):(e=t.values)instanceof Uint8Array?Rt.call(this,ed(t.offset,t.length,e)):Rt.call(this,cl(t.values))}function sr(t){return Rt.call(this,t.values.subarray(0,t.length*t.stride))}function tg(t){const{length:e,values:n,valueOffsets:r}=t,i=r[0],s=r[e],o=Math.min(s-i,n.byteLength-i);return Rt.call(this,Qc(-r[0],e,r)),Rt.call(this,n.subarray(i,i+o)),this}function pd(t){const{length:e,valueOffsets:n}=t;return n&&Rt.call(this,Qc(n[0],e,n)),this.visit(t.children[0])}function Yu(t){return this.visitMany(t.type.children.map((e,n)=>t.children[n]).filter(Boolean))[0]}Ie.prototype.visitBool=b1;Ie.prototype.visitInt=sr;Ie.prototype.visitFloat=sr;Ie.prototype.visitUtf8=tg;Ie.prototype.visitBinary=tg;Ie.prototype.visitFixedSizeBinary=sr;Ie.prototype.visitDate=sr;Ie.prototype.visitTimestamp=sr;Ie.prototype.visitTime=sr;Ie.prototype.visitDecimal=sr;Ie.prototype.visitList=pd;Ie.prototype.visitStruct=Yu;Ie.prototype.visitUnion=S1;Ie.prototype.visitInterval=sr;Ie.prototype.visitFixedSizeList=pd;Ie.prototype.visitMap=pd;class ng extends sd{constructor(e){super(),this._position=0,this._started=!1,this._sink=new xo,this._schema=null,this._dictionaryBlocks=[],this._recordBatchBlocks=[],this._dictionaryDeltaOffsets=new Map,rt(e)||(e={autoDestroy:!0,writeLegacyIpcFormat:!1}),this._autoDestroy=typeof e.autoDestroy=="boolean"?e.autoDestroy:!0,this._writeLegacyIpcFormat=typeof e.writeLegacyIpcFormat=="boolean"?e.writeLegacyIpcFormat:!1}static throughNode(e){throw new Error('"throughNode" not available in this environment')}static throughDOM(e,n){throw new Error('"throughDOM" not available in this environment')}toString(e=!1){return this._sink.toString(e)}toUint8Array(e=!1){return this._sink.toUint8Array(e)}writeAll(e){return Kn(e)?e.then(n=>this.writeAll(n)):ki(e)?vd(this,e):gd(this,e)}get closed(){return this._sink.closed}[Symbol.asyncIterator](){return this._sink[Symbol.asyncIterator]()}toDOMStream(e){return this._sink.toDOMStream(e)}toNodeStream(e){return this._sink.toNodeStream(e)}close(){return this.reset()._sink.close()}abort(e){return this.reset()._sink.abort(e)}finish(){return this._autoDestroy?this.close():this.reset(this._sink,this._schema),this}reset(e=this._sink,n=null){return e===this._sink||e instanceof xo?this._sink=e:(this._sink=new xo,e&&$v(e)?this.toDOMStream({type:"bytes"}).pipeTo(e):e&&Wv(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,(!n||!Vu(n,this._schema))&&(n==null?(this._position=0,this._schema=null):(this._started=!0,this._schema=n,this._writeSchema(n))),this}write(e){let n=null;if(this._sink){if(e==null)return this.finish()&&void 0;if(e instanceof je&&!(n=e.schema))return this.finish()&&void 0;if(e instanceof Xe&&!(n=e.schema))return this.finish()&&void 0}else throw new Error("RecordBatchWriter is closed");if(n&&!Vu(n,this._schema)){if(this._started&&this._autoDestroy)return this.close();this.reset(this._sink,n)}e instanceof Xe?e instanceof cd||this._writeRecordBatch(e):e instanceof je?this.writeAll(e.batches):Ls(e)&&this.writeAll(e)}_writeMessage(e,n=8){const r=n-1,i=$e.encode(e),s=i.byteLength,o=this._writeLegacyIpcFormat?4:8,l=s+o+r&~r,a=l-s-o;return e.headerType===X.RecordBatch?this._recordBatchBlocks.push(new Zn(l,e.bodyLength,this._position)):e.headerType===X.DictionaryBatch&&this._dictionaryBlocks.push(new Zn(l,e.bodyLength,this._position)),this._writeLegacyIpcFormat||this._write(Int32Array.of(-1)),this._write(Int32Array.of(l-o)),s>0&&this._write(i),this._writePadding(a)}_write(e){if(this._started){const n=K(e);n&&n.byteLength>0&&(this._sink.write(n),this._position+=n.byteLength)}return this}_writeSchema(e){return this._writeMessage($e.from(e))}_writeFooter(e){return this._writeLegacyIpcFormat?this._write(Int32Array.of(0)):this._write(Int32Array.of(-1,0))}_writeMagic(){return this._write(ks)}_writePadding(e){return e>0?this._write(new Uint8Array(e)):this}_writeRecordBatch(e){const{byteLength:n,nodes:r,bufferRegions:i,buffers:s}=Ie.assemble(e),o=new pt(e.numRows,r,i),l=$e.from(o,n);return this._writeDictionaries(e)._writeMessage(l)._writeBodyBuffers(s)}_writeDictionaryBatch(e,n,r=!1){this._dictionaryDeltaOffsets.set(n,e.length+(this._dictionaryDeltaOffsets.get(n)||0));const{byteLength:i,nodes:s,bufferRegions:o,buffers:l}=Ie.assemble(new Z([e])),a=new pt(e.length,s,o),u=new on(a,n,r),c=$e.from(u,i);return this._writeMessage(c)._writeBodyBuffers(l)}_writeBodyBuffers(e){let n,r,i;for(let s=-1,o=e.length;++s<o;)(n=e[s])&&(r=n.byteLength)>0&&(this._write(n),(i=(r+7&-8)-r)>0&&this._writePadding(i));return this}_writeDictionaries(e){for(let[n,r]of e.dictionaries){let i=this._dictionaryDeltaOffsets.get(n)||0;if(i===0||(r=r==null?void 0:r.slice(i)).length>0)for(const s of r.data)this._writeDictionaryBatch(s,n,i>0),i+=s.length}return this}}class yd extends ng{static writeAll(e,n){const r=new yd(n);return Kn(e)?e.then(i=>r.writeAll(i)):ki(e)?vd(r,e):gd(r,e)}}class md extends ng{static writeAll(e){const n=new md;return Kn(e)?e.then(r=>n.writeAll(r)):ki(e)?vd(n,e):gd(n,e)}constructor(){super(),this._autoDestroy=!0}_writeSchema(e){return this._writeMagic()._writePadding(2)}_writeFooter(e){const n=Bs.encode(new Bs(e,ut.V4,this._recordBatchBlocks,this._dictionaryBlocks));return super._writeFooter(e)._write(n)._write(Int32Array.of(n.byteLength))._writeMagic()}}function gd(t,e){let n=e;e instanceof je&&(n=e.batches,t.reset(void 0,e.schema));for(const r of n)t.write(r);return t.finish()}function vd(t,e){var n,r,i,s;return O(this,void 0,void 0,function*(){try{for(n=br(e);r=yield n.next(),!r.done;){const o=r.value;t.write(o)}}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}return t.finish()})}function Hi(t){const e=wn.from(t);return Kn(e)?e.then(n=>Hi(n)):e.isAsync()?e.readAll().then(n=>new je(n)):new je(e.readAll())}function Pa(t,e="stream"){return(e==="stream"?yd:md).writeAll(t).toUint8Array(!0)}var Xf=function(){function t(e,n,r,i){var s=this;this.getCell=function(o,l){var a=o<s.headerRows&&l<s.headerColumns,u=o>=s.headerRows&&l<s.headerColumns,c=o<s.headerRows&&l>=s.headerColumns;if(a){var d=["blank"];return l>0&&d.push("level"+o),{type:"blank",classNames:d.join(" "),content:""}}else if(c){var h=l-s.headerColumns,d=["col_heading","level"+o,"col"+h];return{type:"columns",classNames:d.join(" "),content:s.getContent(s.columnsTable,h,o)}}else if(u){var g=o-s.headerRows,d=["row_heading","level"+l,"row"+g];return{type:"index",id:"T_".concat(s.uuid,"level").concat(l,"_row").concat(g),classNames:d.join(" "),content:s.getContent(s.indexTable,g,l)}}else{var g=o-s.headerRows,h=l-s.headerColumns,d=["data","row"+g,"col"+h],v=s.styler?s.getContent(s.styler.displayValuesTable,g,h):s.getContent(s.dataTable,g,h);return{type:"data",id:"T_".concat(s.uuid,"row").concat(g,"_col").concat(h),classNames:d.join(" "),content:v}}},this.getContent=function(o,l,a){var u=o.getChildAt(a);if(u===null)return"";var c=s.getColumnTypeId(o,a);switch(c){case y.Timestamp:return s.nanosToDate(u.get(l));default:return u.get(l)}},this.dataTable=Hi(e),this.indexTable=Hi(n),this.columnsTable=Hi(r),this.styler=i?{caption:i.caption,displayValuesTable:Hi(i.displayValues),styles:i.styles,uuid:i.uuid}:void 0}return Object.defineProperty(t.prototype,"rows",{get:function(){return this.indexTable.numRows+this.columnsTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.indexTable.numCols+this.columnsTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerRows",{get:function(){return this.rows-this.dataRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headerColumns",{get:function(){return this.columns-this.dataColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataRows",{get:function(){return this.dataTable.numRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataColumns",{get:function(){return this.dataTable.numCols},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"uuid",{get:function(){return this.styler&&this.styler.uuid},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caption",{get:function(){return this.styler&&this.styler.caption},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styles",{get:function(){return this.styler&&this.styler.styles},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.dataTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.indexTable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnTable",{get:function(){return this.columnsTable},enumerable:!1,configurable:!0}),t.prototype.serialize=function(){return{data:Pa(this.dataTable),index:Pa(this.indexTable),columns:Pa(this.columnsTable)}},t.prototype.getColumnTypeId=function(e,n){return e.schema.fields[n].type.typeId},t.prototype.nanosToDate=function(e){return new Date(e/1e6)},t}(),ns=function(){return ns=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},ns.apply(this,arguments)},rs;(function(t){t.COMPONENT_READY="streamlit:componentReady",t.SET_COMPONENT_VALUE="streamlit:setComponentValue",t.SET_FRAME_HEIGHT="streamlit:setFrameHeight"})(rs||(rs={}));var ie=function(){function t(){}return t.API_VERSION=1,t.RENDER_EVENT="streamlit:render",t.events=new EventTarget,t.registeredMessageListener=!1,t.setComponentReady=function(){t.registeredMessageListener||(window.addEventListener("message",t.onMessageEvent),t.registeredMessageListener=!0),t.sendBackMsg(rs.COMPONENT_READY,{apiVersion:t.API_VERSION})},t.setFrameHeight=function(e){e===void 0&&(e=document.body.scrollHeight),e!==t.lastFrameHeight&&(t.lastFrameHeight=e,t.sendBackMsg(rs.SET_FRAME_HEIGHT,{height:e}))},t.setComponentValue=function(e){var n;e instanceof Xf?(n="dataframe",e=e.serialize()):N1(e)?(n="bytes",e=new Uint8Array(e.buffer)):e instanceof ArrayBuffer?(n="bytes",e=new Uint8Array(e)):n="json",t.sendBackMsg(rs.SET_COMPONENT_VALUE,{value:e,dataType:n})},t.onMessageEvent=function(e){var n=e.data.type;switch(n){case t.RENDER_EVENT:t.onRenderMessage(e.data);break}},t.onRenderMessage=function(e){var n=e.args;n==null&&(console.error("Got null args in onRenderMessage. This should never happen"),n={});var r=e.dfs&&e.dfs.length>0?t.argsDataframeToObject(e.dfs):{};n=ns(ns({},n),r);var i=!!e.disabled,s=e.theme;s&&I1(s);var o={disabled:i,args:n,theme:s},l=new CustomEvent(t.RENDER_EVENT,{detail:o});t.events.dispatchEvent(l)},t.argsDataframeToObject=function(e){var n=e.map(function(r){var i=r.key,s=r.value;return[i,t.toArrowTable(s)]});return Object.fromEntries(n)},t.toArrowTable=function(e){var n,r=(n=e.data,n.data),i=n.index,s=n.columns,o=n.styler;return new Xf(r,i,s,o)},t.sendBackMsg=function(e,n){window.parent.postMessage(ns({isStreamlitMessage:!0,type:e},n),"*")},t}(),I1=function(t){var e=document.createElement("style");document.head.appendChild(e),e.innerHTML=`
|
|
51
|
+
:root {
|
|
52
|
+
--primary-color: `.concat(t.primaryColor,`;
|
|
53
|
+
--background-color: `).concat(t.backgroundColor,`;
|
|
54
|
+
--secondary-background-color: `).concat(t.secondaryBackgroundColor,`;
|
|
55
|
+
--text-color: `).concat(t.textColor,`;
|
|
56
|
+
--font: `).concat(t.font,`;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
body {
|
|
60
|
+
background-color: var(--background-color);
|
|
61
|
+
color: var(--text-color);
|
|
62
|
+
}
|
|
63
|
+
`)};function N1(t){var e=!1;try{e=t instanceof BigInt64Array||t instanceof BigUint64Array}catch{}return t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array||e}var x1=function(){var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},t(e,n)};return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();(function(t){x1(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){ie.setFrameHeight()},e.prototype.componentDidUpdate=function(){ie.setFrameHeight()},e})(Fl.PureComponent);function zt(t,e){const n={};if(t)for(const[r,i]of Object.entries(t)){const s=r.replace(/-([a-z])/g,(o,l)=>l.toUpperCase());n[s]=i}return{style:Object.keys(n).length>0?n:void 0,className:e||""}}function Te(...t){return t.filter(Boolean).join(" ")}const Ii={green:{bg:"bg-green-600",bgLight:"bg-green-900/30",border:"border-green-500",text:"text-green-400"},red:{bg:"bg-red-600",bgLight:"bg-red-900/30",border:"border-red-500",text:"text-red-400"},yellow:{bg:"bg-yellow-600",bgLight:"bg-yellow-900/30",border:"border-yellow-500",text:"text-yellow-400"},blue:{bg:"bg-blue-600",bgLight:"bg-blue-900/30",border:"border-blue-500",text:"text-blue-400"},purple:{bg:"bg-purple-600",bgLight:"bg-purple-900/30",border:"border-purple-500",text:"text-purple-400"},slate:{bg:"bg-slate-600",bgLight:"bg-slate-800",border:"border-slate-500",text:"text-slate-400"}};function B1({args:t}){const{children:e,style:n,className:r}=t,{style:i,className:s}=zt(n,r);return ee.useEffect(()=>{ie.setFrameHeight()}),k.jsx("div",{className:Te("bg-slate-900 rounded-lg p-4",s),style:i,dangerouslySetInnerHTML:e?{__html:e}:void 0})}function k1({args:t}){const{title:e,icon:n,actions:r,style:i,className:s}=t,{style:o,className:l}=zt(i,s);ee.useEffect(()=>{ie.setFrameHeight()});const a=ee.useCallback(u=>{ie.setComponentValue(u)},[]);return k.jsxs("div",{className:Te("flex justify-between items-center mb-4",l),style:o,children:[k.jsxs("h2",{className:"text-lg font-semibold text-white",children:[n&&k.jsx("span",{className:"mr-2",children:n}),e]}),r&&r.length>0&&k.jsx("div",{className:"flex gap-2",children:r.map(u=>{const c=Ii[u.color||"blue"];return k.jsxs("button",{onClick:()=>a(u.id),className:Te("px-3 py-2 rounded text-sm text-white transition-colors",c.bg,"hover:opacity-80"),children:[u.icon&&k.jsx("span",{className:"mr-1",children:u.icon}),u.label]},u.id)})})]})}function F1({args:t}){const{label:e,value:n,color:r="blue",icon:i,style:s,className:o}=t,{style:l,className:a}=zt(s,o),u=Ii[r]||Ii.blue;return ee.useEffect(()=>{ie.setFrameHeight()}),k.jsxs("div",{className:Te("bg-slate-900 rounded-lg p-4 border-l-4",u.border,a),style:l,children:[k.jsxs("div",{className:"text-sm text-slate-400",children:[i&&k.jsx("span",{className:"mr-1",children:i}),e]}),k.jsx("div",{className:Te("text-3xl font-bold",u.text),children:n})]})}function O1({args:t}){const{label:e,value:n,valueColor:r,style:i,className:s}=t,{style:o,className:l}=zt(i,s);return ee.useEffect(()=>{ie.setFrameHeight()}),k.jsxs("div",{className:Te("flex justify-between py-2",l),style:o,children:[k.jsx("span",{className:"text-slate-400",children:e}),k.jsx("span",{className:r||"text-white",children:n})]})}const E1={above:"text-red-400",below:"text-yellow-400",within:"text-green-400",approved:"text-green-400",rejected:"text-red-400",draft:"text-slate-400",submitted:"text-yellow-400"};function D1({args:t}){const{columns:e,rows:n,showHeader:r=!0,style:i,className:s}=t,{style:o,className:l}=zt(i,s);ee.useEffect(()=>{ie.setFrameHeight()});const a=ee.useCallback((d,h)=>{ie.setComponentValue({rowIndex:d,rowData:h})},[]),u=d=>d==="right"?"text-right":d==="center"?"text-center":"text-left",c=(d,h)=>h==="number"&&typeof d=="number"?d.toLocaleString():h==="percent"&&typeof d=="number"?`${d}%`:String(d??"");return k.jsx("div",{className:Te("bg-slate-900 rounded-lg p-4",l),style:o,children:k.jsxs("table",{className:"w-full text-sm",children:[r&&k.jsx("thead",{children:k.jsx("tr",{className:"border-b border-slate-700",children:e.map(d=>k.jsx("th",{className:Te("py-2 text-slate-400",u(d.align)),children:d.label},d.key))})}),k.jsx("tbody",{children:n.map((d,h)=>k.jsx("tr",{className:"border-b border-slate-700/50 hover:bg-slate-800/50 cursor-pointer",onClick:()=>a(h,d),children:e.map(g=>{const v=d[g.key],S=g.colorByValue?E1[String(v)]:"";return k.jsx("td",{className:Te("py-2",u(g.align),g.format==="number"||g.format==="percent"?"font-mono":"",S),children:c(v,g.format)},g.key)})},h))})]})})}function C1({args:t}){const{steps:e,currentStep:n,style:r,className:i}=t,{style:s,className:o}=zt(r,i);ee.useEffect(()=>{ie.setFrameHeight()});const l=ee.useCallback(a=>{ie.setComponentValue(a)},[]);return k.jsxs("div",{className:Te("flex items-center gap-2",o),style:s,children:[e.map((a,u)=>{const c=u+1,d=c<n,h=c===n;return k.jsxs(Fl.Fragment,{children:[k.jsx("button",{onClick:()=>l(c),className:Te("w-8 h-8 rounded-full text-sm text-white transition-colors",h&&"bg-blue-600",d&&"bg-green-600",!h&&!d&&"bg-slate-600 hover:bg-slate-500"),children:d?"✓":c}),u<e.length-1&&k.jsx("span",{className:"text-sm text-slate-400",children:a})]},u)}),k.jsx("span",{className:"text-sm text-slate-400 ml-2",children:e[n-1]})]})}function A1({args:t}){const{buttons:e,style:n,className:r}=t,{style:i,className:s}=zt(n,r);ee.useEffect(()=>{ie.setFrameHeight()});const o=ee.useCallback(l=>{ie.setComponentValue(l)},[]);return k.jsx("div",{className:Te("flex gap-1",s),style:i,children:e.map(l=>{const a=Ii[l.color||"slate"];return k.jsxs("button",{onClick:()=>o(l.id),disabled:l.disabled,className:Te("p-2 rounded text-white transition-colors",l.disabled?"opacity-50 cursor-not-allowed":"hover:bg-slate-700",l.color&&a.text),children:[l.icon&&k.jsx("span",{children:l.icon}),l.label&&k.jsx("span",{className:l.icon?"ml-1":"",children:l.label})]},l.id)})})}function T1({args:t}){const{items:e,style:n,className:r}=t,{style:i,className:s}=zt(n,r);return ee.useEffect(()=>{ie.setFrameHeight()}),k.jsx("div",{className:Te("flex gap-4 text-xs",s),style:i,children:e.map((o,l)=>k.jsxs("span",{className:"flex items-center gap-1",children:[k.jsx("span",{className:"w-3 h-3 rounded-full",style:{backgroundColor:o.color}}),k.jsx("span",{className:"text-slate-300",children:o.label})]},l))})}function L1({args:t}){const{label:e,options:n,value:r="",groups:i,style:s,className:o}=t,{style:l,className:a}=zt(s,o);ee.useEffect(()=>{ie.setFrameHeight()});const u=ee.useCallback(d=>{ie.setComponentValue(d.target.value)},[]),c=(d,h)=>typeof d=="string"?k.jsx("option",{value:d,children:d},h):k.jsx("option",{value:d.value,children:d.label},h);return k.jsxs("div",{className:Te("",a),style:l,children:[k.jsx("label",{className:"text-xs text-slate-400 block mb-1",children:e}),k.jsx("select",{value:r,onChange:u,className:"w-full px-3 py-2 bg-slate-800 border border-slate-600 rounded text-sm text-white",children:i?i.map((d,h)=>k.jsx("optgroup",{label:d.label,children:d.options.map((g,v)=>c(g,v))},h)):n.map((d,h)=>c(d,h))})]})}function M1({args:t}){const{label:e,value:n,minVal:r,maxVal:i,step:s=1,unit:o="",color:l="blue",style:a,className:u}=t,[c,d]=ee.useState(n),{style:h,className:g}=zt(a,u),v=Ii[l]||Ii.blue;ee.useEffect(()=>{ie.setFrameHeight()}),ee.useEffect(()=>{d(n)},[n]);const S=ee.useCallback(J=>{const p=parseFloat(J.target.value);d(p),ie.setComponentValue(p)},[]);return k.jsxs("div",{className:Te("",g),style:h,children:[k.jsxs("label",{className:"flex justify-between text-sm mb-1",children:[k.jsx("span",{className:"text-slate-300",children:e}),k.jsxs("span",{className:v.text,children:[c,o]})]}),k.jsx("input",{type:"range",min:r,max:i,step:s,value:c,onChange:S,className:"w-full"})]})}function R1({args:t}){const{label:e,items:n,style:r,className:i}=t,{style:s,className:o}=zt(r,i),[l,a]=ee.useState(()=>{const c=new Set;return n.forEach(d=>{d.checked&&c.add(d.id)}),c});ee.useEffect(()=>{ie.setFrameHeight()}),ee.useEffect(()=>{const c=new Set;n.forEach(d=>{d.checked&&c.add(d.id)}),a(c)},[n]);const u=ee.useCallback((c,d)=>{a(h=>{const g=new Set(h);return d?g.add(c):g.delete(c),ie.setComponentValue(Array.from(g)),g})},[]);return k.jsxs("div",{className:Te("",o),style:s,children:[e&&k.jsx("div",{className:"text-xs text-slate-400 mb-2",children:e}),k.jsx("div",{className:"space-y-1",children:n.map(c=>k.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300 cursor-pointer",children:[k.jsx("input",{type:"checkbox",checked:l.has(c.id),onChange:d=>u(c.id,d.target.checked),className:"rounded border-slate-600"}),c.label]},c.id))})]})}function U1(){const[t,e]=ee.useState(null),[n,r]=ee.useState(null);ee.useEffect(()=>{const o=l=>{const a=l.detail;e(a),r(a.args)};return ie.events.addEventListener(ie.RENDER_EVENT,o),ie.setComponentReady(),ie.setFrameHeight(),()=>{ie.events.removeEventListener(ie.RENDER_EVENT,o)}},[]);const i=ee.useCallback(()=>{ie.setFrameHeight()},[]),s=ee.useCallback(o=>{ie.setComponentValue(o)},[]);return{renderData:t,args:n,theme:t==null?void 0:t.theme,disabled:(t==null?void 0:t.disabled)??!1,updateHeight:i,setComponentValue:s}}const P1={panel:B1,section_header:k1,stat_card:F1,metric_row:O1,data_table:D1,step_indicator:C1,button_group:A1,chart_legend:T1,form_select:L1,form_slider:M1,checkbox_group:R1};function z1(){const{args:t,updateHeight:e}=U1();if(Fl.useEffect(()=>{e()}),!t)return null;const n=t.component,r=P1[n];return r?k.jsx(r,{args:t}):k.jsxs("div",{className:"p-4 bg-red-900/30 border border-red-700 rounded text-red-400",children:["Unknown component: ",n]})}za.createRoot(document.getElementById("root")).render(k.jsx(Fl.StrictMode,{children:k.jsx(z1,{})}));
|