@stlite/desktop 0.79.0 → 0.79.4
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.
- package/build/assets/{FileDownload.esm-CUqgQU-j.js → FileDownload.esm-DJAez7Gm.js} +1 -1
- package/build/assets/{FormClearHelper-DmeZ2QuQ.js → FormClearHelper-BtlF8Otx.js} +1 -1
- package/build/assets/{Hooks-CBIuRW4z.js → Hooks-DirHIiAM.js} +1 -1
- package/build/assets/{InputInstructions-iKTPb-Lc.js → InputInstructions-DJSzEvIq.js} +1 -1
- package/build/assets/{ProgressBar-Dfr9f8u1.js → ProgressBar-BnrWSmyb.js} +1 -1
- package/build/assets/{RenderInPortalIfExists-CxeJAxCs.js → RenderInPortalIfExists-Ca4-_0pe.js} +1 -1
- package/build/assets/{Toolbar-CG7W1D-O.js → Toolbar-BsqjDjhG.js} +1 -1
- package/build/assets/{base-input-DoV-1XUt.js → base-input-CgYn_7GU.js} +1 -1
- package/build/assets/{createSuper-CvaFdVoD.js → createSuper-0pNNY1_M.js} +1 -1
- package/build/assets/{data-grid-overlay-editor-CCUG7ReD.js → data-grid-overlay-editor-CNFkKj8T.js} +1 -1
- package/build/assets/{downloader-B6rOwzu2.js → downloader-DGmYJOpb.js} +1 -1
- package/build/assets/{es6-CTcMcfqp.js → es6-irkMYhr9.js} +2 -2
- package/build/assets/{getPrototypeOf-CFHg57KG.js → getPrototypeOf-D0_3wfU4.js} +1 -1
- package/build/assets/{iframeResizer.contentWindow-DLNn1A7T.js → iframeResizer.contentWindow-D4yL-VeT.js} +1 -1
- package/build/assets/{index-Bp04iQqW.js → index-BByqVhYh.js} +1 -1
- package/build/assets/{index-D-lzdDJ5.js → index-BFCLs_X3.js} +1 -1
- package/build/assets/{index-CGhw9Sdf.js → index-BFkh2EDe.js} +1 -1
- package/build/assets/{index-CWiqZgRl.js → index-BKdmDn79.js} +1 -1
- package/build/assets/{index-CoKgwXo8.js → index-BM4uLW3s.js} +1 -1
- package/build/assets/{index-ByOIN0Gm.js → index-BQ4RtD02.js} +1 -1
- package/build/assets/{index-DjQcVgxO.js → index-BVyxD_B8.js} +1 -1
- package/build/assets/{index-hsTwnoRn.js → index-BXRfu-ak.js} +1 -1
- package/build/assets/{index-CW4i_Lge.js → index-BcpEGcBW.js} +1 -1
- package/build/assets/{index-Dwt05210.js → index-Bo6fA87g.js} +1 -1
- package/build/assets/{index-BzTZZCvL.js → index-C1elUt1E.js} +4 -4
- package/build/assets/{index-Cua9_98i.js → index-CbfNI9jm.js} +1 -1
- package/build/assets/{index-CIL1eIZN.js → index-CcWWS1JT.js} +1 -1
- package/build/assets/{index-CIs9EQe5.js → index-ChM6SngL.js} +1 -1
- package/build/assets/{index-BhkIHxDp.js → index-D2eWP7lT.js} +1 -1
- package/build/assets/{index-BrRb8POj.js → index-DBLWtqmb.js} +1 -1
- package/build/assets/{index-CSyyBx79.js → index-DE-qBTEd.js} +1 -1
- package/build/assets/{index-Df9nIm6O.js → index-DEXFHxro.js} +1 -1
- package/build/assets/{index-D9QNa8Xs.js → index-DUZJI1KN.js} +1 -1
- package/build/assets/{index-N6IvabtE.js → index-DVxRcwZL.js} +1 -1
- package/build/assets/{index-fudEipDa.js → index-DWA8E9x2.js} +1 -1
- package/build/assets/{index-BpeIvyJQ.js → index-DlLUjT1S.js} +1 -1
- package/build/assets/{index-DqxtC9MD.js → index-DmCANcEY.js} +1 -1
- package/build/assets/{index-qMuFpOqI.js → index-DrFZgW3n.js} +1 -1
- package/build/assets/{index-6rnmC53g.js → index-Dx6YQ-Hb.js} +1 -1
- package/build/assets/{index-xGO_nKX1.js → index-Hu3FoAZP.js} +1 -1
- package/build/assets/{index-DURajqPC.js → index-I5lK7nyO.js} +1 -1
- package/build/assets/{index-BTHCcLIl.js → index-ItgUgpY7.js} +1 -1
- package/build/assets/{index-DHFNQm8n.js → index-Pb86pUMm.js} +1 -1
- package/build/assets/{index-0aipcnh6.js → index-YUTOpyBs.js} +1 -1
- package/build/assets/{index-steA8SlM.js → index-ZUNcqgeq.js} +5 -5
- package/build/assets/{index-P_LN9wWJ.js → index-ce2FoF0m.js} +1 -1
- package/build/assets/{index-BHysWwrh.js → index-gVtKu3MD.js} +1 -1
- package/build/assets/{index-DtrE1h0V.js → index-m1mIjWp5.js} +1 -1
- package/build/assets/{index-RhMZ16-Y.js → index-w3QLWMIe.js} +1 -1
- package/build/assets/{index-C4j64dI5.js → index-xxcWnwsb.js} +1 -1
- package/build/assets/{index-OR2HlVVN.js → index-zflrmcBt.js} +1 -1
- package/build/assets/{input-BrXgmYe9.js → input-i4Ci2N7G.js} +1 -1
- package/build/assets/{memory-Bf74T19z.js → memory-BfVZ1OlY.js} +1 -1
- package/build/assets/{number-overlay-editor-20er5Sp-.js → number-overlay-editor-DZNxupwD.js} +1 -1
- package/build/assets/{sandbox-CV8SMiuv.js → sandbox-C-kTFbag.js} +1 -1
- package/build/assets/{slicedToArray-tqzlNjPF.js → slicedToArray--nOyZAEU.js} +1 -1
- package/build/assets/{textarea-DMefjquC.js → textarea-CpIIPJux.js} +1 -1
- package/build/assets/{timepicker-D5Qmkk9Q.js → timepicker-BNPmfeK3.js} +1 -1
- package/build/assets/{uniqueId-IQr2jcrE.js → uniqueId-BfZwKZCM.js} +1 -1
- package/build/assets/{useBasicWidgetState-Cqy4gnzY.js → useBasicWidgetState-D4lxC36U.js} +1 -1
- package/build/assets/{useOnInputChange-BD_aeagL.js → useOnInputChange-BtQcqF3z.js} +1 -1
- package/build/assets/{withFullScreenWrapper-DIS3bwns.js → withFullScreenWrapper-Cn2wnMdj.js} +1 -1
- package/build/assets/{worker-B1MO5Shr.js → worker-CzOlZWlF.js} +14 -11
- package/build/electron/worker.js +13 -10
- package/build/index.html +1 -1
- package/package.json +4 -4
- package/wheels/streamlit-1.41.0-cp312-none-any.whl +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Pb86pUMm.js","assets/RenderInPortalIfExists-Ca4-_0pe.js","assets/index-zflrmcBt.js","assets/index-ZUNcqgeq.js","assets/FormClearHelper-BtlF8Otx.js","assets/withFullScreenWrapper-Cn2wnMdj.js","assets/Toolbar-BsqjDjhG.js","assets/sprintf-C-r3gIuM.js","assets/createDownloadLinkElement-DZMwyjvU.js","assets/slicedToArray--nOyZAEU.js","assets/getPrototypeOf-D0_3wfU4.js","assets/createSuper-0pNNY1_M.js","assets/FileDownload.esm-DJAez7Gm.js","assets/index.B26BQfSF.css","assets/index-BByqVhYh.js","assets/threshold-C19zgWBv.js","assets/string-Bl9OLDCw.js","assets/timer-C68DGyYc.js","assets/index-ce2FoF0m.js","assets/useBasicWidgetState-D4lxC36U.js","assets/_commonjs-dynamic-modules-TDtrdbi3.js","assets/index.CG16XVnL.css","assets/index-DEXFHxro.js","assets/index-w3QLWMIe.js","assets/index-Bo6fA87g.js","assets/index-gVtKu3MD.js","assets/Hooks-DirHIiAM.js","assets/index-DUZJI1KN.js","assets/index-ItgUgpY7.js","assets/index-I5lK7nyO.js","assets/UploadFileInfo-C-jY39rj.js","assets/ProgressBar-BnrWSmyb.js","assets/index-DlLUjT1S.js","assets/InputInstructions-DJSzEvIq.js","assets/inputUtils-CptNuJwn.js","assets/textarea-CpIIPJux.js","assets/base-input-CgYn_7GU.js","assets/index-BFCLs_X3.js","assets/index-D2eWP7lT.js","assets/index-DWA8E9x2.js","assets/timepicker-BNPmfeK3.js","assets/input-i4Ci2N7G.js","assets/index-DBLWtqmb.js","assets/index-CbfNI9jm.js","assets/index-xxcWnwsb.js","assets/index-Dx6YQ-Hb.js","assets/index-ChM6SngL.js","assets/index-BcpEGcBW.js","assets/index-BQ4RtD02.js","assets/uniqueId-BfZwKZCM.js","assets/useOnInputChange-BtQcqF3z.js","assets/index-BVyxD_B8.js","assets/index-BXRfu-ak.js","assets/index-DVxRcwZL.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
var Bn=Object.defineProperty;var Dn=Er=>{throw TypeError(Er)};var Fn=(Er,yr,Mr)=>yr in Er?Bn(Er,yr,{enumerable:!0,configurable:!0,writable:!0,value:Mr}):Er[yr]=Mr;var vr=(Er,yr,Mr)=>Fn(Er,typeof yr!="symbol"?yr+"":yr,Mr),pn=(Er,yr,Mr)=>yr.has(Er)||Dn("Cannot "+Mr);var Z0=(Er,yr,Mr)=>(pn(Er,yr,"read from private field"),Mr?Mr.call(Er):yr.get(Er)),Nr=(Er,yr,Mr)=>yr.has(Er)?Dn("Cannot add the same private member more than once"):yr instanceof WeakSet?yr.add(Er):yr.set(Er,Mr),Rr=(Er,yr,Mr,Tr)=>(pn(Er,yr,"write to private field"),Tr?Tr.call(Er,Mr):yr.set(Er,Mr),Mr),ar=(Er,yr,Mr)=>(pn(Er,yr,"access private method"),Mr);let isEqual$1,toString$9,isNullOrUndefined$1,merge$6,numbro$1,EmotionIconBase,notNullOrUndefined,hooks,formatPeriodType,moment$1,getTypeName,format,convertToSeconds,useTheme,Arrow$2,logError,PortalContext,transparentize,React$1,convertRemToPx,logWarning,_defineProperty$u,_objectWithoutProperties$o,_typeof$g,jsx,css$2,_toConsumableArray$3,_extends$Q,range$1,labelVisibilityProtoValueToEnum,Popover$1,StyledTooltipContentWrapper,StreamlitMarkdown$1,PLACEMENT,ACCESSIBILITY_TYPE,hasLightBackgroundColor,LibContext,debounce$4,Resizable,IndexTypeName,getAugmentedNamespace,DEFAULT_IFRAME_FEATURE_POLICY,DEFAULT_IFRAME_SANDBOX_POLICY,useStliteMediaObjects,darken,BaseButtonSize,BaseButtonKind,BaseButtonTooltip,DynamicButtonLabel,IsSidebarContext,Placement,getGray90,getIncreasingGreen,getDecreasingRed,PlotlyChart$1,keysToSnakeCase,WindowDimensionsContext,Video$1,zip$1,FileUploaderState,UploadedFileInfo,StyledSpinner,ENABLE_PERIPHERALS_DOCS_URL,BaseButton,Icon$2,blend,WidgetLabel,_baseMerge,_createAssigner,getGray70,getGray30,getCategoricalColorsArray,getDivergingColorsArray,getSequentialColorsArray,getBlue80,Global,ensureError,withTheme,DynamicIcon,toaster,AlertElement,Kind,_assertThisInitialized$e,ErrorElement,StyledInlineCode,axios,Skeleton,Skeleton$1,hoistNonReactStatics$2,lib$3,parseToRgba,DeckGlJsonChart$1,_unsupportedIterableToArray$l,reactDomExports,TextInput$1,TooltipIcon,Tooltip,styled,getOverrides,LocaleContext,ButtonGroup$1,LabelVisibilityMessage,StyledWidgetLabelHelpInline,useStliteKernel,themeColors,isPresetTheme,classNames,isValidFormId,toPropertyKey,_setPrototypeOf$e,hexToRgb,withWrapper,StyledWidgetInstructions,isFromMac,SIZE$1,CUSTOM_INPUT_TYPE,DeleteAlt$1,ADJOINED,filterOptions,ENHANCER_POSITION,UISelectbox,pick$1,Slider$2,isFromWindows,__awaiter,__generator,__spread,PropTypes,ChevronLeft,ChevronRight,isInForm,toString_1,isMobile_1,CAMERA_PERMISSION_URL,StyledWidgetLabelHelp,isFocusVisible,getOverride,getOverrideProps,StyledCheckbox$1,Checkbox$1,StyledContent,BaseColorPicker,useStyletron,mergeOverride,toObjectOverride,Icon$1,UIDConsumer,StatefulMenu,mergeOverrides,ChevronDown$1,ThemeContext,forkFocus,forkBlur,Select,without$1,fuzzyFilterSelectOptions,TYPE,VirtualDropdown,createStyled,ThemeProvider$1,createThemedStyled,createThemedUseStyletron,createThemedWithStyle,expandBorderStyles,withStyle,reactIsExports$1,NumberInput$1,_hasPath,commonjsGlobal$1,classnamesExports,getDefaultExportFromCjs$1,_root,isPropValid,jsxRuntimeExports,keyframes,isObject_1,_Set,_setToArray,_SetCache,propTypesExports,_arrayIncludes,reactExports,_arrayIncludesWith,toNumber_1,useStliteMediaObjectUrl,_cacheHas,groupBy$1,__vitePreload,flatten$2,require$$0$1,__tla=(async()=>{var yr,Mr,Tr,Dr,l1,d1,Fr,b1,f1,h1,nr,$r,_n,gn,B1,K1,Xr,Mn,Tn,Y1,wn,Cn,J1,C1,p1,Rn,$n,xn,qn,r1,kn,On,Qr,c1,m1,xr,Gr,g1,yn,zn,M1;function _mergeNamespaces(ot,et){for(var ct=0;ct<et.length;ct++){const ut=et[ct];if(typeof ut!="string"&&!Array.isArray(ut)){for(const dt in ut)if(dt!=="default"&&!(dt in ot)){const ft=Object.getOwnPropertyDescriptor(ut,dt);ft&&Object.defineProperty(ot,dt,ft.get?ft:{enumerable:!0,get:()=>ut[dt]})}}}return Object.freeze(Object.defineProperty(ot,Symbol.toStringTag,{value:"Module"}))}(function(){const ot=document.createElement("link").relList;if(ot&&ot.supports&&ot.supports("modulepreload"))return;for(const ut of document.querySelectorAll('link[rel="modulepreload"]'))ct(ut);new MutationObserver(ut=>{for(const dt of ut)if(dt.type==="childList")for(const ft of dt.addedNodes)ft.tagName==="LINK"&&ft.rel==="modulepreload"&&ct(ft)}).observe(document,{childList:!0,subtree:!0});function et(ut){const dt={};return ut.integrity&&(dt.integrity=ut.integrity),ut.referrerPolicy&&(dt.referrerPolicy=ut.referrerPolicy),ut.crossOrigin==="use-credentials"?dt.credentials="include":ut.crossOrigin==="anonymous"?dt.credentials="omit":dt.credentials="same-origin",dt}function ct(ut){if(ut.ep)return;ut.ep=!0;const dt=et(ut);fetch(ut.href,dt)}})(),commonjsGlobal$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},getDefaultExportFromCjs$1=function(ot){return ot&&ot.__esModule&&Object.prototype.hasOwnProperty.call(ot,"default")?ot.default:ot},getAugmentedNamespace=function(ot){if(ot.__esModule)return ot;var et=ot.default;if(typeof et=="function"){var ct=function ut(){return this instanceof ut?Reflect.construct(et,arguments,this.constructor):et.apply(this,arguments)};ct.prototype=et.prototype}else ct={};return Object.defineProperty(ct,"__esModule",{value:!0}),Object.keys(ot).forEach(function(ut){var dt=Object.getOwnPropertyDescriptor(ot,ut);Object.defineProperty(ct,ut,dt.get?dt:{enumerable:!0,get:function(){return ot[ut]}})}),ct};var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={},l$4=Symbol.for("react.element"),n$4=Symbol.for("react.portal"),p$6=Symbol.for("react.fragment"),q$5=Symbol.for("react.strict_mode"),r$4=Symbol.for("react.profiler"),t$3=Symbol.for("react.provider"),u$2=Symbol.for("react.context"),v$6=Symbol.for("react.forward_ref"),w$4=Symbol.for("react.suspense"),x$4=Symbol.for("react.memo"),y$4=Symbol.for("react.lazy"),z$5=Symbol.iterator;function A$3(ot){return ot===null||typeof ot!="object"?null:(ot=z$5&&ot[z$5]||ot["@@iterator"],typeof ot=="function"?ot:null)}var B$4={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C$3=Object.assign,D$4={};function E$3(ot,et,ct){this.props=ot,this.context=et,this.refs=D$4,this.updater=ct||B$4}E$3.prototype.isReactComponent={},E$3.prototype.setState=function(ot,et){if(typeof ot!="object"&&typeof ot!="function"&&ot!=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,ot,et,"setState")},E$3.prototype.forceUpdate=function(ot){this.updater.enqueueForceUpdate(this,ot,"forceUpdate")};function F$3(){}F$3.prototype=E$3.prototype;function G$4(ot,et,ct){this.props=ot,this.context=et,this.refs=D$4,this.updater=ct||B$4}var H$3=G$4.prototype=new F$3;H$3.constructor=G$4,C$3(H$3,E$3.prototype),H$3.isPureReactComponent=!0;var I$3=Array.isArray,J$3=Object.prototype.hasOwnProperty,K$3={current:null},L$3={key:!0,ref:!0,__self:!0,__source:!0};function M$3(ot,et,ct){var ut,dt={},ft=null,zt=null;if(et!=null)for(ut in et.ref!==void 0&&(zt=et.ref),et.key!==void 0&&(ft=""+et.key),et)J$3.call(et,ut)&&!L$3.hasOwnProperty(ut)&&(dt[ut]=et[ut]);var Dt=arguments.length-2;if(Dt===1)dt.children=ct;else if(1<Dt){for(var St=Array(Dt),Tt=0;Tt<Dt;Tt++)St[Tt]=arguments[Tt+2];dt.children=St}if(ot&&ot.defaultProps)for(ut in Dt=ot.defaultProps,Dt)dt[ut]===void 0&&(dt[ut]=Dt[ut]);return{$$typeof:l$4,type:ot,key:ft,ref:zt,props:dt,_owner:K$3.current}}function N$4(ot,et){return{$$typeof:l$4,type:ot.type,key:et,ref:ot.ref,props:ot.props,_owner:ot._owner}}function O$2(ot){return typeof ot=="object"&&ot!==null&&ot.$$typeof===l$4}function escape$2(ot){var et={"=":"=0",":":"=2"};return"$"+ot.replace(/[=:]/g,function(ct){return et[ct]})}var P$3=/\/+/g;function Q$4(ot,et){return typeof ot=="object"&&ot!==null&&ot.key!=null?escape$2(""+ot.key):et.toString(36)}function R$3(ot,et,ct,ut,dt){var ft=typeof ot;(ft==="undefined"||ft==="boolean")&&(ot=null);var zt=!1;if(ot===null)zt=!0;else switch(ft){case"string":case"number":zt=!0;break;case"object":switch(ot.$$typeof){case l$4:case n$4:zt=!0}}if(zt)return zt=ot,dt=dt(zt),ot=ut===""?"."+Q$4(zt,0):ut,I$3(dt)?(ct="",ot!=null&&(ct=ot.replace(P$3,"$&/")+"/"),R$3(dt,et,ct,"",function(Tt){return Tt})):dt!=null&&(O$2(dt)&&(dt=N$4(dt,ct+(!dt.key||zt&&zt.key===dt.key?"":(""+dt.key).replace(P$3,"$&/")+"/")+ot)),et.push(dt)),1;if(zt=0,ut=ut===""?".":ut+":",I$3(ot))for(var Dt=0;Dt<ot.length;Dt++){ft=ot[Dt];var St=ut+Q$4(ft,Dt);zt+=R$3(ft,et,ct,St,dt)}else if(St=A$3(ot),typeof St=="function")for(ot=St.call(ot),Dt=0;!(ft=ot.next()).done;)ft=ft.value,St=ut+Q$4(ft,Dt++),zt+=R$3(ft,et,ct,St,dt);else if(ft==="object")throw et=String(ot),Error("Objects are not valid as a React child (found: "+(et==="[object Object]"?"object with keys {"+Object.keys(ot).join(", ")+"}":et)+"). If you meant to render a collection of children, use an array instead.");return zt}function S$4(ot,et,ct){if(ot==null)return ot;var ut=[],dt=0;return R$3(ot,ut,"","",function(ft){return et.call(ct,ft,dt++)}),ut}function T$3(ot){if(ot._status===-1){var et=ot._result;et=et(),et.then(function(ct){(ot._status===0||ot._status===-1)&&(ot._status=1,ot._result=ct)},function(ct){(ot._status===0||ot._status===-1)&&(ot._status=2,ot._result=ct)}),ot._status===-1&&(ot._status=0,ot._result=et)}if(ot._status===1)return ot._result.default;throw ot._result}var U$3={current:null},V$3={transition:null},W$4={ReactCurrentDispatcher:U$3,ReactCurrentBatchConfig:V$3,ReactCurrentOwner:K$3};react_production_min.Children={map:S$4,forEach:function(ot,et,ct){S$4(ot,function(){et.apply(this,arguments)},ct)},count:function(ot){var et=0;return S$4(ot,function(){et++}),et},toArray:function(ot){return S$4(ot,function(et){return et})||[]},only:function(ot){if(!O$2(ot))throw Error("React.Children.only expected to receive a single React element child.");return ot}},react_production_min.Component=E$3,react_production_min.Fragment=p$6,react_production_min.Profiler=r$4,react_production_min.PureComponent=G$4,react_production_min.StrictMode=q$5,react_production_min.Suspense=w$4,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=W$4,react_production_min.cloneElement=function(ot,et,ct){if(ot==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+ot+".");var ut=C$3({},ot.props),dt=ot.key,ft=ot.ref,zt=ot._owner;if(et!=null){if(et.ref!==void 0&&(ft=et.ref,zt=K$3.current),et.key!==void 0&&(dt=""+et.key),ot.type&&ot.type.defaultProps)var Dt=ot.type.defaultProps;for(St in et)J$3.call(et,St)&&!L$3.hasOwnProperty(St)&&(ut[St]=et[St]===void 0&&Dt!==void 0?Dt[St]:et[St])}var St=arguments.length-2;if(St===1)ut.children=ct;else if(1<St){Dt=Array(St);for(var Tt=0;Tt<St;Tt++)Dt[Tt]=arguments[Tt+2];ut.children=Dt}return{$$typeof:l$4,type:ot.type,key:dt,ref:ft,props:ut,_owner:zt}},react_production_min.createContext=function(ot){return ot={$$typeof:u$2,_currentValue:ot,_currentValue2:ot,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},ot.Provider={$$typeof:t$3,_context:ot},ot.Consumer=ot},react_production_min.createElement=M$3,react_production_min.createFactory=function(ot){var et=M$3.bind(null,ot);return et.type=ot,et},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(ot){return{$$typeof:v$6,render:ot}},react_production_min.isValidElement=O$2,react_production_min.lazy=function(ot){return{$$typeof:y$4,_payload:{_status:-1,_result:ot},_init:T$3}},react_production_min.memo=function(ot,et){return{$$typeof:x$4,type:ot,compare:et===void 0?null:et}},react_production_min.startTransition=function(ot){var et=V$3.transition;V$3.transition={};try{ot()}finally{V$3.transition=et}},react_production_min.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},react_production_min.useCallback=function(ot,et){return U$3.current.useCallback(ot,et)},react_production_min.useContext=function(ot){return U$3.current.useContext(ot)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(ot){return U$3.current.useDeferredValue(ot)},react_production_min.useEffect=function(ot,et){return U$3.current.useEffect(ot,et)},react_production_min.useId=function(){return U$3.current.useId()},react_production_min.useImperativeHandle=function(ot,et,ct){return U$3.current.useImperativeHandle(ot,et,ct)},react_production_min.useInsertionEffect=function(ot,et){return U$3.current.useInsertionEffect(ot,et)},react_production_min.useLayoutEffect=function(ot,et){return U$3.current.useLayoutEffect(ot,et)},react_production_min.useMemo=function(ot,et){return U$3.current.useMemo(ot,et)},react_production_min.useReducer=function(ot,et,ct){return U$3.current.useReducer(ot,et,ct)},react_production_min.useRef=function(ot){return U$3.current.useRef(ot)},react_production_min.useState=function(ot){return U$3.current.useState(ot)},react_production_min.useSyncExternalStore=function(ot,et,ct){return U$3.current.useSyncExternalStore(ot,et,ct)},react_production_min.useTransition=function(){return U$3.current.useTransition()},react_production_min.version="18.2.0",react.exports=react_production_min,reactExports=react.exports;let React$2;React$1=getDefaultExportFromCjs$1(reactExports),React$2=_mergeNamespaces({__proto__:null,default:React$1},[reactExports]);var f$3=reactExports,k$4=Symbol.for("react.element"),l$3=Symbol.for("react.fragment"),m$5=Object.prototype.hasOwnProperty,n$3=f$3.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p$5={key:!0,ref:!0,__self:!0,__source:!0};function q$4(ot,et,ct){var ut,dt={},ft=null,zt=null;ct!==void 0&&(ft=""+ct),et.key!==void 0&&(ft=""+et.key),et.ref!==void 0&&(zt=et.ref);for(ut in et)m$5.call(et,ut)&&!p$5.hasOwnProperty(ut)&&(dt[ut]=et[ut]);if(ot&&ot.defaultProps)for(ut in et=ot.defaultProps,et)dt[ut]===void 0&&(dt[ut]=et[ut]);return{$$typeof:k$4,type:ot,key:ft,ref:zt,props:dt,_owner:n$3.current}}reactJsxRuntime_production_min.Fragment=l$3,reactJsxRuntime_production_min.jsx=q$4,reactJsxRuntime_production_min.jsxs=q$4,jsxRuntime.exports=reactJsxRuntime_production_min;let reactDom,reactDom_production_min,scheduler,scheduler_production_min;jsxRuntimeExports=jsxRuntime.exports,reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={},function(ot){function et(I0,F0){var d0=I0.length;I0.push(F0);e:for(;0<d0;){var x0=d0-1>>>1,c0=I0[x0];if(0<dt(c0,F0))I0[x0]=F0,I0[d0]=c0,d0=x0;else break e}}function ct(I0){return I0.length===0?null:I0[0]}function ut(I0){if(I0.length===0)return null;var F0=I0[0],d0=I0.pop();if(d0!==F0){I0[0]=d0;e:for(var x0=0,c0=I0.length,i0=c0>>>1;x0<i0;){var M0=2*(x0+1)-1,k0=I0[M0],q0=M0+1,N0=I0[q0];if(0>dt(k0,d0))q0<c0&&0>dt(N0,k0)?(I0[x0]=N0,I0[q0]=d0,x0=q0):(I0[x0]=k0,I0[M0]=d0,x0=M0);else if(q0<c0&&0>dt(N0,d0))I0[x0]=N0,I0[q0]=d0,x0=q0;else break e}}return F0}function dt(I0,F0){var d0=I0.sortIndex-F0.sortIndex;return d0!==0?d0:I0.id-F0.id}if(typeof performance=="object"&&typeof performance.now=="function"){var ft=performance;ot.unstable_now=function(){return ft.now()}}else{var zt=Date,Dt=zt.now();ot.unstable_now=function(){return zt.now()-Dt}}var St=[],Tt=[],Rt=1,$t=null,kt=3,Bt=!1,Ft=!1,jt=!1,Kt=typeof setTimeout=="function"?setTimeout:null,Yt=typeof clearTimeout=="function"?clearTimeout:null,Ut=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Jt(I0){for(var F0=ct(Tt);F0!==null;){if(F0.callback===null)ut(Tt);else if(F0.startTime<=I0)ut(Tt),F0.sortIndex=F0.expirationTime,et(St,F0);else break;F0=ct(Tt)}}function Ht(I0){if(jt=!1,Jt(I0),!Ft)if(ct(St)!==null)Ft=!0,E0(e0);else{var F0=ct(Tt);F0!==null&&H0(Ht,F0.startTime-I0)}}function e0(I0,F0){Ft=!1,jt&&(jt=!1,Yt(o0),o0=-1),Bt=!0;var d0=kt;try{for(Jt(F0),$t=ct(St);$t!==null&&(!($t.expirationTime>F0)||I0&&!a0());){var x0=$t.callback;if(typeof x0=="function"){$t.callback=null,kt=$t.priorityLevel;var c0=x0($t.expirationTime<=F0);F0=ot.unstable_now(),typeof c0=="function"?$t.callback=c0:$t===ct(St)&&ut(St),Jt(F0)}else ut(St);$t=ct(St)}if($t!==null)var i0=!0;else{var M0=ct(Tt);M0!==null&&H0(Ht,M0.startTime-F0),i0=!1}return i0}finally{$t=null,kt=d0,Bt=!1}}var t0=!1,Zt=null,o0=-1,n0=5,r0=-1;function a0(){return!(ot.unstable_now()-r0<n0)}function u0(){if(Zt!==null){var I0=ot.unstable_now();r0=I0;var F0=!0;try{F0=Zt(!0,I0)}finally{F0?p0():(t0=!1,Zt=null)}}else t0=!1}var p0;if(typeof Ut=="function")p0=function(){Ut(u0)};else if(typeof MessageChannel<"u"){var _0=new MessageChannel,O0=_0.port2;_0.port1.onmessage=u0,p0=function(){O0.postMessage(null)}}else p0=function(){Kt(u0,0)};function E0(I0){Zt=I0,t0||(t0=!0,p0())}function H0(I0,F0){o0=Kt(function(){I0(ot.unstable_now())},F0)}ot.unstable_IdlePriority=5,ot.unstable_ImmediatePriority=1,ot.unstable_LowPriority=4,ot.unstable_NormalPriority=3,ot.unstable_Profiling=null,ot.unstable_UserBlockingPriority=2,ot.unstable_cancelCallback=function(I0){I0.callback=null},ot.unstable_continueExecution=function(){Ft||Bt||(Ft=!0,E0(e0))},ot.unstable_forceFrameRate=function(I0){0>I0||125<I0?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):n0=0<I0?Math.floor(1e3/I0):5},ot.unstable_getCurrentPriorityLevel=function(){return kt},ot.unstable_getFirstCallbackNode=function(){return ct(St)},ot.unstable_next=function(I0){switch(kt){case 1:case 2:case 3:var F0=3;break;default:F0=kt}var d0=kt;kt=F0;try{return I0()}finally{kt=d0}},ot.unstable_pauseExecution=function(){},ot.unstable_requestPaint=function(){},ot.unstable_runWithPriority=function(I0,F0){switch(I0){case 1:case 2:case 3:case 4:case 5:break;default:I0=3}var d0=kt;kt=I0;try{return F0()}finally{kt=d0}},ot.unstable_scheduleCallback=function(I0,F0,d0){var x0=ot.unstable_now();switch(typeof d0=="object"&&d0!==null?(d0=d0.delay,d0=typeof d0=="number"&&0<d0?x0+d0:x0):d0=x0,I0){case 1:var c0=-1;break;case 2:c0=250;break;case 5:c0=1073741823;break;case 4:c0=1e4;break;default:c0=5e3}return c0=d0+c0,I0={id:Rt++,callback:F0,priorityLevel:I0,startTime:d0,expirationTime:c0,sortIndex:-1},d0>x0?(I0.sortIndex=d0,et(Tt,I0),ct(St)===null&&I0===ct(Tt)&&(jt?(Yt(o0),o0=-1):jt=!0,H0(Ht,d0-x0))):(I0.sortIndex=c0,et(St,I0),Ft||Bt||(Ft=!0,E0(e0))),I0},ot.unstable_shouldYield=a0,ot.unstable_wrapCallback=function(I0){var F0=kt;return function(){var d0=kt;kt=F0;try{return I0.apply(this,arguments)}finally{kt=d0}}}}(scheduler_production_min),scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports,aa=reactExports,ca=schedulerExports;function p$4(ot){for(var et="https://reactjs.org/docs/error-decoder.html?invariant="+ot,ct=1;ct<arguments.length;ct++)et+="&args[]="+encodeURIComponent(arguments[ct]);return"Minified React error #"+ot+"; visit "+et+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var da=new Set,ea={};function fa(ot,et){ha(ot,et),ha(ot+"Capture",et)}function ha(ot,et){for(ea[ot]=et,ot=0;ot<et.length;ot++)da.add(et[ot])}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ja=Object.prototype.hasOwnProperty,ka=/^[: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]*$/,la={},ma={};function oa(ot){return ja.call(ma,ot)?!0:ja.call(la,ot)?!1:ka.test(ot)?ma[ot]=!0:(la[ot]=!0,!1)}function pa(ot,et,ct,ut){if(ct!==null&&ct.type===0)return!1;switch(typeof et){case"function":case"symbol":return!0;case"boolean":return ut?!1:ct!==null?!ct.acceptsBooleans:(ot=ot.toLowerCase().slice(0,5),ot!=="data-"&&ot!=="aria-");default:return!1}}function qa(ot,et,ct,ut){if(et===null||typeof et>"u"||pa(ot,et,ct,ut))return!0;if(ut)return!1;if(ct!==null)switch(ct.type){case 3:return!et;case 4:return et===!1;case 5:return isNaN(et);case 6:return isNaN(et)||1>et}return!1}function v$5(ot,et,ct,ut,dt,ft,zt){this.acceptsBooleans=et===2||et===3||et===4,this.attributeName=ut,this.attributeNamespace=dt,this.mustUseProperty=ct,this.propertyName=ot,this.type=et,this.sanitizeURL=ft,this.removeEmptyString=zt}var z$4={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(ot){z$4[ot]=new v$5(ot,0,!1,ot,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(ot){var et=ot[0];z$4[et]=new v$5(et,1,!1,ot[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(ot){z$4[ot]=new v$5(ot,2,!1,ot.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(ot){z$4[ot]=new v$5(ot,2,!1,ot,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(ot){z$4[ot]=new v$5(ot,3,!1,ot.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(ot){z$4[ot]=new v$5(ot,3,!0,ot,null,!1,!1)}),["capture","download"].forEach(function(ot){z$4[ot]=new v$5(ot,4,!1,ot,null,!1,!1)}),["cols","rows","size","span"].forEach(function(ot){z$4[ot]=new v$5(ot,6,!1,ot,null,!1,!1)}),["rowSpan","start"].forEach(function(ot){z$4[ot]=new v$5(ot,5,!1,ot.toLowerCase(),null,!1,!1)});var ra=/[\-:]([a-z])/g;function sa$1(ot){return ot[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(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(ot){var et=ot.replace(ra,sa$1);z$4[et]=new v$5(et,1,!1,ot,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(ot){z$4[ot]=new v$5(ot,1,!1,ot.toLowerCase(),null,!1,!1)}),z$4.xlinkHref=new v$5("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(ot){z$4[ot]=new v$5(ot,1,!1,ot.toLowerCase(),null,!0,!0)});function ta(ot,et,ct,ut){var dt=z$4.hasOwnProperty(et)?z$4[et]:null;(dt!==null?dt.type!==0:ut||!(2<et.length)||et[0]!=="o"&&et[0]!=="O"||et[1]!=="n"&&et[1]!=="N")&&(qa(et,ct,dt,ut)&&(ct=null),ut||dt===null?oa(et)&&(ct===null?ot.removeAttribute(et):ot.setAttribute(et,""+ct)):dt.mustUseProperty?ot[dt.propertyName]=ct===null?dt.type===3?!1:"":ct:(et=dt.attributeName,ut=dt.attributeNamespace,ct===null?ot.removeAttribute(et):(dt=dt.type,ct=dt===3||dt===4&&ct===!0?"":""+ct,ut?ot.setAttributeNS(ut,et,ct):ot.setAttribute(et,ct))))}var ua$1=aa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,va=Symbol.for("react.element"),wa=Symbol.for("react.portal"),ya=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Aa=Symbol.for("react.profiler"),Ba=Symbol.for("react.provider"),Ca=Symbol.for("react.context"),Da=Symbol.for("react.forward_ref"),Ea=Symbol.for("react.suspense"),Fa=Symbol.for("react.suspense_list"),Ga=Symbol.for("react.memo"),Ha=Symbol.for("react.lazy"),Ia=Symbol.for("react.offscreen"),Ja=Symbol.iterator;function Ka(ot){return ot===null||typeof ot!="object"?null:(ot=Ja&&ot[Ja]||ot["@@iterator"],typeof ot=="function"?ot:null)}var A$2=Object.assign,La;function Ma(ot){if(La===void 0)try{throw Error()}catch(ct){var et=ct.stack.trim().match(/\n( *(at )?)/);La=et&&et[1]||""}return`
|
|
3
3
|
`+La+ot}var Na=!1;function Oa(ot,et){if(!ot||Na)return"";Na=!0;var ct=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(et)if(et=function(){throw Error()},Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Tt){var ut=Tt}Reflect.construct(ot,[],et)}else{try{et.call()}catch(Tt){ut=Tt}ot.call(et.prototype)}else{try{throw Error()}catch(Tt){ut=Tt}ot()}}catch(Tt){if(Tt&&ut&&typeof Tt.stack=="string"){for(var dt=Tt.stack.split(`
|
|
4
4
|
`),ft=ut.stack.split(`
|
|
@@ -6,7 +6,7 @@ var Bn=Object.defineProperty;var Dn=Er=>{throw TypeError(Er)};var Fn=(Er,yr,Mr)=
|
|
|
6
6
|
`+dt[zt].replace(" at new "," at ");return ot.displayName&&St.includes("<anonymous>")&&(St=St.replace("<anonymous>",ot.displayName)),St}while(1<=zt&&0<=Dt);break}}}finally{Na=!1,Error.prepareStackTrace=ct}return(ot=ot?ot.displayName||ot.name:"")?Ma(ot):""}function Pa(ot){switch(ot.tag){case 5:return Ma(ot.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return ot=Oa(ot.type,!1),ot;case 11:return ot=Oa(ot.type.render,!1),ot;case 1:return ot=Oa(ot.type,!0),ot;default:return""}}function Qa(ot){if(ot==null)return null;if(typeof ot=="function")return ot.displayName||ot.name||null;if(typeof ot=="string")return ot;switch(ot){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof ot=="object")switch(ot.$$typeof){case Ca:return(ot.displayName||"Context")+".Consumer";case Ba:return(ot._context.displayName||"Context")+".Provider";case Da:var et=ot.render;return ot=ot.displayName,ot||(ot=et.displayName||et.name||"",ot=ot!==""?"ForwardRef("+ot+")":"ForwardRef"),ot;case Ga:return et=ot.displayName||null,et!==null?et:Qa(ot.type)||"Memo";case Ha:et=ot._payload,ot=ot._init;try{return Qa(ot(et))}catch{}}return null}function Ra(ot){var et=ot.type;switch(ot.tag){case 24:return"Cache";case 9:return(et.displayName||"Context")+".Consumer";case 10:return(et._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return ot=et.render,ot=ot.displayName||ot.name||"",et.displayName||(ot!==""?"ForwardRef("+ot+")":"ForwardRef");case 7:return"Fragment";case 5:return et;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(et);case 8:return et===za?"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 et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et}return null}function Sa(ot){switch(typeof ot){case"boolean":case"number":case"string":case"undefined":return ot;case"object":return ot;default:return""}}function Ta(ot){var et=ot.type;return(ot=ot.nodeName)&&ot.toLowerCase()==="input"&&(et==="checkbox"||et==="radio")}function Ua(ot){var et=Ta(ot)?"checked":"value",ct=Object.getOwnPropertyDescriptor(ot.constructor.prototype,et),ut=""+ot[et];if(!ot.hasOwnProperty(et)&&typeof ct<"u"&&typeof ct.get=="function"&&typeof ct.set=="function"){var dt=ct.get,ft=ct.set;return Object.defineProperty(ot,et,{configurable:!0,get:function(){return dt.call(this)},set:function(zt){ut=""+zt,ft.call(this,zt)}}),Object.defineProperty(ot,et,{enumerable:ct.enumerable}),{getValue:function(){return ut},setValue:function(zt){ut=""+zt},stopTracking:function(){ot._valueTracker=null,delete ot[et]}}}}function Va(ot){ot._valueTracker||(ot._valueTracker=Ua(ot))}function Wa(ot){if(!ot)return!1;var et=ot._valueTracker;if(!et)return!0;var ct=et.getValue(),ut="";return ot&&(ut=Ta(ot)?ot.checked?"true":"false":ot.value),ot=ut,ot!==ct?(et.setValue(ot),!0):!1}function Xa(ot){if(ot=ot||(typeof document<"u"?document:void 0),typeof ot>"u")return null;try{return ot.activeElement||ot.body}catch{return ot.body}}function Ya(ot,et){var ct=et.checked;return A$2({},et,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:ct??ot._wrapperState.initialChecked})}function Za(ot,et){var ct=et.defaultValue==null?"":et.defaultValue,ut=et.checked!=null?et.checked:et.defaultChecked;ct=Sa(et.value!=null?et.value:ct),ot._wrapperState={initialChecked:ut,initialValue:ct,controlled:et.type==="checkbox"||et.type==="radio"?et.checked!=null:et.value!=null}}function ab$1(ot,et){et=et.checked,et!=null&&ta(ot,"checked",et,!1)}function bb(ot,et){ab$1(ot,et);var ct=Sa(et.value),ut=et.type;if(ct!=null)ut==="number"?(ct===0&&ot.value===""||ot.value!=ct)&&(ot.value=""+ct):ot.value!==""+ct&&(ot.value=""+ct);else if(ut==="submit"||ut==="reset"){ot.removeAttribute("value");return}et.hasOwnProperty("value")?cb(ot,et.type,ct):et.hasOwnProperty("defaultValue")&&cb(ot,et.type,Sa(et.defaultValue)),et.checked==null&&et.defaultChecked!=null&&(ot.defaultChecked=!!et.defaultChecked)}function db(ot,et,ct){if(et.hasOwnProperty("value")||et.hasOwnProperty("defaultValue")){var ut=et.type;if(!(ut!=="submit"&&ut!=="reset"||et.value!==void 0&&et.value!==null))return;et=""+ot._wrapperState.initialValue,ct||et===ot.value||(ot.value=et),ot.defaultValue=et}ct=ot.name,ct!==""&&(ot.name=""),ot.defaultChecked=!!ot._wrapperState.initialChecked,ct!==""&&(ot.name=ct)}function cb(ot,et,ct){(et!=="number"||Xa(ot.ownerDocument)!==ot)&&(ct==null?ot.defaultValue=""+ot._wrapperState.initialValue:ot.defaultValue!==""+ct&&(ot.defaultValue=""+ct))}var eb=Array.isArray;function fb(ot,et,ct,ut){if(ot=ot.options,et){et={};for(var dt=0;dt<ct.length;dt++)et["$"+ct[dt]]=!0;for(ct=0;ct<ot.length;ct++)dt=et.hasOwnProperty("$"+ot[ct].value),ot[ct].selected!==dt&&(ot[ct].selected=dt),dt&&ut&&(ot[ct].defaultSelected=!0)}else{for(ct=""+Sa(ct),et=null,dt=0;dt<ot.length;dt++){if(ot[dt].value===ct){ot[dt].selected=!0,ut&&(ot[dt].defaultSelected=!0);return}et!==null||ot[dt].disabled||(et=ot[dt])}et!==null&&(et.selected=!0)}}function gb$1(ot,et){if(et.dangerouslySetInnerHTML!=null)throw Error(p$4(91));return A$2({},et,{value:void 0,defaultValue:void 0,children:""+ot._wrapperState.initialValue})}function hb(ot,et){var ct=et.value;if(ct==null){if(ct=et.children,et=et.defaultValue,ct!=null){if(et!=null)throw Error(p$4(92));if(eb(ct)){if(1<ct.length)throw Error(p$4(93));ct=ct[0]}et=ct}et==null&&(et=""),ct=et}ot._wrapperState={initialValue:Sa(ct)}}function ib(ot,et){var ct=Sa(et.value),ut=Sa(et.defaultValue);ct!=null&&(ct=""+ct,ct!==ot.value&&(ot.value=ct),et.defaultValue==null&&ot.defaultValue!==ct&&(ot.defaultValue=ct)),ut!=null&&(ot.defaultValue=""+ut)}function jb(ot){var et=ot.textContent;et===ot._wrapperState.initialValue&&et!==""&&et!==null&&(ot.value=et)}function kb(ot){switch(ot){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 lb(ot,et){return ot==null||ot==="http://www.w3.org/1999/xhtml"?kb(et):ot==="http://www.w3.org/2000/svg"&&et==="foreignObject"?"http://www.w3.org/1999/xhtml":ot}var mb,nb=function(ot){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(et,ct,ut,dt){MSApp.execUnsafeLocalFunction(function(){return ot(et,ct,ut,dt)})}:ot}(function(ot,et){if(ot.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in ot)ot.innerHTML=et;else{for(mb=mb||document.createElement("div"),mb.innerHTML="<svg>"+et.valueOf().toString()+"</svg>",et=mb.firstChild;ot.firstChild;)ot.removeChild(ot.firstChild);for(;et.firstChild;)ot.appendChild(et.firstChild)}});function ob(ot,et){if(et){var ct=ot.firstChild;if(ct&&ct===ot.lastChild&&ct.nodeType===3){ct.nodeValue=et;return}}ot.textContent=et}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(ot){qb.forEach(function(et){et=et+ot.charAt(0).toUpperCase()+ot.substring(1),pb[et]=pb[ot]})});function rb(ot,et,ct){return et==null||typeof et=="boolean"||et===""?"":ct||typeof et!="number"||et===0||pb.hasOwnProperty(ot)&&pb[ot]?(""+et).trim():et+"px"}function sb(ot,et){ot=ot.style;for(var ct in et)if(et.hasOwnProperty(ct)){var ut=ct.indexOf("--")===0,dt=rb(ct,et[ct],ut);ct==="float"&&(ct="cssFloat"),ut?ot.setProperty(ct,dt):ot[ct]=dt}}var tb=A$2({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 ub(ot,et){if(et){if(tb[ot]&&(et.children!=null||et.dangerouslySetInnerHTML!=null))throw Error(p$4(137,ot));if(et.dangerouslySetInnerHTML!=null){if(et.children!=null)throw Error(p$4(60));if(typeof et.dangerouslySetInnerHTML!="object"||!("__html"in et.dangerouslySetInnerHTML))throw Error(p$4(61))}if(et.style!=null&&typeof et.style!="object")throw Error(p$4(62))}}function vb(ot,et){if(ot.indexOf("-")===-1)return typeof et.is=="string";switch(ot){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 wb=null;function xb(ot){return ot=ot.target||ot.srcElement||window,ot.correspondingUseElement&&(ot=ot.correspondingUseElement),ot.nodeType===3?ot.parentNode:ot}var yb=null,zb=null,Ab=null;function Bb(ot){if(ot=Cb(ot)){if(typeof yb!="function")throw Error(p$4(280));var et=ot.stateNode;et&&(et=Db(et),yb(ot.stateNode,ot.type,et))}}function Eb(ot){zb?Ab?Ab.push(ot):Ab=[ot]:zb=ot}function Fb(){if(zb){var ot=zb,et=Ab;if(Ab=zb=null,Bb(ot),et)for(ot=0;ot<et.length;ot++)Bb(et[ot])}}function Gb(ot,et){return ot(et)}function Hb(){}var Ib=!1;function Jb(ot,et,ct){if(Ib)return ot(et,ct);Ib=!0;try{return Gb(ot,et,ct)}finally{Ib=!1,(zb!==null||Ab!==null)&&(Hb(),Fb())}}function Kb(ot,et){var ct=ot.stateNode;if(ct===null)return null;var ut=Db(ct);if(ut===null)return null;ct=ut[et];e:switch(et){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(ut=!ut.disabled)||(ot=ot.type,ut=!(ot==="button"||ot==="input"||ot==="select"||ot==="textarea")),ot=!ut;break e;default:ot=!1}if(ot)return null;if(ct&&typeof ct!="function")throw Error(p$4(231,et,typeof ct));return ct}var Lb=!1;if(ia)try{var Mb={};Object.defineProperty(Mb,"passive",{get:function(){Lb=!0}}),window.addEventListener("test",Mb,Mb),window.removeEventListener("test",Mb,Mb)}catch{Lb=!1}function Nb(ot,et,ct,ut,dt,ft,zt,Dt,St){var Tt=Array.prototype.slice.call(arguments,3);try{et.apply(ct,Tt)}catch(Rt){this.onError(Rt)}}var Ob=!1,Pb=null,Qb=!1,Rb=null,Sb={onError:function(ot){Ob=!0,Pb=ot}};function Tb(ot,et,ct,ut,dt,ft,zt,Dt,St){Ob=!1,Pb=null,Nb.apply(Sb,arguments)}function Ub(ot,et,ct,ut,dt,ft,zt,Dt,St){if(Tb.apply(this,arguments),Ob){if(Ob){var Tt=Pb;Ob=!1,Pb=null}else throw Error(p$4(198));Qb||(Qb=!0,Rb=Tt)}}function Vb(ot){var et=ot,ct=ot;if(ot.alternate)for(;et.return;)et=et.return;else{ot=et;do et=ot,et.flags&4098&&(ct=et.return),ot=et.return;while(ot)}return et.tag===3?ct:null}function Wb(ot){if(ot.tag===13){var et=ot.memoizedState;if(et===null&&(ot=ot.alternate,ot!==null&&(et=ot.memoizedState)),et!==null)return et.dehydrated}return null}function Xb(ot){if(Vb(ot)!==ot)throw Error(p$4(188))}function Yb(ot){var et=ot.alternate;if(!et){if(et=Vb(ot),et===null)throw Error(p$4(188));return et!==ot?null:ot}for(var ct=ot,ut=et;;){var dt=ct.return;if(dt===null)break;var ft=dt.alternate;if(ft===null){if(ut=dt.return,ut!==null){ct=ut;continue}break}if(dt.child===ft.child){for(ft=dt.child;ft;){if(ft===ct)return Xb(dt),ot;if(ft===ut)return Xb(dt),et;ft=ft.sibling}throw Error(p$4(188))}if(ct.return!==ut.return)ct=dt,ut=ft;else{for(var zt=!1,Dt=dt.child;Dt;){if(Dt===ct){zt=!0,ct=dt,ut=ft;break}if(Dt===ut){zt=!0,ut=dt,ct=ft;break}Dt=Dt.sibling}if(!zt){for(Dt=ft.child;Dt;){if(Dt===ct){zt=!0,ct=ft,ut=dt;break}if(Dt===ut){zt=!0,ut=ft,ct=dt;break}Dt=Dt.sibling}if(!zt)throw Error(p$4(189))}}if(ct.alternate!==ut)throw Error(p$4(190))}if(ct.tag!==3)throw Error(p$4(188));return ct.stateNode.current===ct?ot:et}function Zb(ot){return ot=Yb(ot),ot!==null?$b(ot):null}function $b(ot){if(ot.tag===5||ot.tag===6)return ot;for(ot=ot.child;ot!==null;){var et=$b(ot);if(et!==null)return et;ot=ot.sibling}return null}var ac=ca.unstable_scheduleCallback,bc=ca.unstable_cancelCallback,cc=ca.unstable_shouldYield,dc=ca.unstable_requestPaint,B$3=ca.unstable_now,ec=ca.unstable_getCurrentPriorityLevel,fc=ca.unstable_ImmediatePriority,gc=ca.unstable_UserBlockingPriority,hc=ca.unstable_NormalPriority,ic=ca.unstable_LowPriority,jc=ca.unstable_IdlePriority,kc=null,lc=null;function mc(ot){if(lc&&typeof lc.onCommitFiberRoot=="function")try{lc.onCommitFiberRoot(kc,ot,void 0,(ot.current.flags&128)===128)}catch{}}var oc=Math.clz32?Math.clz32:nc,pc=Math.log,qc=Math.LN2;function nc(ot){return ot>>>=0,ot===0?32:31-(pc(ot)/qc|0)|0}var rc=64,sc=4194304;function tc(ot){switch(ot&-ot){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 ot&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return ot&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return ot}}function uc(ot,et){var ct=ot.pendingLanes;if(ct===0)return 0;var ut=0,dt=ot.suspendedLanes,ft=ot.pingedLanes,zt=ct&268435455;if(zt!==0){var Dt=zt&~dt;Dt!==0?ut=tc(Dt):(ft&=zt,ft!==0&&(ut=tc(ft)))}else zt=ct&~dt,zt!==0?ut=tc(zt):ft!==0&&(ut=tc(ft));if(ut===0)return 0;if(et!==0&&et!==ut&&!(et&dt)&&(dt=ut&-ut,ft=et&-et,dt>=ft||dt===16&&(ft&4194240)!==0))return et;if(ut&4&&(ut|=ct&16),et=ot.entangledLanes,et!==0)for(ot=ot.entanglements,et&=ut;0<et;)ct=31-oc(et),dt=1<<ct,ut|=ot[ct],et&=~dt;return ut}function vc(ot,et){switch(ot){case 1:case 2:case 4:return et+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 et+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 wc$1(ot,et){for(var ct=ot.suspendedLanes,ut=ot.pingedLanes,dt=ot.expirationTimes,ft=ot.pendingLanes;0<ft;){var zt=31-oc(ft),Dt=1<<zt,St=dt[zt];St===-1?(!(Dt&ct)||Dt&ut)&&(dt[zt]=vc(Dt,et)):St<=et&&(ot.expiredLanes|=Dt),ft&=~Dt}}function xc(ot){return ot=ot.pendingLanes&-1073741825,ot!==0?ot:ot&1073741824?1073741824:0}function yc(){var ot=rc;return rc<<=1,!(rc&4194240)&&(rc=64),ot}function zc(ot){for(var et=[],ct=0;31>ct;ct++)et.push(ot);return et}function Ac(ot,et,ct){ot.pendingLanes|=et,et!==536870912&&(ot.suspendedLanes=0,ot.pingedLanes=0),ot=ot.eventTimes,et=31-oc(et),ot[et]=ct}function Bc(ot,et){var ct=ot.pendingLanes&~et;ot.pendingLanes=et,ot.suspendedLanes=0,ot.pingedLanes=0,ot.expiredLanes&=et,ot.mutableReadLanes&=et,ot.entangledLanes&=et,et=ot.entanglements;var ut=ot.eventTimes;for(ot=ot.expirationTimes;0<ct;){var dt=31-oc(ct),ft=1<<dt;et[dt]=0,ut[dt]=-1,ot[dt]=-1,ct&=~ft}}function Cc(ot,et){var ct=ot.entangledLanes|=et;for(ot=ot.entanglements;ct;){var ut=31-oc(ct),dt=1<<ut;dt&et|ot[ut]&et&&(ot[ut]|=et),ct&=~dt}}var C$2=0;function Dc$1(ot){return ot&=-ot,1<ot?4<ot?ot&268435455?16:536870912:4:1}var Ec,Fc,Gc,Hc,Ic,Jc=!1,Kc=[],Lc=null,Mc=null,Nc=null,Oc=new Map,Pc=new Map,Qc=[],Rc="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 Sc$1(ot,et){switch(ot){case"focusin":case"focusout":Lc=null;break;case"dragenter":case"dragleave":Mc=null;break;case"mouseover":case"mouseout":Nc=null;break;case"pointerover":case"pointerout":Oc.delete(et.pointerId);break;case"gotpointercapture":case"lostpointercapture":Pc.delete(et.pointerId)}}function Tc$1(ot,et,ct,ut,dt,ft){return ot===null||ot.nativeEvent!==ft?(ot={blockedOn:et,domEventName:ct,eventSystemFlags:ut,nativeEvent:ft,targetContainers:[dt]},et!==null&&(et=Cb(et),et!==null&&Fc(et)),ot):(ot.eventSystemFlags|=ut,et=ot.targetContainers,dt!==null&&et.indexOf(dt)===-1&&et.push(dt),ot)}function Uc(ot,et,ct,ut,dt){switch(et){case"focusin":return Lc=Tc$1(Lc,ot,et,ct,ut,dt),!0;case"dragenter":return Mc=Tc$1(Mc,ot,et,ct,ut,dt),!0;case"mouseover":return Nc=Tc$1(Nc,ot,et,ct,ut,dt),!0;case"pointerover":var ft=dt.pointerId;return Oc.set(ft,Tc$1(Oc.get(ft)||null,ot,et,ct,ut,dt)),!0;case"gotpointercapture":return ft=dt.pointerId,Pc.set(ft,Tc$1(Pc.get(ft)||null,ot,et,ct,ut,dt)),!0}return!1}function Vc(ot){var et=Wc(ot.target);if(et!==null){var ct=Vb(et);if(ct!==null){if(et=ct.tag,et===13){if(et=Wb(ct),et!==null){ot.blockedOn=et,Ic(ot.priority,function(){Gc(ct)});return}}else if(et===3&&ct.stateNode.current.memoizedState.isDehydrated){ot.blockedOn=ct.tag===3?ct.stateNode.containerInfo:null;return}}}ot.blockedOn=null}function Xc(ot){if(ot.blockedOn!==null)return!1;for(var et=ot.targetContainers;0<et.length;){var ct=Yc(ot.domEventName,ot.eventSystemFlags,et[0],ot.nativeEvent);if(ct===null){ct=ot.nativeEvent;var ut=new ct.constructor(ct.type,ct);wb=ut,ct.target.dispatchEvent(ut),wb=null}else return et=Cb(ct),et!==null&&Fc(et),ot.blockedOn=ct,!1;et.shift()}return!0}function Zc(ot,et,ct){Xc(ot)&&ct.delete(et)}function $c(){Jc=!1,Lc!==null&&Xc(Lc)&&(Lc=null),Mc!==null&&Xc(Mc)&&(Mc=null),Nc!==null&&Xc(Nc)&&(Nc=null),Oc.forEach(Zc),Pc.forEach(Zc)}function ad(ot,et){ot.blockedOn===et&&(ot.blockedOn=null,Jc||(Jc=!0,ca.unstable_scheduleCallback(ca.unstable_NormalPriority,$c)))}function bd(ot){function et(dt){return ad(dt,ot)}if(0<Kc.length){ad(Kc[0],ot);for(var ct=1;ct<Kc.length;ct++){var ut=Kc[ct];ut.blockedOn===ot&&(ut.blockedOn=null)}}for(Lc!==null&&ad(Lc,ot),Mc!==null&&ad(Mc,ot),Nc!==null&&ad(Nc,ot),Oc.forEach(et),Pc.forEach(et),ct=0;ct<Qc.length;ct++)ut=Qc[ct],ut.blockedOn===ot&&(ut.blockedOn=null);for(;0<Qc.length&&(ct=Qc[0],ct.blockedOn===null);)Vc(ct),ct.blockedOn===null&&Qc.shift()}var cd$1=ua$1.ReactCurrentBatchConfig,dd=!0;function ed(ot,et,ct,ut){var dt=C$2,ft=cd$1.transition;cd$1.transition=null;try{C$2=1,fd(ot,et,ct,ut)}finally{C$2=dt,cd$1.transition=ft}}function gd(ot,et,ct,ut){var dt=C$2,ft=cd$1.transition;cd$1.transition=null;try{C$2=4,fd(ot,et,ct,ut)}finally{C$2=dt,cd$1.transition=ft}}function fd(ot,et,ct,ut){if(dd){var dt=Yc(ot,et,ct,ut);if(dt===null)hd(ot,et,ut,id$1,ct),Sc$1(ot,ut);else if(Uc(dt,ot,et,ct,ut))ut.stopPropagation();else if(Sc$1(ot,ut),et&4&&-1<Rc.indexOf(ot)){for(;dt!==null;){var ft=Cb(dt);if(ft!==null&&Ec(ft),ft=Yc(ot,et,ct,ut),ft===null&&hd(ot,et,ut,id$1,ct),ft===dt)break;dt=ft}dt!==null&&ut.stopPropagation()}else hd(ot,et,ut,null,ct)}}var id$1=null;function Yc(ot,et,ct,ut){if(id$1=null,ot=xb(ut),ot=Wc(ot),ot!==null)if(et=Vb(ot),et===null)ot=null;else if(ct=et.tag,ct===13){if(ot=Wb(et),ot!==null)return ot;ot=null}else if(ct===3){if(et.stateNode.current.memoizedState.isDehydrated)return et.tag===3?et.stateNode.containerInfo:null;ot=null}else et!==ot&&(ot=null);return id$1=ot,null}function jd(ot){switch(ot){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(ec()){case fc:return 1;case gc:return 4;case hc:case ic:return 16;case jc:return 536870912;default:return 16}default:return 16}}var kd=null,ld=null,md=null;function nd(){if(md)return md;var ot,et=ld,ct=et.length,ut,dt="value"in kd?kd.value:kd.textContent,ft=dt.length;for(ot=0;ot<ct&&et[ot]===dt[ot];ot++);var zt=ct-ot;for(ut=1;ut<=zt&&et[ct-ut]===dt[ft-ut];ut++);return md=dt.slice(ot,1<ut?1-ut:void 0)}function od(ot){var et=ot.keyCode;return"charCode"in ot?(ot=ot.charCode,ot===0&&et===13&&(ot=13)):ot=et,ot===10&&(ot=13),32<=ot||ot===13?ot:0}function pd(){return!0}function qd(){return!1}function rd(ot){function et(ct,ut,dt,ft,zt){this._reactName=ct,this._targetInst=dt,this.type=ut,this.nativeEvent=ft,this.target=zt,this.currentTarget=null;for(var Dt in ot)ot.hasOwnProperty(Dt)&&(ct=ot[Dt],this[Dt]=ct?ct(ft):ft[Dt]);return this.isDefaultPrevented=(ft.defaultPrevented!=null?ft.defaultPrevented:ft.returnValue===!1)?pd:qd,this.isPropagationStopped=qd,this}return A$2(et.prototype,{preventDefault:function(){this.defaultPrevented=!0;var ct=this.nativeEvent;ct&&(ct.preventDefault?ct.preventDefault():typeof ct.returnValue!="unknown"&&(ct.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var ct=this.nativeEvent;ct&&(ct.stopPropagation?ct.stopPropagation():typeof ct.cancelBubble!="unknown"&&(ct.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),et}var sd={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(ot){return ot.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},td=rd(sd),ud=A$2({},sd,{view:0,detail:0}),vd=rd(ud),wd,xd,yd,Ad=A$2({},ud,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zd,button:0,buttons:0,relatedTarget:function(ot){return ot.relatedTarget===void 0?ot.fromElement===ot.srcElement?ot.toElement:ot.fromElement:ot.relatedTarget},movementX:function(ot){return"movementX"in ot?ot.movementX:(ot!==yd&&(yd&&ot.type==="mousemove"?(wd=ot.screenX-yd.screenX,xd=ot.screenY-yd.screenY):xd=wd=0,yd=ot),wd)},movementY:function(ot){return"movementY"in ot?ot.movementY:xd}}),Bd=rd(Ad),Cd=A$2({},Ad,{dataTransfer:0}),Dd=rd(Cd),Ed=A$2({},ud,{relatedTarget:0}),Fd=rd(Ed),Gd=A$2({},sd,{animationName:0,elapsedTime:0,pseudoElement:0}),Hd=rd(Gd),Id=A$2({},sd,{clipboardData:function(ot){return"clipboardData"in ot?ot.clipboardData:window.clipboardData}}),Jd=rd(Id),Kd=A$2({},sd,{data:0}),Ld=rd(Kd),Md={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Nd={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"},Od={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pd(ot){var et=this.nativeEvent;return et.getModifierState?et.getModifierState(ot):(ot=Od[ot])?!!et[ot]:!1}function zd(){return Pd}var Qd=A$2({},ud,{key:function(ot){if(ot.key){var et=Md[ot.key]||ot.key;if(et!=="Unidentified")return et}return ot.type==="keypress"?(ot=od(ot),ot===13?"Enter":String.fromCharCode(ot)):ot.type==="keydown"||ot.type==="keyup"?Nd[ot.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zd,charCode:function(ot){return ot.type==="keypress"?od(ot):0},keyCode:function(ot){return ot.type==="keydown"||ot.type==="keyup"?ot.keyCode:0},which:function(ot){return ot.type==="keypress"?od(ot):ot.type==="keydown"||ot.type==="keyup"?ot.keyCode:0}}),Rd=rd(Qd),Sd=A$2({},Ad,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Td=rd(Sd),Ud=A$2({},ud,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zd}),Vd=rd(Ud),Wd=A$2({},sd,{propertyName:0,elapsedTime:0,pseudoElement:0}),Xd=rd(Wd),Yd=A$2({},Ad,{deltaX:function(ot){return"deltaX"in ot?ot.deltaX:"wheelDeltaX"in ot?-ot.wheelDeltaX:0},deltaY:function(ot){return"deltaY"in ot?ot.deltaY:"wheelDeltaY"in ot?-ot.wheelDeltaY:"wheelDelta"in ot?-ot.wheelDelta:0},deltaZ:0,deltaMode:0}),Zd=rd(Yd),$d=[9,13,27,32],ae$1=ia&&"CompositionEvent"in window,be$1=null;ia&&"documentMode"in document&&(be$1=document.documentMode);var ce$1=ia&&"TextEvent"in window&&!be$1,de$2=ia&&(!ae$1||be$1&&8<be$1&&11>=be$1),ee$1=" ",fe$1=!1;function ge$1(ot,et){switch(ot){case"keyup":return $d.indexOf(et.keyCode)!==-1;case"keydown":return et.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(ot){return ot=ot.detail,typeof ot=="object"&&"data"in ot?ot.data:null}var ie$1=!1;function je(ot,et){switch(ot){case"compositionend":return he$1(et);case"keypress":return et.which!==32?null:(fe$1=!0,ee$1);case"textInput":return ot=et.data,ot===ee$1&&fe$1?null:ot;default:return null}}function ke$1(ot,et){if(ie$1)return ot==="compositionend"||!ae$1&&ge$1(ot,et)?(ot=nd(),md=ld=kd=null,ie$1=!1,ot):null;switch(ot){case"paste":return null;case"keypress":if(!(et.ctrlKey||et.altKey||et.metaKey)||et.ctrlKey&&et.altKey){if(et.char&&1<et.char.length)return et.char;if(et.which)return String.fromCharCode(et.which)}return null;case"compositionend":return de$2&&et.locale!=="ko"?null:et.data;default:return null}}var le$1={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 me$1(ot){var et=ot&&ot.nodeName&&ot.nodeName.toLowerCase();return et==="input"?!!le$1[ot.type]:et==="textarea"}function ne$1(ot,et,ct,ut){Eb(ut),et=oe$1(et,"onChange"),0<et.length&&(ct=new td("onChange","change",null,ct,ut),ot.push({event:ct,listeners:et}))}var pe$1=null,qe=null;function re$1(ot){se$1(ot,0)}function te$1(ot){var et=ue$1(ot);if(Wa(et))return ot}function ve(ot,et){if(ot==="change")return et}var we=!1;if(ia){var xe;if(ia){var ye="oninput"in document;if(!ye){var ze=document.createElement("div");ze.setAttribute("oninput","return;"),ye=typeof ze.oninput=="function"}xe=ye}else xe=!1;we=xe&&(!document.documentMode||9<document.documentMode)}function Ae(){pe$1&&(pe$1.detachEvent("onpropertychange",Be),qe=pe$1=null)}function Be(ot){if(ot.propertyName==="value"&&te$1(qe)){var et=[];ne$1(et,qe,ot,xb(ot)),Jb(re$1,et)}}function Ce(ot,et,ct){ot==="focusin"?(Ae(),pe$1=et,qe=ct,pe$1.attachEvent("onpropertychange",Be)):ot==="focusout"&&Ae()}function De(ot){if(ot==="selectionchange"||ot==="keyup"||ot==="keydown")return te$1(qe)}function Ee$1(ot,et){if(ot==="click")return te$1(et)}function Fe(ot,et){if(ot==="input"||ot==="change")return te$1(et)}function Ge(ot,et){return ot===et&&(ot!==0||1/ot===1/et)||ot!==ot&&et!==et}var He=typeof Object.is=="function"?Object.is:Ge;function Ie(ot,et){if(He(ot,et))return!0;if(typeof ot!="object"||ot===null||typeof et!="object"||et===null)return!1;var ct=Object.keys(ot),ut=Object.keys(et);if(ct.length!==ut.length)return!1;for(ut=0;ut<ct.length;ut++){var dt=ct[ut];if(!ja.call(et,dt)||!He(ot[dt],et[dt]))return!1}return!0}function Je(ot){for(;ot&&ot.firstChild;)ot=ot.firstChild;return ot}function Ke(ot,et){var ct=Je(ot);ot=0;for(var ut;ct;){if(ct.nodeType===3){if(ut=ot+ct.textContent.length,ot<=et&&ut>=et)return{node:ct,offset:et-ot};ot=ut}e:{for(;ct;){if(ct.nextSibling){ct=ct.nextSibling;break e}ct=ct.parentNode}ct=void 0}ct=Je(ct)}}function Le(ot,et){return ot&&et?ot===et?!0:ot&&ot.nodeType===3?!1:et&&et.nodeType===3?Le(ot,et.parentNode):"contains"in ot?ot.contains(et):ot.compareDocumentPosition?!!(ot.compareDocumentPosition(et)&16):!1:!1}function Me(){for(var ot=window,et=Xa();et instanceof ot.HTMLIFrameElement;){try{var ct=typeof et.contentWindow.location.href=="string"}catch{ct=!1}if(ct)ot=et.contentWindow;else break;et=Xa(ot.document)}return et}function Ne(ot){var et=ot&&ot.nodeName&&ot.nodeName.toLowerCase();return et&&(et==="input"&&(ot.type==="text"||ot.type==="search"||ot.type==="tel"||ot.type==="url"||ot.type==="password")||et==="textarea"||ot.contentEditable==="true")}function Oe$1(ot){var et=Me(),ct=ot.focusedElem,ut=ot.selectionRange;if(et!==ct&&ct&&ct.ownerDocument&&Le(ct.ownerDocument.documentElement,ct)){if(ut!==null&&Ne(ct)){if(et=ut.start,ot=ut.end,ot===void 0&&(ot=et),"selectionStart"in ct)ct.selectionStart=et,ct.selectionEnd=Math.min(ot,ct.value.length);else if(ot=(et=ct.ownerDocument||document)&&et.defaultView||window,ot.getSelection){ot=ot.getSelection();var dt=ct.textContent.length,ft=Math.min(ut.start,dt);ut=ut.end===void 0?ft:Math.min(ut.end,dt),!ot.extend&&ft>ut&&(dt=ut,ut=ft,ft=dt),dt=Ke(ct,ft);var zt=Ke(ct,ut);dt&&zt&&(ot.rangeCount!==1||ot.anchorNode!==dt.node||ot.anchorOffset!==dt.offset||ot.focusNode!==zt.node||ot.focusOffset!==zt.offset)&&(et=et.createRange(),et.setStart(dt.node,dt.offset),ot.removeAllRanges(),ft>ut?(ot.addRange(et),ot.extend(zt.node,zt.offset)):(et.setEnd(zt.node,zt.offset),ot.addRange(et)))}}for(et=[],ot=ct;ot=ot.parentNode;)ot.nodeType===1&&et.push({element:ot,left:ot.scrollLeft,top:ot.scrollTop});for(typeof ct.focus=="function"&&ct.focus(),ct=0;ct<et.length;ct++)ot=et[ct],ot.element.scrollLeft=ot.left,ot.element.scrollTop=ot.top}}var Pe$1=ia&&"documentMode"in document&&11>=document.documentMode,Qe=null,Re$1=null,Se=null,Te=!1;function Ue(ot,et,ct){var ut=ct.window===ct?ct.document:ct.nodeType===9?ct:ct.ownerDocument;Te||Qe==null||Qe!==Xa(ut)||(ut=Qe,"selectionStart"in ut&&Ne(ut)?ut={start:ut.selectionStart,end:ut.selectionEnd}:(ut=(ut.ownerDocument&&ut.ownerDocument.defaultView||window).getSelection(),ut={anchorNode:ut.anchorNode,anchorOffset:ut.anchorOffset,focusNode:ut.focusNode,focusOffset:ut.focusOffset}),Se&&Ie(Se,ut)||(Se=ut,ut=oe$1(Re$1,"onSelect"),0<ut.length&&(et=new td("onSelect","select",null,et,ct),ot.push({event:et,listeners:ut}),et.target=Qe)))}function Ve(ot,et){var ct={};return ct[ot.toLowerCase()]=et.toLowerCase(),ct["Webkit"+ot]="webkit"+et,ct["Moz"+ot]="moz"+et,ct}var We={animationend:Ve("Animation","AnimationEnd"),animationiteration:Ve("Animation","AnimationIteration"),animationstart:Ve("Animation","AnimationStart"),transitionend:Ve("Transition","TransitionEnd")},Xe={},Ye={};ia&&(Ye=document.createElement("div").style,"AnimationEvent"in window||(delete We.animationend.animation,delete We.animationiteration.animation,delete We.animationstart.animation),"TransitionEvent"in window||delete We.transitionend.transition);function Ze(ot){if(Xe[ot])return Xe[ot];if(!We[ot])return ot;var et=We[ot],ct;for(ct in et)if(et.hasOwnProperty(ct)&&ct in Ye)return Xe[ot]=et[ct];return ot}var $e=Ze("animationend"),af=Ze("animationiteration"),bf=Ze("animationstart"),cf=Ze("transitionend"),df=new Map,ef="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 ff(ot,et){df.set(ot,et),fa(et,[ot])}for(var gf=0;gf<ef.length;gf++){var hf=ef[gf],jf=hf.toLowerCase(),kf=hf[0].toUpperCase()+hf.slice(1);ff(jf,"on"+kf)}ff($e,"onAnimationEnd"),ff(af,"onAnimationIteration"),ff(bf,"onAnimationStart"),ff("dblclick","onDoubleClick"),ff("focusin","onFocus"),ff("focusout","onBlur"),ff(cf,"onTransitionEnd"),ha("onMouseEnter",["mouseout","mouseover"]),ha("onMouseLeave",["mouseout","mouseover"]),ha("onPointerEnter",["pointerout","pointerover"]),ha("onPointerLeave",["pointerout","pointerover"]),fa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fa("onBeforeInput",["compositionend","keypress","textInput","paste"]),fa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var lf="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(" "),mf=new Set("cancel close invalid load scroll toggle".split(" ").concat(lf));function nf(ot,et,ct){var ut=ot.type||"unknown-event";ot.currentTarget=ct,Ub(ut,et,void 0,ot),ot.currentTarget=null}function se$1(ot,et){et=(et&4)!==0;for(var ct=0;ct<ot.length;ct++){var ut=ot[ct],dt=ut.event;ut=ut.listeners;e:{var ft=void 0;if(et)for(var zt=ut.length-1;0<=zt;zt--){var Dt=ut[zt],St=Dt.instance,Tt=Dt.currentTarget;if(Dt=Dt.listener,St!==ft&&dt.isPropagationStopped())break e;nf(dt,Dt,Tt),ft=St}else for(zt=0;zt<ut.length;zt++){if(Dt=ut[zt],St=Dt.instance,Tt=Dt.currentTarget,Dt=Dt.listener,St!==ft&&dt.isPropagationStopped())break e;nf(dt,Dt,Tt),ft=St}}}if(Qb)throw ot=Rb,Qb=!1,Rb=null,ot}function D$3(ot,et){var ct=et[of];ct===void 0&&(ct=et[of]=new Set);var ut=ot+"__bubble";ct.has(ut)||(pf(et,ot,2,!1),ct.add(ut))}function qf(ot,et,ct){var ut=0;et&&(ut|=4),pf(ct,ot,ut,et)}var rf="_reactListening"+Math.random().toString(36).slice(2);function sf(ot){if(!ot[rf]){ot[rf]=!0,da.forEach(function(ct){ct!=="selectionchange"&&(mf.has(ct)||qf(ct,!1,ot),qf(ct,!0,ot))});var et=ot.nodeType===9?ot:ot.ownerDocument;et===null||et[rf]||(et[rf]=!0,qf("selectionchange",!1,et))}}function pf(ot,et,ct,ut){switch(jd(et)){case 1:var dt=ed;break;case 4:dt=gd;break;default:dt=fd}ct=dt.bind(null,et,ct,ot),dt=void 0,!Lb||et!=="touchstart"&&et!=="touchmove"&&et!=="wheel"||(dt=!0),ut?dt!==void 0?ot.addEventListener(et,ct,{capture:!0,passive:dt}):ot.addEventListener(et,ct,!0):dt!==void 0?ot.addEventListener(et,ct,{passive:dt}):ot.addEventListener(et,ct,!1)}function hd(ot,et,ct,ut,dt){var ft=ut;if(!(et&1)&&!(et&2)&&ut!==null)e:for(;;){if(ut===null)return;var zt=ut.tag;if(zt===3||zt===4){var Dt=ut.stateNode.containerInfo;if(Dt===dt||Dt.nodeType===8&&Dt.parentNode===dt)break;if(zt===4)for(zt=ut.return;zt!==null;){var St=zt.tag;if((St===3||St===4)&&(St=zt.stateNode.containerInfo,St===dt||St.nodeType===8&&St.parentNode===dt))return;zt=zt.return}for(;Dt!==null;){if(zt=Wc(Dt),zt===null)return;if(St=zt.tag,St===5||St===6){ut=ft=zt;continue e}Dt=Dt.parentNode}}ut=ut.return}Jb(function(){var Tt=ft,Rt=xb(ct),$t=[];e:{var kt=df.get(ot);if(kt!==void 0){var Bt=td,Ft=ot;switch(ot){case"keypress":if(od(ct)===0)break e;case"keydown":case"keyup":Bt=Rd;break;case"focusin":Ft="focus",Bt=Fd;break;case"focusout":Ft="blur",Bt=Fd;break;case"beforeblur":case"afterblur":Bt=Fd;break;case"click":if(ct.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Bt=Bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Bt=Dd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Bt=Vd;break;case $e:case af:case bf:Bt=Hd;break;case cf:Bt=Xd;break;case"scroll":Bt=vd;break;case"wheel":Bt=Zd;break;case"copy":case"cut":case"paste":Bt=Jd;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Bt=Td}var jt=(et&4)!==0,Kt=!jt&&ot==="scroll",Yt=jt?kt!==null?kt+"Capture":null:kt;jt=[];for(var Ut=Tt,Jt;Ut!==null;){Jt=Ut;var Ht=Jt.stateNode;if(Jt.tag===5&&Ht!==null&&(Jt=Ht,Yt!==null&&(Ht=Kb(Ut,Yt),Ht!=null&&jt.push(tf(Ut,Ht,Jt)))),Kt)break;Ut=Ut.return}0<jt.length&&(kt=new Bt(kt,Ft,null,ct,Rt),$t.push({event:kt,listeners:jt}))}}if(!(et&7)){e:{if(kt=ot==="mouseover"||ot==="pointerover",Bt=ot==="mouseout"||ot==="pointerout",kt&&ct!==wb&&(Ft=ct.relatedTarget||ct.fromElement)&&(Wc(Ft)||Ft[uf]))break e;if((Bt||kt)&&(kt=Rt.window===Rt?Rt:(kt=Rt.ownerDocument)?kt.defaultView||kt.parentWindow:window,Bt?(Ft=ct.relatedTarget||ct.toElement,Bt=Tt,Ft=Ft?Wc(Ft):null,Ft!==null&&(Kt=Vb(Ft),Ft!==Kt||Ft.tag!==5&&Ft.tag!==6)&&(Ft=null)):(Bt=null,Ft=Tt),Bt!==Ft)){if(jt=Bd,Ht="onMouseLeave",Yt="onMouseEnter",Ut="mouse",(ot==="pointerout"||ot==="pointerover")&&(jt=Td,Ht="onPointerLeave",Yt="onPointerEnter",Ut="pointer"),Kt=Bt==null?kt:ue$1(Bt),Jt=Ft==null?kt:ue$1(Ft),kt=new jt(Ht,Ut+"leave",Bt,ct,Rt),kt.target=Kt,kt.relatedTarget=Jt,Ht=null,Wc(Rt)===Tt&&(jt=new jt(Yt,Ut+"enter",Ft,ct,Rt),jt.target=Jt,jt.relatedTarget=Kt,Ht=jt),Kt=Ht,Bt&&Ft)t:{for(jt=Bt,Yt=Ft,Ut=0,Jt=jt;Jt;Jt=vf(Jt))Ut++;for(Jt=0,Ht=Yt;Ht;Ht=vf(Ht))Jt++;for(;0<Ut-Jt;)jt=vf(jt),Ut--;for(;0<Jt-Ut;)Yt=vf(Yt),Jt--;for(;Ut--;){if(jt===Yt||Yt!==null&&jt===Yt.alternate)break t;jt=vf(jt),Yt=vf(Yt)}jt=null}else jt=null;Bt!==null&&wf($t,kt,Bt,jt,!1),Ft!==null&&Kt!==null&&wf($t,Kt,Ft,jt,!0)}}e:{if(kt=Tt?ue$1(Tt):window,Bt=kt.nodeName&&kt.nodeName.toLowerCase(),Bt==="select"||Bt==="input"&&kt.type==="file")var e0=ve;else if(me$1(kt))if(we)e0=Fe;else{e0=De;var t0=Ce}else(Bt=kt.nodeName)&&Bt.toLowerCase()==="input"&&(kt.type==="checkbox"||kt.type==="radio")&&(e0=Ee$1);if(e0&&(e0=e0(ot,Tt))){ne$1($t,e0,ct,Rt);break e}t0&&t0(ot,kt,Tt),ot==="focusout"&&(t0=kt._wrapperState)&&t0.controlled&&kt.type==="number"&&cb(kt,"number",kt.value)}switch(t0=Tt?ue$1(Tt):window,ot){case"focusin":(me$1(t0)||t0.contentEditable==="true")&&(Qe=t0,Re$1=Tt,Se=null);break;case"focusout":Se=Re$1=Qe=null;break;case"mousedown":Te=!0;break;case"contextmenu":case"mouseup":case"dragend":Te=!1,Ue($t,ct,Rt);break;case"selectionchange":if(Pe$1)break;case"keydown":case"keyup":Ue($t,ct,Rt)}var Zt;if(ae$1)e:{switch(ot){case"compositionstart":var o0="onCompositionStart";break e;case"compositionend":o0="onCompositionEnd";break e;case"compositionupdate":o0="onCompositionUpdate";break e}o0=void 0}else ie$1?ge$1(ot,ct)&&(o0="onCompositionEnd"):ot==="keydown"&&ct.keyCode===229&&(o0="onCompositionStart");o0&&(de$2&&ct.locale!=="ko"&&(ie$1||o0!=="onCompositionStart"?o0==="onCompositionEnd"&&ie$1&&(Zt=nd()):(kd=Rt,ld="value"in kd?kd.value:kd.textContent,ie$1=!0)),t0=oe$1(Tt,o0),0<t0.length&&(o0=new Ld(o0,ot,null,ct,Rt),$t.push({event:o0,listeners:t0}),Zt?o0.data=Zt:(Zt=he$1(ct),Zt!==null&&(o0.data=Zt)))),(Zt=ce$1?je(ot,ct):ke$1(ot,ct))&&(Tt=oe$1(Tt,"onBeforeInput"),0<Tt.length&&(Rt=new Ld("onBeforeInput","beforeinput",null,ct,Rt),$t.push({event:Rt,listeners:Tt}),Rt.data=Zt))}se$1($t,et)})}function tf(ot,et,ct){return{instance:ot,listener:et,currentTarget:ct}}function oe$1(ot,et){for(var ct=et+"Capture",ut=[];ot!==null;){var dt=ot,ft=dt.stateNode;dt.tag===5&&ft!==null&&(dt=ft,ft=Kb(ot,ct),ft!=null&&ut.unshift(tf(ot,ft,dt)),ft=Kb(ot,et),ft!=null&&ut.push(tf(ot,ft,dt))),ot=ot.return}return ut}function vf(ot){if(ot===null)return null;do ot=ot.return;while(ot&&ot.tag!==5);return ot||null}function wf(ot,et,ct,ut,dt){for(var ft=et._reactName,zt=[];ct!==null&&ct!==ut;){var Dt=ct,St=Dt.alternate,Tt=Dt.stateNode;if(St!==null&&St===ut)break;Dt.tag===5&&Tt!==null&&(Dt=Tt,dt?(St=Kb(ct,ft),St!=null&&zt.unshift(tf(ct,St,Dt))):dt||(St=Kb(ct,ft),St!=null&&zt.push(tf(ct,St,Dt)))),ct=ct.return}zt.length!==0&&ot.push({event:et,listeners:zt})}var xf=/\r\n?/g,yf=/\u0000|\uFFFD/g;function zf(ot){return(typeof ot=="string"?ot:""+ot).replace(xf,`
|
|
7
7
|
`).replace(yf,"")}function Af(ot,et,ct){if(et=zf(et),zf(ot)!==et&&ct)throw Error(p$4(425))}function Bf(){}var Cf=null,Df=null;function Ef(ot,et){return ot==="textarea"||ot==="noscript"||typeof et.children=="string"||typeof et.children=="number"||typeof et.dangerouslySetInnerHTML=="object"&&et.dangerouslySetInnerHTML!==null&&et.dangerouslySetInnerHTML.__html!=null}var Ff=typeof setTimeout=="function"?setTimeout:void 0,Gf=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,Jf=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(ot){return Hf.resolve(null).then(ot).catch(If)}:Ff;function If(ot){setTimeout(function(){throw ot})}function Kf(ot,et){var ct=et,ut=0;do{var dt=ct.nextSibling;if(ot.removeChild(ct),dt&&dt.nodeType===8)if(ct=dt.data,ct==="/$"){if(ut===0){ot.removeChild(dt),bd(et);return}ut--}else ct!=="$"&&ct!=="$?"&&ct!=="$!"||ut++;ct=dt}while(ct);bd(et)}function Lf(ot){for(;ot!=null;ot=ot.nextSibling){var et=ot.nodeType;if(et===1||et===3)break;if(et===8){if(et=ot.data,et==="$"||et==="$!"||et==="$?")break;if(et==="/$")return null}}return ot}function Mf(ot){ot=ot.previousSibling;for(var et=0;ot;){if(ot.nodeType===8){var ct=ot.data;if(ct==="$"||ct==="$!"||ct==="$?"){if(et===0)return ot;et--}else ct==="/$"&&et++}ot=ot.previousSibling}return null}var Nf=Math.random().toString(36).slice(2),Of="__reactFiber$"+Nf,Pf="__reactProps$"+Nf,uf="__reactContainer$"+Nf,of="__reactEvents$"+Nf,Qf="__reactListeners$"+Nf,Rf="__reactHandles$"+Nf;function Wc(ot){var et=ot[Of];if(et)return et;for(var ct=ot.parentNode;ct;){if(et=ct[uf]||ct[Of]){if(ct=et.alternate,et.child!==null||ct!==null&&ct.child!==null)for(ot=Mf(ot);ot!==null;){if(ct=ot[Of])return ct;ot=Mf(ot)}return et}ot=ct,ct=ot.parentNode}return null}function Cb(ot){return ot=ot[Of]||ot[uf],!ot||ot.tag!==5&&ot.tag!==6&&ot.tag!==13&&ot.tag!==3?null:ot}function ue$1(ot){if(ot.tag===5||ot.tag===6)return ot.stateNode;throw Error(p$4(33))}function Db(ot){return ot[Pf]||null}var Sf=[],Tf=-1;function Uf(ot){return{current:ot}}function E$2(ot){0>Tf||(ot.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$3(ot,et){Tf++,Sf[Tf]=ot.current,ot.current=et}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(ot,et){var ct=ot.type.contextTypes;if(!ct)return Vf;var ut=ot.stateNode;if(ut&&ut.__reactInternalMemoizedUnmaskedChildContext===et)return ut.__reactInternalMemoizedMaskedChildContext;var dt={},ft;for(ft in ct)dt[ft]=et[ft];return ut&&(ot=ot.stateNode,ot.__reactInternalMemoizedUnmaskedChildContext=et,ot.__reactInternalMemoizedMaskedChildContext=dt),dt}function Zf(ot){return ot=ot.childContextTypes,ot!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(ot,et,ct){if(H$2.current!==Vf)throw Error(p$4(168));G$3(H$2,et),G$3(Wf,ct)}function bg(ot,et,ct){var ut=ot.stateNode;if(et=et.childContextTypes,typeof ut.getChildContext!="function")return ct;ut=ut.getChildContext();for(var dt in ut)if(!(dt in et))throw Error(p$4(108,Ra(ot)||"Unknown",dt));return A$2({},ct,ut)}function cg(ot){return ot=(ot=ot.stateNode)&&ot.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$3(H$2,ot),G$3(Wf,Wf.current),!0}function dg(ot,et,ct){var ut=ot.stateNode;if(!ut)throw Error(p$4(169));ct?(ot=bg(ot,et,Xf),ut.__reactInternalMemoizedMergedChildContext=ot,E$2(Wf),E$2(H$2),G$3(H$2,ot)):E$2(Wf),G$3(Wf,ct)}var eg=null,fg=!1,gg=!1;function hg(ot){eg===null?eg=[ot]:eg.push(ot)}function ig(ot){fg=!0,hg(ot)}function jg(){if(!gg&&eg!==null){gg=!0;var ot=0,et=C$2;try{var ct=eg;for(C$2=1;ot<ct.length;ot++){var ut=ct[ot];do ut=ut(!0);while(ut!==null)}eg=null,fg=!1}catch(dt){throw eg!==null&&(eg=eg.slice(ot+1)),ac(fc,jg),dt}finally{C$2=et,gg=!1}}return null}var kg=[],lg=0,mg=null,ng$1=0,og=[],pg=0,qg=null,rg=1,sg="";function tg(ot,et){kg[lg++]=ng$1,kg[lg++]=mg,mg=ot,ng$1=et}function ug(ot,et,ct){og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,qg=ot;var ut=rg;ot=sg;var dt=32-oc(ut)-1;ut&=~(1<<dt),ct+=1;var ft=32-oc(et)+dt;if(30<ft){var zt=dt-dt%5;ft=(ut&(1<<zt)-1).toString(32),ut>>=zt,dt-=zt,rg=1<<32-oc(et)+dt|ct<<dt|ut,sg=ft+ot}else rg=1<<ft|ct<<dt|ut,sg=ot}function vg(ot){ot.return!==null&&(tg(ot,1),ug(ot,1,0))}function wg(ot){for(;ot===mg;)mg=kg[--lg],kg[lg]=null,ng$1=kg[--lg],kg[lg]=null;for(;ot===qg;)qg=og[--pg],og[pg]=null,sg=og[--pg],og[pg]=null,rg=og[--pg],og[pg]=null}var xg=null,yg=null,I$2=!1,zg=null;function Ag(ot,et){var ct=Bg(5,null,null,0);ct.elementType="DELETED",ct.stateNode=et,ct.return=ot,et=ot.deletions,et===null?(ot.deletions=[ct],ot.flags|=16):et.push(ct)}function Cg(ot,et){switch(ot.tag){case 5:var ct=ot.type;return et=et.nodeType!==1||ct.toLowerCase()!==et.nodeName.toLowerCase()?null:et,et!==null?(ot.stateNode=et,xg=ot,yg=Lf(et.firstChild),!0):!1;case 6:return et=ot.pendingProps===""||et.nodeType!==3?null:et,et!==null?(ot.stateNode=et,xg=ot,yg=null,!0):!1;case 13:return et=et.nodeType!==8?null:et,et!==null?(ct=qg!==null?{id:rg,overflow:sg}:null,ot.memoizedState={dehydrated:et,treeContext:ct,retryLane:1073741824},ct=Bg(18,null,null,0),ct.stateNode=et,ct.return=ot,ot.child=ct,xg=ot,yg=null,!0):!1;default:return!1}}function Dg(ot){return(ot.mode&1)!==0&&(ot.flags&128)===0}function Eg(ot){if(I$2){var et=yg;if(et){var ct=et;if(!Cg(ot,et)){if(Dg(ot))throw Error(p$4(418));et=Lf(ct.nextSibling);var ut=xg;et&&Cg(ot,et)?Ag(ut,ct):(ot.flags=ot.flags&-4097|2,I$2=!1,xg=ot)}}else{if(Dg(ot))throw Error(p$4(418));ot.flags=ot.flags&-4097|2,I$2=!1,xg=ot}}}function Fg(ot){for(ot=ot.return;ot!==null&&ot.tag!==5&&ot.tag!==3&&ot.tag!==13;)ot=ot.return;xg=ot}function Gg(ot){if(ot!==xg)return!1;if(!I$2)return Fg(ot),I$2=!0,!1;var et;if((et=ot.tag!==3)&&!(et=ot.tag!==5)&&(et=ot.type,et=et!=="head"&&et!=="body"&&!Ef(ot.type,ot.memoizedProps)),et&&(et=yg)){if(Dg(ot))throw Hg(),Error(p$4(418));for(;et;)Ag(ot,et),et=Lf(et.nextSibling)}if(Fg(ot),ot.tag===13){if(ot=ot.memoizedState,ot=ot!==null?ot.dehydrated:null,!ot)throw Error(p$4(317));e:{for(ot=ot.nextSibling,et=0;ot;){if(ot.nodeType===8){var ct=ot.data;if(ct==="/$"){if(et===0){yg=Lf(ot.nextSibling);break e}et--}else ct!=="$"&&ct!=="$!"&&ct!=="$?"||et++}ot=ot.nextSibling}yg=null}}else yg=xg?Lf(ot.stateNode.nextSibling):null;return!0}function Hg(){for(var ot=yg;ot;)ot=Lf(ot.nextSibling)}function Ig(){yg=xg=null,I$2=!1}function Jg(ot){zg===null?zg=[ot]:zg.push(ot)}var Kg=ua$1.ReactCurrentBatchConfig;function Lg(ot,et){if(ot&&ot.defaultProps){et=A$2({},et),ot=ot.defaultProps;for(var ct in ot)et[ct]===void 0&&(et[ct]=ot[ct]);return et}return et}var Mg=Uf(null),Ng=null,Og=null,Pg=null;function Qg(){Pg=Og=Ng=null}function Rg(ot){var et=Mg.current;E$2(Mg),ot._currentValue=et}function Sg(ot,et,ct){for(;ot!==null;){var ut=ot.alternate;if((ot.childLanes&et)!==et?(ot.childLanes|=et,ut!==null&&(ut.childLanes|=et)):ut!==null&&(ut.childLanes&et)!==et&&(ut.childLanes|=et),ot===ct)break;ot=ot.return}}function Tg(ot,et){Ng=ot,Pg=Og=null,ot=ot.dependencies,ot!==null&&ot.firstContext!==null&&(ot.lanes&et&&(Ug=!0),ot.firstContext=null)}function Vg(ot){var et=ot._currentValue;if(Pg!==ot)if(ot={context:ot,memoizedValue:et,next:null},Og===null){if(Ng===null)throw Error(p$4(308));Og=ot,Ng.dependencies={lanes:0,firstContext:ot}}else Og=Og.next=ot;return et}var Wg=null;function Xg(ot){Wg===null?Wg=[ot]:Wg.push(ot)}function Yg(ot,et,ct,ut){var dt=et.interleaved;return dt===null?(ct.next=ct,Xg(et)):(ct.next=dt.next,dt.next=ct),et.interleaved=ct,Zg(ot,ut)}function Zg(ot,et){ot.lanes|=et;var ct=ot.alternate;for(ct!==null&&(ct.lanes|=et),ct=ot,ot=ot.return;ot!==null;)ot.childLanes|=et,ct=ot.alternate,ct!==null&&(ct.childLanes|=et),ct=ot,ot=ot.return;return ct.tag===3?ct.stateNode:null}var $g=!1;function ah(ot){ot.updateQueue={baseState:ot.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bh(ot,et){ot=ot.updateQueue,et.updateQueue===ot&&(et.updateQueue={baseState:ot.baseState,firstBaseUpdate:ot.firstBaseUpdate,lastBaseUpdate:ot.lastBaseUpdate,shared:ot.shared,effects:ot.effects})}function ch$1(ot,et){return{eventTime:ot,lane:et,tag:0,payload:null,callback:null,next:null}}function dh(ot,et,ct){var ut=ot.updateQueue;if(ut===null)return null;if(ut=ut.shared,K$2&2){var dt=ut.pending;return dt===null?et.next=et:(et.next=dt.next,dt.next=et),ut.pending=et,Zg(ot,ct)}return dt=ut.interleaved,dt===null?(et.next=et,Xg(ut)):(et.next=dt.next,dt.next=et),ut.interleaved=et,Zg(ot,ct)}function eh(ot,et,ct){if(et=et.updateQueue,et!==null&&(et=et.shared,(ct&4194240)!==0)){var ut=et.lanes;ut&=ot.pendingLanes,ct|=ut,et.lanes=ct,Cc(ot,ct)}}function fh(ot,et){var ct=ot.updateQueue,ut=ot.alternate;if(ut!==null&&(ut=ut.updateQueue,ct===ut)){var dt=null,ft=null;if(ct=ct.firstBaseUpdate,ct!==null){do{var zt={eventTime:ct.eventTime,lane:ct.lane,tag:ct.tag,payload:ct.payload,callback:ct.callback,next:null};ft===null?dt=ft=zt:ft=ft.next=zt,ct=ct.next}while(ct!==null);ft===null?dt=ft=et:ft=ft.next=et}else dt=ft=et;ct={baseState:ut.baseState,firstBaseUpdate:dt,lastBaseUpdate:ft,shared:ut.shared,effects:ut.effects},ot.updateQueue=ct;return}ot=ct.lastBaseUpdate,ot===null?ct.firstBaseUpdate=et:ot.next=et,ct.lastBaseUpdate=et}function gh(ot,et,ct,ut){var dt=ot.updateQueue;$g=!1;var ft=dt.firstBaseUpdate,zt=dt.lastBaseUpdate,Dt=dt.shared.pending;if(Dt!==null){dt.shared.pending=null;var St=Dt,Tt=St.next;St.next=null,zt===null?ft=Tt:zt.next=Tt,zt=St;var Rt=ot.alternate;Rt!==null&&(Rt=Rt.updateQueue,Dt=Rt.lastBaseUpdate,Dt!==zt&&(Dt===null?Rt.firstBaseUpdate=Tt:Dt.next=Tt,Rt.lastBaseUpdate=St))}if(ft!==null){var $t=dt.baseState;zt=0,Rt=Tt=St=null,Dt=ft;do{var kt=Dt.lane,Bt=Dt.eventTime;if((ut&kt)===kt){Rt!==null&&(Rt=Rt.next={eventTime:Bt,lane:0,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null});e:{var Ft=ot,jt=Dt;switch(kt=et,Bt=ct,jt.tag){case 1:if(Ft=jt.payload,typeof Ft=="function"){$t=Ft.call(Bt,$t,kt);break e}$t=Ft;break e;case 3:Ft.flags=Ft.flags&-65537|128;case 0:if(Ft=jt.payload,kt=typeof Ft=="function"?Ft.call(Bt,$t,kt):Ft,kt==null)break e;$t=A$2({},$t,kt);break e;case 2:$g=!0}}Dt.callback!==null&&Dt.lane!==0&&(ot.flags|=64,kt=dt.effects,kt===null?dt.effects=[Dt]:kt.push(Dt))}else Bt={eventTime:Bt,lane:kt,tag:Dt.tag,payload:Dt.payload,callback:Dt.callback,next:null},Rt===null?(Tt=Rt=Bt,St=$t):Rt=Rt.next=Bt,zt|=kt;if(Dt=Dt.next,Dt===null){if(Dt=dt.shared.pending,Dt===null)break;kt=Dt,Dt=kt.next,kt.next=null,dt.lastBaseUpdate=kt,dt.shared.pending=null}}while(!0);if(Rt===null&&(St=$t),dt.baseState=St,dt.firstBaseUpdate=Tt,dt.lastBaseUpdate=Rt,et=dt.shared.interleaved,et!==null){dt=et;do zt|=dt.lane,dt=dt.next;while(dt!==et)}else ft===null&&(dt.shared.lanes=0);hh|=zt,ot.lanes=zt,ot.memoizedState=$t}}function ih(ot,et,ct){if(ot=et.effects,et.effects=null,ot!==null)for(et=0;et<ot.length;et++){var ut=ot[et],dt=ut.callback;if(dt!==null){if(ut.callback=null,ut=ct,typeof dt!="function")throw Error(p$4(191,dt));dt.call(ut)}}}var jh=new aa.Component().refs;function kh(ot,et,ct,ut){et=ot.memoizedState,ct=ct(ut,et),ct=ct==null?et:A$2({},et,ct),ot.memoizedState=ct,ot.lanes===0&&(ot.updateQueue.baseState=ct)}var nh={isMounted:function(ot){return(ot=ot._reactInternals)?Vb(ot)===ot:!1},enqueueSetState:function(ot,et,ct){ot=ot._reactInternals;var ut=L$2(),dt=lh(ot),ft=ch$1(ut,dt);ft.payload=et,ct!=null&&(ft.callback=ct),et=dh(ot,ft,dt),et!==null&&(mh(et,ot,dt,ut),eh(et,ot,dt))},enqueueReplaceState:function(ot,et,ct){ot=ot._reactInternals;var ut=L$2(),dt=lh(ot),ft=ch$1(ut,dt);ft.tag=1,ft.payload=et,ct!=null&&(ft.callback=ct),et=dh(ot,ft,dt),et!==null&&(mh(et,ot,dt,ut),eh(et,ot,dt))},enqueueForceUpdate:function(ot,et){ot=ot._reactInternals;var ct=L$2(),ut=lh(ot),dt=ch$1(ct,ut);dt.tag=2,et!=null&&(dt.callback=et),et=dh(ot,dt,ut),et!==null&&(mh(et,ot,ut,ct),eh(et,ot,ut))}};function oh(ot,et,ct,ut,dt,ft,zt){return ot=ot.stateNode,typeof ot.shouldComponentUpdate=="function"?ot.shouldComponentUpdate(ut,ft,zt):et.prototype&&et.prototype.isPureReactComponent?!Ie(ct,ut)||!Ie(dt,ft):!0}function ph(ot,et,ct){var ut=!1,dt=Vf,ft=et.contextType;return typeof ft=="object"&&ft!==null?ft=Vg(ft):(dt=Zf(et)?Xf:H$2.current,ut=et.contextTypes,ft=(ut=ut!=null)?Yf(ot,dt):Vf),et=new et(ct,ft),ot.memoizedState=et.state!==null&&et.state!==void 0?et.state:null,et.updater=nh,ot.stateNode=et,et._reactInternals=ot,ut&&(ot=ot.stateNode,ot.__reactInternalMemoizedUnmaskedChildContext=dt,ot.__reactInternalMemoizedMaskedChildContext=ft),et}function qh(ot,et,ct,ut){ot=et.state,typeof et.componentWillReceiveProps=="function"&&et.componentWillReceiveProps(ct,ut),typeof et.UNSAFE_componentWillReceiveProps=="function"&&et.UNSAFE_componentWillReceiveProps(ct,ut),et.state!==ot&&nh.enqueueReplaceState(et,et.state,null)}function rh(ot,et,ct,ut){var dt=ot.stateNode;dt.props=ct,dt.state=ot.memoizedState,dt.refs=jh,ah(ot);var ft=et.contextType;typeof ft=="object"&&ft!==null?dt.context=Vg(ft):(ft=Zf(et)?Xf:H$2.current,dt.context=Yf(ot,ft)),dt.state=ot.memoizedState,ft=et.getDerivedStateFromProps,typeof ft=="function"&&(kh(ot,et,ft,ct),dt.state=ot.memoizedState),typeof et.getDerivedStateFromProps=="function"||typeof dt.getSnapshotBeforeUpdate=="function"||typeof dt.UNSAFE_componentWillMount!="function"&&typeof dt.componentWillMount!="function"||(et=dt.state,typeof dt.componentWillMount=="function"&&dt.componentWillMount(),typeof dt.UNSAFE_componentWillMount=="function"&&dt.UNSAFE_componentWillMount(),et!==dt.state&&nh.enqueueReplaceState(dt,dt.state,null),gh(ot,ct,dt,ut),dt.state=ot.memoizedState),typeof dt.componentDidMount=="function"&&(ot.flags|=4194308)}function sh(ot,et,ct){if(ot=ct.ref,ot!==null&&typeof ot!="function"&&typeof ot!="object"){if(ct._owner){if(ct=ct._owner,ct){if(ct.tag!==1)throw Error(p$4(309));var ut=ct.stateNode}if(!ut)throw Error(p$4(147,ot));var dt=ut,ft=""+ot;return et!==null&&et.ref!==null&&typeof et.ref=="function"&&et.ref._stringRef===ft?et.ref:(et=function(zt){var Dt=dt.refs;Dt===jh&&(Dt=dt.refs={}),zt===null?delete Dt[ft]:Dt[ft]=zt},et._stringRef=ft,et)}if(typeof ot!="string")throw Error(p$4(284));if(!ct._owner)throw Error(p$4(290,ot))}return ot}function th(ot,et){throw ot=Object.prototype.toString.call(et),Error(p$4(31,ot==="[object Object]"?"object with keys {"+Object.keys(et).join(", ")+"}":ot))}function uh(ot){var et=ot._init;return et(ot._payload)}function vh(ot){function et(Yt,Ut){if(ot){var Jt=Yt.deletions;Jt===null?(Yt.deletions=[Ut],Yt.flags|=16):Jt.push(Ut)}}function ct(Yt,Ut){if(!ot)return null;for(;Ut!==null;)et(Yt,Ut),Ut=Ut.sibling;return null}function ut(Yt,Ut){for(Yt=new Map;Ut!==null;)Ut.key!==null?Yt.set(Ut.key,Ut):Yt.set(Ut.index,Ut),Ut=Ut.sibling;return Yt}function dt(Yt,Ut){return Yt=wh(Yt,Ut),Yt.index=0,Yt.sibling=null,Yt}function ft(Yt,Ut,Jt){return Yt.index=Jt,ot?(Jt=Yt.alternate,Jt!==null?(Jt=Jt.index,Jt<Ut?(Yt.flags|=2,Ut):Jt):(Yt.flags|=2,Ut)):(Yt.flags|=1048576,Ut)}function zt(Yt){return ot&&Yt.alternate===null&&(Yt.flags|=2),Yt}function Dt(Yt,Ut,Jt,Ht){return Ut===null||Ut.tag!==6?(Ut=xh(Jt,Yt.mode,Ht),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt),Ut.return=Yt,Ut)}function St(Yt,Ut,Jt,Ht){var e0=Jt.type;return e0===ya?Rt(Yt,Ut,Jt.props.children,Ht,Jt.key):Ut!==null&&(Ut.elementType===e0||typeof e0=="object"&&e0!==null&&e0.$$typeof===Ha&&uh(e0)===Ut.type)?(Ht=dt(Ut,Jt.props),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Ht):(Ht=yh(Jt.type,Jt.key,Jt.props,null,Yt.mode,Ht),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Ht)}function Tt(Yt,Ut,Jt,Ht){return Ut===null||Ut.tag!==4||Ut.stateNode.containerInfo!==Jt.containerInfo||Ut.stateNode.implementation!==Jt.implementation?(Ut=zh(Jt,Yt.mode,Ht),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt.children||[]),Ut.return=Yt,Ut)}function Rt(Yt,Ut,Jt,Ht,e0){return Ut===null||Ut.tag!==7?(Ut=Ah(Jt,Yt.mode,Ht,e0),Ut.return=Yt,Ut):(Ut=dt(Ut,Jt),Ut.return=Yt,Ut)}function $t(Yt,Ut,Jt){if(typeof Ut=="string"&&Ut!==""||typeof Ut=="number")return Ut=xh(""+Ut,Yt.mode,Jt),Ut.return=Yt,Ut;if(typeof Ut=="object"&&Ut!==null){switch(Ut.$$typeof){case va:return Jt=yh(Ut.type,Ut.key,Ut.props,null,Yt.mode,Jt),Jt.ref=sh(Yt,null,Ut),Jt.return=Yt,Jt;case wa:return Ut=zh(Ut,Yt.mode,Jt),Ut.return=Yt,Ut;case Ha:var Ht=Ut._init;return $t(Yt,Ht(Ut._payload),Jt)}if(eb(Ut)||Ka(Ut))return Ut=Ah(Ut,Yt.mode,Jt,null),Ut.return=Yt,Ut;th(Yt,Ut)}return null}function kt(Yt,Ut,Jt,Ht){var e0=Ut!==null?Ut.key:null;if(typeof Jt=="string"&&Jt!==""||typeof Jt=="number")return e0!==null?null:Dt(Yt,Ut,""+Jt,Ht);if(typeof Jt=="object"&&Jt!==null){switch(Jt.$$typeof){case va:return Jt.key===e0?St(Yt,Ut,Jt,Ht):null;case wa:return Jt.key===e0?Tt(Yt,Ut,Jt,Ht):null;case Ha:return e0=Jt._init,kt(Yt,Ut,e0(Jt._payload),Ht)}if(eb(Jt)||Ka(Jt))return e0!==null?null:Rt(Yt,Ut,Jt,Ht,null);th(Yt,Jt)}return null}function Bt(Yt,Ut,Jt,Ht,e0){if(typeof Ht=="string"&&Ht!==""||typeof Ht=="number")return Yt=Yt.get(Jt)||null,Dt(Ut,Yt,""+Ht,e0);if(typeof Ht=="object"&&Ht!==null){switch(Ht.$$typeof){case va:return Yt=Yt.get(Ht.key===null?Jt:Ht.key)||null,St(Ut,Yt,Ht,e0);case wa:return Yt=Yt.get(Ht.key===null?Jt:Ht.key)||null,Tt(Ut,Yt,Ht,e0);case Ha:var t0=Ht._init;return Bt(Yt,Ut,Jt,t0(Ht._payload),e0)}if(eb(Ht)||Ka(Ht))return Yt=Yt.get(Jt)||null,Rt(Ut,Yt,Ht,e0,null);th(Ut,Ht)}return null}function Ft(Yt,Ut,Jt,Ht){for(var e0=null,t0=null,Zt=Ut,o0=Ut=0,n0=null;Zt!==null&&o0<Jt.length;o0++){Zt.index>o0?(n0=Zt,Zt=null):n0=Zt.sibling;var r0=kt(Yt,Zt,Jt[o0],Ht);if(r0===null){Zt===null&&(Zt=n0);break}ot&&Zt&&r0.alternate===null&&et(Yt,Zt),Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0,Zt=n0}if(o0===Jt.length)return ct(Yt,Zt),I$2&&tg(Yt,o0),e0;if(Zt===null){for(;o0<Jt.length;o0++)Zt=$t(Yt,Jt[o0],Ht),Zt!==null&&(Ut=ft(Zt,Ut,o0),t0===null?e0=Zt:t0.sibling=Zt,t0=Zt);return I$2&&tg(Yt,o0),e0}for(Zt=ut(Yt,Zt);o0<Jt.length;o0++)n0=Bt(Zt,Yt,o0,Jt[o0],Ht),n0!==null&&(ot&&n0.alternate!==null&&Zt.delete(n0.key===null?o0:n0.key),Ut=ft(n0,Ut,o0),t0===null?e0=n0:t0.sibling=n0,t0=n0);return ot&&Zt.forEach(function(a0){return et(Yt,a0)}),I$2&&tg(Yt,o0),e0}function jt(Yt,Ut,Jt,Ht){var e0=Ka(Jt);if(typeof e0!="function")throw Error(p$4(150));if(Jt=e0.call(Jt),Jt==null)throw Error(p$4(151));for(var t0=e0=null,Zt=Ut,o0=Ut=0,n0=null,r0=Jt.next();Zt!==null&&!r0.done;o0++,r0=Jt.next()){Zt.index>o0?(n0=Zt,Zt=null):n0=Zt.sibling;var a0=kt(Yt,Zt,r0.value,Ht);if(a0===null){Zt===null&&(Zt=n0);break}ot&&Zt&&a0.alternate===null&&et(Yt,Zt),Ut=ft(a0,Ut,o0),t0===null?e0=a0:t0.sibling=a0,t0=a0,Zt=n0}if(r0.done)return ct(Yt,Zt),I$2&&tg(Yt,o0),e0;if(Zt===null){for(;!r0.done;o0++,r0=Jt.next())r0=$t(Yt,r0.value,Ht),r0!==null&&(Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0);return I$2&&tg(Yt,o0),e0}for(Zt=ut(Yt,Zt);!r0.done;o0++,r0=Jt.next())r0=Bt(Zt,Yt,o0,r0.value,Ht),r0!==null&&(ot&&r0.alternate!==null&&Zt.delete(r0.key===null?o0:r0.key),Ut=ft(r0,Ut,o0),t0===null?e0=r0:t0.sibling=r0,t0=r0);return ot&&Zt.forEach(function(u0){return et(Yt,u0)}),I$2&&tg(Yt,o0),e0}function Kt(Yt,Ut,Jt,Ht){if(typeof Jt=="object"&&Jt!==null&&Jt.type===ya&&Jt.key===null&&(Jt=Jt.props.children),typeof Jt=="object"&&Jt!==null){switch(Jt.$$typeof){case va:e:{for(var e0=Jt.key,t0=Ut;t0!==null;){if(t0.key===e0){if(e0=Jt.type,e0===ya){if(t0.tag===7){ct(Yt,t0.sibling),Ut=dt(t0,Jt.props.children),Ut.return=Yt,Yt=Ut;break e}}else if(t0.elementType===e0||typeof e0=="object"&&e0!==null&&e0.$$typeof===Ha&&uh(e0)===t0.type){ct(Yt,t0.sibling),Ut=dt(t0,Jt.props),Ut.ref=sh(Yt,t0,Jt),Ut.return=Yt,Yt=Ut;break e}ct(Yt,t0);break}else et(Yt,t0);t0=t0.sibling}Jt.type===ya?(Ut=Ah(Jt.props.children,Yt.mode,Ht,Jt.key),Ut.return=Yt,Yt=Ut):(Ht=yh(Jt.type,Jt.key,Jt.props,null,Yt.mode,Ht),Ht.ref=sh(Yt,Ut,Jt),Ht.return=Yt,Yt=Ht)}return zt(Yt);case wa:e:{for(t0=Jt.key;Ut!==null;){if(Ut.key===t0)if(Ut.tag===4&&Ut.stateNode.containerInfo===Jt.containerInfo&&Ut.stateNode.implementation===Jt.implementation){ct(Yt,Ut.sibling),Ut=dt(Ut,Jt.children||[]),Ut.return=Yt,Yt=Ut;break e}else{ct(Yt,Ut);break}else et(Yt,Ut);Ut=Ut.sibling}Ut=zh(Jt,Yt.mode,Ht),Ut.return=Yt,Yt=Ut}return zt(Yt);case Ha:return t0=Jt._init,Kt(Yt,Ut,t0(Jt._payload),Ht)}if(eb(Jt))return Ft(Yt,Ut,Jt,Ht);if(Ka(Jt))return jt(Yt,Ut,Jt,Ht);th(Yt,Jt)}return typeof Jt=="string"&&Jt!==""||typeof Jt=="number"?(Jt=""+Jt,Ut!==null&&Ut.tag===6?(ct(Yt,Ut.sibling),Ut=dt(Ut,Jt),Ut.return=Yt,Yt=Ut):(ct(Yt,Ut),Ut=xh(Jt,Yt.mode,Ht),Ut.return=Yt,Yt=Ut),zt(Yt)):ct(Yt,Ut)}return Kt}var Bh=vh(!0),Ch=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(ot){if(ot===Dh)throw Error(p$4(174));return ot}function Ih(ot,et){switch(G$3(Gh,et),G$3(Fh,ot),G$3(Eh,Dh),ot=et.nodeType,ot){case 9:case 11:et=(et=et.documentElement)?et.namespaceURI:lb(null,"");break;default:ot=ot===8?et.parentNode:et,et=ot.namespaceURI||null,ot=ot.tagName,et=lb(et,ot)}E$2(Eh),G$3(Eh,et)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh(ot){Hh(Gh.current);var et=Hh(Eh.current),ct=lb(et,ot.type);et!==ct&&(G$3(Fh,ot),G$3(Eh,ct))}function Lh(ot){Fh.current===ot&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(ot){for(var et=ot;et!==null;){if(et.tag===13){var ct=et.memoizedState;if(ct!==null&&(ct=ct.dehydrated,ct===null||ct.data==="$?"||ct.data==="$!"))return et}else if(et.tag===19&&et.memoizedProps.revealOrder!==void 0){if(et.flags&128)return et}else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return null;et=et.return}et.sibling.return=et.return,et=et.sibling}return null}var Nh=[];function Oh(){for(var ot=0;ot<Nh.length;ot++)Nh[ot]._workInProgressVersionPrimary=null;Nh.length=0}var Ph=ua$1.ReactCurrentDispatcher,Qh=ua$1.ReactCurrentBatchConfig,Rh=0,N$3=null,O$1=null,P$2=null,Sh=!1,Th=!1,Uh=0,Vh=0;function Q$3(){throw Error(p$4(321))}function Wh(ot,et){if(et===null)return!1;for(var ct=0;ct<et.length&&ct<ot.length;ct++)if(!He(ot[ct],et[ct]))return!1;return!0}function Xh(ot,et,ct,ut,dt,ft){if(Rh=ft,N$3=et,et.memoizedState=null,et.updateQueue=null,et.lanes=0,Ph.current=ot===null||ot.memoizedState===null?Yh:Zh,ot=ct(ut,dt),Th){ft=0;do{if(Th=!1,Uh=0,25<=ft)throw Error(p$4(301));ft+=1,P$2=O$1=null,et.updateQueue=null,Ph.current=$h,ot=ct(ut,dt)}while(Th)}if(Ph.current=ai,et=O$1!==null&&O$1.next!==null,Rh=0,P$2=O$1=N$3=null,Sh=!1,et)throw Error(p$4(300));return ot}function bi(){var ot=Uh!==0;return Uh=0,ot}function ci(){var ot={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return P$2===null?N$3.memoizedState=P$2=ot:P$2=P$2.next=ot,P$2}function di(){if(O$1===null){var ot=N$3.alternate;ot=ot!==null?ot.memoizedState:null}else ot=O$1.next;var et=P$2===null?N$3.memoizedState:P$2.next;if(et!==null)P$2=et,O$1=ot;else{if(ot===null)throw Error(p$4(310));O$1=ot,ot={memoizedState:O$1.memoizedState,baseState:O$1.baseState,baseQueue:O$1.baseQueue,queue:O$1.queue,next:null},P$2===null?N$3.memoizedState=P$2=ot:P$2=P$2.next=ot}return P$2}function ei(ot,et){return typeof et=="function"?et(ot):et}function fi(ot){var et=di(),ct=et.queue;if(ct===null)throw Error(p$4(311));ct.lastRenderedReducer=ot;var ut=O$1,dt=ut.baseQueue,ft=ct.pending;if(ft!==null){if(dt!==null){var zt=dt.next;dt.next=ft.next,ft.next=zt}ut.baseQueue=dt=ft,ct.pending=null}if(dt!==null){ft=dt.next,ut=ut.baseState;var Dt=zt=null,St=null,Tt=ft;do{var Rt=Tt.lane;if((Rh&Rt)===Rt)St!==null&&(St=St.next={lane:0,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null}),ut=Tt.hasEagerState?Tt.eagerState:ot(ut,Tt.action);else{var $t={lane:Rt,action:Tt.action,hasEagerState:Tt.hasEagerState,eagerState:Tt.eagerState,next:null};St===null?(Dt=St=$t,zt=ut):St=St.next=$t,N$3.lanes|=Rt,hh|=Rt}Tt=Tt.next}while(Tt!==null&&Tt!==ft);St===null?zt=ut:St.next=Dt,He(ut,et.memoizedState)||(Ug=!0),et.memoizedState=ut,et.baseState=zt,et.baseQueue=St,ct.lastRenderedState=ut}if(ot=ct.interleaved,ot!==null){dt=ot;do ft=dt.lane,N$3.lanes|=ft,hh|=ft,dt=dt.next;while(dt!==ot)}else dt===null&&(ct.lanes=0);return[et.memoizedState,ct.dispatch]}function gi(ot){var et=di(),ct=et.queue;if(ct===null)throw Error(p$4(311));ct.lastRenderedReducer=ot;var ut=ct.dispatch,dt=ct.pending,ft=et.memoizedState;if(dt!==null){ct.pending=null;var zt=dt=dt.next;do ft=ot(ft,zt.action),zt=zt.next;while(zt!==dt);He(ft,et.memoizedState)||(Ug=!0),et.memoizedState=ft,et.baseQueue===null&&(et.baseState=ft),ct.lastRenderedState=ft}return[ft,ut]}function hi(){}function ii(ot,et){var ct=N$3,ut=di(),dt=et(),ft=!He(ut.memoizedState,dt);if(ft&&(ut.memoizedState=dt,Ug=!0),ut=ut.queue,ji(ki.bind(null,ct,ut,ot),[ot]),ut.getSnapshot!==et||ft||P$2!==null&&P$2.memoizedState.tag&1){if(ct.flags|=2048,li(9,mi.bind(null,ct,ut,dt,et),void 0,null),R$2===null)throw Error(p$4(349));Rh&30||ni(ct,et,dt)}return dt}function ni(ot,et,ct){ot.flags|=16384,ot={getSnapshot:et,value:ct},et=N$3.updateQueue,et===null?(et={lastEffect:null,stores:null},N$3.updateQueue=et,et.stores=[ot]):(ct=et.stores,ct===null?et.stores=[ot]:ct.push(ot))}function mi(ot,et,ct,ut){et.value=ct,et.getSnapshot=ut,oi(et)&&pi(ot)}function ki(ot,et,ct){return ct(function(){oi(et)&&pi(ot)})}function oi(ot){var et=ot.getSnapshot;ot=ot.value;try{var ct=et();return!He(ot,ct)}catch{return!0}}function pi(ot){var et=Zg(ot,1);et!==null&&mh(et,ot,1,-1)}function qi(ot){var et=ci();return typeof ot=="function"&&(ot=ot()),et.memoizedState=et.baseState=ot,ot={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ei,lastRenderedState:ot},et.queue=ot,ot=ot.dispatch=ri.bind(null,N$3,ot),[et.memoizedState,ot]}function li(ot,et,ct,ut){return ot={tag:ot,create:et,destroy:ct,deps:ut,next:null},et=N$3.updateQueue,et===null?(et={lastEffect:null,stores:null},N$3.updateQueue=et,et.lastEffect=ot.next=ot):(ct=et.lastEffect,ct===null?et.lastEffect=ot.next=ot:(ut=ct.next,ct.next=ot,ot.next=ut,et.lastEffect=ot)),ot}function si(){return di().memoizedState}function ti(ot,et,ct,ut){var dt=ci();N$3.flags|=ot,dt.memoizedState=li(1|et,ct,void 0,ut===void 0?null:ut)}function ui(ot,et,ct,ut){var dt=di();ut=ut===void 0?null:ut;var ft=void 0;if(O$1!==null){var zt=O$1.memoizedState;if(ft=zt.destroy,ut!==null&&Wh(ut,zt.deps)){dt.memoizedState=li(et,ct,ft,ut);return}}N$3.flags|=ot,dt.memoizedState=li(1|et,ct,ft,ut)}function vi(ot,et){return ti(8390656,8,ot,et)}function ji(ot,et){return ui(2048,8,ot,et)}function wi(ot,et){return ui(4,2,ot,et)}function xi(ot,et){return ui(4,4,ot,et)}function yi(ot,et){if(typeof et=="function")return ot=ot(),et(ot),function(){et(null)};if(et!=null)return ot=ot(),et.current=ot,function(){et.current=null}}function zi(ot,et,ct){return ct=ct!=null?ct.concat([ot]):null,ui(4,4,yi.bind(null,et,ot),ct)}function Ai(){}function Bi(ot,et){var ct=di();et=et===void 0?null:et;var ut=ct.memoizedState;return ut!==null&&et!==null&&Wh(et,ut[1])?ut[0]:(ct.memoizedState=[ot,et],ot)}function Ci(ot,et){var ct=di();et=et===void 0?null:et;var ut=ct.memoizedState;return ut!==null&&et!==null&&Wh(et,ut[1])?ut[0]:(ot=ot(),ct.memoizedState=[ot,et],ot)}function Di(ot,et,ct){return Rh&21?(He(ct,et)||(ct=yc(),N$3.lanes|=ct,hh|=ct,ot.baseState=!0),et):(ot.baseState&&(ot.baseState=!1,Ug=!0),ot.memoizedState=ct)}function Ei(ot,et){var ct=C$2;C$2=ct!==0&&4>ct?ct:4,ot(!0);var ut=Qh.transition;Qh.transition={};try{ot(!1),et()}finally{C$2=ct,Qh.transition=ut}}function Fi(){return di().memoizedState}function Gi(ot,et,ct){var ut=lh(ot);if(ct={lane:ut,action:ct,hasEagerState:!1,eagerState:null,next:null},Hi(ot))Ii(et,ct);else if(ct=Yg(ot,et,ct,ut),ct!==null){var dt=L$2();mh(ct,ot,ut,dt),Ji(ct,et,ut)}}function ri(ot,et,ct){var ut=lh(ot),dt={lane:ut,action:ct,hasEagerState:!1,eagerState:null,next:null};if(Hi(ot))Ii(et,dt);else{var ft=ot.alternate;if(ot.lanes===0&&(ft===null||ft.lanes===0)&&(ft=et.lastRenderedReducer,ft!==null))try{var zt=et.lastRenderedState,Dt=ft(zt,ct);if(dt.hasEagerState=!0,dt.eagerState=Dt,He(Dt,zt)){var St=et.interleaved;St===null?(dt.next=dt,Xg(et)):(dt.next=St.next,St.next=dt),et.interleaved=dt;return}}catch{}finally{}ct=Yg(ot,et,dt,ut),ct!==null&&(dt=L$2(),mh(ct,ot,ut,dt),Ji(ct,et,ut))}}function Hi(ot){var et=ot.alternate;return ot===N$3||et!==null&&et===N$3}function Ii(ot,et){Th=Sh=!0;var ct=ot.pending;ct===null?et.next=et:(et.next=ct.next,ct.next=et),ot.pending=et}function Ji(ot,et,ct){if(ct&4194240){var ut=et.lanes;ut&=ot.pendingLanes,ct|=ut,et.lanes=ct,Cc(ot,ct)}}var ai={readContext:Vg,useCallback:Q$3,useContext:Q$3,useEffect:Q$3,useImperativeHandle:Q$3,useInsertionEffect:Q$3,useLayoutEffect:Q$3,useMemo:Q$3,useReducer:Q$3,useRef:Q$3,useState:Q$3,useDebugValue:Q$3,useDeferredValue:Q$3,useTransition:Q$3,useMutableSource:Q$3,useSyncExternalStore:Q$3,useId:Q$3,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(ot,et){return ci().memoizedState=[ot,et===void 0?null:et],ot},useContext:Vg,useEffect:vi,useImperativeHandle:function(ot,et,ct){return ct=ct!=null?ct.concat([ot]):null,ti(4194308,4,yi.bind(null,et,ot),ct)},useLayoutEffect:function(ot,et){return ti(4194308,4,ot,et)},useInsertionEffect:function(ot,et){return ti(4,2,ot,et)},useMemo:function(ot,et){var ct=ci();return et=et===void 0?null:et,ot=ot(),ct.memoizedState=[ot,et],ot},useReducer:function(ot,et,ct){var ut=ci();return et=ct!==void 0?ct(et):et,ut.memoizedState=ut.baseState=et,ot={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ot,lastRenderedState:et},ut.queue=ot,ot=ot.dispatch=Gi.bind(null,N$3,ot),[ut.memoizedState,ot]},useRef:function(ot){var et=ci();return ot={current:ot},et.memoizedState=ot},useState:qi,useDebugValue:Ai,useDeferredValue:function(ot){return ci().memoizedState=ot},useTransition:function(){var ot=qi(!1),et=ot[0];return ot=Ei.bind(null,ot[1]),ci().memoizedState=ot,[et,ot]},useMutableSource:function(){},useSyncExternalStore:function(ot,et,ct){var ut=N$3,dt=ci();if(I$2){if(ct===void 0)throw Error(p$4(407));ct=ct()}else{if(ct=et(),R$2===null)throw Error(p$4(349));Rh&30||ni(ut,et,ct)}dt.memoizedState=ct;var ft={value:ct,getSnapshot:et};return dt.queue=ft,vi(ki.bind(null,ut,ft,ot),[ot]),ut.flags|=2048,li(9,mi.bind(null,ut,ft,ct,et),void 0,null),ct},useId:function(){var ot=ci(),et=R$2.identifierPrefix;if(I$2){var ct=sg,ut=rg;ct=(ut&~(1<<32-oc(ut)-1)).toString(32)+ct,et=":"+et+"R"+ct,ct=Uh++,0<ct&&(et+="H"+ct.toString(32)),et+=":"}else ct=Vh++,et=":"+et+"r"+ct.toString(32)+":";return ot.memoizedState=et},unstable_isNewReconciler:!1},Zh={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:fi,useRef:si,useState:function(){return fi(ei)},useDebugValue:Ai,useDeferredValue:function(ot){var et=di();return Di(et,O$1.memoizedState,ot)},useTransition:function(){var ot=fi(ei)[0],et=di().memoizedState;return[ot,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1},$h={readContext:Vg,useCallback:Bi,useContext:Vg,useEffect:ji,useImperativeHandle:zi,useInsertionEffect:wi,useLayoutEffect:xi,useMemo:Ci,useReducer:gi,useRef:si,useState:function(){return gi(ei)},useDebugValue:Ai,useDeferredValue:function(ot){var et=di();return O$1===null?et.memoizedState=ot:Di(et,O$1.memoizedState,ot)},useTransition:function(){var ot=gi(ei)[0],et=di().memoizedState;return[ot,et]},useMutableSource:hi,useSyncExternalStore:ii,useId:Fi,unstable_isNewReconciler:!1};function Ki(ot,et){try{var ct="",ut=et;do ct+=Pa(ut),ut=ut.return;while(ut);var dt=ct}catch(ft){dt=`
|
|
8
8
|
Error generating stack: `+ft.message+`
|
|
9
|
-
`+ft.stack}return{value:ot,source:et,stack:dt,digest:null}}function Li(ot,et,ct){return{value:ot,source:null,stack:ct??null,digest:et??null}}function Mi(ot,et){try{console.error(et.value)}catch(ct){setTimeout(function(){throw ct})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3,ct.payload={element:null};var ut=et.value;return ct.callback=function(){Pi||(Pi=!0,Qi=ut),Mi(ot,et)},ct}function Ri(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3;var ut=ot.type.getDerivedStateFromError;if(typeof ut=="function"){var dt=et.value;ct.payload=function(){return ut(dt)},ct.callback=function(){Mi(ot,et)}}var ft=ot.stateNode;return ft!==null&&typeof ft.componentDidCatch=="function"&&(ct.callback=function(){Mi(ot,et),typeof ut!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var zt=et.stack;this.componentDidCatch(et.value,{componentStack:zt!==null?zt:""})}),ct}function Ti(ot,et,ct){var ut=ot.pingCache;if(ut===null){ut=ot.pingCache=new Ni;var dt=new Set;ut.set(et,dt)}else dt=ut.get(et),dt===void 0&&(dt=new Set,ut.set(et,dt));dt.has(ct)||(dt.add(ct),ot=Ui.bind(null,ot,et,ct),et.then(ot,ot))}function Vi(ot){do{var et;if((et=ot.tag===13)&&(et=ot.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return ot;ot=ot.return}while(ot!==null);return null}function Wi(ot,et,ct,ut,dt){return ot.mode&1?(ot.flags|=65536,ot.lanes=dt,ot):(ot===et?ot.flags|=65536:(ot.flags|=128,ct.flags|=131072,ct.flags&=-52805,ct.tag===1&&(ct.alternate===null?ct.tag=17:(et=ch$1(-1,1),et.tag=2,dh(ct,et,1))),ct.lanes|=1),ot)}var Xi=ua$1.ReactCurrentOwner,Ug=!1;function Yi(ot,et,ct,ut){et.child=ot===null?Ch(et,null,ct,ut):Bh(et,ot.child,ct,ut)}function Zi(ot,et,ct,ut,dt){ct=ct.render;var ft=et.ref;return Tg(et,dt),ut=Xh(ot,et,ct,ut,ft,dt),ct=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ct&&vg(et),et.flags|=1,Yi(ot,et,ut,dt),et.child)}function aj(ot,et,ct,ut,dt){if(ot===null){var ft=ct.type;return typeof ft=="function"&&!bj(ft)&&ft.defaultProps===void 0&&ct.compare===null&&ct.defaultProps===void 0?(et.tag=15,et.type=ft,cj(ot,et,ft,ut,dt)):(ot=yh(ct.type,null,ut,et,et.mode,dt),ot.ref=et.ref,ot.return=et,et.child=ot)}if(ft=ot.child,!(ot.lanes&dt)){var zt=ft.memoizedProps;if(ct=ct.compare,ct=ct!==null?ct:Ie,ct(zt,ut)&&ot.ref===et.ref)return $i(ot,et,dt)}return et.flags|=1,ot=wh(ft,ut),ot.ref=et.ref,ot.return=et,et.child=ot}function cj(ot,et,ct,ut,dt){if(ot!==null){var ft=ot.memoizedProps;if(Ie(ft,ut)&&ot.ref===et.ref)if(Ug=!1,et.pendingProps=ut=ft,(ot.lanes&dt)!==0)ot.flags&131072&&(Ug=!0);else return et.lanes=ot.lanes,$i(ot,et,dt)}return dj(ot,et,ct,ut,dt)}function ej(ot,et,ct){var ut=et.pendingProps,dt=ut.children,ft=ot!==null?ot.memoizedState:null;if(ut.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$3(fj,gj),gj|=ct;else{if(!(ct&1073741824))return ot=ft!==null?ft.baseLanes|ct:ct,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:ot,cachePool:null,transitions:null},et.updateQueue=null,G$3(fj,gj),gj|=ot,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut=ft!==null?ft.baseLanes:ct,G$3(fj,gj),gj|=ut}else ft!==null?(ut=ft.baseLanes|ct,et.memoizedState=null):ut=ct,G$3(fj,gj),gj|=ut;return Yi(ot,et,dt,ct),et.child}function hj(ot,et){var ct=et.ref;(ot===null&&ct!==null||ot!==null&&ot.ref!==ct)&&(et.flags|=512,et.flags|=2097152)}function dj(ot,et,ct,ut,dt){var ft=Zf(ct)?Xf:H$2.current;return ft=Yf(et,ft),Tg(et,dt),ct=Xh(ot,et,ct,ut,ft,dt),ut=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ut&&vg(et),et.flags|=1,Yi(ot,et,ct,dt),et.child)}function ij(ot,et,ct,ut,dt){if(Zf(ct)){var ft=!0;cg(et)}else ft=!1;if(Tg(et,dt),et.stateNode===null)jj(ot,et),ph(et,ct,ut),rh(et,ct,ut,dt),ut=!0;else if(ot===null){var zt=et.stateNode,Dt=et.memoizedProps;zt.props=Dt;var St=zt.context,Tt=ct.contextType;typeof Tt=="object"&&Tt!==null?Tt=Vg(Tt):(Tt=Zf(ct)?Xf:H$2.current,Tt=Yf(et,Tt));var Rt=ct.getDerivedStateFromProps,$t=typeof Rt=="function"||typeof zt.getSnapshotBeforeUpdate=="function";$t||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==ut||St!==Tt)&&qh(et,zt,ut,Tt),$g=!1;var kt=et.memoizedState;zt.state=kt,gh(et,ut,zt,dt),St=et.memoizedState,Dt!==ut||kt!==St||Wf.current||$g?(typeof Rt=="function"&&(kh(et,ct,Rt,ut),St=et.memoizedState),(Dt=$g||oh(et,ct,Dt,ut,kt,St,Tt))?($t||typeof zt.UNSAFE_componentWillMount!="function"&&typeof zt.componentWillMount!="function"||(typeof zt.componentWillMount=="function"&&zt.componentWillMount(),typeof zt.UNSAFE_componentWillMount=="function"&&zt.UNSAFE_componentWillMount()),typeof zt.componentDidMount=="function"&&(et.flags|=4194308)):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=ut,et.memoizedState=St),zt.props=ut,zt.state=St,zt.context=Tt,ut=Dt):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),ut=!1)}else{zt=et.stateNode,bh(ot,et),Dt=et.memoizedProps,Tt=et.type===et.elementType?Dt:Lg(et.type,Dt),zt.props=Tt,$t=et.pendingProps,kt=zt.context,St=ct.contextType,typeof St=="object"&&St!==null?St=Vg(St):(St=Zf(ct)?Xf:H$2.current,St=Yf(et,St));var Bt=ct.getDerivedStateFromProps;(Rt=typeof Bt=="function"||typeof zt.getSnapshotBeforeUpdate=="function")||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==$t||kt!==St)&&qh(et,zt,ut,St),$g=!1,kt=et.memoizedState,zt.state=kt,gh(et,ut,zt,dt);var Ft=et.memoizedState;Dt!==$t||kt!==Ft||Wf.current||$g?(typeof Bt=="function"&&(kh(et,ct,Bt,ut),Ft=et.memoizedState),(Tt=$g||oh(et,ct,Tt,ut,kt,Ft,St)||!1)?(Rt||typeof zt.UNSAFE_componentWillUpdate!="function"&&typeof zt.componentWillUpdate!="function"||(typeof zt.componentWillUpdate=="function"&&zt.componentWillUpdate(ut,Ft,St),typeof zt.UNSAFE_componentWillUpdate=="function"&&zt.UNSAFE_componentWillUpdate(ut,Ft,St)),typeof zt.componentDidUpdate=="function"&&(et.flags|=4),typeof zt.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),et.memoizedProps=ut,et.memoizedState=Ft),zt.props=ut,zt.state=Ft,zt.context=St,ut=Tt):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),ut=!1)}return kj(ot,et,ct,ut,ft,dt)}function kj(ot,et,ct,ut,dt,ft){hj(ot,et);var zt=(et.flags&128)!==0;if(!ut&&!zt)return dt&&dg(et,ct,!1),$i(ot,et,ft);ut=et.stateNode,Xi.current=et;var Dt=zt&&typeof ct.getDerivedStateFromError!="function"?null:ut.render();return et.flags|=1,ot!==null&&zt?(et.child=Bh(et,ot.child,null,ft),et.child=Bh(et,null,Dt,ft)):Yi(ot,et,Dt,ft),et.memoizedState=ut.state,dt&&dg(et,ct,!0),et.child}function lj(ot){var et=ot.stateNode;et.pendingContext?ag(ot,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(ot,et.context,!1),Ih(ot,et.containerInfo)}function mj(ot,et,ct,ut,dt){return Ig(),Jg(dt),et.flags|=256,Yi(ot,et,ct,ut),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(ot){return{baseLanes:ot,cachePool:null,transitions:null}}function pj(ot,et,ct){var ut=et.pendingProps,dt=M$2.current,ft=!1,zt=(et.flags&128)!==0,Dt;if((Dt=zt)||(Dt=ot!==null&&ot.memoizedState===null?!1:(dt&2)!==0),Dt?(ft=!0,et.flags&=-129):(ot===null||ot.memoizedState!==null)&&(dt|=1),G$3(M$2,dt&1),ot===null)return Eg(et),ot=et.memoizedState,ot!==null&&(ot=ot.dehydrated,ot!==null)?(et.mode&1?ot.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(zt=ut.children,ot=ut.fallback,ft?(ut=et.mode,ft=et.child,zt={mode:"hidden",children:zt},!(ut&1)&&ft!==null?(ft.childLanes=0,ft.pendingProps=zt):ft=qj(zt,ut,0,null),ot=Ah(ot,ut,ct,null),ft.return=et,ot.return=et,ft.sibling=ot,et.child=ft,et.child.memoizedState=oj(ct),et.memoizedState=nj,ot):rj(et,zt));if(dt=ot.memoizedState,dt!==null&&(Dt=dt.dehydrated,Dt!==null))return sj(ot,et,zt,ut,Dt,dt,ct);if(ft){ft=ut.fallback,zt=et.mode,dt=ot.child,Dt=dt.sibling;var St={mode:"hidden",children:ut.children};return!(zt&1)&&et.child!==dt?(ut=et.child,ut.childLanes=0,ut.pendingProps=St,et.deletions=null):(ut=wh(dt,St),ut.subtreeFlags=dt.subtreeFlags&14680064),Dt!==null?ft=wh(Dt,ft):(ft=Ah(ft,zt,ct,null),ft.flags|=2),ft.return=et,ut.return=et,ut.sibling=ft,et.child=ut,ut=ft,ft=et.child,zt=ot.child.memoizedState,zt=zt===null?oj(ct):{baseLanes:zt.baseLanes|ct,cachePool:null,transitions:zt.transitions},ft.memoizedState=zt,ft.childLanes=ot.childLanes&~ct,et.memoizedState=nj,ut}return ft=ot.child,ot=ft.sibling,ut=wh(ft,{mode:"visible",children:ut.children}),!(et.mode&1)&&(ut.lanes=ct),ut.return=et,ut.sibling=null,ot!==null&&(ct=et.deletions,ct===null?(et.deletions=[ot],et.flags|=16):ct.push(ot)),et.child=ut,et.memoizedState=null,ut}function rj(ot,et){return et=qj({mode:"visible",children:et},ot.mode,0,null),et.return=ot,ot.child=et}function tj(ot,et,ct,ut){return ut!==null&&Jg(ut),Bh(et,ot.child,null,ct),ot=rj(et,et.pendingProps.children),ot.flags|=2,et.memoizedState=null,ot}function sj(ot,et,ct,ut,dt,ft,zt){if(ct)return et.flags&256?(et.flags&=-257,ut=Li(Error(p$4(422))),tj(ot,et,zt,ut)):et.memoizedState!==null?(et.child=ot.child,et.flags|=128,null):(ft=ut.fallback,dt=et.mode,ut=qj({mode:"visible",children:ut.children},dt,0,null),ft=Ah(ft,dt,zt,null),ft.flags|=2,ut.return=et,ft.return=et,ut.sibling=ft,et.child=ut,et.mode&1&&Bh(et,ot.child,null,zt),et.child.memoizedState=oj(zt),et.memoizedState=nj,ft);if(!(et.mode&1))return tj(ot,et,zt,null);if(dt.data==="$!"){if(ut=dt.nextSibling&&dt.nextSibling.dataset,ut)var Dt=ut.dgst;return ut=Dt,ft=Error(p$4(419)),ut=Li(ft,ut,void 0),tj(ot,et,zt,ut)}if(Dt=(zt&ot.childLanes)!==0,Ug||Dt){if(ut=R$2,ut!==null){switch(zt&-zt){case 4:dt=2;break;case 16:dt=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:dt=32;break;case 536870912:dt=268435456;break;default:dt=0}dt=dt&(ut.suspendedLanes|zt)?0:dt,dt!==0&&dt!==ft.retryLane&&(ft.retryLane=dt,Zg(ot,dt),mh(ut,ot,dt,-1))}return uj(),ut=Li(Error(p$4(421))),tj(ot,et,zt,ut)}return dt.data==="$?"?(et.flags|=128,et.child=ot.child,et=vj.bind(null,ot),dt._reactRetry=et,null):(ot=ft.treeContext,yg=Lf(dt.nextSibling),xg=et,I$2=!0,zg=null,ot!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=ot.id,sg=ot.overflow,qg=et),et=rj(et,ut.children),et.flags|=4096,et)}function wj(ot,et,ct){ot.lanes|=et;var ut=ot.alternate;ut!==null&&(ut.lanes|=et),Sg(ot.return,et,ct)}function xj(ot,et,ct,ut,dt){var ft=ot.memoizedState;ft===null?ot.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:ut,tail:ct,tailMode:dt}:(ft.isBackwards=et,ft.rendering=null,ft.renderingStartTime=0,ft.last=ut,ft.tail=ct,ft.tailMode=dt)}function yj(ot,et,ct){var ut=et.pendingProps,dt=ut.revealOrder,ft=ut.tail;if(Yi(ot,et,ut.children,ct),ut=M$2.current,ut&2)ut=ut&1|2,et.flags|=128;else{if(ot!==null&&ot.flags&128)e:for(ot=et.child;ot!==null;){if(ot.tag===13)ot.memoizedState!==null&&wj(ot,ct,et);else if(ot.tag===19)wj(ot,ct,et);else if(ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===et)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===et)break e;ot=ot.return}ot.sibling.return=ot.return,ot=ot.sibling}ut&=1}if(G$3(M$2,ut),!(et.mode&1))et.memoizedState=null;else switch(dt){case"forwards":for(ct=et.child,dt=null;ct!==null;)ot=ct.alternate,ot!==null&&Mh(ot)===null&&(dt=ct),ct=ct.sibling;ct=dt,ct===null?(dt=et.child,et.child=null):(dt=ct.sibling,ct.sibling=null),xj(et,!1,dt,ct,ft);break;case"backwards":for(ct=null,dt=et.child,et.child=null;dt!==null;){if(ot=dt.alternate,ot!==null&&Mh(ot)===null){et.child=dt;break}ot=dt.sibling,dt.sibling=ct,ct=dt,dt=ot}xj(et,!0,ct,null,ft);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(ot,et){!(et.mode&1)&&ot!==null&&(ot.alternate=null,et.alternate=null,et.flags|=2)}function $i(ot,et,ct){if(ot!==null&&(et.dependencies=ot.dependencies),hh|=et.lanes,!(ct&et.childLanes))return null;if(ot!==null&&et.child!==ot.child)throw Error(p$4(153));if(et.child!==null){for(ot=et.child,ct=wh(ot,ot.pendingProps),et.child=ct,ct.return=et;ot.sibling!==null;)ot=ot.sibling,ct=ct.sibling=wh(ot,ot.pendingProps),ct.return=et;ct.sibling=null}return et.child}function zj(ot,et,ct){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var ut=et.type._context,dt=et.memoizedProps.value;G$3(Mg,ut._currentValue),ut._currentValue=dt;break;case 13:if(ut=et.memoizedState,ut!==null)return ut.dehydrated!==null?(G$3(M$2,M$2.current&1),et.flags|=128,null):ct&et.child.childLanes?pj(ot,et,ct):(G$3(M$2,M$2.current&1),ot=$i(ot,et,ct),ot!==null?ot.sibling:null);G$3(M$2,M$2.current&1);break;case 19:if(ut=(ct&et.childLanes)!==0,ot.flags&128){if(ut)return yj(ot,et,ct);et.flags|=128}if(dt=et.memoizedState,dt!==null&&(dt.rendering=null,dt.tail=null,dt.lastEffect=null),G$3(M$2,M$2.current),ut)break;return null;case 22:case 23:return et.lanes=0,ej(ot,et,ct)}return $i(ot,et,ct)}var Aj,Bj,Cj,Dj;Aj=function(ot,et){for(var ct=et.child;ct!==null;){if(ct.tag===5||ct.tag===6)ot.appendChild(ct.stateNode);else if(ct.tag!==4&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===et)break;for(;ct.sibling===null;){if(ct.return===null||ct.return===et)return;ct=ct.return}ct.sibling.return=ct.return,ct=ct.sibling}},Bj=function(){},Cj=function(ot,et,ct,ut){var dt=ot.memoizedProps;if(dt!==ut){ot=et.stateNode,Hh(Eh.current);var ft=null;switch(ct){case"input":dt=Ya(ot,dt),ut=Ya(ot,ut),ft=[];break;case"select":dt=A$2({},dt,{value:void 0}),ut=A$2({},ut,{value:void 0}),ft=[];break;case"textarea":dt=gb$1(ot,dt),ut=gb$1(ot,ut),ft=[];break;default:typeof dt.onClick!="function"&&typeof ut.onClick=="function"&&(ot.onclick=Bf)}ub(ct,ut);var zt;ct=null;for(Tt in dt)if(!ut.hasOwnProperty(Tt)&&dt.hasOwnProperty(Tt)&&dt[Tt]!=null)if(Tt==="style"){var Dt=dt[Tt];for(zt in Dt)Dt.hasOwnProperty(zt)&&(ct||(ct={}),ct[zt]="")}else Tt!=="dangerouslySetInnerHTML"&&Tt!=="children"&&Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&Tt!=="autoFocus"&&(ea.hasOwnProperty(Tt)?ft||(ft=[]):(ft=ft||[]).push(Tt,null));for(Tt in ut){var St=ut[Tt];if(Dt=dt==null?void 0:dt[Tt],ut.hasOwnProperty(Tt)&&St!==Dt&&(St!=null||Dt!=null))if(Tt==="style")if(Dt){for(zt in Dt)!Dt.hasOwnProperty(zt)||St&&St.hasOwnProperty(zt)||(ct||(ct={}),ct[zt]="");for(zt in St)St.hasOwnProperty(zt)&&Dt[zt]!==St[zt]&&(ct||(ct={}),ct[zt]=St[zt])}else ct||(ft||(ft=[]),ft.push(Tt,ct)),ct=St;else Tt==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,Dt=Dt?Dt.__html:void 0,St!=null&&Dt!==St&&(ft=ft||[]).push(Tt,St)):Tt==="children"?typeof St!="string"&&typeof St!="number"||(ft=ft||[]).push(Tt,""+St):Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(Tt)?(St!=null&&Tt==="onScroll"&&D$3("scroll",ot),ft||Dt===St||(ft=[])):(ft=ft||[]).push(Tt,St))}ct&&(ft=ft||[]).push("style",ct);var Tt=ft;(et.updateQueue=Tt)&&(et.flags|=4)}},Dj=function(ot,et,ct,ut){ct!==ut&&(et.flags|=4)};function Ej(ot,et){if(!I$2)switch(ot.tailMode){case"hidden":et=ot.tail;for(var ct=null;et!==null;)et.alternate!==null&&(ct=et),et=et.sibling;ct===null?ot.tail=null:ct.sibling=null;break;case"collapsed":ct=ot.tail;for(var ut=null;ct!==null;)ct.alternate!==null&&(ut=ct),ct=ct.sibling;ut===null?et||ot.tail===null?ot.tail=null:ot.tail.sibling=null:ut.sibling=null}}function S$3(ot){var et=ot.alternate!==null&&ot.alternate.child===ot.child,ct=0,ut=0;if(et)for(var dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags&14680064,ut|=dt.flags&14680064,dt.return=ot,dt=dt.sibling;else for(dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags,ut|=dt.flags,dt.return=ot,dt=dt.sibling;return ot.subtreeFlags|=ut,ot.childLanes=ct,et}function Fj(ot,et,ct){var ut=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$3(et),null;case 1:return Zf(et.type)&&$f(),S$3(et),null;case 3:return ut=et.stateNode,Jh(),E$2(Wf),E$2(H$2),Oh(),ut.pendingContext&&(ut.context=ut.pendingContext,ut.pendingContext=null),(ot===null||ot.child===null)&&(Gg(et)?et.flags|=4:ot===null||ot.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(ot,et),S$3(et),null;case 5:Lh(et);var dt=Hh(Gh.current);if(ct=et.type,ot!==null&&et.stateNode!=null)Cj(ot,et,ct,ut,dt),ot.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!ut){if(et.stateNode===null)throw Error(p$4(166));return S$3(et),null}if(ot=Hh(Eh.current),Gg(et)){ut=et.stateNode,ct=et.type;var ft=et.memoizedProps;switch(ut[Of]=et,ut[Pf]=ft,ot=(et.mode&1)!==0,ct){case"dialog":D$3("cancel",ut),D$3("close",ut);break;case"iframe":case"object":case"embed":D$3("load",ut);break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ut);break;case"source":D$3("error",ut);break;case"img":case"image":case"link":D$3("error",ut),D$3("load",ut);break;case"details":D$3("toggle",ut);break;case"input":Za(ut,ft),D$3("invalid",ut);break;case"select":ut._wrapperState={wasMultiple:!!ft.multiple},D$3("invalid",ut);break;case"textarea":hb(ut,ft),D$3("invalid",ut)}ub(ct,ft),dt=null;for(var zt in ft)if(ft.hasOwnProperty(zt)){var Dt=ft[zt];zt==="children"?typeof Dt=="string"?ut.textContent!==Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",Dt]):typeof Dt=="number"&&ut.textContent!==""+Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",""+Dt]):ea.hasOwnProperty(zt)&&Dt!=null&&zt==="onScroll"&&D$3("scroll",ut)}switch(ct){case"input":Va(ut),db(ut,ft,!0);break;case"textarea":Va(ut),jb(ut);break;case"select":case"option":break;default:typeof ft.onClick=="function"&&(ut.onclick=Bf)}ut=dt,et.updateQueue=ut,ut!==null&&(et.flags|=4)}else{zt=dt.nodeType===9?dt:dt.ownerDocument,ot==="http://www.w3.org/1999/xhtml"&&(ot=kb(ct)),ot==="http://www.w3.org/1999/xhtml"?ct==="script"?(ot=zt.createElement("div"),ot.innerHTML="<script><\/script>",ot=ot.removeChild(ot.firstChild)):typeof ut.is=="string"?ot=zt.createElement(ct,{is:ut.is}):(ot=zt.createElement(ct),ct==="select"&&(zt=ot,ut.multiple?zt.multiple=!0:ut.size&&(zt.size=ut.size))):ot=zt.createElementNS(ot,ct),ot[Of]=et,ot[Pf]=ut,Aj(ot,et,!1,!1),et.stateNode=ot;e:{switch(zt=vb(ct,ut),ct){case"dialog":D$3("cancel",ot),D$3("close",ot),dt=ut;break;case"iframe":case"object":case"embed":D$3("load",ot),dt=ut;break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ot);dt=ut;break;case"source":D$3("error",ot),dt=ut;break;case"img":case"image":case"link":D$3("error",ot),D$3("load",ot),dt=ut;break;case"details":D$3("toggle",ot),dt=ut;break;case"input":Za(ot,ut),dt=Ya(ot,ut),D$3("invalid",ot);break;case"option":dt=ut;break;case"select":ot._wrapperState={wasMultiple:!!ut.multiple},dt=A$2({},ut,{value:void 0}),D$3("invalid",ot);break;case"textarea":hb(ot,ut),dt=gb$1(ot,ut),D$3("invalid",ot);break;default:dt=ut}ub(ct,dt),Dt=dt;for(ft in Dt)if(Dt.hasOwnProperty(ft)){var St=Dt[ft];ft==="style"?sb(ot,St):ft==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,St!=null&&nb(ot,St)):ft==="children"?typeof St=="string"?(ct!=="textarea"||St!=="")&&ob(ot,St):typeof St=="number"&&ob(ot,""+St):ft!=="suppressContentEditableWarning"&&ft!=="suppressHydrationWarning"&&ft!=="autoFocus"&&(ea.hasOwnProperty(ft)?St!=null&&ft==="onScroll"&&D$3("scroll",ot):St!=null&&ta(ot,ft,St,zt))}switch(ct){case"input":Va(ot),db(ot,ut,!1);break;case"textarea":Va(ot),jb(ot);break;case"option":ut.value!=null&&ot.setAttribute("value",""+Sa(ut.value));break;case"select":ot.multiple=!!ut.multiple,ft=ut.value,ft!=null?fb(ot,!!ut.multiple,ft,!1):ut.defaultValue!=null&&fb(ot,!!ut.multiple,ut.defaultValue,!0);break;default:typeof dt.onClick=="function"&&(ot.onclick=Bf)}switch(ct){case"button":case"input":case"select":case"textarea":ut=!!ut.autoFocus;break e;case"img":ut=!0;break e;default:ut=!1}}ut&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$3(et),null;case 6:if(ot&&et.stateNode!=null)Dj(ot,et,ot.memoizedProps,ut);else{if(typeof ut!="string"&&et.stateNode===null)throw Error(p$4(166));if(ct=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(ut=et.stateNode,ct=et.memoizedProps,ut[Of]=et,(ft=ut.nodeValue!==ct)&&(ot=xg,ot!==null))switch(ot.tag){case 3:Af(ut.nodeValue,ct,(ot.mode&1)!==0);break;case 5:ot.memoizedProps.suppressHydrationWarning!==!0&&Af(ut.nodeValue,ct,(ot.mode&1)!==0)}ft&&(et.flags|=4)}else ut=(ct.nodeType===9?ct:ct.ownerDocument).createTextNode(ut),ut[Of]=et,et.stateNode=ut}return S$3(et),null;case 13:if(E$2(M$2),ut=et.memoizedState,ot===null||ot.memoizedState!==null&&ot.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,ft=!1;else if(ft=Gg(et),ut!==null&&ut.dehydrated!==null){if(ot===null){if(!ft)throw Error(p$4(318));if(ft=et.memoizedState,ft=ft!==null?ft.dehydrated:null,!ft)throw Error(p$4(317));ft[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$3(et),ft=!1}else zg!==null&&(Gj(zg),zg=null),ft=!0;if(!ft)return et.flags&65536?et:null}return et.flags&128?(et.lanes=ct,et):(ut=ut!==null,ut!==(ot!==null&&ot.memoizedState!==null)&&ut&&(et.child.flags|=8192,et.mode&1&&(ot===null||M$2.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$3(et),null);case 4:return Jh(),Bj(ot,et),ot===null&&sf(et.stateNode.containerInfo),S$3(et),null;case 10:return Rg(et.type._context),S$3(et),null;case 17:return Zf(et.type)&&$f(),S$3(et),null;case 19:if(E$2(M$2),ft=et.memoizedState,ft===null)return S$3(et),null;if(ut=(et.flags&128)!==0,zt=ft.rendering,zt===null)if(ut)Ej(ft,!1);else{if(T$2!==0||ot!==null&&ot.flags&128)for(ot=et.child;ot!==null;){if(zt=Mh(ot),zt!==null){for(et.flags|=128,Ej(ft,!1),ut=zt.updateQueue,ut!==null&&(et.updateQueue=ut,et.flags|=4),et.subtreeFlags=0,ut=ct,ct=et.child;ct!==null;)ft=ct,ot=ut,ft.flags&=14680066,zt=ft.alternate,zt===null?(ft.childLanes=0,ft.lanes=ot,ft.child=null,ft.subtreeFlags=0,ft.memoizedProps=null,ft.memoizedState=null,ft.updateQueue=null,ft.dependencies=null,ft.stateNode=null):(ft.childLanes=zt.childLanes,ft.lanes=zt.lanes,ft.child=zt.child,ft.subtreeFlags=0,ft.deletions=null,ft.memoizedProps=zt.memoizedProps,ft.memoizedState=zt.memoizedState,ft.updateQueue=zt.updateQueue,ft.type=zt.type,ot=zt.dependencies,ft.dependencies=ot===null?null:{lanes:ot.lanes,firstContext:ot.firstContext}),ct=ct.sibling;return G$3(M$2,M$2.current&1|2),et.child}ot=ot.sibling}ft.tail!==null&&B$3()>Hj&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304)}else{if(!ut)if(ot=Mh(zt),ot!==null){if(et.flags|=128,ut=!0,ct=ot.updateQueue,ct!==null&&(et.updateQueue=ct,et.flags|=4),Ej(ft,!0),ft.tail===null&&ft.tailMode==="hidden"&&!zt.alternate&&!I$2)return S$3(et),null}else 2*B$3()-ft.renderingStartTime>Hj&&ct!==1073741824&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304);ft.isBackwards?(zt.sibling=et.child,et.child=zt):(ct=ft.last,ct!==null?ct.sibling=zt:et.child=zt,ft.last=zt)}return ft.tail!==null?(et=ft.tail,ft.rendering=et,ft.tail=et.sibling,ft.renderingStartTime=B$3(),et.sibling=null,ct=M$2.current,G$3(M$2,ut?ct&1|2:ct&1),et):(S$3(et),null);case 22:case 23:return Ij(),ut=et.memoizedState!==null,ot!==null&&ot.memoizedState!==null!==ut&&(et.flags|=8192),ut&&et.mode&1?gj&1073741824&&(S$3(et),et.subtreeFlags&6&&(et.flags|=8192)):S$3(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj(ot,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),ot=et.flags,ot&65536&&!(ot&128)?(et.flags=ot&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$2(M$2),ot=et.memoizedState,ot!==null&&ot.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(ot,et){var ct=ot.ref;if(ct!==null)if(typeof ct=="function")try{ct(null)}catch(ut){W$3(ot,et,ut)}else ct.current=null}function Nj(ot,et,ct){try{ct()}catch(ut){W$3(ot,et,ut)}}var Oj=!1;function Pj(ot,et){if(Cf=dd,ot=Me(),Ne(ot)){if("selectionStart"in ot)var ct={start:ot.selectionStart,end:ot.selectionEnd};else e:{ct=(ct=ot.ownerDocument)&&ct.defaultView||window;var ut=ct.getSelection&&ct.getSelection();if(ut&&ut.rangeCount!==0){ct=ut.anchorNode;var dt=ut.anchorOffset,ft=ut.focusNode;ut=ut.focusOffset;try{ct.nodeType,ft.nodeType}catch{ct=null;break e}var zt=0,Dt=-1,St=-1,Tt=0,Rt=0,$t=ot,kt=null;t:for(;;){for(var Bt;$t!==ct||dt!==0&&$t.nodeType!==3||(Dt=zt+dt),$t!==ft||ut!==0&&$t.nodeType!==3||(St=zt+ut),$t.nodeType===3&&(zt+=$t.nodeValue.length),(Bt=$t.firstChild)!==null;)kt=$t,$t=Bt;for(;;){if($t===ot)break t;if(kt===ct&&++Tt===dt&&(Dt=zt),kt===ft&&++Rt===ut&&(St=zt),(Bt=$t.nextSibling)!==null)break;$t=kt,kt=$t.parentNode}$t=Bt}ct=Dt===-1||St===-1?null:{start:Dt,end:St}}else ct=null}ct=ct||{start:0,end:0}}else ct=null;for(Df={focusedElem:ot,selectionRange:ct},dd=!1,V$2=et;V$2!==null;)if(et=V$2,ot=et.child,(et.subtreeFlags&1028)!==0&&ot!==null)ot.return=et,V$2=ot;else for(;V$2!==null;){et=V$2;try{var Ft=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(Ft!==null){var jt=Ft.memoizedProps,Kt=Ft.memoizedState,Yt=et.stateNode,Ut=Yt.getSnapshotBeforeUpdate(et.elementType===et.type?jt:Lg(et.type,jt),Kt);Yt.__reactInternalSnapshotBeforeUpdate=Ut}break;case 3:var Jt=et.stateNode.containerInfo;Jt.nodeType===1?Jt.textContent="":Jt.nodeType===9&&Jt.documentElement&&Jt.removeChild(Jt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch(Ht){W$3(et,et.return,Ht)}if(ot=et.sibling,ot!==null){ot.return=et.return,V$2=ot;break}V$2=et.return}return Ft=Oj,Oj=!1,Ft}function Qj(ot,et,ct){var ut=et.updateQueue;if(ut=ut!==null?ut.lastEffect:null,ut!==null){var dt=ut=ut.next;do{if((dt.tag&ot)===ot){var ft=dt.destroy;dt.destroy=void 0,ft!==void 0&&Nj(et,ct,ft)}dt=dt.next}while(dt!==ut)}}function Rj(ot,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var ct=et=et.next;do{if((ct.tag&ot)===ot){var ut=ct.create;ct.destroy=ut()}ct=ct.next}while(ct!==et)}}function Sj(ot){var et=ot.ref;if(et!==null){var ct=ot.stateNode;switch(ot.tag){case 5:ot=ct;break;default:ot=ct}typeof et=="function"?et(ot):et.current=ot}}function Tj(ot){var et=ot.alternate;et!==null&&(ot.alternate=null,Tj(et)),ot.child=null,ot.deletions=null,ot.sibling=null,ot.tag===5&&(et=ot.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),ot.stateNode=null,ot.return=null,ot.dependencies=null,ot.memoizedProps=null,ot.memoizedState=null,ot.pendingProps=null,ot.stateNode=null,ot.updateQueue=null}function Uj(ot){return ot.tag===5||ot.tag===3||ot.tag===4}function Vj(ot){e:for(;;){for(;ot.sibling===null;){if(ot.return===null||Uj(ot.return))return null;ot=ot.return}for(ot.sibling.return=ot.return,ot=ot.sibling;ot.tag!==5&&ot.tag!==6&&ot.tag!==18;){if(ot.flags&2||ot.child===null||ot.tag===4)continue e;ot.child.return=ot,ot=ot.child}if(!(ot.flags&2))return ot.stateNode}}function Wj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.nodeType===8?ct.parentNode.insertBefore(ot,et):ct.insertBefore(ot,et):(ct.nodeType===8?(et=ct.parentNode,et.insertBefore(ot,ct)):(et=ct,et.appendChild(ot)),ct=ct._reactRootContainer,ct!=null||et.onclick!==null||(et.onclick=Bf));else if(ut!==4&&(ot=ot.child,ot!==null))for(Wj(ot,et,ct),ot=ot.sibling;ot!==null;)Wj(ot,et,ct),ot=ot.sibling}function Xj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.insertBefore(ot,et):ct.appendChild(ot);else if(ut!==4&&(ot=ot.child,ot!==null))for(Xj(ot,et,ct),ot=ot.sibling;ot!==null;)Xj(ot,et,ct),ot=ot.sibling}var X$3=null,Yj=!1;function Zj(ot,et,ct){for(ct=ct.child;ct!==null;)ak(ot,et,ct),ct=ct.sibling}function ak(ot,et,ct){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ct)}catch{}switch(ct.tag){case 5:U$2||Mj(ct,et);case 6:var ut=X$3,dt=Yj;X$3=null,Zj(ot,et,ct),X$3=ut,Yj=dt,X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?ot.parentNode.removeChild(ct):ot.removeChild(ct)):X$3.removeChild(ct.stateNode));break;case 18:X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?Kf(ot.parentNode,ct):ot.nodeType===1&&Kf(ot,ct),bd(ot)):Kf(X$3,ct.stateNode));break;case 4:ut=X$3,dt=Yj,X$3=ct.stateNode.containerInfo,Yj=!0,Zj(ot,et,ct),X$3=ut,Yj=dt;break;case 0:case 11:case 14:case 15:if(!U$2&&(ut=ct.updateQueue,ut!==null&&(ut=ut.lastEffect,ut!==null))){dt=ut=ut.next;do{var ft=dt,zt=ft.destroy;ft=ft.tag,zt!==void 0&&(ft&2||ft&4)&&Nj(ct,et,zt),dt=dt.next}while(dt!==ut)}Zj(ot,et,ct);break;case 1:if(!U$2&&(Mj(ct,et),ut=ct.stateNode,typeof ut.componentWillUnmount=="function"))try{ut.props=ct.memoizedProps,ut.state=ct.memoizedState,ut.componentWillUnmount()}catch(Dt){W$3(ct,et,Dt)}Zj(ot,et,ct);break;case 21:Zj(ot,et,ct);break;case 22:ct.mode&1?(U$2=(ut=U$2)||ct.memoizedState!==null,Zj(ot,et,ct),U$2=ut):Zj(ot,et,ct);break;default:Zj(ot,et,ct)}}function bk(ot){var et=ot.updateQueue;if(et!==null){ot.updateQueue=null;var ct=ot.stateNode;ct===null&&(ct=ot.stateNode=new Lj),et.forEach(function(ut){var dt=ck.bind(null,ot,ut);ct.has(ut)||(ct.add(ut),ut.then(dt,dt))})}}function dk(ot,et){var ct=et.deletions;if(ct!==null)for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];try{var ft=ot,zt=et,Dt=zt;e:for(;Dt!==null;){switch(Dt.tag){case 5:X$3=Dt.stateNode,Yj=!1;break e;case 3:X$3=Dt.stateNode.containerInfo,Yj=!0;break e;case 4:X$3=Dt.stateNode.containerInfo,Yj=!0;break e}Dt=Dt.return}if(X$3===null)throw Error(p$4(160));ak(ft,zt,dt),X$3=null,Yj=!1;var St=dt.alternate;St!==null&&(St.return=null),dt.return=null}catch(Tt){W$3(dt,et,Tt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,ot),et=et.sibling}function ek(ot,et){var ct=ot.alternate,ut=ot.flags;switch(ot.tag){case 0:case 11:case 14:case 15:if(dk(et,ot),fk(ot),ut&4){try{Qj(3,ot,ot.return),Rj(3,ot)}catch(jt){W$3(ot,ot.return,jt)}try{Qj(5,ot,ot.return)}catch(jt){W$3(ot,ot.return,jt)}}break;case 1:dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return);break;case 5:if(dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return),ot.flags&32){var dt=ot.stateNode;try{ob(dt,"")}catch(jt){W$3(ot,ot.return,jt)}}if(ut&4&&(dt=ot.stateNode,dt!=null)){var ft=ot.memoizedProps,zt=ct!==null?ct.memoizedProps:ft,Dt=ot.type,St=ot.updateQueue;if(ot.updateQueue=null,St!==null)try{Dt==="input"&&ft.type==="radio"&&ft.name!=null&&ab$1(dt,ft),vb(Dt,zt);var Tt=vb(Dt,ft);for(zt=0;zt<St.length;zt+=2){var Rt=St[zt],$t=St[zt+1];Rt==="style"?sb(dt,$t):Rt==="dangerouslySetInnerHTML"?nb(dt,$t):Rt==="children"?ob(dt,$t):ta(dt,Rt,$t,Tt)}switch(Dt){case"input":bb(dt,ft);break;case"textarea":ib(dt,ft);break;case"select":var kt=dt._wrapperState.wasMultiple;dt._wrapperState.wasMultiple=!!ft.multiple;var Bt=ft.value;Bt!=null?fb(dt,!!ft.multiple,Bt,!1):kt!==!!ft.multiple&&(ft.defaultValue!=null?fb(dt,!!ft.multiple,ft.defaultValue,!0):fb(dt,!!ft.multiple,ft.multiple?[]:"",!1))}dt[Pf]=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 6:if(dk(et,ot),fk(ot),ut&4){if(ot.stateNode===null)throw Error(p$4(162));dt=ot.stateNode,ft=ot.memoizedProps;try{dt.nodeValue=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 3:if(dk(et,ot),fk(ot),ut&4&&ct!==null&&ct.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(jt){W$3(ot,ot.return,jt)}break;case 4:dk(et,ot),fk(ot);break;case 13:dk(et,ot),fk(ot),dt=ot.child,dt.flags&8192&&(ft=dt.memoizedState!==null,dt.stateNode.isHidden=ft,!ft||dt.alternate!==null&&dt.alternate.memoizedState!==null||(gk=B$3())),ut&4&&bk(ot);break;case 22:if(Rt=ct!==null&&ct.memoizedState!==null,ot.mode&1?(U$2=(Tt=U$2)||Rt,dk(et,ot),U$2=Tt):dk(et,ot),fk(ot),ut&8192){if(Tt=ot.memoizedState!==null,(ot.stateNode.isHidden=Tt)&&!Rt&&ot.mode&1)for(V$2=ot,Rt=ot.child;Rt!==null;){for($t=V$2=Rt;V$2!==null;){switch(kt=V$2,Bt=kt.child,kt.tag){case 0:case 11:case 14:case 15:Qj(4,kt,kt.return);break;case 1:Mj(kt,kt.return);var Ft=kt.stateNode;if(typeof Ft.componentWillUnmount=="function"){ut=kt,ct=kt.return;try{et=ut,Ft.props=et.memoizedProps,Ft.state=et.memoizedState,Ft.componentWillUnmount()}catch(jt){W$3(ut,ct,jt)}}break;case 5:Mj(kt,kt.return);break;case 22:if(kt.memoizedState!==null){hk($t);continue}}Bt!==null?(Bt.return=kt,V$2=Bt):hk($t)}Rt=Rt.sibling}e:for(Rt=null,$t=ot;;){if($t.tag===5){if(Rt===null){Rt=$t;try{dt=$t.stateNode,Tt?(ft=dt.style,typeof ft.setProperty=="function"?ft.setProperty("display","none","important"):ft.display="none"):(Dt=$t.stateNode,St=$t.memoizedProps.style,zt=St!=null&&St.hasOwnProperty("display")?St.display:null,Dt.style.display=rb("display",zt))}catch(jt){W$3(ot,ot.return,jt)}}}else if($t.tag===6){if(Rt===null)try{$t.stateNode.nodeValue=Tt?"":$t.memoizedProps}catch(jt){W$3(ot,ot.return,jt)}}else if(($t.tag!==22&&$t.tag!==23||$t.memoizedState===null||$t===ot)&&$t.child!==null){$t.child.return=$t,$t=$t.child;continue}if($t===ot)break e;for(;$t.sibling===null;){if($t.return===null||$t.return===ot)break e;Rt===$t&&(Rt=null),$t=$t.return}Rt===$t&&(Rt=null),$t.sibling.return=$t.return,$t=$t.sibling}}break;case 19:dk(et,ot),fk(ot),ut&4&&bk(ot);break;case 21:break;default:dk(et,ot),fk(ot)}}function fk(ot){var et=ot.flags;if(et&2){try{e:{for(var ct=ot.return;ct!==null;){if(Uj(ct)){var ut=ct;break e}ct=ct.return}throw Error(p$4(160))}switch(ut.tag){case 5:var dt=ut.stateNode;ut.flags&32&&(ob(dt,""),ut.flags&=-33);var ft=Vj(ot);Xj(ot,ft,dt);break;case 3:case 4:var zt=ut.stateNode.containerInfo,Dt=Vj(ot);Wj(ot,Dt,zt);break;default:throw Error(p$4(161))}}catch(St){W$3(ot,ot.return,St)}ot.flags&=-3}et&4096&&(ot.flags&=-4097)}function ik(ot,et,ct){V$2=ot,jk(ot)}function jk(ot,et,ct){for(var ut=(ot.mode&1)!==0;V$2!==null;){var dt=V$2,ft=dt.child;if(dt.tag===22&&ut){var zt=dt.memoizedState!==null||Kj;if(!zt){var Dt=dt.alternate,St=Dt!==null&&Dt.memoizedState!==null||U$2;Dt=Kj;var Tt=U$2;if(Kj=zt,(U$2=St)&&!Tt)for(V$2=dt;V$2!==null;)zt=V$2,St=zt.child,zt.tag===22&&zt.memoizedState!==null?kk(dt):St!==null?(St.return=zt,V$2=St):kk(dt);for(;ft!==null;)V$2=ft,jk(ft),ft=ft.sibling;V$2=dt,Kj=Dt,U$2=Tt}lk(ot)}else dt.subtreeFlags&8772&&ft!==null?(ft.return=dt,V$2=ft):lk(ot)}}function lk(ot){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var ct=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$2||Rj(5,et);break;case 1:var ut=et.stateNode;if(et.flags&4&&!U$2)if(ct===null)ut.componentDidMount();else{var dt=et.elementType===et.type?ct.memoizedProps:Lg(et.type,ct.memoizedProps);ut.componentDidUpdate(dt,ct.memoizedState,ut.__reactInternalSnapshotBeforeUpdate)}var ft=et.updateQueue;ft!==null&&ih(et,ft,ut);break;case 3:var zt=et.updateQueue;if(zt!==null){if(ct=null,et.child!==null)switch(et.child.tag){case 5:ct=et.child.stateNode;break;case 1:ct=et.child.stateNode}ih(et,zt,ct)}break;case 5:var Dt=et.stateNode;if(ct===null&&et.flags&4){ct=Dt;var St=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":St.autoFocus&&ct.focus();break;case"img":St.src&&(ct.src=St.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var Tt=et.alternate;if(Tt!==null){var Rt=Tt.memoizedState;if(Rt!==null){var $t=Rt.dehydrated;$t!==null&&bd($t)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$4(163))}U$2||et.flags&512&&Sj(et)}catch(kt){W$3(et,et.return,kt)}}if(et===ot){V$2=null;break}if(ct=et.sibling,ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function hk(ot){for(;V$2!==null;){var et=V$2;if(et===ot){V$2=null;break}var ct=et.sibling;if(ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function kk(ot){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var ct=et.return;try{Rj(4,et)}catch(St){W$3(et,ct,St)}break;case 1:var ut=et.stateNode;if(typeof ut.componentDidMount=="function"){var dt=et.return;try{ut.componentDidMount()}catch(St){W$3(et,dt,St)}}var ft=et.return;try{Sj(et)}catch(St){W$3(et,ft,St)}break;case 5:var zt=et.return;try{Sj(et)}catch(St){W$3(et,zt,St)}}}catch(St){W$3(et,et.return,St)}if(et===ot){V$2=null;break}var Dt=et.sibling;if(Dt!==null){Dt.return=et.return,V$2=Dt;break}V$2=et.return}}var mk=Math.ceil,nk=ua$1.ReactCurrentDispatcher,ok$2=ua$1.ReactCurrentOwner,pk=ua$1.ReactCurrentBatchConfig,K$2=0,R$2=null,Y=null,Z$3=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk$1=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$2(){return K$2&6?B$3():Bk!==-1?Bk:Bk=B$3()}function lh(ot){return ot.mode&1?K$2&2&&Z$3!==0?Z$3&-Z$3:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(ot=C$2,ot!==0||(ot=window.event,ot=ot===void 0?16:jd(ot.type)),ot):1}function mh(ot,et,ct,ut){if(50<zk)throw zk=0,Ak=null,Error(p$4(185));Ac(ot,ct,ut),(!(K$2&2)||ot!==R$2)&&(ot===R$2&&(!(K$2&2)&&(rk|=ct),T$2===4&&Dk(ot,Z$3)),Ek(ot,ut),ct===1&&K$2===0&&!(et.mode&1)&&(Hj=B$3()+500,fg&&jg()))}function Ek(ot,et){var ct=ot.callbackNode;wc$1(ot,et);var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)ct!==null&&bc(ct),ot.callbackNode=null,ot.callbackPriority=0;else if(et=ut&-ut,ot.callbackPriority!==et){if(ct!=null&&bc(ct),et===1)ot.tag===0?ig(Fk.bind(null,ot)):hg(Fk.bind(null,ot)),Jf(function(){!(K$2&6)&&jg()}),ct=null;else{switch(Dc$1(ut)){case 1:ct=fc;break;case 4:ct=gc;break;case 16:ct=hc;break;case 536870912:ct=jc;break;default:ct=hc}ct=Gk(ct,Hk.bind(null,ot))}ot.callbackPriority=et,ot.callbackNode=ct}}function Hk(ot,et){if(Bk=-1,Ck=0,K$2&6)throw Error(p$4(327));var ct=ot.callbackNode;if(Ik()&&ot.callbackNode!==ct)return null;var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)return null;if(ut&30||ut&ot.expiredLanes||et)et=Jk(ot,ut);else{et=ut;var dt=K$2;K$2|=2;var ft=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Hj=B$3()+500,Lk(ot,et));do try{Mk();break}catch(Dt){Nk(ot,Dt)}while(!0);Qg(),nk.current=ft,K$2=dt,Y!==null?et=0:(R$2=null,Z$3=0,et=T$2)}if(et!==0){if(et===2&&(dt=xc(ot),dt!==0&&(ut=dt,et=Ok(ot,dt))),et===1)throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;if(et===6)Dk(ot,ut);else{if(dt=ot.current.alternate,!(ut&30)&&!Pk(dt)&&(et=Jk(ot,ut),et===2&&(ft=xc(ot),ft!==0&&(ut=ft,et=Ok(ot,ft))),et===1))throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;switch(ot.finishedWork=dt,ot.finishedLanes=ut,et){case 0:case 1:throw Error(p$4(345));case 2:Qk(ot,uk$1,vk);break;case 3:if(Dk(ot,ut),(ut&130023424)===ut&&(et=gk+500-B$3(),10<et)){if(uc(ot,0)!==0)break;if(dt=ot.suspendedLanes,(dt&ut)!==ut){L$2(),ot.pingedLanes|=ot.suspendedLanes&dt;break}ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),et);break}Qk(ot,uk$1,vk);break;case 4:if(Dk(ot,ut),(ut&4194240)===ut)break;for(et=ot.eventTimes,dt=-1;0<ut;){var zt=31-oc(ut);ft=1<<zt,zt=et[zt],zt>dt&&(dt=zt),ut&=~ft}if(ut=dt,ut=B$3()-ut,ut=(120>ut?120:480>ut?480:1080>ut?1080:1920>ut?1920:3e3>ut?3e3:4320>ut?4320:1960*mk(ut/1960))-ut,10<ut){ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),ut);break}Qk(ot,uk$1,vk);break;case 5:Qk(ot,uk$1,vk);break;default:throw Error(p$4(329))}}}return Ek(ot,B$3()),ot.callbackNode===ct?Hk.bind(null,ot):null}function Ok(ot,et){var ct=tk;return ot.current.memoizedState.isDehydrated&&(Lk(ot,et).flags|=256),ot=Jk(ot,et),ot!==2&&(et=uk$1,uk$1=ct,et!==null&&Gj(et)),ot}function Gj(ot){uk$1===null?uk$1=ot:uk$1.push.apply(uk$1,ot)}function Pk(ot){for(var et=ot;;){if(et.flags&16384){var ct=et.updateQueue;if(ct!==null&&(ct=ct.stores,ct!==null))for(var ut=0;ut<ct.length;ut++){var dt=ct[ut],ft=dt.getSnapshot;dt=dt.value;try{if(!He(ft(),dt))return!1}catch{return!1}}}if(ct=et.child,et.subtreeFlags&16384&&ct!==null)ct.return=et,et=ct;else{if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(ot,et){for(et&=~sk,et&=~rk,ot.suspendedLanes|=et,ot.pingedLanes&=~et,ot=ot.expirationTimes;0<et;){var ct=31-oc(et),ut=1<<ct;ot[ct]=-1,et&=~ut}}function Fk(ot){if(K$2&6)throw Error(p$4(327));Ik();var et=uc(ot,0);if(!(et&1))return Ek(ot,B$3()),null;var ct=Jk(ot,et);if(ot.tag!==0&&ct===2){var ut=xc(ot);ut!==0&&(et=ut,ct=Ok(ot,ut))}if(ct===1)throw ct=qk,Lk(ot,0),Dk(ot,et),Ek(ot,B$3()),ct;if(ct===6)throw Error(p$4(345));return ot.finishedWork=ot.current.alternate,ot.finishedLanes=et,Qk(ot,uk$1,vk),Ek(ot,B$3()),null}function Rk(ot,et){var ct=K$2;K$2|=1;try{return ot(et)}finally{K$2=ct,K$2===0&&(Hj=B$3()+500,fg&&jg())}}function Sk(ot){xk!==null&&xk.tag===0&&!(K$2&6)&&Ik();var et=K$2;K$2|=1;var ct=pk.transition,ut=C$2;try{if(pk.transition=null,C$2=1,ot)return ot()}finally{C$2=ut,pk.transition=ct,K$2=et,!(K$2&6)&&jg()}}function Ij(){gj=fj.current,E$2(fj)}function Lk(ot,et){ot.finishedWork=null,ot.finishedLanes=0;var ct=ot.timeoutHandle;if(ct!==-1&&(ot.timeoutHandle=-1,Gf(ct)),Y!==null)for(ct=Y.return;ct!==null;){var ut=ct;switch(wg(ut),ut.tag){case 1:ut=ut.type.childContextTypes,ut!=null&&$f();break;case 3:Jh(),E$2(Wf),E$2(H$2),Oh();break;case 5:Lh(ut);break;case 4:Jh();break;case 13:E$2(M$2);break;case 19:E$2(M$2);break;case 10:Rg(ut.type._context);break;case 22:case 23:Ij()}ct=ct.return}if(R$2=ot,Y=ot=wh(ot.current,null),Z$3=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk$1=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(ct=Wg[et],ut=ct.interleaved,ut!==null){ct.interleaved=null;var dt=ut.next,ft=ct.pending;if(ft!==null){var zt=ft.next;ft.next=dt,ut.next=zt}ct.pending=ut}Wg=null}return ot}function Nk(ot,et){do{var ct=Y;try{if(Qg(),Ph.current=ai,Sh){for(var ut=N$3.memoizedState;ut!==null;){var dt=ut.queue;dt!==null&&(dt.pending=null),ut=ut.next}Sh=!1}if(Rh=0,P$2=O$1=N$3=null,Th=!1,Uh=0,ok$2.current=null,ct===null||ct.return===null){T$2=1,qk=et,Y=null;break}e:{var ft=ot,zt=ct.return,Dt=ct,St=et;if(et=Z$3,Dt.flags|=32768,St!==null&&typeof St=="object"&&typeof St.then=="function"){var Tt=St,Rt=Dt,$t=Rt.tag;if(!(Rt.mode&1)&&($t===0||$t===11||$t===15)){var kt=Rt.alternate;kt?(Rt.updateQueue=kt.updateQueue,Rt.memoizedState=kt.memoizedState,Rt.lanes=kt.lanes):(Rt.updateQueue=null,Rt.memoizedState=null)}var Bt=Vi(zt);if(Bt!==null){Bt.flags&=-257,Wi(Bt,zt,Dt,ft,et),Bt.mode&1&&Ti(ft,Tt,et),et=Bt,St=Tt;var Ft=et.updateQueue;if(Ft===null){var jt=new Set;jt.add(St),et.updateQueue=jt}else Ft.add(St);break e}else{if(!(et&1)){Ti(ft,Tt,et),uj();break e}St=Error(p$4(426))}}else if(I$2&&Dt.mode&1){var Kt=Vi(zt);if(Kt!==null){!(Kt.flags&65536)&&(Kt.flags|=256),Wi(Kt,zt,Dt,ft,et),Jg(Ki(St,Dt));break e}}ft=St=Ki(St,Dt),T$2!==4&&(T$2=2),tk===null?tk=[ft]:tk.push(ft),ft=zt;do{switch(ft.tag){case 3:ft.flags|=65536,et&=-et,ft.lanes|=et;var Yt=Oi(ft,St,et);fh(ft,Yt);break e;case 1:Dt=St;var Ut=ft.type,Jt=ft.stateNode;if(!(ft.flags&128)&&(typeof Ut.getDerivedStateFromError=="function"||Jt!==null&&typeof Jt.componentDidCatch=="function"&&(Si===null||!Si.has(Jt)))){ft.flags|=65536,et&=-et,ft.lanes|=et;var Ht=Ri(ft,Dt,et);fh(ft,Ht);break e}}ft=ft.return}while(ft!==null)}Tk(ct)}catch(e0){et=e0,Y===ct&&ct!==null&&(Y=ct=ct.return);continue}break}while(!0)}function Kk(){var ot=nk.current;return nk.current=ai,ot===null?ai:ot}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R$2===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$2,Z$3)}function Jk(ot,et){var ct=K$2;K$2|=2;var ut=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Lk(ot,et));do try{Uk();break}catch(dt){Nk(ot,dt)}while(!0);if(Qg(),K$2=ct,nk.current=ut,Y!==null)throw Error(p$4(261));return R$2=null,Z$3=0,T$2}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(ot){var et=Wk(ot.alternate,ot,gj);ot.memoizedProps=ot.pendingProps,et===null?Tk(ot):Y=et,ok$2.current=null}function Tk(ot){var et=ot;do{var ct=et.alternate;if(ot=et.return,et.flags&32768){if(ct=Jj(ct,et),ct!==null){ct.flags&=32767,Y=ct;return}if(ot!==null)ot.flags|=32768,ot.subtreeFlags=0,ot.deletions=null;else{T$2=6,Y=null;return}}else if(ct=Fj(ct,et,gj),ct!==null){Y=ct;return}if(et=et.sibling,et!==null){Y=et;return}Y=et=ot}while(et!==null);T$2===0&&(T$2=5)}function Qk(ot,et,ct){var ut=C$2,dt=pk.transition;try{pk.transition=null,C$2=1,Xk(ot,et,ct,ut)}finally{pk.transition=dt,C$2=ut}return null}function Xk(ot,et,ct,ut){do Ik();while(xk!==null);if(K$2&6)throw Error(p$4(327));ct=ot.finishedWork;var dt=ot.finishedLanes;if(ct===null)return null;if(ot.finishedWork=null,ot.finishedLanes=0,ct===ot.current)throw Error(p$4(177));ot.callbackNode=null,ot.callbackPriority=0;var ft=ct.lanes|ct.childLanes;if(Bc(ot,ft),ot===R$2&&(Y=R$2=null,Z$3=0),!(ct.subtreeFlags&2064)&&!(ct.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),ft=(ct.flags&15990)!==0,ct.subtreeFlags&15990||ft){ft=pk.transition,pk.transition=null;var zt=C$2;C$2=1;var Dt=K$2;K$2|=4,ok$2.current=null,Pj(ot,ct),ek(ct,ot),Oe$1(Df),dd=!!Cf,Df=Cf=null,ot.current=ct,ik(ct),dc(),K$2=Dt,C$2=zt,pk.transition=ft}else ot.current=ct;if(wk&&(wk=!1,xk=ot,yk=dt),ft=ot.pendingLanes,ft===0&&(Si=null),mc(ct.stateNode),Ek(ot,B$3()),et!==null)for(ut=ot.onRecoverableError,ct=0;ct<et.length;ct++)dt=et[ct],ut(dt.value,{componentStack:dt.stack,digest:dt.digest});if(Pi)throw Pi=!1,ot=Qi,Qi=null,ot;return yk&1&&ot.tag!==0&&Ik(),ft=ot.pendingLanes,ft&1?ot===Ak?zk++:(zk=0,Ak=ot):zk=0,jg(),null}function Ik(){if(xk!==null){var ot=Dc$1(yk),et=pk.transition,ct=C$2;try{if(pk.transition=null,C$2=16>ot?16:ot,xk===null)var ut=!1;else{if(ot=xk,xk=null,yk=0,K$2&6)throw Error(p$4(331));var dt=K$2;for(K$2|=4,V$2=ot.current;V$2!==null;){var ft=V$2,zt=ft.child;if(V$2.flags&16){var Dt=ft.deletions;if(Dt!==null){for(var St=0;St<Dt.length;St++){var Tt=Dt[St];for(V$2=Tt;V$2!==null;){var Rt=V$2;switch(Rt.tag){case 0:case 11:case 15:Qj(8,Rt,ft)}var $t=Rt.child;if($t!==null)$t.return=Rt,V$2=$t;else for(;V$2!==null;){Rt=V$2;var kt=Rt.sibling,Bt=Rt.return;if(Tj(Rt),Rt===Tt){V$2=null;break}if(kt!==null){kt.return=Bt,V$2=kt;break}V$2=Bt}}}var Ft=ft.alternate;if(Ft!==null){var jt=Ft.child;if(jt!==null){Ft.child=null;do{var Kt=jt.sibling;jt.sibling=null,jt=Kt}while(jt!==null)}}V$2=ft}}if(ft.subtreeFlags&2064&&zt!==null)zt.return=ft,V$2=zt;else e:for(;V$2!==null;){if(ft=V$2,ft.flags&2048)switch(ft.tag){case 0:case 11:case 15:Qj(9,ft,ft.return)}var Yt=ft.sibling;if(Yt!==null){Yt.return=ft.return,V$2=Yt;break e}V$2=ft.return}}var Ut=ot.current;for(V$2=Ut;V$2!==null;){zt=V$2;var Jt=zt.child;if(zt.subtreeFlags&2064&&Jt!==null)Jt.return=zt,V$2=Jt;else e:for(zt=Ut;V$2!==null;){if(Dt=V$2,Dt.flags&2048)try{switch(Dt.tag){case 0:case 11:case 15:Rj(9,Dt)}}catch(e0){W$3(Dt,Dt.return,e0)}if(Dt===zt){V$2=null;break e}var Ht=Dt.sibling;if(Ht!==null){Ht.return=Dt.return,V$2=Ht;break e}V$2=Dt.return}}if(K$2=dt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,ot)}catch{}ut=!0}return ut}finally{C$2=ct,pk.transition=et}}return!1}function Yk(ot,et,ct){et=Ki(ct,et),et=Oi(ot,et,1),ot=dh(ot,et,1),et=L$2(),ot!==null&&(Ac(ot,1,et),Ek(ot,et))}function W$3(ot,et,ct){if(ot.tag===3)Yk(ot,ot,ct);else for(;et!==null;){if(et.tag===3){Yk(et,ot,ct);break}else if(et.tag===1){var ut=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof ut.componentDidCatch=="function"&&(Si===null||!Si.has(ut))){ot=Ki(ct,ot),ot=Ri(et,ot,1),et=dh(et,ot,1),ot=L$2(),et!==null&&(Ac(et,1,ot),Ek(et,ot));break}}et=et.return}}function Ui(ot,et,ct){var ut=ot.pingCache;ut!==null&&ut.delete(et),et=L$2(),ot.pingedLanes|=ot.suspendedLanes&ct,R$2===ot&&(Z$3&ct)===ct&&(T$2===4||T$2===3&&(Z$3&130023424)===Z$3&&500>B$3()-gk?Lk(ot,0):sk|=ct),Ek(ot,et)}function Zk(ot,et){et===0&&(ot.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var ct=L$2();ot=Zg(ot,et),ot!==null&&(Ac(ot,et,ct),Ek(ot,ct))}function vj(ot){var et=ot.memoizedState,ct=0;et!==null&&(ct=et.retryLane),Zk(ot,ct)}function ck(ot,et){var ct=0;switch(ot.tag){case 13:var ut=ot.stateNode,dt=ot.memoizedState;dt!==null&&(ct=dt.retryLane);break;case 19:ut=ot.stateNode;break;default:throw Error(p$4(314))}ut!==null&&ut.delete(et),Zk(ot,ct)}var Wk;Wk=function(ot,et,ct){if(ot!==null)if(ot.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(ot.lanes&ct)&&!(et.flags&128))return Ug=!1,zj(ot,et,ct);Ug=!!(ot.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng$1,et.index);switch(et.lanes=0,et.tag){case 2:var ut=et.type;jj(ot,et),ot=et.pendingProps;var dt=Yf(et,H$2.current);Tg(et,ct),dt=Xh(null,et,ut,ot,dt,ct);var ft=bi();return et.flags|=1,typeof dt=="object"&&dt!==null&&typeof dt.render=="function"&&dt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(ut)?(ft=!0,cg(et)):ft=!1,et.memoizedState=dt.state!==null&&dt.state!==void 0?dt.state:null,ah(et),dt.updater=nh,et.stateNode=dt,dt._reactInternals=et,rh(et,ut,ot,ct),et=kj(null,et,ut,!0,ft,ct)):(et.tag=0,I$2&&ft&&vg(et),Yi(null,et,dt,ct),et=et.child),et;case 16:ut=et.elementType;e:{switch(jj(ot,et),ot=et.pendingProps,dt=ut._init,ut=dt(ut._payload),et.type=ut,dt=et.tag=$k(ut),ot=Lg(ut,ot),dt){case 0:et=dj(null,et,ut,ot,ct);break e;case 1:et=ij(null,et,ut,ot,ct);break e;case 11:et=Zi(null,et,ut,ot,ct);break e;case 14:et=aj(null,et,ut,Lg(ut.type,ot),ct);break e}throw Error(p$4(306,ut,""))}return et;case 0:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),dj(ot,et,ut,dt,ct);case 1:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),ij(ot,et,ut,dt,ct);case 3:e:{if(lj(et),ot===null)throw Error(p$4(387));ut=et.pendingProps,ft=et.memoizedState,dt=ft.element,bh(ot,et),gh(et,ut,null,ct);var zt=et.memoizedState;if(ut=zt.element,ft.isDehydrated)if(ft={element:ut,isDehydrated:!1,cache:zt.cache,pendingSuspenseBoundaries:zt.pendingSuspenseBoundaries,transitions:zt.transitions},et.updateQueue.baseState=ft,et.memoizedState=ft,et.flags&256){dt=Ki(Error(p$4(423)),et),et=mj(ot,et,ut,ct,dt);break e}else if(ut!==dt){dt=Ki(Error(p$4(424)),et),et=mj(ot,et,ut,ct,dt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,ct=Ch(et,null,ut,ct),et.child=ct;ct;)ct.flags=ct.flags&-3|4096,ct=ct.sibling;else{if(Ig(),ut===dt){et=$i(ot,et,ct);break e}Yi(ot,et,ut,ct)}et=et.child}return et;case 5:return Kh(et),ot===null&&Eg(et),ut=et.type,dt=et.pendingProps,ft=ot!==null?ot.memoizedProps:null,zt=dt.children,Ef(ut,dt)?zt=null:ft!==null&&Ef(ut,ft)&&(et.flags|=32),hj(ot,et),Yi(ot,et,zt,ct),et.child;case 6:return ot===null&&Eg(et),null;case 13:return pj(ot,et,ct);case 4:return Ih(et,et.stateNode.containerInfo),ut=et.pendingProps,ot===null?et.child=Bh(et,null,ut,ct):Yi(ot,et,ut,ct),et.child;case 11:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),Zi(ot,et,ut,dt,ct);case 7:return Yi(ot,et,et.pendingProps,ct),et.child;case 8:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 12:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 10:e:{if(ut=et.type._context,dt=et.pendingProps,ft=et.memoizedProps,zt=dt.value,G$3(Mg,ut._currentValue),ut._currentValue=zt,ft!==null)if(He(ft.value,zt)){if(ft.children===dt.children&&!Wf.current){et=$i(ot,et,ct);break e}}else for(ft=et.child,ft!==null&&(ft.return=et);ft!==null;){var Dt=ft.dependencies;if(Dt!==null){zt=ft.child;for(var St=Dt.firstContext;St!==null;){if(St.context===ut){if(ft.tag===1){St=ch$1(-1,ct&-ct),St.tag=2;var Tt=ft.updateQueue;if(Tt!==null){Tt=Tt.shared;var Rt=Tt.pending;Rt===null?St.next=St:(St.next=Rt.next,Rt.next=St),Tt.pending=St}}ft.lanes|=ct,St=ft.alternate,St!==null&&(St.lanes|=ct),Sg(ft.return,ct,et),Dt.lanes|=ct;break}St=St.next}}else if(ft.tag===10)zt=ft.type===et.type?null:ft.child;else if(ft.tag===18){if(zt=ft.return,zt===null)throw Error(p$4(341));zt.lanes|=ct,Dt=zt.alternate,Dt!==null&&(Dt.lanes|=ct),Sg(zt,ct,et),zt=ft.sibling}else zt=ft.child;if(zt!==null)zt.return=ft;else for(zt=ft;zt!==null;){if(zt===et){zt=null;break}if(ft=zt.sibling,ft!==null){ft.return=zt.return,zt=ft;break}zt=zt.return}ft=zt}Yi(ot,et,dt.children,ct),et=et.child}return et;case 9:return dt=et.type,ut=et.pendingProps.children,Tg(et,ct),dt=Vg(dt),ut=ut(dt),et.flags|=1,Yi(ot,et,ut,ct),et.child;case 14:return ut=et.type,dt=Lg(ut,et.pendingProps),dt=Lg(ut.type,dt),aj(ot,et,ut,dt,ct);case 15:return cj(ot,et,et.type,et.pendingProps,ct);case 17:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),jj(ot,et),et.tag=1,Zf(ut)?(ot=!0,cg(et)):ot=!1,Tg(et,ct),ph(et,ut,dt),rh(et,ut,dt,ct),kj(null,et,ut,!0,ot,ct);case 19:return yj(ot,et,ct);case 22:return ej(ot,et,ct)}throw Error(p$4(156,et.tag))};function Gk(ot,et){return ac(ot,et)}function al(ot,et,ct,ut){this.tag=ot,this.key=ct,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ut,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(ot,et,ct,ut){return new al(ot,et,ct,ut)}function bj(ot){return ot=ot.prototype,!(!ot||!ot.isReactComponent)}function $k(ot){if(typeof ot=="function")return bj(ot)?1:0;if(ot!=null){if(ot=ot.$$typeof,ot===Da)return 11;if(ot===Ga)return 14}return 2}function wh(ot,et){var ct=ot.alternate;return ct===null?(ct=Bg(ot.tag,et,ot.key,ot.mode),ct.elementType=ot.elementType,ct.type=ot.type,ct.stateNode=ot.stateNode,ct.alternate=ot,ot.alternate=ct):(ct.pendingProps=et,ct.type=ot.type,ct.flags=0,ct.subtreeFlags=0,ct.deletions=null),ct.flags=ot.flags&14680064,ct.childLanes=ot.childLanes,ct.lanes=ot.lanes,ct.child=ot.child,ct.memoizedProps=ot.memoizedProps,ct.memoizedState=ot.memoizedState,ct.updateQueue=ot.updateQueue,et=ot.dependencies,ct.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},ct.sibling=ot.sibling,ct.index=ot.index,ct.ref=ot.ref,ct}function yh(ot,et,ct,ut,dt,ft){var zt=2;if(ut=ot,typeof ot=="function")bj(ot)&&(zt=1);else if(typeof ot=="string")zt=5;else e:switch(ot){case ya:return Ah(ct.children,dt,ft,et);case za:zt=8,dt|=8;break;case Aa:return ot=Bg(12,ct,et,dt|2),ot.elementType=Aa,ot.lanes=ft,ot;case Ea:return ot=Bg(13,ct,et,dt),ot.elementType=Ea,ot.lanes=ft,ot;case Fa:return ot=Bg(19,ct,et,dt),ot.elementType=Fa,ot.lanes=ft,ot;case Ia:return qj(ct,dt,ft,et);default:if(typeof ot=="object"&&ot!==null)switch(ot.$$typeof){case Ba:zt=10;break e;case Ca:zt=9;break e;case Da:zt=11;break e;case Ga:zt=14;break e;case Ha:zt=16,ut=null;break e}throw Error(p$4(130,ot==null?ot:typeof ot,""))}return et=Bg(zt,ct,et,dt),et.elementType=ot,et.type=ut,et.lanes=ft,et}function Ah(ot,et,ct,ut){return ot=Bg(7,ot,ut,et),ot.lanes=ct,ot}function qj(ot,et,ct,ut){return ot=Bg(22,ot,ut,et),ot.elementType=Ia,ot.lanes=ct,ot.stateNode={isHidden:!1},ot}function xh(ot,et,ct){return ot=Bg(6,ot,null,et),ot.lanes=ct,ot}function zh(ot,et,ct){return et=Bg(4,ot.children!==null?ot.children:[],ot.key,et),et.lanes=ct,et.stateNode={containerInfo:ot.containerInfo,pendingChildren:null,implementation:ot.implementation},et}function bl(ot,et,ct,ut,dt){this.tag=et,this.containerInfo=ot,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=ut,this.onRecoverableError=dt,this.mutableSourceEagerHydrationData=null}function cl$1(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=new bl(ot,et,ct,Dt,St),et===1?(et=1,ft===!0&&(et|=8)):et=0,ft=Bg(3,null,null,et),ot.current=ft,ft.stateNode=ot,ft.memoizedState={element:ut,isDehydrated:ct,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ft),ot}function dl(ot,et,ct){var ut=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:ut==null?null:""+ut,children:ot,containerInfo:et,implementation:ct}}function el$1(ot){if(!ot)return Vf;ot=ot._reactInternals;e:{if(Vb(ot)!==ot||ot.tag!==1)throw Error(p$4(170));var et=ot;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$4(171))}if(ot.tag===1){var ct=ot.type;if(Zf(ct))return bg(ot,ct,et)}return et}function fl(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=cl$1(ct,ut,!0,ot,dt,ft,zt,Dt,St),ot.context=el$1(null),ct=ot.current,ut=L$2(),dt=lh(ct),ft=ch$1(ut,dt),ft.callback=et??null,dh(ct,ft,dt),ot.current.lanes=dt,Ac(ot,dt,ut),Ek(ot,ut),ot}function gl(ot,et,ct,ut){var dt=et.current,ft=L$2(),zt=lh(dt);return ct=el$1(ct),et.context===null?et.context=ct:et.pendingContext=ct,et=ch$1(ft,zt),et.payload={element:ot},ut=ut===void 0?null:ut,ut!==null&&(et.callback=ut),ot=dh(dt,et,zt),ot!==null&&(mh(ot,dt,zt,ft),eh(ot,dt,zt)),zt}function hl(ot){if(ot=ot.current,!ot.child)return null;switch(ot.child.tag){case 5:return ot.child.stateNode;default:return ot.child.stateNode}}function il(ot,et){if(ot=ot.memoizedState,ot!==null&&ot.dehydrated!==null){var ct=ot.retryLane;ot.retryLane=ct!==0&&ct<et?ct:et}}function jl(ot,et){il(ot,et),(ot=ot.alternate)&&il(ot,et)}var ll=typeof reportError=="function"?reportError:function(ot){console.error(ot)};function ml(ot){this._internalRoot=ot}nl.prototype.render=ml.prototype.render=function(ot){var et=this._internalRoot;if(et===null)throw Error(p$4(409));gl(ot,et,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var ot=this._internalRoot;if(ot!==null){this._internalRoot=null;var et=ot.containerInfo;Sk(function(){gl(null,ot,null,null)}),et[uf]=null}};function nl(ot){this._internalRoot=ot}nl.prototype.unstable_scheduleHydration=function(ot){if(ot){var et=Hc();ot={blockedOn:null,target:ot,priority:et};for(var ct=0;ct<Qc.length&&et!==0&&et<Qc[ct].priority;ct++);Qc.splice(ct,0,ot),ct===0&&Vc(ot)}};function ol(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11)}function pl(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11&&(ot.nodeType!==8||ot.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(ot,et,ct,ut,dt){if(dt){if(typeof ut=="function"){var ft=ut;ut=function(){var Tt=hl(zt);ft.call(Tt)}}var zt=fl(et,ut,ot,0,null,!1,!1,"",ql);return ot._reactRootContainer=zt,ot[uf]=zt.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(),zt}for(;dt=ot.lastChild;)ot.removeChild(dt);if(typeof ut=="function"){var Dt=ut;ut=function(){var Tt=hl(St);Dt.call(Tt)}}var St=cl$1(ot,0,!1,null,null,!1,!1,"",ql);return ot._reactRootContainer=St,ot[uf]=St.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(function(){gl(et,St,ct,ut)}),St}function sl(ot,et,ct,ut,dt){var ft=ct._reactRootContainer;if(ft){var zt=ft;if(typeof dt=="function"){var Dt=dt;dt=function(){var St=hl(zt);Dt.call(St)}}gl(et,zt,ot,dt)}else zt=rl(ct,et,ot,dt,ut);return hl(zt)}Ec=function(ot){switch(ot.tag){case 3:var et=ot.stateNode;if(et.current.memoizedState.isDehydrated){var ct=tc(et.pendingLanes);ct!==0&&(Cc(et,ct|1),Ek(et,B$3()),!(K$2&6)&&(Hj=B$3()+500,jg()))}break;case 13:Sk(function(){var ut=Zg(ot,1);if(ut!==null){var dt=L$2();mh(ut,ot,1,dt)}}),jl(ot,1)}},Fc=function(ot){if(ot.tag===13){var et=Zg(ot,134217728);if(et!==null){var ct=L$2();mh(et,ot,134217728,ct)}jl(ot,134217728)}},Gc=function(ot){if(ot.tag===13){var et=lh(ot),ct=Zg(ot,et);if(ct!==null){var ut=L$2();mh(ct,ot,et,ut)}jl(ot,et)}},Hc=function(){return C$2},Ic=function(ot,et){var ct=C$2;try{return C$2=ot,et()}finally{C$2=ct}},yb=function(ot,et,ct){switch(et){case"input":if(bb(ot,ct),et=ct.name,ct.type==="radio"&&et!=null){for(ct=ot;ct.parentNode;)ct=ct.parentNode;for(ct=ct.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<ct.length;et++){var ut=ct[et];if(ut!==ot&&ut.form===ot.form){var dt=Db(ut);if(!dt)throw Error(p$4(90));Wa(ut),bb(ut,dt)}}}break;case"textarea":ib(ot,ct);break;case"select":et=ct.value,et!=null&&fb(ot,!!ct.multiple,et,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(ot){return ot=Zb(ot),ot===null?null:ot.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,reactDom_production_min.createPortal=function(ot,et){var ct=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$4(200));return dl(ot,et,null,ct)},reactDom_production_min.createRoot=function(ot,et){if(!ol(ot))throw Error(p$4(299));var ct=!1,ut="",dt=ll;return et!=null&&(et.unstable_strictMode===!0&&(ct=!0),et.identifierPrefix!==void 0&&(ut=et.identifierPrefix),et.onRecoverableError!==void 0&&(dt=et.onRecoverableError)),et=cl$1(ot,1,!1,null,null,ct,!1,ut,dt),ot[uf]=et.current,sf(ot.nodeType===8?ot.parentNode:ot),new ml(et)},reactDom_production_min.findDOMNode=function(ot){if(ot==null)return null;if(ot.nodeType===1)return ot;var et=ot._reactInternals;if(et===void 0)throw typeof ot.render=="function"?Error(p$4(188)):(ot=Object.keys(ot).join(","),Error(p$4(268,ot)));return ot=Zb(et),ot=ot===null?null:ot.stateNode,ot},reactDom_production_min.flushSync=function(ot){return Sk(ot)},reactDom_production_min.hydrate=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!0,ct)},reactDom_production_min.hydrateRoot=function(ot,et,ct){if(!ol(ot))throw Error(p$4(405));var ut=ct!=null&&ct.hydratedSources||null,dt=!1,ft="",zt=ll;if(ct!=null&&(ct.unstable_strictMode===!0&&(dt=!0),ct.identifierPrefix!==void 0&&(ft=ct.identifierPrefix),ct.onRecoverableError!==void 0&&(zt=ct.onRecoverableError)),et=fl(et,null,ot,1,ct??null,dt,!1,ft,zt),ot[uf]=et.current,sf(ot),ut)for(ot=0;ot<ut.length;ot++)ct=ut[ot],dt=ct._getVersion,dt=dt(ct._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[ct,dt]:et.mutableSourceEagerHydrationData.push(ct,dt);return new nl(et)},reactDom_production_min.render=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!1,ct)},reactDom_production_min.unmountComponentAtNode=function(ot){if(!pl(ot))throw Error(p$4(40));return ot._reactRootContainer?(Sk(function(){sl(null,null,ot,!1,function(){ot._reactRootContainer=null,ot[uf]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=Rk,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(ot,et,ct,ut){if(!pl(ct))throw Error(p$4(200));if(ot==null||ot._reactInternals===void 0)throw Error(p$4(38));return sl(ot,et,ct,!1,ut)},reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ot){console.error(ot)}}checkDCE(),reactDom.exports=reactDom_production_min,reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);class PromiseDelegate{constructor(){vr(this,"promise");vr(this,"resolveInternal");vr(this,"rejectInternal");this.promise=new Promise((et,ct)=>{this.resolveInternal=et,this.rejectInternal=ct})}resolve(et){this.resolveInternal(et)}reject(et){this.rejectInternal(et)}}const workerBlobUrlCache=new Map;function getWorkerBlobUrl(ot,et=!1){const ct=ot.toString(),ut=workerBlobUrlCache.get(ct);if(ut)return console.debug(`Using a cached worker blob URL for ${ct}`),ut;const dt=et?`import "${ct}";`:`importScripts("${ct}");`,ft=new Blob([dt],{type:et?"text/javascript;type=module":"text/javascript"}),zt=URL.createObjectURL(ft);return workerBlobUrlCache.set(ct,zt),zt}function isSameOrigin(ot){return ot.origin===window.location.origin}class CrossOriginWorkerMaker{constructor(et,{shared:ct,...ut}){vr(this,"worker");if(isSameOrigin(et))console.debug(`Loading a worker script from the same origin: ${et}`),this.worker=ct?new SharedWorker(et,ut):new Worker(et,ut);else{console.debug(`Loading a worker script from a different origin: ${et}`);const dt=getWorkerBlobUrl(et,ut.type==="module");this.worker=ct?new SharedWorker(dt,ut):new Worker(dt,ut)}}}function isPyodideConvertiblePrimitive(ot){return typeof ot=="string"||typeof ot=="number"||typeof ot=="boolean"||ot===null||ot===void 0}function isStreamlitConfig(ot){return typeof ot=="object"&&ot!=null&&Object.entries(ot).every(([et,ct])=>typeof et=="string"&&isPyodideConvertiblePrimitive(ct))}function assertStreamlitConfig(ot){if(!isStreamlitConfig(ot))throw new Error(`Invalid streamlitConfig: ${ot}`)}const FINAL_SLASH_RE$1=/\/+$/,INITIAL_SLASH_RE$1=/^\/+/,validateEnvKey=ot=>/^[A-Za-z_][A-Za-z0-9_]*$/.test(ot);class StliteKernel{constructor(et){vr(this,"_isDisposed",!1);vr(this,"_worker");vr(this,"_postMessageTarget");vr(this,"_loaded",new PromiseDelegate);vr(this,"_workerInitData");vr(this,"basePath");vr(this,"hostConfigResponse");vr(this,"onProgress");vr(this,"onLoad");vr(this,"onError");vr(this,"onModuleAutoLoad");vr(this,"handleWebSocketMessage",null);if(this.basePath=(et.basePath??window.location.pathname).replace(FINAL_SLASH_RE$1,"").replace(INITIAL_SLASH_RE$1,""),this.hostConfigResponse=et.hostConfigResponse??{},this.onProgress=et.onProgress,this.onLoad=et.onLoad,this.onError=et.onError,this.onModuleAutoLoad=et.onModuleAutoLoad,et.worker)this._worker=et.worker;else{const ct=new CrossOriginWorkerMaker(new URL("/assets/worker-B1MO5Shr.js",import.meta.url),{type:et.workerType,shared:et.sharedWorker??!1});this._worker=ct.worker}this._worker instanceof SharedWorker?(this._worker.port.start(),this._postMessageTarget=this._worker.port):this._postMessageTarget=this._worker,this._postMessageTarget.onmessage=ct=>{const ut=ct.ports[0];this._processWorkerMessage(ct.data,ut)},et.streamlitConfig!=null&&assertStreamlitConfig(et.streamlitConfig),this._workerInitData={entrypoint:et.entrypoint,files:et.files,archives:et.archives,requirements:et.requirements,prebuiltPackageNames:et.prebuiltPackageNames,pyodideUrl:et.pyodideUrl,wheels:et.wheelUrls,streamlitConfig:et.streamlitConfig,idbfsMountpoints:et.idbfsMountpoints,moduleAutoLoad:et.moduleAutoLoad??!1,env:et.env,languageServer:et.languageServer??!1}}get loaded(){return this._loaded.promise}connectWebSocket(et){return this._asyncPostMessage({type:"websocket:connect",data:{path:et}})}sendWebSocketMessage(et){return this._asyncPostMessage({type:"websocket:send",data:{payload:et}})}onWebSocketMessage(et){this.handleWebSocketMessage=et}sendHttpRequest(et){return this._asyncPostMessage({type:"http:request",data:{request:et}},"http:response").then(ct=>({...ct.response,headers:new Headers(Object.fromEntries(ct.response.headers))}))}writeFile(et,ct,ut){return this._asyncPostMessage({type:"file:write",data:{path:et,data:ct,opts:ut}})}renameFile(et,ct){return this._asyncPostMessage({type:"file:rename",data:{oldPath:et,newPath:ct}})}readFile(et,ct){return this._asyncPostMessage({type:"file:read",data:{path:et,opts:ct}},"reply:file:read").then(ut=>ut.content)}unlink(et){return this._asyncPostMessage({type:"file:unlink",data:{path:et}})}install(et){return this._asyncPostMessage({type:"install",data:{requirements:et}})}setEnv(et){return Object.keys(et).forEach(ct=>{if(!validateEnvKey(ct))throw new Error(`Invalid environment variable name: "${ct}"`)}),this._asyncPostMessage({type:"setEnv",data:{env:et}})}getCodeCompletion(et){if(!this._workerInitData.languageServer)throw new Error("Language server not loaded, please set languageServer=true to use this method");return this._asyncPostMessage({type:"language-server:code_completion",data:et},"reply:language-server:code_completion")}reboot(et){return this._asyncPostMessage({type:"reboot",data:{entrypoint:et}})}_asyncPostMessage(et,ct="reply"){return new Promise((ut,dt)=>{const ft=new MessageChannel;ft.port1.onmessage=zt=>{ft.port1.close();const Dt=zt.data;if(Dt.error)dt(Dt.error);else{if(Dt.type!==ct)throw new Error(`Unexpected reply type "${Dt.type}"`);ut(Dt.data)}},this._postMessageTarget.postMessage(et,[ft.port2])})}_processWorkerMessage(et,ct){switch(et.type){case"event:start":{this._postMessageTarget.postMessage({type:"initData",data:this._workerInitData});break}case"event:progress":{this.onProgress&&this.onProgress(et.data.message);break}case"event:error":{this.onError&&this.onError(et.data.error);break}case"event:loaded":{this._loaded.resolve(),this.onLoad&&this.onLoad();break}case"websocket:message":{const{payload:ut}=et.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(ut);break}case"event:moduleAutoLoad":{if(ct==null)throw new Error("Port is required for moduleAutoLoad event");this.onModuleAutoLoad&&this.onModuleAutoLoad(et.data.packagesToLoad,new Promise((ut,dt)=>{ct.onmessage=ft=>{const zt=ft.data;zt.type==="moduleAutoLoad:success"?ut(zt.data.loadedPackages):dt(zt.error),ct.close()}}));break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker instanceof SharedWorker?this._worker.port.close():this._worker.terminate(),this._isDisposed=!0)}}const StliteKernelContext=React$1.createContext(void 0),Provider$2=StliteKernelContext.Provider;function StliteKernelProvider(ot){const{children:et,kernel:ct}=ot,ut=reactExports.useMemo(()=>({kernel:ct}),[ct]);return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:et})}useStliteKernel=function(){const ot=reactExports.useContext(StliteKernelContext);if(ot==null)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return ot.kernel};function resolveStliteObjectUrl(ot,et){return ot.sendHttpRequest({method:"GET",path:et,headers:{},body:""}).then(({statusCode:ct,headers:ut,body:dt})=>{if(ct!==200)throw new Error(`Failed to fetch media object: ${ct}`);const ft=ut.get("Content-Type"),zt=new Blob([dt],ft?{type:ft}:void 0);return URL.createObjectURL(zt)})}function resolveStliteObjectUrlIfNeeded(ot,et){return et.startsWith("/media")?resolveStliteObjectUrl(ot,et):Promise.resolve(et)}function resolveLogo(ot,et){return Promise.all([resolveStliteObjectUrlIfNeeded(ot,et.image),resolveStliteObjectUrlIfNeeded(ot,et.iconImage)]).then(([ct,ut])=>(et.image=ct,et.iconImage=ut,et))}function useStliteResolvedLogo(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(null);return reactExports.useEffect(()=>{let dt=!1;const ft=[];return ot==null?ut(null):resolveLogo(et,ot).then(zt=>{dt||(ft.push(zt.image),ft.push(zt.iconImage),ut(zt))}),()=>{ft.forEach(zt=>{URL.revokeObjectURL(zt)}),dt=!0}},[et,ot]),ct}useStliteMediaObjectUrl=function(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(ot);return reactExports.useEffect(()=>{if(et==null||!ot.startsWith("/media"))return;let dt=!1;const ft=[];return resolveStliteObjectUrl(et,ot).then(zt=>{dt||(ft.push(zt),ut(zt))}),()=>{dt=!0,ft.forEach(zt=>{URL.revokeObjectURL(zt)})}},[et,ot]),ct},useStliteMediaObjects=function(ot){const[et,ct]=reactExports.useState(ot),ut=useStliteKernel();return reactExports.useEffect(()=>{if(ut==null)return;let dt=!1;const ft=[],zt=ot.map(Dt=>Dt.url==null||!Dt.url.startsWith("/media")?Dt:resolveStliteObjectUrl(ut,Dt.url).then(St=>dt?Dt:(ft.push(St),{...Dt,url:St})));return Promise.all(zt).then(Dt=>{dt||ct(Dt)}),()=>{dt=!0,ft.forEach(Dt=>{URL.revokeObjectURL(Dt)})}},[ut,ot]),et};const DUMMY_BASE_HOSTNAME="xxx",DUMMY_BASE_PORT=99999,DUMMY_BASE_HOST=DUMMY_BASE_HOSTNAME+":"+DUMMY_BASE_PORT.toString();function extractCustomComponentPath(ot,et){const ct=(DUMMY_BASE_HOST+"/"+ot).replace(/\/$/,""),ut=new RegExp(`https?://${ct}(/.*?$)`),dt=et.match(ut);return dt==null?null:dt[1]}function getParentPath(ot){const et=ot.split("/").slice(0,-1).join("/");return et.startsWith("/")?et:"/"+et}function getRelativePath(ot,et,ct){const ut=getParentPath(et);if(!(ct.host===ot&&ct.pathname.startsWith(ut)))return null;const dt=ct.pathname.slice(ut.length);return dt.startsWith("/")?dt.slice(1):dt}var lib$5={},activitymonitor={},ArrayExt;(function(ot){function et(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0){let _0=(n0+p0)%a0;if(Zt[_0]===o0)return _0}return-1}ot.firstIndexOf=et;function ct(Zt,o0,n0=-1,r0=0){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(let p0=0;p0<u0;++p0){let _0=(n0-p0+a0)%a0;if(Zt[_0]===o0)return _0}return-1}ot.lastIndexOf=ct;function ut(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0){let _0=(n0+p0)%a0;if(o0(Zt[_0],_0))return _0}return-1}ot.findFirstIndex=ut;function dt(Zt,o0,n0=-1,r0=0){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(let p0=0;p0<u0;++p0){let _0=(n0-p0+a0)%a0;if(o0(Zt[_0],_0))return _0}return-1}ot.findLastIndex=dt;function ft(Zt,o0,n0=0,r0=-1){let a0=ut(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findFirstValue=ft;function zt(Zt,o0,n0=-1,r0=0){let a0=dt(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findLastValue=zt;function Dt(Zt,o0,n0,r0=0,a0=-1){let u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);let p0=r0,_0=a0-r0+1;for(;_0>0;){let O0=_0>>1,E0=p0+O0;n0(Zt[E0],o0)<0?(p0=E0+1,_0-=O0+1):_0=O0}return p0}ot.lowerBound=Dt;function St(Zt,o0,n0,r0=0,a0=-1){let u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);let p0=r0,_0=a0-r0+1;for(;_0>0;){let O0=_0>>1,E0=p0+O0;n0(Zt[E0],o0)>0?_0=O0:(p0=E0+1,_0-=O0+1)}return p0}ot.upperBound=St;function Tt(Zt,o0,n0){if(Zt===o0)return!0;if(Zt.length!==o0.length)return!1;for(let r0=0,a0=Zt.length;r0<a0;++r0)if(n0?!n0(Zt[r0],o0[r0]):Zt[r0]!==o0[r0])return!1;return!0}ot.shallowEqual=Tt;function Rt(Zt,o0={}){let{start:n0,stop:r0,step:a0}=o0;if(a0===void 0&&(a0=1),a0===0)throw new Error("Slice `step` cannot be zero.");let u0=Zt.length;n0===void 0?n0=a0<0?u0-1:0:n0<0?n0=Math.max(n0+u0,a0<0?-1:0):n0>=u0&&(n0=a0<0?u0-1:u0),r0===void 0?r0=a0<0?-1:u0:r0<0?r0=Math.max(r0+u0,a0<0?-1:0):r0>=u0&&(r0=a0<0?u0-1:u0);let p0;a0<0&&r0>=n0||a0>0&&n0>=r0?p0=0:a0<0?p0=Math.floor((r0-n0+1)/a0+1):p0=Math.floor((r0-n0-1)/a0+1);let _0=[];for(let O0=0;O0<p0;++O0)_0[O0]=Zt[n0+O0*a0];return _0}ot.slice=Rt;function $t(Zt,o0,n0){let r0=Zt.length;if(r0<=1||(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1),o0===n0))return;let a0=Zt[o0],u0=o0<n0?1:-1;for(let p0=o0;p0!==n0;p0+=u0)Zt[p0]=Zt[p0+u0];Zt[n0]=a0}ot.move=$t;function kt(Zt,o0=0,n0=-1){let r0=Zt.length;if(!(r0<=1))for(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1);o0<n0;){let a0=Zt[o0],u0=Zt[n0];Zt[o0++]=u0,Zt[n0--]=a0}}ot.reverse=kt;function Bt(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0<=1||(n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1),n0>=r0))return;let u0=r0-n0+1;if(o0>0?o0=o0%u0:o0<0&&(o0=(o0%u0+u0)%u0),o0===0)return;let p0=n0+o0;kt(Zt,n0,p0-1),kt(Zt,p0,r0),kt(Zt,n0,r0)}ot.rotate=Bt;function Ft(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0)Zt[(n0+p0)%a0]=o0}ot.fill=Ft;function jt(Zt,o0,n0){let r0=Zt.length;o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0);for(let a0=r0;a0>o0;--a0)Zt[a0]=Zt[a0-1];Zt[o0]=n0}ot.insert=jt;function Kt(Zt,o0){let n0=Zt.length;if(o0<0&&(o0+=n0),o0<0||o0>=n0)return;let r0=Zt[o0];for(let a0=o0+1;a0<n0;++a0)Zt[a0-1]=Zt[a0];return Zt.length=n0-1,r0}ot.removeAt=Kt;function Yt(Zt,o0,n0=0,r0=-1){let a0=et(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeFirstOf=Yt;function Ut(Zt,o0,n0=-1,r0=0){let a0=ct(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeLastOf=Ut;function Jt(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0=0;for(let p0=0;p0<a0;++p0)n0<=r0&&p0>=n0&&p0<=r0&&Zt[p0]===o0||r0<n0&&(p0<=r0||p0>=n0)&&Zt[p0]===o0?u0++:u0>0&&(Zt[p0-u0]=Zt[p0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllOf=Jt;function Ht(Zt,o0,n0=0,r0=-1){let a0,u0=ut(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeFirstWhere=Ht;function e0(Zt,o0,n0=-1,r0=0){let a0,u0=dt(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeLastWhere=e0;function t0(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0=0;for(let p0=0;p0<a0;++p0)n0<=r0&&p0>=n0&&p0<=r0&&o0(Zt[p0],p0)||r0<n0&&(p0<=r0||p0>=n0)&&o0(Zt[p0],p0)?u0++:u0>0&&(Zt[p0-u0]=Zt[p0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllWhere=t0})(ArrayExt||(ArrayExt={}));function*chain(...ot){for(const et of ot)yield*et}function*empty$2(){}function*enumerate(ot,et=0){for(const ct of ot)yield[et++,ct]}function*filter$2(ot,et){let ct=0;for(const ut of ot)et(ut,ct++)&&(yield ut)}function find$4(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return ut}function findIndex$1(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return ct-1;return-1}function min$1(ot,et){let ct;for(const ut of ot){if(ct===void 0){ct=ut;continue}et(ut,ct)<0&&(ct=ut)}return ct}function max$1(ot,et){let ct;for(const ut of ot){if(ct===void 0){ct=ut;continue}et(ut,ct)>0&&(ct=ut)}return ct}function minmax(ot,et){let ct=!0,ut,dt;for(const ft of ot)ct?(ut=ft,dt=ft,ct=!1):et(ft,ut)<0?ut=ft:et(ft,dt)>0&&(dt=ft);return ct?void 0:[ut,dt]}function toArray$5(ot){return Array.from(ot)}function toObject$1(ot){const et={};for(const[ct,ut]of ot)et[ct]=ut;return et}function each(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++)===!1)return}function every(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++)===!1)return!1;return!0}function some$1(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return!0;return!1}function*map$4(ot,et){let ct=0;for(const ut of ot)yield et(ut,ct++)}function*range$2(ot,et,ct){et===void 0?(et=ot,ot=0,ct=1):ct===void 0&&(ct=1);const ut=Private$1.rangeLength(ot,et,ct);for(let dt=0;dt<ut;dt++)yield ot+ct*dt}var Private$1;(function(ot){function et(ct,ut,dt){return dt===0?1/0:ct>ut&&dt>0||ct<ut&&dt<0?0:Math.ceil((ut-ct)/dt)}ot.rangeLength=et})(Private$1||(Private$1={}));function reduce(ot,et,ct){const ut=ot[Symbol.iterator]();let dt=0,ft=ut.next();if(ft.done&&ct===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(ft.done)return ct;let zt=ut.next();if(zt.done&&ct===void 0)return ft.value;if(zt.done)return et(ct,ft.value,dt++);let Dt;ct===void 0?Dt=et(ft.value,zt.value,dt++):Dt=et(et(ct,ft.value,dt++),zt.value,dt++);let St;for(;!(St=ut.next()).done;)Dt=et(Dt,St.value,dt++);return Dt}function*repeat$1(ot,et){for(;0<et--;)yield ot}function*once$2(ot){yield ot}function*retro(ot){if(typeof ot.retro=="function")yield*ot.retro();else for(let et=ot.length-1;et>-1;et--)yield ot[et]}function topologicSort(ot){let et=[],ct=new Set,ut=new Map;for(const zt of ot)dt(zt);for(const[zt]of ut)ft(zt);return et;function dt(zt){let[Dt,St]=zt,Tt=ut.get(St);Tt?Tt.push(Dt):ut.set(St,[Dt])}function ft(zt){if(ct.has(zt))return;ct.add(zt);let Dt=ut.get(zt);if(Dt)for(const St of Dt)ft(St);et.push(zt)}}function*stride(ot,et){let ct=0;for(const ut of ot)ct++%et===0&&(yield ut)}var StringExt;(function(ot){function et(zt,Dt,St=0){let Tt=new Array(Dt.length);for(let Rt=0,$t=St,kt=Dt.length;Rt<kt;++Rt,++$t){if($t=zt.indexOf(Dt[Rt],$t),$t===-1)return null;Tt[Rt]=$t}return Tt}ot.findIndices=et;function ct(zt,Dt,St=0){let Tt=et(zt,Dt,St);if(!Tt)return null;let Rt=0;for(let $t=0,kt=Tt.length;$t<kt;++$t){let Bt=Tt[$t]-St;Rt+=Bt*Bt}return{score:Rt,indices:Tt}}ot.matchSumOfSquares=ct;function ut(zt,Dt,St=0){let Tt=et(zt,Dt,St);if(!Tt)return null;let Rt=0,$t=St-1;for(let kt=0,Bt=Tt.length;kt<Bt;++kt){let Ft=Tt[kt];Rt+=Ft-$t-1,$t=Ft}return{score:Rt,indices:Tt}}ot.matchSumOfDeltas=ut;function dt(zt,Dt,St){let Tt=[],Rt=0,$t=0,kt=Dt.length;for(;Rt<kt;){let Bt=Dt[Rt],Ft=Dt[Rt];for(;++Rt<kt&&Dt[Rt]===Ft+1;)Ft++;$t<Bt&&Tt.push(zt.slice($t,Bt)),Bt<Ft+1&&Tt.push(St(zt.slice(Bt,Ft+1))),$t=Ft+1}return $t<zt.length&&Tt.push(zt.slice($t)),Tt}ot.highlight=dt;function ft(zt,Dt){return zt<Dt?-1:zt>Dt?1:0}ot.cmp=ft})(StringExt||(StringExt={}));function*take(ot,et){if(et<1)return;const ct=ot[Symbol.iterator]();let ut;for(;0<et--&&!(ut=ct.next()).done;)yield ut.value}function*zip$2(...ot){const et=ot.map(ut=>ut[Symbol.iterator]());let ct=et.map(ut=>ut.next());for(;every(ct,ut=>!ut.done);ct=et.map(ut=>ut.next()))yield ct.map(ut=>ut.value)}const index_es6$1=Object.freeze(Object.defineProperty({__proto__:null,get ArrayExt(){return ArrayExt},get StringExt(){return StringExt},chain,each,empty:empty$2,enumerate,every,filter:filter$2,find:find$4,findIndex:findIndex$1,map:map$4,max:max$1,min:min$1,minmax,once:once$2,range:range$2,reduce,repeat:repeat$1,retro,some:some$1,stride,take,toArray:toArray$5,toObject:toObject$1,topologicSort,zip:zip$2},Symbol.toStringTag,{value:"Module"}));var dist$1={exports:{}};const require$$0$4=getAugmentedNamespace(index_es6$1);(function(ot,et){(function(ct,ut){ut(et,require$$0$4)})(commonjsGlobal$1,function(ct,ut){ct.JSONExt=void 0,function($t){$t.emptyObject=Object.freeze({}),$t.emptyArray=Object.freeze([]);function kt(e0){return e0===null||typeof e0=="boolean"||typeof e0=="number"||typeof e0=="string"}$t.isPrimitive=kt;function Bt(e0){return Array.isArray(e0)}$t.isArray=Bt;function Ft(e0){return!kt(e0)&&!Bt(e0)}$t.isObject=Ft;function jt(e0,t0){if(e0===t0)return!0;if(kt(e0)||kt(t0))return!1;let Zt=Bt(e0),o0=Bt(t0);return Zt!==o0?!1:Zt&&o0?Yt(e0,t0):Ut(e0,t0)}$t.deepEqual=jt;function Kt(e0){return kt(e0)?e0:Bt(e0)?Jt(e0):Ht(e0)}$t.deepCopy=Kt;function Yt(e0,t0){if(e0===t0)return!0;if(e0.length!==t0.length)return!1;for(let Zt=0,o0=e0.length;Zt<o0;++Zt)if(!jt(e0[Zt],t0[Zt]))return!1;return!0}function Ut(e0,t0){if(e0===t0)return!0;for(let Zt in e0)if(e0[Zt]!==void 0&&!(Zt in t0))return!1;for(let Zt in t0)if(t0[Zt]!==void 0&&!(Zt in e0))return!1;for(let Zt in e0){let o0=e0[Zt],n0=t0[Zt];if(!(o0===void 0&&n0===void 0)&&(o0===void 0||n0===void 0||!jt(o0,n0)))return!1}return!0}function Jt(e0){let t0=new Array(e0.length);for(let Zt=0,o0=e0.length;Zt<o0;++Zt)t0[Zt]=Kt(e0[Zt]);return t0}function Ht(e0){let t0={};for(let Zt in e0){let o0=e0[Zt];o0!==void 0&&(t0[Zt]=Kt(o0))}return t0}}(ct.JSONExt||(ct.JSONExt={}));class dt{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(kt){return this._types.indexOf(kt)!==-1}getData(kt){let Bt=this._types.indexOf(kt);return Bt!==-1?this._values[Bt]:void 0}setData(kt,Bt){this.clearData(kt),this._types.push(kt),this._values.push(Bt)}clearData(kt){let Bt=this._types.indexOf(kt);Bt!==-1&&(this._types.splice(Bt,1),this._values.splice(Bt,1))}clear(){this._types.length=0,this._values.length=0}}class ft{constructor(kt={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,kt.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=kt.validatePlugin)}get application(){return this._application}set application(kt){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=kt}get deferredPlugins(){return Array.from(this._plugins).filter(([kt,Bt])=>Bt.autoStart==="defer").map(([kt,Bt])=>kt)}getPluginDescription(kt){var Bt,Ft;return(Ft=(Bt=this._plugins.get(kt))===null||Bt===void 0?void 0:Bt.description)!==null&&Ft!==void 0?Ft:""}hasPlugin(kt){return this._plugins.has(kt)}isPluginActivated(kt){var Bt,Ft;return(Ft=(Bt=this._plugins.get(kt))===null||Bt===void 0?void 0:Bt.activated)!==null&&Ft!==void 0?Ft:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(kt){if(this._plugins.has(kt.id))throw new TypeError(`Plugin '${kt.id}' is already registered.`);if(!this._validatePlugin(kt))throw new Error(`Plugin '${kt.id}' is not valid.`);const Bt=zt.createPluginData(kt);zt.ensureNoCycle(Bt,this._plugins,this._services),Bt.provides&&this._services.set(Bt.provides,Bt.id),this._plugins.set(Bt.id,Bt)}registerPlugins(kt){for(const Bt of kt)this.registerPlugin(Bt)}deregisterPlugin(kt,Bt){const Ft=this._plugins.get(kt);if(Ft){if(Ft.activated&&!Bt)throw new Error(`Plugin '${kt}' is still active.`);this._plugins.delete(kt)}}async activatePlugin(kt){const Bt=this._plugins.get(kt);if(!Bt)throw new ReferenceError(`Plugin '${kt}' is not registered.`);if(Bt.activated)return;if(Bt.promise)return Bt.promise;const Ft=Bt.requires.map(Kt=>this.resolveRequiredService(Kt)),jt=Bt.optional.map(Kt=>this.resolveOptionalService(Kt));return Bt.promise=Promise.all([...Ft,...jt]).then(Kt=>Bt.activate.apply(void 0,[this.application,...Kt])).then(Kt=>{Bt.service=Kt,Bt.activated=!0,Bt.promise=null}).catch(Kt=>{throw Bt.promise=null,Kt}),Bt.promise}async activatePlugins(kt,Bt={}){switch(kt){case"defer":{const Ft=this.deferredPlugins.filter(jt=>this._plugins.get(jt).autoStart).map(jt=>this.activatePlugin(jt));await Promise.all(Ft);break}case"startUp":{const Ft=zt.collectStartupPlugins(this._plugins,Bt).map(async jt=>{try{return await this.activatePlugin(jt)}catch(Kt){console.error(`Plugin '${jt}' failed to activate.`,Kt)}});await Promise.all(Ft);break}}}async deactivatePlugin(kt){const Bt=this._plugins.get(kt);if(!Bt)throw new ReferenceError(`Plugin '${kt}' is not registered.`);if(!Bt.activated)return[];if(!Bt.deactivate)throw new TypeError(`Plugin '${kt}'#deactivate() method missing`);const Ft=zt.findDependents(kt,this._plugins,this._services),jt=Ft.map(Kt=>this._plugins.get(Kt));for(const Kt of jt)if(!Kt.deactivate)throw new TypeError(`Plugin ${Kt.id}#deactivate() method missing (depends on ${kt})`);for(const Kt of jt){const Yt=[...Kt.requires,...Kt.optional].map(Ut=>{const Jt=this._services.get(Ut);return Jt?this._plugins.get(Jt).service:null});await Kt.deactivate(this.application,...Yt),Kt.service=null,Kt.activated=!1}return Ft.pop(),Ft}async resolveRequiredService(kt){const Bt=this._services.get(kt);if(!Bt)throw new TypeError(`No provider for: ${kt.name}.`);const Ft=this._plugins.get(Bt);return Ft.activated||await this.activatePlugin(Bt),Ft.service}async resolveOptionalService(kt){const Bt=this._services.get(kt);if(!Bt)return null;const Ft=this._plugins.get(Bt);if(!Ft.activated)try{await this.activatePlugin(Bt)}catch(jt){return console.error(jt),null}return Ft.service}}var zt;(function($t){class kt{constructor(Ut){var Jt,Ht,e0,t0;this._activated=!1,this._promise=null,this._service=null,this.id=Ut.id,this.description=(Jt=Ut.description)!==null&&Jt!==void 0?Jt:"",this.activate=Ut.activate,this.deactivate=(Ht=Ut.deactivate)!==null&&Ht!==void 0?Ht:null,this.provides=(e0=Ut.provides)!==null&&e0!==void 0?e0:null,this.autoStart=(t0=Ut.autoStart)!==null&&t0!==void 0?t0:!1,this.requires=Ut.requires?Ut.requires.slice():[],this.optional=Ut.optional?Ut.optional.slice():[]}get activated(){return this._activated}set activated(Ut){this._activated=Ut}get service(){return this._service}set service(Ut){this._service=Ut}get promise(){return this._promise}set promise(Ut){this._promise=Ut}}function Bt(Yt){return new kt(Yt)}$t.createPluginData=Bt;function Ft(Yt,Ut,Jt){const Ht=[...Yt.requires,...Yt.optional],e0=Zt=>{if(Zt===Yt.provides)return!0;const o0=Jt.get(Zt);if(!o0)return!1;const n0=Ut.get(o0),r0=[...n0.requires,...n0.optional];return r0.length===0?!1:(t0.push(o0),r0.some(e0)?!0:(t0.pop(),!1))};if(!Yt.provides||Ht.length===0)return;const t0=[Yt.id];if(Ht.some(e0))throw new ReferenceError(`Cycle detected: ${t0.join(" -> ")}.`)}$t.ensureNoCycle=Ft;function jt(Yt,Ut,Jt){const Ht=new Array,e0=r0=>{const a0=Ut.get(r0),u0=[...a0.requires,...a0.optional];Ht.push(...u0.reduce((p0,_0)=>{const O0=Jt.get(_0);return O0&&p0.push([r0,O0]),p0},[]))};for(const r0 of Ut.keys())e0(r0);const t0=Ht.filter(r0=>r0[1]===Yt);let Zt=0;for(;t0.length>Zt;){const r0=t0.length,a0=new Set(t0.map(u0=>u0[0]));for(const u0 of a0)Ht.filter(p0=>p0[1]===u0).forEach(p0=>{t0.includes(p0)||t0.push(p0)});Zt=r0}const o0=ut.topologicSort(t0),n0=o0.findIndex(r0=>r0===Yt);return n0===-1?[Yt]:o0.slice(0,n0+1)}$t.findDependents=jt;function Kt(Yt,Ut){const Jt=new Set;for(const Ht of Yt.keys())Yt.get(Ht).autoStart===!0&&Jt.add(Ht);if(Ut.startPlugins)for(const Ht of Ut.startPlugins)Jt.add(Ht);if(Ut.ignorePlugins)for(const Ht of Ut.ignorePlugins)Jt.delete(Ht);return Array.from(Jt)}$t.collectStartupPlugins=Kt})(zt||(zt={}));class Dt{constructor(){this.promise=new Promise((kt,Bt)=>{this._resolve=kt,this._reject=Bt})}resolve(kt){let Bt=this._resolve;Bt(kt)}reject(kt){let Bt=this._reject;Bt(kt)}}class St{constructor(kt,Bt){this.name=kt,this.description=Bt??"",this._tokenStructuralPropertyT=null}}function Tt($t){let kt=0;for(let Bt=0,Ft=$t.length;Bt<Ft;++Bt)Bt%4===0&&(kt=Math.random()*4294967295>>>0),$t[Bt]=kt&255,kt>>>=8}ct.Random=void 0,function($t){$t.getRandomValues=(()=>{const kt=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return kt&&typeof kt.getRandomValues=="function"?function(Bt){return kt.getRandomValues(Bt)}:Tt})()}(ct.Random||(ct.Random={}));function Rt($t){const kt=new Uint8Array(16),Bt=new Array(256);for(let Ft=0;Ft<16;++Ft)Bt[Ft]="0"+Ft.toString(16);for(let Ft=16;Ft<256;++Ft)Bt[Ft]=Ft.toString(16);return function(){return $t(kt),kt[6]=64|kt[6]&15,kt[8]=128|kt[8]&63,Bt[kt[0]]+Bt[kt[1]]+Bt[kt[2]]+Bt[kt[3]]+"-"+Bt[kt[4]]+Bt[kt[5]]+"-"+Bt[kt[6]]+Bt[kt[7]]+"-"+Bt[kt[8]]+Bt[kt[9]]+"-"+Bt[kt[10]]+Bt[kt[11]]+Bt[kt[12]]+Bt[kt[13]]+Bt[kt[14]]+Bt[kt[15]]}}ct.UUID=void 0,function($t){$t.uuid4=Rt(ct.Random.getRandomValues)}(ct.UUID||(ct.UUID={})),ct.MimeData=dt,ct.PluginRegistry=ft,ct.PromiseDelegate=Dt,ct.Token=St})})(dist$1,dist$1.exports);var distExports=dist$1.exports;let Signal$2=class{constructor(ot){this.sender=ot}connect(ot,et){return Private.connect(this,ot,et)}disconnect(ot,et){return Private.disconnect(this,ot,et)}emit(ot){Private.emit(this,ot)}};(function(ot){function et(St,Tt){Private.disconnectBetween(St,Tt)}ot.disconnectBetween=et;function ct(St){Private.disconnectSender(St)}ot.disconnectSender=ct;function ut(St){Private.disconnectReceiver(St)}ot.disconnectReceiver=ut;function dt(St){Private.disconnectAll(St)}ot.disconnectAll=dt;function ft(St){Private.disconnectAll(St)}ot.clearData=ft;function zt(){return Private.exceptionHandler}ot.getExceptionHandler=zt;function Dt(St){let Tt=Private.exceptionHandler;return Private.exceptionHandler=St,Tt}ot.setExceptionHandler=Dt})(Signal$2);class Stream extends Signal$2{constructor(){super(...arguments),this._pending=new distExports.PromiseDelegate}async*[Symbol.asyncIterator](){let et=this._pending;for(;;)try{const{args:ct,next:ut}=await et.promise;et=ut,yield ct}catch{return}}emit(et){const ct=this._pending,ut=this._pending=new distExports.PromiseDelegate;ct.resolve({args:et,next:ut}),super.emit(et)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new distExports.PromiseDelegate}}var Private;(function(ot){ot.exceptionHandler=Ut=>{console.error(Ut)};function et(Ut,Jt,Ht){Ht=Ht||void 0;let e0=St.get(Ut.sender);if(e0||(e0=[],St.set(Ut.sender,e0)),kt(e0,Ut,Jt,Ht))return!1;let t0=Ht||Jt,Zt=Tt.get(t0);Zt||(Zt=[],Tt.set(t0,Zt));let o0={signal:Ut,slot:Jt,thisArg:Ht};return e0.push(o0),Zt.push(o0),!0}ot.connect=et;function ct(Ut,Jt,Ht){Ht=Ht||void 0;let e0=St.get(Ut.sender);if(!e0||e0.length===0)return!1;let t0=kt(e0,Ut,Jt,Ht);if(!t0)return!1;let Zt=Ht||Jt,o0=Tt.get(Zt);return t0.signal=null,Ft(e0),Ft(o0),!0}ot.disconnect=ct;function ut(Ut,Jt){let Ht=St.get(Ut);if(!Ht||Ht.length===0)return;let e0=Tt.get(Jt);if(!(!e0||e0.length===0)){for(const t0 of e0)t0.signal&&t0.signal.sender===Ut&&(t0.signal=null);Ft(Ht),Ft(e0)}}ot.disconnectBetween=ut;function dt(Ut){let Jt=St.get(Ut);if(!(!Jt||Jt.length===0)){for(const Ht of Jt){if(!Ht.signal)continue;let e0=Ht.thisArg||Ht.slot;Ht.signal=null,Ft(Tt.get(e0))}Ft(Jt)}}ot.disconnectSender=dt;function ft(Ut){let Jt=Tt.get(Ut);if(!(!Jt||Jt.length===0)){for(const Ht of Jt){if(!Ht.signal)continue;let e0=Ht.signal.sender;Ht.signal=null,Ft(St.get(e0))}Ft(Jt)}}ot.disconnectReceiver=ft;function zt(Ut){dt(Ut),ft(Ut)}ot.disconnectAll=zt;function Dt(Ut,Jt){let Ht=St.get(Ut.sender);if(!(!Ht||Ht.length===0))for(let e0=0,t0=Ht.length;e0<t0;++e0){let Zt=Ht[e0];Zt.signal===Ut&&Bt(Zt,Jt)}}ot.emit=Dt;const St=new WeakMap,Tt=new WeakMap,Rt=new Set,$t=typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate;function kt(Ut,Jt,Ht,e0){return find$4(Ut,t0=>t0.signal===Jt&&t0.slot===Ht&&t0.thisArg===e0)}function Bt(Ut,Jt){let{signal:Ht,slot:e0,thisArg:t0}=Ut;try{e0.call(t0,Ht.sender,Jt)}catch(Zt){ot.exceptionHandler(Zt)}}function Ft(Ut){Rt.size===0&&$t(jt),Rt.add(Ut)}function jt(){Rt.forEach(Kt),Rt.clear()}function Kt(Ut){ArrayExt.removeAllWhere(Ut,Yt)}function Yt(Ut){return Ut.signal===null}})(Private||(Private={}));const index_es6=Object.freeze(Object.defineProperty({__proto__:null,Signal:Signal$2,Stream},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(index_es6);Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const signaling_1=require$$0$3;class ActivityMonitor{constructor(et){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new signaling_1.Signal(this),et.signal.connect(this._onSignalFired,this),this._timeout=et.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(et){this._timeout=et}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,signaling_1.Signal.clearData(this))}_onSignalFired(et,ct){clearTimeout(this._timer),this._sender=et,this._args=ct,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}}activitymonitor.ActivityMonitor=ActivityMonitor;var interfaces={};Object.defineProperty(interfaces,"__esModule",{value:!0});var lru={};Object.defineProperty(lru,"__esModule",{value:!0}),lru.LruCache=void 0;const DEFAULT_MAX_SIZE=128;class LruCache{constructor(et={}){this._map=new Map,this._maxSize=(et==null?void 0:et.maxSize)||DEFAULT_MAX_SIZE}get size(){return this._map.size}clear(){this._map.clear()}get(et){const ct=this._map.get(et)||null;return ct!=null&&(this._map.delete(et),this._map.set(et,ct)),ct}set(et,ct){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(et,ct)}}lru.LruCache=LruCache;var markdowncodeblocks={};Object.defineProperty(markdowncodeblocks,"__esModule",{value:!0}),markdowncodeblocks.MarkdownCodeBlocks=void 0;var MarkdownCodeBlocks;(function(ot){ot.CODE_BLOCK_MARKER="```";const et=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class ct{constructor(zt){this.startLine=zt,this.code="",this.endLine=-1}}ot.MarkdownCodeBlock=ct;function ut(ft){return et.indexOf(ft)>-1}ot.isMarkdown=ut;function dt(ft){if(!ft||ft==="")return[];const zt=ft.split(`
|
|
9
|
+
`+ft.stack}return{value:ot,source:et,stack:dt,digest:null}}function Li(ot,et,ct){return{value:ot,source:null,stack:ct??null,digest:et??null}}function Mi(ot,et){try{console.error(et.value)}catch(ct){setTimeout(function(){throw ct})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3,ct.payload={element:null};var ut=et.value;return ct.callback=function(){Pi||(Pi=!0,Qi=ut),Mi(ot,et)},ct}function Ri(ot,et,ct){ct=ch$1(-1,ct),ct.tag=3;var ut=ot.type.getDerivedStateFromError;if(typeof ut=="function"){var dt=et.value;ct.payload=function(){return ut(dt)},ct.callback=function(){Mi(ot,et)}}var ft=ot.stateNode;return ft!==null&&typeof ft.componentDidCatch=="function"&&(ct.callback=function(){Mi(ot,et),typeof ut!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var zt=et.stack;this.componentDidCatch(et.value,{componentStack:zt!==null?zt:""})}),ct}function Ti(ot,et,ct){var ut=ot.pingCache;if(ut===null){ut=ot.pingCache=new Ni;var dt=new Set;ut.set(et,dt)}else dt=ut.get(et),dt===void 0&&(dt=new Set,ut.set(et,dt));dt.has(ct)||(dt.add(ct),ot=Ui.bind(null,ot,et,ct),et.then(ot,ot))}function Vi(ot){do{var et;if((et=ot.tag===13)&&(et=ot.memoizedState,et=et!==null?et.dehydrated!==null:!0),et)return ot;ot=ot.return}while(ot!==null);return null}function Wi(ot,et,ct,ut,dt){return ot.mode&1?(ot.flags|=65536,ot.lanes=dt,ot):(ot===et?ot.flags|=65536:(ot.flags|=128,ct.flags|=131072,ct.flags&=-52805,ct.tag===1&&(ct.alternate===null?ct.tag=17:(et=ch$1(-1,1),et.tag=2,dh(ct,et,1))),ct.lanes|=1),ot)}var Xi=ua$1.ReactCurrentOwner,Ug=!1;function Yi(ot,et,ct,ut){et.child=ot===null?Ch(et,null,ct,ut):Bh(et,ot.child,ct,ut)}function Zi(ot,et,ct,ut,dt){ct=ct.render;var ft=et.ref;return Tg(et,dt),ut=Xh(ot,et,ct,ut,ft,dt),ct=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ct&&vg(et),et.flags|=1,Yi(ot,et,ut,dt),et.child)}function aj(ot,et,ct,ut,dt){if(ot===null){var ft=ct.type;return typeof ft=="function"&&!bj(ft)&&ft.defaultProps===void 0&&ct.compare===null&&ct.defaultProps===void 0?(et.tag=15,et.type=ft,cj(ot,et,ft,ut,dt)):(ot=yh(ct.type,null,ut,et,et.mode,dt),ot.ref=et.ref,ot.return=et,et.child=ot)}if(ft=ot.child,!(ot.lanes&dt)){var zt=ft.memoizedProps;if(ct=ct.compare,ct=ct!==null?ct:Ie,ct(zt,ut)&&ot.ref===et.ref)return $i(ot,et,dt)}return et.flags|=1,ot=wh(ft,ut),ot.ref=et.ref,ot.return=et,et.child=ot}function cj(ot,et,ct,ut,dt){if(ot!==null){var ft=ot.memoizedProps;if(Ie(ft,ut)&&ot.ref===et.ref)if(Ug=!1,et.pendingProps=ut=ft,(ot.lanes&dt)!==0)ot.flags&131072&&(Ug=!0);else return et.lanes=ot.lanes,$i(ot,et,dt)}return dj(ot,et,ct,ut,dt)}function ej(ot,et,ct){var ut=et.pendingProps,dt=ut.children,ft=ot!==null?ot.memoizedState:null;if(ut.mode==="hidden")if(!(et.mode&1))et.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$3(fj,gj),gj|=ct;else{if(!(ct&1073741824))return ot=ft!==null?ft.baseLanes|ct:ct,et.lanes=et.childLanes=1073741824,et.memoizedState={baseLanes:ot,cachePool:null,transitions:null},et.updateQueue=null,G$3(fj,gj),gj|=ot,null;et.memoizedState={baseLanes:0,cachePool:null,transitions:null},ut=ft!==null?ft.baseLanes:ct,G$3(fj,gj),gj|=ut}else ft!==null?(ut=ft.baseLanes|ct,et.memoizedState=null):ut=ct,G$3(fj,gj),gj|=ut;return Yi(ot,et,dt,ct),et.child}function hj(ot,et){var ct=et.ref;(ot===null&&ct!==null||ot!==null&&ot.ref!==ct)&&(et.flags|=512,et.flags|=2097152)}function dj(ot,et,ct,ut,dt){var ft=Zf(ct)?Xf:H$2.current;return ft=Yf(et,ft),Tg(et,dt),ct=Xh(ot,et,ct,ut,ft,dt),ut=bi(),ot!==null&&!Ug?(et.updateQueue=ot.updateQueue,et.flags&=-2053,ot.lanes&=~dt,$i(ot,et,dt)):(I$2&&ut&&vg(et),et.flags|=1,Yi(ot,et,ct,dt),et.child)}function ij(ot,et,ct,ut,dt){if(Zf(ct)){var ft=!0;cg(et)}else ft=!1;if(Tg(et,dt),et.stateNode===null)jj(ot,et),ph(et,ct,ut),rh(et,ct,ut,dt),ut=!0;else if(ot===null){var zt=et.stateNode,Dt=et.memoizedProps;zt.props=Dt;var St=zt.context,Tt=ct.contextType;typeof Tt=="object"&&Tt!==null?Tt=Vg(Tt):(Tt=Zf(ct)?Xf:H$2.current,Tt=Yf(et,Tt));var Rt=ct.getDerivedStateFromProps,$t=typeof Rt=="function"||typeof zt.getSnapshotBeforeUpdate=="function";$t||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==ut||St!==Tt)&&qh(et,zt,ut,Tt),$g=!1;var kt=et.memoizedState;zt.state=kt,gh(et,ut,zt,dt),St=et.memoizedState,Dt!==ut||kt!==St||Wf.current||$g?(typeof Rt=="function"&&(kh(et,ct,Rt,ut),St=et.memoizedState),(Dt=$g||oh(et,ct,Dt,ut,kt,St,Tt))?($t||typeof zt.UNSAFE_componentWillMount!="function"&&typeof zt.componentWillMount!="function"||(typeof zt.componentWillMount=="function"&&zt.componentWillMount(),typeof zt.UNSAFE_componentWillMount=="function"&&zt.UNSAFE_componentWillMount()),typeof zt.componentDidMount=="function"&&(et.flags|=4194308)):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),et.memoizedProps=ut,et.memoizedState=St),zt.props=ut,zt.state=St,zt.context=Tt,ut=Dt):(typeof zt.componentDidMount=="function"&&(et.flags|=4194308),ut=!1)}else{zt=et.stateNode,bh(ot,et),Dt=et.memoizedProps,Tt=et.type===et.elementType?Dt:Lg(et.type,Dt),zt.props=Tt,$t=et.pendingProps,kt=zt.context,St=ct.contextType,typeof St=="object"&&St!==null?St=Vg(St):(St=Zf(ct)?Xf:H$2.current,St=Yf(et,St));var Bt=ct.getDerivedStateFromProps;(Rt=typeof Bt=="function"||typeof zt.getSnapshotBeforeUpdate=="function")||typeof zt.UNSAFE_componentWillReceiveProps!="function"&&typeof zt.componentWillReceiveProps!="function"||(Dt!==$t||kt!==St)&&qh(et,zt,ut,St),$g=!1,kt=et.memoizedState,zt.state=kt,gh(et,ut,zt,dt);var Ft=et.memoizedState;Dt!==$t||kt!==Ft||Wf.current||$g?(typeof Bt=="function"&&(kh(et,ct,Bt,ut),Ft=et.memoizedState),(Tt=$g||oh(et,ct,Tt,ut,kt,Ft,St)||!1)?(Rt||typeof zt.UNSAFE_componentWillUpdate!="function"&&typeof zt.componentWillUpdate!="function"||(typeof zt.componentWillUpdate=="function"&&zt.componentWillUpdate(ut,Ft,St),typeof zt.UNSAFE_componentWillUpdate=="function"&&zt.UNSAFE_componentWillUpdate(ut,Ft,St)),typeof zt.componentDidUpdate=="function"&&(et.flags|=4),typeof zt.getSnapshotBeforeUpdate=="function"&&(et.flags|=1024)):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),et.memoizedProps=ut,et.memoizedState=Ft),zt.props=ut,zt.state=Ft,zt.context=St,ut=Tt):(typeof zt.componentDidUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=4),typeof zt.getSnapshotBeforeUpdate!="function"||Dt===ot.memoizedProps&&kt===ot.memoizedState||(et.flags|=1024),ut=!1)}return kj(ot,et,ct,ut,ft,dt)}function kj(ot,et,ct,ut,dt,ft){hj(ot,et);var zt=(et.flags&128)!==0;if(!ut&&!zt)return dt&&dg(et,ct,!1),$i(ot,et,ft);ut=et.stateNode,Xi.current=et;var Dt=zt&&typeof ct.getDerivedStateFromError!="function"?null:ut.render();return et.flags|=1,ot!==null&&zt?(et.child=Bh(et,ot.child,null,ft),et.child=Bh(et,null,Dt,ft)):Yi(ot,et,Dt,ft),et.memoizedState=ut.state,dt&&dg(et,ct,!0),et.child}function lj(ot){var et=ot.stateNode;et.pendingContext?ag(ot,et.pendingContext,et.pendingContext!==et.context):et.context&&ag(ot,et.context,!1),Ih(ot,et.containerInfo)}function mj(ot,et,ct,ut,dt){return Ig(),Jg(dt),et.flags|=256,Yi(ot,et,ct,ut),et.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(ot){return{baseLanes:ot,cachePool:null,transitions:null}}function pj(ot,et,ct){var ut=et.pendingProps,dt=M$2.current,ft=!1,zt=(et.flags&128)!==0,Dt;if((Dt=zt)||(Dt=ot!==null&&ot.memoizedState===null?!1:(dt&2)!==0),Dt?(ft=!0,et.flags&=-129):(ot===null||ot.memoizedState!==null)&&(dt|=1),G$3(M$2,dt&1),ot===null)return Eg(et),ot=et.memoizedState,ot!==null&&(ot=ot.dehydrated,ot!==null)?(et.mode&1?ot.data==="$!"?et.lanes=8:et.lanes=1073741824:et.lanes=1,null):(zt=ut.children,ot=ut.fallback,ft?(ut=et.mode,ft=et.child,zt={mode:"hidden",children:zt},!(ut&1)&&ft!==null?(ft.childLanes=0,ft.pendingProps=zt):ft=qj(zt,ut,0,null),ot=Ah(ot,ut,ct,null),ft.return=et,ot.return=et,ft.sibling=ot,et.child=ft,et.child.memoizedState=oj(ct),et.memoizedState=nj,ot):rj(et,zt));if(dt=ot.memoizedState,dt!==null&&(Dt=dt.dehydrated,Dt!==null))return sj(ot,et,zt,ut,Dt,dt,ct);if(ft){ft=ut.fallback,zt=et.mode,dt=ot.child,Dt=dt.sibling;var St={mode:"hidden",children:ut.children};return!(zt&1)&&et.child!==dt?(ut=et.child,ut.childLanes=0,ut.pendingProps=St,et.deletions=null):(ut=wh(dt,St),ut.subtreeFlags=dt.subtreeFlags&14680064),Dt!==null?ft=wh(Dt,ft):(ft=Ah(ft,zt,ct,null),ft.flags|=2),ft.return=et,ut.return=et,ut.sibling=ft,et.child=ut,ut=ft,ft=et.child,zt=ot.child.memoizedState,zt=zt===null?oj(ct):{baseLanes:zt.baseLanes|ct,cachePool:null,transitions:zt.transitions},ft.memoizedState=zt,ft.childLanes=ot.childLanes&~ct,et.memoizedState=nj,ut}return ft=ot.child,ot=ft.sibling,ut=wh(ft,{mode:"visible",children:ut.children}),!(et.mode&1)&&(ut.lanes=ct),ut.return=et,ut.sibling=null,ot!==null&&(ct=et.deletions,ct===null?(et.deletions=[ot],et.flags|=16):ct.push(ot)),et.child=ut,et.memoizedState=null,ut}function rj(ot,et){return et=qj({mode:"visible",children:et},ot.mode,0,null),et.return=ot,ot.child=et}function tj(ot,et,ct,ut){return ut!==null&&Jg(ut),Bh(et,ot.child,null,ct),ot=rj(et,et.pendingProps.children),ot.flags|=2,et.memoizedState=null,ot}function sj(ot,et,ct,ut,dt,ft,zt){if(ct)return et.flags&256?(et.flags&=-257,ut=Li(Error(p$4(422))),tj(ot,et,zt,ut)):et.memoizedState!==null?(et.child=ot.child,et.flags|=128,null):(ft=ut.fallback,dt=et.mode,ut=qj({mode:"visible",children:ut.children},dt,0,null),ft=Ah(ft,dt,zt,null),ft.flags|=2,ut.return=et,ft.return=et,ut.sibling=ft,et.child=ut,et.mode&1&&Bh(et,ot.child,null,zt),et.child.memoizedState=oj(zt),et.memoizedState=nj,ft);if(!(et.mode&1))return tj(ot,et,zt,null);if(dt.data==="$!"){if(ut=dt.nextSibling&&dt.nextSibling.dataset,ut)var Dt=ut.dgst;return ut=Dt,ft=Error(p$4(419)),ut=Li(ft,ut,void 0),tj(ot,et,zt,ut)}if(Dt=(zt&ot.childLanes)!==0,Ug||Dt){if(ut=R$2,ut!==null){switch(zt&-zt){case 4:dt=2;break;case 16:dt=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:dt=32;break;case 536870912:dt=268435456;break;default:dt=0}dt=dt&(ut.suspendedLanes|zt)?0:dt,dt!==0&&dt!==ft.retryLane&&(ft.retryLane=dt,Zg(ot,dt),mh(ut,ot,dt,-1))}return uj(),ut=Li(Error(p$4(421))),tj(ot,et,zt,ut)}return dt.data==="$?"?(et.flags|=128,et.child=ot.child,et=vj.bind(null,ot),dt._reactRetry=et,null):(ot=ft.treeContext,yg=Lf(dt.nextSibling),xg=et,I$2=!0,zg=null,ot!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=ot.id,sg=ot.overflow,qg=et),et=rj(et,ut.children),et.flags|=4096,et)}function wj(ot,et,ct){ot.lanes|=et;var ut=ot.alternate;ut!==null&&(ut.lanes|=et),Sg(ot.return,et,ct)}function xj(ot,et,ct,ut,dt){var ft=ot.memoizedState;ft===null?ot.memoizedState={isBackwards:et,rendering:null,renderingStartTime:0,last:ut,tail:ct,tailMode:dt}:(ft.isBackwards=et,ft.rendering=null,ft.renderingStartTime=0,ft.last=ut,ft.tail=ct,ft.tailMode=dt)}function yj(ot,et,ct){var ut=et.pendingProps,dt=ut.revealOrder,ft=ut.tail;if(Yi(ot,et,ut.children,ct),ut=M$2.current,ut&2)ut=ut&1|2,et.flags|=128;else{if(ot!==null&&ot.flags&128)e:for(ot=et.child;ot!==null;){if(ot.tag===13)ot.memoizedState!==null&&wj(ot,ct,et);else if(ot.tag===19)wj(ot,ct,et);else if(ot.child!==null){ot.child.return=ot,ot=ot.child;continue}if(ot===et)break e;for(;ot.sibling===null;){if(ot.return===null||ot.return===et)break e;ot=ot.return}ot.sibling.return=ot.return,ot=ot.sibling}ut&=1}if(G$3(M$2,ut),!(et.mode&1))et.memoizedState=null;else switch(dt){case"forwards":for(ct=et.child,dt=null;ct!==null;)ot=ct.alternate,ot!==null&&Mh(ot)===null&&(dt=ct),ct=ct.sibling;ct=dt,ct===null?(dt=et.child,et.child=null):(dt=ct.sibling,ct.sibling=null),xj(et,!1,dt,ct,ft);break;case"backwards":for(ct=null,dt=et.child,et.child=null;dt!==null;){if(ot=dt.alternate,ot!==null&&Mh(ot)===null){et.child=dt;break}ot=dt.sibling,dt.sibling=ct,ct=dt,dt=ot}xj(et,!0,ct,null,ft);break;case"together":xj(et,!1,null,null,void 0);break;default:et.memoizedState=null}return et.child}function jj(ot,et){!(et.mode&1)&&ot!==null&&(ot.alternate=null,et.alternate=null,et.flags|=2)}function $i(ot,et,ct){if(ot!==null&&(et.dependencies=ot.dependencies),hh|=et.lanes,!(ct&et.childLanes))return null;if(ot!==null&&et.child!==ot.child)throw Error(p$4(153));if(et.child!==null){for(ot=et.child,ct=wh(ot,ot.pendingProps),et.child=ct,ct.return=et;ot.sibling!==null;)ot=ot.sibling,ct=ct.sibling=wh(ot,ot.pendingProps),ct.return=et;ct.sibling=null}return et.child}function zj(ot,et,ct){switch(et.tag){case 3:lj(et),Ig();break;case 5:Kh(et);break;case 1:Zf(et.type)&&cg(et);break;case 4:Ih(et,et.stateNode.containerInfo);break;case 10:var ut=et.type._context,dt=et.memoizedProps.value;G$3(Mg,ut._currentValue),ut._currentValue=dt;break;case 13:if(ut=et.memoizedState,ut!==null)return ut.dehydrated!==null?(G$3(M$2,M$2.current&1),et.flags|=128,null):ct&et.child.childLanes?pj(ot,et,ct):(G$3(M$2,M$2.current&1),ot=$i(ot,et,ct),ot!==null?ot.sibling:null);G$3(M$2,M$2.current&1);break;case 19:if(ut=(ct&et.childLanes)!==0,ot.flags&128){if(ut)return yj(ot,et,ct);et.flags|=128}if(dt=et.memoizedState,dt!==null&&(dt.rendering=null,dt.tail=null,dt.lastEffect=null),G$3(M$2,M$2.current),ut)break;return null;case 22:case 23:return et.lanes=0,ej(ot,et,ct)}return $i(ot,et,ct)}var Aj,Bj,Cj,Dj;Aj=function(ot,et){for(var ct=et.child;ct!==null;){if(ct.tag===5||ct.tag===6)ot.appendChild(ct.stateNode);else if(ct.tag!==4&&ct.child!==null){ct.child.return=ct,ct=ct.child;continue}if(ct===et)break;for(;ct.sibling===null;){if(ct.return===null||ct.return===et)return;ct=ct.return}ct.sibling.return=ct.return,ct=ct.sibling}},Bj=function(){},Cj=function(ot,et,ct,ut){var dt=ot.memoizedProps;if(dt!==ut){ot=et.stateNode,Hh(Eh.current);var ft=null;switch(ct){case"input":dt=Ya(ot,dt),ut=Ya(ot,ut),ft=[];break;case"select":dt=A$2({},dt,{value:void 0}),ut=A$2({},ut,{value:void 0}),ft=[];break;case"textarea":dt=gb$1(ot,dt),ut=gb$1(ot,ut),ft=[];break;default:typeof dt.onClick!="function"&&typeof ut.onClick=="function"&&(ot.onclick=Bf)}ub(ct,ut);var zt;ct=null;for(Tt in dt)if(!ut.hasOwnProperty(Tt)&&dt.hasOwnProperty(Tt)&&dt[Tt]!=null)if(Tt==="style"){var Dt=dt[Tt];for(zt in Dt)Dt.hasOwnProperty(zt)&&(ct||(ct={}),ct[zt]="")}else Tt!=="dangerouslySetInnerHTML"&&Tt!=="children"&&Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&Tt!=="autoFocus"&&(ea.hasOwnProperty(Tt)?ft||(ft=[]):(ft=ft||[]).push(Tt,null));for(Tt in ut){var St=ut[Tt];if(Dt=dt==null?void 0:dt[Tt],ut.hasOwnProperty(Tt)&&St!==Dt&&(St!=null||Dt!=null))if(Tt==="style")if(Dt){for(zt in Dt)!Dt.hasOwnProperty(zt)||St&&St.hasOwnProperty(zt)||(ct||(ct={}),ct[zt]="");for(zt in St)St.hasOwnProperty(zt)&&Dt[zt]!==St[zt]&&(ct||(ct={}),ct[zt]=St[zt])}else ct||(ft||(ft=[]),ft.push(Tt,ct)),ct=St;else Tt==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,Dt=Dt?Dt.__html:void 0,St!=null&&Dt!==St&&(ft=ft||[]).push(Tt,St)):Tt==="children"?typeof St!="string"&&typeof St!="number"||(ft=ft||[]).push(Tt,""+St):Tt!=="suppressContentEditableWarning"&&Tt!=="suppressHydrationWarning"&&(ea.hasOwnProperty(Tt)?(St!=null&&Tt==="onScroll"&&D$3("scroll",ot),ft||Dt===St||(ft=[])):(ft=ft||[]).push(Tt,St))}ct&&(ft=ft||[]).push("style",ct);var Tt=ft;(et.updateQueue=Tt)&&(et.flags|=4)}},Dj=function(ot,et,ct,ut){ct!==ut&&(et.flags|=4)};function Ej(ot,et){if(!I$2)switch(ot.tailMode){case"hidden":et=ot.tail;for(var ct=null;et!==null;)et.alternate!==null&&(ct=et),et=et.sibling;ct===null?ot.tail=null:ct.sibling=null;break;case"collapsed":ct=ot.tail;for(var ut=null;ct!==null;)ct.alternate!==null&&(ut=ct),ct=ct.sibling;ut===null?et||ot.tail===null?ot.tail=null:ot.tail.sibling=null:ut.sibling=null}}function S$3(ot){var et=ot.alternate!==null&&ot.alternate.child===ot.child,ct=0,ut=0;if(et)for(var dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags&14680064,ut|=dt.flags&14680064,dt.return=ot,dt=dt.sibling;else for(dt=ot.child;dt!==null;)ct|=dt.lanes|dt.childLanes,ut|=dt.subtreeFlags,ut|=dt.flags,dt.return=ot,dt=dt.sibling;return ot.subtreeFlags|=ut,ot.childLanes=ct,et}function Fj(ot,et,ct){var ut=et.pendingProps;switch(wg(et),et.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$3(et),null;case 1:return Zf(et.type)&&$f(),S$3(et),null;case 3:return ut=et.stateNode,Jh(),E$2(Wf),E$2(H$2),Oh(),ut.pendingContext&&(ut.context=ut.pendingContext,ut.pendingContext=null),(ot===null||ot.child===null)&&(Gg(et)?et.flags|=4:ot===null||ot.memoizedState.isDehydrated&&!(et.flags&256)||(et.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(ot,et),S$3(et),null;case 5:Lh(et);var dt=Hh(Gh.current);if(ct=et.type,ot!==null&&et.stateNode!=null)Cj(ot,et,ct,ut,dt),ot.ref!==et.ref&&(et.flags|=512,et.flags|=2097152);else{if(!ut){if(et.stateNode===null)throw Error(p$4(166));return S$3(et),null}if(ot=Hh(Eh.current),Gg(et)){ut=et.stateNode,ct=et.type;var ft=et.memoizedProps;switch(ut[Of]=et,ut[Pf]=ft,ot=(et.mode&1)!==0,ct){case"dialog":D$3("cancel",ut),D$3("close",ut);break;case"iframe":case"object":case"embed":D$3("load",ut);break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ut);break;case"source":D$3("error",ut);break;case"img":case"image":case"link":D$3("error",ut),D$3("load",ut);break;case"details":D$3("toggle",ut);break;case"input":Za(ut,ft),D$3("invalid",ut);break;case"select":ut._wrapperState={wasMultiple:!!ft.multiple},D$3("invalid",ut);break;case"textarea":hb(ut,ft),D$3("invalid",ut)}ub(ct,ft),dt=null;for(var zt in ft)if(ft.hasOwnProperty(zt)){var Dt=ft[zt];zt==="children"?typeof Dt=="string"?ut.textContent!==Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",Dt]):typeof Dt=="number"&&ut.textContent!==""+Dt&&(ft.suppressHydrationWarning!==!0&&Af(ut.textContent,Dt,ot),dt=["children",""+Dt]):ea.hasOwnProperty(zt)&&Dt!=null&&zt==="onScroll"&&D$3("scroll",ut)}switch(ct){case"input":Va(ut),db(ut,ft,!0);break;case"textarea":Va(ut),jb(ut);break;case"select":case"option":break;default:typeof ft.onClick=="function"&&(ut.onclick=Bf)}ut=dt,et.updateQueue=ut,ut!==null&&(et.flags|=4)}else{zt=dt.nodeType===9?dt:dt.ownerDocument,ot==="http://www.w3.org/1999/xhtml"&&(ot=kb(ct)),ot==="http://www.w3.org/1999/xhtml"?ct==="script"?(ot=zt.createElement("div"),ot.innerHTML="<script><\/script>",ot=ot.removeChild(ot.firstChild)):typeof ut.is=="string"?ot=zt.createElement(ct,{is:ut.is}):(ot=zt.createElement(ct),ct==="select"&&(zt=ot,ut.multiple?zt.multiple=!0:ut.size&&(zt.size=ut.size))):ot=zt.createElementNS(ot,ct),ot[Of]=et,ot[Pf]=ut,Aj(ot,et,!1,!1),et.stateNode=ot;e:{switch(zt=vb(ct,ut),ct){case"dialog":D$3("cancel",ot),D$3("close",ot),dt=ut;break;case"iframe":case"object":case"embed":D$3("load",ot),dt=ut;break;case"video":case"audio":for(dt=0;dt<lf.length;dt++)D$3(lf[dt],ot);dt=ut;break;case"source":D$3("error",ot),dt=ut;break;case"img":case"image":case"link":D$3("error",ot),D$3("load",ot),dt=ut;break;case"details":D$3("toggle",ot),dt=ut;break;case"input":Za(ot,ut),dt=Ya(ot,ut),D$3("invalid",ot);break;case"option":dt=ut;break;case"select":ot._wrapperState={wasMultiple:!!ut.multiple},dt=A$2({},ut,{value:void 0}),D$3("invalid",ot);break;case"textarea":hb(ot,ut),dt=gb$1(ot,ut),D$3("invalid",ot);break;default:dt=ut}ub(ct,dt),Dt=dt;for(ft in Dt)if(Dt.hasOwnProperty(ft)){var St=Dt[ft];ft==="style"?sb(ot,St):ft==="dangerouslySetInnerHTML"?(St=St?St.__html:void 0,St!=null&&nb(ot,St)):ft==="children"?typeof St=="string"?(ct!=="textarea"||St!=="")&&ob(ot,St):typeof St=="number"&&ob(ot,""+St):ft!=="suppressContentEditableWarning"&&ft!=="suppressHydrationWarning"&&ft!=="autoFocus"&&(ea.hasOwnProperty(ft)?St!=null&&ft==="onScroll"&&D$3("scroll",ot):St!=null&&ta(ot,ft,St,zt))}switch(ct){case"input":Va(ot),db(ot,ut,!1);break;case"textarea":Va(ot),jb(ot);break;case"option":ut.value!=null&&ot.setAttribute("value",""+Sa(ut.value));break;case"select":ot.multiple=!!ut.multiple,ft=ut.value,ft!=null?fb(ot,!!ut.multiple,ft,!1):ut.defaultValue!=null&&fb(ot,!!ut.multiple,ut.defaultValue,!0);break;default:typeof dt.onClick=="function"&&(ot.onclick=Bf)}switch(ct){case"button":case"input":case"select":case"textarea":ut=!!ut.autoFocus;break e;case"img":ut=!0;break e;default:ut=!1}}ut&&(et.flags|=4)}et.ref!==null&&(et.flags|=512,et.flags|=2097152)}return S$3(et),null;case 6:if(ot&&et.stateNode!=null)Dj(ot,et,ot.memoizedProps,ut);else{if(typeof ut!="string"&&et.stateNode===null)throw Error(p$4(166));if(ct=Hh(Gh.current),Hh(Eh.current),Gg(et)){if(ut=et.stateNode,ct=et.memoizedProps,ut[Of]=et,(ft=ut.nodeValue!==ct)&&(ot=xg,ot!==null))switch(ot.tag){case 3:Af(ut.nodeValue,ct,(ot.mode&1)!==0);break;case 5:ot.memoizedProps.suppressHydrationWarning!==!0&&Af(ut.nodeValue,ct,(ot.mode&1)!==0)}ft&&(et.flags|=4)}else ut=(ct.nodeType===9?ct:ct.ownerDocument).createTextNode(ut),ut[Of]=et,et.stateNode=ut}return S$3(et),null;case 13:if(E$2(M$2),ut=et.memoizedState,ot===null||ot.memoizedState!==null&&ot.memoizedState.dehydrated!==null){if(I$2&&yg!==null&&et.mode&1&&!(et.flags&128))Hg(),Ig(),et.flags|=98560,ft=!1;else if(ft=Gg(et),ut!==null&&ut.dehydrated!==null){if(ot===null){if(!ft)throw Error(p$4(318));if(ft=et.memoizedState,ft=ft!==null?ft.dehydrated:null,!ft)throw Error(p$4(317));ft[Of]=et}else Ig(),!(et.flags&128)&&(et.memoizedState=null),et.flags|=4;S$3(et),ft=!1}else zg!==null&&(Gj(zg),zg=null),ft=!0;if(!ft)return et.flags&65536?et:null}return et.flags&128?(et.lanes=ct,et):(ut=ut!==null,ut!==(ot!==null&&ot.memoizedState!==null)&&ut&&(et.child.flags|=8192,et.mode&1&&(ot===null||M$2.current&1?T$2===0&&(T$2=3):uj())),et.updateQueue!==null&&(et.flags|=4),S$3(et),null);case 4:return Jh(),Bj(ot,et),ot===null&&sf(et.stateNode.containerInfo),S$3(et),null;case 10:return Rg(et.type._context),S$3(et),null;case 17:return Zf(et.type)&&$f(),S$3(et),null;case 19:if(E$2(M$2),ft=et.memoizedState,ft===null)return S$3(et),null;if(ut=(et.flags&128)!==0,zt=ft.rendering,zt===null)if(ut)Ej(ft,!1);else{if(T$2!==0||ot!==null&&ot.flags&128)for(ot=et.child;ot!==null;){if(zt=Mh(ot),zt!==null){for(et.flags|=128,Ej(ft,!1),ut=zt.updateQueue,ut!==null&&(et.updateQueue=ut,et.flags|=4),et.subtreeFlags=0,ut=ct,ct=et.child;ct!==null;)ft=ct,ot=ut,ft.flags&=14680066,zt=ft.alternate,zt===null?(ft.childLanes=0,ft.lanes=ot,ft.child=null,ft.subtreeFlags=0,ft.memoizedProps=null,ft.memoizedState=null,ft.updateQueue=null,ft.dependencies=null,ft.stateNode=null):(ft.childLanes=zt.childLanes,ft.lanes=zt.lanes,ft.child=zt.child,ft.subtreeFlags=0,ft.deletions=null,ft.memoizedProps=zt.memoizedProps,ft.memoizedState=zt.memoizedState,ft.updateQueue=zt.updateQueue,ft.type=zt.type,ot=zt.dependencies,ft.dependencies=ot===null?null:{lanes:ot.lanes,firstContext:ot.firstContext}),ct=ct.sibling;return G$3(M$2,M$2.current&1|2),et.child}ot=ot.sibling}ft.tail!==null&&B$3()>Hj&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304)}else{if(!ut)if(ot=Mh(zt),ot!==null){if(et.flags|=128,ut=!0,ct=ot.updateQueue,ct!==null&&(et.updateQueue=ct,et.flags|=4),Ej(ft,!0),ft.tail===null&&ft.tailMode==="hidden"&&!zt.alternate&&!I$2)return S$3(et),null}else 2*B$3()-ft.renderingStartTime>Hj&&ct!==1073741824&&(et.flags|=128,ut=!0,Ej(ft,!1),et.lanes=4194304);ft.isBackwards?(zt.sibling=et.child,et.child=zt):(ct=ft.last,ct!==null?ct.sibling=zt:et.child=zt,ft.last=zt)}return ft.tail!==null?(et=ft.tail,ft.rendering=et,ft.tail=et.sibling,ft.renderingStartTime=B$3(),et.sibling=null,ct=M$2.current,G$3(M$2,ut?ct&1|2:ct&1),et):(S$3(et),null);case 22:case 23:return Ij(),ut=et.memoizedState!==null,ot!==null&&ot.memoizedState!==null!==ut&&(et.flags|=8192),ut&&et.mode&1?gj&1073741824&&(S$3(et),et.subtreeFlags&6&&(et.flags|=8192)):S$3(et),null;case 24:return null;case 25:return null}throw Error(p$4(156,et.tag))}function Jj(ot,et){switch(wg(et),et.tag){case 1:return Zf(et.type)&&$f(),ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),ot=et.flags,ot&65536&&!(ot&128)?(et.flags=ot&-65537|128,et):null;case 5:return Lh(et),null;case 13:if(E$2(M$2),ot=et.memoizedState,ot!==null&&ot.dehydrated!==null){if(et.alternate===null)throw Error(p$4(340));Ig()}return ot=et.flags,ot&65536?(et.flags=ot&-65537|128,et):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(et.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$2=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$2=null;function Mj(ot,et){var ct=ot.ref;if(ct!==null)if(typeof ct=="function")try{ct(null)}catch(ut){W$3(ot,et,ut)}else ct.current=null}function Nj(ot,et,ct){try{ct()}catch(ut){W$3(ot,et,ut)}}var Oj=!1;function Pj(ot,et){if(Cf=dd,ot=Me(),Ne(ot)){if("selectionStart"in ot)var ct={start:ot.selectionStart,end:ot.selectionEnd};else e:{ct=(ct=ot.ownerDocument)&&ct.defaultView||window;var ut=ct.getSelection&&ct.getSelection();if(ut&&ut.rangeCount!==0){ct=ut.anchorNode;var dt=ut.anchorOffset,ft=ut.focusNode;ut=ut.focusOffset;try{ct.nodeType,ft.nodeType}catch{ct=null;break e}var zt=0,Dt=-1,St=-1,Tt=0,Rt=0,$t=ot,kt=null;t:for(;;){for(var Bt;$t!==ct||dt!==0&&$t.nodeType!==3||(Dt=zt+dt),$t!==ft||ut!==0&&$t.nodeType!==3||(St=zt+ut),$t.nodeType===3&&(zt+=$t.nodeValue.length),(Bt=$t.firstChild)!==null;)kt=$t,$t=Bt;for(;;){if($t===ot)break t;if(kt===ct&&++Tt===dt&&(Dt=zt),kt===ft&&++Rt===ut&&(St=zt),(Bt=$t.nextSibling)!==null)break;$t=kt,kt=$t.parentNode}$t=Bt}ct=Dt===-1||St===-1?null:{start:Dt,end:St}}else ct=null}ct=ct||{start:0,end:0}}else ct=null;for(Df={focusedElem:ot,selectionRange:ct},dd=!1,V$2=et;V$2!==null;)if(et=V$2,ot=et.child,(et.subtreeFlags&1028)!==0&&ot!==null)ot.return=et,V$2=ot;else for(;V$2!==null;){et=V$2;try{var Ft=et.alternate;if(et.flags&1024)switch(et.tag){case 0:case 11:case 15:break;case 1:if(Ft!==null){var jt=Ft.memoizedProps,Kt=Ft.memoizedState,Yt=et.stateNode,Ut=Yt.getSnapshotBeforeUpdate(et.elementType===et.type?jt:Lg(et.type,jt),Kt);Yt.__reactInternalSnapshotBeforeUpdate=Ut}break;case 3:var Jt=et.stateNode.containerInfo;Jt.nodeType===1?Jt.textContent="":Jt.nodeType===9&&Jt.documentElement&&Jt.removeChild(Jt.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$4(163))}}catch(Ht){W$3(et,et.return,Ht)}if(ot=et.sibling,ot!==null){ot.return=et.return,V$2=ot;break}V$2=et.return}return Ft=Oj,Oj=!1,Ft}function Qj(ot,et,ct){var ut=et.updateQueue;if(ut=ut!==null?ut.lastEffect:null,ut!==null){var dt=ut=ut.next;do{if((dt.tag&ot)===ot){var ft=dt.destroy;dt.destroy=void 0,ft!==void 0&&Nj(et,ct,ft)}dt=dt.next}while(dt!==ut)}}function Rj(ot,et){if(et=et.updateQueue,et=et!==null?et.lastEffect:null,et!==null){var ct=et=et.next;do{if((ct.tag&ot)===ot){var ut=ct.create;ct.destroy=ut()}ct=ct.next}while(ct!==et)}}function Sj(ot){var et=ot.ref;if(et!==null){var ct=ot.stateNode;switch(ot.tag){case 5:ot=ct;break;default:ot=ct}typeof et=="function"?et(ot):et.current=ot}}function Tj(ot){var et=ot.alternate;et!==null&&(ot.alternate=null,Tj(et)),ot.child=null,ot.deletions=null,ot.sibling=null,ot.tag===5&&(et=ot.stateNode,et!==null&&(delete et[Of],delete et[Pf],delete et[of],delete et[Qf],delete et[Rf])),ot.stateNode=null,ot.return=null,ot.dependencies=null,ot.memoizedProps=null,ot.memoizedState=null,ot.pendingProps=null,ot.stateNode=null,ot.updateQueue=null}function Uj(ot){return ot.tag===5||ot.tag===3||ot.tag===4}function Vj(ot){e:for(;;){for(;ot.sibling===null;){if(ot.return===null||Uj(ot.return))return null;ot=ot.return}for(ot.sibling.return=ot.return,ot=ot.sibling;ot.tag!==5&&ot.tag!==6&&ot.tag!==18;){if(ot.flags&2||ot.child===null||ot.tag===4)continue e;ot.child.return=ot,ot=ot.child}if(!(ot.flags&2))return ot.stateNode}}function Wj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.nodeType===8?ct.parentNode.insertBefore(ot,et):ct.insertBefore(ot,et):(ct.nodeType===8?(et=ct.parentNode,et.insertBefore(ot,ct)):(et=ct,et.appendChild(ot)),ct=ct._reactRootContainer,ct!=null||et.onclick!==null||(et.onclick=Bf));else if(ut!==4&&(ot=ot.child,ot!==null))for(Wj(ot,et,ct),ot=ot.sibling;ot!==null;)Wj(ot,et,ct),ot=ot.sibling}function Xj(ot,et,ct){var ut=ot.tag;if(ut===5||ut===6)ot=ot.stateNode,et?ct.insertBefore(ot,et):ct.appendChild(ot);else if(ut!==4&&(ot=ot.child,ot!==null))for(Xj(ot,et,ct),ot=ot.sibling;ot!==null;)Xj(ot,et,ct),ot=ot.sibling}var X$3=null,Yj=!1;function Zj(ot,et,ct){for(ct=ct.child;ct!==null;)ak(ot,et,ct),ct=ct.sibling}function ak(ot,et,ct){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,ct)}catch{}switch(ct.tag){case 5:U$2||Mj(ct,et);case 6:var ut=X$3,dt=Yj;X$3=null,Zj(ot,et,ct),X$3=ut,Yj=dt,X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?ot.parentNode.removeChild(ct):ot.removeChild(ct)):X$3.removeChild(ct.stateNode));break;case 18:X$3!==null&&(Yj?(ot=X$3,ct=ct.stateNode,ot.nodeType===8?Kf(ot.parentNode,ct):ot.nodeType===1&&Kf(ot,ct),bd(ot)):Kf(X$3,ct.stateNode));break;case 4:ut=X$3,dt=Yj,X$3=ct.stateNode.containerInfo,Yj=!0,Zj(ot,et,ct),X$3=ut,Yj=dt;break;case 0:case 11:case 14:case 15:if(!U$2&&(ut=ct.updateQueue,ut!==null&&(ut=ut.lastEffect,ut!==null))){dt=ut=ut.next;do{var ft=dt,zt=ft.destroy;ft=ft.tag,zt!==void 0&&(ft&2||ft&4)&&Nj(ct,et,zt),dt=dt.next}while(dt!==ut)}Zj(ot,et,ct);break;case 1:if(!U$2&&(Mj(ct,et),ut=ct.stateNode,typeof ut.componentWillUnmount=="function"))try{ut.props=ct.memoizedProps,ut.state=ct.memoizedState,ut.componentWillUnmount()}catch(Dt){W$3(ct,et,Dt)}Zj(ot,et,ct);break;case 21:Zj(ot,et,ct);break;case 22:ct.mode&1?(U$2=(ut=U$2)||ct.memoizedState!==null,Zj(ot,et,ct),U$2=ut):Zj(ot,et,ct);break;default:Zj(ot,et,ct)}}function bk(ot){var et=ot.updateQueue;if(et!==null){ot.updateQueue=null;var ct=ot.stateNode;ct===null&&(ct=ot.stateNode=new Lj),et.forEach(function(ut){var dt=ck.bind(null,ot,ut);ct.has(ut)||(ct.add(ut),ut.then(dt,dt))})}}function dk(ot,et){var ct=et.deletions;if(ct!==null)for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];try{var ft=ot,zt=et,Dt=zt;e:for(;Dt!==null;){switch(Dt.tag){case 5:X$3=Dt.stateNode,Yj=!1;break e;case 3:X$3=Dt.stateNode.containerInfo,Yj=!0;break e;case 4:X$3=Dt.stateNode.containerInfo,Yj=!0;break e}Dt=Dt.return}if(X$3===null)throw Error(p$4(160));ak(ft,zt,dt),X$3=null,Yj=!1;var St=dt.alternate;St!==null&&(St.return=null),dt.return=null}catch(Tt){W$3(dt,et,Tt)}}if(et.subtreeFlags&12854)for(et=et.child;et!==null;)ek(et,ot),et=et.sibling}function ek(ot,et){var ct=ot.alternate,ut=ot.flags;switch(ot.tag){case 0:case 11:case 14:case 15:if(dk(et,ot),fk(ot),ut&4){try{Qj(3,ot,ot.return),Rj(3,ot)}catch(jt){W$3(ot,ot.return,jt)}try{Qj(5,ot,ot.return)}catch(jt){W$3(ot,ot.return,jt)}}break;case 1:dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return);break;case 5:if(dk(et,ot),fk(ot),ut&512&&ct!==null&&Mj(ct,ct.return),ot.flags&32){var dt=ot.stateNode;try{ob(dt,"")}catch(jt){W$3(ot,ot.return,jt)}}if(ut&4&&(dt=ot.stateNode,dt!=null)){var ft=ot.memoizedProps,zt=ct!==null?ct.memoizedProps:ft,Dt=ot.type,St=ot.updateQueue;if(ot.updateQueue=null,St!==null)try{Dt==="input"&&ft.type==="radio"&&ft.name!=null&&ab$1(dt,ft),vb(Dt,zt);var Tt=vb(Dt,ft);for(zt=0;zt<St.length;zt+=2){var Rt=St[zt],$t=St[zt+1];Rt==="style"?sb(dt,$t):Rt==="dangerouslySetInnerHTML"?nb(dt,$t):Rt==="children"?ob(dt,$t):ta(dt,Rt,$t,Tt)}switch(Dt){case"input":bb(dt,ft);break;case"textarea":ib(dt,ft);break;case"select":var kt=dt._wrapperState.wasMultiple;dt._wrapperState.wasMultiple=!!ft.multiple;var Bt=ft.value;Bt!=null?fb(dt,!!ft.multiple,Bt,!1):kt!==!!ft.multiple&&(ft.defaultValue!=null?fb(dt,!!ft.multiple,ft.defaultValue,!0):fb(dt,!!ft.multiple,ft.multiple?[]:"",!1))}dt[Pf]=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 6:if(dk(et,ot),fk(ot),ut&4){if(ot.stateNode===null)throw Error(p$4(162));dt=ot.stateNode,ft=ot.memoizedProps;try{dt.nodeValue=ft}catch(jt){W$3(ot,ot.return,jt)}}break;case 3:if(dk(et,ot),fk(ot),ut&4&&ct!==null&&ct.memoizedState.isDehydrated)try{bd(et.containerInfo)}catch(jt){W$3(ot,ot.return,jt)}break;case 4:dk(et,ot),fk(ot);break;case 13:dk(et,ot),fk(ot),dt=ot.child,dt.flags&8192&&(ft=dt.memoizedState!==null,dt.stateNode.isHidden=ft,!ft||dt.alternate!==null&&dt.alternate.memoizedState!==null||(gk=B$3())),ut&4&&bk(ot);break;case 22:if(Rt=ct!==null&&ct.memoizedState!==null,ot.mode&1?(U$2=(Tt=U$2)||Rt,dk(et,ot),U$2=Tt):dk(et,ot),fk(ot),ut&8192){if(Tt=ot.memoizedState!==null,(ot.stateNode.isHidden=Tt)&&!Rt&&ot.mode&1)for(V$2=ot,Rt=ot.child;Rt!==null;){for($t=V$2=Rt;V$2!==null;){switch(kt=V$2,Bt=kt.child,kt.tag){case 0:case 11:case 14:case 15:Qj(4,kt,kt.return);break;case 1:Mj(kt,kt.return);var Ft=kt.stateNode;if(typeof Ft.componentWillUnmount=="function"){ut=kt,ct=kt.return;try{et=ut,Ft.props=et.memoizedProps,Ft.state=et.memoizedState,Ft.componentWillUnmount()}catch(jt){W$3(ut,ct,jt)}}break;case 5:Mj(kt,kt.return);break;case 22:if(kt.memoizedState!==null){hk($t);continue}}Bt!==null?(Bt.return=kt,V$2=Bt):hk($t)}Rt=Rt.sibling}e:for(Rt=null,$t=ot;;){if($t.tag===5){if(Rt===null){Rt=$t;try{dt=$t.stateNode,Tt?(ft=dt.style,typeof ft.setProperty=="function"?ft.setProperty("display","none","important"):ft.display="none"):(Dt=$t.stateNode,St=$t.memoizedProps.style,zt=St!=null&&St.hasOwnProperty("display")?St.display:null,Dt.style.display=rb("display",zt))}catch(jt){W$3(ot,ot.return,jt)}}}else if($t.tag===6){if(Rt===null)try{$t.stateNode.nodeValue=Tt?"":$t.memoizedProps}catch(jt){W$3(ot,ot.return,jt)}}else if(($t.tag!==22&&$t.tag!==23||$t.memoizedState===null||$t===ot)&&$t.child!==null){$t.child.return=$t,$t=$t.child;continue}if($t===ot)break e;for(;$t.sibling===null;){if($t.return===null||$t.return===ot)break e;Rt===$t&&(Rt=null),$t=$t.return}Rt===$t&&(Rt=null),$t.sibling.return=$t.return,$t=$t.sibling}}break;case 19:dk(et,ot),fk(ot),ut&4&&bk(ot);break;case 21:break;default:dk(et,ot),fk(ot)}}function fk(ot){var et=ot.flags;if(et&2){try{e:{for(var ct=ot.return;ct!==null;){if(Uj(ct)){var ut=ct;break e}ct=ct.return}throw Error(p$4(160))}switch(ut.tag){case 5:var dt=ut.stateNode;ut.flags&32&&(ob(dt,""),ut.flags&=-33);var ft=Vj(ot);Xj(ot,ft,dt);break;case 3:case 4:var zt=ut.stateNode.containerInfo,Dt=Vj(ot);Wj(ot,Dt,zt);break;default:throw Error(p$4(161))}}catch(St){W$3(ot,ot.return,St)}ot.flags&=-3}et&4096&&(ot.flags&=-4097)}function ik(ot,et,ct){V$2=ot,jk(ot)}function jk(ot,et,ct){for(var ut=(ot.mode&1)!==0;V$2!==null;){var dt=V$2,ft=dt.child;if(dt.tag===22&&ut){var zt=dt.memoizedState!==null||Kj;if(!zt){var Dt=dt.alternate,St=Dt!==null&&Dt.memoizedState!==null||U$2;Dt=Kj;var Tt=U$2;if(Kj=zt,(U$2=St)&&!Tt)for(V$2=dt;V$2!==null;)zt=V$2,St=zt.child,zt.tag===22&&zt.memoizedState!==null?kk(dt):St!==null?(St.return=zt,V$2=St):kk(dt);for(;ft!==null;)V$2=ft,jk(ft),ft=ft.sibling;V$2=dt,Kj=Dt,U$2=Tt}lk(ot)}else dt.subtreeFlags&8772&&ft!==null?(ft.return=dt,V$2=ft):lk(ot)}}function lk(ot){for(;V$2!==null;){var et=V$2;if(et.flags&8772){var ct=et.alternate;try{if(et.flags&8772)switch(et.tag){case 0:case 11:case 15:U$2||Rj(5,et);break;case 1:var ut=et.stateNode;if(et.flags&4&&!U$2)if(ct===null)ut.componentDidMount();else{var dt=et.elementType===et.type?ct.memoizedProps:Lg(et.type,ct.memoizedProps);ut.componentDidUpdate(dt,ct.memoizedState,ut.__reactInternalSnapshotBeforeUpdate)}var ft=et.updateQueue;ft!==null&&ih(et,ft,ut);break;case 3:var zt=et.updateQueue;if(zt!==null){if(ct=null,et.child!==null)switch(et.child.tag){case 5:ct=et.child.stateNode;break;case 1:ct=et.child.stateNode}ih(et,zt,ct)}break;case 5:var Dt=et.stateNode;if(ct===null&&et.flags&4){ct=Dt;var St=et.memoizedProps;switch(et.type){case"button":case"input":case"select":case"textarea":St.autoFocus&&ct.focus();break;case"img":St.src&&(ct.src=St.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(et.memoizedState===null){var Tt=et.alternate;if(Tt!==null){var Rt=Tt.memoizedState;if(Rt!==null){var $t=Rt.dehydrated;$t!==null&&bd($t)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(p$4(163))}U$2||et.flags&512&&Sj(et)}catch(kt){W$3(et,et.return,kt)}}if(et===ot){V$2=null;break}if(ct=et.sibling,ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function hk(ot){for(;V$2!==null;){var et=V$2;if(et===ot){V$2=null;break}var ct=et.sibling;if(ct!==null){ct.return=et.return,V$2=ct;break}V$2=et.return}}function kk(ot){for(;V$2!==null;){var et=V$2;try{switch(et.tag){case 0:case 11:case 15:var ct=et.return;try{Rj(4,et)}catch(St){W$3(et,ct,St)}break;case 1:var ut=et.stateNode;if(typeof ut.componentDidMount=="function"){var dt=et.return;try{ut.componentDidMount()}catch(St){W$3(et,dt,St)}}var ft=et.return;try{Sj(et)}catch(St){W$3(et,ft,St)}break;case 5:var zt=et.return;try{Sj(et)}catch(St){W$3(et,zt,St)}}}catch(St){W$3(et,et.return,St)}if(et===ot){V$2=null;break}var Dt=et.sibling;if(Dt!==null){Dt.return=et.return,V$2=Dt;break}V$2=et.return}}var mk=Math.ceil,nk=ua$1.ReactCurrentDispatcher,ok$2=ua$1.ReactCurrentOwner,pk=ua$1.ReactCurrentBatchConfig,K$2=0,R$2=null,Y=null,Z$3=0,gj=0,fj=Uf(0),T$2=0,qk=null,hh=0,rk=0,sk=0,tk=null,uk$1=null,gk=0,Hj=1/0,vk=null,Pi=!1,Qi=null,Si=null,wk=!1,xk=null,yk=0,zk=0,Ak=null,Bk=-1,Ck=0;function L$2(){return K$2&6?B$3():Bk!==-1?Bk:Bk=B$3()}function lh(ot){return ot.mode&1?K$2&2&&Z$3!==0?Z$3&-Z$3:Kg.transition!==null?(Ck===0&&(Ck=yc()),Ck):(ot=C$2,ot!==0||(ot=window.event,ot=ot===void 0?16:jd(ot.type)),ot):1}function mh(ot,et,ct,ut){if(50<zk)throw zk=0,Ak=null,Error(p$4(185));Ac(ot,ct,ut),(!(K$2&2)||ot!==R$2)&&(ot===R$2&&(!(K$2&2)&&(rk|=ct),T$2===4&&Dk(ot,Z$3)),Ek(ot,ut),ct===1&&K$2===0&&!(et.mode&1)&&(Hj=B$3()+500,fg&&jg()))}function Ek(ot,et){var ct=ot.callbackNode;wc$1(ot,et);var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)ct!==null&&bc(ct),ot.callbackNode=null,ot.callbackPriority=0;else if(et=ut&-ut,ot.callbackPriority!==et){if(ct!=null&&bc(ct),et===1)ot.tag===0?ig(Fk.bind(null,ot)):hg(Fk.bind(null,ot)),Jf(function(){!(K$2&6)&&jg()}),ct=null;else{switch(Dc$1(ut)){case 1:ct=fc;break;case 4:ct=gc;break;case 16:ct=hc;break;case 536870912:ct=jc;break;default:ct=hc}ct=Gk(ct,Hk.bind(null,ot))}ot.callbackPriority=et,ot.callbackNode=ct}}function Hk(ot,et){if(Bk=-1,Ck=0,K$2&6)throw Error(p$4(327));var ct=ot.callbackNode;if(Ik()&&ot.callbackNode!==ct)return null;var ut=uc(ot,ot===R$2?Z$3:0);if(ut===0)return null;if(ut&30||ut&ot.expiredLanes||et)et=Jk(ot,ut);else{et=ut;var dt=K$2;K$2|=2;var ft=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Hj=B$3()+500,Lk(ot,et));do try{Mk();break}catch(Dt){Nk(ot,Dt)}while(!0);Qg(),nk.current=ft,K$2=dt,Y!==null?et=0:(R$2=null,Z$3=0,et=T$2)}if(et!==0){if(et===2&&(dt=xc(ot),dt!==0&&(ut=dt,et=Ok(ot,dt))),et===1)throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;if(et===6)Dk(ot,ut);else{if(dt=ot.current.alternate,!(ut&30)&&!Pk(dt)&&(et=Jk(ot,ut),et===2&&(ft=xc(ot),ft!==0&&(ut=ft,et=Ok(ot,ft))),et===1))throw ct=qk,Lk(ot,0),Dk(ot,ut),Ek(ot,B$3()),ct;switch(ot.finishedWork=dt,ot.finishedLanes=ut,et){case 0:case 1:throw Error(p$4(345));case 2:Qk(ot,uk$1,vk);break;case 3:if(Dk(ot,ut),(ut&130023424)===ut&&(et=gk+500-B$3(),10<et)){if(uc(ot,0)!==0)break;if(dt=ot.suspendedLanes,(dt&ut)!==ut){L$2(),ot.pingedLanes|=ot.suspendedLanes&dt;break}ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),et);break}Qk(ot,uk$1,vk);break;case 4:if(Dk(ot,ut),(ut&4194240)===ut)break;for(et=ot.eventTimes,dt=-1;0<ut;){var zt=31-oc(ut);ft=1<<zt,zt=et[zt],zt>dt&&(dt=zt),ut&=~ft}if(ut=dt,ut=B$3()-ut,ut=(120>ut?120:480>ut?480:1080>ut?1080:1920>ut?1920:3e3>ut?3e3:4320>ut?4320:1960*mk(ut/1960))-ut,10<ut){ot.timeoutHandle=Ff(Qk.bind(null,ot,uk$1,vk),ut);break}Qk(ot,uk$1,vk);break;case 5:Qk(ot,uk$1,vk);break;default:throw Error(p$4(329))}}}return Ek(ot,B$3()),ot.callbackNode===ct?Hk.bind(null,ot):null}function Ok(ot,et){var ct=tk;return ot.current.memoizedState.isDehydrated&&(Lk(ot,et).flags|=256),ot=Jk(ot,et),ot!==2&&(et=uk$1,uk$1=ct,et!==null&&Gj(et)),ot}function Gj(ot){uk$1===null?uk$1=ot:uk$1.push.apply(uk$1,ot)}function Pk(ot){for(var et=ot;;){if(et.flags&16384){var ct=et.updateQueue;if(ct!==null&&(ct=ct.stores,ct!==null))for(var ut=0;ut<ct.length;ut++){var dt=ct[ut],ft=dt.getSnapshot;dt=dt.value;try{if(!He(ft(),dt))return!1}catch{return!1}}}if(ct=et.child,et.subtreeFlags&16384&&ct!==null)ct.return=et,et=ct;else{if(et===ot)break;for(;et.sibling===null;){if(et.return===null||et.return===ot)return!0;et=et.return}et.sibling.return=et.return,et=et.sibling}}return!0}function Dk(ot,et){for(et&=~sk,et&=~rk,ot.suspendedLanes|=et,ot.pingedLanes&=~et,ot=ot.expirationTimes;0<et;){var ct=31-oc(et),ut=1<<ct;ot[ct]=-1,et&=~ut}}function Fk(ot){if(K$2&6)throw Error(p$4(327));Ik();var et=uc(ot,0);if(!(et&1))return Ek(ot,B$3()),null;var ct=Jk(ot,et);if(ot.tag!==0&&ct===2){var ut=xc(ot);ut!==0&&(et=ut,ct=Ok(ot,ut))}if(ct===1)throw ct=qk,Lk(ot,0),Dk(ot,et),Ek(ot,B$3()),ct;if(ct===6)throw Error(p$4(345));return ot.finishedWork=ot.current.alternate,ot.finishedLanes=et,Qk(ot,uk$1,vk),Ek(ot,B$3()),null}function Rk(ot,et){var ct=K$2;K$2|=1;try{return ot(et)}finally{K$2=ct,K$2===0&&(Hj=B$3()+500,fg&&jg())}}function Sk(ot){xk!==null&&xk.tag===0&&!(K$2&6)&&Ik();var et=K$2;K$2|=1;var ct=pk.transition,ut=C$2;try{if(pk.transition=null,C$2=1,ot)return ot()}finally{C$2=ut,pk.transition=ct,K$2=et,!(K$2&6)&&jg()}}function Ij(){gj=fj.current,E$2(fj)}function Lk(ot,et){ot.finishedWork=null,ot.finishedLanes=0;var ct=ot.timeoutHandle;if(ct!==-1&&(ot.timeoutHandle=-1,Gf(ct)),Y!==null)for(ct=Y.return;ct!==null;){var ut=ct;switch(wg(ut),ut.tag){case 1:ut=ut.type.childContextTypes,ut!=null&&$f();break;case 3:Jh(),E$2(Wf),E$2(H$2),Oh();break;case 5:Lh(ut);break;case 4:Jh();break;case 13:E$2(M$2);break;case 19:E$2(M$2);break;case 10:Rg(ut.type._context);break;case 22:case 23:Ij()}ct=ct.return}if(R$2=ot,Y=ot=wh(ot.current,null),Z$3=gj=et,T$2=0,qk=null,sk=rk=hh=0,uk$1=tk=null,Wg!==null){for(et=0;et<Wg.length;et++)if(ct=Wg[et],ut=ct.interleaved,ut!==null){ct.interleaved=null;var dt=ut.next,ft=ct.pending;if(ft!==null){var zt=ft.next;ft.next=dt,ut.next=zt}ct.pending=ut}Wg=null}return ot}function Nk(ot,et){do{var ct=Y;try{if(Qg(),Ph.current=ai,Sh){for(var ut=N$3.memoizedState;ut!==null;){var dt=ut.queue;dt!==null&&(dt.pending=null),ut=ut.next}Sh=!1}if(Rh=0,P$2=O$1=N$3=null,Th=!1,Uh=0,ok$2.current=null,ct===null||ct.return===null){T$2=1,qk=et,Y=null;break}e:{var ft=ot,zt=ct.return,Dt=ct,St=et;if(et=Z$3,Dt.flags|=32768,St!==null&&typeof St=="object"&&typeof St.then=="function"){var Tt=St,Rt=Dt,$t=Rt.tag;if(!(Rt.mode&1)&&($t===0||$t===11||$t===15)){var kt=Rt.alternate;kt?(Rt.updateQueue=kt.updateQueue,Rt.memoizedState=kt.memoizedState,Rt.lanes=kt.lanes):(Rt.updateQueue=null,Rt.memoizedState=null)}var Bt=Vi(zt);if(Bt!==null){Bt.flags&=-257,Wi(Bt,zt,Dt,ft,et),Bt.mode&1&&Ti(ft,Tt,et),et=Bt,St=Tt;var Ft=et.updateQueue;if(Ft===null){var jt=new Set;jt.add(St),et.updateQueue=jt}else Ft.add(St);break e}else{if(!(et&1)){Ti(ft,Tt,et),uj();break e}St=Error(p$4(426))}}else if(I$2&&Dt.mode&1){var Kt=Vi(zt);if(Kt!==null){!(Kt.flags&65536)&&(Kt.flags|=256),Wi(Kt,zt,Dt,ft,et),Jg(Ki(St,Dt));break e}}ft=St=Ki(St,Dt),T$2!==4&&(T$2=2),tk===null?tk=[ft]:tk.push(ft),ft=zt;do{switch(ft.tag){case 3:ft.flags|=65536,et&=-et,ft.lanes|=et;var Yt=Oi(ft,St,et);fh(ft,Yt);break e;case 1:Dt=St;var Ut=ft.type,Jt=ft.stateNode;if(!(ft.flags&128)&&(typeof Ut.getDerivedStateFromError=="function"||Jt!==null&&typeof Jt.componentDidCatch=="function"&&(Si===null||!Si.has(Jt)))){ft.flags|=65536,et&=-et,ft.lanes|=et;var Ht=Ri(ft,Dt,et);fh(ft,Ht);break e}}ft=ft.return}while(ft!==null)}Tk(ct)}catch(e0){et=e0,Y===ct&&ct!==null&&(Y=ct=ct.return);continue}break}while(!0)}function Kk(){var ot=nk.current;return nk.current=ai,ot===null?ai:ot}function uj(){(T$2===0||T$2===3||T$2===2)&&(T$2=4),R$2===null||!(hh&268435455)&&!(rk&268435455)||Dk(R$2,Z$3)}function Jk(ot,et){var ct=K$2;K$2|=2;var ut=Kk();(R$2!==ot||Z$3!==et)&&(vk=null,Lk(ot,et));do try{Uk();break}catch(dt){Nk(ot,dt)}while(!0);if(Qg(),K$2=ct,nk.current=ut,Y!==null)throw Error(p$4(261));return R$2=null,Z$3=0,T$2}function Uk(){for(;Y!==null;)Vk(Y)}function Mk(){for(;Y!==null&&!cc();)Vk(Y)}function Vk(ot){var et=Wk(ot.alternate,ot,gj);ot.memoizedProps=ot.pendingProps,et===null?Tk(ot):Y=et,ok$2.current=null}function Tk(ot){var et=ot;do{var ct=et.alternate;if(ot=et.return,et.flags&32768){if(ct=Jj(ct,et),ct!==null){ct.flags&=32767,Y=ct;return}if(ot!==null)ot.flags|=32768,ot.subtreeFlags=0,ot.deletions=null;else{T$2=6,Y=null;return}}else if(ct=Fj(ct,et,gj),ct!==null){Y=ct;return}if(et=et.sibling,et!==null){Y=et;return}Y=et=ot}while(et!==null);T$2===0&&(T$2=5)}function Qk(ot,et,ct){var ut=C$2,dt=pk.transition;try{pk.transition=null,C$2=1,Xk(ot,et,ct,ut)}finally{pk.transition=dt,C$2=ut}return null}function Xk(ot,et,ct,ut){do Ik();while(xk!==null);if(K$2&6)throw Error(p$4(327));ct=ot.finishedWork;var dt=ot.finishedLanes;if(ct===null)return null;if(ot.finishedWork=null,ot.finishedLanes=0,ct===ot.current)throw Error(p$4(177));ot.callbackNode=null,ot.callbackPriority=0;var ft=ct.lanes|ct.childLanes;if(Bc(ot,ft),ot===R$2&&(Y=R$2=null,Z$3=0),!(ct.subtreeFlags&2064)&&!(ct.flags&2064)||wk||(wk=!0,Gk(hc,function(){return Ik(),null})),ft=(ct.flags&15990)!==0,ct.subtreeFlags&15990||ft){ft=pk.transition,pk.transition=null;var zt=C$2;C$2=1;var Dt=K$2;K$2|=4,ok$2.current=null,Pj(ot,ct),ek(ct,ot),Oe$1(Df),dd=!!Cf,Df=Cf=null,ot.current=ct,ik(ct),dc(),K$2=Dt,C$2=zt,pk.transition=ft}else ot.current=ct;if(wk&&(wk=!1,xk=ot,yk=dt),ft=ot.pendingLanes,ft===0&&(Si=null),mc(ct.stateNode),Ek(ot,B$3()),et!==null)for(ut=ot.onRecoverableError,ct=0;ct<et.length;ct++)dt=et[ct],ut(dt.value,{componentStack:dt.stack,digest:dt.digest});if(Pi)throw Pi=!1,ot=Qi,Qi=null,ot;return yk&1&&ot.tag!==0&&Ik(),ft=ot.pendingLanes,ft&1?ot===Ak?zk++:(zk=0,Ak=ot):zk=0,jg(),null}function Ik(){if(xk!==null){var ot=Dc$1(yk),et=pk.transition,ct=C$2;try{if(pk.transition=null,C$2=16>ot?16:ot,xk===null)var ut=!1;else{if(ot=xk,xk=null,yk=0,K$2&6)throw Error(p$4(331));var dt=K$2;for(K$2|=4,V$2=ot.current;V$2!==null;){var ft=V$2,zt=ft.child;if(V$2.flags&16){var Dt=ft.deletions;if(Dt!==null){for(var St=0;St<Dt.length;St++){var Tt=Dt[St];for(V$2=Tt;V$2!==null;){var Rt=V$2;switch(Rt.tag){case 0:case 11:case 15:Qj(8,Rt,ft)}var $t=Rt.child;if($t!==null)$t.return=Rt,V$2=$t;else for(;V$2!==null;){Rt=V$2;var kt=Rt.sibling,Bt=Rt.return;if(Tj(Rt),Rt===Tt){V$2=null;break}if(kt!==null){kt.return=Bt,V$2=kt;break}V$2=Bt}}}var Ft=ft.alternate;if(Ft!==null){var jt=Ft.child;if(jt!==null){Ft.child=null;do{var Kt=jt.sibling;jt.sibling=null,jt=Kt}while(jt!==null)}}V$2=ft}}if(ft.subtreeFlags&2064&&zt!==null)zt.return=ft,V$2=zt;else e:for(;V$2!==null;){if(ft=V$2,ft.flags&2048)switch(ft.tag){case 0:case 11:case 15:Qj(9,ft,ft.return)}var Yt=ft.sibling;if(Yt!==null){Yt.return=ft.return,V$2=Yt;break e}V$2=ft.return}}var Ut=ot.current;for(V$2=Ut;V$2!==null;){zt=V$2;var Jt=zt.child;if(zt.subtreeFlags&2064&&Jt!==null)Jt.return=zt,V$2=Jt;else e:for(zt=Ut;V$2!==null;){if(Dt=V$2,Dt.flags&2048)try{switch(Dt.tag){case 0:case 11:case 15:Rj(9,Dt)}}catch(e0){W$3(Dt,Dt.return,e0)}if(Dt===zt){V$2=null;break e}var Ht=Dt.sibling;if(Ht!==null){Ht.return=Dt.return,V$2=Ht;break e}V$2=Dt.return}}if(K$2=dt,jg(),lc&&typeof lc.onPostCommitFiberRoot=="function")try{lc.onPostCommitFiberRoot(kc,ot)}catch{}ut=!0}return ut}finally{C$2=ct,pk.transition=et}}return!1}function Yk(ot,et,ct){et=Ki(ct,et),et=Oi(ot,et,1),ot=dh(ot,et,1),et=L$2(),ot!==null&&(Ac(ot,1,et),Ek(ot,et))}function W$3(ot,et,ct){if(ot.tag===3)Yk(ot,ot,ct);else for(;et!==null;){if(et.tag===3){Yk(et,ot,ct);break}else if(et.tag===1){var ut=et.stateNode;if(typeof et.type.getDerivedStateFromError=="function"||typeof ut.componentDidCatch=="function"&&(Si===null||!Si.has(ut))){ot=Ki(ct,ot),ot=Ri(et,ot,1),et=dh(et,ot,1),ot=L$2(),et!==null&&(Ac(et,1,ot),Ek(et,ot));break}}et=et.return}}function Ui(ot,et,ct){var ut=ot.pingCache;ut!==null&&ut.delete(et),et=L$2(),ot.pingedLanes|=ot.suspendedLanes&ct,R$2===ot&&(Z$3&ct)===ct&&(T$2===4||T$2===3&&(Z$3&130023424)===Z$3&&500>B$3()-gk?Lk(ot,0):sk|=ct),Ek(ot,et)}function Zk(ot,et){et===0&&(ot.mode&1?(et=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):et=1);var ct=L$2();ot=Zg(ot,et),ot!==null&&(Ac(ot,et,ct),Ek(ot,ct))}function vj(ot){var et=ot.memoizedState,ct=0;et!==null&&(ct=et.retryLane),Zk(ot,ct)}function ck(ot,et){var ct=0;switch(ot.tag){case 13:var ut=ot.stateNode,dt=ot.memoizedState;dt!==null&&(ct=dt.retryLane);break;case 19:ut=ot.stateNode;break;default:throw Error(p$4(314))}ut!==null&&ut.delete(et),Zk(ot,ct)}var Wk;Wk=function(ot,et,ct){if(ot!==null)if(ot.memoizedProps!==et.pendingProps||Wf.current)Ug=!0;else{if(!(ot.lanes&ct)&&!(et.flags&128))return Ug=!1,zj(ot,et,ct);Ug=!!(ot.flags&131072)}else Ug=!1,I$2&&et.flags&1048576&&ug(et,ng$1,et.index);switch(et.lanes=0,et.tag){case 2:var ut=et.type;jj(ot,et),ot=et.pendingProps;var dt=Yf(et,H$2.current);Tg(et,ct),dt=Xh(null,et,ut,ot,dt,ct);var ft=bi();return et.flags|=1,typeof dt=="object"&&dt!==null&&typeof dt.render=="function"&&dt.$$typeof===void 0?(et.tag=1,et.memoizedState=null,et.updateQueue=null,Zf(ut)?(ft=!0,cg(et)):ft=!1,et.memoizedState=dt.state!==null&&dt.state!==void 0?dt.state:null,ah(et),dt.updater=nh,et.stateNode=dt,dt._reactInternals=et,rh(et,ut,ot,ct),et=kj(null,et,ut,!0,ft,ct)):(et.tag=0,I$2&&ft&&vg(et),Yi(null,et,dt,ct),et=et.child),et;case 16:ut=et.elementType;e:{switch(jj(ot,et),ot=et.pendingProps,dt=ut._init,ut=dt(ut._payload),et.type=ut,dt=et.tag=$k(ut),ot=Lg(ut,ot),dt){case 0:et=dj(null,et,ut,ot,ct);break e;case 1:et=ij(null,et,ut,ot,ct);break e;case 11:et=Zi(null,et,ut,ot,ct);break e;case 14:et=aj(null,et,ut,Lg(ut.type,ot),ct);break e}throw Error(p$4(306,ut,""))}return et;case 0:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),dj(ot,et,ut,dt,ct);case 1:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),ij(ot,et,ut,dt,ct);case 3:e:{if(lj(et),ot===null)throw Error(p$4(387));ut=et.pendingProps,ft=et.memoizedState,dt=ft.element,bh(ot,et),gh(et,ut,null,ct);var zt=et.memoizedState;if(ut=zt.element,ft.isDehydrated)if(ft={element:ut,isDehydrated:!1,cache:zt.cache,pendingSuspenseBoundaries:zt.pendingSuspenseBoundaries,transitions:zt.transitions},et.updateQueue.baseState=ft,et.memoizedState=ft,et.flags&256){dt=Ki(Error(p$4(423)),et),et=mj(ot,et,ut,ct,dt);break e}else if(ut!==dt){dt=Ki(Error(p$4(424)),et),et=mj(ot,et,ut,ct,dt);break e}else for(yg=Lf(et.stateNode.containerInfo.firstChild),xg=et,I$2=!0,zg=null,ct=Ch(et,null,ut,ct),et.child=ct;ct;)ct.flags=ct.flags&-3|4096,ct=ct.sibling;else{if(Ig(),ut===dt){et=$i(ot,et,ct);break e}Yi(ot,et,ut,ct)}et=et.child}return et;case 5:return Kh(et),ot===null&&Eg(et),ut=et.type,dt=et.pendingProps,ft=ot!==null?ot.memoizedProps:null,zt=dt.children,Ef(ut,dt)?zt=null:ft!==null&&Ef(ut,ft)&&(et.flags|=32),hj(ot,et),Yi(ot,et,zt,ct),et.child;case 6:return ot===null&&Eg(et),null;case 13:return pj(ot,et,ct);case 4:return Ih(et,et.stateNode.containerInfo),ut=et.pendingProps,ot===null?et.child=Bh(et,null,ut,ct):Yi(ot,et,ut,ct),et.child;case 11:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),Zi(ot,et,ut,dt,ct);case 7:return Yi(ot,et,et.pendingProps,ct),et.child;case 8:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 12:return Yi(ot,et,et.pendingProps.children,ct),et.child;case 10:e:{if(ut=et.type._context,dt=et.pendingProps,ft=et.memoizedProps,zt=dt.value,G$3(Mg,ut._currentValue),ut._currentValue=zt,ft!==null)if(He(ft.value,zt)){if(ft.children===dt.children&&!Wf.current){et=$i(ot,et,ct);break e}}else for(ft=et.child,ft!==null&&(ft.return=et);ft!==null;){var Dt=ft.dependencies;if(Dt!==null){zt=ft.child;for(var St=Dt.firstContext;St!==null;){if(St.context===ut){if(ft.tag===1){St=ch$1(-1,ct&-ct),St.tag=2;var Tt=ft.updateQueue;if(Tt!==null){Tt=Tt.shared;var Rt=Tt.pending;Rt===null?St.next=St:(St.next=Rt.next,Rt.next=St),Tt.pending=St}}ft.lanes|=ct,St=ft.alternate,St!==null&&(St.lanes|=ct),Sg(ft.return,ct,et),Dt.lanes|=ct;break}St=St.next}}else if(ft.tag===10)zt=ft.type===et.type?null:ft.child;else if(ft.tag===18){if(zt=ft.return,zt===null)throw Error(p$4(341));zt.lanes|=ct,Dt=zt.alternate,Dt!==null&&(Dt.lanes|=ct),Sg(zt,ct,et),zt=ft.sibling}else zt=ft.child;if(zt!==null)zt.return=ft;else for(zt=ft;zt!==null;){if(zt===et){zt=null;break}if(ft=zt.sibling,ft!==null){ft.return=zt.return,zt=ft;break}zt=zt.return}ft=zt}Yi(ot,et,dt.children,ct),et=et.child}return et;case 9:return dt=et.type,ut=et.pendingProps.children,Tg(et,ct),dt=Vg(dt),ut=ut(dt),et.flags|=1,Yi(ot,et,ut,ct),et.child;case 14:return ut=et.type,dt=Lg(ut,et.pendingProps),dt=Lg(ut.type,dt),aj(ot,et,ut,dt,ct);case 15:return cj(ot,et,et.type,et.pendingProps,ct);case 17:return ut=et.type,dt=et.pendingProps,dt=et.elementType===ut?dt:Lg(ut,dt),jj(ot,et),et.tag=1,Zf(ut)?(ot=!0,cg(et)):ot=!1,Tg(et,ct),ph(et,ut,dt),rh(et,ut,dt,ct),kj(null,et,ut,!0,ot,ct);case 19:return yj(ot,et,ct);case 22:return ej(ot,et,ct)}throw Error(p$4(156,et.tag))};function Gk(ot,et){return ac(ot,et)}function al(ot,et,ct,ut){this.tag=ot,this.key=ct,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=et,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=ut,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg(ot,et,ct,ut){return new al(ot,et,ct,ut)}function bj(ot){return ot=ot.prototype,!(!ot||!ot.isReactComponent)}function $k(ot){if(typeof ot=="function")return bj(ot)?1:0;if(ot!=null){if(ot=ot.$$typeof,ot===Da)return 11;if(ot===Ga)return 14}return 2}function wh(ot,et){var ct=ot.alternate;return ct===null?(ct=Bg(ot.tag,et,ot.key,ot.mode),ct.elementType=ot.elementType,ct.type=ot.type,ct.stateNode=ot.stateNode,ct.alternate=ot,ot.alternate=ct):(ct.pendingProps=et,ct.type=ot.type,ct.flags=0,ct.subtreeFlags=0,ct.deletions=null),ct.flags=ot.flags&14680064,ct.childLanes=ot.childLanes,ct.lanes=ot.lanes,ct.child=ot.child,ct.memoizedProps=ot.memoizedProps,ct.memoizedState=ot.memoizedState,ct.updateQueue=ot.updateQueue,et=ot.dependencies,ct.dependencies=et===null?null:{lanes:et.lanes,firstContext:et.firstContext},ct.sibling=ot.sibling,ct.index=ot.index,ct.ref=ot.ref,ct}function yh(ot,et,ct,ut,dt,ft){var zt=2;if(ut=ot,typeof ot=="function")bj(ot)&&(zt=1);else if(typeof ot=="string")zt=5;else e:switch(ot){case ya:return Ah(ct.children,dt,ft,et);case za:zt=8,dt|=8;break;case Aa:return ot=Bg(12,ct,et,dt|2),ot.elementType=Aa,ot.lanes=ft,ot;case Ea:return ot=Bg(13,ct,et,dt),ot.elementType=Ea,ot.lanes=ft,ot;case Fa:return ot=Bg(19,ct,et,dt),ot.elementType=Fa,ot.lanes=ft,ot;case Ia:return qj(ct,dt,ft,et);default:if(typeof ot=="object"&&ot!==null)switch(ot.$$typeof){case Ba:zt=10;break e;case Ca:zt=9;break e;case Da:zt=11;break e;case Ga:zt=14;break e;case Ha:zt=16,ut=null;break e}throw Error(p$4(130,ot==null?ot:typeof ot,""))}return et=Bg(zt,ct,et,dt),et.elementType=ot,et.type=ut,et.lanes=ft,et}function Ah(ot,et,ct,ut){return ot=Bg(7,ot,ut,et),ot.lanes=ct,ot}function qj(ot,et,ct,ut){return ot=Bg(22,ot,ut,et),ot.elementType=Ia,ot.lanes=ct,ot.stateNode={isHidden:!1},ot}function xh(ot,et,ct){return ot=Bg(6,ot,null,et),ot.lanes=ct,ot}function zh(ot,et,ct){return et=Bg(4,ot.children!==null?ot.children:[],ot.key,et),et.lanes=ct,et.stateNode={containerInfo:ot.containerInfo,pendingChildren:null,implementation:ot.implementation},et}function bl(ot,et,ct,ut,dt){this.tag=et,this.containerInfo=ot,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=ut,this.onRecoverableError=dt,this.mutableSourceEagerHydrationData=null}function cl$1(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=new bl(ot,et,ct,Dt,St),et===1?(et=1,ft===!0&&(et|=8)):et=0,ft=Bg(3,null,null,et),ot.current=ft,ft.stateNode=ot,ft.memoizedState={element:ut,isDehydrated:ct,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(ft),ot}function dl(ot,et,ct){var ut=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:wa,key:ut==null?null:""+ut,children:ot,containerInfo:et,implementation:ct}}function el$1(ot){if(!ot)return Vf;ot=ot._reactInternals;e:{if(Vb(ot)!==ot||ot.tag!==1)throw Error(p$4(170));var et=ot;do{switch(et.tag){case 3:et=et.stateNode.context;break e;case 1:if(Zf(et.type)){et=et.stateNode.__reactInternalMemoizedMergedChildContext;break e}}et=et.return}while(et!==null);throw Error(p$4(171))}if(ot.tag===1){var ct=ot.type;if(Zf(ct))return bg(ot,ct,et)}return et}function fl(ot,et,ct,ut,dt,ft,zt,Dt,St){return ot=cl$1(ct,ut,!0,ot,dt,ft,zt,Dt,St),ot.context=el$1(null),ct=ot.current,ut=L$2(),dt=lh(ct),ft=ch$1(ut,dt),ft.callback=et??null,dh(ct,ft,dt),ot.current.lanes=dt,Ac(ot,dt,ut),Ek(ot,ut),ot}function gl(ot,et,ct,ut){var dt=et.current,ft=L$2(),zt=lh(dt);return ct=el$1(ct),et.context===null?et.context=ct:et.pendingContext=ct,et=ch$1(ft,zt),et.payload={element:ot},ut=ut===void 0?null:ut,ut!==null&&(et.callback=ut),ot=dh(dt,et,zt),ot!==null&&(mh(ot,dt,zt,ft),eh(ot,dt,zt)),zt}function hl(ot){if(ot=ot.current,!ot.child)return null;switch(ot.child.tag){case 5:return ot.child.stateNode;default:return ot.child.stateNode}}function il(ot,et){if(ot=ot.memoizedState,ot!==null&&ot.dehydrated!==null){var ct=ot.retryLane;ot.retryLane=ct!==0&&ct<et?ct:et}}function jl(ot,et){il(ot,et),(ot=ot.alternate)&&il(ot,et)}var ll=typeof reportError=="function"?reportError:function(ot){console.error(ot)};function ml(ot){this._internalRoot=ot}nl.prototype.render=ml.prototype.render=function(ot){var et=this._internalRoot;if(et===null)throw Error(p$4(409));gl(ot,et,null,null)},nl.prototype.unmount=ml.prototype.unmount=function(){var ot=this._internalRoot;if(ot!==null){this._internalRoot=null;var et=ot.containerInfo;Sk(function(){gl(null,ot,null,null)}),et[uf]=null}};function nl(ot){this._internalRoot=ot}nl.prototype.unstable_scheduleHydration=function(ot){if(ot){var et=Hc();ot={blockedOn:null,target:ot,priority:et};for(var ct=0;ct<Qc.length&&et!==0&&et<Qc[ct].priority;ct++);Qc.splice(ct,0,ot),ct===0&&Vc(ot)}};function ol(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11)}function pl(ot){return!(!ot||ot.nodeType!==1&&ot.nodeType!==9&&ot.nodeType!==11&&(ot.nodeType!==8||ot.nodeValue!==" react-mount-point-unstable "))}function ql(){}function rl(ot,et,ct,ut,dt){if(dt){if(typeof ut=="function"){var ft=ut;ut=function(){var Tt=hl(zt);ft.call(Tt)}}var zt=fl(et,ut,ot,0,null,!1,!1,"",ql);return ot._reactRootContainer=zt,ot[uf]=zt.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(),zt}for(;dt=ot.lastChild;)ot.removeChild(dt);if(typeof ut=="function"){var Dt=ut;ut=function(){var Tt=hl(St);Dt.call(Tt)}}var St=cl$1(ot,0,!1,null,null,!1,!1,"",ql);return ot._reactRootContainer=St,ot[uf]=St.current,sf(ot.nodeType===8?ot.parentNode:ot),Sk(function(){gl(et,St,ct,ut)}),St}function sl(ot,et,ct,ut,dt){var ft=ct._reactRootContainer;if(ft){var zt=ft;if(typeof dt=="function"){var Dt=dt;dt=function(){var St=hl(zt);Dt.call(St)}}gl(et,zt,ot,dt)}else zt=rl(ct,et,ot,dt,ut);return hl(zt)}Ec=function(ot){switch(ot.tag){case 3:var et=ot.stateNode;if(et.current.memoizedState.isDehydrated){var ct=tc(et.pendingLanes);ct!==0&&(Cc(et,ct|1),Ek(et,B$3()),!(K$2&6)&&(Hj=B$3()+500,jg()))}break;case 13:Sk(function(){var ut=Zg(ot,1);if(ut!==null){var dt=L$2();mh(ut,ot,1,dt)}}),jl(ot,1)}},Fc=function(ot){if(ot.tag===13){var et=Zg(ot,134217728);if(et!==null){var ct=L$2();mh(et,ot,134217728,ct)}jl(ot,134217728)}},Gc=function(ot){if(ot.tag===13){var et=lh(ot),ct=Zg(ot,et);if(ct!==null){var ut=L$2();mh(ct,ot,et,ut)}jl(ot,et)}},Hc=function(){return C$2},Ic=function(ot,et){var ct=C$2;try{return C$2=ot,et()}finally{C$2=ct}},yb=function(ot,et,ct){switch(et){case"input":if(bb(ot,ct),et=ct.name,ct.type==="radio"&&et!=null){for(ct=ot;ct.parentNode;)ct=ct.parentNode;for(ct=ct.querySelectorAll("input[name="+JSON.stringify(""+et)+'][type="radio"]'),et=0;et<ct.length;et++){var ut=ct[et];if(ut!==ot&&ut.form===ot.form){var dt=Db(ut);if(!dt)throw Error(p$4(90));Wa(ut),bb(ut,dt)}}}break;case"textarea":ib(ot,ct);break;case"select":et=ct.value,et!=null&&fb(ot,!!ct.multiple,et,!1)}},Gb=Rk,Hb=Sk;var tl={usingClientEntryPoint:!1,Events:[Cb,ue$1,Db,Eb,Fb,Rk]},ul={findFiberByHostInstance:Wc,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},vl={bundleType:ul.bundleType,version:ul.version,rendererPackageName:ul.rendererPackageName,rendererConfig:ul.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua$1.ReactCurrentDispatcher,findHostInstanceByFiber:function(ot){return ot=Zb(ot),ot===null?null:ot.stateNode},findFiberByHostInstance:ul.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wl.isDisabled&&wl.supportsFiber)try{kc=wl.inject(vl),lc=wl}catch{}}reactDom_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,reactDom_production_min.createPortal=function(ot,et){var ct=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ol(et))throw Error(p$4(200));return dl(ot,et,null,ct)},reactDom_production_min.createRoot=function(ot,et){if(!ol(ot))throw Error(p$4(299));var ct=!1,ut="",dt=ll;return et!=null&&(et.unstable_strictMode===!0&&(ct=!0),et.identifierPrefix!==void 0&&(ut=et.identifierPrefix),et.onRecoverableError!==void 0&&(dt=et.onRecoverableError)),et=cl$1(ot,1,!1,null,null,ct,!1,ut,dt),ot[uf]=et.current,sf(ot.nodeType===8?ot.parentNode:ot),new ml(et)},reactDom_production_min.findDOMNode=function(ot){if(ot==null)return null;if(ot.nodeType===1)return ot;var et=ot._reactInternals;if(et===void 0)throw typeof ot.render=="function"?Error(p$4(188)):(ot=Object.keys(ot).join(","),Error(p$4(268,ot)));return ot=Zb(et),ot=ot===null?null:ot.stateNode,ot},reactDom_production_min.flushSync=function(ot){return Sk(ot)},reactDom_production_min.hydrate=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!0,ct)},reactDom_production_min.hydrateRoot=function(ot,et,ct){if(!ol(ot))throw Error(p$4(405));var ut=ct!=null&&ct.hydratedSources||null,dt=!1,ft="",zt=ll;if(ct!=null&&(ct.unstable_strictMode===!0&&(dt=!0),ct.identifierPrefix!==void 0&&(ft=ct.identifierPrefix),ct.onRecoverableError!==void 0&&(zt=ct.onRecoverableError)),et=fl(et,null,ot,1,ct??null,dt,!1,ft,zt),ot[uf]=et.current,sf(ot),ut)for(ot=0;ot<ut.length;ot++)ct=ut[ot],dt=ct._getVersion,dt=dt(ct._source),et.mutableSourceEagerHydrationData==null?et.mutableSourceEagerHydrationData=[ct,dt]:et.mutableSourceEagerHydrationData.push(ct,dt);return new nl(et)},reactDom_production_min.render=function(ot,et,ct){if(!pl(et))throw Error(p$4(200));return sl(null,ot,et,!1,ct)},reactDom_production_min.unmountComponentAtNode=function(ot){if(!pl(ot))throw Error(p$4(40));return ot._reactRootContainer?(Sk(function(){sl(null,null,ot,!1,function(){ot._reactRootContainer=null,ot[uf]=null})}),!0):!1},reactDom_production_min.unstable_batchedUpdates=Rk,reactDom_production_min.unstable_renderSubtreeIntoContainer=function(ot,et,ct,ut){if(!pl(ct))throw Error(p$4(200));if(ot==null||ot._reactInternals===void 0)throw Error(p$4(38));return sl(ot,et,ct,!1,ut)},reactDom_production_min.version="18.2.0-next-9e3b772b8-20220608";function checkDCE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(ot){console.error(ot)}}checkDCE(),reactDom.exports=reactDom_production_min,reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs$1(reactDomExports);class PromiseDelegate{constructor(){vr(this,"promise");vr(this,"resolveInternal");vr(this,"rejectInternal");this.promise=new Promise((et,ct)=>{this.resolveInternal=et,this.rejectInternal=ct})}resolve(et){this.resolveInternal(et)}reject(et){this.rejectInternal(et)}}const workerBlobUrlCache=new Map;function getWorkerBlobUrl(ot,et=!1){const ct=ot.toString(),ut=workerBlobUrlCache.get(ct);if(ut)return console.debug(`Using a cached worker blob URL for ${ct}`),ut;const dt=et?`import "${ct}";`:`importScripts("${ct}");`,ft=new Blob([dt],{type:et?"text/javascript;type=module":"text/javascript"}),zt=URL.createObjectURL(ft);return workerBlobUrlCache.set(ct,zt),zt}function isSameOrigin(ot){return ot.origin===window.location.origin}class CrossOriginWorkerMaker{constructor(et,{shared:ct,...ut}){vr(this,"worker");if(isSameOrigin(et))console.debug(`Loading a worker script from the same origin: ${et}`),this.worker=ct?new SharedWorker(et,ut):new Worker(et,ut);else{console.debug(`Loading a worker script from a different origin: ${et}`);const dt=getWorkerBlobUrl(et,ut.type==="module");this.worker=ct?new SharedWorker(dt,ut):new Worker(dt,ut)}}}function isPyodideConvertiblePrimitive(ot){return typeof ot=="string"||typeof ot=="number"||typeof ot=="boolean"||ot===null||ot===void 0}function isStreamlitConfig(ot){return typeof ot=="object"&&ot!=null&&Object.entries(ot).every(([et,ct])=>typeof et=="string"&&isPyodideConvertiblePrimitive(ct))}function assertStreamlitConfig(ot){if(!isStreamlitConfig(ot))throw new Error(`Invalid streamlitConfig: ${ot}`)}const FINAL_SLASH_RE$1=/\/+$/,INITIAL_SLASH_RE$1=/^\/+/,validateEnvKey=ot=>/^[A-Za-z_][A-Za-z0-9_]*$/.test(ot);class StliteKernel{constructor(et){vr(this,"_isDisposed",!1);vr(this,"_worker");vr(this,"_postMessageTarget");vr(this,"_loaded",new PromiseDelegate);vr(this,"_workerInitData");vr(this,"basePath");vr(this,"hostConfigResponse");vr(this,"onProgress");vr(this,"onLoad");vr(this,"onError");vr(this,"onModuleAutoLoad");vr(this,"handleWebSocketMessage",null);if(this.basePath=(et.basePath??window.location.pathname).replace(FINAL_SLASH_RE$1,"").replace(INITIAL_SLASH_RE$1,""),this.hostConfigResponse=et.hostConfigResponse??{},this.onProgress=et.onProgress,this.onLoad=et.onLoad,this.onError=et.onError,this.onModuleAutoLoad=et.onModuleAutoLoad,et.worker)this._worker=et.worker;else{const ct=new CrossOriginWorkerMaker(new URL("/assets/worker-CzOlZWlF.js",import.meta.url),{type:et.workerType,shared:et.sharedWorker??!1});this._worker=ct.worker}this._worker instanceof SharedWorker?(this._worker.port.start(),this._postMessageTarget=this._worker.port):this._postMessageTarget=this._worker,this._postMessageTarget.onmessage=ct=>{const ut=ct.ports[0];this._processWorkerMessage(ct.data,ut)},et.streamlitConfig!=null&&assertStreamlitConfig(et.streamlitConfig),this._workerInitData={entrypoint:et.entrypoint,files:et.files,archives:et.archives,requirements:et.requirements,prebuiltPackageNames:et.prebuiltPackageNames,pyodideUrl:et.pyodideUrl,wheels:et.wheelUrls,streamlitConfig:et.streamlitConfig,idbfsMountpoints:et.idbfsMountpoints,moduleAutoLoad:et.moduleAutoLoad??!1,env:et.env,languageServer:et.languageServer??!1}}get loaded(){return this._loaded.promise}connectWebSocket(et){return this._asyncPostMessage({type:"websocket:connect",data:{path:et}})}sendWebSocketMessage(et){return this._asyncPostMessage({type:"websocket:send",data:{payload:et}})}onWebSocketMessage(et){this.handleWebSocketMessage=et}sendHttpRequest(et){return this._asyncPostMessage({type:"http:request",data:{request:et}},"http:response").then(ct=>({...ct.response,headers:new Headers(Object.fromEntries(ct.response.headers))}))}writeFile(et,ct,ut){return this._asyncPostMessage({type:"file:write",data:{path:et,data:ct,opts:ut}})}renameFile(et,ct){return this._asyncPostMessage({type:"file:rename",data:{oldPath:et,newPath:ct}})}readFile(et,ct){return this._asyncPostMessage({type:"file:read",data:{path:et,opts:ct}},"reply:file:read").then(ut=>ut.content)}unlink(et){return this._asyncPostMessage({type:"file:unlink",data:{path:et}})}install(et){return this._asyncPostMessage({type:"install",data:{requirements:et}})}setEnv(et){return Object.keys(et).forEach(ct=>{if(!validateEnvKey(ct))throw new Error(`Invalid environment variable name: "${ct}"`)}),this._asyncPostMessage({type:"setEnv",data:{env:et}})}getCodeCompletion(et){if(!this._workerInitData.languageServer)throw new Error("Language server not loaded, please set languageServer=true to use this method");return this._asyncPostMessage({type:"language-server:code_completion",data:et},"reply:language-server:code_completion")}reboot(et){return this._asyncPostMessage({type:"reboot",data:{entrypoint:et}})}_asyncPostMessage(et,ct="reply"){return new Promise((ut,dt)=>{const ft=new MessageChannel;ft.port1.onmessage=zt=>{ft.port1.close();const Dt=zt.data;if(Dt.error)dt(Dt.error);else{if(Dt.type!==ct)throw new Error(`Unexpected reply type "${Dt.type}"`);ut(Dt.data)}},this._postMessageTarget.postMessage(et,[ft.port2])})}_processWorkerMessage(et,ct){switch(et.type){case"event:start":{this._postMessageTarget.postMessage({type:"initData",data:this._workerInitData});break}case"event:progress":{this.onProgress&&this.onProgress(et.data.message);break}case"event:error":{this.onError&&this.onError(et.data.error);break}case"event:loaded":{this._loaded.resolve(),this.onLoad&&this.onLoad();break}case"websocket:message":{const{payload:ut}=et.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(ut);break}case"event:moduleAutoLoad":{if(ct==null)throw new Error("Port is required for moduleAutoLoad event");this.onModuleAutoLoad&&this.onModuleAutoLoad(et.data.packagesToLoad,new Promise((ut,dt)=>{ct.onmessage=ft=>{const zt=ft.data;zt.type==="moduleAutoLoad:success"?ut(zt.data.loadedPackages):dt(zt.error),ct.close()}}));break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker instanceof SharedWorker?this._worker.port.close():this._worker.terminate(),this._isDisposed=!0)}}const StliteKernelContext=React$1.createContext(void 0),Provider$2=StliteKernelContext.Provider;function StliteKernelProvider(ot){const{children:et,kernel:ct}=ot,ut=reactExports.useMemo(()=>({kernel:ct}),[ct]);return jsxRuntimeExports.jsx(Provider$2,{value:ut,children:et})}useStliteKernel=function(){const ot=reactExports.useContext(StliteKernelContext);if(ot==null)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return ot.kernel};function resolveStliteObjectUrl(ot,et){return ot.sendHttpRequest({method:"GET",path:et,headers:{},body:""}).then(({statusCode:ct,headers:ut,body:dt})=>{if(ct!==200)throw new Error(`Failed to fetch media object: ${ct}`);const ft=ut.get("Content-Type"),zt=new Blob([dt],ft?{type:ft}:void 0);return URL.createObjectURL(zt)})}function resolveStliteObjectUrlIfNeeded(ot,et){return et.startsWith("/media")?resolveStliteObjectUrl(ot,et):Promise.resolve(et)}function resolveLogo(ot,et){return Promise.all([resolveStliteObjectUrlIfNeeded(ot,et.image),resolveStliteObjectUrlIfNeeded(ot,et.iconImage)]).then(([ct,ut])=>(et.image=ct,et.iconImage=ut,et))}function useStliteResolvedLogo(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(null);return reactExports.useEffect(()=>{let dt=!1;const ft=[];return ot==null?ut(null):resolveLogo(et,ot).then(zt=>{dt||(ft.push(zt.image),ft.push(zt.iconImage),ut(zt))}),()=>{ft.forEach(zt=>{URL.revokeObjectURL(zt)}),dt=!0}},[et,ot]),ct}useStliteMediaObjectUrl=function(ot){const et=useStliteKernel(),[ct,ut]=reactExports.useState(ot);return reactExports.useEffect(()=>{if(et==null||!ot.startsWith("/media"))return;let dt=!1;const ft=[];return resolveStliteObjectUrl(et,ot).then(zt=>{dt||(ft.push(zt),ut(zt))}),()=>{dt=!0,ft.forEach(zt=>{URL.revokeObjectURL(zt)})}},[et,ot]),ct},useStliteMediaObjects=function(ot){const[et,ct]=reactExports.useState(ot),ut=useStliteKernel();return reactExports.useEffect(()=>{if(ut==null)return;let dt=!1;const ft=[],zt=ot.map(Dt=>Dt.url==null||!Dt.url.startsWith("/media")?Dt:resolveStliteObjectUrl(ut,Dt.url).then(St=>dt?Dt:(ft.push(St),{...Dt,url:St})));return Promise.all(zt).then(Dt=>{dt||ct(Dt)}),()=>{dt=!0,ft.forEach(Dt=>{URL.revokeObjectURL(Dt)})}},[ut,ot]),et};const DUMMY_BASE_HOSTNAME="xxx",DUMMY_BASE_PORT=99999,DUMMY_BASE_HOST=DUMMY_BASE_HOSTNAME+":"+DUMMY_BASE_PORT.toString();function extractCustomComponentPath(ot,et){const ct=(DUMMY_BASE_HOST+"/"+ot).replace(/\/$/,""),ut=new RegExp(`https?://${ct}(/.*?$)`),dt=et.match(ut);return dt==null?null:dt[1]}function getParentPath(ot){const et=ot.split("/").slice(0,-1).join("/");return et.startsWith("/")?et:"/"+et}function getRelativePath(ot,et,ct){const ut=getParentPath(et);if(!(ct.host===ot&&ct.pathname.startsWith(ut)))return null;const dt=ct.pathname.slice(ut.length);return dt.startsWith("/")?dt.slice(1):dt}var lib$5={},activitymonitor={},ArrayExt;(function(ot){function et(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0){let _0=(n0+p0)%a0;if(Zt[_0]===o0)return _0}return-1}ot.firstIndexOf=et;function ct(Zt,o0,n0=-1,r0=0){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(let p0=0;p0<u0;++p0){let _0=(n0-p0+a0)%a0;if(Zt[_0]===o0)return _0}return-1}ot.lastIndexOf=ct;function ut(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0){let _0=(n0+p0)%a0;if(o0(Zt[_0],_0))return _0}return-1}ot.findFirstIndex=ut;function dt(Zt,o0,n0=-1,r0=0){let a0=Zt.length;if(a0===0)return-1;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;n0<r0?u0=n0+1+(a0-r0):u0=n0-r0+1;for(let p0=0;p0<u0;++p0){let _0=(n0-p0+a0)%a0;if(o0(Zt[_0],_0))return _0}return-1}ot.findLastIndex=dt;function ft(Zt,o0,n0=0,r0=-1){let a0=ut(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findFirstValue=ft;function zt(Zt,o0,n0=-1,r0=0){let a0=dt(Zt,o0,n0,r0);return a0!==-1?Zt[a0]:void 0}ot.findLastValue=zt;function Dt(Zt,o0,n0,r0=0,a0=-1){let u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);let p0=r0,_0=a0-r0+1;for(;_0>0;){let O0=_0>>1,E0=p0+O0;n0(Zt[E0],o0)<0?(p0=E0+1,_0-=O0+1):_0=O0}return p0}ot.lowerBound=Dt;function St(Zt,o0,n0,r0=0,a0=-1){let u0=Zt.length;if(u0===0)return 0;r0<0?r0=Math.max(0,r0+u0):r0=Math.min(r0,u0-1),a0<0?a0=Math.max(0,a0+u0):a0=Math.min(a0,u0-1);let p0=r0,_0=a0-r0+1;for(;_0>0;){let O0=_0>>1,E0=p0+O0;n0(Zt[E0],o0)>0?_0=O0:(p0=E0+1,_0-=O0+1)}return p0}ot.upperBound=St;function Tt(Zt,o0,n0){if(Zt===o0)return!0;if(Zt.length!==o0.length)return!1;for(let r0=0,a0=Zt.length;r0<a0;++r0)if(n0?!n0(Zt[r0],o0[r0]):Zt[r0]!==o0[r0])return!1;return!0}ot.shallowEqual=Tt;function Rt(Zt,o0={}){let{start:n0,stop:r0,step:a0}=o0;if(a0===void 0&&(a0=1),a0===0)throw new Error("Slice `step` cannot be zero.");let u0=Zt.length;n0===void 0?n0=a0<0?u0-1:0:n0<0?n0=Math.max(n0+u0,a0<0?-1:0):n0>=u0&&(n0=a0<0?u0-1:u0),r0===void 0?r0=a0<0?-1:u0:r0<0?r0=Math.max(r0+u0,a0<0?-1:0):r0>=u0&&(r0=a0<0?u0-1:u0);let p0;a0<0&&r0>=n0||a0>0&&n0>=r0?p0=0:a0<0?p0=Math.floor((r0-n0+1)/a0+1):p0=Math.floor((r0-n0-1)/a0+1);let _0=[];for(let O0=0;O0<p0;++O0)_0[O0]=Zt[n0+O0*a0];return _0}ot.slice=Rt;function $t(Zt,o0,n0){let r0=Zt.length;if(r0<=1||(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1),o0===n0))return;let a0=Zt[o0],u0=o0<n0?1:-1;for(let p0=o0;p0!==n0;p0+=u0)Zt[p0]=Zt[p0+u0];Zt[n0]=a0}ot.move=$t;function kt(Zt,o0=0,n0=-1){let r0=Zt.length;if(!(r0<=1))for(o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0-1),n0<0?n0=Math.max(0,n0+r0):n0=Math.min(n0,r0-1);o0<n0;){let a0=Zt[o0],u0=Zt[n0];Zt[o0++]=u0,Zt[n0--]=a0}}ot.reverse=kt;function Bt(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0<=1||(n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1),n0>=r0))return;let u0=r0-n0+1;if(o0>0?o0=o0%u0:o0<0&&(o0=(o0%u0+u0)%u0),o0===0)return;let p0=n0+o0;kt(Zt,n0,p0-1),kt(Zt,p0,r0),kt(Zt,n0,r0)}ot.rotate=Bt;function Ft(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0;r0<n0?u0=r0+1+(a0-n0):u0=r0-n0+1;for(let p0=0;p0<u0;++p0)Zt[(n0+p0)%a0]=o0}ot.fill=Ft;function jt(Zt,o0,n0){let r0=Zt.length;o0<0?o0=Math.max(0,o0+r0):o0=Math.min(o0,r0);for(let a0=r0;a0>o0;--a0)Zt[a0]=Zt[a0-1];Zt[o0]=n0}ot.insert=jt;function Kt(Zt,o0){let n0=Zt.length;if(o0<0&&(o0+=n0),o0<0||o0>=n0)return;let r0=Zt[o0];for(let a0=o0+1;a0<n0;++a0)Zt[a0-1]=Zt[a0];return Zt.length=n0-1,r0}ot.removeAt=Kt;function Yt(Zt,o0,n0=0,r0=-1){let a0=et(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeFirstOf=Yt;function Ut(Zt,o0,n0=-1,r0=0){let a0=ct(Zt,o0,n0,r0);return a0!==-1&&Kt(Zt,a0),a0}ot.removeLastOf=Ut;function Jt(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0=0;for(let p0=0;p0<a0;++p0)n0<=r0&&p0>=n0&&p0<=r0&&Zt[p0]===o0||r0<n0&&(p0<=r0||p0>=n0)&&Zt[p0]===o0?u0++:u0>0&&(Zt[p0-u0]=Zt[p0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllOf=Jt;function Ht(Zt,o0,n0=0,r0=-1){let a0,u0=ut(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeFirstWhere=Ht;function e0(Zt,o0,n0=-1,r0=0){let a0,u0=dt(Zt,o0,n0,r0);return u0!==-1&&(a0=Kt(Zt,u0)),{index:u0,value:a0}}ot.removeLastWhere=e0;function t0(Zt,o0,n0=0,r0=-1){let a0=Zt.length;if(a0===0)return 0;n0<0?n0=Math.max(0,n0+a0):n0=Math.min(n0,a0-1),r0<0?r0=Math.max(0,r0+a0):r0=Math.min(r0,a0-1);let u0=0;for(let p0=0;p0<a0;++p0)n0<=r0&&p0>=n0&&p0<=r0&&o0(Zt[p0],p0)||r0<n0&&(p0<=r0||p0>=n0)&&o0(Zt[p0],p0)?u0++:u0>0&&(Zt[p0-u0]=Zt[p0]);return u0>0&&(Zt.length=a0-u0),u0}ot.removeAllWhere=t0})(ArrayExt||(ArrayExt={}));function*chain(...ot){for(const et of ot)yield*et}function*empty$2(){}function*enumerate(ot,et=0){for(const ct of ot)yield[et++,ct]}function*filter$2(ot,et){let ct=0;for(const ut of ot)et(ut,ct++)&&(yield ut)}function find$4(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return ut}function findIndex$1(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return ct-1;return-1}function min$1(ot,et){let ct;for(const ut of ot){if(ct===void 0){ct=ut;continue}et(ut,ct)<0&&(ct=ut)}return ct}function max$1(ot,et){let ct;for(const ut of ot){if(ct===void 0){ct=ut;continue}et(ut,ct)>0&&(ct=ut)}return ct}function minmax(ot,et){let ct=!0,ut,dt;for(const ft of ot)ct?(ut=ft,dt=ft,ct=!1):et(ft,ut)<0?ut=ft:et(ft,dt)>0&&(dt=ft);return ct?void 0:[ut,dt]}function toArray$5(ot){return Array.from(ot)}function toObject$1(ot){const et={};for(const[ct,ut]of ot)et[ct]=ut;return et}function each(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++)===!1)return}function every(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++)===!1)return!1;return!0}function some$1(ot,et){let ct=0;for(const ut of ot)if(et(ut,ct++))return!0;return!1}function*map$4(ot,et){let ct=0;for(const ut of ot)yield et(ut,ct++)}function*range$2(ot,et,ct){et===void 0?(et=ot,ot=0,ct=1):ct===void 0&&(ct=1);const ut=Private$1.rangeLength(ot,et,ct);for(let dt=0;dt<ut;dt++)yield ot+ct*dt}var Private$1;(function(ot){function et(ct,ut,dt){return dt===0?1/0:ct>ut&&dt>0||ct<ut&&dt<0?0:Math.ceil((ut-ct)/dt)}ot.rangeLength=et})(Private$1||(Private$1={}));function reduce(ot,et,ct){const ut=ot[Symbol.iterator]();let dt=0,ft=ut.next();if(ft.done&&ct===void 0)throw new TypeError("Reduce of empty iterable with no initial value.");if(ft.done)return ct;let zt=ut.next();if(zt.done&&ct===void 0)return ft.value;if(zt.done)return et(ct,ft.value,dt++);let Dt;ct===void 0?Dt=et(ft.value,zt.value,dt++):Dt=et(et(ct,ft.value,dt++),zt.value,dt++);let St;for(;!(St=ut.next()).done;)Dt=et(Dt,St.value,dt++);return Dt}function*repeat$1(ot,et){for(;0<et--;)yield ot}function*once$2(ot){yield ot}function*retro(ot){if(typeof ot.retro=="function")yield*ot.retro();else for(let et=ot.length-1;et>-1;et--)yield ot[et]}function topologicSort(ot){let et=[],ct=new Set,ut=new Map;for(const zt of ot)dt(zt);for(const[zt]of ut)ft(zt);return et;function dt(zt){let[Dt,St]=zt,Tt=ut.get(St);Tt?Tt.push(Dt):ut.set(St,[Dt])}function ft(zt){if(ct.has(zt))return;ct.add(zt);let Dt=ut.get(zt);if(Dt)for(const St of Dt)ft(St);et.push(zt)}}function*stride(ot,et){let ct=0;for(const ut of ot)ct++%et===0&&(yield ut)}var StringExt;(function(ot){function et(zt,Dt,St=0){let Tt=new Array(Dt.length);for(let Rt=0,$t=St,kt=Dt.length;Rt<kt;++Rt,++$t){if($t=zt.indexOf(Dt[Rt],$t),$t===-1)return null;Tt[Rt]=$t}return Tt}ot.findIndices=et;function ct(zt,Dt,St=0){let Tt=et(zt,Dt,St);if(!Tt)return null;let Rt=0;for(let $t=0,kt=Tt.length;$t<kt;++$t){let Bt=Tt[$t]-St;Rt+=Bt*Bt}return{score:Rt,indices:Tt}}ot.matchSumOfSquares=ct;function ut(zt,Dt,St=0){let Tt=et(zt,Dt,St);if(!Tt)return null;let Rt=0,$t=St-1;for(let kt=0,Bt=Tt.length;kt<Bt;++kt){let Ft=Tt[kt];Rt+=Ft-$t-1,$t=Ft}return{score:Rt,indices:Tt}}ot.matchSumOfDeltas=ut;function dt(zt,Dt,St){let Tt=[],Rt=0,$t=0,kt=Dt.length;for(;Rt<kt;){let Bt=Dt[Rt],Ft=Dt[Rt];for(;++Rt<kt&&Dt[Rt]===Ft+1;)Ft++;$t<Bt&&Tt.push(zt.slice($t,Bt)),Bt<Ft+1&&Tt.push(St(zt.slice(Bt,Ft+1))),$t=Ft+1}return $t<zt.length&&Tt.push(zt.slice($t)),Tt}ot.highlight=dt;function ft(zt,Dt){return zt<Dt?-1:zt>Dt?1:0}ot.cmp=ft})(StringExt||(StringExt={}));function*take(ot,et){if(et<1)return;const ct=ot[Symbol.iterator]();let ut;for(;0<et--&&!(ut=ct.next()).done;)yield ut.value}function*zip$2(...ot){const et=ot.map(ut=>ut[Symbol.iterator]());let ct=et.map(ut=>ut.next());for(;every(ct,ut=>!ut.done);ct=et.map(ut=>ut.next()))yield ct.map(ut=>ut.value)}const index_es6$1=Object.freeze(Object.defineProperty({__proto__:null,get ArrayExt(){return ArrayExt},get StringExt(){return StringExt},chain,each,empty:empty$2,enumerate,every,filter:filter$2,find:find$4,findIndex:findIndex$1,map:map$4,max:max$1,min:min$1,minmax,once:once$2,range:range$2,reduce,repeat:repeat$1,retro,some:some$1,stride,take,toArray:toArray$5,toObject:toObject$1,topologicSort,zip:zip$2},Symbol.toStringTag,{value:"Module"}));var dist$1={exports:{}};const require$$0$4=getAugmentedNamespace(index_es6$1);(function(ot,et){(function(ct,ut){ut(et,require$$0$4)})(commonjsGlobal$1,function(ct,ut){ct.JSONExt=void 0,function($t){$t.emptyObject=Object.freeze({}),$t.emptyArray=Object.freeze([]);function kt(e0){return e0===null||typeof e0=="boolean"||typeof e0=="number"||typeof e0=="string"}$t.isPrimitive=kt;function Bt(e0){return Array.isArray(e0)}$t.isArray=Bt;function Ft(e0){return!kt(e0)&&!Bt(e0)}$t.isObject=Ft;function jt(e0,t0){if(e0===t0)return!0;if(kt(e0)||kt(t0))return!1;let Zt=Bt(e0),o0=Bt(t0);return Zt!==o0?!1:Zt&&o0?Yt(e0,t0):Ut(e0,t0)}$t.deepEqual=jt;function Kt(e0){return kt(e0)?e0:Bt(e0)?Jt(e0):Ht(e0)}$t.deepCopy=Kt;function Yt(e0,t0){if(e0===t0)return!0;if(e0.length!==t0.length)return!1;for(let Zt=0,o0=e0.length;Zt<o0;++Zt)if(!jt(e0[Zt],t0[Zt]))return!1;return!0}function Ut(e0,t0){if(e0===t0)return!0;for(let Zt in e0)if(e0[Zt]!==void 0&&!(Zt in t0))return!1;for(let Zt in t0)if(t0[Zt]!==void 0&&!(Zt in e0))return!1;for(let Zt in e0){let o0=e0[Zt],n0=t0[Zt];if(!(o0===void 0&&n0===void 0)&&(o0===void 0||n0===void 0||!jt(o0,n0)))return!1}return!0}function Jt(e0){let t0=new Array(e0.length);for(let Zt=0,o0=e0.length;Zt<o0;++Zt)t0[Zt]=Kt(e0[Zt]);return t0}function Ht(e0){let t0={};for(let Zt in e0){let o0=e0[Zt];o0!==void 0&&(t0[Zt]=Kt(o0))}return t0}}(ct.JSONExt||(ct.JSONExt={}));class dt{constructor(){this._types=[],this._values=[]}types(){return this._types.slice()}hasData(kt){return this._types.indexOf(kt)!==-1}getData(kt){let Bt=this._types.indexOf(kt);return Bt!==-1?this._values[Bt]:void 0}setData(kt,Bt){this.clearData(kt),this._types.push(kt),this._values.push(Bt)}clearData(kt){let Bt=this._types.indexOf(kt);Bt!==-1&&(this._types.splice(Bt,1),this._values.splice(Bt,1))}clear(){this._types.length=0,this._values.length=0}}class ft{constructor(kt={}){this._application=null,this._validatePlugin=()=>!0,this._plugins=new Map,this._services=new Map,kt.validatePlugin&&(console.info("Plugins may be rejected by the custom validation plugin method."),this._validatePlugin=kt.validatePlugin)}get application(){return this._application}set application(kt){if(this._application!==null)throw Error("PluginRegistry.application is already set. It cannot be overridden.");this._application=kt}get deferredPlugins(){return Array.from(this._plugins).filter(([kt,Bt])=>Bt.autoStart==="defer").map(([kt,Bt])=>kt)}getPluginDescription(kt){var Bt,Ft;return(Ft=(Bt=this._plugins.get(kt))===null||Bt===void 0?void 0:Bt.description)!==null&&Ft!==void 0?Ft:""}hasPlugin(kt){return this._plugins.has(kt)}isPluginActivated(kt){var Bt,Ft;return(Ft=(Bt=this._plugins.get(kt))===null||Bt===void 0?void 0:Bt.activated)!==null&&Ft!==void 0?Ft:!1}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(kt){if(this._plugins.has(kt.id))throw new TypeError(`Plugin '${kt.id}' is already registered.`);if(!this._validatePlugin(kt))throw new Error(`Plugin '${kt.id}' is not valid.`);const Bt=zt.createPluginData(kt);zt.ensureNoCycle(Bt,this._plugins,this._services),Bt.provides&&this._services.set(Bt.provides,Bt.id),this._plugins.set(Bt.id,Bt)}registerPlugins(kt){for(const Bt of kt)this.registerPlugin(Bt)}deregisterPlugin(kt,Bt){const Ft=this._plugins.get(kt);if(Ft){if(Ft.activated&&!Bt)throw new Error(`Plugin '${kt}' is still active.`);this._plugins.delete(kt)}}async activatePlugin(kt){const Bt=this._plugins.get(kt);if(!Bt)throw new ReferenceError(`Plugin '${kt}' is not registered.`);if(Bt.activated)return;if(Bt.promise)return Bt.promise;const Ft=Bt.requires.map(Kt=>this.resolveRequiredService(Kt)),jt=Bt.optional.map(Kt=>this.resolveOptionalService(Kt));return Bt.promise=Promise.all([...Ft,...jt]).then(Kt=>Bt.activate.apply(void 0,[this.application,...Kt])).then(Kt=>{Bt.service=Kt,Bt.activated=!0,Bt.promise=null}).catch(Kt=>{throw Bt.promise=null,Kt}),Bt.promise}async activatePlugins(kt,Bt={}){switch(kt){case"defer":{const Ft=this.deferredPlugins.filter(jt=>this._plugins.get(jt).autoStart).map(jt=>this.activatePlugin(jt));await Promise.all(Ft);break}case"startUp":{const Ft=zt.collectStartupPlugins(this._plugins,Bt).map(async jt=>{try{return await this.activatePlugin(jt)}catch(Kt){console.error(`Plugin '${jt}' failed to activate.`,Kt)}});await Promise.all(Ft);break}}}async deactivatePlugin(kt){const Bt=this._plugins.get(kt);if(!Bt)throw new ReferenceError(`Plugin '${kt}' is not registered.`);if(!Bt.activated)return[];if(!Bt.deactivate)throw new TypeError(`Plugin '${kt}'#deactivate() method missing`);const Ft=zt.findDependents(kt,this._plugins,this._services),jt=Ft.map(Kt=>this._plugins.get(Kt));for(const Kt of jt)if(!Kt.deactivate)throw new TypeError(`Plugin ${Kt.id}#deactivate() method missing (depends on ${kt})`);for(const Kt of jt){const Yt=[...Kt.requires,...Kt.optional].map(Ut=>{const Jt=this._services.get(Ut);return Jt?this._plugins.get(Jt).service:null});await Kt.deactivate(this.application,...Yt),Kt.service=null,Kt.activated=!1}return Ft.pop(),Ft}async resolveRequiredService(kt){const Bt=this._services.get(kt);if(!Bt)throw new TypeError(`No provider for: ${kt.name}.`);const Ft=this._plugins.get(Bt);return Ft.activated||await this.activatePlugin(Bt),Ft.service}async resolveOptionalService(kt){const Bt=this._services.get(kt);if(!Bt)return null;const Ft=this._plugins.get(Bt);if(!Ft.activated)try{await this.activatePlugin(Bt)}catch(jt){return console.error(jt),null}return Ft.service}}var zt;(function($t){class kt{constructor(Ut){var Jt,Ht,e0,t0;this._activated=!1,this._promise=null,this._service=null,this.id=Ut.id,this.description=(Jt=Ut.description)!==null&&Jt!==void 0?Jt:"",this.activate=Ut.activate,this.deactivate=(Ht=Ut.deactivate)!==null&&Ht!==void 0?Ht:null,this.provides=(e0=Ut.provides)!==null&&e0!==void 0?e0:null,this.autoStart=(t0=Ut.autoStart)!==null&&t0!==void 0?t0:!1,this.requires=Ut.requires?Ut.requires.slice():[],this.optional=Ut.optional?Ut.optional.slice():[]}get activated(){return this._activated}set activated(Ut){this._activated=Ut}get service(){return this._service}set service(Ut){this._service=Ut}get promise(){return this._promise}set promise(Ut){this._promise=Ut}}function Bt(Yt){return new kt(Yt)}$t.createPluginData=Bt;function Ft(Yt,Ut,Jt){const Ht=[...Yt.requires,...Yt.optional],e0=Zt=>{if(Zt===Yt.provides)return!0;const o0=Jt.get(Zt);if(!o0)return!1;const n0=Ut.get(o0),r0=[...n0.requires,...n0.optional];return r0.length===0?!1:(t0.push(o0),r0.some(e0)?!0:(t0.pop(),!1))};if(!Yt.provides||Ht.length===0)return;const t0=[Yt.id];if(Ht.some(e0))throw new ReferenceError(`Cycle detected: ${t0.join(" -> ")}.`)}$t.ensureNoCycle=Ft;function jt(Yt,Ut,Jt){const Ht=new Array,e0=r0=>{const a0=Ut.get(r0),u0=[...a0.requires,...a0.optional];Ht.push(...u0.reduce((p0,_0)=>{const O0=Jt.get(_0);return O0&&p0.push([r0,O0]),p0},[]))};for(const r0 of Ut.keys())e0(r0);const t0=Ht.filter(r0=>r0[1]===Yt);let Zt=0;for(;t0.length>Zt;){const r0=t0.length,a0=new Set(t0.map(u0=>u0[0]));for(const u0 of a0)Ht.filter(p0=>p0[1]===u0).forEach(p0=>{t0.includes(p0)||t0.push(p0)});Zt=r0}const o0=ut.topologicSort(t0),n0=o0.findIndex(r0=>r0===Yt);return n0===-1?[Yt]:o0.slice(0,n0+1)}$t.findDependents=jt;function Kt(Yt,Ut){const Jt=new Set;for(const Ht of Yt.keys())Yt.get(Ht).autoStart===!0&&Jt.add(Ht);if(Ut.startPlugins)for(const Ht of Ut.startPlugins)Jt.add(Ht);if(Ut.ignorePlugins)for(const Ht of Ut.ignorePlugins)Jt.delete(Ht);return Array.from(Jt)}$t.collectStartupPlugins=Kt})(zt||(zt={}));class Dt{constructor(){this.promise=new Promise((kt,Bt)=>{this._resolve=kt,this._reject=Bt})}resolve(kt){let Bt=this._resolve;Bt(kt)}reject(kt){let Bt=this._reject;Bt(kt)}}class St{constructor(kt,Bt){this.name=kt,this.description=Bt??"",this._tokenStructuralPropertyT=null}}function Tt($t){let kt=0;for(let Bt=0,Ft=$t.length;Bt<Ft;++Bt)Bt%4===0&&(kt=Math.random()*4294967295>>>0),$t[Bt]=kt&255,kt>>>=8}ct.Random=void 0,function($t){$t.getRandomValues=(()=>{const kt=typeof window<"u"&&(window.crypto||window.msCrypto)||null;return kt&&typeof kt.getRandomValues=="function"?function(Bt){return kt.getRandomValues(Bt)}:Tt})()}(ct.Random||(ct.Random={}));function Rt($t){const kt=new Uint8Array(16),Bt=new Array(256);for(let Ft=0;Ft<16;++Ft)Bt[Ft]="0"+Ft.toString(16);for(let Ft=16;Ft<256;++Ft)Bt[Ft]=Ft.toString(16);return function(){return $t(kt),kt[6]=64|kt[6]&15,kt[8]=128|kt[8]&63,Bt[kt[0]]+Bt[kt[1]]+Bt[kt[2]]+Bt[kt[3]]+"-"+Bt[kt[4]]+Bt[kt[5]]+"-"+Bt[kt[6]]+Bt[kt[7]]+"-"+Bt[kt[8]]+Bt[kt[9]]+"-"+Bt[kt[10]]+Bt[kt[11]]+Bt[kt[12]]+Bt[kt[13]]+Bt[kt[14]]+Bt[kt[15]]}}ct.UUID=void 0,function($t){$t.uuid4=Rt(ct.Random.getRandomValues)}(ct.UUID||(ct.UUID={})),ct.MimeData=dt,ct.PluginRegistry=ft,ct.PromiseDelegate=Dt,ct.Token=St})})(dist$1,dist$1.exports);var distExports=dist$1.exports;let Signal$2=class{constructor(ot){this.sender=ot}connect(ot,et){return Private.connect(this,ot,et)}disconnect(ot,et){return Private.disconnect(this,ot,et)}emit(ot){Private.emit(this,ot)}};(function(ot){function et(St,Tt){Private.disconnectBetween(St,Tt)}ot.disconnectBetween=et;function ct(St){Private.disconnectSender(St)}ot.disconnectSender=ct;function ut(St){Private.disconnectReceiver(St)}ot.disconnectReceiver=ut;function dt(St){Private.disconnectAll(St)}ot.disconnectAll=dt;function ft(St){Private.disconnectAll(St)}ot.clearData=ft;function zt(){return Private.exceptionHandler}ot.getExceptionHandler=zt;function Dt(St){let Tt=Private.exceptionHandler;return Private.exceptionHandler=St,Tt}ot.setExceptionHandler=Dt})(Signal$2);class Stream extends Signal$2{constructor(){super(...arguments),this._pending=new distExports.PromiseDelegate}async*[Symbol.asyncIterator](){let et=this._pending;for(;;)try{const{args:ct,next:ut}=await et.promise;et=ut,yield ct}catch{return}}emit(et){const ct=this._pending,ut=this._pending=new distExports.PromiseDelegate;ct.resolve({args:et,next:ut}),super.emit(et)}stop(){this._pending.promise.catch(()=>{}),this._pending.reject("stop"),this._pending=new distExports.PromiseDelegate}}var Private;(function(ot){ot.exceptionHandler=Ut=>{console.error(Ut)};function et(Ut,Jt,Ht){Ht=Ht||void 0;let e0=St.get(Ut.sender);if(e0||(e0=[],St.set(Ut.sender,e0)),kt(e0,Ut,Jt,Ht))return!1;let t0=Ht||Jt,Zt=Tt.get(t0);Zt||(Zt=[],Tt.set(t0,Zt));let o0={signal:Ut,slot:Jt,thisArg:Ht};return e0.push(o0),Zt.push(o0),!0}ot.connect=et;function ct(Ut,Jt,Ht){Ht=Ht||void 0;let e0=St.get(Ut.sender);if(!e0||e0.length===0)return!1;let t0=kt(e0,Ut,Jt,Ht);if(!t0)return!1;let Zt=Ht||Jt,o0=Tt.get(Zt);return t0.signal=null,Ft(e0),Ft(o0),!0}ot.disconnect=ct;function ut(Ut,Jt){let Ht=St.get(Ut);if(!Ht||Ht.length===0)return;let e0=Tt.get(Jt);if(!(!e0||e0.length===0)){for(const t0 of e0)t0.signal&&t0.signal.sender===Ut&&(t0.signal=null);Ft(Ht),Ft(e0)}}ot.disconnectBetween=ut;function dt(Ut){let Jt=St.get(Ut);if(!(!Jt||Jt.length===0)){for(const Ht of Jt){if(!Ht.signal)continue;let e0=Ht.thisArg||Ht.slot;Ht.signal=null,Ft(Tt.get(e0))}Ft(Jt)}}ot.disconnectSender=dt;function ft(Ut){let Jt=Tt.get(Ut);if(!(!Jt||Jt.length===0)){for(const Ht of Jt){if(!Ht.signal)continue;let e0=Ht.signal.sender;Ht.signal=null,Ft(St.get(e0))}Ft(Jt)}}ot.disconnectReceiver=ft;function zt(Ut){dt(Ut),ft(Ut)}ot.disconnectAll=zt;function Dt(Ut,Jt){let Ht=St.get(Ut.sender);if(!(!Ht||Ht.length===0))for(let e0=0,t0=Ht.length;e0<t0;++e0){let Zt=Ht[e0];Zt.signal===Ut&&Bt(Zt,Jt)}}ot.emit=Dt;const St=new WeakMap,Tt=new WeakMap,Rt=new Set,$t=typeof requestAnimationFrame=="function"?requestAnimationFrame:setImmediate;function kt(Ut,Jt,Ht,e0){return find$4(Ut,t0=>t0.signal===Jt&&t0.slot===Ht&&t0.thisArg===e0)}function Bt(Ut,Jt){let{signal:Ht,slot:e0,thisArg:t0}=Ut;try{e0.call(t0,Ht.sender,Jt)}catch(Zt){ot.exceptionHandler(Zt)}}function Ft(Ut){Rt.size===0&&$t(jt),Rt.add(Ut)}function jt(){Rt.forEach(Kt),Rt.clear()}function Kt(Ut){ArrayExt.removeAllWhere(Ut,Yt)}function Yt(Ut){return Ut.signal===null}})(Private||(Private={}));const index_es6=Object.freeze(Object.defineProperty({__proto__:null,Signal:Signal$2,Stream},Symbol.toStringTag,{value:"Module"})),require$$0$3=getAugmentedNamespace(index_es6);Object.defineProperty(activitymonitor,"__esModule",{value:!0}),activitymonitor.ActivityMonitor=void 0;const signaling_1=require$$0$3;class ActivityMonitor{constructor(et){this._timer=-1,this._timeout=-1,this._isDisposed=!1,this._activityStopped=new signaling_1.Signal(this),et.signal.connect(this._onSignalFired,this),this._timeout=et.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(et){this._timeout=et}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed||(this._isDisposed=!0,signaling_1.Signal.clearData(this))}_onSignalFired(et,ct){clearTimeout(this._timer),this._sender=et,this._args=ct,this._timer=setTimeout(()=>{this._activityStopped.emit({sender:this._sender,args:this._args})},this._timeout)}}activitymonitor.ActivityMonitor=ActivityMonitor;var interfaces={};Object.defineProperty(interfaces,"__esModule",{value:!0});var lru={};Object.defineProperty(lru,"__esModule",{value:!0}),lru.LruCache=void 0;const DEFAULT_MAX_SIZE=128;class LruCache{constructor(et={}){this._map=new Map,this._maxSize=(et==null?void 0:et.maxSize)||DEFAULT_MAX_SIZE}get size(){return this._map.size}clear(){this._map.clear()}get(et){const ct=this._map.get(et)||null;return ct!=null&&(this._map.delete(et),this._map.set(et,ct)),ct}set(et,ct){this._map.size>=this._maxSize&&this._map.delete(this._map.keys().next().value),this._map.set(et,ct)}}lru.LruCache=LruCache;var markdowncodeblocks={};Object.defineProperty(markdowncodeblocks,"__esModule",{value:!0}),markdowncodeblocks.MarkdownCodeBlocks=void 0;var MarkdownCodeBlocks;(function(ot){ot.CODE_BLOCK_MARKER="```";const et=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class ct{constructor(zt){this.startLine=zt,this.code="",this.endLine=-1}}ot.MarkdownCodeBlock=ct;function ut(ft){return et.indexOf(ft)>-1}ot.isMarkdown=ut;function dt(ft){if(!ft||ft==="")return[];const zt=ft.split(`
|
|
10
10
|
`),Dt=[];let St=null;for(let Tt=0;Tt<zt.length;Tt++){const Rt=zt[Tt],$t=Rt.indexOf(ot.CODE_BLOCK_MARKER)===0,kt=St!=null;if(!(!$t&&!kt))if(kt)St&&($t?(St.endLine=Tt-1,Dt.push(St),St=null):St.code+=Rt+`
|
|
11
11
|
`);else{St=new ct(Tt);const Bt=Rt.indexOf(ot.CODE_BLOCK_MARKER),Ft=Rt.lastIndexOf(ot.CODE_BLOCK_MARKER);Bt!==Ft&&(St.code=Rt.substring(Bt+ot.CODE_BLOCK_MARKER.length,Ft),St.endLine=Tt,Dt.push(St),St=null)}}return Dt}ot.findMarkdownCodeBlocks=dt})(MarkdownCodeBlocks||(markdowncodeblocks.MarkdownCodeBlocks=MarkdownCodeBlocks={}));var pageconfig={};function hasKey(ot,et){var ct=ot;et.slice(0,-1).forEach(function(dt){ct=ct[dt]||{}});var ut=et[et.length-1];return ut in ct}function isNumber$3(ot){return typeof ot=="number"||/^0x[0-9a-f]+$/i.test(ot)?!0:/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(ot)}function isConstructorOrProto(ot,et){return et==="constructor"&&typeof ot[et]=="function"||et==="__proto__"}var minimist=function(ot,et){et||(et={});var ct={bools:{},strings:{},unknownFn:null};typeof et.unknown=="function"&&(ct.unknownFn=et.unknown),typeof et.boolean=="boolean"&&et.boolean?ct.allBools=!0:[].concat(et.boolean).filter(Boolean).forEach(function(Ht){ct.bools[Ht]=!0});var ut={};function dt(Ht){return ut[Ht].some(function(e0){return ct.bools[e0]})}Object.keys(et.alias||{}).forEach(function(Ht){ut[Ht]=[].concat(et.alias[Ht]),ut[Ht].forEach(function(e0){ut[e0]=[Ht].concat(ut[Ht].filter(function(t0){return e0!==t0}))})}),[].concat(et.string).filter(Boolean).forEach(function(Ht){ct.strings[Ht]=!0,ut[Ht]&&[].concat(ut[Ht]).forEach(function(e0){ct.strings[e0]=!0})});var ft=et.default||{},zt={_:[]};function Dt(Ht,e0){return ct.allBools&&/^--[^=]+$/.test(e0)||ct.strings[Ht]||ct.bools[Ht]||ut[Ht]}function St(Ht,e0,t0){for(var Zt=Ht,o0=0;o0<e0.length-1;o0++){var n0=e0[o0];if(isConstructorOrProto(Zt,n0))return;Zt[n0]===void 0&&(Zt[n0]={}),(Zt[n0]===Object.prototype||Zt[n0]===Number.prototype||Zt[n0]===String.prototype)&&(Zt[n0]={}),Zt[n0]===Array.prototype&&(Zt[n0]=[]),Zt=Zt[n0]}var r0=e0[e0.length-1];isConstructorOrProto(Zt,r0)||((Zt===Object.prototype||Zt===Number.prototype||Zt===String.prototype)&&(Zt={}),Zt===Array.prototype&&(Zt=[]),Zt[r0]===void 0||ct.bools[r0]||typeof Zt[r0]=="boolean"?Zt[r0]=t0:Array.isArray(Zt[r0])?Zt[r0].push(t0):Zt[r0]=[Zt[r0],t0])}function Tt(Ht,e0,t0){if(!(t0&&ct.unknownFn&&!Dt(Ht,t0)&&ct.unknownFn(t0)===!1)){var Zt=!ct.strings[Ht]&&isNumber$3(e0)?Number(e0):e0;St(zt,Ht.split("."),Zt),(ut[Ht]||[]).forEach(function(o0){St(zt,o0.split("."),Zt)})}}Object.keys(ct.bools).forEach(function(Ht){Tt(Ht,ft[Ht]===void 0?!1:ft[Ht])});var Rt=[];ot.indexOf("--")!==-1&&(Rt=ot.slice(ot.indexOf("--")+1),ot=ot.slice(0,ot.indexOf("--")));for(var $t=0;$t<ot.length;$t++){var kt=ot[$t],Bt,Ft;if(/^--.+=/.test(kt)){var jt=kt.match(/^--([^=]+)=([\s\S]*)$/);Bt=jt[1];var Kt=jt[2];ct.bools[Bt]&&(Kt=Kt!=="false"),Tt(Bt,Kt,kt)}else if(/^--no-.+/.test(kt))Bt=kt.match(/^--no-(.+)/)[1],Tt(Bt,!1,kt);else if(/^--.+/.test(kt))Bt=kt.match(/^--(.+)/)[1],Ft=ot[$t+1],Ft!==void 0&&!/^(-|--)[^-]/.test(Ft)&&!ct.bools[Bt]&&!ct.allBools&&(!ut[Bt]||!dt(Bt))?(Tt(Bt,Ft,kt),$t+=1):/^(true|false)$/.test(Ft)?(Tt(Bt,Ft==="true",kt),$t+=1):Tt(Bt,ct.strings[Bt]?"":!0,kt);else if(/^-[^-]+/.test(kt)){for(var Yt=kt.slice(1,-1).split(""),Ut=!1,Jt=0;Jt<Yt.length;Jt++){if(Ft=kt.slice(Jt+2),Ft==="-"){Tt(Yt[Jt],Ft,kt);continue}if(/[A-Za-z]/.test(Yt[Jt])&&Ft[0]==="="){Tt(Yt[Jt],Ft.slice(1),kt),Ut=!0;break}if(/[A-Za-z]/.test(Yt[Jt])&&/-?\d+(\.\d*)?(e-?\d+)?$/.test(Ft)){Tt(Yt[Jt],Ft,kt),Ut=!0;break}if(Yt[Jt+1]&&Yt[Jt+1].match(/\W/)){Tt(Yt[Jt],kt.slice(Jt+2),kt),Ut=!0;break}else Tt(Yt[Jt],ct.strings[Yt[Jt]]?"":!0,kt)}Bt=kt.slice(-1)[0],!Ut&&Bt!=="-"&&(ot[$t+1]&&!/^(-|--)[^-]/.test(ot[$t+1])&&!ct.bools[Bt]&&(!ut[Bt]||!dt(Bt))?(Tt(Bt,ot[$t+1],kt),$t+=1):ot[$t+1]&&/^(true|false)$/.test(ot[$t+1])?(Tt(Bt,ot[$t+1]==="true",kt),$t+=1):Tt(Bt,ct.strings[Bt]?"":!0,kt))}else if((!ct.unknownFn||ct.unknownFn(kt)!==!1)&&zt._.push(ct.strings._||!isNumber$3(kt)?kt:Number(kt)),et.stopEarly){zt._.push.apply(zt._,ot.slice($t+1));break}}return Object.keys(ft).forEach(function(Ht){hasKey(zt,Ht.split("."))||(St(zt,Ht.split("."),ft[Ht]),(ut[Ht]||[]).forEach(function(e0){St(zt,e0.split("."),ft[Ht])}))}),et["--"]?zt["--"]=Rt.slice():Rt.forEach(function(Ht){zt._.push(Ht)}),zt},url={};function assertPath$2(ot){if(typeof ot!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(ot))}function normalizeStringPosix(ot,et){for(var ct="",ut=0,dt=-1,ft=0,zt,Dt=0;Dt<=ot.length;++Dt){if(Dt<ot.length)zt=ot.charCodeAt(Dt);else{if(zt===47)break;zt=47}if(zt===47){if(!(dt===Dt-1||ft===1))if(dt!==Dt-1&&ft===2){if(ct.length<2||ut!==2||ct.charCodeAt(ct.length-1)!==46||ct.charCodeAt(ct.length-2)!==46){if(ct.length>2){var St=ct.lastIndexOf("/");if(St!==ct.length-1){St===-1?(ct="",ut=0):(ct=ct.slice(0,St),ut=ct.length-1-ct.lastIndexOf("/")),dt=Dt,ft=0;continue}}else if(ct.length===2||ct.length===1){ct="",ut=0,dt=Dt,ft=0;continue}}et&&(ct.length>0?ct+="/..":ct="..",ut=2)}else ct.length>0?ct+="/"+ot.slice(dt+1,Dt):ct=ot.slice(dt+1,Dt),ut=Dt-dt-1;dt=Dt,ft=0}else zt===46&&ft!==-1?++ft:ft=-1}return ct}function _format(ot,et){var ct=et.dir||et.root,ut=et.base||(et.name||"")+(et.ext||"");return ct?ct===et.root?ct+ut:ct+ot+ut:ut}var posix={resolve:function(){for(var ot="",et=!1,ct,ut=arguments.length-1;ut>=-1&&!et;ut--){var dt;ut>=0?dt=arguments[ut]:(ct===void 0&&(ct=process.cwd()),dt=ct),assertPath$2(dt),dt.length!==0&&(ot=dt+"/"+ot,et=dt.charCodeAt(0)===47)}return ot=normalizeStringPosix(ot,!et),et?ot.length>0?"/"+ot:"/":ot.length>0?ot:"."},normalize:function(ot){if(assertPath$2(ot),ot.length===0)return".";var et=ot.charCodeAt(0)===47,ct=ot.charCodeAt(ot.length-1)===47;return ot=normalizeStringPosix(ot,!et),ot.length===0&&!et&&(ot="."),ot.length>0&&ct&&(ot+="/"),et?"/"+ot:ot},isAbsolute:function(ot){return assertPath$2(ot),ot.length>0&&ot.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var ot,et=0;et<arguments.length;++et){var ct=arguments[et];assertPath$2(ct),ct.length>0&&(ot===void 0?ot=ct:ot+="/"+ct)}return ot===void 0?".":posix.normalize(ot)},relative:function(ot,et){if(assertPath$2(ot),assertPath$2(et),ot===et||(ot=posix.resolve(ot),et=posix.resolve(et),ot===et))return"";for(var ct=1;ct<ot.length&&ot.charCodeAt(ct)===47;++ct);for(var ut=ot.length,dt=ut-ct,ft=1;ft<et.length&&et.charCodeAt(ft)===47;++ft);for(var zt=et.length,Dt=zt-ft,St=dt<Dt?dt:Dt,Tt=-1,Rt=0;Rt<=St;++Rt){if(Rt===St){if(Dt>St){if(et.charCodeAt(ft+Rt)===47)return et.slice(ft+Rt+1);if(Rt===0)return et.slice(ft+Rt)}else dt>St&&(ot.charCodeAt(ct+Rt)===47?Tt=Rt:Rt===0&&(Tt=0));break}var $t=ot.charCodeAt(ct+Rt),kt=et.charCodeAt(ft+Rt);if($t!==kt)break;$t===47&&(Tt=Rt)}var Bt="";for(Rt=ct+Tt+1;Rt<=ut;++Rt)(Rt===ut||ot.charCodeAt(Rt)===47)&&(Bt.length===0?Bt+="..":Bt+="/..");return Bt.length>0?Bt+et.slice(ft+Tt):(ft+=Tt,et.charCodeAt(ft)===47&&++ft,et.slice(ft))},_makeLong:function(ot){return ot},dirname:function(ot){if(assertPath$2(ot),ot.length===0)return".";for(var et=ot.charCodeAt(0),ct=et===47,ut=-1,dt=!0,ft=ot.length-1;ft>=1;--ft)if(et=ot.charCodeAt(ft),et===47){if(!dt){ut=ft;break}}else dt=!1;return ut===-1?ct?"/":".":ct&&ut===1?"//":ot.slice(0,ut)},basename:function(ot,et){if(et!==void 0&&typeof et!="string")throw new TypeError('"ext" argument must be a string');assertPath$2(ot);var ct=0,ut=-1,dt=!0,ft;if(et!==void 0&&et.length>0&&et.length<=ot.length){if(et.length===ot.length&&et===ot)return"";var zt=et.length-1,Dt=-1;for(ft=ot.length-1;ft>=0;--ft){var St=ot.charCodeAt(ft);if(St===47){if(!dt){ct=ft+1;break}}else Dt===-1&&(dt=!1,Dt=ft+1),zt>=0&&(St===et.charCodeAt(zt)?--zt===-1&&(ut=ft):(zt=-1,ut=Dt))}return ct===ut?ut=Dt:ut===-1&&(ut=ot.length),ot.slice(ct,ut)}else{for(ft=ot.length-1;ft>=0;--ft)if(ot.charCodeAt(ft)===47){if(!dt){ct=ft+1;break}}else ut===-1&&(dt=!1,ut=ft+1);return ut===-1?"":ot.slice(ct,ut)}},extname:function(ot){assertPath$2(ot);for(var et=-1,ct=0,ut=-1,dt=!0,ft=0,zt=ot.length-1;zt>=0;--zt){var Dt=ot.charCodeAt(zt);if(Dt===47){if(!dt){ct=zt+1;break}continue}ut===-1&&(dt=!1,ut=zt+1),Dt===46?et===-1?et=zt:ft!==1&&(ft=1):et!==-1&&(ft=-1)}return et===-1||ut===-1||ft===0||ft===1&&et===ut-1&&et===ct+1?"":ot.slice(et,ut)},format:function(ot){if(ot===null||typeof ot!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof ot);return _format("/",ot)},parse:function(ot){assertPath$2(ot);var et={root:"",dir:"",base:"",ext:"",name:""};if(ot.length===0)return et;var ct=ot.charCodeAt(0),ut=ct===47,dt;ut?(et.root="/",dt=1):dt=0;for(var ft=-1,zt=0,Dt=-1,St=!0,Tt=ot.length-1,Rt=0;Tt>=dt;--Tt){if(ct=ot.charCodeAt(Tt),ct===47){if(!St){zt=Tt+1;break}continue}Dt===-1&&(St=!1,Dt=Tt+1),ct===46?ft===-1?ft=Tt:Rt!==1&&(Rt=1):ft!==-1&&(Rt=-1)}return ft===-1||Dt===-1||Rt===0||Rt===1&&ft===Dt-1&&ft===zt+1?Dt!==-1&&(zt===0&&ut?et.base=et.name=ot.slice(1,Dt):et.base=et.name=ot.slice(zt,Dt)):(zt===0&&ut?(et.name=ot.slice(1,ft),et.base=ot.slice(1,Dt)):(et.name=ot.slice(zt,ft),et.base=ot.slice(zt,Dt)),et.ext=ot.slice(ft,Dt)),zt>0?et.dir=ot.slice(0,zt-1):ut&&(et.dir="/"),et},sep:"/",delimiter:":",win32:null,posix:null};posix.posix=posix;var pathBrowserify=posix,requiresPort=function(ot,et){if(et=et.split(":")[0],ot=+ot,!ot)return!1;switch(et){case"http":case"ws":return ot!==80;case"https":case"wss":return ot!==443;case"ftp":return ot!==21;case"gopher":return ot!==70;case"file":return!1}return ot!==0},querystringify$1={},has=Object.prototype.hasOwnProperty,undef;function decode$4(ot){try{return decodeURIComponent(ot.replace(/\+/g," "))}catch{return null}}function encode$4(ot){try{return encodeURIComponent(ot)}catch{return null}}function querystring(ot){for(var et=/([^=?#&]+)=?([^&]*)/g,ct={},ut;ut=et.exec(ot);){var dt=decode$4(ut[1]),ft=decode$4(ut[2]);dt===null||ft===null||dt in ct||(ct[dt]=ft)}return ct}function querystringify(ot,et){et=et||"";var ct=[],ut,dt;typeof et!="string"&&(et="?");for(dt in ot)if(has.call(ot,dt)){if(ut=ot[dt],!ut&&(ut===null||ut===undef||isNaN(ut))&&(ut=""),dt=encode$4(dt),ut=encode$4(ut),dt===null||ut===null)continue;ct.push(dt+"="+ut)}return ct.length?et+ct.join("&"):""}querystringify$1.stringify=querystringify,querystringify$1.parse=querystring;var required=requiresPort,qs=querystringify$1,controlOrWhitespace=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,CRHTLF=/[\n\r\t]/g,slashes=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,port=/:\d+$/,protocolre=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,windowsDriveLetter=/^[a-zA-Z]:/;function trimLeft$1(ot){return(ot||"").toString().replace(controlOrWhitespace,"")}var rules=[["#","hash"],["?","query"],function(ot,et){return isSpecial(et.protocol)?ot.replace(/\\/g,"/"):ot},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],ignore$1={hash:1,query:1};function lolcation(ot){var et;typeof window<"u"?et=window:typeof commonjsGlobal$1<"u"?et=commonjsGlobal$1:typeof self<"u"?et=self:et={};var ct=et.location||{};ot=ot||ct;var ut={},dt=typeof ot,ft;if(ot.protocol==="blob:")ut=new Url(unescape(ot.pathname),{});else if(dt==="string"){ut=new Url(ot,{});for(ft in ignore$1)delete ut[ft]}else if(dt==="object"){for(ft in ot)ft in ignore$1||(ut[ft]=ot[ft]);ut.slashes===void 0&&(ut.slashes=slashes.test(ot.href))}return ut}function isSpecial(ot){return ot==="file:"||ot==="ftp:"||ot==="http:"||ot==="https:"||ot==="ws:"||ot==="wss:"}function extractProtocol(ot,et){ot=trimLeft$1(ot),ot=ot.replace(CRHTLF,""),et=et||{};var ct=protocolre.exec(ot),ut=ct[1]?ct[1].toLowerCase():"",dt=!!ct[2],ft=!!ct[3],zt=0,Dt;return dt?ft?(Dt=ct[2]+ct[3]+ct[4],zt=ct[2].length+ct[3].length):(Dt=ct[2]+ct[4],zt=ct[2].length):ft?(Dt=ct[3]+ct[4],zt=ct[3].length):Dt=ct[4],ut==="file:"?zt>=2&&(Dt=Dt.slice(2)):isSpecial(ut)?Dt=ct[4]:ut?dt&&(Dt=Dt.slice(2)):zt>=2&&isSpecial(et.protocol)&&(Dt=ct[4]),{protocol:ut,slashes:dt||isSpecial(ut),slashesCount:zt,rest:Dt}}function resolve(ot,et){if(ot==="")return et;for(var ct=(et||"/").split("/").slice(0,-1).concat(ot.split("/")),ut=ct.length,dt=ct[ut-1],ft=!1,zt=0;ut--;)ct[ut]==="."?ct.splice(ut,1):ct[ut]===".."?(ct.splice(ut,1),zt++):zt&&(ut===0&&(ft=!0),ct.splice(ut,1),zt--);return ft&&ct.unshift(""),(dt==="."||dt==="..")&&ct.push(""),ct.join("/")}function Url(ot,et,ct){if(ot=trimLeft$1(ot),ot=ot.replace(CRHTLF,""),!(this instanceof Url))return new Url(ot,et,ct);var ut,dt,ft,zt,Dt,St,Tt=rules.slice(),Rt=typeof et,$t=this,kt=0;for(Rt!=="object"&&Rt!=="string"&&(ct=et,et=null),ct&&typeof ct!="function"&&(ct=qs.parse),et=lolcation(et),dt=extractProtocol(ot||"",et),ut=!dt.protocol&&!dt.slashes,$t.slashes=dt.slashes||ut&&et.slashes,$t.protocol=dt.protocol||et.protocol||"",ot=dt.rest,(dt.protocol==="file:"&&(dt.slashesCount!==2||windowsDriveLetter.test(ot))||!dt.slashes&&(dt.protocol||dt.slashesCount<2||!isSpecial($t.protocol)))&&(Tt[3]=[/(.*)/,"pathname"]);kt<Tt.length;kt++){if(zt=Tt[kt],typeof zt=="function"){ot=zt(ot,$t);continue}ft=zt[0],St=zt[1],ft!==ft?$t[St]=ot:typeof ft=="string"?(Dt=ft==="@"?ot.lastIndexOf(ft):ot.indexOf(ft),~Dt&&(typeof zt[2]=="number"?($t[St]=ot.slice(0,Dt),ot=ot.slice(Dt+zt[2])):($t[St]=ot.slice(Dt),ot=ot.slice(0,Dt)))):(Dt=ft.exec(ot))&&($t[St]=Dt[1],ot=ot.slice(0,Dt.index)),$t[St]=$t[St]||ut&&zt[3]&&et[St]||"",zt[4]&&($t[St]=$t[St].toLowerCase())}ct&&($t.query=ct($t.query)),ut&&et.slashes&&$t.pathname.charAt(0)!=="/"&&($t.pathname!==""||et.pathname!=="")&&($t.pathname=resolve($t.pathname,et.pathname)),$t.pathname.charAt(0)!=="/"&&isSpecial($t.protocol)&&($t.pathname="/"+$t.pathname),required($t.port,$t.protocol)||($t.host=$t.hostname,$t.port=""),$t.username=$t.password="",$t.auth&&(Dt=$t.auth.indexOf(":"),~Dt?($t.username=$t.auth.slice(0,Dt),$t.username=encodeURIComponent(decodeURIComponent($t.username)),$t.password=$t.auth.slice(Dt+1),$t.password=encodeURIComponent(decodeURIComponent($t.password))):$t.username=encodeURIComponent(decodeURIComponent($t.auth)),$t.auth=$t.password?$t.username+":"+$t.password:$t.username),$t.origin=$t.protocol!=="file:"&&isSpecial($t.protocol)&&$t.host?$t.protocol+"//"+$t.host:"null",$t.href=$t.toString()}function set$2(ot,et,ct){var ut=this;switch(ot){case"query":typeof et=="string"&&et.length&&(et=(ct||qs.parse)(et)),ut[ot]=et;break;case"port":ut[ot]=et,required(et,ut.protocol)?et&&(ut.host=ut.hostname+":"+et):(ut.host=ut.hostname,ut[ot]="");break;case"hostname":ut[ot]=et,ut.port&&(et+=":"+ut.port),ut.host=et;break;case"host":ut[ot]=et,port.test(et)?(et=et.split(":"),ut.port=et.pop(),ut.hostname=et.join(":")):(ut.hostname=et,ut.port="");break;case"protocol":ut.protocol=et.toLowerCase(),ut.slashes=!ct;break;case"pathname":case"hash":if(et){var dt=ot==="pathname"?"/":"#";ut[ot]=et.charAt(0)!==dt?dt+et:et}else ut[ot]=et;break;case"username":case"password":ut[ot]=encodeURIComponent(et);break;case"auth":var ft=et.indexOf(":");~ft?(ut.username=et.slice(0,ft),ut.username=encodeURIComponent(decodeURIComponent(ut.username)),ut.password=et.slice(ft+1),ut.password=encodeURIComponent(decodeURIComponent(ut.password))):ut.username=encodeURIComponent(decodeURIComponent(et))}for(var zt=0;zt<rules.length;zt++){var Dt=rules[zt];Dt[4]&&(ut[Dt[1]]=ut[Dt[1]].toLowerCase())}return ut.auth=ut.password?ut.username+":"+ut.password:ut.username,ut.origin=ut.protocol!=="file:"&&isSpecial(ut.protocol)&&ut.host?ut.protocol+"//"+ut.host:"null",ut.href=ut.toString(),ut}function toString$a(ot){(!ot||typeof ot!="function")&&(ot=qs.stringify);var et,ct=this,ut=ct.host,dt=ct.protocol;dt&&dt.charAt(dt.length-1)!==":"&&(dt+=":");var ft=dt+(ct.protocol&&ct.slashes||isSpecial(ct.protocol)?"//":"");return ct.username?(ft+=ct.username,ct.password&&(ft+=":"+ct.password),ft+="@"):ct.password?(ft+=":"+ct.password,ft+="@"):ct.protocol!=="file:"&&isSpecial(ct.protocol)&&!ut&&ct.pathname!=="/"&&(ft+="@"),(ut[ut.length-1]===":"||port.test(ct.hostname)&&!ct.port)&&(ut+=":"),ft+=ut+ct.pathname,et=typeof ct.query=="object"?ot(ct.query):ct.query,et&&(ft+=et.charAt(0)!=="?"?"?"+et:et),ct.hash&&(ft+=ct.hash),ft}Url.prototype={set:set$2,toString:toString$a},Url.extractProtocol=extractProtocol,Url.location=lolcation,Url.trimLeft=trimLeft$1,Url.qs=qs;var urlParse=Url,__importDefault$1=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(url,"__esModule",{value:!0}),url.URLExt=void 0;const path_1$1=pathBrowserify,url_parse_1=__importDefault$1(urlParse);var URLExt;(function(ot){function et(Tt){if(typeof document<"u"&&document){const Rt=document.createElement("a");return Rt.href=Tt,Rt}return(0,url_parse_1.default)(Tt)}ot.parse=et;function ct(Tt){return(0,url_parse_1.default)(Tt).hostname}ot.getHostName=ct;function ut(Tt){return Tt&&et(Tt).toString()}ot.normalize=ut;function dt(...Tt){let Rt=(0,url_parse_1.default)(Tt[0],{});const $t=Rt.protocol===""&&Rt.slashes;$t&&(Rt=(0,url_parse_1.default)(Tt[0],"https:"+Tt[0]));const kt=`${$t?"":Rt.protocol}${Rt.slashes?"//":""}${Rt.auth}${Rt.auth?"@":""}${Rt.host}`,Bt=path_1$1.posix.join(`${kt&&Rt.pathname[0]!=="/"?"/":""}${Rt.pathname}`,...Tt.slice(1));return`${kt}${Bt==="."?"":Bt}`}ot.join=dt;function ft(Tt){return dt(...Tt.split("/").map(encodeURIComponent))}ot.encodeParts=ft;function zt(Tt){const Rt=Object.keys(Tt).filter($t=>$t.length>0);return Rt.length?"?"+Rt.map($t=>{const kt=encodeURIComponent(String(Tt[$t]));return $t+(kt?"="+kt:"")}).join("&"):""}ot.objectToQueryString=zt;function Dt(Tt){return Tt.replace(/^\?/,"").split("&").reduce((Rt,$t)=>{const[kt,Bt]=$t.split("=");return kt.length>0&&(Rt[kt]=decodeURIComponent(Bt||"")),Rt},{})}ot.queryStringToObject=Dt;function St(Tt,Rt=!1){const{protocol:$t}=et(Tt);return(!$t||Tt.toLowerCase().indexOf($t)!==0)&&(Rt?Tt.indexOf("//")!==0:Tt.indexOf("/")!==0)}ot.isLocal=St})(URLExt||(url.URLExt=URLExt={}));var define_process_env_default={},__importDefault=commonjsGlobal$1&&commonjsGlobal$1.__importDefault||function(ot){return ot&&ot.__esModule?ot:{default:ot}};Object.defineProperty(pageconfig,"__esModule",{value:!0}),pageconfig.PageConfig=void 0;const coreutils_1$1=distExports,minimist_1=__importDefault(minimist),url_1=url;var PageConfig$1;(function(PageConfig){function getOption(name){if(configData)return configData[name]||getBodyData(name);configData=Object.create(null);let found=!1;if(typeof document<"u"&&document){const ot=document.getElementById("jupyter-config-data");ot&&(configData=JSON.parse(ot.textContent||""),found=!0)}if(!found&&typeof process<"u"&&process.argv)try{const cli=(0,minimist_1.default)(process.argv.slice(2)),path=pathBrowserify;let fullPath="";"jupyter-config-data"in cli?fullPath=path.resolve(cli["jupyter-config-data"]):"JUPYTER_CONFIG_DATA"in define_process_env_default&&(fullPath=path.resolve(define_process_env_default.JUPYTER_CONFIG_DATA)),fullPath&&(configData=eval("require")(fullPath))}catch(ot){console.error(ot)}if(!coreutils_1$1.JSONExt.isObject(configData))configData=Object.create(null);else for(const ot in configData)typeof configData[ot]!="string"&&(configData[ot]=JSON.stringify(configData[ot]));return configData[name]||getBodyData(name)}PageConfig.getOption=getOption;function setOption(ot,et){const ct=getOption(ot);return configData[ot]=et,ct}PageConfig.setOption=setOption;function getBaseUrl(){return url_1.URLExt.normalize(getOption("baseUrl")||"/")}PageConfig.getBaseUrl=getBaseUrl;function getTreeUrl(){return url_1.URLExt.join(getBaseUrl(),getOption("treeUrl"))}PageConfig.getTreeUrl=getTreeUrl;function getShareUrl(){return url_1.URLExt.normalize(getOption("shareUrl")||getBaseUrl())}PageConfig.getShareUrl=getShareUrl;function getTreeShareUrl(){return url_1.URLExt.normalize(url_1.URLExt.join(getShareUrl(),getOption("treeUrl")))}PageConfig.getTreeShareUrl=getTreeShareUrl;function getUrl(ot){var et,ct,ut,dt;let ft=ot.toShare?getShareUrl():getBaseUrl();const zt=(et=ot.mode)!==null&&et!==void 0?et:getOption("mode"),Dt=(ct=ot.workspace)!==null&&ct!==void 0?ct:getOption("workspace"),St=zt==="single-document"?"doc":"lab";ft=url_1.URLExt.join(ft,St),Dt!==PageConfig.defaultWorkspace&&(ft=url_1.URLExt.join(ft,"workspaces",encodeURIComponent((ut=getOption("workspace"))!==null&&ut!==void 0?ut:PageConfig.defaultWorkspace)));const Tt=(dt=ot.treePath)!==null&&dt!==void 0?dt:getOption("treePath");return Tt&&(ft=url_1.URLExt.join(ft,"tree",url_1.URLExt.encodeParts(Tt))),ft}PageConfig.getUrl=getUrl,PageConfig.defaultWorkspace="default";function getWsUrl(ot){let et=getOption("wsUrl");if(!et){if(ot=ot?url_1.URLExt.normalize(ot):getBaseUrl(),ot.indexOf("http")!==0)return"";et="ws"+ot.slice(4)}return url_1.URLExt.normalize(et)}PageConfig.getWsUrl=getWsUrl;function getNBConvertURL({path:ot,format:et,download:ct}){const ut=url_1.URLExt.encodeParts(ot),dt=url_1.URLExt.join(getBaseUrl(),"nbconvert",et,ut);return ct?dt+"?download=true":dt}PageConfig.getNBConvertURL=getNBConvertURL;function getToken(){return getOption("token")||getBodyData("jupyterApiToken")}PageConfig.getToken=getToken;function getNotebookVersion(){const ot=getOption("notebookVersion");return ot===""?[0,0,0]:JSON.parse(ot)}PageConfig.getNotebookVersion=getNotebookVersion;let configData=null;function getBodyData(ot){if(typeof document>"u"||!document.body)return"";const et=document.body.dataset[ot];return typeof et>"u"?"":decodeURIComponent(et)}(function(ot){function et(dt){try{const ft=getOption(dt);if(ft)return JSON.parse(ft)}catch(ft){console.warn(`Unable to parse ${dt}.`,ft)}return[]}ot.deferred=et("deferredExtensions"),ot.disabled=et("disabledExtensions");function ct(dt){const ft=dt.indexOf(":");let zt="";return ft!==-1&&(zt=dt.slice(0,ft)),ot.deferred.some(Dt=>Dt===dt||zt&&Dt===zt)}ot.isDeferred=ct;function ut(dt){const ft=dt.indexOf(":");let zt="";return ft!==-1&&(zt=dt.slice(0,ft)),ot.disabled.some(Dt=>Dt===dt||zt&&Dt===zt)}ot.isDisabled=ut})(PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig$1||(pageconfig.PageConfig=PageConfig$1={}));var path$4={};Object.defineProperty(path$4,"__esModule",{value:!0}),path$4.PathExt=void 0;const path_1=pathBrowserify;var PathExt;(function(ot){function et(...$t){const kt=path_1.posix.join(...$t);return kt==="."?"":Rt(kt)}ot.join=et;function ct(...$t){const kt=path_1.posix.join(...$t);return kt==="."?"":kt}ot.joinWithLeadingSlash=ct;function ut($t,kt){return path_1.posix.basename($t,kt)}ot.basename=ut;function dt($t){const kt=Rt(path_1.posix.dirname($t));return kt==="."?"":kt}ot.dirname=dt;function ft($t){return path_1.posix.extname($t)}ot.extname=ft;function zt($t){return $t===""?"":Rt(path_1.posix.normalize($t))}ot.normalize=zt;function Dt(...$t){return Rt(path_1.posix.resolve(...$t))}ot.resolve=Dt;function St($t,kt){return Rt(path_1.posix.relative($t,kt))}ot.relative=St;function Tt($t){return $t.length>0&&$t.indexOf(".")!==0&&($t=`.${$t}`),$t}ot.normalizeExtension=Tt;function Rt($t){return $t.indexOf("/")===0&&($t=$t.slice(1)),$t}ot.removeSlash=Rt})(PathExt||(path$4.PathExt=PathExt={}));var signal={};Object.defineProperty(signal,"__esModule",{value:!0}),signal.signalToPromise=void 0;const coreutils_1=distExports;function signalToPromise(ot,et){const ct=new coreutils_1.PromiseDelegate;function ut(){ot.disconnect(dt)}function dt(ft,zt){ut(),ct.resolve([ft,zt])}return ot.connect(dt),(et??0)>0&&setTimeout(()=>{ut(),ct.reject(`Signal not emitted within ${et} ms.`)},et),ct.promise}signal.signalToPromise=signalToPromise;var text$7={};Object.defineProperty(text$7,"__esModule",{value:!0}),text$7.Text=void 0;var Text$1;(function(ot){function et(ft,zt){return ft}ot.jsIndexToCharIndex=et;function ct(ft,zt){return ft}ot.charIndexToJsIndex=ct;function ut(ft,zt=!1){return ft.replace(/^(\w)|[\s-_:]+(\w)/g,function(Dt,St,Tt){return Tt?Tt.toUpperCase():zt?St.toUpperCase():St.toLowerCase()})}ot.camelCase=ut;function dt(ft){return(ft||"").toLowerCase().split(" ").map(zt=>zt.charAt(0).toUpperCase()+zt.slice(1)).join(" ")}ot.titleCase=dt})(Text$1||(text$7.Text=Text$1={}));var time={};Object.defineProperty(time,"__esModule",{value:!0}),time.Time=void 0;const UNITS=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}];var Time$1;(function(ot){function et(ut,dt="long"){const ft=document.documentElement.lang||"en",zt=new Intl.RelativeTimeFormat(ft,{numeric:"auto",style:dt}),Dt=new Date(ut).getTime()-Date.now();for(let St of UNITS){const Tt=Math.ceil(Dt/St.milliseconds);if(Tt!==0)return zt.format(Tt,St.name)}return zt.format(0,"seconds")}ot.formatHuman=et;function ct(ut){const dt=document.documentElement.lang||"en";return new Intl.DateTimeFormat(dt,{dateStyle:"short",timeStyle:"short"}).format(new Date(ut))}ot.format=ct})(Time$1||(time.Time=Time$1={})),function(ot){var et=commonjsGlobal$1&&commonjsGlobal$1.__createBinding||(Object.create?function(ut,dt,ft,zt){zt===void 0&&(zt=ft);var Dt=Object.getOwnPropertyDescriptor(dt,ft);(!Dt||("get"in Dt?!dt.__esModule:Dt.writable||Dt.configurable))&&(Dt={enumerable:!0,get:function(){return dt[ft]}}),Object.defineProperty(ut,zt,Dt)}:function(ut,dt,ft,zt){zt===void 0&&(zt=ft),ut[zt]=dt[ft]}),ct=commonjsGlobal$1&&commonjsGlobal$1.__exportStar||function(ut,dt){for(var ft in ut)ft!=="default"&&!Object.prototype.hasOwnProperty.call(dt,ft)&&et(dt,ut,ft)};Object.defineProperty(ot,"__esModule",{value:!0}),ct(activitymonitor,ot),ct(interfaces,ot),ct(lru,ot),ct(markdowncodeblocks,ot),ct(pageconfig,ot),ct(path$4,ot),ct(signal,ot),ct(text$7,ot),ct(time,ot),ct(url,ot)}(lib$5);function manipulateIFrameDocument(ot,et,ct){const ut=[],dt=et.getElementsByTagName("script");for(const zt of dt){if(zt.src==="")continue;const Dt=getRelativePath(window.location.host,window.location.pathname,new URL(zt.src));if(Dt==null)continue;const St=lib$5.URLExt.join(ct,Dt),Tt=ot.sendHttpRequest({method:"GET",headers:{},path:St,body:""}).then(({statusCode:Rt,headers:$t,body:kt})=>{if(Rt!==200)return;const Bt=$t.get("Content-Type");return new Blob([kt],Bt?{type:Bt}:void 0).text().then(Ft=>{const jt=et.createElement("script");jt.text=Ft,jt.type="text/javascript",jt.setAttribute("data-stlite",""),zt.replaceWith(jt)})});ut.push(Tt)}const ft=et.querySelectorAll("link[rel=stylesheet]");for(const zt of ft){const Dt=getRelativePath(window.location.host,window.location.pathname,new URL(zt.href));if(Dt==null)continue;const St=lib$5.URLExt.join(ct,Dt),Tt=ot.sendHttpRequest({method:"GET",headers:{},path:St,body:""}).then(({statusCode:Rt,headers:$t,body:kt})=>{if(Rt!==200)return;const Bt=$t.get("Content-Type");return new Blob([kt],Bt?{type:Bt}:void 0).text().then(Ft=>{const jt=et.createElement("style");jt.innerHTML=Ft,jt.setAttribute("data-stlite",""),zt.replaceWith(jt)})});ut.push(Tt)}return Promise.all(ut).then()}const InnerIFrame=React$1.forwardRef(({src:ot,IframeComponent:et,...ct},ut)=>{const dt=useStliteKernel(),[ft,zt]=reactExports.useState();reactExports.useEffect(()=>{if(dt==null||!ot.startsWith("/component"))return;let St=!1;return dt.sendHttpRequest({method:"GET",path:ot,headers:{},body:""}).then(({statusCode:Tt,headers:Rt,body:$t})=>{if(St||Tt!==200)return;const kt=Rt.get("Content-Type");new Blob([$t],kt?{type:kt}:void 0).text().then(Bt=>{St||zt(Bt)})}),()=>{St=!0}},[dt,ot]);const Dt=reactExports.useCallback(St=>{var Rt;const Tt=(Rt=St.target.contentWindow)==null?void 0:Rt.document;if(Tt==null){console.warn("document not found in iframe");return}manipulateIFrameDocument(dt,Tt,getParentPath(ot))},[dt,ot]);return jsxRuntimeExports.jsx(et,{...ct,srcDoc:ft,onLoad:Dt,ref:ut})});InnerIFrame.displayName="InnerIFrame";const CustomComponentIFrame=React$1.forwardRef((ot,et)=>{const ct=useStliteKernel(),ut=extractCustomComponentPath(ct.basePath,ot.src);return ut==null?jsxRuntimeExports.jsx("iframe",{...ot,ref:et}):jsxRuntimeExports.jsx(InnerIFrame,{...ot,src:ut,ref:et})});CustomComponentIFrame.displayName="StliteCustomComponentIFrame";function n$2(ot){for(var et=arguments.length,ct=Array(et>1?et-1:0),ut=1;ut<et;ut++)ct[ut-1]=arguments[ut];throw Error("[Immer] minified error nr: "+ot+(ct.length?" "+ct.map(function(dt){return"'"+dt+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function r$3(ot){return!!ot&&!!ot[Q$2]}function t$2(ot){var et;return!!ot&&(function(ct){if(!ct||typeof ct!="object")return!1;var ut=Object.getPrototypeOf(ct);if(ut===null)return!0;var dt=Object.hasOwnProperty.call(ut,"constructor")&&ut.constructor;return dt===Object||typeof dt=="function"&&Function.toString.call(dt)===Z$2}(ot)||Array.isArray(ot)||!!ot[L$1]||!!(!((et=ot.constructor)===null||et===void 0)&&et[L$1])||s$1(ot)||v$4(ot))}function i$1(ot,et,ct){ct===void 0&&(ct=!1),o$1(ot)===0?(ct?Object.keys:nn)(ot).forEach(function(ut){ct&&typeof ut=="symbol"||et(ut,ot[ut],ot)}):ot.forEach(function(ut,dt){return et(dt,ut,ot)})}function o$1(ot){var et=ot[Q$2];return et?et.i>3?et.i-4:et.i:Array.isArray(ot)?1:s$1(ot)?2:v$4(ot)?3:0}function u$1(ot,et){return o$1(ot)===2?ot.has(et):Object.prototype.hasOwnProperty.call(ot,et)}function a$1(ot,et){return o$1(ot)===2?ot.get(et):ot[et]}function f$2(ot,et,ct){var ut=o$1(ot);ut===2?ot.set(et,ct):ut===3?ot.add(ct):ot[et]=ct}function c$3(ot,et){return ot===et?ot!==0||1/ot==1/et:ot!=ot&&et!=et}function s$1(ot){return X$2&&ot instanceof Map}function v$4(ot){return q$3&&ot instanceof Set}function p$3(ot){return ot.o||ot.t}function l$2(ot){if(Array.isArray(ot))return Array.prototype.slice.call(ot);var et=rn(ot);delete et[Q$2];for(var ct=nn(et),ut=0;ut<ct.length;ut++){var dt=ct[ut],ft=et[dt];ft.writable===!1&&(ft.writable=!0,ft.configurable=!0),(ft.get||ft.set)&&(et[dt]={configurable:!0,writable:!0,enumerable:ft.enumerable,value:ot[dt]})}return Object.create(Object.getPrototypeOf(ot),et)}function d$2(ot,et){return et===void 0&&(et=!1),y$3(ot)||r$3(ot)||!t$2(ot)||(o$1(ot)>1&&(ot.set=ot.add=ot.clear=ot.delete=h$4),Object.freeze(ot),et&&i$1(ot,function(ct,ut){return d$2(ut,!0)},!0)),ot}function h$4(){n$2(2)}function y$3(ot){return ot==null||typeof ot!="object"||Object.isFrozen(ot)}function b$4(ot){var et=tn[ot];return et||n$2(18,ot),et}function m$4(ot,et){tn[ot]||(tn[ot]=et)}function _$1(){return U$1}function j$1(ot,et){et&&(b$4("Patches"),ot.u=[],ot.s=[],ot.v=et)}function g$2(ot){O(ot),ot.p.forEach(S$2),ot.p=null}function O(ot){ot===U$1&&(U$1=ot.l)}function w$3(ot){return U$1={p:[],l:U$1,h:ot,m:!0,_:0}}function S$2(ot){var et=ot[Q$2];et.i===0||et.i===1?et.j():et.g=!0}function P$1(ot,et){et._=et.p.length;var ct=et.p[0],ut=ot!==void 0&&ot!==ct;return et.h.O||b$4("ES5").S(et,ot,ut),ut?(ct[Q$2].P&&(g$2(et),n$2(4)),t$2(ot)&&(ot=M$1(et,ot),et.l||x$3(et,ot)),et.u&&b$4("Patches").M(ct[Q$2].t,ot,et.u,et.s)):ot=M$1(et,ct,[]),g$2(et),et.u&&et.v(et.u,et.s),ot!==H$1?ot:void 0}function M$1(ot,et,ct){if(y$3(et))return et;var ut=et[Q$2];if(!ut)return i$1(et,function(Dt,St){return A$1(ot,ut,et,Dt,St,ct)},!0),et;if(ut.A!==ot)return et;if(!ut.P)return x$3(ot,ut.t,!0),ut.t;if(!ut.I){ut.I=!0,ut.A._--;var dt=ut.i===4||ut.i===5?ut.o=l$2(ut.k):ut.o,ft=dt,zt=!1;ut.i===3&&(ft=new Set(dt),dt.clear(),zt=!0),i$1(ft,function(Dt,St){return A$1(ot,ut,dt,Dt,St,ct,zt)}),x$3(ot,dt,!1),ct&&ot.u&&b$4("Patches").N(ut,ct,ot.u,ot.s)}return ut.o}function A$1(ot,et,ct,ut,dt,ft,zt){if(r$3(dt)){var Dt=M$1(ot,dt,ft&&et&&et.i!==3&&!u$1(et.R,ut)?ft.concat(ut):void 0);if(f$2(ct,ut,Dt),!r$3(Dt))return;ot.m=!1}else zt&&ct.add(dt);if(t$2(dt)&&!y$3(dt)){if(!ot.h.D&&ot._<1)return;M$1(ot,dt),et&&et.A.l||x$3(ot,dt)}}function x$3(ot,et,ct){ct===void 0&&(ct=!1),!ot.l&&ot.h.D&&ot.m&&d$2(et,ct)}function z$3(ot,et){var ct=ot[Q$2];return(ct?p$3(ct):ot)[et]}function I$1(ot,et){if(et in ot)for(var ct=Object.getPrototypeOf(ot);ct;){var ut=Object.getOwnPropertyDescriptor(ct,et);if(ut)return ut;ct=Object.getPrototypeOf(ct)}}function k$3(ot){ot.P||(ot.P=!0,ot.l&&k$3(ot.l))}function E$1(ot){ot.o||(ot.o=l$2(ot.t))}function N$2(ot,et,ct){var ut=s$1(et)?b$4("MapSet").F(et,ct):v$4(et)?b$4("MapSet").T(et,ct):ot.O?function(dt,ft){var zt=Array.isArray(dt),Dt={i:zt?1:0,A:ft?ft.A:_$1(),P:!1,I:!1,R:{},l:ft,t:dt,k:null,o:null,j:null,C:!1},St=Dt,Tt=en;zt&&(St=[Dt],Tt=on$1);var Rt=Proxy.revocable(St,Tt),$t=Rt.revoke,kt=Rt.proxy;return Dt.k=kt,Dt.j=$t,kt}(et,ct):b$4("ES5").J(et,ct);return(ct?ct.A:_$1()).p.push(ut),ut}function R$1(ot){return r$3(ot)||n$2(22,ot),function et(ct){if(!t$2(ct))return ct;var ut,dt=ct[Q$2],ft=o$1(ct);if(dt){if(!dt.P&&(dt.i<4||!b$4("ES5").K(dt)))return dt.t;dt.I=!0,ut=D$2(ct,ft),dt.I=!1}else ut=D$2(ct,ft);return i$1(ut,function(zt,Dt){dt&&a$1(dt.t,zt)===Dt||f$2(ut,zt,et(Dt))}),ft===3?new Set(ut):ut}(ot)}function D$2(ot,et){switch(et){case 2:return new Map(ot);case 3:return Array.from(ot)}return l$2(ot)}function F$2(){function ot(ft,zt){var Dt=dt[ft];return Dt?Dt.enumerable=zt:dt[ft]=Dt={configurable:!0,enumerable:zt,get:function(){var St=this[Q$2];return en.get(St,ft)},set:function(St){var Tt=this[Q$2];en.set(Tt,ft,St)}},Dt}function et(ft){for(var zt=ft.length-1;zt>=0;zt--){var Dt=ft[zt][Q$2];if(!Dt.P)switch(Dt.i){case 5:ut(Dt)&&k$3(Dt);break;case 4:ct(Dt)&&k$3(Dt)}}}function ct(ft){for(var zt=ft.t,Dt=ft.k,St=nn(Dt),Tt=St.length-1;Tt>=0;Tt--){var Rt=St[Tt];if(Rt!==Q$2){var $t=zt[Rt];if($t===void 0&&!u$1(zt,Rt))return!0;var kt=Dt[Rt],Bt=kt&&kt[Q$2];if(Bt?Bt.t!==$t:!c$3(kt,$t))return!0}}var Ft=!!zt[Q$2];return St.length!==nn(zt).length+(Ft?0:1)}function ut(ft){var zt=ft.k;if(zt.length!==ft.t.length)return!0;var Dt=Object.getOwnPropertyDescriptor(zt,zt.length-1);if(Dt&&!Dt.get)return!0;for(var St=0;St<zt.length;St++)if(!zt.hasOwnProperty(St))return!0;return!1}var dt={};m$4("ES5",{J:function(ft,zt){var Dt=Array.isArray(ft),St=function(Rt,$t){if(Rt){for(var kt=Array($t.length),Bt=0;Bt<$t.length;Bt++)Object.defineProperty(kt,""+Bt,ot(Bt,!0));return kt}var Ft=rn($t);delete Ft[Q$2];for(var jt=nn(Ft),Kt=0;Kt<jt.length;Kt++){var Yt=jt[Kt];Ft[Yt]=ot(Yt,Rt||!!Ft[Yt].enumerable)}return Object.create(Object.getPrototypeOf($t),Ft)}(Dt,ft),Tt={i:Dt?5:4,A:zt?zt.A:_$1(),P:!1,I:!1,R:{},l:zt,t:ft,k:St,o:null,g:!1,C:!1};return Object.defineProperty(St,Q$2,{value:Tt,writable:!0}),St},S:function(ft,zt,Dt){Dt?r$3(zt)&&zt[Q$2].A===ft&&et(ft.p):(ft.u&&function St(Tt){if(Tt&&typeof Tt=="object"){var Rt=Tt[Q$2];if(Rt){var $t=Rt.t,kt=Rt.k,Bt=Rt.R,Ft=Rt.i;if(Ft===4)i$1(kt,function(Jt){Jt!==Q$2&&($t[Jt]!==void 0||u$1($t,Jt)?Bt[Jt]||St(kt[Jt]):(Bt[Jt]=!0,k$3(Rt)))}),i$1($t,function(Jt){kt[Jt]!==void 0||u$1(kt,Jt)||(Bt[Jt]=!1,k$3(Rt))});else if(Ft===5){if(ut(Rt)&&(k$3(Rt),Bt.length=!0),kt.length<$t.length)for(var jt=kt.length;jt<$t.length;jt++)Bt[jt]=!1;else for(var Kt=$t.length;Kt<kt.length;Kt++)Bt[Kt]=!0;for(var Yt=Math.min(kt.length,$t.length),Ut=0;Ut<Yt;Ut++)kt.hasOwnProperty(Ut)||(Bt[Ut]=!0),Bt[Ut]===void 0&&St(kt[Ut])}}}}(ft.p[0]),et(ft.p))},K:function(ft){return ft.i===4?ct(ft):ut(ft)}})}function T$1(){function ot(ut){if(!t$2(ut))return ut;if(Array.isArray(ut))return ut.map(ot);if(s$1(ut))return new Map(Array.from(ut.entries()).map(function(zt){return[zt[0],ot(zt[1])]}));if(v$4(ut))return new Set(Array.from(ut).map(ot));var dt=Object.create(Object.getPrototypeOf(ut));for(var ft in ut)dt[ft]=ot(ut[ft]);return u$1(ut,L$1)&&(dt[L$1]=ut[L$1]),dt}function et(ut){return r$3(ut)?ot(ut):ut}var ct="add";m$4("Patches",{$:function(ut,dt){return dt.forEach(function(ft){for(var zt=ft.path,Dt=ft.op,St=ut,Tt=0;Tt<zt.length-1;Tt++){var Rt=o$1(St),$t=zt[Tt];typeof $t!="string"&&typeof $t!="number"&&($t=""+$t),Rt!==0&&Rt!==1||$t!=="__proto__"&&$t!=="constructor"||n$2(24),typeof St=="function"&&$t==="prototype"&&n$2(24),typeof(St=a$1(St,$t))!="object"&&n$2(15,zt.join("/"))}var kt=o$1(St),Bt=ot(ft.value),Ft=zt[zt.length-1];switch(Dt){case"replace":switch(kt){case 2:return St.set(Ft,Bt);case 3:n$2(16);default:return St[Ft]=Bt}case ct:switch(kt){case 1:return Ft==="-"?St.push(Bt):St.splice(Ft,0,Bt);case 2:return St.set(Ft,Bt);case 3:return St.add(Bt);default:return St[Ft]=Bt}case"remove":switch(kt){case 1:return St.splice(Ft,1);case 2:return St.delete(Ft);case 3:return St.delete(ft.value);default:return delete St[Ft]}default:n$2(17,Dt)}}),ut},N:function(ut,dt,ft,zt){switch(ut.i){case 0:case 4:case 2:return function(Dt,St,Tt,Rt){var $t=Dt.t,kt=Dt.o;i$1(Dt.R,function(Bt,Ft){var jt=a$1($t,Bt),Kt=a$1(kt,Bt),Yt=Ft?u$1($t,Bt)?"replace":ct:"remove";if(jt!==Kt||Yt!=="replace"){var Ut=St.concat(Bt);Tt.push(Yt==="remove"?{op:Yt,path:Ut}:{op:Yt,path:Ut,value:Kt}),Rt.push(Yt===ct?{op:"remove",path:Ut}:Yt==="remove"?{op:ct,path:Ut,value:et(jt)}:{op:"replace",path:Ut,value:et(jt)})}})}(ut,dt,ft,zt);case 5:case 1:return function(Dt,St,Tt,Rt){var $t=Dt.t,kt=Dt.R,Bt=Dt.o;if(Bt.length<$t.length){var Ft=[Bt,$t];$t=Ft[0],Bt=Ft[1];var jt=[Rt,Tt];Tt=jt[0],Rt=jt[1]}for(var Kt=0;Kt<$t.length;Kt++)if(kt[Kt]&&Bt[Kt]!==$t[Kt]){var Yt=St.concat([Kt]);Tt.push({op:"replace",path:Yt,value:et(Bt[Kt])}),Rt.push({op:"replace",path:Yt,value:et($t[Kt])})}for(var Ut=$t.length;Ut<Bt.length;Ut++){var Jt=St.concat([Ut]);Tt.push({op:ct,path:Jt,value:et(Bt[Ut])})}$t.length<Bt.length&&Rt.push({op:"replace",path:St.concat(["length"]),value:$t.length})}(ut,dt,ft,zt);case 3:return function(Dt,St,Tt,Rt){var $t=Dt.t,kt=Dt.o,Bt=0;$t.forEach(function(Ft){if(!kt.has(Ft)){var jt=St.concat([Bt]);Tt.push({op:"remove",path:jt,value:Ft}),Rt.unshift({op:ct,path:jt,value:Ft})}Bt++}),Bt=0,kt.forEach(function(Ft){if(!$t.has(Ft)){var jt=St.concat([Bt]);Tt.push({op:ct,path:jt,value:Ft}),Rt.unshift({op:"remove",path:jt,value:Ft})}Bt++})}(ut,dt,ft,zt)}},M:function(ut,dt,ft,zt){ft.push({op:"replace",path:[],value:dt===H$1?void 0:dt}),zt.push({op:"replace",path:[],value:ut})}})}function C$1(){function ot(Dt,St){function Tt(){this.constructor=Dt}dt(Dt,St),Dt.prototype=(Tt.prototype=St.prototype,new Tt)}function et(Dt){Dt.o||(Dt.R=new Map,Dt.o=new Map(Dt.t))}function ct(Dt){Dt.o||(Dt.o=new Set,Dt.t.forEach(function(St){if(t$2(St)){var Tt=N$2(Dt.A.h,St,Dt);Dt.p.set(St,Tt),Dt.o.add(Tt)}else Dt.o.add(St)}))}function ut(Dt){Dt.g&&n$2(3,JSON.stringify(p$3(Dt)))}var dt=function(Dt,St){return(dt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Tt,Rt){Tt.__proto__=Rt}||function(Tt,Rt){for(var $t in Rt)Rt.hasOwnProperty($t)&&(Tt[$t]=Rt[$t])})(Dt,St)},ft=function(){function Dt(Tt,Rt){return this[Q$2]={i:2,l:Rt,A:Rt?Rt.A:_$1(),P:!1,I:!1,o:void 0,R:void 0,t:Tt,k:this,C:!1,g:!1},this}ot(Dt,Map);var St=Dt.prototype;return Object.defineProperty(St,"size",{get:function(){return p$3(this[Q$2]).size}}),St.has=function(Tt){return p$3(this[Q$2]).has(Tt)},St.set=function(Tt,Rt){var $t=this[Q$2];return ut($t),p$3($t).has(Tt)&&p$3($t).get(Tt)===Rt||(et($t),k$3($t),$t.R.set(Tt,!0),$t.o.set(Tt,Rt),$t.R.set(Tt,!0)),this},St.delete=function(Tt){if(!this.has(Tt))return!1;var Rt=this[Q$2];return ut(Rt),et(Rt),k$3(Rt),Rt.t.has(Tt)?Rt.R.set(Tt,!1):Rt.R.delete(Tt),Rt.o.delete(Tt),!0},St.clear=function(){var Tt=this[Q$2];ut(Tt),p$3(Tt).size&&(et(Tt),k$3(Tt),Tt.R=new Map,i$1(Tt.t,function(Rt){Tt.R.set(Rt,!1)}),Tt.o.clear())},St.forEach=function(Tt,Rt){var $t=this;p$3(this[Q$2]).forEach(function(kt,Bt){Tt.call(Rt,$t.get(Bt),Bt,$t)})},St.get=function(Tt){var Rt=this[Q$2];ut(Rt);var $t=p$3(Rt).get(Tt);if(Rt.I||!t$2($t)||$t!==Rt.t.get(Tt))return $t;var kt=N$2(Rt.A.h,$t,Rt);return et(Rt),Rt.o.set(Tt,kt),kt},St.keys=function(){return p$3(this[Q$2]).keys()},St.values=function(){var Tt,Rt=this,$t=this.keys();return(Tt={})[V$1]=function(){return Rt.values()},Tt.next=function(){var kt=$t.next();return kt.done?kt:{done:!1,value:Rt.get(kt.value)}},Tt},St.entries=function(){var Tt,Rt=this,$t=this.keys();return(Tt={})[V$1]=function(){return Rt.entries()},Tt.next=function(){var kt=$t.next();if(kt.done)return kt;var Bt=Rt.get(kt.value);return{done:!1,value:[kt.value,Bt]}},Tt},St[V$1]=function(){return this.entries()},Dt}(),zt=function(){function Dt(Tt,Rt){return this[Q$2]={i:3,l:Rt,A:Rt?Rt.A:_$1(),P:!1,I:!1,o:void 0,t:Tt,k:this,p:new Map,g:!1,C:!1},this}ot(Dt,Set);var St=Dt.prototype;return Object.defineProperty(St,"size",{get:function(){return p$3(this[Q$2]).size}}),St.has=function(Tt){var Rt=this[Q$2];return ut(Rt),Rt.o?!!Rt.o.has(Tt)||!(!Rt.p.has(Tt)||!Rt.o.has(Rt.p.get(Tt))):Rt.t.has(Tt)},St.add=function(Tt){var Rt=this[Q$2];return ut(Rt),this.has(Tt)||(ct(Rt),k$3(Rt),Rt.o.add(Tt)),this},St.delete=function(Tt){if(!this.has(Tt))return!1;var Rt=this[Q$2];return ut(Rt),ct(Rt),k$3(Rt),Rt.o.delete(Tt)||!!Rt.p.has(Tt)&&Rt.o.delete(Rt.p.get(Tt))},St.clear=function(){var Tt=this[Q$2];ut(Tt),p$3(Tt).size&&(ct(Tt),k$3(Tt),Tt.o.clear())},St.values=function(){var Tt=this[Q$2];return ut(Tt),ct(Tt),Tt.o.values()},St.entries=function(){var Tt=this[Q$2];return ut(Tt),ct(Tt),Tt.o.entries()},St.keys=function(){return this.values()},St[V$1]=function(){return this.values()},St.forEach=function(Tt,Rt){for(var $t=this.values(),kt=$t.next();!kt.done;)Tt.call(Rt,kt.value,kt.value,this),kt=$t.next()},Dt}();m$4("MapSet",{F:function(Dt,St){return new ft(Dt,St)},T:function(Dt,St){return new zt(Dt,St)}})}function J$2(){F$2(),C$1(),T$1()}var G$2,U$1,W$2=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",X$2=typeof Map<"u",q$3=typeof Set<"u",B$2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H$1=W$2?Symbol.for("immer-nothing"):((G$2={})["immer-nothing"]=!0,G$2),L$1=W$2?Symbol.for("immer-draftable"):"__$immer_draftable",Q$2=W$2?Symbol.for("immer-state"):"__$immer_state",V$1=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Z$2=""+Object.prototype.constructor,nn=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(ot){return Object.getOwnPropertyNames(ot).concat(Object.getOwnPropertySymbols(ot))}:Object.getOwnPropertyNames,rn=Object.getOwnPropertyDescriptors||function(ot){var et={};return nn(ot).forEach(function(ct){et[ct]=Object.getOwnPropertyDescriptor(ot,ct)}),et},tn={},en={get:function(ot,et){if(et===Q$2)return ot;var ct=p$3(ot);if(!u$1(ct,et))return function(dt,ft,zt){var Dt,St=I$1(ft,zt);return St?"value"in St?St.value:(Dt=St.get)===null||Dt===void 0?void 0:Dt.call(dt.k):void 0}(ot,ct,et);var ut=ct[et];return ot.I||!t$2(ut)?ut:ut===z$3(ot.t,et)?(E$1(ot),ot.o[et]=N$2(ot.A.h,ut,ot)):ut},has:function(ot,et){return et in p$3(ot)},ownKeys:function(ot){return Reflect.ownKeys(p$3(ot))},set:function(ot,et,ct){var ut=I$1(p$3(ot),et);if(ut!=null&&ut.set)return ut.set.call(ot.k,ct),!0;if(!ot.P){var dt=z$3(p$3(ot),et),ft=dt==null?void 0:dt[Q$2];if(ft&&ft.t===ct)return ot.o[et]=ct,ot.R[et]=!1,!0;if(c$3(ct,dt)&&(ct!==void 0||u$1(ot.t,et)))return!0;E$1(ot),k$3(ot)}return ot.o[et]===ct&&(ct!==void 0||et in ot.o)||Number.isNaN(ct)&&Number.isNaN(ot.o[et])||(ot.o[et]=ct,ot.R[et]=!0),!0},deleteProperty:function(ot,et){return z$3(ot.t,et)!==void 0||et in ot.t?(ot.R[et]=!1,E$1(ot),k$3(ot)):delete ot.R[et],ot.o&&delete ot.o[et],!0},getOwnPropertyDescriptor:function(ot,et){var ct=p$3(ot),ut=Reflect.getOwnPropertyDescriptor(ct,et);return ut&&{writable:!0,configurable:ot.i!==1||et!=="length",enumerable:ut.enumerable,value:ct[et]}},defineProperty:function(){n$2(11)},getPrototypeOf:function(ot){return Object.getPrototypeOf(ot.t)},setPrototypeOf:function(){n$2(12)}},on$1={};i$1(en,function(ot,et){on$1[ot]=function(){return arguments[0]=arguments[0][0],et.apply(this,arguments)}}),on$1.deleteProperty=function(ot,et){return on$1.set.call(this,ot,et,void 0)},on$1.set=function(ot,et,ct){return en.set.call(this,ot[0],et,ct,ot[0])};var un=function(){function ot(ct){var ut=this;this.O=B$2,this.D=!0,this.produce=function(dt,ft,zt){if(typeof dt=="function"&&typeof ft!="function"){var Dt=ft;ft=dt;var St=ut;return function(jt){var Kt=this;jt===void 0&&(jt=Dt);for(var Yt=arguments.length,Ut=Array(Yt>1?Yt-1:0),Jt=1;Jt<Yt;Jt++)Ut[Jt-1]=arguments[Jt];return St.produce(jt,function(Ht){var e0;return(e0=ft).call.apply(e0,[Kt,Ht].concat(Ut))})}}var Tt;if(typeof ft!="function"&&n$2(6),zt!==void 0&&typeof zt!="function"&&n$2(7),t$2(dt)){var Rt=w$3(ut),$t=N$2(ut,dt,void 0),kt=!0;try{Tt=ft($t),kt=!1}finally{kt?g$2(Rt):O(Rt)}return typeof Promise<"u"&&Tt instanceof Promise?Tt.then(function(jt){return j$1(Rt,zt),P$1(jt,Rt)},function(jt){throw g$2(Rt),jt}):(j$1(Rt,zt),P$1(Tt,Rt))}if(!dt||typeof dt!="object"){if((Tt=ft(dt))===void 0&&(Tt=dt),Tt===H$1&&(Tt=void 0),ut.D&&d$2(Tt,!0),zt){var Bt=[],Ft=[];b$4("Patches").M(dt,Tt,Bt,Ft),zt(Bt,Ft)}return Tt}n$2(21,dt)},this.produceWithPatches=function(dt,ft){if(typeof dt=="function")return function(Tt){for(var Rt=arguments.length,$t=Array(Rt>1?Rt-1:0),kt=1;kt<Rt;kt++)$t[kt-1]=arguments[kt];return ut.produceWithPatches(Tt,function(Bt){return dt.apply(void 0,[Bt].concat($t))})};var zt,Dt,St=ut.produce(dt,ft,function(Tt,Rt){zt=Tt,Dt=Rt});return typeof Promise<"u"&&St instanceof Promise?St.then(function(Tt){return[Tt,zt,Dt]}):[St,zt,Dt]},typeof(ct==null?void 0:ct.useProxies)=="boolean"&&this.setUseProxies(ct.useProxies),typeof(ct==null?void 0:ct.autoFreeze)=="boolean"&&this.setAutoFreeze(ct.autoFreeze)}var et=ot.prototype;return et.createDraft=function(ct){t$2(ct)||n$2(8),r$3(ct)&&(ct=R$1(ct));var ut=w$3(this),dt=N$2(this,ct,void 0);return dt[Q$2].C=!0,O(ut),dt},et.finishDraft=function(ct,ut){var dt=ct&&ct[Q$2],ft=dt.A;return j$1(ft,ut),P$1(void 0,ft)},et.setAutoFreeze=function(ct){this.D=ct},et.setUseProxies=function(ct){ct&&!B$2&&n$2(20),this.O=ct},et.applyPatches=function(ct,ut){var dt;for(dt=ut.length-1;dt>=0;dt--){var ft=ut[dt];if(ft.path.length===0&&ft.op==="replace"){ct=ft.value;break}}dt>-1&&(ut=ut.slice(dt+1));var zt=b$4("Patches").$;return r$3(ct)?zt(ct,ut):this.produce(ct,function(Dt){return zt(Dt,ut)})},ot}(),an=new un,fn=an.produce;an.produceWithPatches.bind(an),an.setAutoFreeze.bind(an),an.setUseProxies.bind(an),an.applyPatches.bind(an),an.createDraft.bind(an),an.finishDraft.bind(an);const handlePreserveConsecutiveUppercase=(ot,et)=>(ot=ot.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),ct=>ct.toLowerCase()),ot.replace(new RegExp("(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(ct,ut,dt)=>ut+et+dt.toLowerCase()));function decamelize$2(ot,{separator:et="_",preserveConsecutiveUppercase:ct=!1}={}){if(!(typeof ot=="string"&&typeof et=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(ot.length<2)return ct?ot:ot.toLowerCase();const ut=`$1${et}$2`,dt=ot.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),ut);return ct?handlePreserveConsecutiveUppercase(dt,et):dt.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),ut).toLowerCase()}let isArray$j,isArray_1,freeGlobal$3,_freeGlobal,freeGlobal$2,freeSelf$2,root$f,root$e,Symbol$9,_Symbol,Symbol$8,objectProto$w,hasOwnProperty$t,nativeObjectToString$3,symToStringTag$3;isArray$j=Array.isArray,isArray_1=isArray$j,freeGlobal$3=typeof commonjsGlobal$1=="object"&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal=freeGlobal$3,freeGlobal$2=_freeGlobal,freeSelf$2=typeof self=="object"&&self&&self.Object===Object&&self,root$f=freeGlobal$2||freeSelf$2||Function("return this")(),_root=root$f,root$e=_root,Symbol$9=root$e.Symbol,_Symbol=Symbol$9,Symbol$8=_Symbol,objectProto$w=Object.prototype,hasOwnProperty$t=objectProto$w.hasOwnProperty,nativeObjectToString$3=objectProto$w.toString,symToStringTag$3=Symbol$8?Symbol$8.toStringTag:void 0;function getRawTag$2(ot){var et=hasOwnProperty$t.call(ot,symToStringTag$3),ct=ot[symToStringTag$3];try{ot[symToStringTag$3]=void 0;var ut=!0}catch{}var dt=nativeObjectToString$3.call(ot);return ut&&(et?ot[symToStringTag$3]=ct:delete ot[symToStringTag$3]),dt}var _getRawTag=getRawTag$2,objectProto$v=Object.prototype,nativeObjectToString$2=objectProto$v.toString;function objectToString$3(ot){return nativeObjectToString$2.call(ot)}var _objectToString=objectToString$3,Symbol$7=_Symbol,getRawTag$1=_getRawTag,objectToString$2=_objectToString,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$7?Symbol$7.toStringTag:void 0;function baseGetTag$8(ot){return ot==null?ot===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(ot)?getRawTag$1(ot):objectToString$2(ot)}var _baseGetTag=baseGetTag$8;function isObjectLike$c(ot){return ot!=null&&typeof ot=="object"}var isObjectLike_1=isObjectLike$c,baseGetTag$7=_baseGetTag,isObjectLike$b=isObjectLike_1,symbolTag$6="[object Symbol]";function isSymbol$7(ot){return typeof ot=="symbol"||isObjectLike$b(ot)&&baseGetTag$7(ot)==symbolTag$6}var isSymbol_1=isSymbol$7,isArray$i=isArray_1,isSymbol$6=isSymbol_1,reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$4(ot,et){if(isArray$i(ot))return!1;var ct=typeof ot;return ct=="number"||ct=="symbol"||ct=="boolean"||ot==null||isSymbol$6(ot)?!0:reIsPlainProp$1.test(ot)||!reIsDeepProp$1.test(ot)||et!=null&&ot in Object(et)}var _isKey=isKey$4;function isObject$i(ot){var et=typeof ot;return ot!=null&&(et=="object"||et=="function")}isObject_1=isObject$i;const isObject$j=getDefaultExportFromCjs$1(isObject_1);var baseGetTag$6=_baseGetTag,isObject$h=isObject_1,asyncTag$1="[object AsyncFunction]",funcTag$4="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$9(ot){if(!isObject$h(ot))return!1;var et=baseGetTag$6(ot);return et==funcTag$4||et==genTag$2||et==asyncTag$1||et==proxyTag$1}var isFunction_1=isFunction$9,root$d=_root,coreJsData$2=root$d["__core-js_shared__"],_coreJsData=coreJsData$2,coreJsData$1=_coreJsData,maskSrcKey$1=function(){var ot=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return ot?"Symbol(src)_1."+ot:""}();function isMasked$2(ot){return!!maskSrcKey$1&&maskSrcKey$1 in ot}var _isMasked=isMasked$2,funcProto$5=Function.prototype,funcToString$5=funcProto$5.toString;function toSource$3(ot){if(ot!=null){try{return funcToString$5.call(ot)}catch{}try{return ot+""}catch{}}return""}var _toSource=toSource$3,isFunction$8=isFunction_1,isMasked$1=_isMasked,isObject$g=isObject_1,toSource$2=_toSource,reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$4=Function.prototype,objectProto$u=Object.prototype,funcToString$4=funcProto$4.toString,hasOwnProperty$s=objectProto$u.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$4.call(hasOwnProperty$s).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$2(ot){if(!isObject$g(ot)||isMasked$1(ot))return!1;var et=isFunction$8(ot)?reIsNative$1:reIsHostCtor$1;return et.test(toSource$2(ot))}var _baseIsNative=baseIsNative$2;function getValue$2(ot,et){return ot==null?void 0:ot[et]}var _getValue=getValue$2,baseIsNative$1=_baseIsNative,getValue$1=_getValue;function getNative$8(ot,et){var ct=getValue$1(ot,et);return baseIsNative$1(ct)?ct:void 0}var _getNative=getNative$8,getNative$7=_getNative,nativeCreate$5=getNative$7(Object,"create"),_nativeCreate=nativeCreate$5,nativeCreate$4=_nativeCreate;function hashClear$2(){this.__data__=nativeCreate$4?nativeCreate$4(null):{},this.size=0}var _hashClear=hashClear$2;function hashDelete$2(ot){var et=this.has(ot)&&delete this.__data__[ot];return this.size-=et?1:0,et}var _hashDelete=hashDelete$2,nativeCreate$3=_nativeCreate,HASH_UNDEFINED$5="__lodash_hash_undefined__",objectProto$t=Object.prototype,hasOwnProperty$r=objectProto$t.hasOwnProperty;function hashGet$2(ot){var et=this.__data__;if(nativeCreate$3){var ct=et[ot];return ct===HASH_UNDEFINED$5?void 0:ct}return hasOwnProperty$r.call(et,ot)?et[ot]:void 0}var _hashGet=hashGet$2,nativeCreate$2=_nativeCreate,objectProto$s=Object.prototype,hasOwnProperty$q=objectProto$s.hasOwnProperty;function hashHas$2(ot){var et=this.__data__;return nativeCreate$2?et[ot]!==void 0:hasOwnProperty$q.call(et,ot)}var _hashHas=hashHas$2,nativeCreate$1=_nativeCreate,HASH_UNDEFINED$4="__lodash_hash_undefined__";function hashSet$2(ot,et){var ct=this.__data__;return this.size+=this.has(ot)?0:1,ct[ot]=nativeCreate$1&&et===void 0?HASH_UNDEFINED$4:et,this}var _hashSet=hashSet$2,hashClear$1=_hashClear,hashDelete$1=_hashDelete,hashGet$1=_hashGet,hashHas$1=_hashHas,hashSet$1=_hashSet;function Hash$2(ot){var et=-1,ct=ot==null?0:ot.length;for(this.clear();++et<ct;){var ut=ot[et];this.set(ut[0],ut[1])}}Hash$2.prototype.clear=hashClear$1,Hash$2.prototype.delete=hashDelete$1,Hash$2.prototype.get=hashGet$1,Hash$2.prototype.has=hashHas$1,Hash$2.prototype.set=hashSet$1;var _Hash=Hash$2;function listCacheClear$2(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$2;function eq$6(ot,et){return ot===et||ot!==ot&&et!==et}var eq_1=eq$6,eq$5=eq_1;function assocIndexOf$5(ot,et){for(var ct=ot.length;ct--;)if(eq$5(ot[ct][0],et))return ct;return-1}var _assocIndexOf=assocIndexOf$5,assocIndexOf$4=_assocIndexOf,arrayProto$1=Array.prototype,splice$2=arrayProto$1.splice;function listCacheDelete$2(ot){var et=this.__data__,ct=assocIndexOf$4(et,ot);if(ct<0)return!1;var ut=et.length-1;return ct==ut?et.pop():splice$2.call(et,ct,1),--this.size,!0}var _listCacheDelete=listCacheDelete$2,assocIndexOf$3=_assocIndexOf;function listCacheGet$2(ot){var et=this.__data__,ct=assocIndexOf$3(et,ot);return ct<0?void 0:et[ct][1]}var _listCacheGet=listCacheGet$2,assocIndexOf$2=_assocIndexOf;function listCacheHas$2(ot){return assocIndexOf$2(this.__data__,ot)>-1}var _listCacheHas=listCacheHas$2,assocIndexOf$1=_assocIndexOf;function listCacheSet$2(ot,et){var ct=this.__data__,ut=assocIndexOf$1(ct,ot);return ut<0?(++this.size,ct.push([ot,et])):ct[ut][1]=et,this}var _listCacheSet=listCacheSet$2,listCacheClear$1=_listCacheClear,listCacheDelete$1=_listCacheDelete,listCacheGet$1=_listCacheGet,listCacheHas$1=_listCacheHas,listCacheSet$1=_listCacheSet;function ListCache$5(ot){var et=-1,ct=ot==null?0:ot.length;for(this.clear();++et<ct;){var ut=ot[et];this.set(ut[0],ut[1])}}ListCache$5.prototype.clear=listCacheClear$1,ListCache$5.prototype.delete=listCacheDelete$1,ListCache$5.prototype.get=listCacheGet$1,ListCache$5.prototype.has=listCacheHas$1,ListCache$5.prototype.set=listCacheSet$1;var _ListCache=ListCache$5,getNative$6=_getNative,root$c=_root,Map$6=getNative$6(root$c,"Map"),_Map=Map$6,Hash$1=_Hash,ListCache$4=_ListCache,Map$5=_Map;function mapCacheClear$2(){this.size=0,this.__data__={hash:new Hash$1,map:new(Map$5||ListCache$4),string:new Hash$1}}var _mapCacheClear=mapCacheClear$2;function isKeyable$2(ot){var et=typeof ot;return et=="string"||et=="number"||et=="symbol"||et=="boolean"?ot!=="__proto__":ot===null}var _isKeyable=isKeyable$2,isKeyable$1=_isKeyable;function getMapData$5(ot,et){var ct=ot.__data__;return isKeyable$1(et)?ct[typeof et=="string"?"string":"hash"]:ct.map}var _getMapData=getMapData$5,getMapData$4=_getMapData;function mapCacheDelete$2(ot){var et=getMapData$4(this,ot).delete(ot);return this.size-=et?1:0,et}var _mapCacheDelete=mapCacheDelete$2,getMapData$3=_getMapData;function mapCacheGet$2(ot){return getMapData$3(this,ot).get(ot)}var _mapCacheGet=mapCacheGet$2,getMapData$2=_getMapData;function mapCacheHas$2(ot){return getMapData$2(this,ot).has(ot)}var _mapCacheHas=mapCacheHas$2,getMapData$1=_getMapData;function mapCacheSet$2(ot,et){var ct=getMapData$1(this,ot),ut=ct.size;return ct.set(ot,et),this.size+=ct.size==ut?0:1,this}var _mapCacheSet=mapCacheSet$2,mapCacheClear$1=_mapCacheClear,mapCacheDelete$1=_mapCacheDelete,mapCacheGet$1=_mapCacheGet,mapCacheHas$1=_mapCacheHas,mapCacheSet$1=_mapCacheSet;function MapCache$4(ot){var et=-1,ct=ot==null?0:ot.length;for(this.clear();++et<ct;){var ut=ot[et];this.set(ut[0],ut[1])}}MapCache$4.prototype.clear=mapCacheClear$1,MapCache$4.prototype.delete=mapCacheDelete$1,MapCache$4.prototype.get=mapCacheGet$1,MapCache$4.prototype.has=mapCacheHas$1,MapCache$4.prototype.set=mapCacheSet$1;var _MapCache=MapCache$4,MapCache$3=_MapCache,FUNC_ERROR_TEXT$5="Expected a function";function memoize$4(ot,et){if(typeof ot!="function"||et!=null&&typeof et!="function")throw new TypeError(FUNC_ERROR_TEXT$5);var ct=function(){var ut=arguments,dt=et?et.apply(this,ut):ut[0],ft=ct.cache;if(ft.has(dt))return ft.get(dt);var zt=ot.apply(this,ut);return ct.cache=ft.set(dt,zt)||ft,zt};return ct.cache=new(memoize$4.Cache||MapCache$3),ct}memoize$4.Cache=MapCache$3;var memoize_1=memoize$4,memoize$3=memoize_1,MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(ot){var et=memoize$3(ot,function(ut){return ct.size===MAX_MEMOIZE_SIZE$1&&ct.clear(),ut}),ct=et.cache;return et}var _memoizeCapped=memoizeCapped$2,memoizeCapped$1=_memoizeCapped,rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=memoizeCapped$1(function(ot){var et=[];return ot.charCodeAt(0)===46&&et.push(""),ot.replace(rePropName$1,function(ct,ut,dt,ft){et.push(dt?ft.replace(reEscapeChar$1,"$1"):ut||ct)}),et}),_stringToPath=stringToPath$2;function arrayMap$8(ot,et){for(var ct=-1,ut=ot==null?0:ot.length,dt=Array(ut);++ct<ut;)dt[ct]=et(ot[ct],ct,ot);return dt}var _arrayMap=arrayMap$8,Symbol$6=_Symbol,arrayMap$7=_arrayMap,isArray$h=isArray_1,isSymbol$5=isSymbol_1,symbolProto$4=Symbol$6?Symbol$6.prototype:void 0,symbolToString$1=symbolProto$4?symbolProto$4.toString:void 0;function baseToString$3(ot){if(typeof ot=="string")return ot;if(isArray$h(ot))return arrayMap$7(ot,baseToString$3)+"";if(isSymbol$5(ot))return symbolToString$1?symbolToString$1.call(ot):"";var et=ot+"";return et=="0"&&1/ot==-1/0?"-0":et}var _baseToString=baseToString$3,baseToString$2=_baseToString;function toString$8(ot){return ot==null?"":baseToString$2(ot)}toString_1=toString$8,toString$9=getDefaultExportFromCjs$1(toString_1);var isArray$g=isArray_1,isKey$3=_isKey,stringToPath$1=_stringToPath,toString$7=toString_1;function castPath$7(ot,et){return isArray$g(ot)?ot:isKey$3(ot,et)?[ot]:stringToPath$1(toString$7(ot))}var _castPath=castPath$7,isSymbol$4=isSymbol_1;function toKey$7(ot){if(typeof ot=="string"||isSymbol$4(ot))return ot;var et=ot+"";return et=="0"&&1/ot==-1/0?"-0":et}var _toKey=toKey$7,castPath$6=_castPath,toKey$6=_toKey;function baseGet$6(ot,et){et=castPath$6(et,ot);for(var ct=0,ut=et.length;ot!=null&&ct<ut;)ot=ot[toKey$6(et[ct++])];return ct&&ct==ut?ot:void 0}var _baseGet=baseGet$6,baseGet$5=_baseGet;function get$4(ot,et,ct){var ut=ot==null?void 0:baseGet$5(ot,et);return ut===void 0?ct:ut}var get_1=get$4;const get$5=getDefaultExportFromCjs$1(get_1);var cuint={},uint32={exports:{}};(function(ot){(function(et){ct(Math.pow(36,5)),ct(Math.pow(16,7)),ct(Math.pow(10,9)),ct(Math.pow(2,30)),ct(36),ct(16),ct(10),ct(2);function ct(zt,Dt){if(!(this instanceof ct))return new ct(zt,Dt);if(this._low=0,this._high=0,this.remainder=null,typeof Dt>"u")return dt.call(this,zt);if(typeof zt=="string")return ft.call(this,zt,Dt);ut.call(this,zt,Dt)}function ut(zt,Dt){return this._low=zt|0,this._high=Dt|0,this}ct.prototype.fromBits=ut;function dt(zt){return this._low=zt&65535,this._high=zt>>>16,this}ct.prototype.fromNumber=dt;function ft(zt,Dt){var St=parseInt(zt,Dt||10);return this._low=St&65535,this._high=St>>>16,this}ct.prototype.fromString=ft,ct.prototype.toNumber=function(){return this._high*65536+this._low},ct.prototype.toString=function(zt){return this.toNumber().toString(zt||10)},ct.prototype.add=function(zt){var Dt=this._low+zt._low,St=Dt>>>16;return St+=this._high+zt._high,this._low=Dt&65535,this._high=St&65535,this},ct.prototype.subtract=function(zt){return this.add(zt.clone().negate())},ct.prototype.multiply=function(zt){var Dt=this._high,St=this._low,Tt=zt._high,Rt=zt._low,$t,kt;return kt=St*Rt,$t=kt>>>16,$t+=Dt*Rt,$t&=65535,$t+=St*Tt,this._low=kt&65535,this._high=$t&65535,this},ct.prototype.div=function(zt){if(zt._low==0&&zt._high==0)throw Error("division by zero");if(zt._high==0&&zt._low==1)return this.remainder=new ct(0),this;if(zt.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(zt))return this.remainder=new ct(0),this._low=1,this._high=0,this;for(var Dt=zt.clone(),St=-1;!this.lt(Dt);)Dt.shiftLeft(1,!0),St++;for(this.remainder=this.clone(),this._low=0,this._high=0;St>=0;St--)Dt.shiftRight(1),this.remainder.lt(Dt)||(this.remainder.subtract(Dt),St>=16?this._high|=1<<St-16:this._low|=1<<St);return this},ct.prototype.negate=function(){var zt=(~this._low&65535)+1;return this._low=zt&65535,this._high=~this._high+(zt>>>16)&65535,this},ct.prototype.equals=ct.prototype.eq=function(zt){return this._low==zt._low&&this._high==zt._high},ct.prototype.greaterThan=ct.prototype.gt=function(zt){return this._high>zt._high?!0:this._high<zt._high?!1:this._low>zt._low},ct.prototype.lessThan=ct.prototype.lt=function(zt){return this._high<zt._high?!0:this._high>zt._high?!1:this._low<zt._low},ct.prototype.or=function(zt){return this._low|=zt._low,this._high|=zt._high,this},ct.prototype.and=function(zt){return this._low&=zt._low,this._high&=zt._high,this},ct.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},ct.prototype.xor=function(zt){return this._low^=zt._low,this._high^=zt._high,this},ct.prototype.shiftRight=ct.prototype.shiftr=function(zt){return zt>16?(this._low=this._high>>zt-16,this._high=0):zt==16?(this._low=this._high,this._high=0):(this._low=this._low>>zt|this._high<<16-zt&65535,this._high>>=zt),this},ct.prototype.shiftLeft=ct.prototype.shiftl=function(zt,Dt){return zt>16?(this._high=this._low<<zt-16,this._low=0,Dt||(this._high&=65535)):zt==16?(this._high=this._low,this._low=0):(this._high=this._high<<zt|this._low>>16-zt,this._low=this._low<<zt&65535,Dt||(this._high&=65535)),this},ct.prototype.rotateLeft=ct.prototype.rotl=function(zt){var Dt=this._high<<16|this._low;return Dt=Dt<<zt|Dt>>>32-zt,this._low=Dt&65535,this._high=Dt>>>16,this},ct.prototype.rotateRight=ct.prototype.rotr=function(zt){var Dt=this._high<<16|this._low;return Dt=Dt>>>zt|Dt<<32-zt,this._low=Dt&65535,this._high=Dt>>>16,this},ct.prototype.clone=function(){return new ct(this._low,this._high)},ot.exports?ot.exports=ct:et.UINT32=ct})(commonjsGlobal$1)})(uint32);var uint32Exports=uint32.exports,uint64={exports:{}};(function(ot){(function(et){var ct={16:dt(Math.pow(16,5)),10:dt(Math.pow(10,5)),2:dt(Math.pow(2,5))},ut={16:dt(16),10:dt(10),2:dt(2)};function dt(St,Tt,Rt,$t){if(!(this instanceof dt))return new dt(St,Tt,Rt,$t);if(this.remainder=null,typeof St=="string")return Dt.call(this,St,Tt);if(typeof Tt>"u")return zt.call(this,St);ft.apply(this,arguments)}function ft(St,Tt,Rt,$t){return typeof Rt>"u"?(this._a00=St&65535,this._a16=St>>>16,this._a32=Tt&65535,this._a48=Tt>>>16,this):(this._a00=St|0,this._a16=Tt|0,this._a32=Rt|0,this._a48=$t|0,this)}dt.prototype.fromBits=ft;function zt(St){return this._a00=St&65535,this._a16=St>>>16,this._a32=0,this._a48=0,this}dt.prototype.fromNumber=zt;function Dt(St,Tt){Tt=Tt||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var Rt=ct[Tt]||new dt(Math.pow(Tt,5)),$t=0,kt=St.length;$t<kt;$t+=5){var Bt=Math.min(5,kt-$t),Ft=parseInt(St.slice($t,$t+Bt),Tt);this.multiply(Bt<5?new dt(Math.pow(Tt,Bt)):Rt).add(new dt(Ft))}return this}dt.prototype.fromString=Dt,dt.prototype.toNumber=function(){return this._a16*65536+this._a00},dt.prototype.toString=function(St){St=St||10;var Tt=ut[St]||new dt(St);if(!this.gt(Tt))return this.toNumber().toString(St);for(var Rt=this.clone(),$t=new Array(64),kt=63;kt>=0&&(Rt.div(Tt),$t[kt]=Rt.remainder.toNumber().toString(St),!!Rt.gt(Tt));kt--);return $t[kt-1]=Rt.toNumber().toString(St),$t.join("")},dt.prototype.add=function(St){var Tt=this._a00+St._a00,Rt=Tt>>>16;Rt+=this._a16+St._a16;var $t=Rt>>>16;$t+=this._a32+St._a32;var kt=$t>>>16;return kt+=this._a48+St._a48,this._a00=Tt&65535,this._a16=Rt&65535,this._a32=$t&65535,this._a48=kt&65535,this},dt.prototype.subtract=function(St){return this.add(St.clone().negate())},dt.prototype.multiply=function(St){var Tt=this._a00,Rt=this._a16,$t=this._a32,kt=this._a48,Bt=St._a00,Ft=St._a16,jt=St._a32,Kt=St._a48,Yt=Tt*Bt,Ut=Yt>>>16;Ut+=Tt*Ft;var Jt=Ut>>>16;Ut&=65535,Ut+=Rt*Bt,Jt+=Ut>>>16,Jt+=Tt*jt;var Ht=Jt>>>16;return Jt&=65535,Jt+=Rt*Ft,Ht+=Jt>>>16,Jt&=65535,Jt+=$t*Bt,Ht+=Jt>>>16,Ht+=Tt*Kt,Ht&=65535,Ht+=Rt*jt,Ht&=65535,Ht+=$t*Ft,Ht&=65535,Ht+=kt*Bt,this._a00=Yt&65535,this._a16=Ut&65535,this._a32=Jt&65535,this._a48=Ht&65535,this},dt.prototype.div=function(St){if(St._a16==0&&St._a32==0&&St._a48==0){if(St._a00==0)throw Error("division by zero");if(St._a00==1)return this.remainder=new dt(0),this}if(St.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(St))return this.remainder=new dt(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var Tt=St.clone(),Rt=-1;!this.lt(Tt);)Tt.shiftLeft(1,!0),Rt++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;Rt>=0;Rt--)Tt.shiftRight(1),this.remainder.lt(Tt)||(this.remainder.subtract(Tt),Rt>=48?this._a48|=1<<Rt-48:Rt>=32?this._a32|=1<<Rt-32:Rt>=16?this._a16|=1<<Rt-16:this._a00|=1<<Rt);return this},dt.prototype.negate=function(){var St=(~this._a00&65535)+1;return this._a00=St&65535,St=(~this._a16&65535)+(St>>>16),this._a16=St&65535,St=(~this._a32&65535)+(St>>>16),this._a32=St&65535,this._a48=~this._a48+(St>>>16)&65535,this},dt.prototype.equals=dt.prototype.eq=function(St){return this._a48==St._a48&&this._a00==St._a00&&this._a32==St._a32&&this._a16==St._a16},dt.prototype.greaterThan=dt.prototype.gt=function(St){return this._a48>St._a48?!0:this._a48<St._a48?!1:this._a32>St._a32?!0:this._a32<St._a32?!1:this._a16>St._a16?!0:this._a16<St._a16?!1:this._a00>St._a00},dt.prototype.lessThan=dt.prototype.lt=function(St){return this._a48<St._a48?!0:this._a48>St._a48?!1:this._a32<St._a32?!0:this._a32>St._a32?!1:this._a16<St._a16?!0:this._a16>St._a16?!1:this._a00<St._a00},dt.prototype.or=function(St){return this._a00|=St._a00,this._a16|=St._a16,this._a32|=St._a32,this._a48|=St._a48,this},dt.prototype.and=function(St){return this._a00&=St._a00,this._a16&=St._a16,this._a32&=St._a32,this._a48&=St._a48,this},dt.prototype.xor=function(St){return this._a00^=St._a00,this._a16^=St._a16,this._a32^=St._a32,this._a48^=St._a48,this},dt.prototype.not=function(){return this._a00=~this._a00&65535,this._a16=~this._a16&65535,this._a32=~this._a32&65535,this._a48=~this._a48&65535,this},dt.prototype.shiftRight=dt.prototype.shiftr=function(St){return St%=64,St>=48?(this._a00=this._a48>>St-48,this._a16=0,this._a32=0,this._a48=0):St>=32?(St-=32,this._a00=(this._a32>>St|this._a48<<16-St)&65535,this._a16=this._a48>>St&65535,this._a32=0,this._a48=0):St>=16?(St-=16,this._a00=(this._a16>>St|this._a32<<16-St)&65535,this._a16=(this._a32>>St|this._a48<<16-St)&65535,this._a32=this._a48>>St&65535,this._a48=0):(this._a00=(this._a00>>St|this._a16<<16-St)&65535,this._a16=(this._a16>>St|this._a32<<16-St)&65535,this._a32=(this._a32>>St|this._a48<<16-St)&65535,this._a48=this._a48>>St&65535),this},dt.prototype.shiftLeft=dt.prototype.shiftl=function(St,Tt){return St%=64,St>=48?(this._a48=this._a00<<St-48,this._a32=0,this._a16=0,this._a00=0):St>=32?(St-=32,this._a48=this._a16<<St|this._a00>>16-St,this._a32=this._a00<<St&65535,this._a16=0,this._a00=0):St>=16?(St-=16,this._a48=this._a32<<St|this._a16>>16-St,this._a32=(this._a16<<St|this._a00>>16-St)&65535,this._a16=this._a00<<St&65535,this._a00=0):(this._a48=this._a48<<St|this._a32>>16-St,this._a32=(this._a32<<St|this._a16>>16-St)&65535,this._a16=(this._a16<<St|this._a00>>16-St)&65535,this._a00=this._a00<<St&65535),Tt||(this._a48&=65535),this},dt.prototype.rotateLeft=dt.prototype.rotl=function(St){if(St%=64,St==0)return this;if(St>=32){var Tt=this._a00;if(this._a00=this._a32,this._a32=Tt,Tt=this._a48,this._a48=this._a16,this._a16=Tt,St==32)return this;St-=32}var Rt=this._a48<<16|this._a32,$t=this._a16<<16|this._a00,kt=Rt<<St|$t>>>32-St,Bt=$t<<St|Rt>>>32-St;return this._a00=Bt&65535,this._a16=Bt>>>16,this._a32=kt&65535,this._a48=kt>>>16,this},dt.prototype.rotateRight=dt.prototype.rotr=function(St){if(St%=64,St==0)return this;if(St>=32){var Tt=this._a00;if(this._a00=this._a32,this._a32=Tt,Tt=this._a48,this._a48=this._a16,this._a16=Tt,St==32)return this;St-=32}var Rt=this._a48<<16|this._a32,$t=this._a16<<16|this._a00,kt=Rt>>>St|$t<<32-St,Bt=$t>>>St|Rt<<32-St;return this._a00=Bt&65535,this._a16=Bt>>>16,this._a32=kt&65535,this._a48=kt>>>16,this},dt.prototype.clone=function(){return new dt(this._a00,this._a16,this._a32,this._a48)},ot.exports?ot.exports=dt:et.UINT64=dt})(commonjsGlobal$1)})(uint64);var uint64Exports=uint64.exports;cuint.UINT32=uint32Exports,cuint.UINT64=uint64Exports;var UINT32=cuint.UINT32;UINT32.prototype.xxh_update=function(ot,et){var ct=PRIME32_2._low,ut=PRIME32_2._high,dt,ft;ft=ot*ct,dt=ft>>>16,dt+=et*ct,dt&=65535,dt+=ot*ut;var zt=this._low+(ft&65535),Dt=zt>>>16;Dt+=this._high+(dt&65535);var St=Dt<<16|zt&65535;St=St<<13|St>>>19,zt=St&65535,Dt=St>>>16,ct=PRIME32_1._low,ut=PRIME32_1._high,ft=zt*ct,dt=ft>>>16,dt+=Dt*ct,dt&=65535,dt+=zt*ut,this._low=ft&65535,this._high=dt&65535};var PRIME32_1=UINT32("2654435761"),PRIME32_2=UINT32("2246822519"),PRIME32_3=UINT32("3266489917"),PRIME32_4=UINT32("668265263"),PRIME32_5=UINT32("374761393");function toUTF8Array$1(ot){for(var et=[],ct=0,ut=ot.length;ct<ut;ct++){var dt=ot.charCodeAt(ct);dt<128?et.push(dt):dt<2048?et.push(192|dt>>6,128|dt&63):dt<55296||dt>=57344?et.push(224|dt>>12,128|dt>>6&63,128|dt&63):(ct++,dt=65536+((dt&1023)<<10|ot.charCodeAt(ct)&1023),et.push(240|dt>>18,128|dt>>12&63,128|dt>>6&63,128|dt&63))}return new Uint8Array(et)}function XXH(){if(arguments.length==2)return new XXH(arguments[1]).update(arguments[0]).digest();if(!(this instanceof XXH))return new XXH(arguments[0]);init$1.call(this,arguments[0])}function init$1(ot){return this.seed=ot instanceof UINT32?ot.clone():UINT32(ot),this.v1=this.seed.clone().add(PRIME32_1).add(PRIME32_2),this.v2=this.seed.clone().add(PRIME32_2),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(PRIME32_1),this.total_len=0,this.memsize=0,this.memory=null,this}XXH.prototype.init=init$1,XXH.prototype.update=function(ot){var et=typeof ot=="string",ct;et&&(ot=toUTF8Array$1(ot),et=!1,ct=!0),typeof ArrayBuffer<"u"&&ot instanceof ArrayBuffer&&(ct=!0,ot=new Uint8Array(ot));var ut=0,dt=ot.length,ft=ut+dt;if(dt==0)return this;if(this.total_len+=dt,this.memsize==0&&(et?this.memory="":ct?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+dt<16)return et?this.memory+=ot:ct?this.memory.set(ot.subarray(0,dt),this.memsize):ot.copy(this.memory,this.memsize,0,dt),this.memsize+=dt,this;if(this.memsize>0){et?this.memory+=ot.slice(0,16-this.memsize):ct?this.memory.set(ot.subarray(0,16-this.memsize),this.memsize):ot.copy(this.memory,this.memsize,0,16-this.memsize);var zt=0;et?(this.v1.xxh_update(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2)),zt+=4,this.v2.xxh_update(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2)),zt+=4,this.v3.xxh_update(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2)),zt+=4,this.v4.xxh_update(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2))):(this.v1.xxh_update(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2]),zt+=4,this.v2.xxh_update(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2]),zt+=4,this.v3.xxh_update(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2]),zt+=4,this.v4.xxh_update(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2])),ut+=16-this.memsize,this.memsize=0,et&&(this.memory="")}if(ut<=ft-16){var Dt=ft-16;do et?(this.v1.xxh_update(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2)),ut+=4,this.v2.xxh_update(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2)),ut+=4,this.v3.xxh_update(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2)),ut+=4,this.v4.xxh_update(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2))):(this.v1.xxh_update(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2]),ut+=4,this.v2.xxh_update(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2]),ut+=4,this.v3.xxh_update(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2]),ut+=4,this.v4.xxh_update(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2])),ut+=4;while(ut<=Dt)}return ut<ft&&(et?this.memory+=ot.slice(ut):ct?this.memory.set(ot.subarray(ut,ft),this.memsize):ot.copy(this.memory,this.memsize,ut,ft),this.memsize=ft-ut),this},XXH.prototype.digest=function(){var ot=this.memory,et=typeof ot=="string",ct=0,ut=this.memsize,dt,ft,zt=new UINT32;for(this.total_len>=16?dt=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):dt=this.seed.clone().add(PRIME32_5),dt.add(zt.fromNumber(this.total_len));ct<=ut-4;)et?zt.fromBits(ot.charCodeAt(ct+1)<<8|ot.charCodeAt(ct),ot.charCodeAt(ct+3)<<8|ot.charCodeAt(ct+2)):zt.fromBits(ot[ct+1]<<8|ot[ct],ot[ct+3]<<8|ot[ct+2]),dt.add(zt.multiply(PRIME32_3)).rotl(17).multiply(PRIME32_4),ct+=4;for(;ct<ut;)zt.fromBits(et?ot.charCodeAt(ct++):ot[ct++],0),dt.add(zt.multiply(PRIME32_5)).rotl(11).multiply(PRIME32_1);return ft=dt.clone().shiftRight(15),dt.xor(ft).multiply(PRIME32_2),ft=dt.clone().shiftRight(13),dt.xor(ft).multiply(PRIME32_3),ft=dt.clone().shiftRight(16),dt.xor(ft),this.init(this.seed),dt};var xxhash$1=XXH,UINT64=cuint.UINT64,PRIME64_1=UINT64("11400714785074694791"),PRIME64_2=UINT64("14029467366897019727"),PRIME64_3=UINT64("1609587929392839161"),PRIME64_4=UINT64("9650029242287828579"),PRIME64_5=UINT64("2870177450012600261");function toUTF8Array(ot){for(var et=[],ct=0,ut=ot.length;ct<ut;ct++){var dt=ot.charCodeAt(ct);dt<128?et.push(dt):dt<2048?et.push(192|dt>>6,128|dt&63):dt<55296||dt>=57344?et.push(224|dt>>12,128|dt>>6&63,128|dt&63):(ct++,dt=65536+((dt&1023)<<10|ot.charCodeAt(ct)&1023),et.push(240|dt>>18,128|dt>>12&63,128|dt>>6&63,128|dt&63))}return new Uint8Array(et)}function XXH64(){if(arguments.length==2)return new XXH64(arguments[1]).update(arguments[0]).digest();if(!(this instanceof XXH64))return new XXH64(arguments[0]);init.call(this,arguments[0])}function init(ot){return this.seed=ot instanceof UINT64?ot.clone():UINT64(ot),this.v1=this.seed.clone().add(PRIME64_1).add(PRIME64_2),this.v2=this.seed.clone().add(PRIME64_2),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(PRIME64_1),this.total_len=0,this.memsize=0,this.memory=null,this}XXH64.prototype.init=init,XXH64.prototype.update=function(ot){var et=typeof ot=="string",ct;et&&(ot=toUTF8Array(ot),et=!1,ct=!0),typeof ArrayBuffer<"u"&&ot instanceof ArrayBuffer&&(ct=!0,ot=new Uint8Array(ot));var ut=0,dt=ot.length,ft=ut+dt;if(dt==0)return this;if(this.total_len+=dt,this.memsize==0&&(et?this.memory="":ct?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+dt<32)return et?this.memory+=ot:ct?this.memory.set(ot.subarray(0,dt),this.memsize):ot.copy(this.memory,this.memsize,0,dt),this.memsize+=dt,this;if(this.memsize>0){et?this.memory+=ot.slice(0,32-this.memsize):ct?this.memory.set(ot.subarray(0,32-this.memsize),this.memsize):ot.copy(this.memory,this.memsize,0,32-this.memsize);var zt=0;if(et){var Dt;Dt=UINT64(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2),this.memory.charCodeAt(zt+5)<<8|this.memory.charCodeAt(zt+4),this.memory.charCodeAt(zt+7)<<8|this.memory.charCodeAt(zt+6)),this.v1.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2),this.memory.charCodeAt(zt+5)<<8|this.memory.charCodeAt(zt+4),this.memory.charCodeAt(zt+7)<<8|this.memory.charCodeAt(zt+6)),this.v2.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2),this.memory.charCodeAt(zt+5)<<8|this.memory.charCodeAt(zt+4),this.memory.charCodeAt(zt+7)<<8|this.memory.charCodeAt(zt+6)),this.v3.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory.charCodeAt(zt+1)<<8|this.memory.charCodeAt(zt),this.memory.charCodeAt(zt+3)<<8|this.memory.charCodeAt(zt+2),this.memory.charCodeAt(zt+5)<<8|this.memory.charCodeAt(zt+4),this.memory.charCodeAt(zt+7)<<8|this.memory.charCodeAt(zt+6)),this.v4.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1)}else{var Dt;Dt=UINT64(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2],this.memory[zt+5]<<8|this.memory[zt+4],this.memory[zt+7]<<8|this.memory[zt+6]),this.v1.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2],this.memory[zt+5]<<8|this.memory[zt+4],this.memory[zt+7]<<8|this.memory[zt+6]),this.v2.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2],this.memory[zt+5]<<8|this.memory[zt+4],this.memory[zt+7]<<8|this.memory[zt+6]),this.v3.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),zt+=8,Dt=UINT64(this.memory[zt+1]<<8|this.memory[zt],this.memory[zt+3]<<8|this.memory[zt+2],this.memory[zt+5]<<8|this.memory[zt+4],this.memory[zt+7]<<8|this.memory[zt+6]),this.v4.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1)}ut+=32-this.memsize,this.memsize=0,et&&(this.memory="")}if(ut<=ft-32){var St=ft-32;do{if(et){var Dt;Dt=UINT64(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2),ot.charCodeAt(ut+5)<<8|ot.charCodeAt(ut+4),ot.charCodeAt(ut+7)<<8|ot.charCodeAt(ut+6)),this.v1.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2),ot.charCodeAt(ut+5)<<8|ot.charCodeAt(ut+4),ot.charCodeAt(ut+7)<<8|ot.charCodeAt(ut+6)),this.v2.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2),ot.charCodeAt(ut+5)<<8|ot.charCodeAt(ut+4),ot.charCodeAt(ut+7)<<8|ot.charCodeAt(ut+6)),this.v3.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot.charCodeAt(ut+1)<<8|ot.charCodeAt(ut),ot.charCodeAt(ut+3)<<8|ot.charCodeAt(ut+2),ot.charCodeAt(ut+5)<<8|ot.charCodeAt(ut+4),ot.charCodeAt(ut+7)<<8|ot.charCodeAt(ut+6)),this.v4.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1)}else{var Dt;Dt=UINT64(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2],ot[ut+5]<<8|ot[ut+4],ot[ut+7]<<8|ot[ut+6]),this.v1.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2],ot[ut+5]<<8|ot[ut+4],ot[ut+7]<<8|ot[ut+6]),this.v2.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2],ot[ut+5]<<8|ot[ut+4],ot[ut+7]<<8|ot[ut+6]),this.v3.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1),ut+=8,Dt=UINT64(ot[ut+1]<<8|ot[ut],ot[ut+3]<<8|ot[ut+2],ot[ut+5]<<8|ot[ut+4],ot[ut+7]<<8|ot[ut+6]),this.v4.add(Dt.multiply(PRIME64_2)).rotl(31).multiply(PRIME64_1)}ut+=8}while(ut<=St)}return ut<ft&&(et?this.memory+=ot.slice(ut):ct?this.memory.set(ot.subarray(ut,ft),this.memsize):ot.copy(this.memory,this.memsize,ut,ft),this.memsize=ft-ut),this},XXH64.prototype.digest=function(){var ot=this.memory,et=typeof ot=="string",ct=0,ut=this.memsize,dt,ft,zt=new UINT64;for(this.total_len>=32?(dt=this.v1.clone().rotl(1),dt.add(this.v2.clone().rotl(7)),dt.add(this.v3.clone().rotl(12)),dt.add(this.v4.clone().rotl(18)),dt.xor(this.v1.multiply(PRIME64_2).rotl(31).multiply(PRIME64_1)),dt.multiply(PRIME64_1).add(PRIME64_4),dt.xor(this.v2.multiply(PRIME64_2).rotl(31).multiply(PRIME64_1)),dt.multiply(PRIME64_1).add(PRIME64_4),dt.xor(this.v3.multiply(PRIME64_2).rotl(31).multiply(PRIME64_1)),dt.multiply(PRIME64_1).add(PRIME64_4),dt.xor(this.v4.multiply(PRIME64_2).rotl(31).multiply(PRIME64_1)),dt.multiply(PRIME64_1).add(PRIME64_4)):dt=this.seed.clone().add(PRIME64_5),dt.add(zt.fromNumber(this.total_len));ct<=ut-8;)et?zt.fromBits(ot.charCodeAt(ct+1)<<8|ot.charCodeAt(ct),ot.charCodeAt(ct+3)<<8|ot.charCodeAt(ct+2),ot.charCodeAt(ct+5)<<8|ot.charCodeAt(ct+4),ot.charCodeAt(ct+7)<<8|ot.charCodeAt(ct+6)):zt.fromBits(ot[ct+1]<<8|ot[ct],ot[ct+3]<<8|ot[ct+2],ot[ct+5]<<8|ot[ct+4],ot[ct+7]<<8|ot[ct+6]),zt.multiply(PRIME64_2).rotl(31).multiply(PRIME64_1),dt.xor(zt).rotl(27).multiply(PRIME64_1).add(PRIME64_4),ct+=8;for(ct+4<=ut&&(et?zt.fromBits(ot.charCodeAt(ct+1)<<8|ot.charCodeAt(ct),ot.charCodeAt(ct+3)<<8|ot.charCodeAt(ct+2),0,0):zt.fromBits(ot[ct+1]<<8|ot[ct],ot[ct+3]<<8|ot[ct+2],0,0),dt.xor(zt.multiply(PRIME64_1)).rotl(23).multiply(PRIME64_2).add(PRIME64_3),ct+=4);ct<ut;)zt.fromBits(et?ot.charCodeAt(ct++):ot[ct++],0,0,0),dt.xor(zt.multiply(PRIME64_5)).rotl(11).multiply(PRIME64_1);return ft=dt.clone().shiftRight(33),dt.xor(ft).multiply(PRIME64_2),ft=dt.clone().shiftRight(29),dt.xor(ft).multiply(PRIME64_3),ft=dt.clone().shiftRight(32),dt.xor(ft),this.init(this.seed),dt};var xxhash64=XXH64,lib$4={h32:xxhash$1,h64:xxhash64};const xxhash=getDefaultExportFromCjs$1(lib$4);var indexMinimal={},minimal$1={},aspromise=asPromise$1;function asPromise$1(ot,et){for(var ct=new Array(arguments.length-1),ut=0,dt=2,ft=!0;dt<arguments.length;)ct[ut++]=arguments[dt++];return new Promise(function(zt,Dt){ct[ut]=function(St){if(ft)if(ft=!1,St)Dt(St);else{for(var Tt=new Array(arguments.length-1),Rt=0;Rt<Tt.length;)Tt[Rt++]=arguments[Rt];zt.apply(null,Tt)}};try{ot.apply(et||null,ct)}catch(St){ft&&(ft=!1,Dt(St))}})}var base64$1={};(function(ot){var et=ot;et.length=function(zt){var Dt=zt.length;if(!Dt)return 0;for(var St=0;--Dt%4>1&&zt.charAt(Dt)==="=";)++St;return Math.ceil(zt.length*3)/4-St};for(var ct=new Array(64),ut=new Array(123),dt=0;dt<64;)ut[ct[dt]=dt<26?dt+65:dt<52?dt+71:dt<62?dt-4:dt-59|43]=dt++;et.encode=function(zt,Dt,St){for(var Tt=null,Rt=[],$t=0,kt=0,Bt;Dt<St;){var Ft=zt[Dt++];switch(kt){case 0:Rt[$t++]=ct[Ft>>2],Bt=(Ft&3)<<4,kt=1;break;case 1:Rt[$t++]=ct[Bt|Ft>>4],Bt=(Ft&15)<<2,kt=2;break;case 2:Rt[$t++]=ct[Bt|Ft>>6],Rt[$t++]=ct[Ft&63],kt=0;break}$t>8191&&((Tt||(Tt=[])).push(String.fromCharCode.apply(String,Rt)),$t=0)}return kt&&(Rt[$t++]=ct[Bt],Rt[$t++]=61,kt===1&&(Rt[$t++]=61)),Tt?($t&&Tt.push(String.fromCharCode.apply(String,Rt.slice(0,$t))),Tt.join("")):String.fromCharCode.apply(String,Rt.slice(0,$t))};var ft="invalid encoding";et.decode=function(zt,Dt,St){for(var Tt=St,Rt=0,$t,kt=0;kt<zt.length;){var Bt=zt.charCodeAt(kt++);if(Bt===61&&Rt>1)break;if((Bt=ut[Bt])===void 0)throw Error(ft);switch(Rt){case 0:$t=Bt,Rt=1;break;case 1:Dt[St++]=$t<<2|(Bt&48)>>4,$t=Bt,Rt=2;break;case 2:Dt[St++]=($t&15)<<4|(Bt&60)>>2,$t=Bt,Rt=3;break;case 3:Dt[St++]=($t&3)<<6|Bt,Rt=0;break}}if(Rt===1)throw Error(ft);return St-Tt},et.test=function(zt){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(zt)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function ot(et,ct,ut){return(this._listeners[et]||(this._listeners[et]=[])).push({fn:ct,ctx:ut||this}),this},EventEmitter.prototype.off=function ot(et,ct){if(et===void 0)this._listeners={};else if(ct===void 0)this._listeners[et]=[];else for(var ut=this._listeners[et],dt=0;dt<ut.length;)ut[dt].fn===ct?ut.splice(dt,1):++dt;return this},EventEmitter.prototype.emit=function ot(et){var ct=this._listeners[et];if(ct){for(var ut=[],dt=1;dt<arguments.length;)ut.push(arguments[dt++]);for(dt=0;dt<ct.length;)ct[dt].fn.apply(ct[dt++].ctx,ut)}return this};var float=factory$3(factory$3);function factory$3(ot){return typeof Float32Array<"u"?function(){var et=new Float32Array([-0]),ct=new Uint8Array(et.buffer),ut=ct[3]===128;function dt(St,Tt,Rt){et[0]=St,Tt[Rt]=ct[0],Tt[Rt+1]=ct[1],Tt[Rt+2]=ct[2],Tt[Rt+3]=ct[3]}function ft(St,Tt,Rt){et[0]=St,Tt[Rt]=ct[3],Tt[Rt+1]=ct[2],Tt[Rt+2]=ct[1],Tt[Rt+3]=ct[0]}ot.writeFloatLE=ut?dt:ft,ot.writeFloatBE=ut?ft:dt;function zt(St,Tt){return ct[0]=St[Tt],ct[1]=St[Tt+1],ct[2]=St[Tt+2],ct[3]=St[Tt+3],et[0]}function Dt(St,Tt){return ct[3]=St[Tt],ct[2]=St[Tt+1],ct[1]=St[Tt+2],ct[0]=St[Tt+3],et[0]}ot.readFloatLE=ut?zt:Dt,ot.readFloatBE=ut?Dt:zt}():function(){function et(ut,dt,ft,zt){var Dt=dt<0?1:0;if(Dt&&(dt=-dt),dt===0)ut(1/dt>0?0:2147483648,ft,zt);else if(isNaN(dt))ut(2143289344,ft,zt);else if(dt>3402823466385289e23)ut((Dt<<31|2139095040)>>>0,ft,zt);else if(dt<11754943508222875e-54)ut((Dt<<31|Math.round(dt/1401298464324817e-60))>>>0,ft,zt);else{var St=Math.floor(Math.log(dt)/Math.LN2),Tt=Math.round(dt*Math.pow(2,-St)*8388608)&8388607;ut((Dt<<31|St+127<<23|Tt)>>>0,ft,zt)}}ot.writeFloatLE=et.bind(null,writeUintLE),ot.writeFloatBE=et.bind(null,writeUintBE);function ct(ut,dt,ft){var zt=ut(dt,ft),Dt=(zt>>31)*2+1,St=zt>>>23&255,Tt=zt&8388607;return St===255?Tt?NaN:Dt*(1/0):St===0?Dt*1401298464324817e-60*Tt:Dt*Math.pow(2,St-150)*(Tt+8388608)}ot.readFloatLE=ct.bind(null,readUintLE),ot.readFloatBE=ct.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var et=new Float64Array([-0]),ct=new Uint8Array(et.buffer),ut=ct[7]===128;function dt(St,Tt,Rt){et[0]=St,Tt[Rt]=ct[0],Tt[Rt+1]=ct[1],Tt[Rt+2]=ct[2],Tt[Rt+3]=ct[3],Tt[Rt+4]=ct[4],Tt[Rt+5]=ct[5],Tt[Rt+6]=ct[6],Tt[Rt+7]=ct[7]}function ft(St,Tt,Rt){et[0]=St,Tt[Rt]=ct[7],Tt[Rt+1]=ct[6],Tt[Rt+2]=ct[5],Tt[Rt+3]=ct[4],Tt[Rt+4]=ct[3],Tt[Rt+5]=ct[2],Tt[Rt+6]=ct[1],Tt[Rt+7]=ct[0]}ot.writeDoubleLE=ut?dt:ft,ot.writeDoubleBE=ut?ft:dt;function zt(St,Tt){return ct[0]=St[Tt],ct[1]=St[Tt+1],ct[2]=St[Tt+2],ct[3]=St[Tt+3],ct[4]=St[Tt+4],ct[5]=St[Tt+5],ct[6]=St[Tt+6],ct[7]=St[Tt+7],et[0]}function Dt(St,Tt){return ct[7]=St[Tt],ct[6]=St[Tt+1],ct[5]=St[Tt+2],ct[4]=St[Tt+3],ct[3]=St[Tt+4],ct[2]=St[Tt+5],ct[1]=St[Tt+6],ct[0]=St[Tt+7],et[0]}ot.readDoubleLE=ut?zt:Dt,ot.readDoubleBE=ut?Dt:zt}():function(){function et(ut,dt,ft,zt,Dt,St){var Tt=zt<0?1:0;if(Tt&&(zt=-zt),zt===0)ut(0,Dt,St+dt),ut(1/zt>0?0:2147483648,Dt,St+ft);else if(isNaN(zt))ut(0,Dt,St+dt),ut(2146959360,Dt,St+ft);else if(zt>17976931348623157e292)ut(0,Dt,St+dt),ut((Tt<<31|2146435072)>>>0,Dt,St+ft);else{var Rt;if(zt<22250738585072014e-324)Rt=zt/5e-324,ut(Rt>>>0,Dt,St+dt),ut((Tt<<31|Rt/4294967296)>>>0,Dt,St+ft);else{var $t=Math.floor(Math.log(zt)/Math.LN2);$t===1024&&($t=1023),Rt=zt*Math.pow(2,-$t),ut(Rt*4503599627370496>>>0,Dt,St+dt),ut((Tt<<31|$t+1023<<20|Rt*1048576&1048575)>>>0,Dt,St+ft)}}}ot.writeDoubleLE=et.bind(null,writeUintLE,0,4),ot.writeDoubleBE=et.bind(null,writeUintBE,4,0);function ct(ut,dt,ft,zt,Dt){var St=ut(zt,Dt+dt),Tt=ut(zt,Dt+ft),Rt=(Tt>>31)*2+1,$t=Tt>>>20&2047,kt=4294967296*(Tt&1048575)+St;return $t===2047?kt?NaN:Rt*(1/0):$t===0?Rt*5e-324*kt:Rt*Math.pow(2,$t-1075)*(kt+4503599627370496)}ot.readDoubleLE=ct.bind(null,readUintLE,0,4),ot.readDoubleBE=ct.bind(null,readUintBE,4,0)}(),ot}function writeUintLE(ot,et,ct){et[ct]=ot&255,et[ct+1]=ot>>>8&255,et[ct+2]=ot>>>16&255,et[ct+3]=ot>>>24}function writeUintBE(ot,et,ct){et[ct]=ot>>>24,et[ct+1]=ot>>>16&255,et[ct+2]=ot>>>8&255,et[ct+3]=ot&255}function readUintLE(ot,et){return(ot[et]|ot[et+1]<<8|ot[et+2]<<16|ot[et+3]<<24)>>>0}function readUintBE(ot,et){return(ot[et]<<24|ot[et+1]<<16|ot[et+2]<<8|ot[et+3])>>>0}var inquire_1=inquire$1;function inquire$1(moduleName){if(typeof process>"u"&&typeof document<"u")return null;try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(ot){}return null}var utf8$2={};(function(ot){var et=ot;et.length=function(ct){for(var ut=0,dt=0,ft=0;ft<ct.length;++ft)dt=ct.charCodeAt(ft),dt<128?ut+=1:dt<2048?ut+=2:(dt&64512)===55296&&(ct.charCodeAt(ft+1)&64512)===56320?(++ft,ut+=4):ut+=3;return ut},et.read=function(ct,ut,dt){var ft=dt-ut;if(ft<1)return"";for(var zt=null,Dt=[],St=0,Tt;ut<dt;)Tt=ct[ut++],Tt<128?Dt[St++]=Tt:Tt>191&&Tt<224?Dt[St++]=(Tt&31)<<6|ct[ut++]&63:Tt>239&&Tt<365?(Tt=((Tt&7)<<18|(ct[ut++]&63)<<12|(ct[ut++]&63)<<6|ct[ut++]&63)-65536,Dt[St++]=55296+(Tt>>10),Dt[St++]=56320+(Tt&1023)):Dt[St++]=(Tt&15)<<12|(ct[ut++]&63)<<6|ct[ut++]&63,St>8191&&((zt||(zt=[])).push(String.fromCharCode.apply(String,Dt)),St=0);return zt?(St&&zt.push(String.fromCharCode.apply(String,Dt.slice(0,St))),zt.join("")):String.fromCharCode.apply(String,Dt.slice(0,St))},et.write=function(ct,ut,dt){for(var ft=dt,zt,Dt,St=0;St<ct.length;++St)zt=ct.charCodeAt(St),zt<128?ut[dt++]=zt:zt<2048?(ut[dt++]=zt>>6|192,ut[dt++]=zt&63|128):(zt&64512)===55296&&((Dt=ct.charCodeAt(St+1))&64512)===56320?(zt=65536+((zt&1023)<<10)+(Dt&1023),++St,ut[dt++]=zt>>18|240,ut[dt++]=zt>>12&63|128,ut[dt++]=zt>>6&63|128,ut[dt++]=zt&63|128):(ut[dt++]=zt>>12|224,ut[dt++]=zt>>6&63|128,ut[dt++]=zt&63|128);return dt-ft}})(utf8$2);var pool_1=pool;function pool(ot,et,ct){var ut=ct||8192,dt=ut>>>1,ft=null,zt=ut;return function(Dt){if(Dt<1||Dt>dt)return ot(Dt);zt+Dt>ut&&(ft=ot(ut),zt=0);var St=et.call(ft,zt,zt+=Dt);return zt&7&&(zt=(zt|7)+1),St}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=et;var ot=requireMinimal();function et(ft,zt){this.lo=ft>>>0,this.hi=zt>>>0}var ct=et.zero=new et(0,0);ct.toNumber=function(){return 0},ct.zzEncode=ct.zzDecode=function(){return this},ct.length=function(){return 1};var ut=et.zeroHash="\0\0\0\0\0\0\0\0";et.fromNumber=function(ft){if(ft===0)return ct;var zt=ft<0;zt&&(ft=-ft);var Dt=ft>>>0,St=(ft-Dt)/4294967296>>>0;return zt&&(St=~St>>>0,Dt=~Dt>>>0,++Dt>4294967295&&(Dt=0,++St>4294967295&&(St=0))),new et(Dt,St)},et.from=function(ft){if(typeof ft=="number")return et.fromNumber(ft);if(ot.isString(ft))if(ot.Long)ft=ot.Long.fromString(ft);else return et.fromNumber(parseInt(ft,10));return ft.low||ft.high?new et(ft.low>>>0,ft.high>>>0):ct},et.prototype.toNumber=function(ft){if(!ft&&this.hi>>>31){var zt=~this.lo+1>>>0,Dt=~this.hi>>>0;return zt||(Dt=Dt+1>>>0),-(zt+Dt*4294967296)}return this.lo+this.hi*4294967296},et.prototype.toLong=function(ft){return ot.Long?new ot.Long(this.lo|0,this.hi|0,!!ft):{low:this.lo|0,high:this.hi|0,unsigned:!!ft}};var dt=String.prototype.charCodeAt;return et.fromHash=function(ft){return ft===ut?ct:new et((dt.call(ft,0)|dt.call(ft,1)<<8|dt.call(ft,2)<<16|dt.call(ft,3)<<24)>>>0,(dt.call(ft,4)|dt.call(ft,5)<<8|dt.call(ft,6)<<16|dt.call(ft,7)<<24)>>>0)},et.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},et.prototype.zzEncode=function(){var ft=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^ft)>>>0,this.lo=(this.lo<<1^ft)>>>0,this},et.prototype.zzDecode=function(){var ft=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^ft)>>>0,this.hi=(this.hi>>>1^ft)>>>0,this},et.prototype.length=function(){var ft=this.lo,zt=(this.lo>>>28|this.hi<<4)>>>0,Dt=this.hi>>>24;return Dt===0?zt===0?ft<16384?ft<128?1:2:ft<2097152?3:4:zt<16384?zt<128?5:6:zt<2097152?7:8:Dt<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(ot){var et=ot;et.asPromise=aspromise,et.base64=base64$1,et.EventEmitter=eventemitter,et.float=float,et.inquire=inquire_1,et.utf8=utf8$2,et.pool=pool_1,et.LongBits=requireLongbits(),et.isNode=!!(typeof commonjsGlobal$1<"u"&&commonjsGlobal$1&&commonjsGlobal$1.process&&commonjsGlobal$1.process.versions&&commonjsGlobal$1.process.versions.node),et.global=et.isNode&&commonjsGlobal$1||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal$1,et.emptyArray=Object.freeze?Object.freeze([]):[],et.emptyObject=Object.freeze?Object.freeze({}):{},et.isInteger=Number.isInteger||function(dt){return typeof dt=="number"&&isFinite(dt)&&Math.floor(dt)===dt},et.isString=function(dt){return typeof dt=="string"||dt instanceof String},et.isObject=function(dt){return dt&&typeof dt=="object"},et.isset=et.isSet=function(dt,ft){var zt=dt[ft];return zt!=null&&dt.hasOwnProperty(ft)?typeof zt!="object"||(Array.isArray(zt)?zt.length:Object.keys(zt).length)>0:!1},et.Buffer=function(){try{var dt=et.inquire("buffer").Buffer;return dt.prototype.utf8Write?dt:null}catch{return null}}(),et._Buffer_from=null,et._Buffer_allocUnsafe=null,et.newBuffer=function(dt){return typeof dt=="number"?et.Buffer?et._Buffer_allocUnsafe(dt):new et.Array(dt):et.Buffer?et._Buffer_from(dt):typeof Uint8Array>"u"?dt:new Uint8Array(dt)},et.Array=typeof Uint8Array<"u"?Uint8Array:Array,et.Long=et.global.dcodeIO&&et.global.dcodeIO.Long||et.global.Long||et.inquire("long"),et.key2Re=/^true|false|0|1$/,et.key32Re=/^-?(?:0|[1-9][0-9]*)$/,et.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,et.longToHash=function(dt){return dt?et.LongBits.from(dt).toHash():et.LongBits.zeroHash},et.longFromHash=function(dt,ft){var zt=et.LongBits.fromHash(dt);return et.Long?et.Long.fromBits(zt.lo,zt.hi,ft):zt.toNumber(!!ft)};function ct(dt,ft,zt){for(var Dt=Object.keys(ft),St=0;St<Dt.length;++St)(dt[Dt[St]]===void 0||!zt)&&(dt[Dt[St]]=ft[Dt[St]]);return dt}et.merge=ct,et.lcFirst=function(dt){return dt.charAt(0).toLowerCase()+dt.substring(1)};function ut(dt){function ft(zt,Dt){if(!(this instanceof ft))return new ft(zt,Dt);Object.defineProperty(this,"message",{get:function(){return zt}}),Error.captureStackTrace?Error.captureStackTrace(this,ft):Object.defineProperty(this,"stack",{value:new Error().stack||""}),Dt&&ct(this,Dt)}return ft.prototype=Object.create(Error.prototype,{constructor:{value:ft,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return dt},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),ft}et.newError=ut,et.ProtocolError=ut("ProtocolError"),et.oneOfGetter=function(dt){for(var ft={},zt=0;zt<dt.length;++zt)ft[dt[zt]]=1;return function(){for(var Dt=Object.keys(this),St=Dt.length-1;St>-1;--St)if(ft[Dt[St]]===1&&this[Dt[St]]!==void 0&&this[Dt[St]]!==null)return Dt[St]}},et.oneOfSetter=function(dt){return function(ft){for(var zt=0;zt<dt.length;++zt)dt[zt]!==ft&&delete this[dt[zt]]}},et.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},et._configure=function(){var dt=et.Buffer;if(!dt){et._Buffer_from=et._Buffer_allocUnsafe=null;return}et._Buffer_from=dt.from!==Uint8Array.from&&dt.from||function(ft,zt){return new dt(ft,zt)},et._Buffer_allocUnsafe=dt.allocUnsafe||function(ft){return new dt(ft)}}}(minimal$1)),minimal$1}var writer=Writer$1,util$9=requireMinimal(),BufferWriter$1,LongBits$1=util$9.LongBits,base64=util$9.base64,utf8$1=util$9.utf8;function Op(ot,et,ct){this.fn=ot,this.len=et,this.next=void 0,this.val=ct}function noop$3(){}function State(ot){this.head=ot.head,this.tail=ot.tail,this.len=ot.len,this.next=ot.states}function Writer$1(){this.len=0,this.head=new Op(noop$3,0,0),this.tail=this.head,this.states=null}var create$8=function ot(){return util$9.Buffer?function(){return(Writer$1.create=function(){return new BufferWriter$1})()}:function(){return new Writer$1}};Writer$1.create=create$8(),Writer$1.alloc=function ot(et){return new util$9.Array(et)},util$9.Array!==Array&&(Writer$1.alloc=util$9.pool(Writer$1.alloc,util$9.Array.prototype.subarray)),Writer$1.prototype._push=function ot(et,ct,ut){return this.tail=this.tail.next=new Op(et,ct,ut),this.len+=ct,this};function writeByte(ot,et,ct){et[ct]=ot&255}function writeVarint32(ot,et,ct){for(;ot>127;)et[ct++]=ot&127|128,ot>>>=7;et[ct]=ot}function VarintOp(ot,et){this.len=ot,this.next=void 0,this.val=et}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function ot(et){return this.len+=(this.tail=this.tail.next=new VarintOp((et=et>>>0)<128?1:et<16384?2:et<2097152?3:et<268435456?4:5,et)).len,this},Writer$1.prototype.int32=function ot(et){return et<0?this._push(writeVarint64,10,LongBits$1.fromNumber(et)):this.uint32(et)},Writer$1.prototype.sint32=function ot(et){return this.uint32((et<<1^et>>31)>>>0)};function writeVarint64(ot,et,ct){for(;ot.hi;)et[ct++]=ot.lo&127|128,ot.lo=(ot.lo>>>7|ot.hi<<25)>>>0,ot.hi>>>=7;for(;ot.lo>127;)et[ct++]=ot.lo&127|128,ot.lo=ot.lo>>>7;et[ct++]=ot.lo}Writer$1.prototype.uint64=function ot(et){var ct=LongBits$1.from(et);return this._push(writeVarint64,ct.length(),ct)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function ot(et){var ct=LongBits$1.from(et).zzEncode();return this._push(writeVarint64,ct.length(),ct)},Writer$1.prototype.bool=function ot(et){return this._push(writeByte,1,et?1:0)};function writeFixed32(ot,et,ct){et[ct]=ot&255,et[ct+1]=ot>>>8&255,et[ct+2]=ot>>>16&255,et[ct+3]=ot>>>24}Writer$1.prototype.fixed32=function ot(et){return this._push(writeFixed32,4,et>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function ot(et){var ct=LongBits$1.from(et);return this._push(writeFixed32,4,ct.lo)._push(writeFixed32,4,ct.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function ot(et){return this._push(util$9.float.writeFloatLE,4,et)},Writer$1.prototype.double=function ot(et){return this._push(util$9.float.writeDoubleLE,8,et)};var writeBytes=util$9.Array.prototype.set?function ot(et,ct,ut){ct.set(et,ut)}:function ot(et,ct,ut){for(var dt=0;dt<et.length;++dt)ct[ut+dt]=et[dt]};Writer$1.prototype.bytes=function ot(et){var ct=et.length>>>0;if(!ct)return this._push(writeByte,1,0);if(util$9.isString(et)){var ut=Writer$1.alloc(ct=base64.length(et));base64.decode(et,ut,0),et=ut}return this.uint32(ct)._push(writeBytes,ct,et)},Writer$1.prototype.string=function ot(et){var ct=utf8$1.length(et);return ct?this.uint32(ct)._push(utf8$1.write,ct,et):this._push(writeByte,1,0)},Writer$1.prototype.fork=function ot(){return this.states=new State(this),this.head=this.tail=new Op(noop$3,0,0),this.len=0,this},Writer$1.prototype.reset=function ot(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop$3,0,0),this.len=0),this},Writer$1.prototype.ldelim=function ot(){var et=this.head,ct=this.tail,ut=this.len;return this.reset().uint32(ut),ut&&(this.tail.next=et.next,this.tail=ct,this.len+=ut),this},Writer$1.prototype.finish=function ot(){for(var et=this.head.next,ct=this.constructor.alloc(this.len),ut=0;et;)et.fn(et.val,ct,ut),ut+=et.len,et=et.next;return ct},Writer$1._configure=function(ot){BufferWriter$1=ot,Writer$1.create=create$8(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$8=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$8._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$8.Buffer&&util$8.Buffer.prototype instanceof Uint8Array&&util$8.Buffer.prototype.set.name==="set"?function(ot,et,ct){et.set(ot,ct)}:function(ot,et,ct){if(ot.copy)ot.copy(et,ct,0,ot.length);else for(var ut=0;ut<ot.length;)et[ct++]=ot[ut++]}},BufferWriter.prototype.bytes=function ot(et){util$8.isString(et)&&(et=util$8._Buffer_from(et,"base64"));var ct=et.length>>>0;return this.uint32(ct),ct&&this._push(BufferWriter.writeBytesBuffer,ct,et),this};function writeStringBuffer(ot,et,ct){ot.length<40?util$8.utf8.write(ot,et,ct):et.utf8Write?et.utf8Write(ot,ct):et.write(ot,ct)}BufferWriter.prototype.string=function ot(et){var ct=util$8.Buffer.byteLength(et);return this.uint32(ct),ct&&this._push(writeStringBuffer,ct,et),this},BufferWriter._configure();var reader=Reader$1,util$7=requireMinimal(),BufferReader$1,LongBits=util$7.LongBits,utf8=util$7.utf8;function indexOutOfRange(ot,et){return RangeError("index out of range: "+ot.pos+" + "+(et||1)+" > "+ot.len)}function Reader$1(ot){this.buf=ot,this.pos=0,this.len=ot.length}var create_array=typeof Uint8Array<"u"?function ot(et){if(et instanceof Uint8Array||Array.isArray(et))return new Reader$1(et);throw Error("illegal buffer")}:function ot(et){if(Array.isArray(et))return new Reader$1(et);throw Error("illegal buffer")},create$7=function ot(){return util$7.Buffer?function(et){return(Reader$1.create=function(ct){return util$7.Buffer.isBuffer(ct)?new BufferReader$1(ct):create_array(ct)})(et)}:create_array};Reader$1.create=create$7(),Reader$1.prototype._slice=util$7.Array.prototype.subarray||util$7.Array.prototype.slice,Reader$1.prototype.uint32=function ot(){var et=4294967295;return function(){if(et=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(et=(et|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(et=(et|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(et=(et|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(et=(et|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return et;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return et}}(),Reader$1.prototype.int32=function ot(){return this.uint32()|0},Reader$1.prototype.sint32=function ot(){var et=this.uint32();return et>>>1^-(et&1)|0};function readLongVarint(){var ot=new LongBits(0,0),et=0;if(this.len-this.pos>4){for(;et<4;++et)if(ot.lo=(ot.lo|(this.buf[this.pos]&127)<<et*7)>>>0,this.buf[this.pos++]<128)return ot;if(ot.lo=(ot.lo|(this.buf[this.pos]&127)<<28)>>>0,ot.hi=(ot.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return ot;et=0}else{for(;et<3;++et){if(this.pos>=this.len)throw indexOutOfRange(this);if(ot.lo=(ot.lo|(this.buf[this.pos]&127)<<et*7)>>>0,this.buf[this.pos++]<128)return ot}return ot.lo=(ot.lo|(this.buf[this.pos++]&127)<<et*7)>>>0,ot}if(this.len-this.pos>4){for(;et<5;++et)if(ot.hi=(ot.hi|(this.buf[this.pos]&127)<<et*7+3)>>>0,this.buf[this.pos++]<128)return ot}else for(;et<5;++et){if(this.pos>=this.len)throw indexOutOfRange(this);if(ot.hi=(ot.hi|(this.buf[this.pos]&127)<<et*7+3)>>>0,this.buf[this.pos++]<128)return ot}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function ot(){return this.uint32()!==0};function readFixed32_end(ot,et){return(ot[et-4]|ot[et-3]<<8|ot[et-2]<<16|ot[et-1]<<24)>>>0}Reader$1.prototype.fixed32=function ot(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function ot(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function ot(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var et=util$7.float.readFloatLE(this.buf,this.pos);return this.pos+=4,et},Reader$1.prototype.double=function ot(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var et=util$7.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,et},Reader$1.prototype.bytes=function ot(){var et=this.uint32(),ct=this.pos,ut=this.pos+et;if(ut>this.len)throw indexOutOfRange(this,et);if(this.pos+=et,Array.isArray(this.buf))return this.buf.slice(ct,ut);if(ct===ut){var dt=util$7.Buffer;return dt?dt.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,ct,ut)},Reader$1.prototype.string=function ot(){var et=this.bytes();return utf8.read(et,0,et.length)},Reader$1.prototype.skip=function ot(et){if(typeof et=="number"){if(this.pos+et>this.len)throw indexOutOfRange(this,et);this.pos+=et}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(ot){switch(ot){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(ot=this.uint32()&7)!==4;)this.skipType(ot);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+ot+" at offset "+this.pos)}return this},Reader$1._configure=function(ot){BufferReader$1=ot,Reader$1.create=create$7(),BufferReader$1._configure();var et=util$7.Long?"toLong":"toNumber";util$7.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[et](!1)},uint64:function(){return readLongVarint.call(this)[et](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[et](!1)},fixed64:function(){return readFixed64.call(this)[et](!0)},sfixed64:function(){return readFixed64.call(this)[et](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$6=requireMinimal();function BufferReader(ot){Reader.call(this,ot)}BufferReader._configure=function(){util$6.Buffer&&(BufferReader.prototype._slice=util$6.Buffer.prototype.slice)},BufferReader.prototype.string=function ot(){var et=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+et,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+et,this.len))},BufferReader._configure();var rpc={},service$1=Service$1,util$5=requireMinimal();(Service$1.prototype=Object.create(util$5.EventEmitter.prototype)).constructor=Service$1;function Service$1(ot,et,ct){if(typeof ot!="function")throw TypeError("rpcImpl must be a function");util$5.EventEmitter.call(this),this.rpcImpl=ot,this.requestDelimited=!!et,this.responseDelimited=!!ct}Service$1.prototype.rpcCall=function ot(et,ct,ut,dt,ft){if(!dt)throw TypeError("request must be specified");var zt=this;if(!ft)return util$5.asPromise(ot,zt,et,ct,ut,dt);if(!zt.rpcImpl){setTimeout(function(){ft(Error("already ended"))},0);return}try{return zt.rpcImpl(et,ct[zt.requestDelimited?"encodeDelimited":"encode"](dt).finish(),function(Dt,St){if(Dt)return zt.emit("error",Dt,et),ft(Dt);if(St===null){zt.end(!0);return}if(!(St instanceof ut))try{St=ut[zt.responseDelimited?"decodeDelimited":"decode"](St)}catch(Tt){return zt.emit("error",Tt,et),ft(Tt)}return zt.emit("data",St,et),ft(null,St)})}catch(Dt){zt.emit("error",Dt,et),setTimeout(function(){ft(Dt)},0);return}},Service$1.prototype.end=function ot(et){return this.rpcImpl&&(et||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(ot){var et=ot;et.Service=service$1}(rpc);var roots={};(function(ot){var et=ot;et.build="minimal",et.Writer=writer,et.BufferWriter=writer_buffer,et.Reader=reader,et.BufferReader=reader_buffer,et.util=requireMinimal(),et.rpc=rpc,et.roots=roots,et.configure=ct;function ct(){et.util._configure(),et.Writer._configure(et.BufferWriter),et.Reader._configure(et.BufferReader)}ct()})(indexMinimal);var minimal=indexMinimal;const $Reader=minimal.Reader,$Writer=minimal.Writer,$util=minimal.util,$root=minimal.roots.default||(minimal.roots.default={}),Alert=$root.Alert=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.body="",ot.prototype.format=0,ot.prototype.icon="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(10).string(et.body),et.format!=null&&Object.hasOwnProperty.call(et,"format")&&ct.uint32(16).int32(et.format),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(26).string(et.icon),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Alert;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.body=et.string();break}case 2:{dt.format=et.int32();break}case 3:{dt.icon=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body))return"body: string expected";if(et.format!=null&&et.hasOwnProperty("format"))switch(et.format){default:return"format: enum value expected";case 0:case 1:case 2:case 3:case 4:break}return et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Alert)return et;let ct=new $root.Alert;switch(et.body!=null&&(ct.body=String(et.body)),et.format){default:if(typeof et.format=="number"){ct.format=et.format;break}break;case"UNUSED":case 0:ct.format=0;break;case"ERROR":case 1:ct.format=1;break;case"WARNING":case 2:ct.format=2;break;case"INFO":case 3:ct.format=3;break;case"SUCCESS":case 4:ct.format=4;break}return et.icon!=null&&(ct.icon=String(et.icon)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.body="",ut.format=ct.enums===String?"UNUSED":0,ut.icon=""),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.format!=null&&et.hasOwnProperty("format")&&(ut.format=ct.enums===String?$root.Alert.Format[et.format]===void 0?et.format:$root.Alert.Format[et.format]:et.format),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Alert"},ot.Format=function(){const et={},ct=Object.create(et);return ct[et[0]="UNUSED"]=0,ct[et[1]="ERROR"]=1,ct[et[2]="WARNING"]=2,ct[et[3]="INFO"]=3,ct[et[4]="SUCCESS"]=4,ct}(),ot})();$root.AppPage=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.pageScriptHash="",ot.prototype.pageName="",ot.prototype.icon="",ot.prototype.isDefault=!1,ot.prototype.sectionHeader="",ot.prototype.urlPathname="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.pageScriptHash!=null&&Object.hasOwnProperty.call(et,"pageScriptHash")&&ct.uint32(10).string(et.pageScriptHash),et.pageName!=null&&Object.hasOwnProperty.call(et,"pageName")&&ct.uint32(18).string(et.pageName),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(26).string(et.icon),et.isDefault!=null&&Object.hasOwnProperty.call(et,"isDefault")&&ct.uint32(32).bool(et.isDefault),et.sectionHeader!=null&&Object.hasOwnProperty.call(et,"sectionHeader")&&ct.uint32(42).string(et.sectionHeader),et.urlPathname!=null&&Object.hasOwnProperty.call(et,"urlPathname")&&ct.uint32(50).string(et.urlPathname),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.AppPage;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.pageScriptHash=et.string();break}case 2:{dt.pageName=et.string();break}case 3:{dt.icon=et.string();break}case 4:{dt.isDefault=et.bool();break}case 5:{dt.sectionHeader=et.string();break}case 6:{dt.urlPathname=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&!$util.isString(et.pageScriptHash)?"pageScriptHash: string expected":et.pageName!=null&&et.hasOwnProperty("pageName")&&!$util.isString(et.pageName)?"pageName: string expected":et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":et.isDefault!=null&&et.hasOwnProperty("isDefault")&&typeof et.isDefault!="boolean"?"isDefault: boolean expected":et.sectionHeader!=null&&et.hasOwnProperty("sectionHeader")&&!$util.isString(et.sectionHeader)?"sectionHeader: string expected":et.urlPathname!=null&&et.hasOwnProperty("urlPathname")&&!$util.isString(et.urlPathname)?"urlPathname: string expected":null},ot.fromObject=function(et){if(et instanceof $root.AppPage)return et;let ct=new $root.AppPage;return et.pageScriptHash!=null&&(ct.pageScriptHash=String(et.pageScriptHash)),et.pageName!=null&&(ct.pageName=String(et.pageName)),et.icon!=null&&(ct.icon=String(et.icon)),et.isDefault!=null&&(ct.isDefault=!!et.isDefault),et.sectionHeader!=null&&(ct.sectionHeader=String(et.sectionHeader)),et.urlPathname!=null&&(ct.urlPathname=String(et.urlPathname)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.pageScriptHash="",ut.pageName="",ut.icon="",ut.isDefault=!1,ut.sectionHeader="",ut.urlPathname=""),et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&(ut.pageScriptHash=et.pageScriptHash),et.pageName!=null&&et.hasOwnProperty("pageName")&&(ut.pageName=et.pageName),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),et.isDefault!=null&&et.hasOwnProperty("isDefault")&&(ut.isDefault=et.isDefault),et.sectionHeader!=null&&et.hasOwnProperty("sectionHeader")&&(ut.sectionHeader=et.sectionHeader),et.urlPathname!=null&&et.hasOwnProperty("urlPathname")&&(ut.urlPathname=et.urlPathname),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/AppPage"},ot})(),Arrow$2=$root.Arrow=(()=>{function ot(et){if(this.columnOrder=[],this.selectionMode=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.newBuffer([]),ot.prototype.styler=null,ot.prototype.width=0,ot.prototype.height=0,ot.prototype.useContainerWidth=!1,ot.prototype.id="",ot.prototype.columns="",ot.prototype.editingMode=0,ot.prototype.disabled=!1,ot.prototype.formId="",ot.prototype.columnOrder=$util.emptyArray,ot.prototype.selectionMode=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&ct.uint32(10).bytes(et.data),et.styler!=null&&Object.hasOwnProperty.call(et,"styler")&&$root.Styler.encode(et.styler,ct.uint32(18).fork()).ldelim(),et.width!=null&&Object.hasOwnProperty.call(et,"width")&&ct.uint32(24).uint32(et.width),et.height!=null&&Object.hasOwnProperty.call(et,"height")&&ct.uint32(32).uint32(et.height),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(40).bool(et.useContainerWidth),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(50).string(et.id),et.columns!=null&&Object.hasOwnProperty.call(et,"columns")&&ct.uint32(58).string(et.columns),et.editingMode!=null&&Object.hasOwnProperty.call(et,"editingMode")&&ct.uint32(64).int32(et.editingMode),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(72).bool(et.disabled),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(82).string(et.formId),et.columnOrder!=null&&et.columnOrder.length)for(let ut=0;ut<et.columnOrder.length;++ut)ct.uint32(90).string(et.columnOrder[ut]);if(et.selectionMode!=null&&et.selectionMode.length){ct.uint32(98).fork();for(let ut=0;ut<et.selectionMode.length;++ut)ct.int32(et.selectionMode[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Arrow;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=et.bytes();break}case 2:{dt.styler=$root.Styler.decode(et,et.uint32());break}case 3:{dt.width=et.uint32();break}case 4:{dt.height=et.uint32();break}case 5:{dt.useContainerWidth=et.bool();break}case 6:{dt.id=et.string();break}case 7:{dt.columns=et.string();break}case 8:{dt.editingMode=et.int32();break}case 9:{dt.disabled=et.bool();break}case 10:{dt.formId=et.string();break}case 11:{dt.columnOrder&&dt.columnOrder.length||(dt.columnOrder=[]),dt.columnOrder.push(et.string());break}case 12:{if(dt.selectionMode&&dt.selectionMode.length||(dt.selectionMode=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.selectionMode.push(et.int32())}else dt.selectionMode.push(et.int32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")&&!(et.data&&typeof et.data.length=="number"||$util.isString(et.data)))return"data: buffer expected";if(et.styler!=null&&et.hasOwnProperty("styler")){let ct=$root.Styler.verify(et.styler);if(ct)return"styler."+ct}if(et.width!=null&&et.hasOwnProperty("width")&&!$util.isInteger(et.width))return"width: integer expected";if(et.height!=null&&et.hasOwnProperty("height")&&!$util.isInteger(et.height))return"height: integer expected";if(et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean")return"useContainerWidth: boolean expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.columns!=null&&et.hasOwnProperty("columns")&&!$util.isString(et.columns))return"columns: string expected";if(et.editingMode!=null&&et.hasOwnProperty("editingMode"))switch(et.editingMode){default:return"editingMode: enum value expected";case 0:case 1:case 2:break}if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.columnOrder!=null&&et.hasOwnProperty("columnOrder")){if(!Array.isArray(et.columnOrder))return"columnOrder: array expected";for(let ct=0;ct<et.columnOrder.length;++ct)if(!$util.isString(et.columnOrder[ct]))return"columnOrder: string[] expected"}if(et.selectionMode!=null&&et.hasOwnProperty("selectionMode")){if(!Array.isArray(et.selectionMode))return"selectionMode: array expected";for(let ct=0;ct<et.selectionMode.length;++ct)switch(et.selectionMode[ct]){default:return"selectionMode: enum value[] expected";case 0:case 1:case 2:case 3:break}}return null},ot.fromObject=function(et){if(et instanceof $root.Arrow)return et;let ct=new $root.Arrow;if(et.data!=null&&(typeof et.data=="string"?$util.base64.decode(et.data,ct.data=$util.newBuffer($util.base64.length(et.data)),0):et.data.length>=0&&(ct.data=et.data)),et.styler!=null){if(typeof et.styler!="object")throw TypeError(".Arrow.styler: object expected");ct.styler=$root.Styler.fromObject(et.styler)}switch(et.width!=null&&(ct.width=et.width>>>0),et.height!=null&&(ct.height=et.height>>>0),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.id!=null&&(ct.id=String(et.id)),et.columns!=null&&(ct.columns=String(et.columns)),et.editingMode){default:if(typeof et.editingMode=="number"){ct.editingMode=et.editingMode;break}break;case"READ_ONLY":case 0:ct.editingMode=0;break;case"FIXED":case 1:ct.editingMode=1;break;case"DYNAMIC":case 2:ct.editingMode=2;break}if(et.disabled!=null&&(ct.disabled=!!et.disabled),et.formId!=null&&(ct.formId=String(et.formId)),et.columnOrder){if(!Array.isArray(et.columnOrder))throw TypeError(".Arrow.columnOrder: array expected");ct.columnOrder=[];for(let ut=0;ut<et.columnOrder.length;++ut)ct.columnOrder[ut]=String(et.columnOrder[ut])}if(et.selectionMode){if(!Array.isArray(et.selectionMode))throw TypeError(".Arrow.selectionMode: array expected");ct.selectionMode=[];for(let ut=0;ut<et.selectionMode.length;++ut)switch(et.selectionMode[ut]){default:if(typeof et.selectionMode[ut]=="number"){ct.selectionMode[ut]=et.selectionMode[ut];break}case"SINGLE_ROW":case 0:ct.selectionMode[ut]=0;break;case"MULTI_ROW":case 1:ct.selectionMode[ut]=1;break;case"SINGLE_COLUMN":case 2:ct.selectionMode[ut]=2;break;case"MULTI_COLUMN":case 3:ct.selectionMode[ut]=3;break}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.columnOrder=[],ut.selectionMode=[]),ct.defaults&&(ct.bytes===String?ut.data="":(ut.data=[],ct.bytes!==Array&&(ut.data=$util.newBuffer(ut.data))),ut.styler=null,ut.width=0,ut.height=0,ut.useContainerWidth=!1,ut.id="",ut.columns="",ut.editingMode=ct.enums===String?"READ_ONLY":0,ut.disabled=!1,ut.formId=""),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=ct.bytes===String?$util.base64.encode(et.data,0,et.data.length):ct.bytes===Array?Array.prototype.slice.call(et.data):et.data),et.styler!=null&&et.hasOwnProperty("styler")&&(ut.styler=$root.Styler.toObject(et.styler,ct)),et.width!=null&&et.hasOwnProperty("width")&&(ut.width=et.width),et.height!=null&&et.hasOwnProperty("height")&&(ut.height=et.height),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.columns!=null&&et.hasOwnProperty("columns")&&(ut.columns=et.columns),et.editingMode!=null&&et.hasOwnProperty("editingMode")&&(ut.editingMode=ct.enums===String?$root.Arrow.EditingMode[et.editingMode]===void 0?et.editingMode:$root.Arrow.EditingMode[et.editingMode]:et.editingMode),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.columnOrder&&et.columnOrder.length){ut.columnOrder=[];for(let dt=0;dt<et.columnOrder.length;++dt)ut.columnOrder[dt]=et.columnOrder[dt]}if(et.selectionMode&&et.selectionMode.length){ut.selectionMode=[];for(let dt=0;dt<et.selectionMode.length;++dt)ut.selectionMode[dt]=ct.enums===String?$root.Arrow.SelectionMode[et.selectionMode[dt]]===void 0?et.selectionMode[dt]:$root.Arrow.SelectionMode[et.selectionMode[dt]]:et.selectionMode[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Arrow"},ot.EditingMode=function(){const et={},ct=Object.create(et);return ct[et[0]="READ_ONLY"]=0,ct[et[1]="FIXED"]=1,ct[et[2]="DYNAMIC"]=2,ct}(),ot.SelectionMode=function(){const et={},ct=Object.create(et);return ct[et[0]="SINGLE_ROW"]=0,ct[et[1]="MULTI_ROW"]=1,ct[et[2]="SINGLE_COLUMN"]=2,ct[et[3]="MULTI_COLUMN"]=3,ct}(),ot})(),$root.Styler=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.uuid="",ot.prototype.caption="",ot.prototype.styles="",ot.prototype.displayValues=$util.newBuffer([]),ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.uuid!=null&&Object.hasOwnProperty.call(et,"uuid")&&ct.uint32(10).string(et.uuid),et.caption!=null&&Object.hasOwnProperty.call(et,"caption")&&ct.uint32(18).string(et.caption),et.styles!=null&&Object.hasOwnProperty.call(et,"styles")&&ct.uint32(26).string(et.styles),et.displayValues!=null&&Object.hasOwnProperty.call(et,"displayValues")&&ct.uint32(34).bytes(et.displayValues),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Styler;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.uuid=et.string();break}case 2:{dt.caption=et.string();break}case 3:{dt.styles=et.string();break}case 4:{dt.displayValues=et.bytes();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.uuid!=null&&et.hasOwnProperty("uuid")&&!$util.isString(et.uuid)?"uuid: string expected":et.caption!=null&&et.hasOwnProperty("caption")&&!$util.isString(et.caption)?"caption: string expected":et.styles!=null&&et.hasOwnProperty("styles")&&!$util.isString(et.styles)?"styles: string expected":et.displayValues!=null&&et.hasOwnProperty("displayValues")&&!(et.displayValues&&typeof et.displayValues.length=="number"||$util.isString(et.displayValues))?"displayValues: buffer expected":null},ot.fromObject=function(et){if(et instanceof $root.Styler)return et;let ct=new $root.Styler;return et.uuid!=null&&(ct.uuid=String(et.uuid)),et.caption!=null&&(ct.caption=String(et.caption)),et.styles!=null&&(ct.styles=String(et.styles)),et.displayValues!=null&&(typeof et.displayValues=="string"?$util.base64.decode(et.displayValues,ct.displayValues=$util.newBuffer($util.base64.length(et.displayValues)),0):et.displayValues.length>=0&&(ct.displayValues=et.displayValues)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.uuid="",ut.caption="",ut.styles="",ct.bytes===String?ut.displayValues="":(ut.displayValues=[],ct.bytes!==Array&&(ut.displayValues=$util.newBuffer(ut.displayValues)))),et.uuid!=null&&et.hasOwnProperty("uuid")&&(ut.uuid=et.uuid),et.caption!=null&&et.hasOwnProperty("caption")&&(ut.caption=et.caption),et.styles!=null&&et.hasOwnProperty("styles")&&(ut.styles=et.styles),et.displayValues!=null&&et.hasOwnProperty("displayValues")&&(ut.displayValues=ct.bytes===String?$util.base64.encode(et.displayValues,0,et.displayValues.length):ct.bytes===Array?Array.prototype.slice.call(et.displayValues):et.displayValues),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Styler"},ot})(),$root.ArrowNamedDataSet=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.name="",ot.prototype.hasName=!1,ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(10).string(et.name),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.Arrow.encode(et.data,ct.uint32(18).fork()).ldelim(),et.hasName!=null&&Object.hasOwnProperty.call(et,"hasName")&&ct.uint32(24).bool(et.hasName),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ArrowNamedDataSet;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.name=et.string();break}case 3:{dt.hasName=et.bool();break}case 2:{dt.data=$root.Arrow.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.hasName!=null&&et.hasOwnProperty("hasName")&&typeof et.hasName!="boolean")return"hasName: boolean expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.Arrow.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.ArrowNamedDataSet)return et;let ct=new $root.ArrowNamedDataSet;if(et.name!=null&&(ct.name=String(et.name)),et.hasName!=null&&(ct.hasName=!!et.hasName),et.data!=null){if(typeof et.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");ct.data=$root.Arrow.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.name="",ut.data=null,ut.hasName=!1),et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.Arrow.toObject(et.data,ct)),et.hasName!=null&&et.hasOwnProperty("hasName")&&(ut.hasName=et.hasName),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ArrowNamedDataSet"},ot})(),$root.ArrowVegaLiteChart=(()=>{function ot(et){if(this.datasets=[],this.selectionMode=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.spec="",ot.prototype.data=null,ot.prototype.datasets=$util.emptyArray,ot.prototype.useContainerWidth=!1,ot.prototype.theme="",ot.prototype.id="",ot.prototype.selectionMode=$util.emptyArray,ot.prototype.formId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.spec!=null&&Object.hasOwnProperty.call(et,"spec")&&ct.uint32(10).string(et.spec),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.Arrow.encode(et.data,ct.uint32(18).fork()).ldelim(),et.datasets!=null&&et.datasets.length)for(let ut=0;ut<et.datasets.length;++ut)$root.ArrowNamedDataSet.encode(et.datasets[ut],ct.uint32(34).fork()).ldelim();if(et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(40).bool(et.useContainerWidth),et.theme!=null&&Object.hasOwnProperty.call(et,"theme")&&ct.uint32(50).string(et.theme),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(58).string(et.id),et.selectionMode!=null&&et.selectionMode.length)for(let ut=0;ut<et.selectionMode.length;++ut)ct.uint32(66).string(et.selectionMode[ut]);return et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(74).string(et.formId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ArrowVegaLiteChart;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.spec=et.string();break}case 2:{dt.data=$root.Arrow.decode(et,et.uint32());break}case 4:{dt.datasets&&dt.datasets.length||(dt.datasets=[]),dt.datasets.push($root.ArrowNamedDataSet.decode(et,et.uint32()));break}case 5:{dt.useContainerWidth=et.bool();break}case 6:{dt.theme=et.string();break}case 7:{dt.id=et.string();break}case 8:{dt.selectionMode&&dt.selectionMode.length||(dt.selectionMode=[]),dt.selectionMode.push(et.string());break}case 9:{dt.formId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.spec!=null&&et.hasOwnProperty("spec")&&!$util.isString(et.spec))return"spec: string expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.Arrow.verify(et.data);if(ct)return"data."+ct}if(et.datasets!=null&&et.hasOwnProperty("datasets")){if(!Array.isArray(et.datasets))return"datasets: array expected";for(let ct=0;ct<et.datasets.length;++ct){let ut=$root.ArrowNamedDataSet.verify(et.datasets[ct]);if(ut)return"datasets."+ut}}if(et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean")return"useContainerWidth: boolean expected";if(et.theme!=null&&et.hasOwnProperty("theme")&&!$util.isString(et.theme))return"theme: string expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.selectionMode!=null&&et.hasOwnProperty("selectionMode")){if(!Array.isArray(et.selectionMode))return"selectionMode: array expected";for(let ct=0;ct<et.selectionMode.length;++ct)if(!$util.isString(et.selectionMode[ct]))return"selectionMode: string[] expected"}return et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId)?"formId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.ArrowVegaLiteChart)return et;let ct=new $root.ArrowVegaLiteChart;if(et.spec!=null&&(ct.spec=String(et.spec)),et.data!=null){if(typeof et.data!="object")throw TypeError(".ArrowVegaLiteChart.data: object expected");ct.data=$root.Arrow.fromObject(et.data)}if(et.datasets){if(!Array.isArray(et.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");ct.datasets=[];for(let ut=0;ut<et.datasets.length;++ut){if(typeof et.datasets[ut]!="object")throw TypeError(".ArrowVegaLiteChart.datasets: object expected");ct.datasets[ut]=$root.ArrowNamedDataSet.fromObject(et.datasets[ut])}}if(et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.theme!=null&&(ct.theme=String(et.theme)),et.id!=null&&(ct.id=String(et.id)),et.selectionMode){if(!Array.isArray(et.selectionMode))throw TypeError(".ArrowVegaLiteChart.selectionMode: array expected");ct.selectionMode=[];for(let ut=0;ut<et.selectionMode.length;++ut)ct.selectionMode[ut]=String(et.selectionMode[ut])}return et.formId!=null&&(ct.formId=String(et.formId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.datasets=[],ut.selectionMode=[]),ct.defaults&&(ut.spec="",ut.data=null,ut.useContainerWidth=!1,ut.theme="",ut.id="",ut.formId=""),et.spec!=null&&et.hasOwnProperty("spec")&&(ut.spec=et.spec),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.Arrow.toObject(et.data,ct)),et.datasets&&et.datasets.length){ut.datasets=[];for(let dt=0;dt<et.datasets.length;++dt)ut.datasets[dt]=$root.ArrowNamedDataSet.toObject(et.datasets[dt],ct)}if(et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.theme!=null&&et.hasOwnProperty("theme")&&(ut.theme=et.theme),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.selectionMode&&et.selectionMode.length){ut.selectionMode=[];for(let dt=0;dt<et.selectionMode.length;++dt)ut.selectionMode[dt]=et.selectionMode[dt]}return et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ArrowVegaLiteChart"},ot})(),$root.Audio=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.url="",ot.prototype.startTime=0,ot.prototype.endTime=0,ot.prototype.loop=!1,ot.prototype.autoplay=!1,ot.prototype.id="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.startTime!=null&&Object.hasOwnProperty.call(et,"startTime")&&ct.uint32(24).int32(et.startTime),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(42).string(et.url),et.endTime!=null&&Object.hasOwnProperty.call(et,"endTime")&&ct.uint32(48).int32(et.endTime),et.loop!=null&&Object.hasOwnProperty.call(et,"loop")&&ct.uint32(56).bool(et.loop),et.autoplay!=null&&Object.hasOwnProperty.call(et,"autoplay")&&ct.uint32(64).bool(et.autoplay),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(74).string(et.id),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Audio;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 5:{dt.url=et.string();break}case 3:{dt.startTime=et.int32();break}case 6:{dt.endTime=et.int32();break}case 7:{dt.loop=et.bool();break}case 8:{dt.autoplay=et.bool();break}case 9:{dt.id=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.startTime!=null&&et.hasOwnProperty("startTime")&&!$util.isInteger(et.startTime)?"startTime: integer expected":et.endTime!=null&&et.hasOwnProperty("endTime")&&!$util.isInteger(et.endTime)?"endTime: integer expected":et.loop!=null&&et.hasOwnProperty("loop")&&typeof et.loop!="boolean"?"loop: boolean expected":et.autoplay!=null&&et.hasOwnProperty("autoplay")&&typeof et.autoplay!="boolean"?"autoplay: boolean expected":et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id)?"id: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Audio)return et;let ct=new $root.Audio;return et.url!=null&&(ct.url=String(et.url)),et.startTime!=null&&(ct.startTime=et.startTime|0),et.endTime!=null&&(ct.endTime=et.endTime|0),et.loop!=null&&(ct.loop=!!et.loop),et.autoplay!=null&&(ct.autoplay=!!et.autoplay),et.id!=null&&(ct.id=String(et.id)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.startTime=0,ut.url="",ut.endTime=0,ut.loop=!1,ut.autoplay=!1,ut.id=""),et.startTime!=null&&et.hasOwnProperty("startTime")&&(ut.startTime=et.startTime),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.endTime!=null&&et.hasOwnProperty("endTime")&&(ut.endTime=et.endTime),et.loop!=null&&et.hasOwnProperty("loop")&&(ut.loop=et.loop),et.autoplay!=null&&et.hasOwnProperty("autoplay")&&(ut.autoplay=et.autoplay),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Audio"},ot})(),$root.AudioInput=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.help="",ot.prototype.formId="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(26).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(34).string(et.formId),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(40).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(50).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.AudioInput;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.help=et.string();break}case 4:{dt.formId=et.string();break}case 5:{dt.disabled=et.bool();break}case 6:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.AudioInput)return et;let ct=new $root.AudioInput;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.help="",ut.formId="",ut.disabled=!1,ut.labelVisibility=null),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/AudioInput"},ot})(),LabelVisibilityMessage=$root.LabelVisibilityMessage=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.value=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(8).int32(et.value),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.LabelVisibilityMessage;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.value=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.value!=null&&et.hasOwnProperty("value"))switch(et.value){default:return"value: enum value expected";case 0:case 1:case 2:break}return null},ot.fromObject=function(et){if(et instanceof $root.LabelVisibilityMessage)return et;let ct=new $root.LabelVisibilityMessage;switch(et.value){default:if(typeof et.value=="number"){ct.value=et.value;break}break;case"VISIBLE":case 0:ct.value=0;break;case"HIDDEN":case 1:ct.value=1;break;case"COLLAPSED":case 2:ct.value=2;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.value=ct.enums===String?"VISIBLE":0),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=ct.enums===String?$root.LabelVisibilityMessage.LabelVisibilityOptions[et.value]===void 0?et.value:$root.LabelVisibilityMessage.LabelVisibilityOptions[et.value]:et.value),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/LabelVisibilityMessage"},ot.LabelVisibilityOptions=function(){const et={},ct=Object.create(et);return ct[et[0]="VISIBLE"]=0,ct[et[1]="HIDDEN"]=1,ct[et[2]="COLLAPSED"]=2,ct}(),ot})(),$root.AutoRerun=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.interval=0,ot.prototype.fragmentId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.interval!=null&&Object.hasOwnProperty.call(et,"interval")&&ct.uint32(13).float(et.interval),et.fragmentId!=null&&Object.hasOwnProperty.call(et,"fragmentId")&&ct.uint32(18).string(et.fragmentId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.AutoRerun;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.interval=et.float();break}case 2:{dt.fragmentId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.interval!=null&&et.hasOwnProperty("interval")&&typeof et.interval!="number"?"interval: number expected":et.fragmentId!=null&&et.hasOwnProperty("fragmentId")&&!$util.isString(et.fragmentId)?"fragmentId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.AutoRerun)return et;let ct=new $root.AutoRerun;return et.interval!=null&&(ct.interval=Number(et.interval)),et.fragmentId!=null&&(ct.fragmentId=String(et.fragmentId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.interval=0,ut.fragmentId=""),et.interval!=null&&et.hasOwnProperty("interval")&&(ut.interval=ct.json&&!isFinite(et.interval)?String(et.interval):et.interval),et.fragmentId!=null&&et.hasOwnProperty("fragmentId")&&(ut.fragmentId=et.fragmentId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/AutoRerun"},ot})();const BackMsg=$root.BackMsg=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.clearCache=null,ot.prototype.setRunOnSave=null,ot.prototype.stopScript=null,ot.prototype.rerunScript=null,ot.prototype.loadGitInfo=null,ot.prototype.debugDisconnectWebsocket=null,ot.prototype.debugShutdownRuntime=null,ot.prototype.fileUrlsRequest=null,ot.prototype.appHeartbeat=null,ot.prototype.debugLastBackmsgId="";let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime","fileUrlsRequest","appHeartbeat"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.clearCache!=null&&Object.hasOwnProperty.call(ct,"clearCache")&&ut.uint32(40).bool(ct.clearCache),ct.setRunOnSave!=null&&Object.hasOwnProperty.call(ct,"setRunOnSave")&&ut.uint32(48).bool(ct.setRunOnSave),ct.stopScript!=null&&Object.hasOwnProperty.call(ct,"stopScript")&&ut.uint32(56).bool(ct.stopScript),ct.rerunScript!=null&&Object.hasOwnProperty.call(ct,"rerunScript")&&$root.ClientState.encode(ct.rerunScript,ut.uint32(90).fork()).ldelim(),ct.loadGitInfo!=null&&Object.hasOwnProperty.call(ct,"loadGitInfo")&&ut.uint32(96).bool(ct.loadGitInfo),ct.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(ct,"debugLastBackmsgId")&&ut.uint32(106).string(ct.debugLastBackmsgId),ct.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(ct,"debugDisconnectWebsocket")&&ut.uint32(112).bool(ct.debugDisconnectWebsocket),ct.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(ct,"debugShutdownRuntime")&&ut.uint32(120).bool(ct.debugShutdownRuntime),ct.fileUrlsRequest!=null&&Object.hasOwnProperty.call(ct,"fileUrlsRequest")&&$root.FileURLsRequest.encode(ct.fileUrlsRequest,ut.uint32(130).fork()).ldelim(),ct.appHeartbeat!=null&&Object.hasOwnProperty.call(ct,"appHeartbeat")&&ut.uint32(136).bool(ct.appHeartbeat),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.BackMsg;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 5:{ft.clearCache=ct.bool();break}case 6:{ft.setRunOnSave=ct.bool();break}case 7:{ft.stopScript=ct.bool();break}case 11:{ft.rerunScript=$root.ClientState.decode(ct,ct.uint32());break}case 12:{ft.loadGitInfo=ct.bool();break}case 14:{ft.debugDisconnectWebsocket=ct.bool();break}case 15:{ft.debugShutdownRuntime=ct.bool();break}case 16:{ft.fileUrlsRequest=$root.FileURLsRequest.decode(ct,ct.uint32());break}case 17:{ft.appHeartbeat=ct.bool();break}case 13:{ft.debugLastBackmsgId=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.clearCache!=null&&ct.hasOwnProperty("clearCache")&&(ut.type=1,typeof ct.clearCache!="boolean"))return"clearCache: boolean expected";if(ct.setRunOnSave!=null&&ct.hasOwnProperty("setRunOnSave")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.setRunOnSave!="boolean")return"setRunOnSave: boolean expected"}if(ct.stopScript!=null&&ct.hasOwnProperty("stopScript")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.stopScript!="boolean")return"stopScript: boolean expected"}if(ct.rerunScript!=null&&ct.hasOwnProperty("rerunScript")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ClientState.verify(ct.rerunScript);if(dt)return"rerunScript."+dt}}if(ct.loadGitInfo!=null&&ct.hasOwnProperty("loadGitInfo")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.loadGitInfo!="boolean")return"loadGitInfo: boolean expected"}if(ct.debugDisconnectWebsocket!=null&&ct.hasOwnProperty("debugDisconnectWebsocket")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.debugDisconnectWebsocket!="boolean")return"debugDisconnectWebsocket: boolean expected"}if(ct.debugShutdownRuntime!=null&&ct.hasOwnProperty("debugShutdownRuntime")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.debugShutdownRuntime!="boolean")return"debugShutdownRuntime: boolean expected"}if(ct.fileUrlsRequest!=null&&ct.hasOwnProperty("fileUrlsRequest")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.FileURLsRequest.verify(ct.fileUrlsRequest);if(dt)return"fileUrlsRequest."+dt}}if(ct.appHeartbeat!=null&&ct.hasOwnProperty("appHeartbeat")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.appHeartbeat!="boolean")return"appHeartbeat: boolean expected"}return ct.debugLastBackmsgId!=null&&ct.hasOwnProperty("debugLastBackmsgId")&&!$util.isString(ct.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.BackMsg)return ct;let ut=new $root.BackMsg;if(ct.clearCache!=null&&(ut.clearCache=!!ct.clearCache),ct.setRunOnSave!=null&&(ut.setRunOnSave=!!ct.setRunOnSave),ct.stopScript!=null&&(ut.stopScript=!!ct.stopScript),ct.rerunScript!=null){if(typeof ct.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");ut.rerunScript=$root.ClientState.fromObject(ct.rerunScript)}if(ct.loadGitInfo!=null&&(ut.loadGitInfo=!!ct.loadGitInfo),ct.debugDisconnectWebsocket!=null&&(ut.debugDisconnectWebsocket=!!ct.debugDisconnectWebsocket),ct.debugShutdownRuntime!=null&&(ut.debugShutdownRuntime=!!ct.debugShutdownRuntime),ct.fileUrlsRequest!=null){if(typeof ct.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");ut.fileUrlsRequest=$root.FileURLsRequest.fromObject(ct.fileUrlsRequest)}return ct.appHeartbeat!=null&&(ut.appHeartbeat=!!ct.appHeartbeat),ct.debugLastBackmsgId!=null&&(ut.debugLastBackmsgId=String(ct.debugLastBackmsgId)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.debugLastBackmsgId=""),ct.clearCache!=null&&ct.hasOwnProperty("clearCache")&&(dt.clearCache=ct.clearCache,ut.oneofs&&(dt.type="clearCache")),ct.setRunOnSave!=null&&ct.hasOwnProperty("setRunOnSave")&&(dt.setRunOnSave=ct.setRunOnSave,ut.oneofs&&(dt.type="setRunOnSave")),ct.stopScript!=null&&ct.hasOwnProperty("stopScript")&&(dt.stopScript=ct.stopScript,ut.oneofs&&(dt.type="stopScript")),ct.rerunScript!=null&&ct.hasOwnProperty("rerunScript")&&(dt.rerunScript=$root.ClientState.toObject(ct.rerunScript,ut),ut.oneofs&&(dt.type="rerunScript")),ct.loadGitInfo!=null&&ct.hasOwnProperty("loadGitInfo")&&(dt.loadGitInfo=ct.loadGitInfo,ut.oneofs&&(dt.type="loadGitInfo")),ct.debugLastBackmsgId!=null&&ct.hasOwnProperty("debugLastBackmsgId")&&(dt.debugLastBackmsgId=ct.debugLastBackmsgId),ct.debugDisconnectWebsocket!=null&&ct.hasOwnProperty("debugDisconnectWebsocket")&&(dt.debugDisconnectWebsocket=ct.debugDisconnectWebsocket,ut.oneofs&&(dt.type="debugDisconnectWebsocket")),ct.debugShutdownRuntime!=null&&ct.hasOwnProperty("debugShutdownRuntime")&&(dt.debugShutdownRuntime=ct.debugShutdownRuntime,ut.oneofs&&(dt.type="debugShutdownRuntime")),ct.fileUrlsRequest!=null&&ct.hasOwnProperty("fileUrlsRequest")&&(dt.fileUrlsRequest=$root.FileURLsRequest.toObject(ct.fileUrlsRequest,ut),ut.oneofs&&(dt.type="fileUrlsRequest")),ct.appHeartbeat!=null&&ct.hasOwnProperty("appHeartbeat")&&(dt.appHeartbeat=ct.appHeartbeat,ut.oneofs&&(dt.type="appHeartbeat")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/BackMsg"},ot})();$root.ClientState=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.queryString="",ot.prototype.widgetStates=null,ot.prototype.pageScriptHash="",ot.prototype.pageName="",ot.prototype.fragmentId="",ot.prototype.isAutoRerun=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.queryString!=null&&Object.hasOwnProperty.call(et,"queryString")&&ct.uint32(10).string(et.queryString),et.widgetStates!=null&&Object.hasOwnProperty.call(et,"widgetStates")&&$root.WidgetStates.encode(et.widgetStates,ct.uint32(18).fork()).ldelim(),et.pageScriptHash!=null&&Object.hasOwnProperty.call(et,"pageScriptHash")&&ct.uint32(26).string(et.pageScriptHash),et.pageName!=null&&Object.hasOwnProperty.call(et,"pageName")&&ct.uint32(34).string(et.pageName),et.fragmentId!=null&&Object.hasOwnProperty.call(et,"fragmentId")&&ct.uint32(42).string(et.fragmentId),et.isAutoRerun!=null&&Object.hasOwnProperty.call(et,"isAutoRerun")&&ct.uint32(48).bool(et.isAutoRerun),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ClientState;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.queryString=et.string();break}case 2:{dt.widgetStates=$root.WidgetStates.decode(et,et.uint32());break}case 3:{dt.pageScriptHash=et.string();break}case 4:{dt.pageName=et.string();break}case 5:{dt.fragmentId=et.string();break}case 6:{dt.isAutoRerun=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.queryString!=null&&et.hasOwnProperty("queryString")&&!$util.isString(et.queryString))return"queryString: string expected";if(et.widgetStates!=null&&et.hasOwnProperty("widgetStates")){let ct=$root.WidgetStates.verify(et.widgetStates);if(ct)return"widgetStates."+ct}return et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&!$util.isString(et.pageScriptHash)?"pageScriptHash: string expected":et.pageName!=null&&et.hasOwnProperty("pageName")&&!$util.isString(et.pageName)?"pageName: string expected":et.fragmentId!=null&&et.hasOwnProperty("fragmentId")&&!$util.isString(et.fragmentId)?"fragmentId: string expected":et.isAutoRerun!=null&&et.hasOwnProperty("isAutoRerun")&&typeof et.isAutoRerun!="boolean"?"isAutoRerun: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.ClientState)return et;let ct=new $root.ClientState;if(et.queryString!=null&&(ct.queryString=String(et.queryString)),et.widgetStates!=null){if(typeof et.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");ct.widgetStates=$root.WidgetStates.fromObject(et.widgetStates)}return et.pageScriptHash!=null&&(ct.pageScriptHash=String(et.pageScriptHash)),et.pageName!=null&&(ct.pageName=String(et.pageName)),et.fragmentId!=null&&(ct.fragmentId=String(et.fragmentId)),et.isAutoRerun!=null&&(ct.isAutoRerun=!!et.isAutoRerun),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.queryString="",ut.widgetStates=null,ut.pageScriptHash="",ut.pageName="",ut.fragmentId="",ut.isAutoRerun=!1),et.queryString!=null&&et.hasOwnProperty("queryString")&&(ut.queryString=et.queryString),et.widgetStates!=null&&et.hasOwnProperty("widgetStates")&&(ut.widgetStates=$root.WidgetStates.toObject(et.widgetStates,ct)),et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&(ut.pageScriptHash=et.pageScriptHash),et.pageName!=null&&et.hasOwnProperty("pageName")&&(ut.pageName=et.pageName),et.fragmentId!=null&&et.hasOwnProperty("fragmentId")&&(ut.fragmentId=et.fragmentId),et.isAutoRerun!=null&&et.hasOwnProperty("isAutoRerun")&&(ut.isAutoRerun=et.isAutoRerun),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ClientState"},ot})();const WidgetStates=$root.WidgetStates=(()=>{function ot(et){if(this.widgets=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.widgets=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.widgets!=null&&et.widgets.length)for(let ut=0;ut<et.widgets.length;++ut)$root.WidgetState.encode(et.widgets[ut],ct.uint32(10).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.WidgetStates;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.widgets&&dt.widgets.length||(dt.widgets=[]),dt.widgets.push($root.WidgetState.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.widgets!=null&&et.hasOwnProperty("widgets")){if(!Array.isArray(et.widgets))return"widgets: array expected";for(let ct=0;ct<et.widgets.length;++ct){let ut=$root.WidgetState.verify(et.widgets[ct]);if(ut)return"widgets."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.WidgetStates)return et;let ct=new $root.WidgetStates;if(et.widgets){if(!Array.isArray(et.widgets))throw TypeError(".WidgetStates.widgets: array expected");ct.widgets=[];for(let ut=0;ut<et.widgets.length;++ut){if(typeof et.widgets[ut]!="object")throw TypeError(".WidgetStates.widgets: object expected");ct.widgets[ut]=$root.WidgetState.fromObject(et.widgets[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.widgets=[]),et.widgets&&et.widgets.length){ut.widgets=[];for(let dt=0;dt<et.widgets.length;++dt)ut.widgets[dt]=$root.WidgetState.toObject(et.widgets[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/WidgetStates"},ot})(),WidgetState=$root.WidgetState=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.triggerValue=null,ot.prototype.boolValue=null,ot.prototype.doubleValue=null,ot.prototype.intValue=null,ot.prototype.stringValue=null,ot.prototype.doubleArrayValue=null,ot.prototype.intArrayValue=null,ot.prototype.stringArrayValue=null,ot.prototype.jsonValue=null,ot.prototype.arrowValue=null,ot.prototype.bytesValue=null,ot.prototype.fileUploaderStateValue=null,ot.prototype.stringTriggerValue=null;let et;return Object.defineProperty(ot.prototype,"value",{get:$util.oneOfGetter(et=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue","stringTriggerValue"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.triggerValue!=null&&Object.hasOwnProperty.call(ct,"triggerValue")&&ut.uint32(16).bool(ct.triggerValue),ct.boolValue!=null&&Object.hasOwnProperty.call(ct,"boolValue")&&ut.uint32(24).bool(ct.boolValue),ct.doubleValue!=null&&Object.hasOwnProperty.call(ct,"doubleValue")&&ut.uint32(33).double(ct.doubleValue),ct.intValue!=null&&Object.hasOwnProperty.call(ct,"intValue")&&ut.uint32(40).sint64(ct.intValue),ct.stringValue!=null&&Object.hasOwnProperty.call(ct,"stringValue")&&ut.uint32(50).string(ct.stringValue),ct.doubleArrayValue!=null&&Object.hasOwnProperty.call(ct,"doubleArrayValue")&&$root.DoubleArray.encode(ct.doubleArrayValue,ut.uint32(58).fork()).ldelim(),ct.intArrayValue!=null&&Object.hasOwnProperty.call(ct,"intArrayValue")&&$root.SInt64Array.encode(ct.intArrayValue,ut.uint32(66).fork()).ldelim(),ct.stringArrayValue!=null&&Object.hasOwnProperty.call(ct,"stringArrayValue")&&$root.StringArray.encode(ct.stringArrayValue,ut.uint32(74).fork()).ldelim(),ct.jsonValue!=null&&Object.hasOwnProperty.call(ct,"jsonValue")&&ut.uint32(82).string(ct.jsonValue),ct.arrowValue!=null&&Object.hasOwnProperty.call(ct,"arrowValue")&&$root.ArrowTable.encode(ct.arrowValue,ut.uint32(90).fork()).ldelim(),ct.bytesValue!=null&&Object.hasOwnProperty.call(ct,"bytesValue")&&ut.uint32(98).bytes(ct.bytesValue),ct.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(ct,"fileUploaderStateValue")&&$root.FileUploaderState.encode(ct.fileUploaderStateValue,ut.uint32(106).fork()).ldelim(),ct.stringTriggerValue!=null&&Object.hasOwnProperty.call(ct,"stringTriggerValue")&&$root.StringTriggerValue.encode(ct.stringTriggerValue,ut.uint32(114).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.WidgetState;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.triggerValue=ct.bool();break}case 3:{ft.boolValue=ct.bool();break}case 4:{ft.doubleValue=ct.double();break}case 5:{ft.intValue=ct.sint64();break}case 6:{ft.stringValue=ct.string();break}case 7:{ft.doubleArrayValue=$root.DoubleArray.decode(ct,ct.uint32());break}case 8:{ft.intArrayValue=$root.SInt64Array.decode(ct,ct.uint32());break}case 9:{ft.stringArrayValue=$root.StringArray.decode(ct,ct.uint32());break}case 10:{ft.jsonValue=ct.string();break}case 11:{ft.arrowValue=$root.ArrowTable.decode(ct,ct.uint32());break}case 12:{ft.bytesValue=ct.bytes();break}case 13:{ft.fileUploaderStateValue=$root.FileUploaderState.decode(ct,ct.uint32());break}case 14:{ft.stringTriggerValue=$root.StringTriggerValue.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.triggerValue!=null&&ct.hasOwnProperty("triggerValue")&&(ut.value=1,typeof ct.triggerValue!="boolean"))return"triggerValue: boolean expected";if(ct.boolValue!=null&&ct.hasOwnProperty("boolValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,typeof ct.boolValue!="boolean")return"boolValue: boolean expected"}if(ct.doubleValue!=null&&ct.hasOwnProperty("doubleValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,typeof ct.doubleValue!="number")return"doubleValue: number expected"}if(ct.intValue!=null&&ct.hasOwnProperty("intValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,!$util.isInteger(ct.intValue)&&!(ct.intValue&&$util.isInteger(ct.intValue.low)&&$util.isInteger(ct.intValue.high)))return"intValue: integer|Long expected"}if(ct.stringValue!=null&&ct.hasOwnProperty("stringValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,!$util.isString(ct.stringValue))return"stringValue: string expected"}if(ct.doubleArrayValue!=null&&ct.hasOwnProperty("doubleArrayValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.DoubleArray.verify(ct.doubleArrayValue);if(dt)return"doubleArrayValue."+dt}}if(ct.intArrayValue!=null&&ct.hasOwnProperty("intArrayValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.SInt64Array.verify(ct.intArrayValue);if(dt)return"intArrayValue."+dt}}if(ct.stringArrayValue!=null&&ct.hasOwnProperty("stringArrayValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.StringArray.verify(ct.stringArrayValue);if(dt)return"stringArrayValue."+dt}}if(ct.jsonValue!=null&&ct.hasOwnProperty("jsonValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,!$util.isString(ct.jsonValue))return"jsonValue: string expected"}if(ct.arrowValue!=null&&ct.hasOwnProperty("arrowValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.ArrowTable.verify(ct.arrowValue);if(dt)return"arrowValue."+dt}}if(ct.bytesValue!=null&&ct.hasOwnProperty("bytesValue")){if(ut.value===1)return"value: multiple values";if(ut.value=1,!(ct.bytesValue&&typeof ct.bytesValue.length=="number"||$util.isString(ct.bytesValue)))return"bytesValue: buffer expected"}if(ct.fileUploaderStateValue!=null&&ct.hasOwnProperty("fileUploaderStateValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.FileUploaderState.verify(ct.fileUploaderStateValue);if(dt)return"fileUploaderStateValue."+dt}}if(ct.stringTriggerValue!=null&&ct.hasOwnProperty("stringTriggerValue")){if(ut.value===1)return"value: multiple values";ut.value=1;{let dt=$root.StringTriggerValue.verify(ct.stringTriggerValue);if(dt)return"stringTriggerValue."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.WidgetState)return ct;let ut=new $root.WidgetState;if(ct.id!=null&&(ut.id=String(ct.id)),ct.triggerValue!=null&&(ut.triggerValue=!!ct.triggerValue),ct.boolValue!=null&&(ut.boolValue=!!ct.boolValue),ct.doubleValue!=null&&(ut.doubleValue=Number(ct.doubleValue)),ct.intValue!=null&&($util.Long?(ut.intValue=$util.Long.fromValue(ct.intValue)).unsigned=!1:typeof ct.intValue=="string"?ut.intValue=parseInt(ct.intValue,10):typeof ct.intValue=="number"?ut.intValue=ct.intValue:typeof ct.intValue=="object"&&(ut.intValue=new $util.LongBits(ct.intValue.low>>>0,ct.intValue.high>>>0).toNumber())),ct.stringValue!=null&&(ut.stringValue=String(ct.stringValue)),ct.doubleArrayValue!=null){if(typeof ct.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");ut.doubleArrayValue=$root.DoubleArray.fromObject(ct.doubleArrayValue)}if(ct.intArrayValue!=null){if(typeof ct.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");ut.intArrayValue=$root.SInt64Array.fromObject(ct.intArrayValue)}if(ct.stringArrayValue!=null){if(typeof ct.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");ut.stringArrayValue=$root.StringArray.fromObject(ct.stringArrayValue)}if(ct.jsonValue!=null&&(ut.jsonValue=String(ct.jsonValue)),ct.arrowValue!=null){if(typeof ct.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");ut.arrowValue=$root.ArrowTable.fromObject(ct.arrowValue)}if(ct.bytesValue!=null&&(typeof ct.bytesValue=="string"?$util.base64.decode(ct.bytesValue,ut.bytesValue=$util.newBuffer($util.base64.length(ct.bytesValue)),0):ct.bytesValue.length>=0&&(ut.bytesValue=ct.bytesValue)),ct.fileUploaderStateValue!=null){if(typeof ct.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");ut.fileUploaderStateValue=$root.FileUploaderState.fromObject(ct.fileUploaderStateValue)}if(ct.stringTriggerValue!=null){if(typeof ct.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");ut.stringTriggerValue=$root.StringTriggerValue.fromObject(ct.stringTriggerValue)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.id=""),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.triggerValue!=null&&ct.hasOwnProperty("triggerValue")&&(dt.triggerValue=ct.triggerValue,ut.oneofs&&(dt.value="triggerValue")),ct.boolValue!=null&&ct.hasOwnProperty("boolValue")&&(dt.boolValue=ct.boolValue,ut.oneofs&&(dt.value="boolValue")),ct.doubleValue!=null&&ct.hasOwnProperty("doubleValue")&&(dt.doubleValue=ut.json&&!isFinite(ct.doubleValue)?String(ct.doubleValue):ct.doubleValue,ut.oneofs&&(dt.value="doubleValue")),ct.intValue!=null&&ct.hasOwnProperty("intValue")&&(typeof ct.intValue=="number"?dt.intValue=ut.longs===String?String(ct.intValue):ct.intValue:dt.intValue=ut.longs===String?$util.Long.prototype.toString.call(ct.intValue):ut.longs===Number?new $util.LongBits(ct.intValue.low>>>0,ct.intValue.high>>>0).toNumber():ct.intValue,ut.oneofs&&(dt.value="intValue")),ct.stringValue!=null&&ct.hasOwnProperty("stringValue")&&(dt.stringValue=ct.stringValue,ut.oneofs&&(dt.value="stringValue")),ct.doubleArrayValue!=null&&ct.hasOwnProperty("doubleArrayValue")&&(dt.doubleArrayValue=$root.DoubleArray.toObject(ct.doubleArrayValue,ut),ut.oneofs&&(dt.value="doubleArrayValue")),ct.intArrayValue!=null&&ct.hasOwnProperty("intArrayValue")&&(dt.intArrayValue=$root.SInt64Array.toObject(ct.intArrayValue,ut),ut.oneofs&&(dt.value="intArrayValue")),ct.stringArrayValue!=null&&ct.hasOwnProperty("stringArrayValue")&&(dt.stringArrayValue=$root.StringArray.toObject(ct.stringArrayValue,ut),ut.oneofs&&(dt.value="stringArrayValue")),ct.jsonValue!=null&&ct.hasOwnProperty("jsonValue")&&(dt.jsonValue=ct.jsonValue,ut.oneofs&&(dt.value="jsonValue")),ct.arrowValue!=null&&ct.hasOwnProperty("arrowValue")&&(dt.arrowValue=$root.ArrowTable.toObject(ct.arrowValue,ut),ut.oneofs&&(dt.value="arrowValue")),ct.bytesValue!=null&&ct.hasOwnProperty("bytesValue")&&(dt.bytesValue=ut.bytes===String?$util.base64.encode(ct.bytesValue,0,ct.bytesValue.length):ut.bytes===Array?Array.prototype.slice.call(ct.bytesValue):ct.bytesValue,ut.oneofs&&(dt.value="bytesValue")),ct.fileUploaderStateValue!=null&&ct.hasOwnProperty("fileUploaderStateValue")&&(dt.fileUploaderStateValue=$root.FileUploaderState.toObject(ct.fileUploaderStateValue,ut),ut.oneofs&&(dt.value="fileUploaderStateValue")),ct.stringTriggerValue!=null&&ct.hasOwnProperty("stringTriggerValue")&&(dt.stringTriggerValue=$root.StringTriggerValue.toObject(ct.stringTriggerValue,ut),ut.oneofs&&(dt.value="stringTriggerValue")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/WidgetState"},ot})(),StringArray=$root.StringArray=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length)for(let ut=0;ut<et.data.length;++ut)ct.uint32(10).string(et.data[ut]);return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.StringArray;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data&&dt.data.length||(dt.data=[]),dt.data.push(et.string());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(!$util.isString(et.data[ct]))return"data: string[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.StringArray)return et;let ct=new $root.StringArray;if(et.data){if(!Array.isArray(et.data))throw TypeError(".StringArray.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)ct.data[ut]=String(et.data[ut])}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)ut.data[dt]=et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/StringArray"},ot})(),DoubleArray=$root.DoubleArray=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length){ct.uint32(10).fork();for(let ut=0;ut<et.data.length;++ut)ct.double(et.data[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DoubleArray;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{if(dt.data&&dt.data.length||(dt.data=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.data.push(et.double())}else dt.data.push(et.double());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(typeof et.data[ct]!="number")return"data: number[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.DoubleArray)return et;let ct=new $root.DoubleArray;if(et.data){if(!Array.isArray(et.data))throw TypeError(".DoubleArray.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)ct.data[ut]=Number(et.data[ut])}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)ut.data[dt]=ct.json&&!isFinite(et.data[dt])?String(et.data[dt]):et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DoubleArray"},ot})();$root.Int32Array=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length){ct.uint32(10).fork();for(let ut=0;ut<et.data.length;++ut)ct.int32(et.data[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Int32Array;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{if(dt.data&&dt.data.length||(dt.data=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.data.push(et.int32())}else dt.data.push(et.int32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(!$util.isInteger(et.data[ct]))return"data: integer[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.Int32Array)return et;let ct=new $root.Int32Array;if(et.data){if(!Array.isArray(et.data))throw TypeError(".Int32Array.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)ct.data[ut]=et.data[ut]|0}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)ut.data[dt]=et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Int32Array"},ot})(),$root.Int64Array=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length){ct.uint32(10).fork();for(let ut=0;ut<et.data.length;++ut)ct.int64(et.data[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Int64Array;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{if(dt.data&&dt.data.length||(dt.data=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.data.push(et.int64())}else dt.data.push(et.int64());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(!$util.isInteger(et.data[ct])&&!(et.data[ct]&&$util.isInteger(et.data[ct].low)&&$util.isInteger(et.data[ct].high)))return"data: integer|Long[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.Int64Array)return et;let ct=new $root.Int64Array;if(et.data){if(!Array.isArray(et.data))throw TypeError(".Int64Array.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)$util.Long?(ct.data[ut]=$util.Long.fromValue(et.data[ut])).unsigned=!1:typeof et.data[ut]=="string"?ct.data[ut]=parseInt(et.data[ut],10):typeof et.data[ut]=="number"?ct.data[ut]=et.data[ut]:typeof et.data[ut]=="object"&&(ct.data[ut]=new $util.LongBits(et.data[ut].low>>>0,et.data[ut].high>>>0).toNumber())}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)typeof et.data[dt]=="number"?ut.data[dt]=ct.longs===String?String(et.data[dt]):et.data[dt]:ut.data[dt]=ct.longs===String?$util.Long.prototype.toString.call(et.data[dt]):ct.longs===Number?new $util.LongBits(et.data[dt].low>>>0,et.data[dt].high>>>0).toNumber():et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Int64Array"},ot})();const SInt64Array=$root.SInt64Array=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length){ct.uint32(10).fork();for(let ut=0;ut<et.data.length;++ut)ct.sint64(et.data[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.SInt64Array;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{if(dt.data&&dt.data.length||(dt.data=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.data.push(et.sint64())}else dt.data.push(et.sint64());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(!$util.isInteger(et.data[ct])&&!(et.data[ct]&&$util.isInteger(et.data[ct].low)&&$util.isInteger(et.data[ct].high)))return"data: integer|Long[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.SInt64Array)return et;let ct=new $root.SInt64Array;if(et.data){if(!Array.isArray(et.data))throw TypeError(".SInt64Array.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)$util.Long?(ct.data[ut]=$util.Long.fromValue(et.data[ut])).unsigned=!1:typeof et.data[ut]=="string"?ct.data[ut]=parseInt(et.data[ut],10):typeof et.data[ut]=="number"?ct.data[ut]=et.data[ut]:typeof et.data[ut]=="object"&&(ct.data[ut]=new $util.LongBits(et.data[ut].low>>>0,et.data[ut].high>>>0).toNumber())}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)typeof et.data[dt]=="number"?ut.data[dt]=ct.longs===String?String(et.data[dt]):et.data[dt]:ut.data[dt]=ct.longs===String?$util.Long.prototype.toString.call(et.data[dt]):ct.longs===Number?new $util.LongBits(et.data[dt].low>>>0,et.data[dt].high>>>0).toNumber():et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/SInt64Array"},ot})();$root.UInt32Array=(()=>{function ot(et){if(this.data=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.data!=null&&et.data.length){ct.uint32(10).fork();for(let ut=0;ut<et.data.length;++ut)ct.uint32(et.data[ut]);ct.ldelim()}return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.UInt32Array;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{if(dt.data&&dt.data.length||(dt.data=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.data.push(et.uint32())}else dt.data.push(et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){if(!Array.isArray(et.data))return"data: array expected";for(let ct=0;ct<et.data.length;++ct)if(!$util.isInteger(et.data[ct]))return"data: integer[] expected"}return null},ot.fromObject=function(et){if(et instanceof $root.UInt32Array)return et;let ct=new $root.UInt32Array;if(et.data){if(!Array.isArray(et.data))throw TypeError(".UInt32Array.data: array expected");ct.data=[];for(let ut=0;ut<et.data.length;++ut)ct.data[ut]=et.data[ut]>>>0}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.data=[]),et.data&&et.data.length){ut.data=[];for(let dt=0;dt<et.data.length;++dt)ut.data[dt]=et.data[dt]}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/UInt32Array"},ot})();const StringTriggerValue=$root.StringTriggerValue=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.data=null;let et;return Object.defineProperty(ot.prototype,"_data",{get:$util.oneOfGetter(et=["data"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.data!=null&&Object.hasOwnProperty.call(ct,"data")&&ut.uint32(10).string(ct.data),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.StringTriggerValue;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.data=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){return typeof ct!="object"||ct===null?"object expected":ct.data!=null&&ct.hasOwnProperty("data")&&!$util.isString(ct.data)?"data: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.StringTriggerValue)return ct;let ut=new $root.StringTriggerValue;return ct.data!=null&&(ut.data=String(ct.data)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ct.data!=null&&ct.hasOwnProperty("data")&&(dt.data=ct.data,ut.oneofs&&(dt._data="data")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/StringTriggerValue"},ot})();$root.FileURLsRequest=(()=>{function ot(et){if(this.fileNames=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.requestId="",ot.prototype.fileNames=$util.emptyArray,ot.prototype.sessionId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.requestId!=null&&Object.hasOwnProperty.call(et,"requestId")&&ct.uint32(10).string(et.requestId),et.fileNames!=null&&et.fileNames.length)for(let ut=0;ut<et.fileNames.length;++ut)ct.uint32(18).string(et.fileNames[ut]);return et.sessionId!=null&&Object.hasOwnProperty.call(et,"sessionId")&&ct.uint32(26).string(et.sessionId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FileURLsRequest;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.requestId=et.string();break}case 2:{dt.fileNames&&dt.fileNames.length||(dt.fileNames=[]),dt.fileNames.push(et.string());break}case 3:{dt.sessionId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.requestId!=null&&et.hasOwnProperty("requestId")&&!$util.isString(et.requestId))return"requestId: string expected";if(et.fileNames!=null&&et.hasOwnProperty("fileNames")){if(!Array.isArray(et.fileNames))return"fileNames: array expected";for(let ct=0;ct<et.fileNames.length;++ct)if(!$util.isString(et.fileNames[ct]))return"fileNames: string[] expected"}return et.sessionId!=null&&et.hasOwnProperty("sessionId")&&!$util.isString(et.sessionId)?"sessionId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.FileURLsRequest)return et;let ct=new $root.FileURLsRequest;if(et.requestId!=null&&(ct.requestId=String(et.requestId)),et.fileNames){if(!Array.isArray(et.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");ct.fileNames=[];for(let ut=0;ut<et.fileNames.length;++ut)ct.fileNames[ut]=String(et.fileNames[ut])}return et.sessionId!=null&&(ct.sessionId=String(et.sessionId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.fileNames=[]),ct.defaults&&(ut.requestId="",ut.sessionId=""),et.requestId!=null&&et.hasOwnProperty("requestId")&&(ut.requestId=et.requestId),et.fileNames&&et.fileNames.length){ut.fileNames=[];for(let dt=0;dt<et.fileNames.length;++dt)ut.fileNames[dt]=et.fileNames[dt]}return et.sessionId!=null&&et.hasOwnProperty("sessionId")&&(ut.sessionId=et.sessionId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FileURLsRequest"},ot})(),$root.FileURLs=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.fileId="",ot.prototype.uploadUrl="",ot.prototype.deleteUrl="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.fileId!=null&&Object.hasOwnProperty.call(et,"fileId")&&ct.uint32(10).string(et.fileId),et.uploadUrl!=null&&Object.hasOwnProperty.call(et,"uploadUrl")&&ct.uint32(18).string(et.uploadUrl),et.deleteUrl!=null&&Object.hasOwnProperty.call(et,"deleteUrl")&&ct.uint32(26).string(et.deleteUrl),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FileURLs;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.fileId=et.string();break}case 2:{dt.uploadUrl=et.string();break}case 3:{dt.deleteUrl=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.fileId!=null&&et.hasOwnProperty("fileId")&&!$util.isString(et.fileId)?"fileId: string expected":et.uploadUrl!=null&&et.hasOwnProperty("uploadUrl")&&!$util.isString(et.uploadUrl)?"uploadUrl: string expected":et.deleteUrl!=null&&et.hasOwnProperty("deleteUrl")&&!$util.isString(et.deleteUrl)?"deleteUrl: string expected":null},ot.fromObject=function(et){if(et instanceof $root.FileURLs)return et;let ct=new $root.FileURLs;return et.fileId!=null&&(ct.fileId=String(et.fileId)),et.uploadUrl!=null&&(ct.uploadUrl=String(et.uploadUrl)),et.deleteUrl!=null&&(ct.deleteUrl=String(et.deleteUrl)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.fileId="",ut.uploadUrl="",ut.deleteUrl=""),et.fileId!=null&&et.hasOwnProperty("fileId")&&(ut.fileId=et.fileId),et.uploadUrl!=null&&et.hasOwnProperty("uploadUrl")&&(ut.uploadUrl=et.uploadUrl),et.deleteUrl!=null&&et.hasOwnProperty("deleteUrl")&&(ut.deleteUrl=et.deleteUrl),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FileURLs"},ot})(),$root.FileURLsResponse=(()=>{function ot(et){if(this.fileUrls=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.responseId="",ot.prototype.fileUrls=$util.emptyArray,ot.prototype.errorMsg="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.responseId!=null&&Object.hasOwnProperty.call(et,"responseId")&&ct.uint32(10).string(et.responseId),et.fileUrls!=null&&et.fileUrls.length)for(let ut=0;ut<et.fileUrls.length;++ut)$root.FileURLs.encode(et.fileUrls[ut],ct.uint32(18).fork()).ldelim();return et.errorMsg!=null&&Object.hasOwnProperty.call(et,"errorMsg")&&ct.uint32(26).string(et.errorMsg),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FileURLsResponse;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.responseId=et.string();break}case 2:{dt.fileUrls&&dt.fileUrls.length||(dt.fileUrls=[]),dt.fileUrls.push($root.FileURLs.decode(et,et.uint32()));break}case 3:{dt.errorMsg=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.responseId!=null&&et.hasOwnProperty("responseId")&&!$util.isString(et.responseId))return"responseId: string expected";if(et.fileUrls!=null&&et.hasOwnProperty("fileUrls")){if(!Array.isArray(et.fileUrls))return"fileUrls: array expected";for(let ct=0;ct<et.fileUrls.length;++ct){let ut=$root.FileURLs.verify(et.fileUrls[ct]);if(ut)return"fileUrls."+ut}}return et.errorMsg!=null&&et.hasOwnProperty("errorMsg")&&!$util.isString(et.errorMsg)?"errorMsg: string expected":null},ot.fromObject=function(et){if(et instanceof $root.FileURLsResponse)return et;let ct=new $root.FileURLsResponse;if(et.responseId!=null&&(ct.responseId=String(et.responseId)),et.fileUrls){if(!Array.isArray(et.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");ct.fileUrls=[];for(let ut=0;ut<et.fileUrls.length;++ut){if(typeof et.fileUrls[ut]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");ct.fileUrls[ut]=$root.FileURLs.fromObject(et.fileUrls[ut])}}return et.errorMsg!=null&&(ct.errorMsg=String(et.errorMsg)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.fileUrls=[]),ct.defaults&&(ut.responseId="",ut.errorMsg=""),et.responseId!=null&&et.hasOwnProperty("responseId")&&(ut.responseId=et.responseId),et.fileUrls&&et.fileUrls.length){ut.fileUrls=[];for(let dt=0;dt<et.fileUrls.length;++dt)ut.fileUrls[dt]=$root.FileURLs.toObject(et.fileUrls[dt],ct)}return et.errorMsg!=null&&et.hasOwnProperty("errorMsg")&&(ut.errorMsg=et.errorMsg),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FileURLsResponse"},ot})(),UploadedFileInfo=$root.UploadedFileInfo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.name="",ot.prototype.size=$util.Long?$util.Long.fromBits(0,0,!0):0,ot.prototype.fileId="",ot.prototype.fileUrls=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(8).sint64(et.id),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(18).string(et.name),et.size!=null&&Object.hasOwnProperty.call(et,"size")&&ct.uint32(24).uint64(et.size),et.fileId!=null&&Object.hasOwnProperty.call(et,"fileId")&&ct.uint32(34).string(et.fileId),et.fileUrls!=null&&Object.hasOwnProperty.call(et,"fileUrls")&&$root.FileURLs.encode(et.fileUrls,ct.uint32(42).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.UploadedFileInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.sint64();break}case 2:{dt.name=et.string();break}case 3:{dt.size=et.uint64();break}case 4:{dt.fileId=et.string();break}case 5:{dt.fileUrls=$root.FileURLs.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isInteger(et.id)&&!(et.id&&$util.isInteger(et.id.low)&&$util.isInteger(et.id.high)))return"id: integer|Long expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.size!=null&&et.hasOwnProperty("size")&&!$util.isInteger(et.size)&&!(et.size&&$util.isInteger(et.size.low)&&$util.isInteger(et.size.high)))return"size: integer|Long expected";if(et.fileId!=null&&et.hasOwnProperty("fileId")&&!$util.isString(et.fileId))return"fileId: string expected";if(et.fileUrls!=null&&et.hasOwnProperty("fileUrls")){let ct=$root.FileURLs.verify(et.fileUrls);if(ct)return"fileUrls."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.UploadedFileInfo)return et;let ct=new $root.UploadedFileInfo;if(et.id!=null&&($util.Long?(ct.id=$util.Long.fromValue(et.id)).unsigned=!1:typeof et.id=="string"?ct.id=parseInt(et.id,10):typeof et.id=="number"?ct.id=et.id:typeof et.id=="object"&&(ct.id=new $util.LongBits(et.id.low>>>0,et.id.high>>>0).toNumber())),et.name!=null&&(ct.name=String(et.name)),et.size!=null&&($util.Long?(ct.size=$util.Long.fromValue(et.size)).unsigned=!0:typeof et.size=="string"?ct.size=parseInt(et.size,10):typeof et.size=="number"?ct.size=et.size:typeof et.size=="object"&&(ct.size=new $util.LongBits(et.size.low>>>0,et.size.high>>>0).toNumber(!0))),et.fileId!=null&&(ct.fileId=String(et.fileId)),et.fileUrls!=null){if(typeof et.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");ct.fileUrls=$root.FileURLs.fromObject(et.fileUrls)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if(ct.defaults){if($util.Long){let dt=new $util.Long(0,0,!1);ut.id=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.id=ct.longs===String?"0":0;if(ut.name="",$util.Long){let dt=new $util.Long(0,0,!0);ut.size=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.size=ct.longs===String?"0":0;ut.fileId="",ut.fileUrls=null}return et.id!=null&&et.hasOwnProperty("id")&&(typeof et.id=="number"?ut.id=ct.longs===String?String(et.id):et.id:ut.id=ct.longs===String?$util.Long.prototype.toString.call(et.id):ct.longs===Number?new $util.LongBits(et.id.low>>>0,et.id.high>>>0).toNumber():et.id),et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.size!=null&&et.hasOwnProperty("size")&&(typeof et.size=="number"?ut.size=ct.longs===String?String(et.size):et.size:ut.size=ct.longs===String?$util.Long.prototype.toString.call(et.size):ct.longs===Number?new $util.LongBits(et.size.low>>>0,et.size.high>>>0).toNumber(!0):et.size),et.fileId!=null&&et.hasOwnProperty("fileId")&&(ut.fileId=et.fileId),et.fileUrls!=null&&et.hasOwnProperty("fileUrls")&&(ut.fileUrls=$root.FileURLs.toObject(et.fileUrls,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/UploadedFileInfo"},ot})(),FileUploaderState=$root.FileUploaderState=(()=>{function ot(et){if(this.uploadedFileInfo=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.maxFileId=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.uploadedFileInfo=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.maxFileId!=null&&Object.hasOwnProperty.call(et,"maxFileId")&&ct.uint32(8).sint64(et.maxFileId),et.uploadedFileInfo!=null&&et.uploadedFileInfo.length)for(let ut=0;ut<et.uploadedFileInfo.length;++ut)$root.UploadedFileInfo.encode(et.uploadedFileInfo[ut],ct.uint32(18).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FileUploaderState;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.maxFileId=et.sint64();break}case 2:{dt.uploadedFileInfo&&dt.uploadedFileInfo.length||(dt.uploadedFileInfo=[]),dt.uploadedFileInfo.push($root.UploadedFileInfo.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.maxFileId!=null&&et.hasOwnProperty("maxFileId")&&!$util.isInteger(et.maxFileId)&&!(et.maxFileId&&$util.isInteger(et.maxFileId.low)&&$util.isInteger(et.maxFileId.high)))return"maxFileId: integer|Long expected";if(et.uploadedFileInfo!=null&&et.hasOwnProperty("uploadedFileInfo")){if(!Array.isArray(et.uploadedFileInfo))return"uploadedFileInfo: array expected";for(let ct=0;ct<et.uploadedFileInfo.length;++ct){let ut=$root.UploadedFileInfo.verify(et.uploadedFileInfo[ct]);if(ut)return"uploadedFileInfo."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.FileUploaderState)return et;let ct=new $root.FileUploaderState;if(et.maxFileId!=null&&($util.Long?(ct.maxFileId=$util.Long.fromValue(et.maxFileId)).unsigned=!1:typeof et.maxFileId=="string"?ct.maxFileId=parseInt(et.maxFileId,10):typeof et.maxFileId=="number"?ct.maxFileId=et.maxFileId:typeof et.maxFileId=="object"&&(ct.maxFileId=new $util.LongBits(et.maxFileId.low>>>0,et.maxFileId.high>>>0).toNumber())),et.uploadedFileInfo){if(!Array.isArray(et.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");ct.uploadedFileInfo=[];for(let ut=0;ut<et.uploadedFileInfo.length;++ut){if(typeof et.uploadedFileInfo[ut]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");ct.uploadedFileInfo[ut]=$root.UploadedFileInfo.fromObject(et.uploadedFileInfo[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.uploadedFileInfo=[]),ct.defaults)if($util.Long){let dt=new $util.Long(0,0,!1);ut.maxFileId=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.maxFileId=ct.longs===String?"0":0;if(et.maxFileId!=null&&et.hasOwnProperty("maxFileId")&&(typeof et.maxFileId=="number"?ut.maxFileId=ct.longs===String?String(et.maxFileId):et.maxFileId:ut.maxFileId=ct.longs===String?$util.Long.prototype.toString.call(et.maxFileId):ct.longs===Number?new $util.LongBits(et.maxFileId.low>>>0,et.maxFileId.high>>>0).toNumber():et.maxFileId),et.uploadedFileInfo&&et.uploadedFileInfo.length){ut.uploadedFileInfo=[];for(let dt=0;dt<et.uploadedFileInfo.length;++dt)ut.uploadedFileInfo[dt]=$root.UploadedFileInfo.toObject(et.uploadedFileInfo[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FileUploaderState"},ot})(),$root.ComponentInstance=(()=>{function ot(et){if(this.specialArgs=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.jsonArgs="",ot.prototype.specialArgs=$util.emptyArray,ot.prototype.componentName="",ot.prototype.url="",ot.prototype.formId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.jsonArgs!=null&&Object.hasOwnProperty.call(et,"jsonArgs")&&ct.uint32(18).string(et.jsonArgs),et.specialArgs!=null&&et.specialArgs.length)for(let ut=0;ut<et.specialArgs.length;++ut)$root.SpecialArg.encode(et.specialArgs[ut],ct.uint32(26).fork()).ldelim();return et.componentName!=null&&Object.hasOwnProperty.call(et,"componentName")&&ct.uint32(34).string(et.componentName),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(42).string(et.url),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(50).string(et.formId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ComponentInstance;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.jsonArgs=et.string();break}case 3:{dt.specialArgs&&dt.specialArgs.length||(dt.specialArgs=[]),dt.specialArgs.push($root.SpecialArg.decode(et,et.uint32()));break}case 4:{dt.componentName=et.string();break}case 5:{dt.url=et.string();break}case 6:{dt.formId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.jsonArgs!=null&&et.hasOwnProperty("jsonArgs")&&!$util.isString(et.jsonArgs))return"jsonArgs: string expected";if(et.specialArgs!=null&&et.hasOwnProperty("specialArgs")){if(!Array.isArray(et.specialArgs))return"specialArgs: array expected";for(let ct=0;ct<et.specialArgs.length;++ct){let ut=$root.SpecialArg.verify(et.specialArgs[ct]);if(ut)return"specialArgs."+ut}}return et.componentName!=null&&et.hasOwnProperty("componentName")&&!$util.isString(et.componentName)?"componentName: string expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId)?"formId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.ComponentInstance)return et;let ct=new $root.ComponentInstance;if(et.id!=null&&(ct.id=String(et.id)),et.jsonArgs!=null&&(ct.jsonArgs=String(et.jsonArgs)),et.specialArgs){if(!Array.isArray(et.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");ct.specialArgs=[];for(let ut=0;ut<et.specialArgs.length;++ut){if(typeof et.specialArgs[ut]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");ct.specialArgs[ut]=$root.SpecialArg.fromObject(et.specialArgs[ut])}}return et.componentName!=null&&(ct.componentName=String(et.componentName)),et.url!=null&&(ct.url=String(et.url)),et.formId!=null&&(ct.formId=String(et.formId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.specialArgs=[]),ct.defaults&&(ut.id="",ut.jsonArgs="",ut.componentName="",ut.url="",ut.formId=""),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.jsonArgs!=null&&et.hasOwnProperty("jsonArgs")&&(ut.jsonArgs=et.jsonArgs),et.specialArgs&&et.specialArgs.length){ut.specialArgs=[];for(let dt=0;dt<et.specialArgs.length;++dt)ut.specialArgs[dt]=$root.SpecialArg.toObject(et.specialArgs[dt],ct)}return et.componentName!=null&&et.hasOwnProperty("componentName")&&(ut.componentName=et.componentName),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ComponentInstance"},ot})(),$root.SpecialArg=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.key="",ot.prototype.arrowDataframe=null,ot.prototype.bytes=null;let et;return Object.defineProperty(ot.prototype,"value",{get:$util.oneOfGetter(et=["arrowDataframe","bytes"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.key!=null&&Object.hasOwnProperty.call(ct,"key")&&ut.uint32(10).string(ct.key),ct.arrowDataframe!=null&&Object.hasOwnProperty.call(ct,"arrowDataframe")&&$root.ArrowDataframe.encode(ct.arrowDataframe,ut.uint32(18).fork()).ldelim(),ct.bytes!=null&&Object.hasOwnProperty.call(ct,"bytes")&&ut.uint32(26).bytes(ct.bytes),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.SpecialArg;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.key=ct.string();break}case 2:{ft.arrowDataframe=$root.ArrowDataframe.decode(ct,ct.uint32());break}case 3:{ft.bytes=ct.bytes();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.key!=null&&ct.hasOwnProperty("key")&&!$util.isString(ct.key))return"key: string expected";if(ct.arrowDataframe!=null&&ct.hasOwnProperty("arrowDataframe")){ut.value=1;{let dt=$root.ArrowDataframe.verify(ct.arrowDataframe);if(dt)return"arrowDataframe."+dt}}if(ct.bytes!=null&&ct.hasOwnProperty("bytes")){if(ut.value===1)return"value: multiple values";if(ut.value=1,!(ct.bytes&&typeof ct.bytes.length=="number"||$util.isString(ct.bytes)))return"bytes: buffer expected"}return null},ot.fromObject=function(ct){if(ct instanceof $root.SpecialArg)return ct;let ut=new $root.SpecialArg;if(ct.key!=null&&(ut.key=String(ct.key)),ct.arrowDataframe!=null){if(typeof ct.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");ut.arrowDataframe=$root.ArrowDataframe.fromObject(ct.arrowDataframe)}return ct.bytes!=null&&(typeof ct.bytes=="string"?$util.base64.decode(ct.bytes,ut.bytes=$util.newBuffer($util.base64.length(ct.bytes)),0):ct.bytes.length>=0&&(ut.bytes=ct.bytes)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.key=""),ct.key!=null&&ct.hasOwnProperty("key")&&(dt.key=ct.key),ct.arrowDataframe!=null&&ct.hasOwnProperty("arrowDataframe")&&(dt.arrowDataframe=$root.ArrowDataframe.toObject(ct.arrowDataframe,ut),ut.oneofs&&(dt.value="arrowDataframe")),ct.bytes!=null&&ct.hasOwnProperty("bytes")&&(dt.bytes=ut.bytes===String?$util.base64.encode(ct.bytes,0,ct.bytes.length):ut.bytes===Array?Array.prototype.slice.call(ct.bytes):ct.bytes,ut.oneofs&&(dt.value="bytes")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/SpecialArg"},ot})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.prototype.height=0,ot.prototype.width=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.ArrowTable.encode(et.data,ct.uint32(10).fork()).ldelim(),et.height!=null&&Object.hasOwnProperty.call(et,"height")&&ct.uint32(16).uint32(et.height),et.width!=null&&Object.hasOwnProperty.call(et,"width")&&ct.uint32(24).uint32(et.width),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ArrowDataframe;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.ArrowTable.decode(et,et.uint32());break}case 2:{dt.height=et.uint32();break}case 3:{dt.width=et.uint32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.ArrowTable.verify(et.data);if(ct)return"data."+ct}return et.height!=null&&et.hasOwnProperty("height")&&!$util.isInteger(et.height)?"height: integer expected":et.width!=null&&et.hasOwnProperty("width")&&!$util.isInteger(et.width)?"width: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.ArrowDataframe)return et;let ct=new $root.ArrowDataframe;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".ArrowDataframe.data: object expected");ct.data=$root.ArrowTable.fromObject(et.data)}return et.height!=null&&(ct.height=et.height>>>0),et.width!=null&&(ct.width=et.width>>>0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null,ut.height=0,ut.width=0),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.ArrowTable.toObject(et.data,ct)),et.height!=null&&et.hasOwnProperty("height")&&(ut.height=et.height),et.width!=null&&et.hasOwnProperty("width")&&(ut.width=et.width),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ArrowDataframe"},ot})();$root.ArrowTable=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=$util.newBuffer([]),ot.prototype.index=$util.newBuffer([]),ot.prototype.columns=$util.newBuffer([]),ot.prototype.styler=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&ct.uint32(10).bytes(et.data),et.index!=null&&Object.hasOwnProperty.call(et,"index")&&ct.uint32(18).bytes(et.index),et.columns!=null&&Object.hasOwnProperty.call(et,"columns")&&ct.uint32(26).bytes(et.columns),et.styler!=null&&Object.hasOwnProperty.call(et,"styler")&&$root.ArrowTableStyler.encode(et.styler,ct.uint32(42).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ArrowTable;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=et.bytes();break}case 2:{dt.index=et.bytes();break}case 3:{dt.columns=et.bytes();break}case 5:{dt.styler=$root.ArrowTableStyler.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")&&!(et.data&&typeof et.data.length=="number"||$util.isString(et.data)))return"data: buffer expected";if(et.index!=null&&et.hasOwnProperty("index")&&!(et.index&&typeof et.index.length=="number"||$util.isString(et.index)))return"index: buffer expected";if(et.columns!=null&&et.hasOwnProperty("columns")&&!(et.columns&&typeof et.columns.length=="number"||$util.isString(et.columns)))return"columns: buffer expected";if(et.styler!=null&&et.hasOwnProperty("styler")){let ct=$root.ArrowTableStyler.verify(et.styler);if(ct)return"styler."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.ArrowTable)return et;let ct=new $root.ArrowTable;if(et.data!=null&&(typeof et.data=="string"?$util.base64.decode(et.data,ct.data=$util.newBuffer($util.base64.length(et.data)),0):et.data.length>=0&&(ct.data=et.data)),et.index!=null&&(typeof et.index=="string"?$util.base64.decode(et.index,ct.index=$util.newBuffer($util.base64.length(et.index)),0):et.index.length>=0&&(ct.index=et.index)),et.columns!=null&&(typeof et.columns=="string"?$util.base64.decode(et.columns,ct.columns=$util.newBuffer($util.base64.length(et.columns)),0):et.columns.length>=0&&(ct.columns=et.columns)),et.styler!=null){if(typeof et.styler!="object")throw TypeError(".ArrowTable.styler: object expected");ct.styler=$root.ArrowTableStyler.fromObject(et.styler)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ct.bytes===String?ut.data="":(ut.data=[],ct.bytes!==Array&&(ut.data=$util.newBuffer(ut.data))),ct.bytes===String?ut.index="":(ut.index=[],ct.bytes!==Array&&(ut.index=$util.newBuffer(ut.index))),ct.bytes===String?ut.columns="":(ut.columns=[],ct.bytes!==Array&&(ut.columns=$util.newBuffer(ut.columns))),ut.styler=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=ct.bytes===String?$util.base64.encode(et.data,0,et.data.length):ct.bytes===Array?Array.prototype.slice.call(et.data):et.data),et.index!=null&&et.hasOwnProperty("index")&&(ut.index=ct.bytes===String?$util.base64.encode(et.index,0,et.index.length):ct.bytes===Array?Array.prototype.slice.call(et.index):et.index),et.columns!=null&&et.hasOwnProperty("columns")&&(ut.columns=ct.bytes===String?$util.base64.encode(et.columns,0,et.columns.length):ct.bytes===Array?Array.prototype.slice.call(et.columns):et.columns),et.styler!=null&&et.hasOwnProperty("styler")&&(ut.styler=$root.ArrowTableStyler.toObject(et.styler,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ArrowTable"},ot})(),$root.ArrowTableStyler=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.uuid="",ot.prototype.caption="",ot.prototype.styles="",ot.prototype.displayValues=$util.newBuffer([]),ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.uuid!=null&&Object.hasOwnProperty.call(et,"uuid")&&ct.uint32(10).string(et.uuid),et.caption!=null&&Object.hasOwnProperty.call(et,"caption")&&ct.uint32(18).string(et.caption),et.styles!=null&&Object.hasOwnProperty.call(et,"styles")&&ct.uint32(26).string(et.styles),et.displayValues!=null&&Object.hasOwnProperty.call(et,"displayValues")&&ct.uint32(34).bytes(et.displayValues),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ArrowTableStyler;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.uuid=et.string();break}case 2:{dt.caption=et.string();break}case 3:{dt.styles=et.string();break}case 4:{dt.displayValues=et.bytes();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.uuid!=null&&et.hasOwnProperty("uuid")&&!$util.isString(et.uuid)?"uuid: string expected":et.caption!=null&&et.hasOwnProperty("caption")&&!$util.isString(et.caption)?"caption: string expected":et.styles!=null&&et.hasOwnProperty("styles")&&!$util.isString(et.styles)?"styles: string expected":et.displayValues!=null&&et.hasOwnProperty("displayValues")&&!(et.displayValues&&typeof et.displayValues.length=="number"||$util.isString(et.displayValues))?"displayValues: buffer expected":null},ot.fromObject=function(et){if(et instanceof $root.ArrowTableStyler)return et;let ct=new $root.ArrowTableStyler;return et.uuid!=null&&(ct.uuid=String(et.uuid)),et.caption!=null&&(ct.caption=String(et.caption)),et.styles!=null&&(ct.styles=String(et.styles)),et.displayValues!=null&&(typeof et.displayValues=="string"?$util.base64.decode(et.displayValues,ct.displayValues=$util.newBuffer($util.base64.length(et.displayValues)),0):et.displayValues.length>=0&&(ct.displayValues=et.displayValues)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.uuid="",ut.caption="",ut.styles="",ct.bytes===String?ut.displayValues="":(ut.displayValues=[],ct.bytes!==Array&&(ut.displayValues=$util.newBuffer(ut.displayValues)))),et.uuid!=null&&et.hasOwnProperty("uuid")&&(ut.uuid=et.uuid),et.caption!=null&&et.hasOwnProperty("caption")&&(ut.caption=et.caption),et.styles!=null&&et.hasOwnProperty("styles")&&(ut.styles=et.styles),et.displayValues!=null&&et.hasOwnProperty("displayValues")&&(ut.displayValues=ct.bytes===String?$util.base64.encode(et.displayValues,0,et.displayValues.length):ct.bytes===Array?Array.prototype.slice.call(et.displayValues):et.displayValues),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ArrowTableStyler"},ot})(),$root.Balloons=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.show=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.show!=null&&Object.hasOwnProperty.call(et,"show")&&ct.uint32(24).bool(et.show),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Balloons;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 3:{dt.show=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.show!=null&&et.hasOwnProperty("show")&&typeof et.show!="boolean"?"show: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Balloons)return et;let ct=new $root.Balloons;return et.show!=null&&(ct.show=!!et.show),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.show=!1),et.show!=null&&et.hasOwnProperty("show")&&(ut.show=et.show),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Balloons"},ot})();const Block$2=$root.Block=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.vertical=null,ot.prototype.horizontal=null,ot.prototype.column=null,ot.prototype.expandable=null,ot.prototype.form=null,ot.prototype.tabContainer=null,ot.prototype.tab=null,ot.prototype.chatMessage=null,ot.prototype.popover=null,ot.prototype.dialog=null,ot.prototype.allowEmpty=!1,ot.prototype.id=null;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["vertical","horizontal","column","expandable","form","tabContainer","tab","chatMessage","popover","dialog"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_id",{get:$util.oneOfGetter(et=["id"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.vertical!=null&&Object.hasOwnProperty.call(ct,"vertical")&&$root.Block.Vertical.encode(ct.vertical,ut.uint32(10).fork()).ldelim(),ct.horizontal!=null&&Object.hasOwnProperty.call(ct,"horizontal")&&$root.Block.Horizontal.encode(ct.horizontal,ut.uint32(18).fork()).ldelim(),ct.column!=null&&Object.hasOwnProperty.call(ct,"column")&&$root.Block.Column.encode(ct.column,ut.uint32(26).fork()).ldelim(),ct.expandable!=null&&Object.hasOwnProperty.call(ct,"expandable")&&$root.Block.Expandable.encode(ct.expandable,ut.uint32(34).fork()).ldelim(),ct.form!=null&&Object.hasOwnProperty.call(ct,"form")&&$root.Block.Form.encode(ct.form,ut.uint32(42).fork()).ldelim(),ct.tabContainer!=null&&Object.hasOwnProperty.call(ct,"tabContainer")&&$root.Block.TabContainer.encode(ct.tabContainer,ut.uint32(50).fork()).ldelim(),ct.tab!=null&&Object.hasOwnProperty.call(ct,"tab")&&$root.Block.Tab.encode(ct.tab,ut.uint32(58).fork()).ldelim(),ct.allowEmpty!=null&&Object.hasOwnProperty.call(ct,"allowEmpty")&&ut.uint32(64).bool(ct.allowEmpty),ct.chatMessage!=null&&Object.hasOwnProperty.call(ct,"chatMessage")&&$root.Block.ChatMessage.encode(ct.chatMessage,ut.uint32(74).fork()).ldelim(),ct.popover!=null&&Object.hasOwnProperty.call(ct,"popover")&&$root.Block.Popover.encode(ct.popover,ut.uint32(82).fork()).ldelim(),ct.dialog!=null&&Object.hasOwnProperty.call(ct,"dialog")&&$root.Block.Dialog.encode(ct.dialog,ut.uint32(90).fork()).ldelim(),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(98).string(ct.id),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Block;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.vertical=$root.Block.Vertical.decode(ct,ct.uint32());break}case 2:{ft.horizontal=$root.Block.Horizontal.decode(ct,ct.uint32());break}case 3:{ft.column=$root.Block.Column.decode(ct,ct.uint32());break}case 4:{ft.expandable=$root.Block.Expandable.decode(ct,ct.uint32());break}case 5:{ft.form=$root.Block.Form.decode(ct,ct.uint32());break}case 6:{ft.tabContainer=$root.Block.TabContainer.decode(ct,ct.uint32());break}case 7:{ft.tab=$root.Block.Tab.decode(ct,ct.uint32());break}case 9:{ft.chatMessage=$root.Block.ChatMessage.decode(ct,ct.uint32());break}case 10:{ft.popover=$root.Block.Popover.decode(ct,ct.uint32());break}case 11:{ft.dialog=$root.Block.Dialog.decode(ct,ct.uint32());break}case 8:{ft.allowEmpty=ct.bool();break}case 12:{ft.id=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.vertical!=null&&ct.hasOwnProperty("vertical")){ut.type=1;{let dt=$root.Block.Vertical.verify(ct.vertical);if(dt)return"vertical."+dt}}if(ct.horizontal!=null&&ct.hasOwnProperty("horizontal")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Horizontal.verify(ct.horizontal);if(dt)return"horizontal."+dt}}if(ct.column!=null&&ct.hasOwnProperty("column")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Column.verify(ct.column);if(dt)return"column."+dt}}if(ct.expandable!=null&&ct.hasOwnProperty("expandable")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Expandable.verify(ct.expandable);if(dt)return"expandable."+dt}}if(ct.form!=null&&ct.hasOwnProperty("form")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Form.verify(ct.form);if(dt)return"form."+dt}}if(ct.tabContainer!=null&&ct.hasOwnProperty("tabContainer")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.TabContainer.verify(ct.tabContainer);if(dt)return"tabContainer."+dt}}if(ct.tab!=null&&ct.hasOwnProperty("tab")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Tab.verify(ct.tab);if(dt)return"tab."+dt}}if(ct.chatMessage!=null&&ct.hasOwnProperty("chatMessage")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.ChatMessage.verify(ct.chatMessage);if(dt)return"chatMessage."+dt}}if(ct.popover!=null&&ct.hasOwnProperty("popover")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Popover.verify(ct.popover);if(dt)return"popover."+dt}}if(ct.dialog!=null&&ct.hasOwnProperty("dialog")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.Dialog.verify(ct.dialog);if(dt)return"dialog."+dt}}return ct.allowEmpty!=null&&ct.hasOwnProperty("allowEmpty")&&typeof ct.allowEmpty!="boolean"?"allowEmpty: boolean expected":ct.id!=null&&ct.hasOwnProperty("id")&&(ut._id=1,!$util.isString(ct.id))?"id: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.Block)return ct;let ut=new $root.Block;if(ct.vertical!=null){if(typeof ct.vertical!="object")throw TypeError(".Block.vertical: object expected");ut.vertical=$root.Block.Vertical.fromObject(ct.vertical)}if(ct.horizontal!=null){if(typeof ct.horizontal!="object")throw TypeError(".Block.horizontal: object expected");ut.horizontal=$root.Block.Horizontal.fromObject(ct.horizontal)}if(ct.column!=null){if(typeof ct.column!="object")throw TypeError(".Block.column: object expected");ut.column=$root.Block.Column.fromObject(ct.column)}if(ct.expandable!=null){if(typeof ct.expandable!="object")throw TypeError(".Block.expandable: object expected");ut.expandable=$root.Block.Expandable.fromObject(ct.expandable)}if(ct.form!=null){if(typeof ct.form!="object")throw TypeError(".Block.form: object expected");ut.form=$root.Block.Form.fromObject(ct.form)}if(ct.tabContainer!=null){if(typeof ct.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");ut.tabContainer=$root.Block.TabContainer.fromObject(ct.tabContainer)}if(ct.tab!=null){if(typeof ct.tab!="object")throw TypeError(".Block.tab: object expected");ut.tab=$root.Block.Tab.fromObject(ct.tab)}if(ct.chatMessage!=null){if(typeof ct.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");ut.chatMessage=$root.Block.ChatMessage.fromObject(ct.chatMessage)}if(ct.popover!=null){if(typeof ct.popover!="object")throw TypeError(".Block.popover: object expected");ut.popover=$root.Block.Popover.fromObject(ct.popover)}if(ct.dialog!=null){if(typeof ct.dialog!="object")throw TypeError(".Block.dialog: object expected");ut.dialog=$root.Block.Dialog.fromObject(ct.dialog)}return ct.allowEmpty!=null&&(ut.allowEmpty=!!ct.allowEmpty),ct.id!=null&&(ut.id=String(ct.id)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.allowEmpty=!1),ct.vertical!=null&&ct.hasOwnProperty("vertical")&&(dt.vertical=$root.Block.Vertical.toObject(ct.vertical,ut),ut.oneofs&&(dt.type="vertical")),ct.horizontal!=null&&ct.hasOwnProperty("horizontal")&&(dt.horizontal=$root.Block.Horizontal.toObject(ct.horizontal,ut),ut.oneofs&&(dt.type="horizontal")),ct.column!=null&&ct.hasOwnProperty("column")&&(dt.column=$root.Block.Column.toObject(ct.column,ut),ut.oneofs&&(dt.type="column")),ct.expandable!=null&&ct.hasOwnProperty("expandable")&&(dt.expandable=$root.Block.Expandable.toObject(ct.expandable,ut),ut.oneofs&&(dt.type="expandable")),ct.form!=null&&ct.hasOwnProperty("form")&&(dt.form=$root.Block.Form.toObject(ct.form,ut),ut.oneofs&&(dt.type="form")),ct.tabContainer!=null&&ct.hasOwnProperty("tabContainer")&&(dt.tabContainer=$root.Block.TabContainer.toObject(ct.tabContainer,ut),ut.oneofs&&(dt.type="tabContainer")),ct.tab!=null&&ct.hasOwnProperty("tab")&&(dt.tab=$root.Block.Tab.toObject(ct.tab,ut),ut.oneofs&&(dt.type="tab")),ct.allowEmpty!=null&&ct.hasOwnProperty("allowEmpty")&&(dt.allowEmpty=ct.allowEmpty),ct.chatMessage!=null&&ct.hasOwnProperty("chatMessage")&&(dt.chatMessage=$root.Block.ChatMessage.toObject(ct.chatMessage,ut),ut.oneofs&&(dt.type="chatMessage")),ct.popover!=null&&ct.hasOwnProperty("popover")&&(dt.popover=$root.Block.Popover.toObject(ct.popover,ut),ut.oneofs&&(dt.type="popover")),ct.dialog!=null&&ct.hasOwnProperty("dialog")&&(dt.dialog=$root.Block.Dialog.toObject(ct.dialog,ut),ut.oneofs&&(dt.type="dialog")),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id,ut.oneofs&&(dt._id="id")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Block"},ot.Vertical=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.border=!1,ct.prototype.height=0,ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.border!=null&&Object.hasOwnProperty.call(ut,"border")&&dt.uint32(8).bool(ut.border),ut.height!=null&&Object.hasOwnProperty.call(ut,"height")&&dt.uint32(16).uint32(ut.height),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Vertical;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.border=ut.bool();break}case 2:{zt.height=ut.uint32();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.border!=null&&ut.hasOwnProperty("border")&&typeof ut.border!="boolean"?"border: boolean expected":ut.height!=null&&ut.hasOwnProperty("height")&&!$util.isInteger(ut.height)?"height: integer expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Vertical)return ut;let dt=new $root.Block.Vertical;return ut.border!=null&&(dt.border=!!ut.border),ut.height!=null&&(dt.height=ut.height>>>0),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.border=!1,ft.height=0),ut.border!=null&&ut.hasOwnProperty("border")&&(ft.border=ut.border),ut.height!=null&&ut.hasOwnProperty("height")&&(ft.height=ut.height),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Vertical"},ct}(),ot.Horizontal=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.gap="",ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.gap!=null&&Object.hasOwnProperty.call(ut,"gap")&&dt.uint32(10).string(ut.gap),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Horizontal;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.gap=ut.string();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.gap!=null&&ut.hasOwnProperty("gap")&&!$util.isString(ut.gap)?"gap: string expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Horizontal)return ut;let dt=new $root.Block.Horizontal;return ut.gap!=null&&(dt.gap=String(ut.gap)),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.gap=""),ut.gap!=null&&ut.hasOwnProperty("gap")&&(ft.gap=ut.gap),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Horizontal"},ct}(),ot.Column=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.weight=0,ct.prototype.gap="",ct.prototype.verticalAlignment=0,ct.prototype.showBorder=!1,ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.weight!=null&&Object.hasOwnProperty.call(ut,"weight")&&dt.uint32(9).double(ut.weight),ut.gap!=null&&Object.hasOwnProperty.call(ut,"gap")&&dt.uint32(18).string(ut.gap),ut.verticalAlignment!=null&&Object.hasOwnProperty.call(ut,"verticalAlignment")&&dt.uint32(24).int32(ut.verticalAlignment),ut.showBorder!=null&&Object.hasOwnProperty.call(ut,"showBorder")&&dt.uint32(32).bool(ut.showBorder),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Column;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.weight=ut.double();break}case 2:{zt.gap=ut.string();break}case 3:{zt.verticalAlignment=ut.int32();break}case 4:{zt.showBorder=ut.bool();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";if(ut.weight!=null&&ut.hasOwnProperty("weight")&&typeof ut.weight!="number")return"weight: number expected";if(ut.gap!=null&&ut.hasOwnProperty("gap")&&!$util.isString(ut.gap))return"gap: string expected";if(ut.verticalAlignment!=null&&ut.hasOwnProperty("verticalAlignment"))switch(ut.verticalAlignment){default:return"verticalAlignment: enum value expected";case 0:case 1:case 2:break}return ut.showBorder!=null&&ut.hasOwnProperty("showBorder")&&typeof ut.showBorder!="boolean"?"showBorder: boolean expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Column)return ut;let dt=new $root.Block.Column;switch(ut.weight!=null&&(dt.weight=Number(ut.weight)),ut.gap!=null&&(dt.gap=String(ut.gap)),ut.verticalAlignment){default:if(typeof ut.verticalAlignment=="number"){dt.verticalAlignment=ut.verticalAlignment;break}break;case"TOP":case 0:dt.verticalAlignment=0;break;case"CENTER":case 1:dt.verticalAlignment=1;break;case"BOTTOM":case 2:dt.verticalAlignment=2;break}return ut.showBorder!=null&&(dt.showBorder=!!ut.showBorder),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.weight=0,ft.gap="",ft.verticalAlignment=dt.enums===String?"TOP":0,ft.showBorder=!1),ut.weight!=null&&ut.hasOwnProperty("weight")&&(ft.weight=dt.json&&!isFinite(ut.weight)?String(ut.weight):ut.weight),ut.gap!=null&&ut.hasOwnProperty("gap")&&(ft.gap=ut.gap),ut.verticalAlignment!=null&&ut.hasOwnProperty("verticalAlignment")&&(ft.verticalAlignment=dt.enums===String?$root.Block.Column.VerticalAlignment[ut.verticalAlignment]===void 0?ut.verticalAlignment:$root.Block.Column.VerticalAlignment[ut.verticalAlignment]:ut.verticalAlignment),ut.showBorder!=null&&ut.hasOwnProperty("showBorder")&&(ft.showBorder=ut.showBorder),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Column"},ct.VerticalAlignment=function(){const ut={},dt=Object.create(ut);return dt[ut[0]="TOP"]=0,dt[ut[1]="CENTER"]=1,dt[ut[2]="BOTTOM"]=2,dt}(),ct}(),ot.Expandable=function(){function ct(dt){if(dt)for(let ft=Object.keys(dt),zt=0;zt<ft.length;++zt)dt[ft[zt]]!=null&&(this[ft[zt]]=dt[ft[zt]])}ct.prototype.label="",ct.prototype.expanded=null,ct.prototype.icon="";let ut;return Object.defineProperty(ct.prototype,"_expanded",{get:$util.oneOfGetter(ut=["expanded"]),set:$util.oneOfSetter(ut)}),ct.create=function(dt){return new ct(dt)},ct.encode=function(dt,ft){return ft||(ft=$Writer.create()),dt.label!=null&&Object.hasOwnProperty.call(dt,"label")&&ft.uint32(10).string(dt.label),dt.expanded!=null&&Object.hasOwnProperty.call(dt,"expanded")&&ft.uint32(16).bool(dt.expanded),dt.icon!=null&&Object.hasOwnProperty.call(dt,"icon")&&ft.uint32(26).string(dt.icon),ft},ct.encodeDelimited=function(dt,ft){return this.encode(dt,ft).ldelim()},ct.decode=function(dt,ft){dt instanceof $Reader||(dt=$Reader.create(dt));let zt=ft===void 0?dt.len:dt.pos+ft,Dt=new $root.Block.Expandable;for(;dt.pos<zt;){let St=dt.uint32();switch(St>>>3){case 1:{Dt.label=dt.string();break}case 2:{Dt.expanded=dt.bool();break}case 3:{Dt.icon=dt.string();break}default:dt.skipType(St&7);break}}return Dt},ct.decodeDelimited=function(dt){return dt instanceof $Reader||(dt=new $Reader(dt)),this.decode(dt,dt.uint32())},ct.verify=function(dt){return typeof dt!="object"||dt===null?"object expected":dt.label!=null&&dt.hasOwnProperty("label")&&!$util.isString(dt.label)?"label: string expected":dt.expanded!=null&&dt.hasOwnProperty("expanded")&&typeof dt.expanded!="boolean"?"expanded: boolean expected":dt.icon!=null&&dt.hasOwnProperty("icon")&&!$util.isString(dt.icon)?"icon: string expected":null},ct.fromObject=function(dt){if(dt instanceof $root.Block.Expandable)return dt;let ft=new $root.Block.Expandable;return dt.label!=null&&(ft.label=String(dt.label)),dt.expanded!=null&&(ft.expanded=!!dt.expanded),dt.icon!=null&&(ft.icon=String(dt.icon)),ft},ct.toObject=function(dt,ft){ft||(ft={});let zt={};return ft.defaults&&(zt.label="",zt.icon=""),dt.label!=null&&dt.hasOwnProperty("label")&&(zt.label=dt.label),dt.expanded!=null&&dt.hasOwnProperty("expanded")&&(zt.expanded=dt.expanded,ft.oneofs&&(zt._expanded="expanded")),dt.icon!=null&&dt.hasOwnProperty("icon")&&(zt.icon=dt.icon),zt},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(dt){return dt===void 0&&(dt="type.googleapis.com"),dt+"/Block.Expandable"},ct}(),ot.Dialog=function(){function ct(dt){if(dt)for(let ft=Object.keys(dt),zt=0;zt<ft.length;++zt)dt[ft[zt]]!=null&&(this[ft[zt]]=dt[ft[zt]])}ct.prototype.title="",ct.prototype.dismissible=!1,ct.prototype.width=0,ct.prototype.isOpen=null;let ut;return Object.defineProperty(ct.prototype,"_isOpen",{get:$util.oneOfGetter(ut=["isOpen"]),set:$util.oneOfSetter(ut)}),ct.create=function(dt){return new ct(dt)},ct.encode=function(dt,ft){return ft||(ft=$Writer.create()),dt.title!=null&&Object.hasOwnProperty.call(dt,"title")&&ft.uint32(10).string(dt.title),dt.dismissible!=null&&Object.hasOwnProperty.call(dt,"dismissible")&&ft.uint32(16).bool(dt.dismissible),dt.width!=null&&Object.hasOwnProperty.call(dt,"width")&&ft.uint32(24).int32(dt.width),dt.isOpen!=null&&Object.hasOwnProperty.call(dt,"isOpen")&&ft.uint32(32).bool(dt.isOpen),ft},ct.encodeDelimited=function(dt,ft){return this.encode(dt,ft).ldelim()},ct.decode=function(dt,ft){dt instanceof $Reader||(dt=$Reader.create(dt));let zt=ft===void 0?dt.len:dt.pos+ft,Dt=new $root.Block.Dialog;for(;dt.pos<zt;){let St=dt.uint32();switch(St>>>3){case 1:{Dt.title=dt.string();break}case 2:{Dt.dismissible=dt.bool();break}case 3:{Dt.width=dt.int32();break}case 4:{Dt.isOpen=dt.bool();break}default:dt.skipType(St&7);break}}return Dt},ct.decodeDelimited=function(dt){return dt instanceof $Reader||(dt=new $Reader(dt)),this.decode(dt,dt.uint32())},ct.verify=function(dt){if(typeof dt!="object"||dt===null)return"object expected";if(dt.title!=null&&dt.hasOwnProperty("title")&&!$util.isString(dt.title))return"title: string expected";if(dt.dismissible!=null&&dt.hasOwnProperty("dismissible")&&typeof dt.dismissible!="boolean")return"dismissible: boolean expected";if(dt.width!=null&&dt.hasOwnProperty("width"))switch(dt.width){default:return"width: enum value expected";case 0:case 1:break}return dt.isOpen!=null&&dt.hasOwnProperty("isOpen")&&typeof dt.isOpen!="boolean"?"isOpen: boolean expected":null},ct.fromObject=function(dt){if(dt instanceof $root.Block.Dialog)return dt;let ft=new $root.Block.Dialog;switch(dt.title!=null&&(ft.title=String(dt.title)),dt.dismissible!=null&&(ft.dismissible=!!dt.dismissible),dt.width){default:if(typeof dt.width=="number"){ft.width=dt.width;break}break;case"SMALL":case 0:ft.width=0;break;case"LARGE":case 1:ft.width=1;break}return dt.isOpen!=null&&(ft.isOpen=!!dt.isOpen),ft},ct.toObject=function(dt,ft){ft||(ft={});let zt={};return ft.defaults&&(zt.title="",zt.dismissible=!1,zt.width=ft.enums===String?"SMALL":0),dt.title!=null&&dt.hasOwnProperty("title")&&(zt.title=dt.title),dt.dismissible!=null&&dt.hasOwnProperty("dismissible")&&(zt.dismissible=dt.dismissible),dt.width!=null&&dt.hasOwnProperty("width")&&(zt.width=ft.enums===String?$root.Block.Dialog.DialogWidth[dt.width]===void 0?dt.width:$root.Block.Dialog.DialogWidth[dt.width]:dt.width),dt.isOpen!=null&&dt.hasOwnProperty("isOpen")&&(zt.isOpen=dt.isOpen,ft.oneofs&&(zt._isOpen="isOpen")),zt},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(dt){return dt===void 0&&(dt="type.googleapis.com"),dt+"/Block.Dialog"},ct.DialogWidth=function(){const dt={},ft=Object.create(dt);return ft[dt[0]="SMALL"]=0,ft[dt[1]="LARGE"]=1,ft}(),ct}(),ot.Form=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.formId="",ct.prototype.clearOnSubmit=!1,ct.prototype.border=!1,ct.prototype.enterToSubmit=!1,ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.formId!=null&&Object.hasOwnProperty.call(ut,"formId")&&dt.uint32(10).string(ut.formId),ut.clearOnSubmit!=null&&Object.hasOwnProperty.call(ut,"clearOnSubmit")&&dt.uint32(16).bool(ut.clearOnSubmit),ut.border!=null&&Object.hasOwnProperty.call(ut,"border")&&dt.uint32(24).bool(ut.border),ut.enterToSubmit!=null&&Object.hasOwnProperty.call(ut,"enterToSubmit")&&dt.uint32(32).bool(ut.enterToSubmit),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Form;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.formId=ut.string();break}case 2:{zt.clearOnSubmit=ut.bool();break}case 3:{zt.border=ut.bool();break}case 4:{zt.enterToSubmit=ut.bool();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.formId!=null&&ut.hasOwnProperty("formId")&&!$util.isString(ut.formId)?"formId: string expected":ut.clearOnSubmit!=null&&ut.hasOwnProperty("clearOnSubmit")&&typeof ut.clearOnSubmit!="boolean"?"clearOnSubmit: boolean expected":ut.border!=null&&ut.hasOwnProperty("border")&&typeof ut.border!="boolean"?"border: boolean expected":ut.enterToSubmit!=null&&ut.hasOwnProperty("enterToSubmit")&&typeof ut.enterToSubmit!="boolean"?"enterToSubmit: boolean expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Form)return ut;let dt=new $root.Block.Form;return ut.formId!=null&&(dt.formId=String(ut.formId)),ut.clearOnSubmit!=null&&(dt.clearOnSubmit=!!ut.clearOnSubmit),ut.border!=null&&(dt.border=!!ut.border),ut.enterToSubmit!=null&&(dt.enterToSubmit=!!ut.enterToSubmit),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.formId="",ft.clearOnSubmit=!1,ft.border=!1,ft.enterToSubmit=!1),ut.formId!=null&&ut.hasOwnProperty("formId")&&(ft.formId=ut.formId),ut.clearOnSubmit!=null&&ut.hasOwnProperty("clearOnSubmit")&&(ft.clearOnSubmit=ut.clearOnSubmit),ut.border!=null&&ut.hasOwnProperty("border")&&(ft.border=ut.border),ut.enterToSubmit!=null&&ut.hasOwnProperty("enterToSubmit")&&(ft.enterToSubmit=ut.enterToSubmit),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Form"},ct}(),ot.TabContainer=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.TabContainer;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":null},ct.fromObject=function(ut){return ut instanceof $root.Block.TabContainer?ut:new $root.Block.TabContainer},ct.toObject=function(){return{}},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.TabContainer"},ct}(),ot.Tab=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.label="",ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.label!=null&&Object.hasOwnProperty.call(ut,"label")&&dt.uint32(10).string(ut.label),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Tab;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.label=ut.string();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.label!=null&&ut.hasOwnProperty("label")&&!$util.isString(ut.label)?"label: string expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Tab)return ut;let dt=new $root.Block.Tab;return ut.label!=null&&(dt.label=String(ut.label)),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.label=""),ut.label!=null&&ut.hasOwnProperty("label")&&(ft.label=ut.label),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Tab"},ct}(),ot.Popover=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.label="",ct.prototype.useContainerWidth=!1,ct.prototype.help="",ct.prototype.disabled=!1,ct.prototype.icon="",ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.label!=null&&Object.hasOwnProperty.call(ut,"label")&&dt.uint32(10).string(ut.label),ut.useContainerWidth!=null&&Object.hasOwnProperty.call(ut,"useContainerWidth")&&dt.uint32(16).bool(ut.useContainerWidth),ut.help!=null&&Object.hasOwnProperty.call(ut,"help")&&dt.uint32(26).string(ut.help),ut.disabled!=null&&Object.hasOwnProperty.call(ut,"disabled")&&dt.uint32(32).bool(ut.disabled),ut.icon!=null&&Object.hasOwnProperty.call(ut,"icon")&&dt.uint32(42).string(ut.icon),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.Popover;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.label=ut.string();break}case 2:{zt.useContainerWidth=ut.bool();break}case 3:{zt.help=ut.string();break}case 4:{zt.disabled=ut.bool();break}case 5:{zt.icon=ut.string();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.label!=null&&ut.hasOwnProperty("label")&&!$util.isString(ut.label)?"label: string expected":ut.useContainerWidth!=null&&ut.hasOwnProperty("useContainerWidth")&&typeof ut.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":ut.help!=null&&ut.hasOwnProperty("help")&&!$util.isString(ut.help)?"help: string expected":ut.disabled!=null&&ut.hasOwnProperty("disabled")&&typeof ut.disabled!="boolean"?"disabled: boolean expected":ut.icon!=null&&ut.hasOwnProperty("icon")&&!$util.isString(ut.icon)?"icon: string expected":null},ct.fromObject=function(ut){if(ut instanceof $root.Block.Popover)return ut;let dt=new $root.Block.Popover;return ut.label!=null&&(dt.label=String(ut.label)),ut.useContainerWidth!=null&&(dt.useContainerWidth=!!ut.useContainerWidth),ut.help!=null&&(dt.help=String(ut.help)),ut.disabled!=null&&(dt.disabled=!!ut.disabled),ut.icon!=null&&(dt.icon=String(ut.icon)),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.label="",ft.useContainerWidth=!1,ft.help="",ft.disabled=!1,ft.icon=""),ut.label!=null&&ut.hasOwnProperty("label")&&(ft.label=ut.label),ut.useContainerWidth!=null&&ut.hasOwnProperty("useContainerWidth")&&(ft.useContainerWidth=ut.useContainerWidth),ut.help!=null&&ut.hasOwnProperty("help")&&(ft.help=ut.help),ut.disabled!=null&&ut.hasOwnProperty("disabled")&&(ft.disabled=ut.disabled),ut.icon!=null&&ut.hasOwnProperty("icon")&&(ft.icon=ut.icon),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.Popover"},ct}(),ot.ChatMessage=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.name="",ct.prototype.avatar="",ct.prototype.avatarType=0,ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.name!=null&&Object.hasOwnProperty.call(ut,"name")&&dt.uint32(10).string(ut.name),ut.avatar!=null&&Object.hasOwnProperty.call(ut,"avatar")&&dt.uint32(18).string(ut.avatar),ut.avatarType!=null&&Object.hasOwnProperty.call(ut,"avatarType")&&dt.uint32(24).int32(ut.avatarType),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.Block.ChatMessage;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.name=ut.string();break}case 2:{zt.avatar=ut.string();break}case 3:{zt.avatarType=ut.int32();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";if(ut.name!=null&&ut.hasOwnProperty("name")&&!$util.isString(ut.name))return"name: string expected";if(ut.avatar!=null&&ut.hasOwnProperty("avatar")&&!$util.isString(ut.avatar))return"avatar: string expected";if(ut.avatarType!=null&&ut.hasOwnProperty("avatarType"))switch(ut.avatarType){default:return"avatarType: enum value expected";case 0:case 1:case 2:break}return null},ct.fromObject=function(ut){if(ut instanceof $root.Block.ChatMessage)return ut;let dt=new $root.Block.ChatMessage;switch(ut.name!=null&&(dt.name=String(ut.name)),ut.avatar!=null&&(dt.avatar=String(ut.avatar)),ut.avatarType){default:if(typeof ut.avatarType=="number"){dt.avatarType=ut.avatarType;break}break;case"IMAGE":case 0:dt.avatarType=0;break;case"EMOJI":case 1:dt.avatarType=1;break;case"ICON":case 2:dt.avatarType=2;break}return dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.name="",ft.avatar="",ft.avatarType=dt.enums===String?"IMAGE":0),ut.name!=null&&ut.hasOwnProperty("name")&&(ft.name=ut.name),ut.avatar!=null&&ut.hasOwnProperty("avatar")&&(ft.avatar=ut.avatar),ut.avatarType!=null&&ut.hasOwnProperty("avatarType")&&(ft.avatarType=dt.enums===String?$root.Block.ChatMessage.AvatarType[ut.avatarType]===void 0?ut.avatarType:$root.Block.ChatMessage.AvatarType[ut.avatarType]:ut.avatarType),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/Block.ChatMessage"},ct.AvatarType=function(){const ut={},dt=Object.create(ut);return dt[ut[0]="IMAGE"]=0,dt[ut[1]="EMOJI"]=1,dt[ut[2]="ICON"]=2,dt}(),ct}(),ot})();$root.BokehChart=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.figure="",ot.prototype.useContainerWidth=!1,ot.prototype.elementId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.figure!=null&&Object.hasOwnProperty.call(et,"figure")&&ct.uint32(10).string(et.figure),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(16).bool(et.useContainerWidth),et.elementId!=null&&Object.hasOwnProperty.call(et,"elementId")&&ct.uint32(26).string(et.elementId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.BokehChart;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.figure=et.string();break}case 2:{dt.useContainerWidth=et.bool();break}case 3:{dt.elementId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.figure!=null&&et.hasOwnProperty("figure")&&!$util.isString(et.figure)?"figure: string expected":et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":et.elementId!=null&&et.hasOwnProperty("elementId")&&!$util.isString(et.elementId)?"elementId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.BokehChart)return et;let ct=new $root.BokehChart;return et.figure!=null&&(ct.figure=String(et.figure)),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.elementId!=null&&(ct.elementId=String(et.elementId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.figure="",ut.useContainerWidth=!1,ut.elementId=""),et.figure!=null&&et.hasOwnProperty("figure")&&(ut.figure=et.figure),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.elementId!=null&&et.hasOwnProperty("elementId")&&(ut.elementId=et.elementId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/BokehChart"},ot})(),$root.Button=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default=!1,ot.prototype.help="",ot.prototype.formId="",ot.prototype.isFormSubmitter=!1,ot.prototype.type="",ot.prototype.disabled=!1,ot.prototype.useContainerWidth=!1,ot.prototype.icon="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&Object.hasOwnProperty.call(et,"default")&&ct.uint32(24).bool(et.default),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(42).string(et.formId),et.isFormSubmitter!=null&&Object.hasOwnProperty.call(et,"isFormSubmitter")&&ct.uint32(48).bool(et.isFormSubmitter),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(58).string(et.type),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(64).bool(et.disabled),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(72).bool(et.useContainerWidth),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(82).string(et.icon),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Button;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.default=et.bool();break}case 4:{dt.help=et.string();break}case 5:{dt.formId=et.string();break}case 6:{dt.isFormSubmitter=et.bool();break}case 7:{dt.type=et.string();break}case 8:{dt.disabled=et.bool();break}case 9:{dt.useContainerWidth=et.bool();break}case 10:{dt.icon=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id)?"id: string expected":et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label)?"label: string expected":et.default!=null&&et.hasOwnProperty("default")&&typeof et.default!="boolean"?"default: boolean expected":et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId)?"formId: string expected":et.isFormSubmitter!=null&&et.hasOwnProperty("isFormSubmitter")&&typeof et.isFormSubmitter!="boolean"?"isFormSubmitter: boolean expected":et.type!=null&&et.hasOwnProperty("type")&&!$util.isString(et.type)?"type: string expected":et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean"?"disabled: boolean expected":et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Button)return et;let ct=new $root.Button;return et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default!=null&&(ct.default=!!et.default),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.isFormSubmitter!=null&&(ct.isFormSubmitter=!!et.isFormSubmitter),et.type!=null&&(ct.type=String(et.type)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.icon!=null&&(ct.icon=String(et.icon)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.default=!1,ut.help="",ut.formId="",ut.isFormSubmitter=!1,ut.type="",ut.disabled=!1,ut.useContainerWidth=!1,ut.icon=""),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default!=null&&et.hasOwnProperty("default")&&(ut.default=et.default),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.isFormSubmitter!=null&&et.hasOwnProperty("isFormSubmitter")&&(ut.isFormSubmitter=et.isFormSubmitter),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=et.type),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Button"},ot})(),ButtonGroup$1=$root.ButtonGroup=(()=>{function ot(ct){if(this.options=[],this.default=[],this.value=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.options=$util.emptyArray,ot.prototype.default=$util.emptyArray,ot.prototype.disabled=!1,ot.prototype.clickMode=0,ot.prototype.formId="",ot.prototype.value=$util.emptyArray,ot.prototype.setValue=!1,ot.prototype.selectionVisualization=0,ot.prototype.style=0,ot.prototype.label="",ot.prototype.labelVisibility=null,ot.prototype.help=null;let et;return Object.defineProperty(ot.prototype,"_help",{get:$util.oneOfGetter(et=["help"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.options!=null&&ct.options.length)for(let dt=0;dt<ct.options.length;++dt)$root.ButtonGroup.Option.encode(ct.options[dt],ut.uint32(18).fork()).ldelim();if(ct.default!=null&&ct.default.length){ut.uint32(26).fork();for(let dt=0;dt<ct.default.length;++dt)ut.uint32(ct.default[dt]);ut.ldelim()}if(ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(32).bool(ct.disabled),ct.clickMode!=null&&Object.hasOwnProperty.call(ct,"clickMode")&&ut.uint32(40).int32(ct.clickMode),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(50).string(ct.formId),ct.value!=null&&ct.value.length){ut.uint32(58).fork();for(let dt=0;dt<ct.value.length;++dt)ut.uint32(ct.value[dt]);ut.ldelim()}return ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(64).bool(ct.setValue),ct.selectionVisualization!=null&&Object.hasOwnProperty.call(ct,"selectionVisualization")&&ut.uint32(72).int32(ct.selectionVisualization),ct.style!=null&&Object.hasOwnProperty.call(ct,"style")&&ut.uint32(80).int32(ct.style),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(90).string(ct.label),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(98).fork()).ldelim(),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(106).string(ct.help),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.ButtonGroup;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.options&&ft.options.length||(ft.options=[]),ft.options.push($root.ButtonGroup.Option.decode(ct,ct.uint32()));break}case 3:{if(ft.default&&ft.default.length||(ft.default=[]),(zt&7)===2){let Dt=ct.uint32()+ct.pos;for(;ct.pos<Dt;)ft.default.push(ct.uint32())}else ft.default.push(ct.uint32());break}case 4:{ft.disabled=ct.bool();break}case 5:{ft.clickMode=ct.int32();break}case 6:{ft.formId=ct.string();break}case 7:{if(ft.value&&ft.value.length||(ft.value=[]),(zt&7)===2){let Dt=ct.uint32()+ct.pos;for(;ct.pos<Dt;)ft.value.push(ct.uint32())}else ft.value.push(ct.uint32());break}case 8:{ft.setValue=ct.bool();break}case 9:{ft.selectionVisualization=ct.int32();break}case 10:{ft.style=ct.int32();break}case 11:{ft.label=ct.string();break}case 12:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}case 13:{ft.help=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.options!=null&&ct.hasOwnProperty("options")){if(!Array.isArray(ct.options))return"options: array expected";for(let ut=0;ut<ct.options.length;++ut){let dt=$root.ButtonGroup.Option.verify(ct.options[ut]);if(dt)return"options."+dt}}if(ct.default!=null&&ct.hasOwnProperty("default")){if(!Array.isArray(ct.default))return"default: array expected";for(let ut=0;ut<ct.default.length;++ut)if(!$util.isInteger(ct.default[ut]))return"default: integer[] expected"}if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.clickMode!=null&&ct.hasOwnProperty("clickMode"))switch(ct.clickMode){default:return"clickMode: enum value expected";case 0:case 1:break}if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")){if(!Array.isArray(ct.value))return"value: array expected";for(let ut=0;ut<ct.value.length;++ut)if(!$util.isInteger(ct.value[ut]))return"value: integer[] expected"}if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.selectionVisualization!=null&&ct.hasOwnProperty("selectionVisualization"))switch(ct.selectionVisualization){default:return"selectionVisualization: enum value expected";case 0:case 1:break}if(ct.style!=null&&ct.hasOwnProperty("style"))switch(ct.style){default:return"style: enum value expected";case 0:case 1:case 2:break}if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help)?"help: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.ButtonGroup)return ct;let ut=new $root.ButtonGroup;if(ct.id!=null&&(ut.id=String(ct.id)),ct.options){if(!Array.isArray(ct.options))throw TypeError(".ButtonGroup.options: array expected");ut.options=[];for(let dt=0;dt<ct.options.length;++dt){if(typeof ct.options[dt]!="object")throw TypeError(".ButtonGroup.options: object expected");ut.options[dt]=$root.ButtonGroup.Option.fromObject(ct.options[dt])}}if(ct.default){if(!Array.isArray(ct.default))throw TypeError(".ButtonGroup.default: array expected");ut.default=[];for(let dt=0;dt<ct.default.length;++dt)ut.default[dt]=ct.default[dt]>>>0}switch(ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.clickMode){default:if(typeof ct.clickMode=="number"){ut.clickMode=ct.clickMode;break}break;case"SINGLE_SELECT":case 0:ut.clickMode=0;break;case"MULTI_SELECT":case 1:ut.clickMode=1;break}if(ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value){if(!Array.isArray(ct.value))throw TypeError(".ButtonGroup.value: array expected");ut.value=[];for(let dt=0;dt<ct.value.length;++dt)ut.value[dt]=ct.value[dt]>>>0}switch(ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.selectionVisualization){default:if(typeof ct.selectionVisualization=="number"){ut.selectionVisualization=ct.selectionVisualization;break}break;case"ONLY_SELECTED":case 0:ut.selectionVisualization=0;break;case"ALL_UP_TO_SELECTED":case 1:ut.selectionVisualization=1;break}switch(ct.style){default:if(typeof ct.style=="number"){ut.style=ct.style;break}break;case"SEGMENTED_CONTROL":case 0:ut.style=0;break;case"PILLS":case 1:ut.style=1;break;case"BORDERLESS":case 2:ut.style=2;break}if(ct.label!=null&&(ut.label=String(ct.label)),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ct.help!=null&&(ut.help=String(ct.help)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.options=[],dt.default=[],dt.value=[]),ut.defaults&&(dt.id="",dt.disabled=!1,dt.clickMode=ut.enums===String?"SINGLE_SELECT":0,dt.formId="",dt.setValue=!1,dt.selectionVisualization=ut.enums===String?"ONLY_SELECTED":0,dt.style=ut.enums===String?"SEGMENTED_CONTROL":0,dt.label="",dt.labelVisibility=null),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.options&&ct.options.length){dt.options=[];for(let ft=0;ft<ct.options.length;++ft)dt.options[ft]=$root.ButtonGroup.Option.toObject(ct.options[ft],ut)}if(ct.default&&ct.default.length){dt.default=[];for(let ft=0;ft<ct.default.length;++ft)dt.default[ft]=ct.default[ft]}if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.clickMode!=null&&ct.hasOwnProperty("clickMode")&&(dt.clickMode=ut.enums===String?$root.ButtonGroup.ClickMode[ct.clickMode]===void 0?ct.clickMode:$root.ButtonGroup.ClickMode[ct.clickMode]:ct.clickMode),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value&&ct.value.length){dt.value=[];for(let ft=0;ft<ct.value.length;++ft)dt.value[ft]=ct.value[ft]}return ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.selectionVisualization!=null&&ct.hasOwnProperty("selectionVisualization")&&(dt.selectionVisualization=ut.enums===String?$root.ButtonGroup.SelectionVisualization[ct.selectionVisualization]===void 0?ct.selectionVisualization:$root.ButtonGroup.SelectionVisualization[ct.selectionVisualization]:ct.selectionVisualization),ct.style!=null&&ct.hasOwnProperty("style")&&(dt.style=ut.enums===String?$root.ButtonGroup.Style[ct.style]===void 0?ct.style:$root.ButtonGroup.Style[ct.style]:ct.style),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help,ut.oneofs&&(dt._help="help")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/ButtonGroup"},ot.ClickMode=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="SINGLE_SELECT"]=0,ut[ct[1]="MULTI_SELECT"]=1,ut}(),ot.Option=function(){function ct(dt){if(dt)for(let ft=Object.keys(dt),zt=0;zt<ft.length;++zt)dt[ft[zt]]!=null&&(this[ft[zt]]=dt[ft[zt]])}ct.prototype.content="",ct.prototype.selectedContent=null,ct.prototype.contentIcon=null,ct.prototype.selectedContentIcon=null;let ut;return Object.defineProperty(ct.prototype,"_selectedContent",{get:$util.oneOfGetter(ut=["selectedContent"]),set:$util.oneOfSetter(ut)}),Object.defineProperty(ct.prototype,"_contentIcon",{get:$util.oneOfGetter(ut=["contentIcon"]),set:$util.oneOfSetter(ut)}),Object.defineProperty(ct.prototype,"_selectedContentIcon",{get:$util.oneOfGetter(ut=["selectedContentIcon"]),set:$util.oneOfSetter(ut)}),ct.create=function(dt){return new ct(dt)},ct.encode=function(dt,ft){return ft||(ft=$Writer.create()),dt.content!=null&&Object.hasOwnProperty.call(dt,"content")&&ft.uint32(10).string(dt.content),dt.selectedContent!=null&&Object.hasOwnProperty.call(dt,"selectedContent")&&ft.uint32(18).string(dt.selectedContent),dt.contentIcon!=null&&Object.hasOwnProperty.call(dt,"contentIcon")&&ft.uint32(26).string(dt.contentIcon),dt.selectedContentIcon!=null&&Object.hasOwnProperty.call(dt,"selectedContentIcon")&&ft.uint32(34).string(dt.selectedContentIcon),ft},ct.encodeDelimited=function(dt,ft){return this.encode(dt,ft).ldelim()},ct.decode=function(dt,ft){dt instanceof $Reader||(dt=$Reader.create(dt));let zt=ft===void 0?dt.len:dt.pos+ft,Dt=new $root.ButtonGroup.Option;for(;dt.pos<zt;){let St=dt.uint32();switch(St>>>3){case 1:{Dt.content=dt.string();break}case 2:{Dt.selectedContent=dt.string();break}case 3:{Dt.contentIcon=dt.string();break}case 4:{Dt.selectedContentIcon=dt.string();break}default:dt.skipType(St&7);break}}return Dt},ct.decodeDelimited=function(dt){return dt instanceof $Reader||(dt=new $Reader(dt)),this.decode(dt,dt.uint32())},ct.verify=function(dt){return typeof dt!="object"||dt===null?"object expected":dt.content!=null&&dt.hasOwnProperty("content")&&!$util.isString(dt.content)?"content: string expected":dt.selectedContent!=null&&dt.hasOwnProperty("selectedContent")&&!$util.isString(dt.selectedContent)?"selectedContent: string expected":dt.contentIcon!=null&&dt.hasOwnProperty("contentIcon")&&!$util.isString(dt.contentIcon)?"contentIcon: string expected":dt.selectedContentIcon!=null&&dt.hasOwnProperty("selectedContentIcon")&&!$util.isString(dt.selectedContentIcon)?"selectedContentIcon: string expected":null},ct.fromObject=function(dt){if(dt instanceof $root.ButtonGroup.Option)return dt;let ft=new $root.ButtonGroup.Option;return dt.content!=null&&(ft.content=String(dt.content)),dt.selectedContent!=null&&(ft.selectedContent=String(dt.selectedContent)),dt.contentIcon!=null&&(ft.contentIcon=String(dt.contentIcon)),dt.selectedContentIcon!=null&&(ft.selectedContentIcon=String(dt.selectedContentIcon)),ft},ct.toObject=function(dt,ft){ft||(ft={});let zt={};return ft.defaults&&(zt.content=""),dt.content!=null&&dt.hasOwnProperty("content")&&(zt.content=dt.content),dt.selectedContent!=null&&dt.hasOwnProperty("selectedContent")&&(zt.selectedContent=dt.selectedContent,ft.oneofs&&(zt._selectedContent="selectedContent")),dt.contentIcon!=null&&dt.hasOwnProperty("contentIcon")&&(zt.contentIcon=dt.contentIcon,ft.oneofs&&(zt._contentIcon="contentIcon")),dt.selectedContentIcon!=null&&dt.hasOwnProperty("selectedContentIcon")&&(zt.selectedContentIcon=dt.selectedContentIcon,ft.oneofs&&(zt._selectedContentIcon="selectedContentIcon")),zt},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(dt){return dt===void 0&&(dt="type.googleapis.com"),dt+"/ButtonGroup.Option"},ct}(),ot.SelectionVisualization=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="ONLY_SELECTED"]=0,ut[ct[1]="ALL_UP_TO_SELECTED"]=1,ut}(),ot.Style=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="SEGMENTED_CONTROL"]=0,ut[ct[1]="PILLS"]=1,ut[ct[2]="BORDERLESS"]=2,ut}(),ot})(),$root.CameraInput=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.help="",ot.prototype.formId="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(26).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(34).string(et.formId),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(40).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(50).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.CameraInput;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.help=et.string();break}case 4:{dt.formId=et.string();break}case 5:{dt.disabled=et.bool();break}case 6:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.CameraInput)return et;let ct=new $root.CameraInput;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.help="",ut.formId="",ut.disabled=!1,ut.labelVisibility=null),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/CameraInput"},ot})(),$root.ChatInput=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.placeholder="",ot.prototype.maxChars=0,ot.prototype.disabled=!1,ot.prototype.value="",ot.prototype.setValue=!1,ot.prototype.default="",ot.prototype.position=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.placeholder!=null&&Object.hasOwnProperty.call(et,"placeholder")&&ct.uint32(18).string(et.placeholder),et.maxChars!=null&&Object.hasOwnProperty.call(et,"maxChars")&&ct.uint32(24).uint32(et.maxChars),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(32).bool(et.disabled),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(42).string(et.value),et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(48).bool(et.setValue),et.default!=null&&Object.hasOwnProperty.call(et,"default")&&ct.uint32(58).string(et.default),et.position!=null&&Object.hasOwnProperty.call(et,"position")&&ct.uint32(64).int32(et.position),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ChatInput;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.placeholder=et.string();break}case 3:{dt.maxChars=et.uint32();break}case 4:{dt.disabled=et.bool();break}case 5:{dt.value=et.string();break}case 6:{dt.setValue=et.bool();break}case 7:{dt.default=et.string();break}case 8:{dt.position=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.placeholder!=null&&et.hasOwnProperty("placeholder")&&!$util.isString(et.placeholder))return"placeholder: string expected";if(et.maxChars!=null&&et.hasOwnProperty("maxChars")&&!$util.isInteger(et.maxChars))return"maxChars: integer expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.value!=null&&et.hasOwnProperty("value")&&!$util.isString(et.value))return"value: string expected";if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.default!=null&&et.hasOwnProperty("default")&&!$util.isString(et.default))return"default: string expected";if(et.position!=null&&et.hasOwnProperty("position"))switch(et.position){default:return"position: enum value expected";case 0:break}return null},ot.fromObject=function(et){if(et instanceof $root.ChatInput)return et;let ct=new $root.ChatInput;switch(et.id!=null&&(ct.id=String(et.id)),et.placeholder!=null&&(ct.placeholder=String(et.placeholder)),et.maxChars!=null&&(ct.maxChars=et.maxChars>>>0),et.disabled!=null&&(ct.disabled=!!et.disabled),et.value!=null&&(ct.value=String(et.value)),et.setValue!=null&&(ct.setValue=!!et.setValue),et.default!=null&&(ct.default=String(et.default)),et.position){default:if(typeof et.position=="number"){ct.position=et.position;break}break;case"BOTTOM":case 0:ct.position=0;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.placeholder="",ut.maxChars=0,ut.disabled=!1,ut.value="",ut.setValue=!1,ut.default="",ut.position=ct.enums===String?"BOTTOM":0),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.placeholder!=null&&et.hasOwnProperty("placeholder")&&(ut.placeholder=et.placeholder),et.maxChars!=null&&et.hasOwnProperty("maxChars")&&(ut.maxChars=et.maxChars),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.default!=null&&et.hasOwnProperty("default")&&(ut.default=et.default),et.position!=null&&et.hasOwnProperty("position")&&(ut.position=ct.enums===String?$root.ChatInput.Position[et.position]===void 0?et.position:$root.ChatInput.Position[et.position]:et.position),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ChatInput"},ot.Position=function(){const et={},ct=Object.create(et);return ct[et[0]="BOTTOM"]=0,ct}(),ot})(),Checkbox$1=$root.Checkbox=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default=!1,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=!1,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.type=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&Object.hasOwnProperty.call(et,"default")&&ct.uint32(24).bool(et.default),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(42).string(et.formId),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(48).bool(et.value),et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(56).bool(et.setValue),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(64).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(74).fork()).ldelim(),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(80).int32(et.type),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Checkbox;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.default=et.bool();break}case 4:{dt.help=et.string();break}case 5:{dt.formId=et.string();break}case 6:{dt.value=et.bool();break}case 7:{dt.setValue=et.bool();break}case 8:{dt.disabled=et.bool();break}case 9:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}case 10:{dt.type=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.default!=null&&et.hasOwnProperty("default")&&typeof et.default!="boolean")return"default: boolean expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.value!=null&&et.hasOwnProperty("value")&&typeof et.value!="boolean")return"value: boolean expected";if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}if(et.type!=null&&et.hasOwnProperty("type"))switch(et.type){default:return"type: enum value expected";case 0:case 1:break}return null},ot.fromObject=function(et){if(et instanceof $root.Checkbox)return et;let ct=new $root.Checkbox;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default!=null&&(ct.default=!!et.default),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.value!=null&&(ct.value=!!et.value),et.setValue!=null&&(ct.setValue=!!et.setValue),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}switch(et.type){default:if(typeof et.type=="number"){ct.type=et.type;break}break;case"DEFAULT":case 0:ct.type=0;break;case"TOGGLE":case 1:ct.type=1;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.default=!1,ut.help="",ut.formId="",ut.value=!1,ut.setValue=!1,ut.disabled=!1,ut.labelVisibility=null,ut.type=ct.enums===String?"DEFAULT":0),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default!=null&&et.hasOwnProperty("default")&&(ut.default=et.default),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=ct.enums===String?$root.Checkbox.StyleType[et.type]===void 0?et.type:$root.Checkbox.StyleType[et.type]:et.type),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Checkbox"},ot.StyleType=function(){const et={},ct=Object.create(et);return ct[et[0]="DEFAULT"]=0,ct[et[1]="TOGGLE"]=1,ct}(),ot})(),$root.Code=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.codeText="",ot.prototype.language="",ot.prototype.showLineNumbers=!1,ot.prototype.wrapLines=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.codeText!=null&&Object.hasOwnProperty.call(et,"codeText")&&ct.uint32(10).string(et.codeText),et.language!=null&&Object.hasOwnProperty.call(et,"language")&&ct.uint32(18).string(et.language),et.showLineNumbers!=null&&Object.hasOwnProperty.call(et,"showLineNumbers")&&ct.uint32(24).bool(et.showLineNumbers),et.wrapLines!=null&&Object.hasOwnProperty.call(et,"wrapLines")&&ct.uint32(32).bool(et.wrapLines),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Code;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.codeText=et.string();break}case 2:{dt.language=et.string();break}case 3:{dt.showLineNumbers=et.bool();break}case 4:{dt.wrapLines=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.codeText!=null&&et.hasOwnProperty("codeText")&&!$util.isString(et.codeText)?"codeText: string expected":et.language!=null&&et.hasOwnProperty("language")&&!$util.isString(et.language)?"language: string expected":et.showLineNumbers!=null&&et.hasOwnProperty("showLineNumbers")&&typeof et.showLineNumbers!="boolean"?"showLineNumbers: boolean expected":et.wrapLines!=null&&et.hasOwnProperty("wrapLines")&&typeof et.wrapLines!="boolean"?"wrapLines: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Code)return et;let ct=new $root.Code;return et.codeText!=null&&(ct.codeText=String(et.codeText)),et.language!=null&&(ct.language=String(et.language)),et.showLineNumbers!=null&&(ct.showLineNumbers=!!et.showLineNumbers),et.wrapLines!=null&&(ct.wrapLines=!!et.wrapLines),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.codeText="",ut.language="",ut.showLineNumbers=!1,ut.wrapLines=!1),et.codeText!=null&&et.hasOwnProperty("codeText")&&(ut.codeText=et.codeText),et.language!=null&&et.hasOwnProperty("language")&&(ut.language=et.language),et.showLineNumbers!=null&&et.hasOwnProperty("showLineNumbers")&&(ut.showLineNumbers=et.showLineNumbers),et.wrapLines!=null&&et.hasOwnProperty("wrapLines")&&(ut.wrapLines=et.wrapLines),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Code"},ot})(),$root.ColorPicker=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default="",ot.prototype.help="",ot.prototype.formId="",ot.prototype.value="",ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&Object.hasOwnProperty.call(et,"default")&&ct.uint32(26).string(et.default),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(42).string(et.formId),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(50).string(et.value),et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(56).bool(et.setValue),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(64).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(74).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ColorPicker;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.default=et.string();break}case 4:{dt.help=et.string();break}case 5:{dt.formId=et.string();break}case 6:{dt.value=et.string();break}case 7:{dt.setValue=et.bool();break}case 8:{dt.disabled=et.bool();break}case 9:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.default!=null&&et.hasOwnProperty("default")&&!$util.isString(et.default))return"default: string expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.value!=null&&et.hasOwnProperty("value")&&!$util.isString(et.value))return"value: string expected";if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.ColorPicker)return et;let ct=new $root.ColorPicker;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default!=null&&(ct.default=String(et.default)),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.value!=null&&(ct.value=String(et.value)),et.setValue!=null&&(ct.setValue=!!et.setValue),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.default="",ut.help="",ut.formId="",ut.value="",ut.setValue=!1,ut.disabled=!1,ut.labelVisibility=null),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default!=null&&et.hasOwnProperty("default")&&(ut.default=et.default),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ColorPicker"},ot})(),$root.DataFrame=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.prototype.index=null,ot.prototype.columns=null,ot.prototype.style=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.Table.encode(et.data,ct.uint32(10).fork()).ldelim(),et.index!=null&&Object.hasOwnProperty.call(et,"index")&&$root.Index.encode(et.index,ct.uint32(18).fork()).ldelim(),et.columns!=null&&Object.hasOwnProperty.call(et,"columns")&&$root.Index.encode(et.columns,ct.uint32(26).fork()).ldelim(),et.style!=null&&Object.hasOwnProperty.call(et,"style")&&$root.TableStyle.encode(et.style,ct.uint32(34).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DataFrame;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.Table.decode(et,et.uint32());break}case 2:{dt.index=$root.Index.decode(et,et.uint32());break}case 3:{dt.columns=$root.Index.decode(et,et.uint32());break}case 4:{dt.style=$root.TableStyle.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.Table.verify(et.data);if(ct)return"data."+ct}if(et.index!=null&&et.hasOwnProperty("index")){let ct=$root.Index.verify(et.index);if(ct)return"index."+ct}if(et.columns!=null&&et.hasOwnProperty("columns")){let ct=$root.Index.verify(et.columns);if(ct)return"columns."+ct}if(et.style!=null&&et.hasOwnProperty("style")){let ct=$root.TableStyle.verify(et.style);if(ct)return"style."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.DataFrame)return et;let ct=new $root.DataFrame;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".DataFrame.data: object expected");ct.data=$root.Table.fromObject(et.data)}if(et.index!=null){if(typeof et.index!="object")throw TypeError(".DataFrame.index: object expected");ct.index=$root.Index.fromObject(et.index)}if(et.columns!=null){if(typeof et.columns!="object")throw TypeError(".DataFrame.columns: object expected");ct.columns=$root.Index.fromObject(et.columns)}if(et.style!=null){if(typeof et.style!="object")throw TypeError(".DataFrame.style: object expected");ct.style=$root.TableStyle.fromObject(et.style)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null,ut.index=null,ut.columns=null,ut.style=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.Table.toObject(et.data,ct)),et.index!=null&&et.hasOwnProperty("index")&&(ut.index=$root.Index.toObject(et.index,ct)),et.columns!=null&&et.hasOwnProperty("columns")&&(ut.columns=$root.Index.toObject(et.columns,ct)),et.style!=null&&et.hasOwnProperty("style")&&(ut.style=$root.TableStyle.toObject(et.style,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DataFrame"},ot})(),$root.Index=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.plainIndex=null,ot.prototype.rangeIndex=null,ot.prototype.multiIndex=null,ot.prototype.datetimeIndex=null,ot.prototype.timedeltaIndex=null,ot.prototype.int_64Index=null,ot.prototype.float_64Index=null;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.plainIndex!=null&&Object.hasOwnProperty.call(ct,"plainIndex")&&$root.PlainIndex.encode(ct.plainIndex,ut.uint32(10).fork()).ldelim(),ct.rangeIndex!=null&&Object.hasOwnProperty.call(ct,"rangeIndex")&&$root.RangeIndex.encode(ct.rangeIndex,ut.uint32(18).fork()).ldelim(),ct.multiIndex!=null&&Object.hasOwnProperty.call(ct,"multiIndex")&&$root.MultiIndex.encode(ct.multiIndex,ut.uint32(34).fork()).ldelim(),ct.datetimeIndex!=null&&Object.hasOwnProperty.call(ct,"datetimeIndex")&&$root.DatetimeIndex.encode(ct.datetimeIndex,ut.uint32(50).fork()).ldelim(),ct.timedeltaIndex!=null&&Object.hasOwnProperty.call(ct,"timedeltaIndex")&&$root.TimedeltaIndex.encode(ct.timedeltaIndex,ut.uint32(58).fork()).ldelim(),ct.int_64Index!=null&&Object.hasOwnProperty.call(ct,"int_64Index")&&$root.Int64Index.encode(ct.int_64Index,ut.uint32(74).fork()).ldelim(),ct.float_64Index!=null&&Object.hasOwnProperty.call(ct,"float_64Index")&&$root.Float64Index.encode(ct.float_64Index,ut.uint32(90).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Index;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.plainIndex=$root.PlainIndex.decode(ct,ct.uint32());break}case 2:{ft.rangeIndex=$root.RangeIndex.decode(ct,ct.uint32());break}case 4:{ft.multiIndex=$root.MultiIndex.decode(ct,ct.uint32());break}case 6:{ft.datetimeIndex=$root.DatetimeIndex.decode(ct,ct.uint32());break}case 7:{ft.timedeltaIndex=$root.TimedeltaIndex.decode(ct,ct.uint32());break}case 9:{ft.int_64Index=$root.Int64Index.decode(ct,ct.uint32());break}case 11:{ft.float_64Index=$root.Float64Index.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.plainIndex!=null&&ct.hasOwnProperty("plainIndex")){ut.type=1;{let dt=$root.PlainIndex.verify(ct.plainIndex);if(dt)return"plainIndex."+dt}}if(ct.rangeIndex!=null&&ct.hasOwnProperty("rangeIndex")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.RangeIndex.verify(ct.rangeIndex);if(dt)return"rangeIndex."+dt}}if(ct.multiIndex!=null&&ct.hasOwnProperty("multiIndex")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.MultiIndex.verify(ct.multiIndex);if(dt)return"multiIndex."+dt}}if(ct.datetimeIndex!=null&&ct.hasOwnProperty("datetimeIndex")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DatetimeIndex.verify(ct.datetimeIndex);if(dt)return"datetimeIndex."+dt}}if(ct.timedeltaIndex!=null&&ct.hasOwnProperty("timedeltaIndex")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.TimedeltaIndex.verify(ct.timedeltaIndex);if(dt)return"timedeltaIndex."+dt}}if(ct.int_64Index!=null&&ct.hasOwnProperty("int_64Index")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Int64Index.verify(ct.int_64Index);if(dt)return"int_64Index."+dt}}if(ct.float_64Index!=null&&ct.hasOwnProperty("float_64Index")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Float64Index.verify(ct.float_64Index);if(dt)return"float_64Index."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.Index)return ct;let ut=new $root.Index;if(ct.plainIndex!=null){if(typeof ct.plainIndex!="object")throw TypeError(".Index.plainIndex: object expected");ut.plainIndex=$root.PlainIndex.fromObject(ct.plainIndex)}if(ct.rangeIndex!=null){if(typeof ct.rangeIndex!="object")throw TypeError(".Index.rangeIndex: object expected");ut.rangeIndex=$root.RangeIndex.fromObject(ct.rangeIndex)}if(ct.multiIndex!=null){if(typeof ct.multiIndex!="object")throw TypeError(".Index.multiIndex: object expected");ut.multiIndex=$root.MultiIndex.fromObject(ct.multiIndex)}if(ct.datetimeIndex!=null){if(typeof ct.datetimeIndex!="object")throw TypeError(".Index.datetimeIndex: object expected");ut.datetimeIndex=$root.DatetimeIndex.fromObject(ct.datetimeIndex)}if(ct.timedeltaIndex!=null){if(typeof ct.timedeltaIndex!="object")throw TypeError(".Index.timedeltaIndex: object expected");ut.timedeltaIndex=$root.TimedeltaIndex.fromObject(ct.timedeltaIndex)}if(ct.int_64Index!=null){if(typeof ct.int_64Index!="object")throw TypeError(".Index.int_64Index: object expected");ut.int_64Index=$root.Int64Index.fromObject(ct.int_64Index)}if(ct.float_64Index!=null){if(typeof ct.float_64Index!="object")throw TypeError(".Index.float_64Index: object expected");ut.float_64Index=$root.Float64Index.fromObject(ct.float_64Index)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ct.plainIndex!=null&&ct.hasOwnProperty("plainIndex")&&(dt.plainIndex=$root.PlainIndex.toObject(ct.plainIndex,ut),ut.oneofs&&(dt.type="plainIndex")),ct.rangeIndex!=null&&ct.hasOwnProperty("rangeIndex")&&(dt.rangeIndex=$root.RangeIndex.toObject(ct.rangeIndex,ut),ut.oneofs&&(dt.type="rangeIndex")),ct.multiIndex!=null&&ct.hasOwnProperty("multiIndex")&&(dt.multiIndex=$root.MultiIndex.toObject(ct.multiIndex,ut),ut.oneofs&&(dt.type="multiIndex")),ct.datetimeIndex!=null&&ct.hasOwnProperty("datetimeIndex")&&(dt.datetimeIndex=$root.DatetimeIndex.toObject(ct.datetimeIndex,ut),ut.oneofs&&(dt.type="datetimeIndex")),ct.timedeltaIndex!=null&&ct.hasOwnProperty("timedeltaIndex")&&(dt.timedeltaIndex=$root.TimedeltaIndex.toObject(ct.timedeltaIndex,ut),ut.oneofs&&(dt.type="timedeltaIndex")),ct.int_64Index!=null&&ct.hasOwnProperty("int_64Index")&&(dt.int_64Index=$root.Int64Index.toObject(ct.int_64Index,ut),ut.oneofs&&(dt.type="int_64Index")),ct.float_64Index!=null&&ct.hasOwnProperty("float_64Index")&&(dt.float_64Index=$root.Float64Index.toObject(ct.float_64Index,ut),ut.oneofs&&(dt.type="float_64Index")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Index"},ot})(),$root.PlainIndex=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.AnyArray.encode(et.data,ct.uint32(10).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PlainIndex;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.AnyArray.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.AnyArray.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.PlainIndex)return et;let ct=new $root.PlainIndex;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".PlainIndex.data: object expected");ct.data=$root.AnyArray.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.AnyArray.toObject(et.data,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PlainIndex"},ot})(),$root.RangeIndex=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.start=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.stop=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.start!=null&&Object.hasOwnProperty.call(et,"start")&&ct.uint32(8).int64(et.start),et.stop!=null&&Object.hasOwnProperty.call(et,"stop")&&ct.uint32(16).int64(et.stop),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.RangeIndex;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.start=et.int64();break}case 2:{dt.stop=et.int64();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.start!=null&&et.hasOwnProperty("start")&&!$util.isInteger(et.start)&&!(et.start&&$util.isInteger(et.start.low)&&$util.isInteger(et.start.high))?"start: integer|Long expected":et.stop!=null&&et.hasOwnProperty("stop")&&!$util.isInteger(et.stop)&&!(et.stop&&$util.isInteger(et.stop.low)&&$util.isInteger(et.stop.high))?"stop: integer|Long expected":null},ot.fromObject=function(et){if(et instanceof $root.RangeIndex)return et;let ct=new $root.RangeIndex;return et.start!=null&&($util.Long?(ct.start=$util.Long.fromValue(et.start)).unsigned=!1:typeof et.start=="string"?ct.start=parseInt(et.start,10):typeof et.start=="number"?ct.start=et.start:typeof et.start=="object"&&(ct.start=new $util.LongBits(et.start.low>>>0,et.start.high>>>0).toNumber())),et.stop!=null&&($util.Long?(ct.stop=$util.Long.fromValue(et.stop)).unsigned=!1:typeof et.stop=="string"?ct.stop=parseInt(et.stop,10):typeof et.stop=="number"?ct.stop=et.stop:typeof et.stop=="object"&&(ct.stop=new $util.LongBits(et.stop.low>>>0,et.stop.high>>>0).toNumber())),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if(ct.defaults){if($util.Long){let dt=new $util.Long(0,0,!1);ut.start=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.start=ct.longs===String?"0":0;if($util.Long){let dt=new $util.Long(0,0,!1);ut.stop=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.stop=ct.longs===String?"0":0}return et.start!=null&&et.hasOwnProperty("start")&&(typeof et.start=="number"?ut.start=ct.longs===String?String(et.start):et.start:ut.start=ct.longs===String?$util.Long.prototype.toString.call(et.start):ct.longs===Number?new $util.LongBits(et.start.low>>>0,et.start.high>>>0).toNumber():et.start),et.stop!=null&&et.hasOwnProperty("stop")&&(typeof et.stop=="number"?ut.stop=ct.longs===String?String(et.stop):et.stop:ut.stop=ct.longs===String?$util.Long.prototype.toString.call(et.stop):ct.longs===Number?new $util.LongBits(et.stop.low>>>0,et.stop.high>>>0).toNumber():et.stop),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/RangeIndex"},ot})(),$root.MultiIndex=(()=>{function ot(et){if(this.levels=[],this.labels=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.levels=$util.emptyArray,ot.prototype.labels=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.levels!=null&&et.levels.length)for(let ut=0;ut<et.levels.length;++ut)$root.Index.encode(et.levels[ut],ct.uint32(10).fork()).ldelim();if(et.labels!=null&&et.labels.length)for(let ut=0;ut<et.labels.length;++ut)$root.Int32Array.encode(et.labels[ut],ct.uint32(18).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.MultiIndex;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.levels&&dt.levels.length||(dt.levels=[]),dt.levels.push($root.Index.decode(et,et.uint32()));break}case 2:{dt.labels&&dt.labels.length||(dt.labels=[]),dt.labels.push($root.Int32Array.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.levels!=null&&et.hasOwnProperty("levels")){if(!Array.isArray(et.levels))return"levels: array expected";for(let ct=0;ct<et.levels.length;++ct){let ut=$root.Index.verify(et.levels[ct]);if(ut)return"levels."+ut}}if(et.labels!=null&&et.hasOwnProperty("labels")){if(!Array.isArray(et.labels))return"labels: array expected";for(let ct=0;ct<et.labels.length;++ct){let ut=$root.Int32Array.verify(et.labels[ct]);if(ut)return"labels."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.MultiIndex)return et;let ct=new $root.MultiIndex;if(et.levels){if(!Array.isArray(et.levels))throw TypeError(".MultiIndex.levels: array expected");ct.levels=[];for(let ut=0;ut<et.levels.length;++ut){if(typeof et.levels[ut]!="object")throw TypeError(".MultiIndex.levels: object expected");ct.levels[ut]=$root.Index.fromObject(et.levels[ut])}}if(et.labels){if(!Array.isArray(et.labels))throw TypeError(".MultiIndex.labels: array expected");ct.labels=[];for(let ut=0;ut<et.labels.length;++ut){if(typeof et.labels[ut]!="object")throw TypeError(".MultiIndex.labels: object expected");ct.labels[ut]=$root.Int32Array.fromObject(et.labels[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.levels=[],ut.labels=[]),et.levels&&et.levels.length){ut.levels=[];for(let dt=0;dt<et.levels.length;++dt)ut.levels[dt]=$root.Index.toObject(et.levels[dt],ct)}if(et.labels&&et.labels.length){ut.labels=[];for(let dt=0;dt<et.labels.length;++dt)ut.labels[dt]=$root.Int32Array.toObject(et.labels[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/MultiIndex"},ot})(),$root.DatetimeIndex=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.StringArray.encode(et.data,ct.uint32(10).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DatetimeIndex;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.StringArray.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.StringArray.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.DatetimeIndex)return et;let ct=new $root.DatetimeIndex;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".DatetimeIndex.data: object expected");ct.data=$root.StringArray.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.StringArray.toObject(et.data,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DatetimeIndex"},ot})(),$root.TimedeltaIndex=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.Int64Array.encode(et.data,ct.uint32(10).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.TimedeltaIndex;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.Int64Array.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.Int64Array.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.TimedeltaIndex)return et;let ct=new $root.TimedeltaIndex;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".TimedeltaIndex.data: object expected");ct.data=$root.Int64Array.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.Int64Array.toObject(et.data,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/TimedeltaIndex"},ot})(),$root.Int64Index=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.Int64Array.encode(et.data,ct.uint32(10).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Int64Index;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.Int64Array.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.Int64Array.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.Int64Index)return et;let ct=new $root.Int64Index;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".Int64Index.data: object expected");ct.data=$root.Int64Array.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.Int64Array.toObject(et.data,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Int64Index"},ot})(),$root.Float64Index=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.DoubleArray.encode(et.data,ct.uint32(10).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Float64Index;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.data=$root.DoubleArray.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.DoubleArray.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.Float64Index)return et;let ct=new $root.Float64Index;if(et.data!=null){if(typeof et.data!="object")throw TypeError(".Float64Index.data: object expected");ct.data=$root.DoubleArray.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.data=null),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.DoubleArray.toObject(et.data,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Float64Index"},ot})(),$root.CSSStyle=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.property="",ot.prototype.value="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.property!=null&&Object.hasOwnProperty.call(et,"property")&&ct.uint32(10).string(et.property),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(18).string(et.value),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.CSSStyle;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.property=et.string();break}case 2:{dt.value=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.property!=null&&et.hasOwnProperty("property")&&!$util.isString(et.property)?"property: string expected":et.value!=null&&et.hasOwnProperty("value")&&!$util.isString(et.value)?"value: string expected":null},ot.fromObject=function(et){if(et instanceof $root.CSSStyle)return et;let ct=new $root.CSSStyle;return et.property!=null&&(ct.property=String(et.property)),et.value!=null&&(ct.value=String(et.value)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.property="",ut.value=""),et.property!=null&&et.hasOwnProperty("property")&&(ut.property=et.property),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/CSSStyle"},ot})(),$root.CellStyle=(()=>{function ot(et){if(this.css=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.css=$util.emptyArray,ot.prototype.displayValue="",ot.prototype.hasDisplayValue=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.css!=null&&et.css.length)for(let ut=0;ut<et.css.length;++ut)$root.CSSStyle.encode(et.css[ut],ct.uint32(10).fork()).ldelim();return et.displayValue!=null&&Object.hasOwnProperty.call(et,"displayValue")&&ct.uint32(18).string(et.displayValue),et.hasDisplayValue!=null&&Object.hasOwnProperty.call(et,"hasDisplayValue")&&ct.uint32(24).bool(et.hasDisplayValue),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.CellStyle;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.css&&dt.css.length||(dt.css=[]),dt.css.push($root.CSSStyle.decode(et,et.uint32()));break}case 2:{dt.displayValue=et.string();break}case 3:{dt.hasDisplayValue=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.css!=null&&et.hasOwnProperty("css")){if(!Array.isArray(et.css))return"css: array expected";for(let ct=0;ct<et.css.length;++ct){let ut=$root.CSSStyle.verify(et.css[ct]);if(ut)return"css."+ut}}return et.displayValue!=null&&et.hasOwnProperty("displayValue")&&!$util.isString(et.displayValue)?"displayValue: string expected":et.hasDisplayValue!=null&&et.hasOwnProperty("hasDisplayValue")&&typeof et.hasDisplayValue!="boolean"?"hasDisplayValue: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.CellStyle)return et;let ct=new $root.CellStyle;if(et.css){if(!Array.isArray(et.css))throw TypeError(".CellStyle.css: array expected");ct.css=[];for(let ut=0;ut<et.css.length;++ut){if(typeof et.css[ut]!="object")throw TypeError(".CellStyle.css: object expected");ct.css[ut]=$root.CSSStyle.fromObject(et.css[ut])}}return et.displayValue!=null&&(ct.displayValue=String(et.displayValue)),et.hasDisplayValue!=null&&(ct.hasDisplayValue=!!et.hasDisplayValue),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.css=[]),ct.defaults&&(ut.displayValue="",ut.hasDisplayValue=!1),et.css&&et.css.length){ut.css=[];for(let dt=0;dt<et.css.length;++dt)ut.css[dt]=$root.CSSStyle.toObject(et.css[dt],ct)}return et.displayValue!=null&&et.hasOwnProperty("displayValue")&&(ut.displayValue=et.displayValue),et.hasDisplayValue!=null&&et.hasOwnProperty("hasDisplayValue")&&(ut.hasDisplayValue=et.hasDisplayValue),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/CellStyle"},ot})(),$root.CellStyleArray=(()=>{function ot(et){if(this.styles=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.styles=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.styles!=null&&et.styles.length)for(let ut=0;ut<et.styles.length;++ut)$root.CellStyle.encode(et.styles[ut],ct.uint32(10).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.CellStyleArray;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.styles&&dt.styles.length||(dt.styles=[]),dt.styles.push($root.CellStyle.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.styles!=null&&et.hasOwnProperty("styles")){if(!Array.isArray(et.styles))return"styles: array expected";for(let ct=0;ct<et.styles.length;++ct){let ut=$root.CellStyle.verify(et.styles[ct]);if(ut)return"styles."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.CellStyleArray)return et;let ct=new $root.CellStyleArray;if(et.styles){if(!Array.isArray(et.styles))throw TypeError(".CellStyleArray.styles: array expected");ct.styles=[];for(let ut=0;ut<et.styles.length;++ut){if(typeof et.styles[ut]!="object")throw TypeError(".CellStyleArray.styles: object expected");ct.styles[ut]=$root.CellStyle.fromObject(et.styles[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.styles=[]),et.styles&&et.styles.length){ut.styles=[];for(let dt=0;dt<et.styles.length;++dt)ut.styles[dt]=$root.CellStyle.toObject(et.styles[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/CellStyleArray"},ot})(),$root.AnyArray=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.strings=null,ot.prototype.doubles=null,ot.prototype.int64s=null,ot.prototype.datetimes=null,ot.prototype.timedeltas=null;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["strings","doubles","int64s","datetimes","timedeltas"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.strings!=null&&Object.hasOwnProperty.call(ct,"strings")&&$root.StringArray.encode(ct.strings,ut.uint32(10).fork()).ldelim(),ct.doubles!=null&&Object.hasOwnProperty.call(ct,"doubles")&&$root.DoubleArray.encode(ct.doubles,ut.uint32(18).fork()).ldelim(),ct.int64s!=null&&Object.hasOwnProperty.call(ct,"int64s")&&$root.Int64Array.encode(ct.int64s,ut.uint32(26).fork()).ldelim(),ct.datetimes!=null&&Object.hasOwnProperty.call(ct,"datetimes")&&$root.StringArray.encode(ct.datetimes,ut.uint32(34).fork()).ldelim(),ct.timedeltas!=null&&Object.hasOwnProperty.call(ct,"timedeltas")&&$root.Int64Array.encode(ct.timedeltas,ut.uint32(42).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.AnyArray;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.strings=$root.StringArray.decode(ct,ct.uint32());break}case 2:{ft.doubles=$root.DoubleArray.decode(ct,ct.uint32());break}case 3:{ft.int64s=$root.Int64Array.decode(ct,ct.uint32());break}case 4:{ft.datetimes=$root.StringArray.decode(ct,ct.uint32());break}case 5:{ft.timedeltas=$root.Int64Array.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.strings!=null&&ct.hasOwnProperty("strings")){ut.type=1;{let dt=$root.StringArray.verify(ct.strings);if(dt)return"strings."+dt}}if(ct.doubles!=null&&ct.hasOwnProperty("doubles")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DoubleArray.verify(ct.doubles);if(dt)return"doubles."+dt}}if(ct.int64s!=null&&ct.hasOwnProperty("int64s")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Int64Array.verify(ct.int64s);if(dt)return"int64s."+dt}}if(ct.datetimes!=null&&ct.hasOwnProperty("datetimes")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.StringArray.verify(ct.datetimes);if(dt)return"datetimes."+dt}}if(ct.timedeltas!=null&&ct.hasOwnProperty("timedeltas")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Int64Array.verify(ct.timedeltas);if(dt)return"timedeltas."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.AnyArray)return ct;let ut=new $root.AnyArray;if(ct.strings!=null){if(typeof ct.strings!="object")throw TypeError(".AnyArray.strings: object expected");ut.strings=$root.StringArray.fromObject(ct.strings)}if(ct.doubles!=null){if(typeof ct.doubles!="object")throw TypeError(".AnyArray.doubles: object expected");ut.doubles=$root.DoubleArray.fromObject(ct.doubles)}if(ct.int64s!=null){if(typeof ct.int64s!="object")throw TypeError(".AnyArray.int64s: object expected");ut.int64s=$root.Int64Array.fromObject(ct.int64s)}if(ct.datetimes!=null){if(typeof ct.datetimes!="object")throw TypeError(".AnyArray.datetimes: object expected");ut.datetimes=$root.StringArray.fromObject(ct.datetimes)}if(ct.timedeltas!=null){if(typeof ct.timedeltas!="object")throw TypeError(".AnyArray.timedeltas: object expected");ut.timedeltas=$root.Int64Array.fromObject(ct.timedeltas)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ct.strings!=null&&ct.hasOwnProperty("strings")&&(dt.strings=$root.StringArray.toObject(ct.strings,ut),ut.oneofs&&(dt.type="strings")),ct.doubles!=null&&ct.hasOwnProperty("doubles")&&(dt.doubles=$root.DoubleArray.toObject(ct.doubles,ut),ut.oneofs&&(dt.type="doubles")),ct.int64s!=null&&ct.hasOwnProperty("int64s")&&(dt.int64s=$root.Int64Array.toObject(ct.int64s,ut),ut.oneofs&&(dt.type="int64s")),ct.datetimes!=null&&ct.hasOwnProperty("datetimes")&&(dt.datetimes=$root.StringArray.toObject(ct.datetimes,ut),ut.oneofs&&(dt.type="datetimes")),ct.timedeltas!=null&&ct.hasOwnProperty("timedeltas")&&(dt.timedeltas=$root.Int64Array.toObject(ct.timedeltas,ut),ut.oneofs&&(dt.type="timedeltas")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/AnyArray"},ot})(),$root.Table=(()=>{function ot(et){if(this.cols=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.cols=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.cols!=null&&et.cols.length)for(let ut=0;ut<et.cols.length;++ut)$root.AnyArray.encode(et.cols[ut],ct.uint32(10).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Table;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.cols&&dt.cols.length||(dt.cols=[]),dt.cols.push($root.AnyArray.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.cols!=null&&et.hasOwnProperty("cols")){if(!Array.isArray(et.cols))return"cols: array expected";for(let ct=0;ct<et.cols.length;++ct){let ut=$root.AnyArray.verify(et.cols[ct]);if(ut)return"cols."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.Table)return et;let ct=new $root.Table;if(et.cols){if(!Array.isArray(et.cols))throw TypeError(".Table.cols: array expected");ct.cols=[];for(let ut=0;ut<et.cols.length;++ut){if(typeof et.cols[ut]!="object")throw TypeError(".Table.cols: object expected");ct.cols[ut]=$root.AnyArray.fromObject(et.cols[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.cols=[]),et.cols&&et.cols.length){ut.cols=[];for(let dt=0;dt<et.cols.length;++dt)ut.cols[dt]=$root.AnyArray.toObject(et.cols[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Table"},ot})(),$root.TableStyle=(()=>{function ot(et){if(this.cols=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.cols=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.cols!=null&&et.cols.length)for(let ut=0;ut<et.cols.length;++ut)$root.CellStyleArray.encode(et.cols[ut],ct.uint32(10).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.TableStyle;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.cols&&dt.cols.length||(dt.cols=[]),dt.cols.push($root.CellStyleArray.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.cols!=null&&et.hasOwnProperty("cols")){if(!Array.isArray(et.cols))return"cols: array expected";for(let ct=0;ct<et.cols.length;++ct){let ut=$root.CellStyleArray.verify(et.cols[ct]);if(ut)return"cols."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.TableStyle)return et;let ct=new $root.TableStyle;if(et.cols){if(!Array.isArray(et.cols))throw TypeError(".TableStyle.cols: array expected");ct.cols=[];for(let ut=0;ut<et.cols.length;++ut){if(typeof et.cols[ut]!="object")throw TypeError(".TableStyle.cols: object expected");ct.cols[ut]=$root.CellStyleArray.fromObject(et.cols[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.cols=[]),et.cols&&et.cols.length){ut.cols=[];for(let dt=0;dt<et.cols.length;++dt)ut.cols[dt]=$root.CellStyleArray.toObject(et.cols[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/TableStyle"},ot})(),$root.DateInput=(()=>{function ot(et){if(this.default=[],this.value=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default=$util.emptyArray,ot.prototype.min="",ot.prototype.max="",ot.prototype.isRange=!1,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=$util.emptyArray,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.format="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&et.default.length)for(let ut=0;ut<et.default.length;++ut)ct.uint32(26).string(et.default[ut]);if(et.min!=null&&Object.hasOwnProperty.call(et,"min")&&ct.uint32(34).string(et.min),et.max!=null&&Object.hasOwnProperty.call(et,"max")&&ct.uint32(42).string(et.max),et.isRange!=null&&Object.hasOwnProperty.call(et,"isRange")&&ct.uint32(48).bool(et.isRange),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(58).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(66).string(et.formId),et.value!=null&&et.value.length)for(let ut=0;ut<et.value.length;++ut)ct.uint32(74).string(et.value[ut]);return et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(80).bool(et.setValue),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(88).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(98).fork()).ldelim(),et.format!=null&&Object.hasOwnProperty.call(et,"format")&&ct.uint32(106).string(et.format),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DateInput;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.default&&dt.default.length||(dt.default=[]),dt.default.push(et.string());break}case 4:{dt.min=et.string();break}case 5:{dt.max=et.string();break}case 6:{dt.isRange=et.bool();break}case 7:{dt.help=et.string();break}case 8:{dt.formId=et.string();break}case 9:{dt.value&&dt.value.length||(dt.value=[]),dt.value.push(et.string());break}case 10:{dt.setValue=et.bool();break}case 11:{dt.disabled=et.bool();break}case 12:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}case 13:{dt.format=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.default!=null&&et.hasOwnProperty("default")){if(!Array.isArray(et.default))return"default: array expected";for(let ct=0;ct<et.default.length;++ct)if(!$util.isString(et.default[ct]))return"default: string[] expected"}if(et.min!=null&&et.hasOwnProperty("min")&&!$util.isString(et.min))return"min: string expected";if(et.max!=null&&et.hasOwnProperty("max")&&!$util.isString(et.max))return"max: string expected";if(et.isRange!=null&&et.hasOwnProperty("isRange")&&typeof et.isRange!="boolean")return"isRange: boolean expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.value!=null&&et.hasOwnProperty("value")){if(!Array.isArray(et.value))return"value: array expected";for(let ct=0;ct<et.value.length;++ct)if(!$util.isString(et.value[ct]))return"value: string[] expected"}if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return et.format!=null&&et.hasOwnProperty("format")&&!$util.isString(et.format)?"format: string expected":null},ot.fromObject=function(et){if(et instanceof $root.DateInput)return et;let ct=new $root.DateInput;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default){if(!Array.isArray(et.default))throw TypeError(".DateInput.default: array expected");ct.default=[];for(let ut=0;ut<et.default.length;++ut)ct.default[ut]=String(et.default[ut])}if(et.min!=null&&(ct.min=String(et.min)),et.max!=null&&(ct.max=String(et.max)),et.isRange!=null&&(ct.isRange=!!et.isRange),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.value){if(!Array.isArray(et.value))throw TypeError(".DateInput.value: array expected");ct.value=[];for(let ut=0;ut<et.value.length;++ut)ct.value[ut]=String(et.value[ut])}if(et.setValue!=null&&(ct.setValue=!!et.setValue),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return et.format!=null&&(ct.format=String(et.format)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.default=[],ut.value=[]),ct.defaults&&(ut.id="",ut.label="",ut.min="",ut.max="",ut.isRange=!1,ut.help="",ut.formId="",ut.setValue=!1,ut.disabled=!1,ut.labelVisibility=null,ut.format=""),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default&&et.default.length){ut.default=[];for(let dt=0;dt<et.default.length;++dt)ut.default[dt]=et.default[dt]}if(et.min!=null&&et.hasOwnProperty("min")&&(ut.min=et.min),et.max!=null&&et.hasOwnProperty("max")&&(ut.max=et.max),et.isRange!=null&&et.hasOwnProperty("isRange")&&(ut.isRange=et.isRange),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.value&&et.value.length){ut.value=[];for(let dt=0;dt<et.value.length;++dt)ut.value[dt]=et.value[dt]}return et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),et.format!=null&&et.hasOwnProperty("format")&&(ut.format=et.format),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DateInput"},ot})(),DeckGlJsonChart$1=$root.DeckGlJsonChart=(()=>{function ot(et){if(this.selectionMode=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.json="",ot.prototype.tooltip="",ot.prototype.useContainerWidth=!1,ot.prototype.id="",ot.prototype.mapboxToken="",ot.prototype.width=0,ot.prototype.height=0,ot.prototype.selectionMode=$util.emptyArray,ot.prototype.formId="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.json!=null&&Object.hasOwnProperty.call(et,"json")&&ct.uint32(10).string(et.json),et.tooltip!=null&&Object.hasOwnProperty.call(et,"tooltip")&&ct.uint32(18).string(et.tooltip),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(32).bool(et.useContainerWidth),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(42).string(et.id),et.mapboxToken!=null&&Object.hasOwnProperty.call(et,"mapboxToken")&&ct.uint32(50).string(et.mapboxToken),et.width!=null&&Object.hasOwnProperty.call(et,"width")&&ct.uint32(56).uint32(et.width),et.height!=null&&Object.hasOwnProperty.call(et,"height")&&ct.uint32(64).uint32(et.height),et.selectionMode!=null&&et.selectionMode.length){ct.uint32(74).fork();for(let ut=0;ut<et.selectionMode.length;++ut)ct.int32(et.selectionMode[ut]);ct.ldelim()}return et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(82).string(et.formId),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DeckGlJsonChart;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.json=et.string();break}case 2:{dt.tooltip=et.string();break}case 4:{dt.useContainerWidth=et.bool();break}case 5:{dt.id=et.string();break}case 6:{dt.mapboxToken=et.string();break}case 7:{dt.width=et.uint32();break}case 8:{dt.height=et.uint32();break}case 9:{if(dt.selectionMode&&dt.selectionMode.length||(dt.selectionMode=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.selectionMode.push(et.int32())}else dt.selectionMode.push(et.int32());break}case 10:{dt.formId=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.json!=null&&et.hasOwnProperty("json")&&!$util.isString(et.json))return"json: string expected";if(et.tooltip!=null&&et.hasOwnProperty("tooltip")&&!$util.isString(et.tooltip))return"tooltip: string expected";if(et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean")return"useContainerWidth: boolean expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.mapboxToken!=null&&et.hasOwnProperty("mapboxToken")&&!$util.isString(et.mapboxToken))return"mapboxToken: string expected";if(et.width!=null&&et.hasOwnProperty("width")&&!$util.isInteger(et.width))return"width: integer expected";if(et.height!=null&&et.hasOwnProperty("height")&&!$util.isInteger(et.height))return"height: integer expected";if(et.selectionMode!=null&&et.hasOwnProperty("selectionMode")){if(!Array.isArray(et.selectionMode))return"selectionMode: array expected";for(let ct=0;ct<et.selectionMode.length;++ct)switch(et.selectionMode[ct]){default:return"selectionMode: enum value[] expected";case 0:case 1:break}}return et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId)?"formId: string expected":null},ot.fromObject=function(et){if(et instanceof $root.DeckGlJsonChart)return et;let ct=new $root.DeckGlJsonChart;if(et.json!=null&&(ct.json=String(et.json)),et.tooltip!=null&&(ct.tooltip=String(et.tooltip)),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.id!=null&&(ct.id=String(et.id)),et.mapboxToken!=null&&(ct.mapboxToken=String(et.mapboxToken)),et.width!=null&&(ct.width=et.width>>>0),et.height!=null&&(ct.height=et.height>>>0),et.selectionMode){if(!Array.isArray(et.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");ct.selectionMode=[];for(let ut=0;ut<et.selectionMode.length;++ut)switch(et.selectionMode[ut]){default:if(typeof et.selectionMode[ut]=="number"){ct.selectionMode[ut]=et.selectionMode[ut];break}case"SINGLE_OBJECT":case 0:ct.selectionMode[ut]=0;break;case"MULTI_OBJECT":case 1:ct.selectionMode[ut]=1;break}}return et.formId!=null&&(ct.formId=String(et.formId)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.selectionMode=[]),ct.defaults&&(ut.json="",ut.tooltip="",ut.useContainerWidth=!1,ut.id="",ut.mapboxToken="",ut.width=0,ut.height=0,ut.formId=""),et.json!=null&&et.hasOwnProperty("json")&&(ut.json=et.json),et.tooltip!=null&&et.hasOwnProperty("tooltip")&&(ut.tooltip=et.tooltip),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.mapboxToken!=null&&et.hasOwnProperty("mapboxToken")&&(ut.mapboxToken=et.mapboxToken),et.width!=null&&et.hasOwnProperty("width")&&(ut.width=et.width),et.height!=null&&et.hasOwnProperty("height")&&(ut.height=et.height),et.selectionMode&&et.selectionMode.length){ut.selectionMode=[];for(let dt=0;dt<et.selectionMode.length;++dt)ut.selectionMode[dt]=ct.enums===String?$root.DeckGlJsonChart.SelectionMode[et.selectionMode[dt]]===void 0?et.selectionMode[dt]:$root.DeckGlJsonChart.SelectionMode[et.selectionMode[dt]]:et.selectionMode[dt]}return et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DeckGlJsonChart"},ot.SelectionMode=function(){const et={},ct=Object.create(et);return ct[et[0]="SINGLE_OBJECT"]=0,ct[et[1]="MULTI_OBJECT"]=1,ct}(),ot})(),$root.Delta=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.newElement=null,ot.prototype.addBlock=null,ot.prototype.addRows=null,ot.prototype.arrowAddRows=null,ot.prototype.fragmentId="";let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["newElement","addBlock","addRows","arrowAddRows"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.newElement!=null&&Object.hasOwnProperty.call(ct,"newElement")&&$root.Element.encode(ct.newElement,ut.uint32(26).fork()).ldelim(),ct.addRows!=null&&Object.hasOwnProperty.call(ct,"addRows")&&$root.NamedDataSet.encode(ct.addRows,ut.uint32(42).fork()).ldelim(),ct.addBlock!=null&&Object.hasOwnProperty.call(ct,"addBlock")&&$root.Block.encode(ct.addBlock,ut.uint32(50).fork()).ldelim(),ct.arrowAddRows!=null&&Object.hasOwnProperty.call(ct,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(ct.arrowAddRows,ut.uint32(58).fork()).ldelim(),ct.fragmentId!=null&&Object.hasOwnProperty.call(ct,"fragmentId")&&ut.uint32(66).string(ct.fragmentId),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Delta;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 3:{ft.newElement=$root.Element.decode(ct,ct.uint32());break}case 6:{ft.addBlock=$root.Block.decode(ct,ct.uint32());break}case 5:{ft.addRows=$root.NamedDataSet.decode(ct,ct.uint32());break}case 7:{ft.arrowAddRows=$root.ArrowNamedDataSet.decode(ct,ct.uint32());break}case 8:{ft.fragmentId=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.newElement!=null&&ct.hasOwnProperty("newElement")){ut.type=1;{let dt=$root.Element.verify(ct.newElement);if(dt)return"newElement."+dt}}if(ct.addBlock!=null&&ct.hasOwnProperty("addBlock")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Block.verify(ct.addBlock);if(dt)return"addBlock."+dt}}if(ct.addRows!=null&&ct.hasOwnProperty("addRows")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.NamedDataSet.verify(ct.addRows);if(dt)return"addRows."+dt}}if(ct.arrowAddRows!=null&&ct.hasOwnProperty("arrowAddRows")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ArrowNamedDataSet.verify(ct.arrowAddRows);if(dt)return"arrowAddRows."+dt}}return ct.fragmentId!=null&&ct.hasOwnProperty("fragmentId")&&!$util.isString(ct.fragmentId)?"fragmentId: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.Delta)return ct;let ut=new $root.Delta;if(ct.newElement!=null){if(typeof ct.newElement!="object")throw TypeError(".Delta.newElement: object expected");ut.newElement=$root.Element.fromObject(ct.newElement)}if(ct.addBlock!=null){if(typeof ct.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");ut.addBlock=$root.Block.fromObject(ct.addBlock)}if(ct.addRows!=null){if(typeof ct.addRows!="object")throw TypeError(".Delta.addRows: object expected");ut.addRows=$root.NamedDataSet.fromObject(ct.addRows)}if(ct.arrowAddRows!=null){if(typeof ct.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");ut.arrowAddRows=$root.ArrowNamedDataSet.fromObject(ct.arrowAddRows)}return ct.fragmentId!=null&&(ut.fragmentId=String(ct.fragmentId)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.fragmentId=""),ct.newElement!=null&&ct.hasOwnProperty("newElement")&&(dt.newElement=$root.Element.toObject(ct.newElement,ut),ut.oneofs&&(dt.type="newElement")),ct.addRows!=null&&ct.hasOwnProperty("addRows")&&(dt.addRows=$root.NamedDataSet.toObject(ct.addRows,ut),ut.oneofs&&(dt.type="addRows")),ct.addBlock!=null&&ct.hasOwnProperty("addBlock")&&(dt.addBlock=$root.Block.toObject(ct.addBlock,ut),ut.oneofs&&(dt.type="addBlock")),ct.arrowAddRows!=null&&ct.hasOwnProperty("arrowAddRows")&&(dt.arrowAddRows=$root.ArrowNamedDataSet.toObject(ct.arrowAddRows,ut),ut.oneofs&&(dt.type="arrowAddRows")),ct.fragmentId!=null&&ct.hasOwnProperty("fragmentId")&&(dt.fragmentId=ct.fragmentId),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Delta"},ot})();const Element$1=$root.Element=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.alert=null,ot.prototype.arrowDataFrame=null,ot.prototype.arrowTable=null,ot.prototype.arrowVegaLiteChart=null,ot.prototype.audio=null,ot.prototype.audioInput=null,ot.prototype.balloons=null,ot.prototype.bokehChart=null,ot.prototype.button=null,ot.prototype.buttonGroup=null,ot.prototype.downloadButton=null,ot.prototype.cameraInput=null,ot.prototype.chatInput=null,ot.prototype.checkbox=null,ot.prototype.colorPicker=null,ot.prototype.componentInstance=null,ot.prototype.dataFrame=null,ot.prototype.table=null,ot.prototype.dateInput=null,ot.prototype.deckGlJsonChart=null,ot.prototype.docString=null,ot.prototype.empty=null,ot.prototype.exception=null,ot.prototype.favicon=null,ot.prototype.fileUploader=null,ot.prototype.graphvizChart=null,ot.prototype.html=null,ot.prototype.iframe=null,ot.prototype.imgs=null,ot.prototype.json=null,ot.prototype.linkButton=null,ot.prototype.markdown=null,ot.prototype.metric=null,ot.prototype.multiselect=null,ot.prototype.numberInput=null,ot.prototype.pageLink=null,ot.prototype.plotlyChart=null,ot.prototype.progress=null,ot.prototype.radio=null,ot.prototype.selectbox=null,ot.prototype.skeleton=null,ot.prototype.slider=null,ot.prototype.snow=null,ot.prototype.spinner=null,ot.prototype.text=null,ot.prototype.textArea=null,ot.prototype.textInput=null,ot.prototype.timeInput=null,ot.prototype.toast=null,ot.prototype.vegaLiteChart=null,ot.prototype.video=null,ot.prototype.heading=null,ot.prototype.code=null;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","audioInput","balloons","bokehChart","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","fileUploader","graphvizChart","html","iframe","imgs","json","linkButton","markdown","metric","multiselect","numberInput","pageLink","plotlyChart","progress","radio","selectbox","skeleton","slider","snow","spinner","text","textArea","textInput","timeInput","toast","vegaLiteChart","video","heading","code"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.text!=null&&Object.hasOwnProperty.call(ct,"text")&&$root.Text.encode(ct.text,ut.uint32(10).fork()).ldelim(),ct.empty!=null&&Object.hasOwnProperty.call(ct,"empty")&&$root.Empty.encode(ct.empty,ut.uint32(18).fork()).ldelim(),ct.dataFrame!=null&&Object.hasOwnProperty.call(ct,"dataFrame")&&$root.DataFrame.encode(ct.dataFrame,ut.uint32(26).fork()).ldelim(),ct.progress!=null&&Object.hasOwnProperty.call(ct,"progress")&&$root.Progress.encode(ct.progress,ut.uint32(42).fork()).ldelim(),ct.imgs!=null&&Object.hasOwnProperty.call(ct,"imgs")&&$root.ImageList.encode(ct.imgs,ut.uint32(50).fork()).ldelim(),ct.docString!=null&&Object.hasOwnProperty.call(ct,"docString")&&$root.DocString.encode(ct.docString,ut.uint32(58).fork()).ldelim(),ct.exception!=null&&Object.hasOwnProperty.call(ct,"exception")&&$root.Exception.encode(ct.exception,ut.uint32(66).fork()).ldelim(),ct.vegaLiteChart!=null&&Object.hasOwnProperty.call(ct,"vegaLiteChart")&&$root.VegaLiteChart.encode(ct.vegaLiteChart,ut.uint32(82).fork()).ldelim(),ct.table!=null&&Object.hasOwnProperty.call(ct,"table")&&$root.DataFrame.encode(ct.table,ut.uint32(90).fork()).ldelim(),ct.balloons!=null&&Object.hasOwnProperty.call(ct,"balloons")&&$root.Balloons.encode(ct.balloons,ut.uint32(98).fork()).ldelim(),ct.audio!=null&&Object.hasOwnProperty.call(ct,"audio")&&$root.Audio.encode(ct.audio,ut.uint32(106).fork()).ldelim(),ct.video!=null&&Object.hasOwnProperty.call(ct,"video")&&$root.Video.encode(ct.video,ut.uint32(114).fork()).ldelim(),ct.plotlyChart!=null&&Object.hasOwnProperty.call(ct,"plotlyChart")&&$root.PlotlyChart.encode(ct.plotlyChart,ut.uint32(130).fork()).ldelim(),ct.bokehChart!=null&&Object.hasOwnProperty.call(ct,"bokehChart")&&$root.BokehChart.encode(ct.bokehChart,ut.uint32(138).fork()).ldelim(),ct.graphvizChart!=null&&Object.hasOwnProperty.call(ct,"graphvizChart")&&$root.GraphVizChart.encode(ct.graphvizChart,ut.uint32(146).fork()).ldelim(),ct.button!=null&&Object.hasOwnProperty.call(ct,"button")&&$root.Button.encode(ct.button,ut.uint32(154).fork()).ldelim(),ct.checkbox!=null&&Object.hasOwnProperty.call(ct,"checkbox")&&$root.Checkbox.encode(ct.checkbox,ut.uint32(162).fork()).ldelim(),ct.slider!=null&&Object.hasOwnProperty.call(ct,"slider")&&$root.Slider.encode(ct.slider,ut.uint32(170).fork()).ldelim(),ct.textArea!=null&&Object.hasOwnProperty.call(ct,"textArea")&&$root.TextArea.encode(ct.textArea,ut.uint32(178).fork()).ldelim(),ct.radio!=null&&Object.hasOwnProperty.call(ct,"radio")&&$root.Radio.encode(ct.radio,ut.uint32(186).fork()).ldelim(),ct.textInput!=null&&Object.hasOwnProperty.call(ct,"textInput")&&$root.TextInput.encode(ct.textInput,ut.uint32(194).fork()).ldelim(),ct.selectbox!=null&&Object.hasOwnProperty.call(ct,"selectbox")&&$root.Selectbox.encode(ct.selectbox,ut.uint32(202).fork()).ldelim(),ct.timeInput!=null&&Object.hasOwnProperty.call(ct,"timeInput")&&$root.TimeInput.encode(ct.timeInput,ut.uint32(210).fork()).ldelim(),ct.dateInput!=null&&Object.hasOwnProperty.call(ct,"dateInput")&&$root.DateInput.encode(ct.dateInput,ut.uint32(218).fork()).ldelim(),ct.multiselect!=null&&Object.hasOwnProperty.call(ct,"multiselect")&&$root.MultiSelect.encode(ct.multiselect,ut.uint32(226).fork()).ldelim(),ct.markdown!=null&&Object.hasOwnProperty.call(ct,"markdown")&&$root.Markdown.encode(ct.markdown,ut.uint32(234).fork()).ldelim(),ct.alert!=null&&Object.hasOwnProperty.call(ct,"alert")&&$root.Alert.encode(ct.alert,ut.uint32(242).fork()).ldelim(),ct.json!=null&&Object.hasOwnProperty.call(ct,"json")&&$root.Json.encode(ct.json,ut.uint32(250).fork()).ldelim(),ct.numberInput!=null&&Object.hasOwnProperty.call(ct,"numberInput")&&$root.NumberInput.encode(ct.numberInput,ut.uint32(258).fork()).ldelim(),ct.fileUploader!=null&&Object.hasOwnProperty.call(ct,"fileUploader")&&$root.FileUploader.encode(ct.fileUploader,ut.uint32(266).fork()).ldelim(),ct.deckGlJsonChart!=null&&Object.hasOwnProperty.call(ct,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(ct.deckGlJsonChart,ut.uint32(274).fork()).ldelim(),ct.colorPicker!=null&&Object.hasOwnProperty.call(ct,"colorPicker")&&$root.ColorPicker.encode(ct.colorPicker,ut.uint32(282).fork()).ldelim(),ct.favicon!=null&&Object.hasOwnProperty.call(ct,"favicon")&&$root.Favicon.encode(ct.favicon,ut.uint32(290).fork()).ldelim(),ct.componentInstance!=null&&Object.hasOwnProperty.call(ct,"componentInstance")&&$root.ComponentInstance.encode(ct.componentInstance,ut.uint32(298).fork()).ldelim(),ct.iframe!=null&&Object.hasOwnProperty.call(ct,"iframe")&&$root.IFrame.encode(ct.iframe,ut.uint32(306).fork()).ldelim(),ct.arrowTable!=null&&Object.hasOwnProperty.call(ct,"arrowTable")&&$root.Arrow.encode(ct.arrowTable,ut.uint32(314).fork()).ldelim(),ct.arrowDataFrame!=null&&Object.hasOwnProperty.call(ct,"arrowDataFrame")&&$root.Arrow.encode(ct.arrowDataFrame,ut.uint32(322).fork()).ldelim(),ct.arrowVegaLiteChart!=null&&Object.hasOwnProperty.call(ct,"arrowVegaLiteChart")&&$root.ArrowVegaLiteChart.encode(ct.arrowVegaLiteChart,ut.uint32(330).fork()).ldelim(),ct.metric!=null&&Object.hasOwnProperty.call(ct,"metric")&&$root.Metric.encode(ct.metric,ut.uint32(338).fork()).ldelim(),ct.downloadButton!=null&&Object.hasOwnProperty.call(ct,"downloadButton")&&$root.DownloadButton.encode(ct.downloadButton,ut.uint32(346).fork()).ldelim(),ct.spinner!=null&&Object.hasOwnProperty.call(ct,"spinner")&&$root.Spinner.encode(ct.spinner,ut.uint32(354).fork()).ldelim(),ct.cameraInput!=null&&Object.hasOwnProperty.call(ct,"cameraInput")&&$root.CameraInput.encode(ct.cameraInput,ut.uint32(362).fork()).ldelim(),ct.snow!=null&&Object.hasOwnProperty.call(ct,"snow")&&$root.Snow.encode(ct.snow,ut.uint32(370).fork()).ldelim(),ct.heading!=null&&Object.hasOwnProperty.call(ct,"heading")&&$root.Heading.encode(ct.heading,ut.uint32(378).fork()).ldelim(),ct.code!=null&&Object.hasOwnProperty.call(ct,"code")&&$root.Code.encode(ct.code,ut.uint32(386).fork()).ldelim(),ct.chatInput!=null&&Object.hasOwnProperty.call(ct,"chatInput")&&$root.ChatInput.encode(ct.chatInput,ut.uint32(394).fork()).ldelim(),ct.toast!=null&&Object.hasOwnProperty.call(ct,"toast")&&$root.Toast.encode(ct.toast,ut.uint32(402).fork()).ldelim(),ct.linkButton!=null&&Object.hasOwnProperty.call(ct,"linkButton")&&$root.LinkButton.encode(ct.linkButton,ut.uint32(410).fork()).ldelim(),ct.skeleton!=null&&Object.hasOwnProperty.call(ct,"skeleton")&&$root.Skeleton.encode(ct.skeleton,ut.uint32(418).fork()).ldelim(),ct.pageLink!=null&&Object.hasOwnProperty.call(ct,"pageLink")&&$root.PageLink.encode(ct.pageLink,ut.uint32(426).fork()).ldelim(),ct.html!=null&&Object.hasOwnProperty.call(ct,"html")&&$root.Html.encode(ct.html,ut.uint32(434).fork()).ldelim(),ct.buttonGroup!=null&&Object.hasOwnProperty.call(ct,"buttonGroup")&&$root.ButtonGroup.encode(ct.buttonGroup,ut.uint32(442).fork()).ldelim(),ct.audioInput!=null&&Object.hasOwnProperty.call(ct,"audioInput")&&$root.AudioInput.encode(ct.audioInput,ut.uint32(450).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Element;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 30:{ft.alert=$root.Alert.decode(ct,ct.uint32());break}case 40:{ft.arrowDataFrame=$root.Arrow.decode(ct,ct.uint32());break}case 39:{ft.arrowTable=$root.Arrow.decode(ct,ct.uint32());break}case 41:{ft.arrowVegaLiteChart=$root.ArrowVegaLiteChart.decode(ct,ct.uint32());break}case 13:{ft.audio=$root.Audio.decode(ct,ct.uint32());break}case 56:{ft.audioInput=$root.AudioInput.decode(ct,ct.uint32());break}case 12:{ft.balloons=$root.Balloons.decode(ct,ct.uint32());break}case 17:{ft.bokehChart=$root.BokehChart.decode(ct,ct.uint32());break}case 19:{ft.button=$root.Button.decode(ct,ct.uint32());break}case 55:{ft.buttonGroup=$root.ButtonGroup.decode(ct,ct.uint32());break}case 43:{ft.downloadButton=$root.DownloadButton.decode(ct,ct.uint32());break}case 45:{ft.cameraInput=$root.CameraInput.decode(ct,ct.uint32());break}case 49:{ft.chatInput=$root.ChatInput.decode(ct,ct.uint32());break}case 20:{ft.checkbox=$root.Checkbox.decode(ct,ct.uint32());break}case 35:{ft.colorPicker=$root.ColorPicker.decode(ct,ct.uint32());break}case 37:{ft.componentInstance=$root.ComponentInstance.decode(ct,ct.uint32());break}case 3:{ft.dataFrame=$root.DataFrame.decode(ct,ct.uint32());break}case 11:{ft.table=$root.DataFrame.decode(ct,ct.uint32());break}case 27:{ft.dateInput=$root.DateInput.decode(ct,ct.uint32());break}case 34:{ft.deckGlJsonChart=$root.DeckGlJsonChart.decode(ct,ct.uint32());break}case 7:{ft.docString=$root.DocString.decode(ct,ct.uint32());break}case 2:{ft.empty=$root.Empty.decode(ct,ct.uint32());break}case 8:{ft.exception=$root.Exception.decode(ct,ct.uint32());break}case 36:{ft.favicon=$root.Favicon.decode(ct,ct.uint32());break}case 33:{ft.fileUploader=$root.FileUploader.decode(ct,ct.uint32());break}case 18:{ft.graphvizChart=$root.GraphVizChart.decode(ct,ct.uint32());break}case 54:{ft.html=$root.Html.decode(ct,ct.uint32());break}case 38:{ft.iframe=$root.IFrame.decode(ct,ct.uint32());break}case 6:{ft.imgs=$root.ImageList.decode(ct,ct.uint32());break}case 31:{ft.json=$root.Json.decode(ct,ct.uint32());break}case 51:{ft.linkButton=$root.LinkButton.decode(ct,ct.uint32());break}case 29:{ft.markdown=$root.Markdown.decode(ct,ct.uint32());break}case 42:{ft.metric=$root.Metric.decode(ct,ct.uint32());break}case 28:{ft.multiselect=$root.MultiSelect.decode(ct,ct.uint32());break}case 32:{ft.numberInput=$root.NumberInput.decode(ct,ct.uint32());break}case 53:{ft.pageLink=$root.PageLink.decode(ct,ct.uint32());break}case 16:{ft.plotlyChart=$root.PlotlyChart.decode(ct,ct.uint32());break}case 5:{ft.progress=$root.Progress.decode(ct,ct.uint32());break}case 23:{ft.radio=$root.Radio.decode(ct,ct.uint32());break}case 25:{ft.selectbox=$root.Selectbox.decode(ct,ct.uint32());break}case 52:{ft.skeleton=$root.Skeleton.decode(ct,ct.uint32());break}case 21:{ft.slider=$root.Slider.decode(ct,ct.uint32());break}case 46:{ft.snow=$root.Snow.decode(ct,ct.uint32());break}case 44:{ft.spinner=$root.Spinner.decode(ct,ct.uint32());break}case 1:{ft.text=$root.Text.decode(ct,ct.uint32());break}case 22:{ft.textArea=$root.TextArea.decode(ct,ct.uint32());break}case 24:{ft.textInput=$root.TextInput.decode(ct,ct.uint32());break}case 26:{ft.timeInput=$root.TimeInput.decode(ct,ct.uint32());break}case 50:{ft.toast=$root.Toast.decode(ct,ct.uint32());break}case 10:{ft.vegaLiteChart=$root.VegaLiteChart.decode(ct,ct.uint32());break}case 14:{ft.video=$root.Video.decode(ct,ct.uint32());break}case 47:{ft.heading=$root.Heading.decode(ct,ct.uint32());break}case 48:{ft.code=$root.Code.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.alert!=null&&ct.hasOwnProperty("alert")){ut.type=1;{let dt=$root.Alert.verify(ct.alert);if(dt)return"alert."+dt}}if(ct.arrowDataFrame!=null&&ct.hasOwnProperty("arrowDataFrame")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Arrow.verify(ct.arrowDataFrame);if(dt)return"arrowDataFrame."+dt}}if(ct.arrowTable!=null&&ct.hasOwnProperty("arrowTable")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Arrow.verify(ct.arrowTable);if(dt)return"arrowTable."+dt}}if(ct.arrowVegaLiteChart!=null&&ct.hasOwnProperty("arrowVegaLiteChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ArrowVegaLiteChart.verify(ct.arrowVegaLiteChart);if(dt)return"arrowVegaLiteChart."+dt}}if(ct.audio!=null&&ct.hasOwnProperty("audio")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Audio.verify(ct.audio);if(dt)return"audio."+dt}}if(ct.audioInput!=null&&ct.hasOwnProperty("audioInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.AudioInput.verify(ct.audioInput);if(dt)return"audioInput."+dt}}if(ct.balloons!=null&&ct.hasOwnProperty("balloons")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Balloons.verify(ct.balloons);if(dt)return"balloons."+dt}}if(ct.bokehChart!=null&&ct.hasOwnProperty("bokehChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.BokehChart.verify(ct.bokehChart);if(dt)return"bokehChart."+dt}}if(ct.button!=null&&ct.hasOwnProperty("button")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Button.verify(ct.button);if(dt)return"button."+dt}}if(ct.buttonGroup!=null&&ct.hasOwnProperty("buttonGroup")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ButtonGroup.verify(ct.buttonGroup);if(dt)return"buttonGroup."+dt}}if(ct.downloadButton!=null&&ct.hasOwnProperty("downloadButton")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DownloadButton.verify(ct.downloadButton);if(dt)return"downloadButton."+dt}}if(ct.cameraInput!=null&&ct.hasOwnProperty("cameraInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.CameraInput.verify(ct.cameraInput);if(dt)return"cameraInput."+dt}}if(ct.chatInput!=null&&ct.hasOwnProperty("chatInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ChatInput.verify(ct.chatInput);if(dt)return"chatInput."+dt}}if(ct.checkbox!=null&&ct.hasOwnProperty("checkbox")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Checkbox.verify(ct.checkbox);if(dt)return"checkbox."+dt}}if(ct.colorPicker!=null&&ct.hasOwnProperty("colorPicker")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ColorPicker.verify(ct.colorPicker);if(dt)return"colorPicker."+dt}}if(ct.componentInstance!=null&&ct.hasOwnProperty("componentInstance")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ComponentInstance.verify(ct.componentInstance);if(dt)return"componentInstance."+dt}}if(ct.dataFrame!=null&&ct.hasOwnProperty("dataFrame")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DataFrame.verify(ct.dataFrame);if(dt)return"dataFrame."+dt}}if(ct.table!=null&&ct.hasOwnProperty("table")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DataFrame.verify(ct.table);if(dt)return"table."+dt}}if(ct.dateInput!=null&&ct.hasOwnProperty("dateInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DateInput.verify(ct.dateInput);if(dt)return"dateInput."+dt}}if(ct.deckGlJsonChart!=null&&ct.hasOwnProperty("deckGlJsonChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DeckGlJsonChart.verify(ct.deckGlJsonChart);if(dt)return"deckGlJsonChart."+dt}}if(ct.docString!=null&&ct.hasOwnProperty("docString")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.DocString.verify(ct.docString);if(dt)return"docString."+dt}}if(ct.empty!=null&&ct.hasOwnProperty("empty")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Empty.verify(ct.empty);if(dt)return"empty."+dt}}if(ct.exception!=null&&ct.hasOwnProperty("exception")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Exception.verify(ct.exception);if(dt)return"exception."+dt}}if(ct.favicon!=null&&ct.hasOwnProperty("favicon")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Favicon.verify(ct.favicon);if(dt)return"favicon."+dt}}if(ct.fileUploader!=null&&ct.hasOwnProperty("fileUploader")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.FileUploader.verify(ct.fileUploader);if(dt)return"fileUploader."+dt}}if(ct.graphvizChart!=null&&ct.hasOwnProperty("graphvizChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.GraphVizChart.verify(ct.graphvizChart);if(dt)return"graphvizChart."+dt}}if(ct.html!=null&&ct.hasOwnProperty("html")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Html.verify(ct.html);if(dt)return"html."+dt}}if(ct.iframe!=null&&ct.hasOwnProperty("iframe")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.IFrame.verify(ct.iframe);if(dt)return"iframe."+dt}}if(ct.imgs!=null&&ct.hasOwnProperty("imgs")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ImageList.verify(ct.imgs);if(dt)return"imgs."+dt}}if(ct.json!=null&&ct.hasOwnProperty("json")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Json.verify(ct.json);if(dt)return"json."+dt}}if(ct.linkButton!=null&&ct.hasOwnProperty("linkButton")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.LinkButton.verify(ct.linkButton);if(dt)return"linkButton."+dt}}if(ct.markdown!=null&&ct.hasOwnProperty("markdown")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Markdown.verify(ct.markdown);if(dt)return"markdown."+dt}}if(ct.metric!=null&&ct.hasOwnProperty("metric")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Metric.verify(ct.metric);if(dt)return"metric."+dt}}if(ct.multiselect!=null&&ct.hasOwnProperty("multiselect")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.MultiSelect.verify(ct.multiselect);if(dt)return"multiselect."+dt}}if(ct.numberInput!=null&&ct.hasOwnProperty("numberInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.NumberInput.verify(ct.numberInput);if(dt)return"numberInput."+dt}}if(ct.pageLink!=null&&ct.hasOwnProperty("pageLink")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PageLink.verify(ct.pageLink);if(dt)return"pageLink."+dt}}if(ct.plotlyChart!=null&&ct.hasOwnProperty("plotlyChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PlotlyChart.verify(ct.plotlyChart);if(dt)return"plotlyChart."+dt}}if(ct.progress!=null&&ct.hasOwnProperty("progress")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Progress.verify(ct.progress);if(dt)return"progress."+dt}}if(ct.radio!=null&&ct.hasOwnProperty("radio")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Radio.verify(ct.radio);if(dt)return"radio."+dt}}if(ct.selectbox!=null&&ct.hasOwnProperty("selectbox")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Selectbox.verify(ct.selectbox);if(dt)return"selectbox."+dt}}if(ct.skeleton!=null&&ct.hasOwnProperty("skeleton")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Skeleton.verify(ct.skeleton);if(dt)return"skeleton."+dt}}if(ct.slider!=null&&ct.hasOwnProperty("slider")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Slider.verify(ct.slider);if(dt)return"slider."+dt}}if(ct.snow!=null&&ct.hasOwnProperty("snow")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Snow.verify(ct.snow);if(dt)return"snow."+dt}}if(ct.spinner!=null&&ct.hasOwnProperty("spinner")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Spinner.verify(ct.spinner);if(dt)return"spinner."+dt}}if(ct.text!=null&&ct.hasOwnProperty("text")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Text.verify(ct.text);if(dt)return"text."+dt}}if(ct.textArea!=null&&ct.hasOwnProperty("textArea")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.TextArea.verify(ct.textArea);if(dt)return"textArea."+dt}}if(ct.textInput!=null&&ct.hasOwnProperty("textInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.TextInput.verify(ct.textInput);if(dt)return"textInput."+dt}}if(ct.timeInput!=null&&ct.hasOwnProperty("timeInput")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.TimeInput.verify(ct.timeInput);if(dt)return"timeInput."+dt}}if(ct.toast!=null&&ct.hasOwnProperty("toast")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Toast.verify(ct.toast);if(dt)return"toast."+dt}}if(ct.vegaLiteChart!=null&&ct.hasOwnProperty("vegaLiteChart")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.VegaLiteChart.verify(ct.vegaLiteChart);if(dt)return"vegaLiteChart."+dt}}if(ct.video!=null&&ct.hasOwnProperty("video")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Video.verify(ct.video);if(dt)return"video."+dt}}if(ct.heading!=null&&ct.hasOwnProperty("heading")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Heading.verify(ct.heading);if(dt)return"heading."+dt}}if(ct.code!=null&&ct.hasOwnProperty("code")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Code.verify(ct.code);if(dt)return"code."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.Element)return ct;let ut=new $root.Element;if(ct.alert!=null){if(typeof ct.alert!="object")throw TypeError(".Element.alert: object expected");ut.alert=$root.Alert.fromObject(ct.alert)}if(ct.arrowDataFrame!=null){if(typeof ct.arrowDataFrame!="object")throw TypeError(".Element.arrowDataFrame: object expected");ut.arrowDataFrame=$root.Arrow.fromObject(ct.arrowDataFrame)}if(ct.arrowTable!=null){if(typeof ct.arrowTable!="object")throw TypeError(".Element.arrowTable: object expected");ut.arrowTable=$root.Arrow.fromObject(ct.arrowTable)}if(ct.arrowVegaLiteChart!=null){if(typeof ct.arrowVegaLiteChart!="object")throw TypeError(".Element.arrowVegaLiteChart: object expected");ut.arrowVegaLiteChart=$root.ArrowVegaLiteChart.fromObject(ct.arrowVegaLiteChart)}if(ct.audio!=null){if(typeof ct.audio!="object")throw TypeError(".Element.audio: object expected");ut.audio=$root.Audio.fromObject(ct.audio)}if(ct.audioInput!=null){if(typeof ct.audioInput!="object")throw TypeError(".Element.audioInput: object expected");ut.audioInput=$root.AudioInput.fromObject(ct.audioInput)}if(ct.balloons!=null){if(typeof ct.balloons!="object")throw TypeError(".Element.balloons: object expected");ut.balloons=$root.Balloons.fromObject(ct.balloons)}if(ct.bokehChart!=null){if(typeof ct.bokehChart!="object")throw TypeError(".Element.bokehChart: object expected");ut.bokehChart=$root.BokehChart.fromObject(ct.bokehChart)}if(ct.button!=null){if(typeof ct.button!="object")throw TypeError(".Element.button: object expected");ut.button=$root.Button.fromObject(ct.button)}if(ct.buttonGroup!=null){if(typeof ct.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");ut.buttonGroup=$root.ButtonGroup.fromObject(ct.buttonGroup)}if(ct.downloadButton!=null){if(typeof ct.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");ut.downloadButton=$root.DownloadButton.fromObject(ct.downloadButton)}if(ct.cameraInput!=null){if(typeof ct.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");ut.cameraInput=$root.CameraInput.fromObject(ct.cameraInput)}if(ct.chatInput!=null){if(typeof ct.chatInput!="object")throw TypeError(".Element.chatInput: object expected");ut.chatInput=$root.ChatInput.fromObject(ct.chatInput)}if(ct.checkbox!=null){if(typeof ct.checkbox!="object")throw TypeError(".Element.checkbox: object expected");ut.checkbox=$root.Checkbox.fromObject(ct.checkbox)}if(ct.colorPicker!=null){if(typeof ct.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");ut.colorPicker=$root.ColorPicker.fromObject(ct.colorPicker)}if(ct.componentInstance!=null){if(typeof ct.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");ut.componentInstance=$root.ComponentInstance.fromObject(ct.componentInstance)}if(ct.dataFrame!=null){if(typeof ct.dataFrame!="object")throw TypeError(".Element.dataFrame: object expected");ut.dataFrame=$root.DataFrame.fromObject(ct.dataFrame)}if(ct.table!=null){if(typeof ct.table!="object")throw TypeError(".Element.table: object expected");ut.table=$root.DataFrame.fromObject(ct.table)}if(ct.dateInput!=null){if(typeof ct.dateInput!="object")throw TypeError(".Element.dateInput: object expected");ut.dateInput=$root.DateInput.fromObject(ct.dateInput)}if(ct.deckGlJsonChart!=null){if(typeof ct.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");ut.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(ct.deckGlJsonChart)}if(ct.docString!=null){if(typeof ct.docString!="object")throw TypeError(".Element.docString: object expected");ut.docString=$root.DocString.fromObject(ct.docString)}if(ct.empty!=null){if(typeof ct.empty!="object")throw TypeError(".Element.empty: object expected");ut.empty=$root.Empty.fromObject(ct.empty)}if(ct.exception!=null){if(typeof ct.exception!="object")throw TypeError(".Element.exception: object expected");ut.exception=$root.Exception.fromObject(ct.exception)}if(ct.favicon!=null){if(typeof ct.favicon!="object")throw TypeError(".Element.favicon: object expected");ut.favicon=$root.Favicon.fromObject(ct.favicon)}if(ct.fileUploader!=null){if(typeof ct.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");ut.fileUploader=$root.FileUploader.fromObject(ct.fileUploader)}if(ct.graphvizChart!=null){if(typeof ct.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");ut.graphvizChart=$root.GraphVizChart.fromObject(ct.graphvizChart)}if(ct.html!=null){if(typeof ct.html!="object")throw TypeError(".Element.html: object expected");ut.html=$root.Html.fromObject(ct.html)}if(ct.iframe!=null){if(typeof ct.iframe!="object")throw TypeError(".Element.iframe: object expected");ut.iframe=$root.IFrame.fromObject(ct.iframe)}if(ct.imgs!=null){if(typeof ct.imgs!="object")throw TypeError(".Element.imgs: object expected");ut.imgs=$root.ImageList.fromObject(ct.imgs)}if(ct.json!=null){if(typeof ct.json!="object")throw TypeError(".Element.json: object expected");ut.json=$root.Json.fromObject(ct.json)}if(ct.linkButton!=null){if(typeof ct.linkButton!="object")throw TypeError(".Element.linkButton: object expected");ut.linkButton=$root.LinkButton.fromObject(ct.linkButton)}if(ct.markdown!=null){if(typeof ct.markdown!="object")throw TypeError(".Element.markdown: object expected");ut.markdown=$root.Markdown.fromObject(ct.markdown)}if(ct.metric!=null){if(typeof ct.metric!="object")throw TypeError(".Element.metric: object expected");ut.metric=$root.Metric.fromObject(ct.metric)}if(ct.multiselect!=null){if(typeof ct.multiselect!="object")throw TypeError(".Element.multiselect: object expected");ut.multiselect=$root.MultiSelect.fromObject(ct.multiselect)}if(ct.numberInput!=null){if(typeof ct.numberInput!="object")throw TypeError(".Element.numberInput: object expected");ut.numberInput=$root.NumberInput.fromObject(ct.numberInput)}if(ct.pageLink!=null){if(typeof ct.pageLink!="object")throw TypeError(".Element.pageLink: object expected");ut.pageLink=$root.PageLink.fromObject(ct.pageLink)}if(ct.plotlyChart!=null){if(typeof ct.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");ut.plotlyChart=$root.PlotlyChart.fromObject(ct.plotlyChart)}if(ct.progress!=null){if(typeof ct.progress!="object")throw TypeError(".Element.progress: object expected");ut.progress=$root.Progress.fromObject(ct.progress)}if(ct.radio!=null){if(typeof ct.radio!="object")throw TypeError(".Element.radio: object expected");ut.radio=$root.Radio.fromObject(ct.radio)}if(ct.selectbox!=null){if(typeof ct.selectbox!="object")throw TypeError(".Element.selectbox: object expected");ut.selectbox=$root.Selectbox.fromObject(ct.selectbox)}if(ct.skeleton!=null){if(typeof ct.skeleton!="object")throw TypeError(".Element.skeleton: object expected");ut.skeleton=$root.Skeleton.fromObject(ct.skeleton)}if(ct.slider!=null){if(typeof ct.slider!="object")throw TypeError(".Element.slider: object expected");ut.slider=$root.Slider.fromObject(ct.slider)}if(ct.snow!=null){if(typeof ct.snow!="object")throw TypeError(".Element.snow: object expected");ut.snow=$root.Snow.fromObject(ct.snow)}if(ct.spinner!=null){if(typeof ct.spinner!="object")throw TypeError(".Element.spinner: object expected");ut.spinner=$root.Spinner.fromObject(ct.spinner)}if(ct.text!=null){if(typeof ct.text!="object")throw TypeError(".Element.text: object expected");ut.text=$root.Text.fromObject(ct.text)}if(ct.textArea!=null){if(typeof ct.textArea!="object")throw TypeError(".Element.textArea: object expected");ut.textArea=$root.TextArea.fromObject(ct.textArea)}if(ct.textInput!=null){if(typeof ct.textInput!="object")throw TypeError(".Element.textInput: object expected");ut.textInput=$root.TextInput.fromObject(ct.textInput)}if(ct.timeInput!=null){if(typeof ct.timeInput!="object")throw TypeError(".Element.timeInput: object expected");ut.timeInput=$root.TimeInput.fromObject(ct.timeInput)}if(ct.toast!=null){if(typeof ct.toast!="object")throw TypeError(".Element.toast: object expected");ut.toast=$root.Toast.fromObject(ct.toast)}if(ct.vegaLiteChart!=null){if(typeof ct.vegaLiteChart!="object")throw TypeError(".Element.vegaLiteChart: object expected");ut.vegaLiteChart=$root.VegaLiteChart.fromObject(ct.vegaLiteChart)}if(ct.video!=null){if(typeof ct.video!="object")throw TypeError(".Element.video: object expected");ut.video=$root.Video.fromObject(ct.video)}if(ct.heading!=null){if(typeof ct.heading!="object")throw TypeError(".Element.heading: object expected");ut.heading=$root.Heading.fromObject(ct.heading)}if(ct.code!=null){if(typeof ct.code!="object")throw TypeError(".Element.code: object expected");ut.code=$root.Code.fromObject(ct.code)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ct.text!=null&&ct.hasOwnProperty("text")&&(dt.text=$root.Text.toObject(ct.text,ut),ut.oneofs&&(dt.type="text")),ct.empty!=null&&ct.hasOwnProperty("empty")&&(dt.empty=$root.Empty.toObject(ct.empty,ut),ut.oneofs&&(dt.type="empty")),ct.dataFrame!=null&&ct.hasOwnProperty("dataFrame")&&(dt.dataFrame=$root.DataFrame.toObject(ct.dataFrame,ut),ut.oneofs&&(dt.type="dataFrame")),ct.progress!=null&&ct.hasOwnProperty("progress")&&(dt.progress=$root.Progress.toObject(ct.progress,ut),ut.oneofs&&(dt.type="progress")),ct.imgs!=null&&ct.hasOwnProperty("imgs")&&(dt.imgs=$root.ImageList.toObject(ct.imgs,ut),ut.oneofs&&(dt.type="imgs")),ct.docString!=null&&ct.hasOwnProperty("docString")&&(dt.docString=$root.DocString.toObject(ct.docString,ut),ut.oneofs&&(dt.type="docString")),ct.exception!=null&&ct.hasOwnProperty("exception")&&(dt.exception=$root.Exception.toObject(ct.exception,ut),ut.oneofs&&(dt.type="exception")),ct.vegaLiteChart!=null&&ct.hasOwnProperty("vegaLiteChart")&&(dt.vegaLiteChart=$root.VegaLiteChart.toObject(ct.vegaLiteChart,ut),ut.oneofs&&(dt.type="vegaLiteChart")),ct.table!=null&&ct.hasOwnProperty("table")&&(dt.table=$root.DataFrame.toObject(ct.table,ut),ut.oneofs&&(dt.type="table")),ct.balloons!=null&&ct.hasOwnProperty("balloons")&&(dt.balloons=$root.Balloons.toObject(ct.balloons,ut),ut.oneofs&&(dt.type="balloons")),ct.audio!=null&&ct.hasOwnProperty("audio")&&(dt.audio=$root.Audio.toObject(ct.audio,ut),ut.oneofs&&(dt.type="audio")),ct.video!=null&&ct.hasOwnProperty("video")&&(dt.video=$root.Video.toObject(ct.video,ut),ut.oneofs&&(dt.type="video")),ct.plotlyChart!=null&&ct.hasOwnProperty("plotlyChart")&&(dt.plotlyChart=$root.PlotlyChart.toObject(ct.plotlyChart,ut),ut.oneofs&&(dt.type="plotlyChart")),ct.bokehChart!=null&&ct.hasOwnProperty("bokehChart")&&(dt.bokehChart=$root.BokehChart.toObject(ct.bokehChart,ut),ut.oneofs&&(dt.type="bokehChart")),ct.graphvizChart!=null&&ct.hasOwnProperty("graphvizChart")&&(dt.graphvizChart=$root.GraphVizChart.toObject(ct.graphvizChart,ut),ut.oneofs&&(dt.type="graphvizChart")),ct.button!=null&&ct.hasOwnProperty("button")&&(dt.button=$root.Button.toObject(ct.button,ut),ut.oneofs&&(dt.type="button")),ct.checkbox!=null&&ct.hasOwnProperty("checkbox")&&(dt.checkbox=$root.Checkbox.toObject(ct.checkbox,ut),ut.oneofs&&(dt.type="checkbox")),ct.slider!=null&&ct.hasOwnProperty("slider")&&(dt.slider=$root.Slider.toObject(ct.slider,ut),ut.oneofs&&(dt.type="slider")),ct.textArea!=null&&ct.hasOwnProperty("textArea")&&(dt.textArea=$root.TextArea.toObject(ct.textArea,ut),ut.oneofs&&(dt.type="textArea")),ct.radio!=null&&ct.hasOwnProperty("radio")&&(dt.radio=$root.Radio.toObject(ct.radio,ut),ut.oneofs&&(dt.type="radio")),ct.textInput!=null&&ct.hasOwnProperty("textInput")&&(dt.textInput=$root.TextInput.toObject(ct.textInput,ut),ut.oneofs&&(dt.type="textInput")),ct.selectbox!=null&&ct.hasOwnProperty("selectbox")&&(dt.selectbox=$root.Selectbox.toObject(ct.selectbox,ut),ut.oneofs&&(dt.type="selectbox")),ct.timeInput!=null&&ct.hasOwnProperty("timeInput")&&(dt.timeInput=$root.TimeInput.toObject(ct.timeInput,ut),ut.oneofs&&(dt.type="timeInput")),ct.dateInput!=null&&ct.hasOwnProperty("dateInput")&&(dt.dateInput=$root.DateInput.toObject(ct.dateInput,ut),ut.oneofs&&(dt.type="dateInput")),ct.multiselect!=null&&ct.hasOwnProperty("multiselect")&&(dt.multiselect=$root.MultiSelect.toObject(ct.multiselect,ut),ut.oneofs&&(dt.type="multiselect")),ct.markdown!=null&&ct.hasOwnProperty("markdown")&&(dt.markdown=$root.Markdown.toObject(ct.markdown,ut),ut.oneofs&&(dt.type="markdown")),ct.alert!=null&&ct.hasOwnProperty("alert")&&(dt.alert=$root.Alert.toObject(ct.alert,ut),ut.oneofs&&(dt.type="alert")),ct.json!=null&&ct.hasOwnProperty("json")&&(dt.json=$root.Json.toObject(ct.json,ut),ut.oneofs&&(dt.type="json")),ct.numberInput!=null&&ct.hasOwnProperty("numberInput")&&(dt.numberInput=$root.NumberInput.toObject(ct.numberInput,ut),ut.oneofs&&(dt.type="numberInput")),ct.fileUploader!=null&&ct.hasOwnProperty("fileUploader")&&(dt.fileUploader=$root.FileUploader.toObject(ct.fileUploader,ut),ut.oneofs&&(dt.type="fileUploader")),ct.deckGlJsonChart!=null&&ct.hasOwnProperty("deckGlJsonChart")&&(dt.deckGlJsonChart=$root.DeckGlJsonChart.toObject(ct.deckGlJsonChart,ut),ut.oneofs&&(dt.type="deckGlJsonChart")),ct.colorPicker!=null&&ct.hasOwnProperty("colorPicker")&&(dt.colorPicker=$root.ColorPicker.toObject(ct.colorPicker,ut),ut.oneofs&&(dt.type="colorPicker")),ct.favicon!=null&&ct.hasOwnProperty("favicon")&&(dt.favicon=$root.Favicon.toObject(ct.favicon,ut),ut.oneofs&&(dt.type="favicon")),ct.componentInstance!=null&&ct.hasOwnProperty("componentInstance")&&(dt.componentInstance=$root.ComponentInstance.toObject(ct.componentInstance,ut),ut.oneofs&&(dt.type="componentInstance")),ct.iframe!=null&&ct.hasOwnProperty("iframe")&&(dt.iframe=$root.IFrame.toObject(ct.iframe,ut),ut.oneofs&&(dt.type="iframe")),ct.arrowTable!=null&&ct.hasOwnProperty("arrowTable")&&(dt.arrowTable=$root.Arrow.toObject(ct.arrowTable,ut),ut.oneofs&&(dt.type="arrowTable")),ct.arrowDataFrame!=null&&ct.hasOwnProperty("arrowDataFrame")&&(dt.arrowDataFrame=$root.Arrow.toObject(ct.arrowDataFrame,ut),ut.oneofs&&(dt.type="arrowDataFrame")),ct.arrowVegaLiteChart!=null&&ct.hasOwnProperty("arrowVegaLiteChart")&&(dt.arrowVegaLiteChart=$root.ArrowVegaLiteChart.toObject(ct.arrowVegaLiteChart,ut),ut.oneofs&&(dt.type="arrowVegaLiteChart")),ct.metric!=null&&ct.hasOwnProperty("metric")&&(dt.metric=$root.Metric.toObject(ct.metric,ut),ut.oneofs&&(dt.type="metric")),ct.downloadButton!=null&&ct.hasOwnProperty("downloadButton")&&(dt.downloadButton=$root.DownloadButton.toObject(ct.downloadButton,ut),ut.oneofs&&(dt.type="downloadButton")),ct.spinner!=null&&ct.hasOwnProperty("spinner")&&(dt.spinner=$root.Spinner.toObject(ct.spinner,ut),ut.oneofs&&(dt.type="spinner")),ct.cameraInput!=null&&ct.hasOwnProperty("cameraInput")&&(dt.cameraInput=$root.CameraInput.toObject(ct.cameraInput,ut),ut.oneofs&&(dt.type="cameraInput")),ct.snow!=null&&ct.hasOwnProperty("snow")&&(dt.snow=$root.Snow.toObject(ct.snow,ut),ut.oneofs&&(dt.type="snow")),ct.heading!=null&&ct.hasOwnProperty("heading")&&(dt.heading=$root.Heading.toObject(ct.heading,ut),ut.oneofs&&(dt.type="heading")),ct.code!=null&&ct.hasOwnProperty("code")&&(dt.code=$root.Code.toObject(ct.code,ut),ut.oneofs&&(dt.type="code")),ct.chatInput!=null&&ct.hasOwnProperty("chatInput")&&(dt.chatInput=$root.ChatInput.toObject(ct.chatInput,ut),ut.oneofs&&(dt.type="chatInput")),ct.toast!=null&&ct.hasOwnProperty("toast")&&(dt.toast=$root.Toast.toObject(ct.toast,ut),ut.oneofs&&(dt.type="toast")),ct.linkButton!=null&&ct.hasOwnProperty("linkButton")&&(dt.linkButton=$root.LinkButton.toObject(ct.linkButton,ut),ut.oneofs&&(dt.type="linkButton")),ct.skeleton!=null&&ct.hasOwnProperty("skeleton")&&(dt.skeleton=$root.Skeleton.toObject(ct.skeleton,ut),ut.oneofs&&(dt.type="skeleton")),ct.pageLink!=null&&ct.hasOwnProperty("pageLink")&&(dt.pageLink=$root.PageLink.toObject(ct.pageLink,ut),ut.oneofs&&(dt.type="pageLink")),ct.html!=null&&ct.hasOwnProperty("html")&&(dt.html=$root.Html.toObject(ct.html,ut),ut.oneofs&&(dt.type="html")),ct.buttonGroup!=null&&ct.hasOwnProperty("buttonGroup")&&(dt.buttonGroup=$root.ButtonGroup.toObject(ct.buttonGroup,ut),ut.oneofs&&(dt.type="buttonGroup")),ct.audioInput!=null&&ct.hasOwnProperty("audioInput")&&(dt.audioInput=$root.AudioInput.toObject(ct.audioInput,ut),ut.oneofs&&(dt.type="audioInput")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Element"},ot})();$root.DownloadButton=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default=!1,ot.prototype.help="",ot.prototype.formId="",ot.prototype.url="",ot.prototype.disabled=!1,ot.prototype.useContainerWidth=!1,ot.prototype.type="",ot.prototype.icon="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&Object.hasOwnProperty.call(et,"default")&&ct.uint32(24).bool(et.default),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(42).string(et.formId),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(50).string(et.url),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(56).bool(et.disabled),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(64).bool(et.useContainerWidth),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(74).string(et.type),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(82).string(et.icon),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DownloadButton;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.default=et.bool();break}case 4:{dt.help=et.string();break}case 5:{dt.formId=et.string();break}case 6:{dt.url=et.string();break}case 7:{dt.disabled=et.bool();break}case 8:{dt.useContainerWidth=et.bool();break}case 9:{dt.type=et.string();break}case 10:{dt.icon=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id)?"id: string expected":et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label)?"label: string expected":et.default!=null&&et.hasOwnProperty("default")&&typeof et.default!="boolean"?"default: boolean expected":et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId)?"formId: string expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean"?"disabled: boolean expected":et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":et.type!=null&&et.hasOwnProperty("type")&&!$util.isString(et.type)?"type: string expected":et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":null},ot.fromObject=function(et){if(et instanceof $root.DownloadButton)return et;let ct=new $root.DownloadButton;return et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default!=null&&(ct.default=!!et.default),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.url!=null&&(ct.url=String(et.url)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.type!=null&&(ct.type=String(et.type)),et.icon!=null&&(ct.icon=String(et.icon)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.id="",ut.label="",ut.default=!1,ut.help="",ut.formId="",ut.url="",ut.disabled=!1,ut.useContainerWidth=!1,ut.type="",ut.icon=""),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default!=null&&et.hasOwnProperty("default")&&(ut.default=et.default),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=et.type),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DownloadButton"},ot})(),$root.DocString=(()=>{function ot(et){if(this.members=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.docString="",ot.prototype.type="",ot.prototype.name="",ot.prototype.value="",ot.prototype.members=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.docString!=null&&Object.hasOwnProperty.call(et,"docString")&&ct.uint32(26).string(et.docString),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(34).string(et.type),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(50).string(et.name),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(58).string(et.value),et.members!=null&&et.members.length)for(let ut=0;ut<et.members.length;++ut)$root.Member.encode(et.members[ut],ct.uint32(66).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.DocString;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 3:{dt.docString=et.string();break}case 4:{dt.type=et.string();break}case 6:{dt.name=et.string();break}case 7:{dt.value=et.string();break}case 8:{dt.members&&dt.members.length||(dt.members=[]),dt.members.push($root.Member.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.docString!=null&&et.hasOwnProperty("docString")&&!$util.isString(et.docString))return"docString: string expected";if(et.type!=null&&et.hasOwnProperty("type")&&!$util.isString(et.type))return"type: string expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.value!=null&&et.hasOwnProperty("value")&&!$util.isString(et.value))return"value: string expected";if(et.members!=null&&et.hasOwnProperty("members")){if(!Array.isArray(et.members))return"members: array expected";for(let ct=0;ct<et.members.length;++ct){let ut=$root.Member.verify(et.members[ct]);if(ut)return"members."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.DocString)return et;let ct=new $root.DocString;if(et.docString!=null&&(ct.docString=String(et.docString)),et.type!=null&&(ct.type=String(et.type)),et.name!=null&&(ct.name=String(et.name)),et.value!=null&&(ct.value=String(et.value)),et.members){if(!Array.isArray(et.members))throw TypeError(".DocString.members: array expected");ct.members=[];for(let ut=0;ut<et.members.length;++ut){if(typeof et.members[ut]!="object")throw TypeError(".DocString.members: object expected");ct.members[ut]=$root.Member.fromObject(et.members[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.members=[]),ct.defaults&&(ut.docString="",ut.type="",ut.name="",ut.value=""),et.docString!=null&&et.hasOwnProperty("docString")&&(ut.docString=et.docString),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=et.type),et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),et.members&&et.members.length){ut.members=[];for(let dt=0;dt<et.members.length;++dt)ut.members[dt]=$root.Member.toObject(et.members[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/DocString"},ot})(),$root.Member=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.name="",ot.prototype.type="",ot.prototype.value=null,ot.prototype.docString=null;let et;return Object.defineProperty(ot.prototype,"contents",{get:$util.oneOfGetter(et=["value","docString"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.name!=null&&Object.hasOwnProperty.call(ct,"name")&&ut.uint32(10).string(ct.name),ct.type!=null&&Object.hasOwnProperty.call(ct,"type")&&ut.uint32(18).string(ct.type),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(26).string(ct.value),ct.docString!=null&&Object.hasOwnProperty.call(ct,"docString")&&ut.uint32(34).string(ct.docString),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Member;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.name=ct.string();break}case 2:{ft.type=ct.string();break}case 3:{ft.value=ct.string();break}case 4:{ft.docString=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.name!=null&&ct.hasOwnProperty("name")&&!$util.isString(ct.name))return"name: string expected";if(ct.type!=null&&ct.hasOwnProperty("type")&&!$util.isString(ct.type))return"type: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&(ut.contents=1,!$util.isString(ct.value)))return"value: string expected";if(ct.docString!=null&&ct.hasOwnProperty("docString")){if(ut.contents===1)return"contents: multiple values";if(ut.contents=1,!$util.isString(ct.docString))return"docString: string expected"}return null},ot.fromObject=function(ct){if(ct instanceof $root.Member)return ct;let ut=new $root.Member;return ct.name!=null&&(ut.name=String(ct.name)),ct.type!=null&&(ut.type=String(ct.type)),ct.value!=null&&(ut.value=String(ct.value)),ct.docString!=null&&(ut.docString=String(ct.docString)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.name="",dt.type=""),ct.name!=null&&ct.hasOwnProperty("name")&&(dt.name=ct.name),ct.type!=null&&ct.hasOwnProperty("type")&&(dt.type=ct.type),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt.contents="value")),ct.docString!=null&&ct.hasOwnProperty("docString")&&(dt.docString=ct.docString,ut.oneofs&&(dt.contents="docString")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Member"},ot})(),$root.Empty=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Empty;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":null},ot.fromObject=function(et){return et instanceof $root.Empty?et:new $root.Empty},ot.toObject=function(){return{}},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Empty"},ot})(),$root.Exception=(()=>{function ot(et){if(this.stackTrace=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.type="",ot.prototype.message="",ot.prototype.messageIsMarkdown=!1,ot.prototype.stackTrace=$util.emptyArray,ot.prototype.isWarning=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(10).string(et.type),et.message!=null&&Object.hasOwnProperty.call(et,"message")&&ct.uint32(18).string(et.message),et.stackTrace!=null&&et.stackTrace.length)for(let ut=0;ut<et.stackTrace.length;++ut)ct.uint32(26).string(et.stackTrace[ut]);return et.messageIsMarkdown!=null&&Object.hasOwnProperty.call(et,"messageIsMarkdown")&&ct.uint32(32).bool(et.messageIsMarkdown),et.isWarning!=null&&Object.hasOwnProperty.call(et,"isWarning")&&ct.uint32(40).bool(et.isWarning),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Exception;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.type=et.string();break}case 2:{dt.message=et.string();break}case 4:{dt.messageIsMarkdown=et.bool();break}case 3:{dt.stackTrace&&dt.stackTrace.length||(dt.stackTrace=[]),dt.stackTrace.push(et.string());break}case 5:{dt.isWarning=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.type!=null&&et.hasOwnProperty("type")&&!$util.isString(et.type))return"type: string expected";if(et.message!=null&&et.hasOwnProperty("message")&&!$util.isString(et.message))return"message: string expected";if(et.messageIsMarkdown!=null&&et.hasOwnProperty("messageIsMarkdown")&&typeof et.messageIsMarkdown!="boolean")return"messageIsMarkdown: boolean expected";if(et.stackTrace!=null&&et.hasOwnProperty("stackTrace")){if(!Array.isArray(et.stackTrace))return"stackTrace: array expected";for(let ct=0;ct<et.stackTrace.length;++ct)if(!$util.isString(et.stackTrace[ct]))return"stackTrace: string[] expected"}return et.isWarning!=null&&et.hasOwnProperty("isWarning")&&typeof et.isWarning!="boolean"?"isWarning: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Exception)return et;let ct=new $root.Exception;if(et.type!=null&&(ct.type=String(et.type)),et.message!=null&&(ct.message=String(et.message)),et.messageIsMarkdown!=null&&(ct.messageIsMarkdown=!!et.messageIsMarkdown),et.stackTrace){if(!Array.isArray(et.stackTrace))throw TypeError(".Exception.stackTrace: array expected");ct.stackTrace=[];for(let ut=0;ut<et.stackTrace.length;++ut)ct.stackTrace[ut]=String(et.stackTrace[ut])}return et.isWarning!=null&&(ct.isWarning=!!et.isWarning),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.stackTrace=[]),ct.defaults&&(ut.type="",ut.message="",ut.messageIsMarkdown=!1,ut.isWarning=!1),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=et.type),et.message!=null&&et.hasOwnProperty("message")&&(ut.message=et.message),et.stackTrace&&et.stackTrace.length){ut.stackTrace=[];for(let dt=0;dt<et.stackTrace.length;++dt)ut.stackTrace[dt]=et.stackTrace[dt]}return et.messageIsMarkdown!=null&&et.hasOwnProperty("messageIsMarkdown")&&(ut.messageIsMarkdown=et.messageIsMarkdown),et.isWarning!=null&&et.hasOwnProperty("isWarning")&&(ut.isWarning=et.isWarning),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Exception"},ot})(),$root.Favicon=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.url="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(10).string(et.url),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Favicon;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.url=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Favicon)return et;let ct=new $root.Favicon;return et.url!=null&&(ct.url=String(et.url)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.url=""),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Favicon"},ot})(),$root.FileUploader=(()=>{function ot(et){if(this.type=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.type=$util.emptyArray,ot.prototype.maxUploadSizeMb=0,ot.prototype.multipleFiles=!1,ot.prototype.help="",ot.prototype.formId="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.type!=null&&et.type.length)for(let ut=0;ut<et.type.length;++ut)ct.uint32(26).string(et.type[ut]);return et.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(et,"maxUploadSizeMb")&&ct.uint32(32).int32(et.maxUploadSizeMb),et.multipleFiles!=null&&Object.hasOwnProperty.call(et,"multipleFiles")&&ct.uint32(48).bool(et.multipleFiles),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(58).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(66).string(et.formId),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(72).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(82).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FileUploader;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{dt.type&&dt.type.length||(dt.type=[]),dt.type.push(et.string());break}case 4:{dt.maxUploadSizeMb=et.int32();break}case 6:{dt.multipleFiles=et.bool();break}case 7:{dt.help=et.string();break}case 8:{dt.formId=et.string();break}case 9:{dt.disabled=et.bool();break}case 10:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.type!=null&&et.hasOwnProperty("type")){if(!Array.isArray(et.type))return"type: array expected";for(let ct=0;ct<et.type.length;++ct)if(!$util.isString(et.type[ct]))return"type: string[] expected"}if(et.maxUploadSizeMb!=null&&et.hasOwnProperty("maxUploadSizeMb")&&!$util.isInteger(et.maxUploadSizeMb))return"maxUploadSizeMb: integer expected";if(et.multipleFiles!=null&&et.hasOwnProperty("multipleFiles")&&typeof et.multipleFiles!="boolean")return"multipleFiles: boolean expected";if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.FileUploader)return et;let ct=new $root.FileUploader;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.type){if(!Array.isArray(et.type))throw TypeError(".FileUploader.type: array expected");ct.type=[];for(let ut=0;ut<et.type.length;++ut)ct.type[ut]=String(et.type[ut])}if(et.maxUploadSizeMb!=null&&(ct.maxUploadSizeMb=et.maxUploadSizeMb|0),et.multipleFiles!=null&&(ct.multipleFiles=!!et.multipleFiles),et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.type=[]),ct.defaults&&(ut.id="",ut.label="",ut.maxUploadSizeMb=0,ut.multipleFiles=!1,ut.help="",ut.formId="",ut.disabled=!1,ut.labelVisibility=null),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.type&&et.type.length){ut.type=[];for(let dt=0;dt<et.type.length;++dt)ut.type[dt]=et.type[dt]}return et.maxUploadSizeMb!=null&&et.hasOwnProperty("maxUploadSizeMb")&&(ut.maxUploadSizeMb=et.maxUploadSizeMb),et.multipleFiles!=null&&et.hasOwnProperty("multipleFiles")&&(ut.multipleFiles=et.multipleFiles),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FileUploader"},ot})(),$root.GraphVizChart=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.spec="",ot.prototype.useContainerWidth=!1,ot.prototype.elementId="",ot.prototype.engine="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.spec!=null&&Object.hasOwnProperty.call(et,"spec")&&ct.uint32(10).string(et.spec),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(32).bool(et.useContainerWidth),et.elementId!=null&&Object.hasOwnProperty.call(et,"elementId")&&ct.uint32(42).string(et.elementId),et.engine!=null&&Object.hasOwnProperty.call(et,"engine")&&ct.uint32(50).string(et.engine),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.GraphVizChart;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.spec=et.string();break}case 4:{dt.useContainerWidth=et.bool();break}case 5:{dt.elementId=et.string();break}case 6:{dt.engine=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.spec!=null&&et.hasOwnProperty("spec")&&!$util.isString(et.spec)?"spec: string expected":et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":et.elementId!=null&&et.hasOwnProperty("elementId")&&!$util.isString(et.elementId)?"elementId: string expected":et.engine!=null&&et.hasOwnProperty("engine")&&!$util.isString(et.engine)?"engine: string expected":null},ot.fromObject=function(et){if(et instanceof $root.GraphVizChart)return et;let ct=new $root.GraphVizChart;return et.spec!=null&&(ct.spec=String(et.spec)),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.elementId!=null&&(ct.elementId=String(et.elementId)),et.engine!=null&&(ct.engine=String(et.engine)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.spec="",ut.useContainerWidth=!1,ut.elementId="",ut.engine=""),et.spec!=null&&et.hasOwnProperty("spec")&&(ut.spec=et.spec),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.elementId!=null&&et.hasOwnProperty("elementId")&&(ut.elementId=et.elementId),et.engine!=null&&et.hasOwnProperty("engine")&&(ut.engine=et.engine),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/GraphVizChart"},ot})(),$root.Html=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.body="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(10).string(et.body),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Html;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.body=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body)?"body: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Html)return et;let ct=new $root.Html;return et.body!=null&&(ct.body=String(et.body)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.body=""),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Html"},ot})(),$root.IFrame=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.src=null,ot.prototype.srcdoc=null,ot.prototype.width=0,ot.prototype.hasWidth=!1,ot.prototype.height=0,ot.prototype.scrolling=!1;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["src","srcdoc"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.src!=null&&Object.hasOwnProperty.call(ct,"src")&&ut.uint32(10).string(ct.src),ct.srcdoc!=null&&Object.hasOwnProperty.call(ct,"srcdoc")&&ut.uint32(18).string(ct.srcdoc),ct.width!=null&&Object.hasOwnProperty.call(ct,"width")&&ut.uint32(29).float(ct.width),ct.hasWidth!=null&&Object.hasOwnProperty.call(ct,"hasWidth")&&ut.uint32(32).bool(ct.hasWidth),ct.height!=null&&Object.hasOwnProperty.call(ct,"height")&&ut.uint32(45).float(ct.height),ct.scrolling!=null&&Object.hasOwnProperty.call(ct,"scrolling")&&ut.uint32(56).bool(ct.scrolling),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.IFrame;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.src=ct.string();break}case 2:{ft.srcdoc=ct.string();break}case 3:{ft.width=ct.float();break}case 4:{ft.hasWidth=ct.bool();break}case 5:{ft.height=ct.float();break}case 7:{ft.scrolling=ct.bool();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.src!=null&&ct.hasOwnProperty("src")&&(ut.type=1,!$util.isString(ct.src)))return"src: string expected";if(ct.srcdoc!=null&&ct.hasOwnProperty("srcdoc")){if(ut.type===1)return"type: multiple values";if(ut.type=1,!$util.isString(ct.srcdoc))return"srcdoc: string expected"}return ct.width!=null&&ct.hasOwnProperty("width")&&typeof ct.width!="number"?"width: number expected":ct.hasWidth!=null&&ct.hasOwnProperty("hasWidth")&&typeof ct.hasWidth!="boolean"?"hasWidth: boolean expected":ct.height!=null&&ct.hasOwnProperty("height")&&typeof ct.height!="number"?"height: number expected":ct.scrolling!=null&&ct.hasOwnProperty("scrolling")&&typeof ct.scrolling!="boolean"?"scrolling: boolean expected":null},ot.fromObject=function(ct){if(ct instanceof $root.IFrame)return ct;let ut=new $root.IFrame;return ct.src!=null&&(ut.src=String(ct.src)),ct.srcdoc!=null&&(ut.srcdoc=String(ct.srcdoc)),ct.width!=null&&(ut.width=Number(ct.width)),ct.hasWidth!=null&&(ut.hasWidth=!!ct.hasWidth),ct.height!=null&&(ut.height=Number(ct.height)),ct.scrolling!=null&&(ut.scrolling=!!ct.scrolling),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.width=0,dt.hasWidth=!1,dt.height=0,dt.scrolling=!1),ct.src!=null&&ct.hasOwnProperty("src")&&(dt.src=ct.src,ut.oneofs&&(dt.type="src")),ct.srcdoc!=null&&ct.hasOwnProperty("srcdoc")&&(dt.srcdoc=ct.srcdoc,ut.oneofs&&(dt.type="srcdoc")),ct.width!=null&&ct.hasOwnProperty("width")&&(dt.width=ut.json&&!isFinite(ct.width)?String(ct.width):ct.width),ct.hasWidth!=null&&ct.hasOwnProperty("hasWidth")&&(dt.hasWidth=ct.hasWidth),ct.height!=null&&ct.hasOwnProperty("height")&&(dt.height=ut.json&&!isFinite(ct.height)?String(ct.height):ct.height),ct.scrolling!=null&&ct.hasOwnProperty("scrolling")&&(dt.scrolling=ct.scrolling),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/IFrame"},ot})(),$root.Image=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.url="",ot.prototype.caption="",ot.prototype.markup="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.caption!=null&&Object.hasOwnProperty.call(et,"caption")&&ct.uint32(18).string(et.caption),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(26).string(et.url),et.markup!=null&&Object.hasOwnProperty.call(et,"markup")&&ct.uint32(34).string(et.markup),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Image;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 3:{dt.url=et.string();break}case 2:{dt.caption=et.string();break}case 4:{dt.markup=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.caption!=null&&et.hasOwnProperty("caption")&&!$util.isString(et.caption)?"caption: string expected":et.markup!=null&&et.hasOwnProperty("markup")&&!$util.isString(et.markup)?"markup: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Image)return et;let ct=new $root.Image;return et.url!=null&&(ct.url=String(et.url)),et.caption!=null&&(ct.caption=String(et.caption)),et.markup!=null&&(ct.markup=String(et.markup)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.caption="",ut.url="",ut.markup=""),et.caption!=null&&et.hasOwnProperty("caption")&&(ut.caption=et.caption),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.markup!=null&&et.hasOwnProperty("markup")&&(ut.markup=et.markup),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Image"},ot})(),$root.ImageList=(()=>{function ot(et){if(this.imgs=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.imgs=$util.emptyArray,ot.prototype.width=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.imgs!=null&&et.imgs.length)for(let ut=0;ut<et.imgs.length;++ut)$root.Image.encode(et.imgs[ut],ct.uint32(10).fork()).ldelim();return et.width!=null&&Object.hasOwnProperty.call(et,"width")&&ct.uint32(16).int32(et.width),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ImageList;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.imgs&&dt.imgs.length||(dt.imgs=[]),dt.imgs.push($root.Image.decode(et,et.uint32()));break}case 2:{dt.width=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.imgs!=null&&et.hasOwnProperty("imgs")){if(!Array.isArray(et.imgs))return"imgs: array expected";for(let ct=0;ct<et.imgs.length;++ct){let ut=$root.Image.verify(et.imgs[ct]);if(ut)return"imgs."+ut}}return et.width!=null&&et.hasOwnProperty("width")&&!$util.isInteger(et.width)?"width: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.ImageList)return et;let ct=new $root.ImageList;if(et.imgs){if(!Array.isArray(et.imgs))throw TypeError(".ImageList.imgs: array expected");ct.imgs=[];for(let ut=0;ut<et.imgs.length;++ut){if(typeof et.imgs[ut]!="object")throw TypeError(".ImageList.imgs: object expected");ct.imgs[ut]=$root.Image.fromObject(et.imgs[ut])}}return et.width!=null&&(ct.width=et.width|0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.imgs=[]),ct.defaults&&(ut.width=0),et.imgs&&et.imgs.length){ut.imgs=[];for(let dt=0;dt<et.imgs.length;++dt)ut.imgs[dt]=$root.Image.toObject(et.imgs[dt],ct)}return et.width!=null&&et.hasOwnProperty("width")&&(ut.width=et.width),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ImageList"},ot})(),$root.Json=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.body="",ot.prototype.expanded=!1,ot.prototype.maxExpandDepth=null;let et;return Object.defineProperty(ot.prototype,"_maxExpandDepth",{get:$util.oneOfGetter(et=["maxExpandDepth"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.body!=null&&Object.hasOwnProperty.call(ct,"body")&&ut.uint32(10).string(ct.body),ct.expanded!=null&&Object.hasOwnProperty.call(ct,"expanded")&&ut.uint32(16).bool(ct.expanded),ct.maxExpandDepth!=null&&Object.hasOwnProperty.call(ct,"maxExpandDepth")&&ut.uint32(24).int32(ct.maxExpandDepth),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Json;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.body=ct.string();break}case 2:{ft.expanded=ct.bool();break}case 3:{ft.maxExpandDepth=ct.int32();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){return typeof ct!="object"||ct===null?"object expected":ct.body!=null&&ct.hasOwnProperty("body")&&!$util.isString(ct.body)?"body: string expected":ct.expanded!=null&&ct.hasOwnProperty("expanded")&&typeof ct.expanded!="boolean"?"expanded: boolean expected":ct.maxExpandDepth!=null&&ct.hasOwnProperty("maxExpandDepth")&&!$util.isInteger(ct.maxExpandDepth)?"maxExpandDepth: integer expected":null},ot.fromObject=function(ct){if(ct instanceof $root.Json)return ct;let ut=new $root.Json;return ct.body!=null&&(ut.body=String(ct.body)),ct.expanded!=null&&(ut.expanded=!!ct.expanded),ct.maxExpandDepth!=null&&(ut.maxExpandDepth=ct.maxExpandDepth|0),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.body="",dt.expanded=!1),ct.body!=null&&ct.hasOwnProperty("body")&&(dt.body=ct.body),ct.expanded!=null&&ct.hasOwnProperty("expanded")&&(dt.expanded=ct.expanded),ct.maxExpandDepth!=null&&ct.hasOwnProperty("maxExpandDepth")&&(dt.maxExpandDepth=ct.maxExpandDepth,ut.oneofs&&(dt._maxExpandDepth="maxExpandDepth")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Json"},ot})(),$root.LinkButton=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.label="",ot.prototype.help="",ot.prototype.url="",ot.prototype.disabled=!1,ot.prototype.useContainerWidth=!1,ot.prototype.type="",ot.prototype.icon="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(50).string(et.url),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(56).bool(et.disabled),et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(64).bool(et.useContainerWidth),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(74).string(et.type),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(82).string(et.icon),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.LinkButton;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 2:{dt.label=et.string();break}case 4:{dt.help=et.string();break}case 6:{dt.url=et.string();break}case 7:{dt.disabled=et.bool();break}case 8:{dt.useContainerWidth=et.bool();break}case 9:{dt.type=et.string();break}case 10:{dt.icon=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label)?"label: string expected":et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean"?"disabled: boolean expected":et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":et.type!=null&&et.hasOwnProperty("type")&&!$util.isString(et.type)?"type: string expected":et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":null},ot.fromObject=function(et){if(et instanceof $root.LinkButton)return et;let ct=new $root.LinkButton;return et.label!=null&&(ct.label=String(et.label)),et.help!=null&&(ct.help=String(et.help)),et.url!=null&&(ct.url=String(et.url)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),et.type!=null&&(ct.type=String(et.type)),et.icon!=null&&(ct.icon=String(et.icon)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.label="",ut.help="",ut.url="",ut.disabled=!1,ut.useContainerWidth=!1,ut.type="",ut.icon=""),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=et.type),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/LinkButton"},ot})();let Markdown$1,Metric$1;NumberInput$1=$root.NumberInput=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.formId="",ot.prototype.format="",ot.prototype.hasMin=!1,ot.prototype.hasMax=!1,ot.prototype.dataType=0,ot.prototype.default=null,ot.prototype.step=0,ot.prototype.min=0,ot.prototype.max=0,ot.prototype.help="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.placeholder="";let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(26).string(ct.formId),ct.format!=null&&Object.hasOwnProperty.call(ct,"format")&&ut.uint32(66).string(ct.format),ct.hasMin!=null&&Object.hasOwnProperty.call(ct,"hasMin")&&ut.uint32(88).bool(ct.hasMin),ct.hasMax!=null&&Object.hasOwnProperty.call(ct,"hasMax")&&ut.uint32(96).bool(ct.hasMax),ct.dataType!=null&&Object.hasOwnProperty.call(ct,"dataType")&&ut.uint32(104).int32(ct.dataType),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(113).double(ct.default),ct.step!=null&&Object.hasOwnProperty.call(ct,"step")&&ut.uint32(121).double(ct.step),ct.min!=null&&Object.hasOwnProperty.call(ct,"min")&&ut.uint32(129).double(ct.min),ct.max!=null&&Object.hasOwnProperty.call(ct,"max")&&ut.uint32(137).double(ct.max),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(146).string(ct.help),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(153).double(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(160).bool(ct.setValue),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(168).bool(ct.disabled),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(178).fork()).ldelim(),ct.placeholder!=null&&Object.hasOwnProperty.call(ct,"placeholder")&&ut.uint32(186).string(ct.placeholder),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.NumberInput;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.formId=ct.string();break}case 8:{ft.format=ct.string();break}case 11:{ft.hasMin=ct.bool();break}case 12:{ft.hasMax=ct.bool();break}case 13:{ft.dataType=ct.int32();break}case 14:{ft.default=ct.double();break}case 15:{ft.step=ct.double();break}case 16:{ft.min=ct.double();break}case 17:{ft.max=ct.double();break}case 18:{ft.help=ct.string();break}case 19:{ft.value=ct.double();break}case 20:{ft.setValue=ct.bool();break}case 21:{ft.disabled=ct.bool();break}case 22:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}case 23:{ft.placeholder=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.format!=null&&ct.hasOwnProperty("format")&&!$util.isString(ct.format))return"format: string expected";if(ct.hasMin!=null&&ct.hasOwnProperty("hasMin")&&typeof ct.hasMin!="boolean")return"hasMin: boolean expected";if(ct.hasMax!=null&&ct.hasOwnProperty("hasMax")&&typeof ct.hasMax!="boolean")return"hasMax: boolean expected";if(ct.dataType!=null&&ct.hasOwnProperty("dataType"))switch(ct.dataType){default:return"dataType: enum value expected";case 0:case 1:break}if(ct.default!=null&&ct.hasOwnProperty("default")&&typeof ct.default!="number")return"default: number expected";if(ct.step!=null&&ct.hasOwnProperty("step")&&typeof ct.step!="number")return"step: number expected";if(ct.min!=null&&ct.hasOwnProperty("min")&&typeof ct.min!="number")return"min: number expected";if(ct.max!=null&&ct.hasOwnProperty("max")&&typeof ct.max!="number")return"max: number expected";if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&typeof ct.value!="number")return"value: number expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&!$util.isString(ct.placeholder)?"placeholder: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.NumberInput)return ct;let ut=new $root.NumberInput;switch(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.format!=null&&(ut.format=String(ct.format)),ct.hasMin!=null&&(ut.hasMin=!!ct.hasMin),ct.hasMax!=null&&(ut.hasMax=!!ct.hasMax),ct.dataType){default:if(typeof ct.dataType=="number"){ut.dataType=ct.dataType;break}break;case"INT":case 0:ut.dataType=0;break;case"FLOAT":case 1:ut.dataType=1;break}if(ct.default!=null&&(ut.default=Number(ct.default)),ct.step!=null&&(ut.step=Number(ct.step)),ct.min!=null&&(ut.min=Number(ct.min)),ct.max!=null&&(ut.max=Number(ct.max)),ct.help!=null&&(ut.help=String(ct.help)),ct.value!=null&&(ut.value=Number(ct.value)),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ct.placeholder!=null&&(ut.placeholder=String(ct.placeholder)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.id="",dt.label="",dt.formId="",dt.format="",dt.hasMin=!1,dt.hasMax=!1,dt.dataType=ut.enums===String?"INT":0,dt.step=0,dt.min=0,dt.max=0,dt.help="",dt.setValue=!1,dt.disabled=!1,dt.labelVisibility=null,dt.placeholder=""),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.format!=null&&ct.hasOwnProperty("format")&&(dt.format=ct.format),ct.hasMin!=null&&ct.hasOwnProperty("hasMin")&&(dt.hasMin=ct.hasMin),ct.hasMax!=null&&ct.hasOwnProperty("hasMax")&&(dt.hasMax=ct.hasMax),ct.dataType!=null&&ct.hasOwnProperty("dataType")&&(dt.dataType=ut.enums===String?$root.NumberInput.DataType[ct.dataType]===void 0?ct.dataType:$root.NumberInput.DataType[ct.dataType]:ct.dataType),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ut.json&&!isFinite(ct.default)?String(ct.default):ct.default,ut.oneofs&&(dt._default="default")),ct.step!=null&&ct.hasOwnProperty("step")&&(dt.step=ut.json&&!isFinite(ct.step)?String(ct.step):ct.step),ct.min!=null&&ct.hasOwnProperty("min")&&(dt.min=ut.json&&!isFinite(ct.min)?String(ct.min):ct.min),ct.max!=null&&ct.hasOwnProperty("max")&&(dt.max=ut.json&&!isFinite(ct.max)?String(ct.max):ct.max),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ut.json&&!isFinite(ct.value)?String(ct.value):ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&(dt.placeholder=ct.placeholder),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/NumberInput"},ot.DataType=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="INT"]=0,ut[ct[1]="FLOAT"]=1,ut}(),ot})(),Markdown$1=$root.Markdown=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.body="",ot.prototype.allowHtml=!1,ot.prototype.isCaption=!1,ot.prototype.elementType=0,ot.prototype.help="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(10).string(et.body),et.allowHtml!=null&&Object.hasOwnProperty.call(et,"allowHtml")&&ct.uint32(16).bool(et.allowHtml),et.isCaption!=null&&Object.hasOwnProperty.call(et,"isCaption")&&ct.uint32(24).bool(et.isCaption),et.elementType!=null&&Object.hasOwnProperty.call(et,"elementType")&&ct.uint32(32).int32(et.elementType),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(42).string(et.help),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Markdown;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.body=et.string();break}case 2:{dt.allowHtml=et.bool();break}case 3:{dt.isCaption=et.bool();break}case 4:{dt.elementType=et.int32();break}case 5:{dt.help=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body))return"body: string expected";if(et.allowHtml!=null&&et.hasOwnProperty("allowHtml")&&typeof et.allowHtml!="boolean")return"allowHtml: boolean expected";if(et.isCaption!=null&&et.hasOwnProperty("isCaption")&&typeof et.isCaption!="boolean")return"isCaption: boolean expected";if(et.elementType!=null&&et.hasOwnProperty("elementType"))switch(et.elementType){default:return"elementType: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:break}return et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Markdown)return et;let ct=new $root.Markdown;switch(et.body!=null&&(ct.body=String(et.body)),et.allowHtml!=null&&(ct.allowHtml=!!et.allowHtml),et.isCaption!=null&&(ct.isCaption=!!et.isCaption),et.elementType){default:if(typeof et.elementType=="number"){ct.elementType=et.elementType;break}break;case"UNSPECIFIED":case 0:ct.elementType=0;break;case"NATIVE":case 1:ct.elementType=1;break;case"CAPTION":case 2:ct.elementType=2;break;case"CODE":case 3:ct.elementType=3;break;case"LATEX":case 4:ct.elementType=4;break;case"DIVIDER":case 5:ct.elementType=5;break}return et.help!=null&&(ct.help=String(et.help)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.body="",ut.allowHtml=!1,ut.isCaption=!1,ut.elementType=ct.enums===String?"UNSPECIFIED":0,ut.help=""),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.allowHtml!=null&&et.hasOwnProperty("allowHtml")&&(ut.allowHtml=et.allowHtml),et.isCaption!=null&&et.hasOwnProperty("isCaption")&&(ut.isCaption=et.isCaption),et.elementType!=null&&et.hasOwnProperty("elementType")&&(ut.elementType=ct.enums===String?$root.Markdown.Type[et.elementType]===void 0?et.elementType:$root.Markdown.Type[et.elementType]:et.elementType),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Markdown"},ot.Type=function(){const et={},ct=Object.create(et);return ct[et[0]="UNSPECIFIED"]=0,ct[et[1]="NATIVE"]=1,ct[et[2]="CAPTION"]=2,ct[et[3]="CODE"]=3,ct[et[4]="LATEX"]=4,ct[et[5]="DIVIDER"]=5,ct}(),ot})(),Metric$1=$root.Metric=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.label="",ot.prototype.body="",ot.prototype.delta="",ot.prototype.direction=0,ot.prototype.color=0,ot.prototype.help="",ot.prototype.labelVisibility=null,ot.prototype.showBorder=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(10).string(et.label),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(18).string(et.body),et.delta!=null&&Object.hasOwnProperty.call(et,"delta")&&ct.uint32(26).string(et.delta),et.direction!=null&&Object.hasOwnProperty.call(et,"direction")&&ct.uint32(32).int32(et.direction),et.color!=null&&Object.hasOwnProperty.call(et,"color")&&ct.uint32(40).int32(et.color),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(50).string(et.help),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(58).fork()).ldelim(),et.showBorder!=null&&Object.hasOwnProperty.call(et,"showBorder")&&ct.uint32(64).bool(et.showBorder),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Metric;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.label=et.string();break}case 2:{dt.body=et.string();break}case 3:{dt.delta=et.string();break}case 4:{dt.direction=et.int32();break}case 5:{dt.color=et.int32();break}case 6:{dt.help=et.string();break}case 7:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}case 8:{dt.showBorder=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body))return"body: string expected";if(et.delta!=null&&et.hasOwnProperty("delta")&&!$util.isString(et.delta))return"delta: string expected";if(et.direction!=null&&et.hasOwnProperty("direction"))switch(et.direction){default:return"direction: enum value expected";case 0:case 1:case 2:break}if(et.color!=null&&et.hasOwnProperty("color"))switch(et.color){default:return"color: enum value expected";case 0:case 1:case 2:break}if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return et.showBorder!=null&&et.hasOwnProperty("showBorder")&&typeof et.showBorder!="boolean"?"showBorder: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Metric)return et;let ct=new $root.Metric;switch(et.label!=null&&(ct.label=String(et.label)),et.body!=null&&(ct.body=String(et.body)),et.delta!=null&&(ct.delta=String(et.delta)),et.direction){default:if(typeof et.direction=="number"){ct.direction=et.direction;break}break;case"DOWN":case 0:ct.direction=0;break;case"UP":case 1:ct.direction=1;break;case"NONE":case 2:ct.direction=2;break}switch(et.color){default:if(typeof et.color=="number"){ct.color=et.color;break}break;case"RED":case 0:ct.color=0;break;case"GREEN":case 1:ct.color=1;break;case"GRAY":case 2:ct.color=2;break}if(et.help!=null&&(ct.help=String(et.help)),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return et.showBorder!=null&&(ct.showBorder=!!et.showBorder),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.label="",ut.body="",ut.delta="",ut.direction=ct.enums===String?"DOWN":0,ut.color=ct.enums===String?"RED":0,ut.help="",ut.labelVisibility=null,ut.showBorder=!1),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.delta!=null&&et.hasOwnProperty("delta")&&(ut.delta=et.delta),et.direction!=null&&et.hasOwnProperty("direction")&&(ut.direction=ct.enums===String?$root.Metric.MetricDirection[et.direction]===void 0?et.direction:$root.Metric.MetricDirection[et.direction]:et.direction),et.color!=null&&et.hasOwnProperty("color")&&(ut.color=ct.enums===String?$root.Metric.MetricColor[et.color]===void 0?et.color:$root.Metric.MetricColor[et.color]:et.color),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),et.showBorder!=null&&et.hasOwnProperty("showBorder")&&(ut.showBorder=et.showBorder),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Metric"},ot.MetricColor=function(){const et={},ct=Object.create(et);return ct[et[0]="RED"]=0,ct[et[1]="GREEN"]=1,ct[et[2]="GRAY"]=2,ct}(),ot.MetricDirection=function(){const et={},ct=Object.create(et);return ct[et[0]="DOWN"]=0,ct[et[1]="UP"]=1,ct[et[2]="NONE"]=2,ct}(),ot})(),$root.MultiSelect=(()=>{function ot(et){if(this.default=[],this.options=[],this.value=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.label="",ot.prototype.default=$util.emptyArray,ot.prototype.options=$util.emptyArray,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=$util.emptyArray,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.maxSelections=0,ot.prototype.placeholder="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(18).string(et.label),et.default!=null&&et.default.length){ct.uint32(26).fork();for(let ut=0;ut<et.default.length;++ut)ct.int32(et.default[ut]);ct.ldelim()}if(et.options!=null&&et.options.length)for(let ut=0;ut<et.options.length;++ut)ct.uint32(34).string(et.options[ut]);if(et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(42).string(et.help),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(50).string(et.formId),et.value!=null&&et.value.length){ct.uint32(58).fork();for(let ut=0;ut<et.value.length;++ut)ct.int32(et.value[ut]);ct.ldelim()}return et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(64).bool(et.setValue),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(72).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(82).fork()).ldelim(),et.maxSelections!=null&&Object.hasOwnProperty.call(et,"maxSelections")&&ct.uint32(88).int32(et.maxSelections),et.placeholder!=null&&Object.hasOwnProperty.call(et,"placeholder")&&ct.uint32(98).string(et.placeholder),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.MultiSelect;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.label=et.string();break}case 3:{if(dt.default&&dt.default.length||(dt.default=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.default.push(et.int32())}else dt.default.push(et.int32());break}case 4:{dt.options&&dt.options.length||(dt.options=[]),dt.options.push(et.string());break}case 5:{dt.help=et.string();break}case 6:{dt.formId=et.string();break}case 7:{if(dt.value&&dt.value.length||(dt.value=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.value.push(et.int32())}else dt.value.push(et.int32());break}case 8:{dt.setValue=et.bool();break}case 9:{dt.disabled=et.bool();break}case 10:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}case 11:{dt.maxSelections=et.int32();break}case 12:{dt.placeholder=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.default!=null&&et.hasOwnProperty("default")){if(!Array.isArray(et.default))return"default: array expected";for(let ct=0;ct<et.default.length;++ct)if(!$util.isInteger(et.default[ct]))return"default: integer[] expected"}if(et.options!=null&&et.hasOwnProperty("options")){if(!Array.isArray(et.options))return"options: array expected";for(let ct=0;ct<et.options.length;++ct)if(!$util.isString(et.options[ct]))return"options: string[] expected"}if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.value!=null&&et.hasOwnProperty("value")){if(!Array.isArray(et.value))return"value: array expected";for(let ct=0;ct<et.value.length;++ct)if(!$util.isInteger(et.value[ct]))return"value: integer[] expected"}if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}return et.maxSelections!=null&&et.hasOwnProperty("maxSelections")&&!$util.isInteger(et.maxSelections)?"maxSelections: integer expected":et.placeholder!=null&&et.hasOwnProperty("placeholder")&&!$util.isString(et.placeholder)?"placeholder: string expected":null},ot.fromObject=function(et){if(et instanceof $root.MultiSelect)return et;let ct=new $root.MultiSelect;if(et.id!=null&&(ct.id=String(et.id)),et.label!=null&&(ct.label=String(et.label)),et.default){if(!Array.isArray(et.default))throw TypeError(".MultiSelect.default: array expected");ct.default=[];for(let ut=0;ut<et.default.length;++ut)ct.default[ut]=et.default[ut]|0}if(et.options){if(!Array.isArray(et.options))throw TypeError(".MultiSelect.options: array expected");ct.options=[];for(let ut=0;ut<et.options.length;++ut)ct.options[ut]=String(et.options[ut])}if(et.help!=null&&(ct.help=String(et.help)),et.formId!=null&&(ct.formId=String(et.formId)),et.value){if(!Array.isArray(et.value))throw TypeError(".MultiSelect.value: array expected");ct.value=[];for(let ut=0;ut<et.value.length;++ut)ct.value[ut]=et.value[ut]|0}if(et.setValue!=null&&(ct.setValue=!!et.setValue),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}return et.maxSelections!=null&&(ct.maxSelections=et.maxSelections|0),et.placeholder!=null&&(ct.placeholder=String(et.placeholder)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.default=[],ut.options=[],ut.value=[]),ct.defaults&&(ut.id="",ut.label="",ut.help="",ut.formId="",ut.setValue=!1,ut.disabled=!1,ut.labelVisibility=null,ut.maxSelections=0,ut.placeholder=""),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.default&&et.default.length){ut.default=[];for(let dt=0;dt<et.default.length;++dt)ut.default[dt]=et.default[dt]}if(et.options&&et.options.length){ut.options=[];for(let dt=0;dt<et.options.length;++dt)ut.options[dt]=et.options[dt]}if(et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.value&&et.value.length){ut.value=[];for(let dt=0;dt<et.value.length;++dt)ut.value[dt]=et.value[dt]}return et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),et.maxSelections!=null&&et.hasOwnProperty("maxSelections")&&(ut.maxSelections=et.maxSelections),et.placeholder!=null&&et.hasOwnProperty("placeholder")&&(ut.placeholder=et.placeholder),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/MultiSelect"},ot})(),$root.PageLink=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.page="",ot.prototype.label="",ot.prototype.icon="",ot.prototype.pageScriptHash="",ot.prototype.help="",ot.prototype.useContainerWidth=null,ot.prototype.disabled=!1,ot.prototype.external=!1;let et;return Object.defineProperty(ot.prototype,"_useContainerWidth",{get:$util.oneOfGetter(et=["useContainerWidth"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.page!=null&&Object.hasOwnProperty.call(ct,"page")&&ut.uint32(10).string(ct.page),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.icon!=null&&Object.hasOwnProperty.call(ct,"icon")&&ut.uint32(26).string(ct.icon),ct.pageScriptHash!=null&&Object.hasOwnProperty.call(ct,"pageScriptHash")&&ut.uint32(34).string(ct.pageScriptHash),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(42).string(ct.help),ct.useContainerWidth!=null&&Object.hasOwnProperty.call(ct,"useContainerWidth")&&ut.uint32(48).bool(ct.useContainerWidth),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(56).bool(ct.disabled),ct.external!=null&&Object.hasOwnProperty.call(ct,"external")&&ut.uint32(64).bool(ct.external),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.PageLink;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.page=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.icon=ct.string();break}case 4:{ft.pageScriptHash=ct.string();break}case 5:{ft.help=ct.string();break}case 6:{ft.useContainerWidth=ct.bool();break}case 7:{ft.disabled=ct.bool();break}case 8:{ft.external=ct.bool();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){return typeof ct!="object"||ct===null?"object expected":ct.page!=null&&ct.hasOwnProperty("page")&&!$util.isString(ct.page)?"page: string expected":ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label)?"label: string expected":ct.icon!=null&&ct.hasOwnProperty("icon")&&!$util.isString(ct.icon)?"icon: string expected":ct.pageScriptHash!=null&&ct.hasOwnProperty("pageScriptHash")&&!$util.isString(ct.pageScriptHash)?"pageScriptHash: string expected":ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help)?"help: string expected":ct.useContainerWidth!=null&&ct.hasOwnProperty("useContainerWidth")&&typeof ct.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean"?"disabled: boolean expected":ct.external!=null&&ct.hasOwnProperty("external")&&typeof ct.external!="boolean"?"external: boolean expected":null},ot.fromObject=function(ct){if(ct instanceof $root.PageLink)return ct;let ut=new $root.PageLink;return ct.page!=null&&(ut.page=String(ct.page)),ct.label!=null&&(ut.label=String(ct.label)),ct.icon!=null&&(ut.icon=String(ct.icon)),ct.pageScriptHash!=null&&(ut.pageScriptHash=String(ct.pageScriptHash)),ct.help!=null&&(ut.help=String(ct.help)),ct.useContainerWidth!=null&&(ut.useContainerWidth=!!ct.useContainerWidth),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.external!=null&&(ut.external=!!ct.external),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.page="",dt.label="",dt.icon="",dt.pageScriptHash="",dt.help="",dt.disabled=!1,dt.external=!1),ct.page!=null&&ct.hasOwnProperty("page")&&(dt.page=ct.page),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.icon!=null&&ct.hasOwnProperty("icon")&&(dt.icon=ct.icon),ct.pageScriptHash!=null&&ct.hasOwnProperty("pageScriptHash")&&(dt.pageScriptHash=ct.pageScriptHash),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.useContainerWidth!=null&&ct.hasOwnProperty("useContainerWidth")&&(dt.useContainerWidth=ct.useContainerWidth,ut.oneofs&&(dt._useContainerWidth="useContainerWidth")),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.external!=null&&ct.hasOwnProperty("external")&&(dt.external=ct.external),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/PageLink"},ot})(),PlotlyChart$1=$root.PlotlyChart=(()=>{function ot(ct){if(this.selectionMode=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.useContainerWidth=!1,ot.prototype.theme="",ot.prototype.id="",ot.prototype.selectionMode=$util.emptyArray,ot.prototype.formId="",ot.prototype.spec="",ot.prototype.config="",ot.prototype.url=null,ot.prototype.figure=null;let et;return Object.defineProperty(ot.prototype,"chart",{get:$util.oneOfGetter(et=["url","figure"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.url!=null&&Object.hasOwnProperty.call(ct,"url")&&ut.uint32(10).string(ct.url),ct.figure!=null&&Object.hasOwnProperty.call(ct,"figure")&&$root.Figure.encode(ct.figure,ut.uint32(18).fork()).ldelim(),ct.useContainerWidth!=null&&Object.hasOwnProperty.call(ct,"useContainerWidth")&&ut.uint32(40).bool(ct.useContainerWidth),ct.theme!=null&&Object.hasOwnProperty.call(ct,"theme")&&ut.uint32(50).string(ct.theme),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(58).string(ct.id),ct.selectionMode!=null&&ct.selectionMode.length){ut.uint32(66).fork();for(let dt=0;dt<ct.selectionMode.length;++dt)ut.int32(ct.selectionMode[dt]);ut.ldelim()}return ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(74).string(ct.formId),ct.spec!=null&&Object.hasOwnProperty.call(ct,"spec")&&ut.uint32(82).string(ct.spec),ct.config!=null&&Object.hasOwnProperty.call(ct,"config")&&ut.uint32(90).string(ct.config),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.PlotlyChart;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 5:{ft.useContainerWidth=ct.bool();break}case 6:{ft.theme=ct.string();break}case 7:{ft.id=ct.string();break}case 8:{if(ft.selectionMode&&ft.selectionMode.length||(ft.selectionMode=[]),(zt&7)===2){let Dt=ct.uint32()+ct.pos;for(;ct.pos<Dt;)ft.selectionMode.push(ct.int32())}else ft.selectionMode.push(ct.int32());break}case 9:{ft.formId=ct.string();break}case 10:{ft.spec=ct.string();break}case 11:{ft.config=ct.string();break}case 1:{ft.url=ct.string();break}case 2:{ft.figure=$root.Figure.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.useContainerWidth!=null&&ct.hasOwnProperty("useContainerWidth")&&typeof ct.useContainerWidth!="boolean")return"useContainerWidth: boolean expected";if(ct.theme!=null&&ct.hasOwnProperty("theme")&&!$util.isString(ct.theme))return"theme: string expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.selectionMode!=null&&ct.hasOwnProperty("selectionMode")){if(!Array.isArray(ct.selectionMode))return"selectionMode: array expected";for(let dt=0;dt<ct.selectionMode.length;++dt)switch(ct.selectionMode[dt]){default:return"selectionMode: enum value[] expected";case 0:case 1:case 2:break}}if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.spec!=null&&ct.hasOwnProperty("spec")&&!$util.isString(ct.spec))return"spec: string expected";if(ct.config!=null&&ct.hasOwnProperty("config")&&!$util.isString(ct.config))return"config: string expected";if(ct.url!=null&&ct.hasOwnProperty("url")&&(ut.chart=1,!$util.isString(ct.url)))return"url: string expected";if(ct.figure!=null&&ct.hasOwnProperty("figure")){if(ut.chart===1)return"chart: multiple values";ut.chart=1;{let dt=$root.Figure.verify(ct.figure);if(dt)return"figure."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.PlotlyChart)return ct;let ut=new $root.PlotlyChart;if(ct.useContainerWidth!=null&&(ut.useContainerWidth=!!ct.useContainerWidth),ct.theme!=null&&(ut.theme=String(ct.theme)),ct.id!=null&&(ut.id=String(ct.id)),ct.selectionMode){if(!Array.isArray(ct.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");ut.selectionMode=[];for(let dt=0;dt<ct.selectionMode.length;++dt)switch(ct.selectionMode[dt]){default:if(typeof ct.selectionMode[dt]=="number"){ut.selectionMode[dt]=ct.selectionMode[dt];break}case"POINTS":case 0:ut.selectionMode[dt]=0;break;case"BOX":case 1:ut.selectionMode[dt]=1;break;case"LASSO":case 2:ut.selectionMode[dt]=2;break}}if(ct.formId!=null&&(ut.formId=String(ct.formId)),ct.spec!=null&&(ut.spec=String(ct.spec)),ct.config!=null&&(ut.config=String(ct.config)),ct.url!=null&&(ut.url=String(ct.url)),ct.figure!=null){if(typeof ct.figure!="object")throw TypeError(".PlotlyChart.figure: object expected");ut.figure=$root.Figure.fromObject(ct.figure)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.selectionMode=[]),ut.defaults&&(dt.useContainerWidth=!1,dt.theme="",dt.id="",dt.formId="",dt.spec="",dt.config=""),ct.url!=null&&ct.hasOwnProperty("url")&&(dt.url=ct.url,ut.oneofs&&(dt.chart="url")),ct.figure!=null&&ct.hasOwnProperty("figure")&&(dt.figure=$root.Figure.toObject(ct.figure,ut),ut.oneofs&&(dt.chart="figure")),ct.useContainerWidth!=null&&ct.hasOwnProperty("useContainerWidth")&&(dt.useContainerWidth=ct.useContainerWidth),ct.theme!=null&&ct.hasOwnProperty("theme")&&(dt.theme=ct.theme),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.selectionMode&&ct.selectionMode.length){dt.selectionMode=[];for(let ft=0;ft<ct.selectionMode.length;++ft)dt.selectionMode[ft]=ut.enums===String?$root.PlotlyChart.SelectionMode[ct.selectionMode[ft]]===void 0?ct.selectionMode[ft]:$root.PlotlyChart.SelectionMode[ct.selectionMode[ft]]:ct.selectionMode[ft]}return ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.spec!=null&&ct.hasOwnProperty("spec")&&(dt.spec=ct.spec),ct.config!=null&&ct.hasOwnProperty("config")&&(dt.config=ct.config),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/PlotlyChart"},ot.SelectionMode=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="POINTS"]=0,ut[ct[1]="BOX"]=1,ut[ct[2]="LASSO"]=2,ut}(),ot})(),$root.Figure=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.spec="",ot.prototype.config="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.spec!=null&&Object.hasOwnProperty.call(et,"spec")&&ct.uint32(10).string(et.spec),et.config!=null&&Object.hasOwnProperty.call(et,"config")&&ct.uint32(18).string(et.config),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Figure;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.spec=et.string();break}case 2:{dt.config=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.spec!=null&&et.hasOwnProperty("spec")&&!$util.isString(et.spec)?"spec: string expected":et.config!=null&&et.hasOwnProperty("config")&&!$util.isString(et.config)?"config: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Figure)return et;let ct=new $root.Figure;return et.spec!=null&&(ct.spec=String(et.spec)),et.config!=null&&(ct.config=String(et.config)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.spec="",ut.config=""),et.spec!=null&&et.hasOwnProperty("spec")&&(ut.spec=et.spec),et.config!=null&&et.hasOwnProperty("config")&&(ut.config=et.config),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Figure"},ot})(),$root.Progress=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.value=0,ot.prototype.text="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.value!=null&&Object.hasOwnProperty.call(et,"value")&&ct.uint32(8).uint32(et.value),et.text!=null&&Object.hasOwnProperty.call(et,"text")&&ct.uint32(18).string(et.text),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Progress;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.value=et.uint32();break}case 2:{dt.text=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.value!=null&&et.hasOwnProperty("value")&&!$util.isInteger(et.value)?"value: integer expected":et.text!=null&&et.hasOwnProperty("text")&&!$util.isString(et.text)?"text: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Progress)return et;let ct=new $root.Progress;return et.value!=null&&(ct.value=et.value>>>0),et.text!=null&&(ct.text=String(et.text)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.value=0,ut.text=""),et.value!=null&&et.hasOwnProperty("value")&&(ut.value=et.value),et.text!=null&&et.hasOwnProperty("text")&&(ut.text=et.text),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Progress"},ot})(),$root.Snow=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.show=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.show!=null&&Object.hasOwnProperty.call(et,"show")&&ct.uint32(8).bool(et.show),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Snow;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.show=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.show!=null&&et.hasOwnProperty("show")&&typeof et.show!="boolean"?"show: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Snow)return et;let ct=new $root.Snow;return et.show!=null&&(ct.show=!!et.show),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.show=!1),et.show!=null&&et.hasOwnProperty("show")&&(ut.show=et.show),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Snow"},ot})(),$root.Spinner=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.text="",ot.prototype.cache=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.text!=null&&Object.hasOwnProperty.call(et,"text")&&ct.uint32(10).string(et.text),et.cache!=null&&Object.hasOwnProperty.call(et,"cache")&&ct.uint32(16).bool(et.cache),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Spinner;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.text=et.string();break}case 2:{dt.cache=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.text!=null&&et.hasOwnProperty("text")&&!$util.isString(et.text)?"text: string expected":et.cache!=null&&et.hasOwnProperty("cache")&&typeof et.cache!="boolean"?"cache: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Spinner)return et;let ct=new $root.Spinner;return et.text!=null&&(ct.text=String(et.text)),et.cache!=null&&(ct.cache=!!et.cache),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.text="",ut.cache=!1),et.text!=null&&et.hasOwnProperty("text")&&(ut.text=et.text),et.cache!=null&&et.hasOwnProperty("cache")&&(ut.cache=et.cache),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Spinner"},ot})(),$root.Radio=(()=>{function ot(ct){if(this.options=[],this.captions=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.default=null,ot.prototype.options=$util.emptyArray,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.horizontal=!1,ot.prototype.labelVisibility=null,ot.prototype.captions=$util.emptyArray;let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(24).int32(ct.default),ct.options!=null&&ct.options.length)for(let dt=0;dt<ct.options.length;++dt)ut.uint32(34).string(ct.options[dt]);if(ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(42).string(ct.help),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(50).string(ct.formId),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(56).int32(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(64).bool(ct.setValue),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(72).bool(ct.disabled),ct.horizontal!=null&&Object.hasOwnProperty.call(ct,"horizontal")&&ut.uint32(80).bool(ct.horizontal),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(90).fork()).ldelim(),ct.captions!=null&&ct.captions.length)for(let dt=0;dt<ct.captions.length;++dt)ut.uint32(98).string(ct.captions[dt]);return ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Radio;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.default=ct.int32();break}case 4:{ft.options&&ft.options.length||(ft.options=[]),ft.options.push(ct.string());break}case 5:{ft.help=ct.string();break}case 6:{ft.formId=ct.string();break}case 7:{ft.value=ct.int32();break}case 8:{ft.setValue=ct.bool();break}case 9:{ft.disabled=ct.bool();break}case 10:{ft.horizontal=ct.bool();break}case 11:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}case 12:{ft.captions&&ft.captions.length||(ft.captions=[]),ft.captions.push(ct.string());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.default!=null&&ct.hasOwnProperty("default")&&!$util.isInteger(ct.default))return"default: integer expected";if(ct.options!=null&&ct.hasOwnProperty("options")){if(!Array.isArray(ct.options))return"options: array expected";for(let ut=0;ut<ct.options.length;++ut)if(!$util.isString(ct.options[ut]))return"options: string[] expected"}if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isInteger(ct.value))return"value: integer expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.horizontal!=null&&ct.hasOwnProperty("horizontal")&&typeof ct.horizontal!="boolean")return"horizontal: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}if(ct.captions!=null&&ct.hasOwnProperty("captions")){if(!Array.isArray(ct.captions))return"captions: array expected";for(let ut=0;ut<ct.captions.length;++ut)if(!$util.isString(ct.captions[ut]))return"captions: string[] expected"}return null},ot.fromObject=function(ct){if(ct instanceof $root.Radio)return ct;let ut=new $root.Radio;if(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.default!=null&&(ut.default=ct.default|0),ct.options){if(!Array.isArray(ct.options))throw TypeError(".Radio.options: array expected");ut.options=[];for(let dt=0;dt<ct.options.length;++dt)ut.options[dt]=String(ct.options[dt])}if(ct.help!=null&&(ut.help=String(ct.help)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value!=null&&(ut.value=ct.value|0),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.horizontal!=null&&(ut.horizontal=!!ct.horizontal),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}if(ct.captions){if(!Array.isArray(ct.captions))throw TypeError(".Radio.captions: array expected");ut.captions=[];for(let dt=0;dt<ct.captions.length;++dt)ut.captions[dt]=String(ct.captions[dt])}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.options=[],dt.captions=[]),ut.defaults&&(dt.id="",dt.label="",dt.help="",dt.formId="",dt.setValue=!1,dt.disabled=!1,dt.horizontal=!1,dt.labelVisibility=null),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ct.default,ut.oneofs&&(dt._default="default")),ct.options&&ct.options.length){dt.options=[];for(let ft=0;ft<ct.options.length;++ft)dt.options[ft]=ct.options[ft]}if(ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.horizontal!=null&&ct.hasOwnProperty("horizontal")&&(dt.horizontal=ct.horizontal),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),ct.captions&&ct.captions.length){dt.captions=[];for(let ft=0;ft<ct.captions.length;++ft)dt.captions[ft]=ct.captions[ft]}return dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Radio"},ot})(),$root.Selectbox=(()=>{function ot(ct){if(this.options=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.default=null,ot.prototype.options=$util.emptyArray,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.placeholder="";let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(24).int32(ct.default),ct.options!=null&&ct.options.length)for(let dt=0;dt<ct.options.length;++dt)ut.uint32(34).string(ct.options[dt]);return ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(42).string(ct.help),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(50).string(ct.formId),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(56).int32(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(64).bool(ct.setValue),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(72).bool(ct.disabled),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(82).fork()).ldelim(),ct.placeholder!=null&&Object.hasOwnProperty.call(ct,"placeholder")&&ut.uint32(90).string(ct.placeholder),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Selectbox;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.default=ct.int32();break}case 4:{ft.options&&ft.options.length||(ft.options=[]),ft.options.push(ct.string());break}case 5:{ft.help=ct.string();break}case 6:{ft.formId=ct.string();break}case 7:{ft.value=ct.int32();break}case 8:{ft.setValue=ct.bool();break}case 9:{ft.disabled=ct.bool();break}case 10:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}case 11:{ft.placeholder=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.default!=null&&ct.hasOwnProperty("default")&&!$util.isInteger(ct.default))return"default: integer expected";if(ct.options!=null&&ct.hasOwnProperty("options")){if(!Array.isArray(ct.options))return"options: array expected";for(let ut=0;ut<ct.options.length;++ut)if(!$util.isString(ct.options[ut]))return"options: string[] expected"}if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isInteger(ct.value))return"value: integer expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&!$util.isString(ct.placeholder)?"placeholder: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.Selectbox)return ct;let ut=new $root.Selectbox;if(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.default!=null&&(ut.default=ct.default|0),ct.options){if(!Array.isArray(ct.options))throw TypeError(".Selectbox.options: array expected");ut.options=[];for(let dt=0;dt<ct.options.length;++dt)ut.options[dt]=String(ct.options[dt])}if(ct.help!=null&&(ut.help=String(ct.help)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value!=null&&(ut.value=ct.value|0),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ct.placeholder!=null&&(ut.placeholder=String(ct.placeholder)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.options=[]),ut.defaults&&(dt.id="",dt.label="",dt.help="",dt.formId="",dt.setValue=!1,dt.disabled=!1,dt.labelVisibility=null,dt.placeholder=""),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ct.default,ut.oneofs&&(dt._default="default")),ct.options&&ct.options.length){dt.options=[];for(let ft=0;ft<ct.options.length;++ft)dt.options[ft]=ct.options[ft]}return ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&(dt.placeholder=ct.placeholder),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Selectbox"},ot})(),Skeleton$1=$root.Skeleton=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.style=0,ot.prototype.height=null;let et;return Object.defineProperty(ot.prototype,"_height",{get:$util.oneOfGetter(et=["height"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.style!=null&&Object.hasOwnProperty.call(ct,"style")&&ut.uint32(8).int32(ct.style),ct.height!=null&&Object.hasOwnProperty.call(ct,"height")&&ut.uint32(16).int32(ct.height),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.Skeleton;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.style=ct.int32();break}case 2:{ft.height=ct.int32();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.style!=null&&ct.hasOwnProperty("style"))switch(ct.style){default:return"style: enum value expected";case 0:case 1:break}return ct.height!=null&&ct.hasOwnProperty("height")&&!$util.isInteger(ct.height)?"height: integer expected":null},ot.fromObject=function(ct){if(ct instanceof $root.Skeleton)return ct;let ut=new $root.Skeleton;switch(ct.style){default:if(typeof ct.style=="number"){ut.style=ct.style;break}break;case"ELEMENT":case 0:ut.style=0;break;case"APP":case 1:ut.style=1;break}return ct.height!=null&&(ut.height=ct.height|0),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.style=ut.enums===String?"ELEMENT":0),ct.style!=null&&ct.hasOwnProperty("style")&&(dt.style=ut.enums===String?$root.Skeleton.SkeletonStyle[ct.style]===void 0?ct.style:$root.Skeleton.SkeletonStyle[ct.style]:ct.style),ct.height!=null&&ct.hasOwnProperty("height")&&(dt.height=ct.height,ut.oneofs&&(dt._height="height")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/Skeleton"},ot.SkeletonStyle=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="ELEMENT"]=0,ut[ct[1]="APP"]=1,ut}(),ot})(),Slider$2=$root.Slider=(()=>{function ot(et){if(this.default=[],this.value=[],this.options=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.id="",ot.prototype.formId="",ot.prototype.label="",ot.prototype.format="",ot.prototype.dataType=0,ot.prototype.default=$util.emptyArray,ot.prototype.min=0,ot.prototype.max=0,ot.prototype.step=0,ot.prototype.value=$util.emptyArray,ot.prototype.setValue=!1,ot.prototype.options=$util.emptyArray,ot.prototype.help="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.type=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(10).string(et.id),et.formId!=null&&Object.hasOwnProperty.call(et,"formId")&&ct.uint32(18).string(et.formId),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(26).string(et.label),et.format!=null&&Object.hasOwnProperty.call(et,"format")&&ct.uint32(34).string(et.format),et.dataType!=null&&Object.hasOwnProperty.call(et,"dataType")&&ct.uint32(40).int32(et.dataType),et.default!=null&&et.default.length){ct.uint32(50).fork();for(let ut=0;ut<et.default.length;++ut)ct.double(et.default[ut]);ct.ldelim()}if(et.min!=null&&Object.hasOwnProperty.call(et,"min")&&ct.uint32(57).double(et.min),et.max!=null&&Object.hasOwnProperty.call(et,"max")&&ct.uint32(65).double(et.max),et.step!=null&&Object.hasOwnProperty.call(et,"step")&&ct.uint32(73).double(et.step),et.value!=null&&et.value.length){ct.uint32(82).fork();for(let ut=0;ut<et.value.length;++ut)ct.double(et.value[ut]);ct.ldelim()}if(et.setValue!=null&&Object.hasOwnProperty.call(et,"setValue")&&ct.uint32(88).bool(et.setValue),et.options!=null&&et.options.length)for(let ut=0;ut<et.options.length;++ut)ct.uint32(106).string(et.options[ut]);return et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(114).string(et.help),et.disabled!=null&&Object.hasOwnProperty.call(et,"disabled")&&ct.uint32(120).bool(et.disabled),et.labelVisibility!=null&&Object.hasOwnProperty.call(et,"labelVisibility")&&$root.LabelVisibilityMessage.encode(et.labelVisibility,ct.uint32(130).fork()).ldelim(),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(136).int32(et.type),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Slider;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.id=et.string();break}case 2:{dt.formId=et.string();break}case 3:{dt.label=et.string();break}case 4:{dt.format=et.string();break}case 5:{dt.dataType=et.int32();break}case 6:{if(dt.default&&dt.default.length||(dt.default=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.default.push(et.double())}else dt.default.push(et.double());break}case 7:{dt.min=et.double();break}case 8:{dt.max=et.double();break}case 9:{dt.step=et.double();break}case 10:{if(dt.value&&dt.value.length||(dt.value=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.value.push(et.double())}else dt.value.push(et.double());break}case 11:{dt.setValue=et.bool();break}case 13:{dt.options&&dt.options.length||(dt.options=[]),dt.options.push(et.string());break}case 14:{dt.help=et.string();break}case 15:{dt.disabled=et.bool();break}case 16:{dt.labelVisibility=$root.LabelVisibilityMessage.decode(et,et.uint32());break}case 17:{dt.type=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id))return"id: string expected";if(et.formId!=null&&et.hasOwnProperty("formId")&&!$util.isString(et.formId))return"formId: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.format!=null&&et.hasOwnProperty("format")&&!$util.isString(et.format))return"format: string expected";if(et.dataType!=null&&et.hasOwnProperty("dataType"))switch(et.dataType){default:return"dataType: enum value expected";case 0:case 1:case 2:case 3:case 4:break}if(et.default!=null&&et.hasOwnProperty("default")){if(!Array.isArray(et.default))return"default: array expected";for(let ct=0;ct<et.default.length;++ct)if(typeof et.default[ct]!="number")return"default: number[] expected"}if(et.min!=null&&et.hasOwnProperty("min")&&typeof et.min!="number")return"min: number expected";if(et.max!=null&&et.hasOwnProperty("max")&&typeof et.max!="number")return"max: number expected";if(et.step!=null&&et.hasOwnProperty("step")&&typeof et.step!="number")return"step: number expected";if(et.value!=null&&et.hasOwnProperty("value")){if(!Array.isArray(et.value))return"value: array expected";for(let ct=0;ct<et.value.length;++ct)if(typeof et.value[ct]!="number")return"value: number[] expected"}if(et.setValue!=null&&et.hasOwnProperty("setValue")&&typeof et.setValue!="boolean")return"setValue: boolean expected";if(et.options!=null&&et.hasOwnProperty("options")){if(!Array.isArray(et.options))return"options: array expected";for(let ct=0;ct<et.options.length;++ct)if(!$util.isString(et.options[ct]))return"options: string[] expected"}if(et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help))return"help: string expected";if(et.disabled!=null&&et.hasOwnProperty("disabled")&&typeof et.disabled!="boolean")return"disabled: boolean expected";if(et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")){let ct=$root.LabelVisibilityMessage.verify(et.labelVisibility);if(ct)return"labelVisibility."+ct}if(et.type!=null&&et.hasOwnProperty("type"))switch(et.type){default:return"type: enum value expected";case 0:case 1:case 2:break}return null},ot.fromObject=function(et){if(et instanceof $root.Slider)return et;let ct=new $root.Slider;switch(et.id!=null&&(ct.id=String(et.id)),et.formId!=null&&(ct.formId=String(et.formId)),et.label!=null&&(ct.label=String(et.label)),et.format!=null&&(ct.format=String(et.format)),et.dataType){default:if(typeof et.dataType=="number"){ct.dataType=et.dataType;break}break;case"INT":case 0:ct.dataType=0;break;case"FLOAT":case 1:ct.dataType=1;break;case"DATETIME":case 2:ct.dataType=2;break;case"DATE":case 3:ct.dataType=3;break;case"TIME":case 4:ct.dataType=4;break}if(et.default){if(!Array.isArray(et.default))throw TypeError(".Slider.default: array expected");ct.default=[];for(let ut=0;ut<et.default.length;++ut)ct.default[ut]=Number(et.default[ut])}if(et.min!=null&&(ct.min=Number(et.min)),et.max!=null&&(ct.max=Number(et.max)),et.step!=null&&(ct.step=Number(et.step)),et.value){if(!Array.isArray(et.value))throw TypeError(".Slider.value: array expected");ct.value=[];for(let ut=0;ut<et.value.length;++ut)ct.value[ut]=Number(et.value[ut])}if(et.setValue!=null&&(ct.setValue=!!et.setValue),et.options){if(!Array.isArray(et.options))throw TypeError(".Slider.options: array expected");ct.options=[];for(let ut=0;ut<et.options.length;++ut)ct.options[ut]=String(et.options[ut])}if(et.help!=null&&(ct.help=String(et.help)),et.disabled!=null&&(ct.disabled=!!et.disabled),et.labelVisibility!=null){if(typeof et.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");ct.labelVisibility=$root.LabelVisibilityMessage.fromObject(et.labelVisibility)}switch(et.type){default:if(typeof et.type=="number"){ct.type=et.type;break}break;case"UNSPECIFIED":case 0:ct.type=0;break;case"SLIDER":case 1:ct.type=1;break;case"SELECT_SLIDER":case 2:ct.type=2;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.default=[],ut.value=[],ut.options=[]),ct.defaults&&(ut.id="",ut.formId="",ut.label="",ut.format="",ut.dataType=ct.enums===String?"INT":0,ut.min=0,ut.max=0,ut.step=0,ut.setValue=!1,ut.help="",ut.disabled=!1,ut.labelVisibility=null,ut.type=ct.enums===String?"UNSPECIFIED":0),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),et.formId!=null&&et.hasOwnProperty("formId")&&(ut.formId=et.formId),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.format!=null&&et.hasOwnProperty("format")&&(ut.format=et.format),et.dataType!=null&&et.hasOwnProperty("dataType")&&(ut.dataType=ct.enums===String?$root.Slider.DataType[et.dataType]===void 0?et.dataType:$root.Slider.DataType[et.dataType]:et.dataType),et.default&&et.default.length){ut.default=[];for(let dt=0;dt<et.default.length;++dt)ut.default[dt]=ct.json&&!isFinite(et.default[dt])?String(et.default[dt]):et.default[dt]}if(et.min!=null&&et.hasOwnProperty("min")&&(ut.min=ct.json&&!isFinite(et.min)?String(et.min):et.min),et.max!=null&&et.hasOwnProperty("max")&&(ut.max=ct.json&&!isFinite(et.max)?String(et.max):et.max),et.step!=null&&et.hasOwnProperty("step")&&(ut.step=ct.json&&!isFinite(et.step)?String(et.step):et.step),et.value&&et.value.length){ut.value=[];for(let dt=0;dt<et.value.length;++dt)ut.value[dt]=ct.json&&!isFinite(et.value[dt])?String(et.value[dt]):et.value[dt]}if(et.setValue!=null&&et.hasOwnProperty("setValue")&&(ut.setValue=et.setValue),et.options&&et.options.length){ut.options=[];for(let dt=0;dt<et.options.length;++dt)ut.options[dt]=et.options[dt]}return et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.disabled!=null&&et.hasOwnProperty("disabled")&&(ut.disabled=et.disabled),et.labelVisibility!=null&&et.hasOwnProperty("labelVisibility")&&(ut.labelVisibility=$root.LabelVisibilityMessage.toObject(et.labelVisibility,ct)),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=ct.enums===String?$root.Slider.Type[et.type]===void 0?et.type:$root.Slider.Type[et.type]:et.type),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Slider"},ot.DataType=function(){const et={},ct=Object.create(et);return ct[et[0]="INT"]=0,ct[et[1]="FLOAT"]=1,ct[et[2]="DATETIME"]=2,ct[et[3]="DATE"]=3,ct[et[4]="TIME"]=4,ct}(),ot.Type=function(){const et={},ct=Object.create(et);return ct[et[0]="UNSPECIFIED"]=0,ct[et[1]="SLIDER"]=1,ct[et[2]="SELECT_SLIDER"]=2,ct}(),ot})(),$root.Text=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.body="",ot.prototype.help="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(10).string(et.body),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(18).string(et.help),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Text;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.body=et.string();break}case 2:{dt.help=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body)?"body: string expected":et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Text)return et;let ct=new $root.Text;return et.body!=null&&(ct.body=String(et.body)),et.help!=null&&(ct.help=String(et.help)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.body="",ut.help=""),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Text"},ot})(),$root.TextArea=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.default=null,ot.prototype.height=0,ot.prototype.maxChars=0,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.placeholder="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null;let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(26).string(ct.default),ct.height!=null&&Object.hasOwnProperty.call(ct,"height")&&ut.uint32(32).uint32(ct.height),ct.maxChars!=null&&Object.hasOwnProperty.call(ct,"maxChars")&&ut.uint32(40).uint32(ct.maxChars),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(50).string(ct.help),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(58).string(ct.formId),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(66).string(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(72).bool(ct.setValue),ct.placeholder!=null&&Object.hasOwnProperty.call(ct,"placeholder")&&ut.uint32(82).string(ct.placeholder),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(88).bool(ct.disabled),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(98).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.TextArea;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.default=ct.string();break}case 4:{ft.height=ct.uint32();break}case 5:{ft.maxChars=ct.uint32();break}case 6:{ft.help=ct.string();break}case 7:{ft.formId=ct.string();break}case 8:{ft.value=ct.string();break}case 9:{ft.setValue=ct.bool();break}case 10:{ft.placeholder=ct.string();break}case 11:{ft.disabled=ct.bool();break}case 12:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.default!=null&&ct.hasOwnProperty("default")&&!$util.isString(ct.default))return"default: string expected";if(ct.height!=null&&ct.hasOwnProperty("height")&&!$util.isInteger(ct.height))return"height: integer expected";if(ct.maxChars!=null&&ct.hasOwnProperty("maxChars")&&!$util.isInteger(ct.maxChars))return"maxChars: integer expected";if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isString(ct.value))return"value: string expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&!$util.isString(ct.placeholder))return"placeholder: string expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return null},ot.fromObject=function(ct){if(ct instanceof $root.TextArea)return ct;let ut=new $root.TextArea;if(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.default!=null&&(ut.default=String(ct.default)),ct.height!=null&&(ut.height=ct.height>>>0),ct.maxChars!=null&&(ut.maxChars=ct.maxChars>>>0),ct.help!=null&&(ut.help=String(ct.help)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value!=null&&(ut.value=String(ct.value)),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.placeholder!=null&&(ut.placeholder=String(ct.placeholder)),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.id="",dt.label="",dt.height=0,dt.maxChars=0,dt.help="",dt.formId="",dt.setValue=!1,dt.placeholder="",dt.disabled=!1,dt.labelVisibility=null),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ct.default,ut.oneofs&&(dt._default="default")),ct.height!=null&&ct.hasOwnProperty("height")&&(dt.height=ct.height),ct.maxChars!=null&&ct.hasOwnProperty("maxChars")&&(dt.maxChars=ct.maxChars),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&(dt.placeholder=ct.placeholder),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/TextArea"},ot})(),TextInput$1=$root.TextInput=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.default=null,ot.prototype.type=0,ot.prototype.maxChars=0,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.autocomplete="",ot.prototype.placeholder="",ot.prototype.disabled=!1,ot.prototype.labelVisibility=null;let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(26).string(ct.default),ct.type!=null&&Object.hasOwnProperty.call(ct,"type")&&ut.uint32(32).int32(ct.type),ct.maxChars!=null&&Object.hasOwnProperty.call(ct,"maxChars")&&ut.uint32(40).uint32(ct.maxChars),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(50).string(ct.help),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(58).string(ct.formId),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(66).string(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(72).bool(ct.setValue),ct.autocomplete!=null&&Object.hasOwnProperty.call(ct,"autocomplete")&&ut.uint32(82).string(ct.autocomplete),ct.placeholder!=null&&Object.hasOwnProperty.call(ct,"placeholder")&&ut.uint32(90).string(ct.placeholder),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(96).bool(ct.disabled),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(106).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.TextInput;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.default=ct.string();break}case 4:{ft.type=ct.int32();break}case 5:{ft.maxChars=ct.uint32();break}case 6:{ft.help=ct.string();break}case 7:{ft.formId=ct.string();break}case 8:{ft.value=ct.string();break}case 9:{ft.setValue=ct.bool();break}case 10:{ft.autocomplete=ct.string();break}case 11:{ft.placeholder=ct.string();break}case 12:{ft.disabled=ct.bool();break}case 13:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.default!=null&&ct.hasOwnProperty("default")&&!$util.isString(ct.default))return"default: string expected";if(ct.type!=null&&ct.hasOwnProperty("type"))switch(ct.type){default:return"type: enum value expected";case 0:case 1:break}if(ct.maxChars!=null&&ct.hasOwnProperty("maxChars")&&!$util.isInteger(ct.maxChars))return"maxChars: integer expected";if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isString(ct.value))return"value: string expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.autocomplete!=null&&ct.hasOwnProperty("autocomplete")&&!$util.isString(ct.autocomplete))return"autocomplete: string expected";if(ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&!$util.isString(ct.placeholder))return"placeholder: string expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return null},ot.fromObject=function(ct){if(ct instanceof $root.TextInput)return ct;let ut=new $root.TextInput;switch(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.default!=null&&(ut.default=String(ct.default)),ct.type){default:if(typeof ct.type=="number"){ut.type=ct.type;break}break;case"DEFAULT":case 0:ut.type=0;break;case"PASSWORD":case 1:ut.type=1;break}if(ct.maxChars!=null&&(ut.maxChars=ct.maxChars>>>0),ct.help!=null&&(ut.help=String(ct.help)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value!=null&&(ut.value=String(ct.value)),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.autocomplete!=null&&(ut.autocomplete=String(ct.autocomplete)),ct.placeholder!=null&&(ut.placeholder=String(ct.placeholder)),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.id="",dt.label="",dt.type=ut.enums===String?"DEFAULT":0,dt.maxChars=0,dt.help="",dt.formId="",dt.setValue=!1,dt.autocomplete="",dt.placeholder="",dt.disabled=!1,dt.labelVisibility=null),ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ct.default,ut.oneofs&&(dt._default="default")),ct.type!=null&&ct.hasOwnProperty("type")&&(dt.type=ut.enums===String?$root.TextInput.Type[ct.type]===void 0?ct.type:$root.TextInput.Type[ct.type]:ct.type),ct.maxChars!=null&&ct.hasOwnProperty("maxChars")&&(dt.maxChars=ct.maxChars),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.autocomplete!=null&&ct.hasOwnProperty("autocomplete")&&(dt.autocomplete=ct.autocomplete),ct.placeholder!=null&&ct.hasOwnProperty("placeholder")&&(dt.placeholder=ct.placeholder),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/TextInput"},ot.Type=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="DEFAULT"]=0,ut[ct[1]="PASSWORD"]=1,ut}(),ot})(),$root.TimeInput=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.id="",ot.prototype.label="",ot.prototype.default=null,ot.prototype.help="",ot.prototype.formId="",ot.prototype.value=null,ot.prototype.setValue=!1,ot.prototype.disabled=!1,ot.prototype.labelVisibility=null,ot.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0;let et;return Object.defineProperty(ot.prototype,"_default",{get:$util.oneOfGetter(et=["default"]),set:$util.oneOfSetter(et)}),Object.defineProperty(ot.prototype,"_value",{get:$util.oneOfGetter(et=["value"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.id!=null&&Object.hasOwnProperty.call(ct,"id")&&ut.uint32(10).string(ct.id),ct.label!=null&&Object.hasOwnProperty.call(ct,"label")&&ut.uint32(18).string(ct.label),ct.default!=null&&Object.hasOwnProperty.call(ct,"default")&&ut.uint32(26).string(ct.default),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(34).string(ct.help),ct.formId!=null&&Object.hasOwnProperty.call(ct,"formId")&&ut.uint32(42).string(ct.formId),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(50).string(ct.value),ct.setValue!=null&&Object.hasOwnProperty.call(ct,"setValue")&&ut.uint32(56).bool(ct.setValue),ct.disabled!=null&&Object.hasOwnProperty.call(ct,"disabled")&&ut.uint32(64).bool(ct.disabled),ct.labelVisibility!=null&&Object.hasOwnProperty.call(ct,"labelVisibility")&&$root.LabelVisibilityMessage.encode(ct.labelVisibility,ut.uint32(74).fork()).ldelim(),ct.step!=null&&Object.hasOwnProperty.call(ct,"step")&&ut.uint32(80).int64(ct.step),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.TimeInput;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.id=ct.string();break}case 2:{ft.label=ct.string();break}case 3:{ft.default=ct.string();break}case 4:{ft.help=ct.string();break}case 5:{ft.formId=ct.string();break}case 6:{ft.value=ct.string();break}case 7:{ft.setValue=ct.bool();break}case 8:{ft.disabled=ct.bool();break}case 9:{ft.labelVisibility=$root.LabelVisibilityMessage.decode(ct,ct.uint32());break}case 10:{ft.step=ct.int64();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.id!=null&&ct.hasOwnProperty("id")&&!$util.isString(ct.id))return"id: string expected";if(ct.label!=null&&ct.hasOwnProperty("label")&&!$util.isString(ct.label))return"label: string expected";if(ct.default!=null&&ct.hasOwnProperty("default")&&!$util.isString(ct.default))return"default: string expected";if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.formId!=null&&ct.hasOwnProperty("formId")&&!$util.isString(ct.formId))return"formId: string expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isString(ct.value))return"value: string expected";if(ct.setValue!=null&&ct.hasOwnProperty("setValue")&&typeof ct.setValue!="boolean")return"setValue: boolean expected";if(ct.disabled!=null&&ct.hasOwnProperty("disabled")&&typeof ct.disabled!="boolean")return"disabled: boolean expected";if(ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")){let ut=$root.LabelVisibilityMessage.verify(ct.labelVisibility);if(ut)return"labelVisibility."+ut}return ct.step!=null&&ct.hasOwnProperty("step")&&!$util.isInteger(ct.step)&&!(ct.step&&$util.isInteger(ct.step.low)&&$util.isInteger(ct.step.high))?"step: integer|Long expected":null},ot.fromObject=function(ct){if(ct instanceof $root.TimeInput)return ct;let ut=new $root.TimeInput;if(ct.id!=null&&(ut.id=String(ct.id)),ct.label!=null&&(ut.label=String(ct.label)),ct.default!=null&&(ut.default=String(ct.default)),ct.help!=null&&(ut.help=String(ct.help)),ct.formId!=null&&(ut.formId=String(ct.formId)),ct.value!=null&&(ut.value=String(ct.value)),ct.setValue!=null&&(ut.setValue=!!ct.setValue),ct.disabled!=null&&(ut.disabled=!!ct.disabled),ct.labelVisibility!=null){if(typeof ct.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");ut.labelVisibility=$root.LabelVisibilityMessage.fromObject(ct.labelVisibility)}return ct.step!=null&&($util.Long?(ut.step=$util.Long.fromValue(ct.step)).unsigned=!1:typeof ct.step=="string"?ut.step=parseInt(ct.step,10):typeof ct.step=="number"?ut.step=ct.step:typeof ct.step=="object"&&(ut.step=new $util.LongBits(ct.step.low>>>0,ct.step.high>>>0).toNumber())),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};if(ut.defaults)if(dt.id="",dt.label="",dt.help="",dt.formId="",dt.setValue=!1,dt.disabled=!1,dt.labelVisibility=null,$util.Long){let ft=new $util.Long(0,0,!1);dt.step=ut.longs===String?ft.toString():ut.longs===Number?ft.toNumber():ft}else dt.step=ut.longs===String?"0":0;return ct.id!=null&&ct.hasOwnProperty("id")&&(dt.id=ct.id),ct.label!=null&&ct.hasOwnProperty("label")&&(dt.label=ct.label),ct.default!=null&&ct.hasOwnProperty("default")&&(dt.default=ct.default,ut.oneofs&&(dt._default="default")),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.formId!=null&&ct.hasOwnProperty("formId")&&(dt.formId=ct.formId),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value,ut.oneofs&&(dt._value="value")),ct.setValue!=null&&ct.hasOwnProperty("setValue")&&(dt.setValue=ct.setValue),ct.disabled!=null&&ct.hasOwnProperty("disabled")&&(dt.disabled=ct.disabled),ct.labelVisibility!=null&&ct.hasOwnProperty("labelVisibility")&&(dt.labelVisibility=$root.LabelVisibilityMessage.toObject(ct.labelVisibility,ut)),ct.step!=null&&ct.hasOwnProperty("step")&&(typeof ct.step=="number"?dt.step=ut.longs===String?String(ct.step):ct.step:dt.step=ut.longs===String?$util.Long.prototype.toString.call(ct.step):ut.longs===Number?new $util.LongBits(ct.step.low>>>0,ct.step.high>>>0).toNumber():ct.step),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/TimeInput"},ot})(),$root.Toast=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.body="",ot.prototype.icon="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(10).string(et.body),et.icon!=null&&Object.hasOwnProperty.call(et,"icon")&&ct.uint32(18).string(et.icon),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Toast;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.body=et.string();break}case 2:{dt.icon=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body)?"body: string expected":et.icon!=null&&et.hasOwnProperty("icon")&&!$util.isString(et.icon)?"icon: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Toast)return et;let ct=new $root.Toast;return et.body!=null&&(ct.body=String(et.body)),et.icon!=null&&(ct.icon=String(et.icon)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.body="",ut.icon=""),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.icon!=null&&et.hasOwnProperty("icon")&&(ut.icon=et.icon),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Toast"},ot})(),$root.VegaLiteChart=(()=>{function ot(et){if(this.datasets=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.spec="",ot.prototype.data=null,ot.prototype.datasets=$util.emptyArray,ot.prototype.useContainerWidth=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.spec!=null&&Object.hasOwnProperty.call(et,"spec")&&ct.uint32(10).string(et.spec),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.DataFrame.encode(et.data,ct.uint32(18).fork()).ldelim(),et.datasets!=null&&et.datasets.length)for(let ut=0;ut<et.datasets.length;++ut)$root.NamedDataSet.encode(et.datasets[ut],ct.uint32(34).fork()).ldelim();return et.useContainerWidth!=null&&Object.hasOwnProperty.call(et,"useContainerWidth")&&ct.uint32(40).bool(et.useContainerWidth),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.VegaLiteChart;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.spec=et.string();break}case 2:{dt.data=$root.DataFrame.decode(et,et.uint32());break}case 4:{dt.datasets&&dt.datasets.length||(dt.datasets=[]),dt.datasets.push($root.NamedDataSet.decode(et,et.uint32()));break}case 5:{dt.useContainerWidth=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.spec!=null&&et.hasOwnProperty("spec")&&!$util.isString(et.spec))return"spec: string expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.DataFrame.verify(et.data);if(ct)return"data."+ct}if(et.datasets!=null&&et.hasOwnProperty("datasets")){if(!Array.isArray(et.datasets))return"datasets: array expected";for(let ct=0;ct<et.datasets.length;++ct){let ut=$root.NamedDataSet.verify(et.datasets[ct]);if(ut)return"datasets."+ut}}return et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&typeof et.useContainerWidth!="boolean"?"useContainerWidth: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.VegaLiteChart)return et;let ct=new $root.VegaLiteChart;if(et.spec!=null&&(ct.spec=String(et.spec)),et.data!=null){if(typeof et.data!="object")throw TypeError(".VegaLiteChart.data: object expected");ct.data=$root.DataFrame.fromObject(et.data)}if(et.datasets){if(!Array.isArray(et.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");ct.datasets=[];for(let ut=0;ut<et.datasets.length;++ut){if(typeof et.datasets[ut]!="object")throw TypeError(".VegaLiteChart.datasets: object expected");ct.datasets[ut]=$root.NamedDataSet.fromObject(et.datasets[ut])}}return et.useContainerWidth!=null&&(ct.useContainerWidth=!!et.useContainerWidth),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.datasets=[]),ct.defaults&&(ut.spec="",ut.data=null,ut.useContainerWidth=!1),et.spec!=null&&et.hasOwnProperty("spec")&&(ut.spec=et.spec),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.DataFrame.toObject(et.data,ct)),et.datasets&&et.datasets.length){ut.datasets=[];for(let dt=0;dt<et.datasets.length;++dt)ut.datasets[dt]=$root.NamedDataSet.toObject(et.datasets[dt],ct)}return et.useContainerWidth!=null&&et.hasOwnProperty("useContainerWidth")&&(ut.useContainerWidth=et.useContainerWidth),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/VegaLiteChart"},ot})(),$root.NamedDataSet=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.name="",ot.prototype.hasName=!1,ot.prototype.data=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(10).string(et.name),et.data!=null&&Object.hasOwnProperty.call(et,"data")&&$root.DataFrame.encode(et.data,ct.uint32(18).fork()).ldelim(),et.hasName!=null&&Object.hasOwnProperty.call(et,"hasName")&&ct.uint32(24).bool(et.hasName),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.NamedDataSet;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.name=et.string();break}case 3:{dt.hasName=et.bool();break}case 2:{dt.data=$root.DataFrame.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.hasName!=null&&et.hasOwnProperty("hasName")&&typeof et.hasName!="boolean")return"hasName: boolean expected";if(et.data!=null&&et.hasOwnProperty("data")){let ct=$root.DataFrame.verify(et.data);if(ct)return"data."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.NamedDataSet)return et;let ct=new $root.NamedDataSet;if(et.name!=null&&(ct.name=String(et.name)),et.hasName!=null&&(ct.hasName=!!et.hasName),et.data!=null){if(typeof et.data!="object")throw TypeError(".NamedDataSet.data: object expected");ct.data=$root.DataFrame.fromObject(et.data)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.name="",ut.data=null,ut.hasName=!1),et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.data!=null&&et.hasOwnProperty("data")&&(ut.data=$root.DataFrame.toObject(et.data,ct)),et.hasName!=null&&et.hasOwnProperty("hasName")&&(ut.hasName=et.hasName),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/NamedDataSet"},ot})(),$root.SubtitleTrack=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.label="",ot.prototype.url="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(10).string(et.label),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(18).string(et.url),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.SubtitleTrack;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.label=et.string();break}case 2:{dt.url=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label)?"label: string expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":null},ot.fromObject=function(et){if(et instanceof $root.SubtitleTrack)return et;let ct=new $root.SubtitleTrack;return et.label!=null&&(ct.label=String(et.label)),et.url!=null&&(ct.url=String(et.url)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.label="",ut.url=""),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/SubtitleTrack"},ot})(),Video$1=$root.Video=(()=>{function ot(et){if(this.subtitles=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.url="",ot.prototype.startTime=0,ot.prototype.type=0,ot.prototype.subtitles=$util.emptyArray,ot.prototype.endTime=0,ot.prototype.loop=!1,ot.prototype.autoplay=!1,ot.prototype.muted=!1,ot.prototype.id="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.startTime!=null&&Object.hasOwnProperty.call(et,"startTime")&&ct.uint32(24).int32(et.startTime),et.type!=null&&Object.hasOwnProperty.call(et,"type")&&ct.uint32(40).int32(et.type),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(50).string(et.url),et.subtitles!=null&&et.subtitles.length)for(let ut=0;ut<et.subtitles.length;++ut)$root.SubtitleTrack.encode(et.subtitles[ut],ct.uint32(58).fork()).ldelim();return et.endTime!=null&&Object.hasOwnProperty.call(et,"endTime")&&ct.uint32(64).int32(et.endTime),et.loop!=null&&Object.hasOwnProperty.call(et,"loop")&&ct.uint32(72).bool(et.loop),et.autoplay!=null&&Object.hasOwnProperty.call(et,"autoplay")&&ct.uint32(80).bool(et.autoplay),et.muted!=null&&Object.hasOwnProperty.call(et,"muted")&&ct.uint32(88).bool(et.muted),et.id!=null&&Object.hasOwnProperty.call(et,"id")&&ct.uint32(98).string(et.id),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Video;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 6:{dt.url=et.string();break}case 3:{dt.startTime=et.int32();break}case 5:{dt.type=et.int32();break}case 7:{dt.subtitles&&dt.subtitles.length||(dt.subtitles=[]),dt.subtitles.push($root.SubtitleTrack.decode(et,et.uint32()));break}case 8:{dt.endTime=et.int32();break}case 9:{dt.loop=et.bool();break}case 10:{dt.autoplay=et.bool();break}case 11:{dt.muted=et.bool();break}case 12:{dt.id=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url))return"url: string expected";if(et.startTime!=null&&et.hasOwnProperty("startTime")&&!$util.isInteger(et.startTime))return"startTime: integer expected";if(et.type!=null&&et.hasOwnProperty("type"))switch(et.type){default:return"type: enum value expected";case 0:case 1:case 2:break}if(et.subtitles!=null&&et.hasOwnProperty("subtitles")){if(!Array.isArray(et.subtitles))return"subtitles: array expected";for(let ct=0;ct<et.subtitles.length;++ct){let ut=$root.SubtitleTrack.verify(et.subtitles[ct]);if(ut)return"subtitles."+ut}}return et.endTime!=null&&et.hasOwnProperty("endTime")&&!$util.isInteger(et.endTime)?"endTime: integer expected":et.loop!=null&&et.hasOwnProperty("loop")&&typeof et.loop!="boolean"?"loop: boolean expected":et.autoplay!=null&&et.hasOwnProperty("autoplay")&&typeof et.autoplay!="boolean"?"autoplay: boolean expected":et.muted!=null&&et.hasOwnProperty("muted")&&typeof et.muted!="boolean"?"muted: boolean expected":et.id!=null&&et.hasOwnProperty("id")&&!$util.isString(et.id)?"id: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Video)return et;let ct=new $root.Video;switch(et.url!=null&&(ct.url=String(et.url)),et.startTime!=null&&(ct.startTime=et.startTime|0),et.type){default:if(typeof et.type=="number"){ct.type=et.type;break}break;case"UNUSED":case 0:ct.type=0;break;case"NATIVE":case 1:ct.type=1;break;case"YOUTUBE_IFRAME":case 2:ct.type=2;break}if(et.subtitles){if(!Array.isArray(et.subtitles))throw TypeError(".Video.subtitles: array expected");ct.subtitles=[];for(let ut=0;ut<et.subtitles.length;++ut){if(typeof et.subtitles[ut]!="object")throw TypeError(".Video.subtitles: object expected");ct.subtitles[ut]=$root.SubtitleTrack.fromObject(et.subtitles[ut])}}return et.endTime!=null&&(ct.endTime=et.endTime|0),et.loop!=null&&(ct.loop=!!et.loop),et.autoplay!=null&&(ct.autoplay=!!et.autoplay),et.muted!=null&&(ct.muted=!!et.muted),et.id!=null&&(ct.id=String(et.id)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.subtitles=[]),ct.defaults&&(ut.startTime=0,ut.type=ct.enums===String?"UNUSED":0,ut.url="",ut.endTime=0,ut.loop=!1,ut.autoplay=!1,ut.muted=!1,ut.id=""),et.startTime!=null&&et.hasOwnProperty("startTime")&&(ut.startTime=et.startTime),et.type!=null&&et.hasOwnProperty("type")&&(ut.type=ct.enums===String?$root.Video.Type[et.type]===void 0?et.type:$root.Video.Type[et.type]:et.type),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.subtitles&&et.subtitles.length){ut.subtitles=[];for(let dt=0;dt<et.subtitles.length;++dt)ut.subtitles[dt]=$root.SubtitleTrack.toObject(et.subtitles[dt],ct)}return et.endTime!=null&&et.hasOwnProperty("endTime")&&(ut.endTime=et.endTime),et.loop!=null&&et.hasOwnProperty("loop")&&(ut.loop=et.loop),et.autoplay!=null&&et.hasOwnProperty("autoplay")&&(ut.autoplay=et.autoplay),et.muted!=null&&et.hasOwnProperty("muted")&&(ut.muted=et.muted),et.id!=null&&et.hasOwnProperty("id")&&(ut.id=et.id),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Video"},ot.Type=function(){const et={},ct=Object.create(et);return ct[et[0]="UNUSED"]=0,ct[et[1]="NATIVE"]=1,ct[et[2]="YOUTUBE_IFRAME"]=2,ct}(),ot})(),$root.Heading=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.tag="",ot.prototype.anchor="",ot.prototype.body="",ot.prototype.help="",ot.prototype.hideAnchor=!1,ot.prototype.divider="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.tag!=null&&Object.hasOwnProperty.call(et,"tag")&&ct.uint32(10).string(et.tag),et.anchor!=null&&Object.hasOwnProperty.call(et,"anchor")&&ct.uint32(18).string(et.anchor),et.body!=null&&Object.hasOwnProperty.call(et,"body")&&ct.uint32(26).string(et.body),et.help!=null&&Object.hasOwnProperty.call(et,"help")&&ct.uint32(34).string(et.help),et.hideAnchor!=null&&Object.hasOwnProperty.call(et,"hideAnchor")&&ct.uint32(40).bool(et.hideAnchor),et.divider!=null&&Object.hasOwnProperty.call(et,"divider")&&ct.uint32(50).string(et.divider),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Heading;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.tag=et.string();break}case 2:{dt.anchor=et.string();break}case 3:{dt.body=et.string();break}case 4:{dt.help=et.string();break}case 5:{dt.hideAnchor=et.bool();break}case 6:{dt.divider=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.tag!=null&&et.hasOwnProperty("tag")&&!$util.isString(et.tag)?"tag: string expected":et.anchor!=null&&et.hasOwnProperty("anchor")&&!$util.isString(et.anchor)?"anchor: string expected":et.body!=null&&et.hasOwnProperty("body")&&!$util.isString(et.body)?"body: string expected":et.help!=null&&et.hasOwnProperty("help")&&!$util.isString(et.help)?"help: string expected":et.hideAnchor!=null&&et.hasOwnProperty("hideAnchor")&&typeof et.hideAnchor!="boolean"?"hideAnchor: boolean expected":et.divider!=null&&et.hasOwnProperty("divider")&&!$util.isString(et.divider)?"divider: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Heading)return et;let ct=new $root.Heading;return et.tag!=null&&(ct.tag=String(et.tag)),et.anchor!=null&&(ct.anchor=String(et.anchor)),et.body!=null&&(ct.body=String(et.body)),et.help!=null&&(ct.help=String(et.help)),et.hideAnchor!=null&&(ct.hideAnchor=!!et.hideAnchor),et.divider!=null&&(ct.divider=String(et.divider)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.tag="",ut.anchor="",ut.body="",ut.help="",ut.hideAnchor=!1,ut.divider=""),et.tag!=null&&et.hasOwnProperty("tag")&&(ut.tag=et.tag),et.anchor!=null&&et.hasOwnProperty("anchor")&&(ut.anchor=et.anchor),et.body!=null&&et.hasOwnProperty("body")&&(ut.body=et.body),et.help!=null&&et.hasOwnProperty("help")&&(ut.help=et.help),et.hideAnchor!=null&&et.hasOwnProperty("hideAnchor")&&(ut.hideAnchor=et.hideAnchor),et.divider!=null&&et.hasOwnProperty("divider")&&(ut.divider=et.divider),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Heading"},ot})();const ForwardMsg=$root.ForwardMsg=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.hash="",ot.prototype.metadata=null,ot.prototype.newSession=null,ot.prototype.delta=null,ot.prototype.pageInfoChanged=null,ot.prototype.pageConfigChanged=null,ot.prototype.scriptFinished=null,ot.prototype.gitInfoChanged=null,ot.prototype.pageProfile=null,ot.prototype.sessionStatusChanged=null,ot.prototype.sessionEvent=null,ot.prototype.navigation=null,ot.prototype.pageNotFound=null,ot.prototype.pagesChanged=null,ot.prototype.fileUrlsResponse=null,ot.prototype.autoRerun=null,ot.prototype.logo=null,ot.prototype.parentMessage=null,ot.prototype.refHash=null,ot.prototype.debugLastBackmsgId="";let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","pagesChanged","fileUrlsResponse","autoRerun","logo","parentMessage","refHash"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.hash!=null&&Object.hasOwnProperty.call(ct,"hash")&&ut.uint32(10).string(ct.hash),ct.metadata!=null&&Object.hasOwnProperty.call(ct,"metadata")&&$root.ForwardMsgMetadata.encode(ct.metadata,ut.uint32(18).fork()).ldelim(),ct.newSession!=null&&Object.hasOwnProperty.call(ct,"newSession")&&$root.NewSession.encode(ct.newSession,ut.uint32(34).fork()).ldelim(),ct.delta!=null&&Object.hasOwnProperty.call(ct,"delta")&&$root.Delta.encode(ct.delta,ut.uint32(42).fork()).ldelim(),ct.scriptFinished!=null&&Object.hasOwnProperty.call(ct,"scriptFinished")&&ut.uint32(48).int32(ct.scriptFinished),ct.sessionStatusChanged!=null&&Object.hasOwnProperty.call(ct,"sessionStatusChanged")&&$root.SessionStatus.encode(ct.sessionStatusChanged,ut.uint32(74).fork()).ldelim(),ct.sessionEvent!=null&&Object.hasOwnProperty.call(ct,"sessionEvent")&&$root.SessionEvent.encode(ct.sessionEvent,ut.uint32(82).fork()).ldelim(),ct.refHash!=null&&Object.hasOwnProperty.call(ct,"refHash")&&ut.uint32(90).string(ct.refHash),ct.pageInfoChanged!=null&&Object.hasOwnProperty.call(ct,"pageInfoChanged")&&$root.PageInfo.encode(ct.pageInfoChanged,ut.uint32(98).fork()).ldelim(),ct.pageConfigChanged!=null&&Object.hasOwnProperty.call(ct,"pageConfigChanged")&&$root.PageConfig.encode(ct.pageConfigChanged,ut.uint32(106).fork()).ldelim(),ct.gitInfoChanged!=null&&Object.hasOwnProperty.call(ct,"gitInfoChanged")&&$root.GitInfo.encode(ct.gitInfoChanged,ut.uint32(114).fork()).ldelim(),ct.pageNotFound!=null&&Object.hasOwnProperty.call(ct,"pageNotFound")&&$root.PageNotFound.encode(ct.pageNotFound,ut.uint32(122).fork()).ldelim(),ct.pagesChanged!=null&&Object.hasOwnProperty.call(ct,"pagesChanged")&&$root.PagesChanged.encode(ct.pagesChanged,ut.uint32(130).fork()).ldelim(),ct.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(ct,"debugLastBackmsgId")&&ut.uint32(138).string(ct.debugLastBackmsgId),ct.pageProfile!=null&&Object.hasOwnProperty.call(ct,"pageProfile")&&$root.PageProfile.encode(ct.pageProfile,ut.uint32(146).fork()).ldelim(),ct.fileUrlsResponse!=null&&Object.hasOwnProperty.call(ct,"fileUrlsResponse")&&$root.FileURLsResponse.encode(ct.fileUrlsResponse,ut.uint32(154).fork()).ldelim(),ct.parentMessage!=null&&Object.hasOwnProperty.call(ct,"parentMessage")&&$root.ParentMessage.encode(ct.parentMessage,ut.uint32(162).fork()).ldelim(),ct.autoRerun!=null&&Object.hasOwnProperty.call(ct,"autoRerun")&&$root.AutoRerun.encode(ct.autoRerun,ut.uint32(170).fork()).ldelim(),ct.logo!=null&&Object.hasOwnProperty.call(ct,"logo")&&$root.Logo.encode(ct.logo,ut.uint32(178).fork()).ldelim(),ct.navigation!=null&&Object.hasOwnProperty.call(ct,"navigation")&&$root.Navigation.encode(ct.navigation,ut.uint32(186).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.ForwardMsg;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.hash=ct.string();break}case 2:{ft.metadata=$root.ForwardMsgMetadata.decode(ct,ct.uint32());break}case 4:{ft.newSession=$root.NewSession.decode(ct,ct.uint32());break}case 5:{ft.delta=$root.Delta.decode(ct,ct.uint32());break}case 12:{ft.pageInfoChanged=$root.PageInfo.decode(ct,ct.uint32());break}case 13:{ft.pageConfigChanged=$root.PageConfig.decode(ct,ct.uint32());break}case 6:{ft.scriptFinished=ct.int32();break}case 14:{ft.gitInfoChanged=$root.GitInfo.decode(ct,ct.uint32());break}case 18:{ft.pageProfile=$root.PageProfile.decode(ct,ct.uint32());break}case 9:{ft.sessionStatusChanged=$root.SessionStatus.decode(ct,ct.uint32());break}case 10:{ft.sessionEvent=$root.SessionEvent.decode(ct,ct.uint32());break}case 23:{ft.navigation=$root.Navigation.decode(ct,ct.uint32());break}case 15:{ft.pageNotFound=$root.PageNotFound.decode(ct,ct.uint32());break}case 16:{ft.pagesChanged=$root.PagesChanged.decode(ct,ct.uint32());break}case 19:{ft.fileUrlsResponse=$root.FileURLsResponse.decode(ct,ct.uint32());break}case 21:{ft.autoRerun=$root.AutoRerun.decode(ct,ct.uint32());break}case 22:{ft.logo=$root.Logo.decode(ct,ct.uint32());break}case 20:{ft.parentMessage=$root.ParentMessage.decode(ct,ct.uint32());break}case 11:{ft.refHash=ct.string();break}case 17:{ft.debugLastBackmsgId=ct.string();break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.hash!=null&&ct.hasOwnProperty("hash")&&!$util.isString(ct.hash))return"hash: string expected";if(ct.metadata!=null&&ct.hasOwnProperty("metadata")){let dt=$root.ForwardMsgMetadata.verify(ct.metadata);if(dt)return"metadata."+dt}if(ct.newSession!=null&&ct.hasOwnProperty("newSession")){ut.type=1;{let dt=$root.NewSession.verify(ct.newSession);if(dt)return"newSession."+dt}}if(ct.delta!=null&&ct.hasOwnProperty("delta")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Delta.verify(ct.delta);if(dt)return"delta."+dt}}if(ct.pageInfoChanged!=null&&ct.hasOwnProperty("pageInfoChanged")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PageInfo.verify(ct.pageInfoChanged);if(dt)return"pageInfoChanged."+dt}}if(ct.pageConfigChanged!=null&&ct.hasOwnProperty("pageConfigChanged")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PageConfig.verify(ct.pageConfigChanged);if(dt)return"pageConfigChanged."+dt}}if(ct.scriptFinished!=null&&ct.hasOwnProperty("scriptFinished")){if(ut.type===1)return"type: multiple values";switch(ut.type=1,ct.scriptFinished){default:return"scriptFinished: enum value expected";case 0:case 1:case 2:case 3:break}}if(ct.gitInfoChanged!=null&&ct.hasOwnProperty("gitInfoChanged")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.GitInfo.verify(ct.gitInfoChanged);if(dt)return"gitInfoChanged."+dt}}if(ct.pageProfile!=null&&ct.hasOwnProperty("pageProfile")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PageProfile.verify(ct.pageProfile);if(dt)return"pageProfile."+dt}}if(ct.sessionStatusChanged!=null&&ct.hasOwnProperty("sessionStatusChanged")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.SessionStatus.verify(ct.sessionStatusChanged);if(dt)return"sessionStatusChanged."+dt}}if(ct.sessionEvent!=null&&ct.hasOwnProperty("sessionEvent")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.SessionEvent.verify(ct.sessionEvent);if(dt)return"sessionEvent."+dt}}if(ct.navigation!=null&&ct.hasOwnProperty("navigation")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Navigation.verify(ct.navigation);if(dt)return"navigation."+dt}}if(ct.pageNotFound!=null&&ct.hasOwnProperty("pageNotFound")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PageNotFound.verify(ct.pageNotFound);if(dt)return"pageNotFound."+dt}}if(ct.pagesChanged!=null&&ct.hasOwnProperty("pagesChanged")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.PagesChanged.verify(ct.pagesChanged);if(dt)return"pagesChanged."+dt}}if(ct.fileUrlsResponse!=null&&ct.hasOwnProperty("fileUrlsResponse")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.FileURLsResponse.verify(ct.fileUrlsResponse);if(dt)return"fileUrlsResponse."+dt}}if(ct.autoRerun!=null&&ct.hasOwnProperty("autoRerun")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.AutoRerun.verify(ct.autoRerun);if(dt)return"autoRerun."+dt}}if(ct.logo!=null&&ct.hasOwnProperty("logo")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Logo.verify(ct.logo);if(dt)return"logo."+dt}}if(ct.parentMessage!=null&&ct.hasOwnProperty("parentMessage")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.ParentMessage.verify(ct.parentMessage);if(dt)return"parentMessage."+dt}}if(ct.refHash!=null&&ct.hasOwnProperty("refHash")){if(ut.type===1)return"type: multiple values";if(ut.type=1,!$util.isString(ct.refHash))return"refHash: string expected"}return ct.debugLastBackmsgId!=null&&ct.hasOwnProperty("debugLastBackmsgId")&&!$util.isString(ct.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},ot.fromObject=function(ct){if(ct instanceof $root.ForwardMsg)return ct;let ut=new $root.ForwardMsg;if(ct.hash!=null&&(ut.hash=String(ct.hash)),ct.metadata!=null){if(typeof ct.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");ut.metadata=$root.ForwardMsgMetadata.fromObject(ct.metadata)}if(ct.newSession!=null){if(typeof ct.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");ut.newSession=$root.NewSession.fromObject(ct.newSession)}if(ct.delta!=null){if(typeof ct.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");ut.delta=$root.Delta.fromObject(ct.delta)}if(ct.pageInfoChanged!=null){if(typeof ct.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");ut.pageInfoChanged=$root.PageInfo.fromObject(ct.pageInfoChanged)}if(ct.pageConfigChanged!=null){if(typeof ct.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");ut.pageConfigChanged=$root.PageConfig.fromObject(ct.pageConfigChanged)}switch(ct.scriptFinished){default:if(typeof ct.scriptFinished=="number"){ut.scriptFinished=ct.scriptFinished;break}break;case"FINISHED_SUCCESSFULLY":case 0:ut.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:ut.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:ut.scriptFinished=2;break;case"FINISHED_FRAGMENT_RUN_SUCCESSFULLY":case 3:ut.scriptFinished=3;break}if(ct.gitInfoChanged!=null){if(typeof ct.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");ut.gitInfoChanged=$root.GitInfo.fromObject(ct.gitInfoChanged)}if(ct.pageProfile!=null){if(typeof ct.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");ut.pageProfile=$root.PageProfile.fromObject(ct.pageProfile)}if(ct.sessionStatusChanged!=null){if(typeof ct.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");ut.sessionStatusChanged=$root.SessionStatus.fromObject(ct.sessionStatusChanged)}if(ct.sessionEvent!=null){if(typeof ct.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");ut.sessionEvent=$root.SessionEvent.fromObject(ct.sessionEvent)}if(ct.navigation!=null){if(typeof ct.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");ut.navigation=$root.Navigation.fromObject(ct.navigation)}if(ct.pageNotFound!=null){if(typeof ct.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");ut.pageNotFound=$root.PageNotFound.fromObject(ct.pageNotFound)}if(ct.pagesChanged!=null){if(typeof ct.pagesChanged!="object")throw TypeError(".ForwardMsg.pagesChanged: object expected");ut.pagesChanged=$root.PagesChanged.fromObject(ct.pagesChanged)}if(ct.fileUrlsResponse!=null){if(typeof ct.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");ut.fileUrlsResponse=$root.FileURLsResponse.fromObject(ct.fileUrlsResponse)}if(ct.autoRerun!=null){if(typeof ct.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");ut.autoRerun=$root.AutoRerun.fromObject(ct.autoRerun)}if(ct.logo!=null){if(typeof ct.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");ut.logo=$root.Logo.fromObject(ct.logo)}if(ct.parentMessage!=null){if(typeof ct.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");ut.parentMessage=$root.ParentMessage.fromObject(ct.parentMessage)}return ct.refHash!=null&&(ut.refHash=String(ct.refHash)),ct.debugLastBackmsgId!=null&&(ut.debugLastBackmsgId=String(ct.debugLastBackmsgId)),ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.hash="",dt.metadata=null,dt.debugLastBackmsgId=""),ct.hash!=null&&ct.hasOwnProperty("hash")&&(dt.hash=ct.hash),ct.metadata!=null&&ct.hasOwnProperty("metadata")&&(dt.metadata=$root.ForwardMsgMetadata.toObject(ct.metadata,ut)),ct.newSession!=null&&ct.hasOwnProperty("newSession")&&(dt.newSession=$root.NewSession.toObject(ct.newSession,ut),ut.oneofs&&(dt.type="newSession")),ct.delta!=null&&ct.hasOwnProperty("delta")&&(dt.delta=$root.Delta.toObject(ct.delta,ut),ut.oneofs&&(dt.type="delta")),ct.scriptFinished!=null&&ct.hasOwnProperty("scriptFinished")&&(dt.scriptFinished=ut.enums===String?$root.ForwardMsg.ScriptFinishedStatus[ct.scriptFinished]===void 0?ct.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[ct.scriptFinished]:ct.scriptFinished,ut.oneofs&&(dt.type="scriptFinished")),ct.sessionStatusChanged!=null&&ct.hasOwnProperty("sessionStatusChanged")&&(dt.sessionStatusChanged=$root.SessionStatus.toObject(ct.sessionStatusChanged,ut),ut.oneofs&&(dt.type="sessionStatusChanged")),ct.sessionEvent!=null&&ct.hasOwnProperty("sessionEvent")&&(dt.sessionEvent=$root.SessionEvent.toObject(ct.sessionEvent,ut),ut.oneofs&&(dt.type="sessionEvent")),ct.refHash!=null&&ct.hasOwnProperty("refHash")&&(dt.refHash=ct.refHash,ut.oneofs&&(dt.type="refHash")),ct.pageInfoChanged!=null&&ct.hasOwnProperty("pageInfoChanged")&&(dt.pageInfoChanged=$root.PageInfo.toObject(ct.pageInfoChanged,ut),ut.oneofs&&(dt.type="pageInfoChanged")),ct.pageConfigChanged!=null&&ct.hasOwnProperty("pageConfigChanged")&&(dt.pageConfigChanged=$root.PageConfig.toObject(ct.pageConfigChanged,ut),ut.oneofs&&(dt.type="pageConfigChanged")),ct.gitInfoChanged!=null&&ct.hasOwnProperty("gitInfoChanged")&&(dt.gitInfoChanged=$root.GitInfo.toObject(ct.gitInfoChanged,ut),ut.oneofs&&(dt.type="gitInfoChanged")),ct.pageNotFound!=null&&ct.hasOwnProperty("pageNotFound")&&(dt.pageNotFound=$root.PageNotFound.toObject(ct.pageNotFound,ut),ut.oneofs&&(dt.type="pageNotFound")),ct.pagesChanged!=null&&ct.hasOwnProperty("pagesChanged")&&(dt.pagesChanged=$root.PagesChanged.toObject(ct.pagesChanged,ut),ut.oneofs&&(dt.type="pagesChanged")),ct.debugLastBackmsgId!=null&&ct.hasOwnProperty("debugLastBackmsgId")&&(dt.debugLastBackmsgId=ct.debugLastBackmsgId),ct.pageProfile!=null&&ct.hasOwnProperty("pageProfile")&&(dt.pageProfile=$root.PageProfile.toObject(ct.pageProfile,ut),ut.oneofs&&(dt.type="pageProfile")),ct.fileUrlsResponse!=null&&ct.hasOwnProperty("fileUrlsResponse")&&(dt.fileUrlsResponse=$root.FileURLsResponse.toObject(ct.fileUrlsResponse,ut),ut.oneofs&&(dt.type="fileUrlsResponse")),ct.parentMessage!=null&&ct.hasOwnProperty("parentMessage")&&(dt.parentMessage=$root.ParentMessage.toObject(ct.parentMessage,ut),ut.oneofs&&(dt.type="parentMessage")),ct.autoRerun!=null&&ct.hasOwnProperty("autoRerun")&&(dt.autoRerun=$root.AutoRerun.toObject(ct.autoRerun,ut),ut.oneofs&&(dt.type="autoRerun")),ct.logo!=null&&ct.hasOwnProperty("logo")&&(dt.logo=$root.Logo.toObject(ct.logo,ut),ut.oneofs&&(dt.type="logo")),ct.navigation!=null&&ct.hasOwnProperty("navigation")&&(dt.navigation=$root.Navigation.toObject(ct.navigation,ut),ut.oneofs&&(dt.type="navigation")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/ForwardMsg"},ot.ScriptFinishedStatus=function(){const ct={},ut=Object.create(ct);return ut[ct[0]="FINISHED_SUCCESSFULLY"]=0,ut[ct[1]="FINISHED_WITH_COMPILE_ERROR"]=1,ut[ct[2]="FINISHED_EARLY_FOR_RERUN"]=2,ut[ct[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,ut}(),ot})(),ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function ot(et){if(this.deltaPath=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.cacheable=!1,ot.prototype.deltaPath=$util.emptyArray,ot.prototype.elementDimensionSpec=null,ot.prototype.activeScriptHash="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.cacheable!=null&&Object.hasOwnProperty.call(et,"cacheable")&&ct.uint32(8).bool(et.cacheable),et.deltaPath!=null&&et.deltaPath.length){ct.uint32(18).fork();for(let ut=0;ut<et.deltaPath.length;++ut)ct.uint32(et.deltaPath[ut]);ct.ldelim()}return et.elementDimensionSpec!=null&&Object.hasOwnProperty.call(et,"elementDimensionSpec")&&$root.ElementDimensionSpec.encode(et.elementDimensionSpec,ct.uint32(26).fork()).ldelim(),et.activeScriptHash!=null&&Object.hasOwnProperty.call(et,"activeScriptHash")&&ct.uint32(34).string(et.activeScriptHash),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ForwardMsgMetadata;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.cacheable=et.bool();break}case 2:{if(dt.deltaPath&&dt.deltaPath.length||(dt.deltaPath=[]),(ft&7)===2){let zt=et.uint32()+et.pos;for(;et.pos<zt;)dt.deltaPath.push(et.uint32())}else dt.deltaPath.push(et.uint32());break}case 3:{dt.elementDimensionSpec=$root.ElementDimensionSpec.decode(et,et.uint32());break}case 4:{dt.activeScriptHash=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.cacheable!=null&&et.hasOwnProperty("cacheable")&&typeof et.cacheable!="boolean")return"cacheable: boolean expected";if(et.deltaPath!=null&&et.hasOwnProperty("deltaPath")){if(!Array.isArray(et.deltaPath))return"deltaPath: array expected";for(let ct=0;ct<et.deltaPath.length;++ct)if(!$util.isInteger(et.deltaPath[ct]))return"deltaPath: integer[] expected"}if(et.elementDimensionSpec!=null&&et.hasOwnProperty("elementDimensionSpec")){let ct=$root.ElementDimensionSpec.verify(et.elementDimensionSpec);if(ct)return"elementDimensionSpec."+ct}return et.activeScriptHash!=null&&et.hasOwnProperty("activeScriptHash")&&!$util.isString(et.activeScriptHash)?"activeScriptHash: string expected":null},ot.fromObject=function(et){if(et instanceof $root.ForwardMsgMetadata)return et;let ct=new $root.ForwardMsgMetadata;if(et.cacheable!=null&&(ct.cacheable=!!et.cacheable),et.deltaPath){if(!Array.isArray(et.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");ct.deltaPath=[];for(let ut=0;ut<et.deltaPath.length;++ut)ct.deltaPath[ut]=et.deltaPath[ut]>>>0}if(et.elementDimensionSpec!=null){if(typeof et.elementDimensionSpec!="object")throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");ct.elementDimensionSpec=$root.ElementDimensionSpec.fromObject(et.elementDimensionSpec)}return et.activeScriptHash!=null&&(ct.activeScriptHash=String(et.activeScriptHash)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.deltaPath=[]),ct.defaults&&(ut.cacheable=!1,ut.elementDimensionSpec=null,ut.activeScriptHash=""),et.cacheable!=null&&et.hasOwnProperty("cacheable")&&(ut.cacheable=et.cacheable),et.deltaPath&&et.deltaPath.length){ut.deltaPath=[];for(let dt=0;dt<et.deltaPath.length;++dt)ut.deltaPath[dt]=et.deltaPath[dt]}return et.elementDimensionSpec!=null&&et.hasOwnProperty("elementDimensionSpec")&&(ut.elementDimensionSpec=$root.ElementDimensionSpec.toObject(et.elementDimensionSpec,ct)),et.activeScriptHash!=null&&et.hasOwnProperty("activeScriptHash")&&(ut.activeScriptHash=et.activeScriptHash),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ForwardMsgMetadata"},ot})();$root.ElementDimensionSpec=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.width=0,ot.prototype.height=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.width!=null&&Object.hasOwnProperty.call(et,"width")&&ct.uint32(8).uint32(et.width),et.height!=null&&Object.hasOwnProperty.call(et,"height")&&ct.uint32(16).uint32(et.height),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ElementDimensionSpec;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.width=et.uint32();break}case 2:{dt.height=et.uint32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.width!=null&&et.hasOwnProperty("width")&&!$util.isInteger(et.width)?"width: integer expected":et.height!=null&&et.hasOwnProperty("height")&&!$util.isInteger(et.height)?"height: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.ElementDimensionSpec)return et;let ct=new $root.ElementDimensionSpec;return et.width!=null&&(ct.width=et.width>>>0),et.height!=null&&(ct.height=et.height>>>0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.width=0,ut.height=0),et.width!=null&&et.hasOwnProperty("width")&&(ut.width=et.width),et.height!=null&&et.hasOwnProperty("height")&&(ut.height=et.height),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ElementDimensionSpec"},ot})();const GitInfo=$root.GitInfo=(()=>{function ot(et){if(this.untrackedFiles=[],this.uncommittedFiles=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.repository="",ot.prototype.branch="",ot.prototype.module="",ot.prototype.untrackedFiles=$util.emptyArray,ot.prototype.uncommittedFiles=$util.emptyArray,ot.prototype.state=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.repository!=null&&Object.hasOwnProperty.call(et,"repository")&&ct.uint32(10).string(et.repository),et.branch!=null&&Object.hasOwnProperty.call(et,"branch")&&ct.uint32(18).string(et.branch),et.module!=null&&Object.hasOwnProperty.call(et,"module")&&ct.uint32(26).string(et.module),et.untrackedFiles!=null&&et.untrackedFiles.length)for(let ut=0;ut<et.untrackedFiles.length;++ut)ct.uint32(34).string(et.untrackedFiles[ut]);if(et.uncommittedFiles!=null&&et.uncommittedFiles.length)for(let ut=0;ut<et.uncommittedFiles.length;++ut)ct.uint32(42).string(et.uncommittedFiles[ut]);return et.state!=null&&Object.hasOwnProperty.call(et,"state")&&ct.uint32(48).int32(et.state),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.GitInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.repository=et.string();break}case 2:{dt.branch=et.string();break}case 3:{dt.module=et.string();break}case 4:{dt.untrackedFiles&&dt.untrackedFiles.length||(dt.untrackedFiles=[]),dt.untrackedFiles.push(et.string());break}case 5:{dt.uncommittedFiles&&dt.uncommittedFiles.length||(dt.uncommittedFiles=[]),dt.uncommittedFiles.push(et.string());break}case 6:{dt.state=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.repository!=null&&et.hasOwnProperty("repository")&&!$util.isString(et.repository))return"repository: string expected";if(et.branch!=null&&et.hasOwnProperty("branch")&&!$util.isString(et.branch))return"branch: string expected";if(et.module!=null&&et.hasOwnProperty("module")&&!$util.isString(et.module))return"module: string expected";if(et.untrackedFiles!=null&&et.hasOwnProperty("untrackedFiles")){if(!Array.isArray(et.untrackedFiles))return"untrackedFiles: array expected";for(let ct=0;ct<et.untrackedFiles.length;++ct)if(!$util.isString(et.untrackedFiles[ct]))return"untrackedFiles: string[] expected"}if(et.uncommittedFiles!=null&&et.hasOwnProperty("uncommittedFiles")){if(!Array.isArray(et.uncommittedFiles))return"uncommittedFiles: array expected";for(let ct=0;ct<et.uncommittedFiles.length;++ct)if(!$util.isString(et.uncommittedFiles[ct]))return"uncommittedFiles: string[] expected"}if(et.state!=null&&et.hasOwnProperty("state"))switch(et.state){default:return"state: enum value expected";case 0:case 1:case 2:break}return null},ot.fromObject=function(et){if(et instanceof $root.GitInfo)return et;let ct=new $root.GitInfo;if(et.repository!=null&&(ct.repository=String(et.repository)),et.branch!=null&&(ct.branch=String(et.branch)),et.module!=null&&(ct.module=String(et.module)),et.untrackedFiles){if(!Array.isArray(et.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");ct.untrackedFiles=[];for(let ut=0;ut<et.untrackedFiles.length;++ut)ct.untrackedFiles[ut]=String(et.untrackedFiles[ut])}if(et.uncommittedFiles){if(!Array.isArray(et.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");ct.uncommittedFiles=[];for(let ut=0;ut<et.uncommittedFiles.length;++ut)ct.uncommittedFiles[ut]=String(et.uncommittedFiles[ut])}switch(et.state){default:if(typeof et.state=="number"){ct.state=et.state;break}break;case"DEFAULT":case 0:ct.state=0;break;case"HEAD_DETACHED":case 1:ct.state=1;break;case"AHEAD_OF_REMOTE":case 2:ct.state=2;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.untrackedFiles=[],ut.uncommittedFiles=[]),ct.defaults&&(ut.repository="",ut.branch="",ut.module="",ut.state=ct.enums===String?"DEFAULT":0),et.repository!=null&&et.hasOwnProperty("repository")&&(ut.repository=et.repository),et.branch!=null&&et.hasOwnProperty("branch")&&(ut.branch=et.branch),et.module!=null&&et.hasOwnProperty("module")&&(ut.module=et.module),et.untrackedFiles&&et.untrackedFiles.length){ut.untrackedFiles=[];for(let dt=0;dt<et.untrackedFiles.length;++dt)ut.untrackedFiles[dt]=et.untrackedFiles[dt]}if(et.uncommittedFiles&&et.uncommittedFiles.length){ut.uncommittedFiles=[];for(let dt=0;dt<et.uncommittedFiles.length;++dt)ut.uncommittedFiles[dt]=et.uncommittedFiles[dt]}return et.state!=null&&et.hasOwnProperty("state")&&(ut.state=ct.enums===String?$root.GitInfo.GitStates[et.state]===void 0?et.state:$root.GitInfo.GitStates[et.state]:et.state),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/GitInfo"},ot.GitStates=function(){const et={},ct=Object.create(et);return ct[et[0]="DEFAULT"]=0,ct[et[1]="HEAD_DETACHED"]=1,ct[et[2]="AHEAD_OF_REMOTE"]=2,ct}(),ot})();$root.Logo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.image="",ot.prototype.link="",ot.prototype.iconImage="",ot.prototype.size="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.image!=null&&Object.hasOwnProperty.call(et,"image")&&ct.uint32(10).string(et.image),et.link!=null&&Object.hasOwnProperty.call(et,"link")&&ct.uint32(18).string(et.link),et.iconImage!=null&&Object.hasOwnProperty.call(et,"iconImage")&&ct.uint32(26).string(et.iconImage),et.size!=null&&Object.hasOwnProperty.call(et,"size")&&ct.uint32(34).string(et.size),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Logo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.image=et.string();break}case 2:{dt.link=et.string();break}case 3:{dt.iconImage=et.string();break}case 4:{dt.size=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.image!=null&&et.hasOwnProperty("image")&&!$util.isString(et.image)?"image: string expected":et.link!=null&&et.hasOwnProperty("link")&&!$util.isString(et.link)?"link: string expected":et.iconImage!=null&&et.hasOwnProperty("iconImage")&&!$util.isString(et.iconImage)?"iconImage: string expected":et.size!=null&&et.hasOwnProperty("size")&&!$util.isString(et.size)?"size: string expected":null},ot.fromObject=function(et){if(et instanceof $root.Logo)return et;let ct=new $root.Logo;return et.image!=null&&(ct.image=String(et.image)),et.link!=null&&(ct.link=String(et.link)),et.iconImage!=null&&(ct.iconImage=String(et.iconImage)),et.size!=null&&(ct.size=String(et.size)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.image="",ut.link="",ut.iconImage="",ut.size=""),et.image!=null&&et.hasOwnProperty("image")&&(ut.image=et.image),et.link!=null&&et.hasOwnProperty("link")&&(ut.link=et.link),et.iconImage!=null&&et.hasOwnProperty("iconImage")&&(ut.iconImage=et.iconImage),et.size!=null&&et.hasOwnProperty("size")&&(ut.size=et.size),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Logo"},ot})();const Navigation=$root.Navigation=(()=>{function ot(et){if(this.sections=[],this.appPages=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.sections=$util.emptyArray,ot.prototype.appPages=$util.emptyArray,ot.prototype.position=0,ot.prototype.pageScriptHash="",ot.prototype.expanded=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.sections!=null&&et.sections.length)for(let ut=0;ut<et.sections.length;++ut)ct.uint32(10).string(et.sections[ut]);if(et.appPages!=null&&et.appPages.length)for(let ut=0;ut<et.appPages.length;++ut)$root.AppPage.encode(et.appPages[ut],ct.uint32(18).fork()).ldelim();return et.position!=null&&Object.hasOwnProperty.call(et,"position")&&ct.uint32(24).int32(et.position),et.pageScriptHash!=null&&Object.hasOwnProperty.call(et,"pageScriptHash")&&ct.uint32(34).string(et.pageScriptHash),et.expanded!=null&&Object.hasOwnProperty.call(et,"expanded")&&ct.uint32(40).bool(et.expanded),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Navigation;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.sections&&dt.sections.length||(dt.sections=[]),dt.sections.push(et.string());break}case 2:{dt.appPages&&dt.appPages.length||(dt.appPages=[]),dt.appPages.push($root.AppPage.decode(et,et.uint32()));break}case 3:{dt.position=et.int32();break}case 4:{dt.pageScriptHash=et.string();break}case 5:{dt.expanded=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.sections!=null&&et.hasOwnProperty("sections")){if(!Array.isArray(et.sections))return"sections: array expected";for(let ct=0;ct<et.sections.length;++ct)if(!$util.isString(et.sections[ct]))return"sections: string[] expected"}if(et.appPages!=null&&et.hasOwnProperty("appPages")){if(!Array.isArray(et.appPages))return"appPages: array expected";for(let ct=0;ct<et.appPages.length;++ct){let ut=$root.AppPage.verify(et.appPages[ct]);if(ut)return"appPages."+ut}}if(et.position!=null&&et.hasOwnProperty("position"))switch(et.position){default:return"position: enum value expected";case 0:case 1:break}return et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&!$util.isString(et.pageScriptHash)?"pageScriptHash: string expected":et.expanded!=null&&et.hasOwnProperty("expanded")&&typeof et.expanded!="boolean"?"expanded: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Navigation)return et;let ct=new $root.Navigation;if(et.sections){if(!Array.isArray(et.sections))throw TypeError(".Navigation.sections: array expected");ct.sections=[];for(let ut=0;ut<et.sections.length;++ut)ct.sections[ut]=String(et.sections[ut])}if(et.appPages){if(!Array.isArray(et.appPages))throw TypeError(".Navigation.appPages: array expected");ct.appPages=[];for(let ut=0;ut<et.appPages.length;++ut){if(typeof et.appPages[ut]!="object")throw TypeError(".Navigation.appPages: object expected");ct.appPages[ut]=$root.AppPage.fromObject(et.appPages[ut])}}switch(et.position){default:if(typeof et.position=="number"){ct.position=et.position;break}break;case"HIDDEN":case 0:ct.position=0;break;case"SIDEBAR":case 1:ct.position=1;break}return et.pageScriptHash!=null&&(ct.pageScriptHash=String(et.pageScriptHash)),et.expanded!=null&&(ct.expanded=!!et.expanded),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.sections=[],ut.appPages=[]),ct.defaults&&(ut.position=ct.enums===String?"HIDDEN":0,ut.pageScriptHash="",ut.expanded=!1),et.sections&&et.sections.length){ut.sections=[];for(let dt=0;dt<et.sections.length;++dt)ut.sections[dt]=et.sections[dt]}if(et.appPages&&et.appPages.length){ut.appPages=[];for(let dt=0;dt<et.appPages.length;++dt)ut.appPages[dt]=$root.AppPage.toObject(et.appPages[dt],ct)}return et.position!=null&&et.hasOwnProperty("position")&&(ut.position=ct.enums===String?$root.Navigation.Position[et.position]===void 0?et.position:$root.Navigation.Position[et.position]:et.position),et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&(ut.pageScriptHash=et.pageScriptHash),et.expanded!=null&&et.hasOwnProperty("expanded")&&(ut.expanded=et.expanded),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Navigation"},ot.Position=function(){const et={},ct=Object.create(et);return ct[et[0]="HIDDEN"]=0,ct[et[1]="SIDEBAR"]=1,ct}(),ot})();$root.NewSession=(()=>{function ot(et){if(this.appPages=[],this.fragmentIdsThisRun=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.initialize=null,ot.prototype.scriptRunId="",ot.prototype.name="",ot.prototype.mainScriptPath="",ot.prototype.config=null,ot.prototype.customTheme=null,ot.prototype.appPages=$util.emptyArray,ot.prototype.pageScriptHash="",ot.prototype.fragmentIdsThisRun=$util.emptyArray,ot.prototype.mainScriptHash="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.initialize!=null&&Object.hasOwnProperty.call(et,"initialize")&&$root.Initialize.encode(et.initialize,ct.uint32(10).fork()).ldelim(),et.scriptRunId!=null&&Object.hasOwnProperty.call(et,"scriptRunId")&&ct.uint32(18).string(et.scriptRunId),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(26).string(et.name),et.mainScriptPath!=null&&Object.hasOwnProperty.call(et,"mainScriptPath")&&ct.uint32(34).string(et.mainScriptPath),et.config!=null&&Object.hasOwnProperty.call(et,"config")&&$root.Config.encode(et.config,ct.uint32(50).fork()).ldelim(),et.customTheme!=null&&Object.hasOwnProperty.call(et,"customTheme")&&$root.CustomThemeConfig.encode(et.customTheme,ct.uint32(58).fork()).ldelim(),et.appPages!=null&&et.appPages.length)for(let ut=0;ut<et.appPages.length;++ut)$root.AppPage.encode(et.appPages[ut],ct.uint32(66).fork()).ldelim();if(et.pageScriptHash!=null&&Object.hasOwnProperty.call(et,"pageScriptHash")&&ct.uint32(74).string(et.pageScriptHash),et.fragmentIdsThisRun!=null&&et.fragmentIdsThisRun.length)for(let ut=0;ut<et.fragmentIdsThisRun.length;++ut)ct.uint32(82).string(et.fragmentIdsThisRun[ut]);return et.mainScriptHash!=null&&Object.hasOwnProperty.call(et,"mainScriptHash")&&ct.uint32(90).string(et.mainScriptHash),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.NewSession;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.initialize=$root.Initialize.decode(et,et.uint32());break}case 2:{dt.scriptRunId=et.string();break}case 3:{dt.name=et.string();break}case 4:{dt.mainScriptPath=et.string();break}case 6:{dt.config=$root.Config.decode(et,et.uint32());break}case 7:{dt.customTheme=$root.CustomThemeConfig.decode(et,et.uint32());break}case 8:{dt.appPages&&dt.appPages.length||(dt.appPages=[]),dt.appPages.push($root.AppPage.decode(et,et.uint32()));break}case 9:{dt.pageScriptHash=et.string();break}case 10:{dt.fragmentIdsThisRun&&dt.fragmentIdsThisRun.length||(dt.fragmentIdsThisRun=[]),dt.fragmentIdsThisRun.push(et.string());break}case 11:{dt.mainScriptHash=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.initialize!=null&&et.hasOwnProperty("initialize")){let ct=$root.Initialize.verify(et.initialize);if(ct)return"initialize."+ct}if(et.scriptRunId!=null&&et.hasOwnProperty("scriptRunId")&&!$util.isString(et.scriptRunId))return"scriptRunId: string expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.mainScriptPath!=null&&et.hasOwnProperty("mainScriptPath")&&!$util.isString(et.mainScriptPath))return"mainScriptPath: string expected";if(et.config!=null&&et.hasOwnProperty("config")){let ct=$root.Config.verify(et.config);if(ct)return"config."+ct}if(et.customTheme!=null&&et.hasOwnProperty("customTheme")){let ct=$root.CustomThemeConfig.verify(et.customTheme);if(ct)return"customTheme."+ct}if(et.appPages!=null&&et.hasOwnProperty("appPages")){if(!Array.isArray(et.appPages))return"appPages: array expected";for(let ct=0;ct<et.appPages.length;++ct){let ut=$root.AppPage.verify(et.appPages[ct]);if(ut)return"appPages."+ut}}if(et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&!$util.isString(et.pageScriptHash))return"pageScriptHash: string expected";if(et.fragmentIdsThisRun!=null&&et.hasOwnProperty("fragmentIdsThisRun")){if(!Array.isArray(et.fragmentIdsThisRun))return"fragmentIdsThisRun: array expected";for(let ct=0;ct<et.fragmentIdsThisRun.length;++ct)if(!$util.isString(et.fragmentIdsThisRun[ct]))return"fragmentIdsThisRun: string[] expected"}return et.mainScriptHash!=null&&et.hasOwnProperty("mainScriptHash")&&!$util.isString(et.mainScriptHash)?"mainScriptHash: string expected":null},ot.fromObject=function(et){if(et instanceof $root.NewSession)return et;let ct=new $root.NewSession;if(et.initialize!=null){if(typeof et.initialize!="object")throw TypeError(".NewSession.initialize: object expected");ct.initialize=$root.Initialize.fromObject(et.initialize)}if(et.scriptRunId!=null&&(ct.scriptRunId=String(et.scriptRunId)),et.name!=null&&(ct.name=String(et.name)),et.mainScriptPath!=null&&(ct.mainScriptPath=String(et.mainScriptPath)),et.config!=null){if(typeof et.config!="object")throw TypeError(".NewSession.config: object expected");ct.config=$root.Config.fromObject(et.config)}if(et.customTheme!=null){if(typeof et.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");ct.customTheme=$root.CustomThemeConfig.fromObject(et.customTheme)}if(et.appPages){if(!Array.isArray(et.appPages))throw TypeError(".NewSession.appPages: array expected");ct.appPages=[];for(let ut=0;ut<et.appPages.length;++ut){if(typeof et.appPages[ut]!="object")throw TypeError(".NewSession.appPages: object expected");ct.appPages[ut]=$root.AppPage.fromObject(et.appPages[ut])}}if(et.pageScriptHash!=null&&(ct.pageScriptHash=String(et.pageScriptHash)),et.fragmentIdsThisRun){if(!Array.isArray(et.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");ct.fragmentIdsThisRun=[];for(let ut=0;ut<et.fragmentIdsThisRun.length;++ut)ct.fragmentIdsThisRun[ut]=String(et.fragmentIdsThisRun[ut])}return et.mainScriptHash!=null&&(ct.mainScriptHash=String(et.mainScriptHash)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.appPages=[],ut.fragmentIdsThisRun=[]),ct.defaults&&(ut.initialize=null,ut.scriptRunId="",ut.name="",ut.mainScriptPath="",ut.config=null,ut.customTheme=null,ut.pageScriptHash="",ut.mainScriptHash=""),et.initialize!=null&&et.hasOwnProperty("initialize")&&(ut.initialize=$root.Initialize.toObject(et.initialize,ct)),et.scriptRunId!=null&&et.hasOwnProperty("scriptRunId")&&(ut.scriptRunId=et.scriptRunId),et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.mainScriptPath!=null&&et.hasOwnProperty("mainScriptPath")&&(ut.mainScriptPath=et.mainScriptPath),et.config!=null&&et.hasOwnProperty("config")&&(ut.config=$root.Config.toObject(et.config,ct)),et.customTheme!=null&&et.hasOwnProperty("customTheme")&&(ut.customTheme=$root.CustomThemeConfig.toObject(et.customTheme,ct)),et.appPages&&et.appPages.length){ut.appPages=[];for(let dt=0;dt<et.appPages.length;++dt)ut.appPages[dt]=$root.AppPage.toObject(et.appPages[dt],ct)}if(et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&(ut.pageScriptHash=et.pageScriptHash),et.fragmentIdsThisRun&&et.fragmentIdsThisRun.length){ut.fragmentIdsThisRun=[];for(let dt=0;dt<et.fragmentIdsThisRun.length;++dt)ut.fragmentIdsThisRun[dt]=et.fragmentIdsThisRun[dt]}return et.mainScriptHash!=null&&et.hasOwnProperty("mainScriptHash")&&(ut.mainScriptHash=et.mainScriptHash),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/NewSession"},ot})(),$root.Initialize=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.userInfo=null,ot.prototype.environmentInfo=null,ot.prototype.sessionStatus=null,ot.prototype.commandLine="",ot.prototype.sessionId="",ot.prototype.isHello=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.userInfo!=null&&Object.hasOwnProperty.call(et,"userInfo")&&$root.UserInfo.encode(et.userInfo,ct.uint32(10).fork()).ldelim(),et.environmentInfo!=null&&Object.hasOwnProperty.call(et,"environmentInfo")&&$root.EnvironmentInfo.encode(et.environmentInfo,ct.uint32(26).fork()).ldelim(),et.sessionStatus!=null&&Object.hasOwnProperty.call(et,"sessionStatus")&&$root.SessionStatus.encode(et.sessionStatus,ct.uint32(34).fork()).ldelim(),et.commandLine!=null&&Object.hasOwnProperty.call(et,"commandLine")&&ct.uint32(42).string(et.commandLine),et.sessionId!=null&&Object.hasOwnProperty.call(et,"sessionId")&&ct.uint32(50).string(et.sessionId),et.isHello!=null&&Object.hasOwnProperty.call(et,"isHello")&&ct.uint32(56).bool(et.isHello),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Initialize;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.userInfo=$root.UserInfo.decode(et,et.uint32());break}case 3:{dt.environmentInfo=$root.EnvironmentInfo.decode(et,et.uint32());break}case 4:{dt.sessionStatus=$root.SessionStatus.decode(et,et.uint32());break}case 5:{dt.commandLine=et.string();break}case 6:{dt.sessionId=et.string();break}case 7:{dt.isHello=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.userInfo!=null&&et.hasOwnProperty("userInfo")){let ct=$root.UserInfo.verify(et.userInfo);if(ct)return"userInfo."+ct}if(et.environmentInfo!=null&&et.hasOwnProperty("environmentInfo")){let ct=$root.EnvironmentInfo.verify(et.environmentInfo);if(ct)return"environmentInfo."+ct}if(et.sessionStatus!=null&&et.hasOwnProperty("sessionStatus")){let ct=$root.SessionStatus.verify(et.sessionStatus);if(ct)return"sessionStatus."+ct}return et.commandLine!=null&&et.hasOwnProperty("commandLine")&&!$util.isString(et.commandLine)?"commandLine: string expected":et.sessionId!=null&&et.hasOwnProperty("sessionId")&&!$util.isString(et.sessionId)?"sessionId: string expected":et.isHello!=null&&et.hasOwnProperty("isHello")&&typeof et.isHello!="boolean"?"isHello: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.Initialize)return et;let ct=new $root.Initialize;if(et.userInfo!=null){if(typeof et.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");ct.userInfo=$root.UserInfo.fromObject(et.userInfo)}if(et.environmentInfo!=null){if(typeof et.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");ct.environmentInfo=$root.EnvironmentInfo.fromObject(et.environmentInfo)}if(et.sessionStatus!=null){if(typeof et.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");ct.sessionStatus=$root.SessionStatus.fromObject(et.sessionStatus)}return et.commandLine!=null&&(ct.commandLine=String(et.commandLine)),et.sessionId!=null&&(ct.sessionId=String(et.sessionId)),et.isHello!=null&&(ct.isHello=!!et.isHello),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.userInfo=null,ut.environmentInfo=null,ut.sessionStatus=null,ut.commandLine="",ut.sessionId="",ut.isHello=!1),et.userInfo!=null&&et.hasOwnProperty("userInfo")&&(ut.userInfo=$root.UserInfo.toObject(et.userInfo,ct)),et.environmentInfo!=null&&et.hasOwnProperty("environmentInfo")&&(ut.environmentInfo=$root.EnvironmentInfo.toObject(et.environmentInfo,ct)),et.sessionStatus!=null&&et.hasOwnProperty("sessionStatus")&&(ut.sessionStatus=$root.SessionStatus.toObject(et.sessionStatus,ct)),et.commandLine!=null&&et.hasOwnProperty("commandLine")&&(ut.commandLine=et.commandLine),et.sessionId!=null&&et.hasOwnProperty("sessionId")&&(ut.sessionId=et.sessionId),et.isHello!=null&&et.hasOwnProperty("isHello")&&(ut.isHello=et.isHello),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Initialize"},ot})();const Config=$root.Config=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.gatherUsageStats=!1,ot.prototype.maxCachedMessageAge=0,ot.prototype.mapboxToken="",ot.prototype.allowRunOnSave=!1,ot.prototype.hideTopBar=!1,ot.prototype.hideSidebarNav=!1,ot.prototype.toolbarMode=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.gatherUsageStats!=null&&Object.hasOwnProperty.call(et,"gatherUsageStats")&&ct.uint32(16).bool(et.gatherUsageStats),et.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(et,"maxCachedMessageAge")&&ct.uint32(24).int32(et.maxCachedMessageAge),et.mapboxToken!=null&&Object.hasOwnProperty.call(et,"mapboxToken")&&ct.uint32(34).string(et.mapboxToken),et.allowRunOnSave!=null&&Object.hasOwnProperty.call(et,"allowRunOnSave")&&ct.uint32(40).bool(et.allowRunOnSave),et.hideTopBar!=null&&Object.hasOwnProperty.call(et,"hideTopBar")&&ct.uint32(48).bool(et.hideTopBar),et.hideSidebarNav!=null&&Object.hasOwnProperty.call(et,"hideSidebarNav")&&ct.uint32(56).bool(et.hideSidebarNav),et.toolbarMode!=null&&Object.hasOwnProperty.call(et,"toolbarMode")&&ct.uint32(64).int32(et.toolbarMode),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Config;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 2:{dt.gatherUsageStats=et.bool();break}case 3:{dt.maxCachedMessageAge=et.int32();break}case 4:{dt.mapboxToken=et.string();break}case 5:{dt.allowRunOnSave=et.bool();break}case 6:{dt.hideTopBar=et.bool();break}case 7:{dt.hideSidebarNav=et.bool();break}case 8:{dt.toolbarMode=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.gatherUsageStats!=null&&et.hasOwnProperty("gatherUsageStats")&&typeof et.gatherUsageStats!="boolean")return"gatherUsageStats: boolean expected";if(et.maxCachedMessageAge!=null&&et.hasOwnProperty("maxCachedMessageAge")&&!$util.isInteger(et.maxCachedMessageAge))return"maxCachedMessageAge: integer expected";if(et.mapboxToken!=null&&et.hasOwnProperty("mapboxToken")&&!$util.isString(et.mapboxToken))return"mapboxToken: string expected";if(et.allowRunOnSave!=null&&et.hasOwnProperty("allowRunOnSave")&&typeof et.allowRunOnSave!="boolean")return"allowRunOnSave: boolean expected";if(et.hideTopBar!=null&&et.hasOwnProperty("hideTopBar")&&typeof et.hideTopBar!="boolean")return"hideTopBar: boolean expected";if(et.hideSidebarNav!=null&&et.hasOwnProperty("hideSidebarNav")&&typeof et.hideSidebarNav!="boolean")return"hideSidebarNav: boolean expected";if(et.toolbarMode!=null&&et.hasOwnProperty("toolbarMode"))switch(et.toolbarMode){default:return"toolbarMode: enum value expected";case 0:case 1:case 2:case 3:break}return null},ot.fromObject=function(et){if(et instanceof $root.Config)return et;let ct=new $root.Config;switch(et.gatherUsageStats!=null&&(ct.gatherUsageStats=!!et.gatherUsageStats),et.maxCachedMessageAge!=null&&(ct.maxCachedMessageAge=et.maxCachedMessageAge|0),et.mapboxToken!=null&&(ct.mapboxToken=String(et.mapboxToken)),et.allowRunOnSave!=null&&(ct.allowRunOnSave=!!et.allowRunOnSave),et.hideTopBar!=null&&(ct.hideTopBar=!!et.hideTopBar),et.hideSidebarNav!=null&&(ct.hideSidebarNav=!!et.hideSidebarNav),et.toolbarMode){default:if(typeof et.toolbarMode=="number"){ct.toolbarMode=et.toolbarMode;break}break;case"AUTO":case 0:ct.toolbarMode=0;break;case"DEVELOPER":case 1:ct.toolbarMode=1;break;case"VIEWER":case 2:ct.toolbarMode=2;break;case"MINIMAL":case 3:ct.toolbarMode=3;break}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.gatherUsageStats=!1,ut.maxCachedMessageAge=0,ut.mapboxToken="",ut.allowRunOnSave=!1,ut.hideTopBar=!1,ut.hideSidebarNav=!1,ut.toolbarMode=ct.enums===String?"AUTO":0),et.gatherUsageStats!=null&&et.hasOwnProperty("gatherUsageStats")&&(ut.gatherUsageStats=et.gatherUsageStats),et.maxCachedMessageAge!=null&&et.hasOwnProperty("maxCachedMessageAge")&&(ut.maxCachedMessageAge=et.maxCachedMessageAge),et.mapboxToken!=null&&et.hasOwnProperty("mapboxToken")&&(ut.mapboxToken=et.mapboxToken),et.allowRunOnSave!=null&&et.hasOwnProperty("allowRunOnSave")&&(ut.allowRunOnSave=et.allowRunOnSave),et.hideTopBar!=null&&et.hasOwnProperty("hideTopBar")&&(ut.hideTopBar=et.hideTopBar),et.hideSidebarNav!=null&&et.hasOwnProperty("hideSidebarNav")&&(ut.hideSidebarNav=et.hideSidebarNav),et.toolbarMode!=null&&et.hasOwnProperty("toolbarMode")&&(ut.toolbarMode=ct.enums===String?$root.Config.ToolbarMode[et.toolbarMode]===void 0?et.toolbarMode:$root.Config.ToolbarMode[et.toolbarMode]:et.toolbarMode),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Config"},ot.ToolbarMode=function(){const et={},ct=Object.create(et);return ct[et[0]="AUTO"]=0,ct[et[1]="DEVELOPER"]=1,ct[et[2]="VIEWER"]=2,ct[et[3]="MINIMAL"]=3,ct}(),ot})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function ot(et){if(this.fontFaces=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.primaryColor="",ot.prototype.secondaryBackgroundColor="",ot.prototype.backgroundColor="",ot.prototype.textColor="",ot.prototype.font=0,ot.prototype.base=0,ot.prototype.widgetBackgroundColor="",ot.prototype.widgetBorderColor="",ot.prototype.radii=null,ot.prototype.bodyFont="",ot.prototype.codeFont="",ot.prototype.fontFaces=$util.emptyArray,ot.prototype.fontSizes=null,ot.prototype.skeletonBackgroundColor="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.primaryColor!=null&&Object.hasOwnProperty.call(et,"primaryColor")&&ct.uint32(10).string(et.primaryColor),et.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(et,"secondaryBackgroundColor")&&ct.uint32(18).string(et.secondaryBackgroundColor),et.backgroundColor!=null&&Object.hasOwnProperty.call(et,"backgroundColor")&&ct.uint32(26).string(et.backgroundColor),et.textColor!=null&&Object.hasOwnProperty.call(et,"textColor")&&ct.uint32(34).string(et.textColor),et.font!=null&&Object.hasOwnProperty.call(et,"font")&&ct.uint32(40).int32(et.font),et.base!=null&&Object.hasOwnProperty.call(et,"base")&&ct.uint32(48).int32(et.base),et.widgetBackgroundColor!=null&&Object.hasOwnProperty.call(et,"widgetBackgroundColor")&&ct.uint32(58).string(et.widgetBackgroundColor),et.widgetBorderColor!=null&&Object.hasOwnProperty.call(et,"widgetBorderColor")&&ct.uint32(66).string(et.widgetBorderColor),et.radii!=null&&Object.hasOwnProperty.call(et,"radii")&&$root.Radii.encode(et.radii,ct.uint32(74).fork()).ldelim(),et.bodyFont!=null&&Object.hasOwnProperty.call(et,"bodyFont")&&ct.uint32(106).string(et.bodyFont),et.codeFont!=null&&Object.hasOwnProperty.call(et,"codeFont")&&ct.uint32(114).string(et.codeFont),et.fontFaces!=null&&et.fontFaces.length)for(let ut=0;ut<et.fontFaces.length;++ut)$root.FontFace.encode(et.fontFaces[ut],ct.uint32(122).fork()).ldelim();return et.fontSizes!=null&&Object.hasOwnProperty.call(et,"fontSizes")&&$root.FontSizes.encode(et.fontSizes,ct.uint32(130).fork()).ldelim(),et.skeletonBackgroundColor!=null&&Object.hasOwnProperty.call(et,"skeletonBackgroundColor")&&ct.uint32(138).string(et.skeletonBackgroundColor),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.CustomThemeConfig;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.primaryColor=et.string();break}case 2:{dt.secondaryBackgroundColor=et.string();break}case 3:{dt.backgroundColor=et.string();break}case 4:{dt.textColor=et.string();break}case 5:{dt.font=et.int32();break}case 6:{dt.base=et.int32();break}case 7:{dt.widgetBackgroundColor=et.string();break}case 8:{dt.widgetBorderColor=et.string();break}case 9:{dt.radii=$root.Radii.decode(et,et.uint32());break}case 13:{dt.bodyFont=et.string();break}case 14:{dt.codeFont=et.string();break}case 15:{dt.fontFaces&&dt.fontFaces.length||(dt.fontFaces=[]),dt.fontFaces.push($root.FontFace.decode(et,et.uint32()));break}case 16:{dt.fontSizes=$root.FontSizes.decode(et,et.uint32());break}case 17:{dt.skeletonBackgroundColor=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.primaryColor!=null&&et.hasOwnProperty("primaryColor")&&!$util.isString(et.primaryColor))return"primaryColor: string expected";if(et.secondaryBackgroundColor!=null&&et.hasOwnProperty("secondaryBackgroundColor")&&!$util.isString(et.secondaryBackgroundColor))return"secondaryBackgroundColor: string expected";if(et.backgroundColor!=null&&et.hasOwnProperty("backgroundColor")&&!$util.isString(et.backgroundColor))return"backgroundColor: string expected";if(et.textColor!=null&&et.hasOwnProperty("textColor")&&!$util.isString(et.textColor))return"textColor: string expected";if(et.font!=null&&et.hasOwnProperty("font"))switch(et.font){default:return"font: enum value expected";case 0:case 1:case 2:break}if(et.base!=null&&et.hasOwnProperty("base"))switch(et.base){default:return"base: enum value expected";case 0:case 1:break}if(et.widgetBackgroundColor!=null&&et.hasOwnProperty("widgetBackgroundColor")&&!$util.isString(et.widgetBackgroundColor))return"widgetBackgroundColor: string expected";if(et.widgetBorderColor!=null&&et.hasOwnProperty("widgetBorderColor")&&!$util.isString(et.widgetBorderColor))return"widgetBorderColor: string expected";if(et.radii!=null&&et.hasOwnProperty("radii")){let ct=$root.Radii.verify(et.radii);if(ct)return"radii."+ct}if(et.bodyFont!=null&&et.hasOwnProperty("bodyFont")&&!$util.isString(et.bodyFont))return"bodyFont: string expected";if(et.codeFont!=null&&et.hasOwnProperty("codeFont")&&!$util.isString(et.codeFont))return"codeFont: string expected";if(et.fontFaces!=null&&et.hasOwnProperty("fontFaces")){if(!Array.isArray(et.fontFaces))return"fontFaces: array expected";for(let ct=0;ct<et.fontFaces.length;++ct){let ut=$root.FontFace.verify(et.fontFaces[ct]);if(ut)return"fontFaces."+ut}}if(et.fontSizes!=null&&et.hasOwnProperty("fontSizes")){let ct=$root.FontSizes.verify(et.fontSizes);if(ct)return"fontSizes."+ct}return et.skeletonBackgroundColor!=null&&et.hasOwnProperty("skeletonBackgroundColor")&&!$util.isString(et.skeletonBackgroundColor)?"skeletonBackgroundColor: string expected":null},ot.fromObject=function(et){if(et instanceof $root.CustomThemeConfig)return et;let ct=new $root.CustomThemeConfig;switch(et.primaryColor!=null&&(ct.primaryColor=String(et.primaryColor)),et.secondaryBackgroundColor!=null&&(ct.secondaryBackgroundColor=String(et.secondaryBackgroundColor)),et.backgroundColor!=null&&(ct.backgroundColor=String(et.backgroundColor)),et.textColor!=null&&(ct.textColor=String(et.textColor)),et.font){default:if(typeof et.font=="number"){ct.font=et.font;break}break;case"SANS_SERIF":case 0:ct.font=0;break;case"SERIF":case 1:ct.font=1;break;case"MONOSPACE":case 2:ct.font=2;break}switch(et.base){default:if(typeof et.base=="number"){ct.base=et.base;break}break;case"LIGHT":case 0:ct.base=0;break;case"DARK":case 1:ct.base=1;break}if(et.widgetBackgroundColor!=null&&(ct.widgetBackgroundColor=String(et.widgetBackgroundColor)),et.widgetBorderColor!=null&&(ct.widgetBorderColor=String(et.widgetBorderColor)),et.radii!=null){if(typeof et.radii!="object")throw TypeError(".CustomThemeConfig.radii: object expected");ct.radii=$root.Radii.fromObject(et.radii)}if(et.bodyFont!=null&&(ct.bodyFont=String(et.bodyFont)),et.codeFont!=null&&(ct.codeFont=String(et.codeFont)),et.fontFaces){if(!Array.isArray(et.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");ct.fontFaces=[];for(let ut=0;ut<et.fontFaces.length;++ut){if(typeof et.fontFaces[ut]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");ct.fontFaces[ut]=$root.FontFace.fromObject(et.fontFaces[ut])}}if(et.fontSizes!=null){if(typeof et.fontSizes!="object")throw TypeError(".CustomThemeConfig.fontSizes: object expected");ct.fontSizes=$root.FontSizes.fromObject(et.fontSizes)}return et.skeletonBackgroundColor!=null&&(ct.skeletonBackgroundColor=String(et.skeletonBackgroundColor)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.fontFaces=[]),ct.defaults&&(ut.primaryColor="",ut.secondaryBackgroundColor="",ut.backgroundColor="",ut.textColor="",ut.font=ct.enums===String?"SANS_SERIF":0,ut.base=ct.enums===String?"LIGHT":0,ut.widgetBackgroundColor="",ut.widgetBorderColor="",ut.radii=null,ut.bodyFont="",ut.codeFont="",ut.fontSizes=null,ut.skeletonBackgroundColor=""),et.primaryColor!=null&&et.hasOwnProperty("primaryColor")&&(ut.primaryColor=et.primaryColor),et.secondaryBackgroundColor!=null&&et.hasOwnProperty("secondaryBackgroundColor")&&(ut.secondaryBackgroundColor=et.secondaryBackgroundColor),et.backgroundColor!=null&&et.hasOwnProperty("backgroundColor")&&(ut.backgroundColor=et.backgroundColor),et.textColor!=null&&et.hasOwnProperty("textColor")&&(ut.textColor=et.textColor),et.font!=null&&et.hasOwnProperty("font")&&(ut.font=ct.enums===String?$root.CustomThemeConfig.FontFamily[et.font]===void 0?et.font:$root.CustomThemeConfig.FontFamily[et.font]:et.font),et.base!=null&&et.hasOwnProperty("base")&&(ut.base=ct.enums===String?$root.CustomThemeConfig.BaseTheme[et.base]===void 0?et.base:$root.CustomThemeConfig.BaseTheme[et.base]:et.base),et.widgetBackgroundColor!=null&&et.hasOwnProperty("widgetBackgroundColor")&&(ut.widgetBackgroundColor=et.widgetBackgroundColor),et.widgetBorderColor!=null&&et.hasOwnProperty("widgetBorderColor")&&(ut.widgetBorderColor=et.widgetBorderColor),et.radii!=null&&et.hasOwnProperty("radii")&&(ut.radii=$root.Radii.toObject(et.radii,ct)),et.bodyFont!=null&&et.hasOwnProperty("bodyFont")&&(ut.bodyFont=et.bodyFont),et.codeFont!=null&&et.hasOwnProperty("codeFont")&&(ut.codeFont=et.codeFont),et.fontFaces&&et.fontFaces.length){ut.fontFaces=[];for(let dt=0;dt<et.fontFaces.length;++dt)ut.fontFaces[dt]=$root.FontFace.toObject(et.fontFaces[dt],ct)}return et.fontSizes!=null&&et.hasOwnProperty("fontSizes")&&(ut.fontSizes=$root.FontSizes.toObject(et.fontSizes,ct)),et.skeletonBackgroundColor!=null&&et.hasOwnProperty("skeletonBackgroundColor")&&(ut.skeletonBackgroundColor=et.skeletonBackgroundColor),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/CustomThemeConfig"},ot.BaseTheme=function(){const et={},ct=Object.create(et);return ct[et[0]="LIGHT"]=0,ct[et[1]="DARK"]=1,ct}(),ot.FontFamily=function(){const et={},ct=Object.create(et);return ct[et[0]="SANS_SERIF"]=0,ct[et[1]="SERIF"]=1,ct[et[2]="MONOSPACE"]=2,ct}(),ot})();$root.FontFace=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.url="",ot.prototype.family="",ot.prototype.weight=0,ot.prototype.style="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.url!=null&&Object.hasOwnProperty.call(et,"url")&&ct.uint32(10).string(et.url),et.family!=null&&Object.hasOwnProperty.call(et,"family")&&ct.uint32(18).string(et.family),et.weight!=null&&Object.hasOwnProperty.call(et,"weight")&&ct.uint32(24).int32(et.weight),et.style!=null&&Object.hasOwnProperty.call(et,"style")&&ct.uint32(34).string(et.style),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FontFace;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.url=et.string();break}case 2:{dt.family=et.string();break}case 3:{dt.weight=et.int32();break}case 4:{dt.style=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.url!=null&&et.hasOwnProperty("url")&&!$util.isString(et.url)?"url: string expected":et.family!=null&&et.hasOwnProperty("family")&&!$util.isString(et.family)?"family: string expected":et.weight!=null&&et.hasOwnProperty("weight")&&!$util.isInteger(et.weight)?"weight: integer expected":et.style!=null&&et.hasOwnProperty("style")&&!$util.isString(et.style)?"style: string expected":null},ot.fromObject=function(et){if(et instanceof $root.FontFace)return et;let ct=new $root.FontFace;return et.url!=null&&(ct.url=String(et.url)),et.family!=null&&(ct.family=String(et.family)),et.weight!=null&&(ct.weight=et.weight|0),et.style!=null&&(ct.style=String(et.style)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.url="",ut.family="",ut.weight=0,ut.style=""),et.url!=null&&et.hasOwnProperty("url")&&(ut.url=et.url),et.family!=null&&et.hasOwnProperty("family")&&(ut.family=et.family),et.weight!=null&&et.hasOwnProperty("weight")&&(ut.weight=et.weight),et.style!=null&&et.hasOwnProperty("style")&&(ut.style=et.style),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FontFace"},ot})(),$root.Radii=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.baseWidgetRadius=0,ot.prototype.checkboxRadius=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.baseWidgetRadius!=null&&Object.hasOwnProperty.call(et,"baseWidgetRadius")&&ct.uint32(8).int32(et.baseWidgetRadius),et.checkboxRadius!=null&&Object.hasOwnProperty.call(et,"checkboxRadius")&&ct.uint32(16).int32(et.checkboxRadius),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Radii;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.baseWidgetRadius=et.int32();break}case 2:{dt.checkboxRadius=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.baseWidgetRadius!=null&&et.hasOwnProperty("baseWidgetRadius")&&!$util.isInteger(et.baseWidgetRadius)?"baseWidgetRadius: integer expected":et.checkboxRadius!=null&&et.hasOwnProperty("checkboxRadius")&&!$util.isInteger(et.checkboxRadius)?"checkboxRadius: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.Radii)return et;let ct=new $root.Radii;return et.baseWidgetRadius!=null&&(ct.baseWidgetRadius=et.baseWidgetRadius|0),et.checkboxRadius!=null&&(ct.checkboxRadius=et.checkboxRadius|0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.baseWidgetRadius=0,ut.checkboxRadius=0),et.baseWidgetRadius!=null&&et.hasOwnProperty("baseWidgetRadius")&&(ut.baseWidgetRadius=et.baseWidgetRadius),et.checkboxRadius!=null&&et.hasOwnProperty("checkboxRadius")&&(ut.checkboxRadius=et.checkboxRadius),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Radii"},ot})(),$root.FontSizes=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.tinyFontSize=0,ot.prototype.smallFontSize=0,ot.prototype.baseFontSize=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.tinyFontSize!=null&&Object.hasOwnProperty.call(et,"tinyFontSize")&&ct.uint32(8).int32(et.tinyFontSize),et.smallFontSize!=null&&Object.hasOwnProperty.call(et,"smallFontSize")&&ct.uint32(16).int32(et.smallFontSize),et.baseFontSize!=null&&Object.hasOwnProperty.call(et,"baseFontSize")&&ct.uint32(24).int32(et.baseFontSize),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.FontSizes;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.tinyFontSize=et.int32();break}case 2:{dt.smallFontSize=et.int32();break}case 3:{dt.baseFontSize=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.tinyFontSize!=null&&et.hasOwnProperty("tinyFontSize")&&!$util.isInteger(et.tinyFontSize)?"tinyFontSize: integer expected":et.smallFontSize!=null&&et.hasOwnProperty("smallFontSize")&&!$util.isInteger(et.smallFontSize)?"smallFontSize: integer expected":et.baseFontSize!=null&&et.hasOwnProperty("baseFontSize")&&!$util.isInteger(et.baseFontSize)?"baseFontSize: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.FontSizes)return et;let ct=new $root.FontSizes;return et.tinyFontSize!=null&&(ct.tinyFontSize=et.tinyFontSize|0),et.smallFontSize!=null&&(ct.smallFontSize=et.smallFontSize|0),et.baseFontSize!=null&&(ct.baseFontSize=et.baseFontSize|0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.tinyFontSize=0,ut.smallFontSize=0,ut.baseFontSize=0),et.tinyFontSize!=null&&et.hasOwnProperty("tinyFontSize")&&(ut.tinyFontSize=et.tinyFontSize),et.smallFontSize!=null&&et.hasOwnProperty("smallFontSize")&&(ut.smallFontSize=et.smallFontSize),et.baseFontSize!=null&&et.hasOwnProperty("baseFontSize")&&(ut.baseFontSize=et.baseFontSize),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/FontSizes"},ot})(),$root.UserInfo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.installationId="",ot.prototype.installationIdV3="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.installationId!=null&&Object.hasOwnProperty.call(et,"installationId")&&ct.uint32(10).string(et.installationId),et.installationIdV3!=null&&Object.hasOwnProperty.call(et,"installationIdV3")&&ct.uint32(42).string(et.installationIdV3),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.UserInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.installationId=et.string();break}case 5:{dt.installationIdV3=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.installationId!=null&&et.hasOwnProperty("installationId")&&!$util.isString(et.installationId)?"installationId: string expected":et.installationIdV3!=null&&et.hasOwnProperty("installationIdV3")&&!$util.isString(et.installationIdV3)?"installationIdV3: string expected":null},ot.fromObject=function(et){if(et instanceof $root.UserInfo)return et;let ct=new $root.UserInfo;return et.installationId!=null&&(ct.installationId=String(et.installationId)),et.installationIdV3!=null&&(ct.installationIdV3=String(et.installationIdV3)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.installationId="",ut.installationIdV3=""),et.installationId!=null&&et.hasOwnProperty("installationId")&&(ut.installationId=et.installationId),et.installationIdV3!=null&&et.hasOwnProperty("installationIdV3")&&(ut.installationIdV3=et.installationIdV3),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/UserInfo"},ot})(),$root.EnvironmentInfo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.streamlitVersion="",ot.prototype.pythonVersion="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.streamlitVersion!=null&&Object.hasOwnProperty.call(et,"streamlitVersion")&&ct.uint32(10).string(et.streamlitVersion),et.pythonVersion!=null&&Object.hasOwnProperty.call(et,"pythonVersion")&&ct.uint32(18).string(et.pythonVersion),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.EnvironmentInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.streamlitVersion=et.string();break}case 2:{dt.pythonVersion=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.streamlitVersion!=null&&et.hasOwnProperty("streamlitVersion")&&!$util.isString(et.streamlitVersion)?"streamlitVersion: string expected":et.pythonVersion!=null&&et.hasOwnProperty("pythonVersion")&&!$util.isString(et.pythonVersion)?"pythonVersion: string expected":null},ot.fromObject=function(et){if(et instanceof $root.EnvironmentInfo)return et;let ct=new $root.EnvironmentInfo;return et.streamlitVersion!=null&&(ct.streamlitVersion=String(et.streamlitVersion)),et.pythonVersion!=null&&(ct.pythonVersion=String(et.pythonVersion)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.streamlitVersion="",ut.pythonVersion=""),et.streamlitVersion!=null&&et.hasOwnProperty("streamlitVersion")&&(ut.streamlitVersion=et.streamlitVersion),et.pythonVersion!=null&&et.hasOwnProperty("pythonVersion")&&(ut.pythonVersion=et.pythonVersion),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/EnvironmentInfo"},ot})(),$root.SessionStatus=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.runOnSave=!1,ot.prototype.scriptIsRunning=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.runOnSave!=null&&Object.hasOwnProperty.call(et,"runOnSave")&&ct.uint32(8).bool(et.runOnSave),et.scriptIsRunning!=null&&Object.hasOwnProperty.call(et,"scriptIsRunning")&&ct.uint32(16).bool(et.scriptIsRunning),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.SessionStatus;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.runOnSave=et.bool();break}case 2:{dt.scriptIsRunning=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.runOnSave!=null&&et.hasOwnProperty("runOnSave")&&typeof et.runOnSave!="boolean"?"runOnSave: boolean expected":et.scriptIsRunning!=null&&et.hasOwnProperty("scriptIsRunning")&&typeof et.scriptIsRunning!="boolean"?"scriptIsRunning: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.SessionStatus)return et;let ct=new $root.SessionStatus;return et.runOnSave!=null&&(ct.runOnSave=!!et.runOnSave),et.scriptIsRunning!=null&&(ct.scriptIsRunning=!!et.scriptIsRunning),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.runOnSave=!1,ut.scriptIsRunning=!1),et.runOnSave!=null&&et.hasOwnProperty("runOnSave")&&(ut.runOnSave=et.runOnSave),et.scriptIsRunning!=null&&et.hasOwnProperty("scriptIsRunning")&&(ut.scriptIsRunning=et.scriptIsRunning),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/SessionStatus"},ot})();const PageConfig=$root.PageConfig=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.title="",ot.prototype.favicon="",ot.prototype.layout=0,ot.prototype.initialSidebarState=0,ot.prototype.menuItems=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.title!=null&&Object.hasOwnProperty.call(et,"title")&&ct.uint32(10).string(et.title),et.favicon!=null&&Object.hasOwnProperty.call(et,"favicon")&&ct.uint32(18).string(et.favicon),et.layout!=null&&Object.hasOwnProperty.call(et,"layout")&&ct.uint32(24).int32(et.layout),et.initialSidebarState!=null&&Object.hasOwnProperty.call(et,"initialSidebarState")&&ct.uint32(32).int32(et.initialSidebarState),et.menuItems!=null&&Object.hasOwnProperty.call(et,"menuItems")&&$root.PageConfig.MenuItems.encode(et.menuItems,ct.uint32(42).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PageConfig;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.title=et.string();break}case 2:{dt.favicon=et.string();break}case 3:{dt.layout=et.int32();break}case 4:{dt.initialSidebarState=et.int32();break}case 5:{dt.menuItems=$root.PageConfig.MenuItems.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.title!=null&&et.hasOwnProperty("title")&&!$util.isString(et.title))return"title: string expected";if(et.favicon!=null&&et.hasOwnProperty("favicon")&&!$util.isString(et.favicon))return"favicon: string expected";if(et.layout!=null&&et.hasOwnProperty("layout"))switch(et.layout){default:return"layout: enum value expected";case 0:case 1:break}if(et.initialSidebarState!=null&&et.hasOwnProperty("initialSidebarState"))switch(et.initialSidebarState){default:return"initialSidebarState: enum value expected";case 0:case 1:case 2:break}if(et.menuItems!=null&&et.hasOwnProperty("menuItems")){let ct=$root.PageConfig.MenuItems.verify(et.menuItems);if(ct)return"menuItems."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.PageConfig)return et;let ct=new $root.PageConfig;switch(et.title!=null&&(ct.title=String(et.title)),et.favicon!=null&&(ct.favicon=String(et.favicon)),et.layout){default:if(typeof et.layout=="number"){ct.layout=et.layout;break}break;case"CENTERED":case 0:ct.layout=0;break;case"WIDE":case 1:ct.layout=1;break}switch(et.initialSidebarState){default:if(typeof et.initialSidebarState=="number"){ct.initialSidebarState=et.initialSidebarState;break}break;case"AUTO":case 0:ct.initialSidebarState=0;break;case"EXPANDED":case 1:ct.initialSidebarState=1;break;case"COLLAPSED":case 2:ct.initialSidebarState=2;break}if(et.menuItems!=null){if(typeof et.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");ct.menuItems=$root.PageConfig.MenuItems.fromObject(et.menuItems)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.title="",ut.favicon="",ut.layout=ct.enums===String?"CENTERED":0,ut.initialSidebarState=ct.enums===String?"AUTO":0,ut.menuItems=null),et.title!=null&&et.hasOwnProperty("title")&&(ut.title=et.title),et.favicon!=null&&et.hasOwnProperty("favicon")&&(ut.favicon=et.favicon),et.layout!=null&&et.hasOwnProperty("layout")&&(ut.layout=ct.enums===String?$root.PageConfig.Layout[et.layout]===void 0?et.layout:$root.PageConfig.Layout[et.layout]:et.layout),et.initialSidebarState!=null&&et.hasOwnProperty("initialSidebarState")&&(ut.initialSidebarState=ct.enums===String?$root.PageConfig.SidebarState[et.initialSidebarState]===void 0?et.initialSidebarState:$root.PageConfig.SidebarState[et.initialSidebarState]:et.initialSidebarState),et.menuItems!=null&&et.hasOwnProperty("menuItems")&&(ut.menuItems=$root.PageConfig.MenuItems.toObject(et.menuItems,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PageConfig"},ot.MenuItems=function(){function et(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.getHelpUrl="",et.prototype.hideGetHelp=!1,et.prototype.reportABugUrl="",et.prototype.hideReportABug=!1,et.prototype.aboutSectionMd="",et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.getHelpUrl!=null&&Object.hasOwnProperty.call(ct,"getHelpUrl")&&ut.uint32(10).string(ct.getHelpUrl),ct.hideGetHelp!=null&&Object.hasOwnProperty.call(ct,"hideGetHelp")&&ut.uint32(16).bool(ct.hideGetHelp),ct.reportABugUrl!=null&&Object.hasOwnProperty.call(ct,"reportABugUrl")&&ut.uint32(26).string(ct.reportABugUrl),ct.hideReportABug!=null&&Object.hasOwnProperty.call(ct,"hideReportABug")&&ut.uint32(32).bool(ct.hideReportABug),ct.aboutSectionMd!=null&&Object.hasOwnProperty.call(ct,"aboutSectionMd")&&ut.uint32(42).string(ct.aboutSectionMd),ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.PageConfig.MenuItems;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.getHelpUrl=ct.string();break}case 2:{ft.hideGetHelp=ct.bool();break}case 3:{ft.reportABugUrl=ct.string();break}case 4:{ft.hideReportABug=ct.bool();break}case 5:{ft.aboutSectionMd=ct.string();break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){return typeof ct!="object"||ct===null?"object expected":ct.getHelpUrl!=null&&ct.hasOwnProperty("getHelpUrl")&&!$util.isString(ct.getHelpUrl)?"getHelpUrl: string expected":ct.hideGetHelp!=null&&ct.hasOwnProperty("hideGetHelp")&&typeof ct.hideGetHelp!="boolean"?"hideGetHelp: boolean expected":ct.reportABugUrl!=null&&ct.hasOwnProperty("reportABugUrl")&&!$util.isString(ct.reportABugUrl)?"reportABugUrl: string expected":ct.hideReportABug!=null&&ct.hasOwnProperty("hideReportABug")&&typeof ct.hideReportABug!="boolean"?"hideReportABug: boolean expected":ct.aboutSectionMd!=null&&ct.hasOwnProperty("aboutSectionMd")&&!$util.isString(ct.aboutSectionMd)?"aboutSectionMd: string expected":null},et.fromObject=function(ct){if(ct instanceof $root.PageConfig.MenuItems)return ct;let ut=new $root.PageConfig.MenuItems;return ct.getHelpUrl!=null&&(ut.getHelpUrl=String(ct.getHelpUrl)),ct.hideGetHelp!=null&&(ut.hideGetHelp=!!ct.hideGetHelp),ct.reportABugUrl!=null&&(ut.reportABugUrl=String(ct.reportABugUrl)),ct.hideReportABug!=null&&(ut.hideReportABug=!!ct.hideReportABug),ct.aboutSectionMd!=null&&(ut.aboutSectionMd=String(ct.aboutSectionMd)),ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.getHelpUrl="",dt.hideGetHelp=!1,dt.reportABugUrl="",dt.hideReportABug=!1,dt.aboutSectionMd=""),ct.getHelpUrl!=null&&ct.hasOwnProperty("getHelpUrl")&&(dt.getHelpUrl=ct.getHelpUrl),ct.hideGetHelp!=null&&ct.hasOwnProperty("hideGetHelp")&&(dt.hideGetHelp=ct.hideGetHelp),ct.reportABugUrl!=null&&ct.hasOwnProperty("reportABugUrl")&&(dt.reportABugUrl=ct.reportABugUrl),ct.hideReportABug!=null&&ct.hasOwnProperty("hideReportABug")&&(dt.hideReportABug=ct.hideReportABug),ct.aboutSectionMd!=null&&ct.hasOwnProperty("aboutSectionMd")&&(dt.aboutSectionMd=ct.aboutSectionMd),dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/PageConfig.MenuItems"},et}(),ot.Layout=function(){const et={},ct=Object.create(et);return ct[et[0]="CENTERED"]=0,ct[et[1]="WIDE"]=1,ct}(),ot.SidebarState=function(){const et={},ct=Object.create(et);return ct[et[0]="AUTO"]=0,ct[et[1]="EXPANDED"]=1,ct[et[2]="COLLAPSED"]=2,ct}(),ot})();$root.PageInfo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.queryString="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.queryString!=null&&Object.hasOwnProperty.call(et,"queryString")&&ct.uint32(10).string(et.queryString),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PageInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.queryString=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.queryString!=null&&et.hasOwnProperty("queryString")&&!$util.isString(et.queryString)?"queryString: string expected":null},ot.fromObject=function(et){if(et instanceof $root.PageInfo)return et;let ct=new $root.PageInfo;return et.queryString!=null&&(ct.queryString=String(et.queryString)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.queryString=""),et.queryString!=null&&et.hasOwnProperty("queryString")&&(ut.queryString=et.queryString),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PageInfo"},ot})();const PageProfile=$root.PageProfile=(()=>{function ot(et){if(this.commands=[],this.config=[],this.attributions=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.commands=$util.emptyArray,ot.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.config=$util.emptyArray,ot.prototype.uncaughtException="",ot.prototype.attributions=$util.emptyArray,ot.prototype.os="",ot.prototype.timezone="",ot.prototype.headless=!1,ot.prototype.isFragmentRun=!1,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.commands!=null&&et.commands.length)for(let ut=0;ut<et.commands.length;++ut)$root.Command.encode(et.commands[ut],ct.uint32(10).fork()).ldelim();if(et.execTime!=null&&Object.hasOwnProperty.call(et,"execTime")&&ct.uint32(16).int64(et.execTime),et.prepTime!=null&&Object.hasOwnProperty.call(et,"prepTime")&&ct.uint32(24).int64(et.prepTime),et.config!=null&&et.config.length)for(let ut=0;ut<et.config.length;++ut)ct.uint32(42).string(et.config[ut]);if(et.uncaughtException!=null&&Object.hasOwnProperty.call(et,"uncaughtException")&&ct.uint32(50).string(et.uncaughtException),et.attributions!=null&&et.attributions.length)for(let ut=0;ut<et.attributions.length;++ut)ct.uint32(58).string(et.attributions[ut]);return et.os!=null&&Object.hasOwnProperty.call(et,"os")&&ct.uint32(66).string(et.os),et.timezone!=null&&Object.hasOwnProperty.call(et,"timezone")&&ct.uint32(74).string(et.timezone),et.headless!=null&&Object.hasOwnProperty.call(et,"headless")&&ct.uint32(80).bool(et.headless),et.isFragmentRun!=null&&Object.hasOwnProperty.call(et,"isFragmentRun")&&ct.uint32(88).bool(et.isFragmentRun),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PageProfile;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.commands&&dt.commands.length||(dt.commands=[]),dt.commands.push($root.Command.decode(et,et.uint32()));break}case 2:{dt.execTime=et.int64();break}case 3:{dt.prepTime=et.int64();break}case 5:{dt.config&&dt.config.length||(dt.config=[]),dt.config.push(et.string());break}case 6:{dt.uncaughtException=et.string();break}case 7:{dt.attributions&&dt.attributions.length||(dt.attributions=[]),dt.attributions.push(et.string());break}case 8:{dt.os=et.string();break}case 9:{dt.timezone=et.string();break}case 10:{dt.headless=et.bool();break}case 11:{dt.isFragmentRun=et.bool();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.commands!=null&&et.hasOwnProperty("commands")){if(!Array.isArray(et.commands))return"commands: array expected";for(let ct=0;ct<et.commands.length;++ct){let ut=$root.Command.verify(et.commands[ct]);if(ut)return"commands."+ut}}if(et.execTime!=null&&et.hasOwnProperty("execTime")&&!$util.isInteger(et.execTime)&&!(et.execTime&&$util.isInteger(et.execTime.low)&&$util.isInteger(et.execTime.high)))return"execTime: integer|Long expected";if(et.prepTime!=null&&et.hasOwnProperty("prepTime")&&!$util.isInteger(et.prepTime)&&!(et.prepTime&&$util.isInteger(et.prepTime.low)&&$util.isInteger(et.prepTime.high)))return"prepTime: integer|Long expected";if(et.config!=null&&et.hasOwnProperty("config")){if(!Array.isArray(et.config))return"config: array expected";for(let ct=0;ct<et.config.length;++ct)if(!$util.isString(et.config[ct]))return"config: string[] expected"}if(et.uncaughtException!=null&&et.hasOwnProperty("uncaughtException")&&!$util.isString(et.uncaughtException))return"uncaughtException: string expected";if(et.attributions!=null&&et.hasOwnProperty("attributions")){if(!Array.isArray(et.attributions))return"attributions: array expected";for(let ct=0;ct<et.attributions.length;++ct)if(!$util.isString(et.attributions[ct]))return"attributions: string[] expected"}return et.os!=null&&et.hasOwnProperty("os")&&!$util.isString(et.os)?"os: string expected":et.timezone!=null&&et.hasOwnProperty("timezone")&&!$util.isString(et.timezone)?"timezone: string expected":et.headless!=null&&et.hasOwnProperty("headless")&&typeof et.headless!="boolean"?"headless: boolean expected":et.isFragmentRun!=null&&et.hasOwnProperty("isFragmentRun")&&typeof et.isFragmentRun!="boolean"?"isFragmentRun: boolean expected":null},ot.fromObject=function(et){if(et instanceof $root.PageProfile)return et;let ct=new $root.PageProfile;if(et.commands){if(!Array.isArray(et.commands))throw TypeError(".PageProfile.commands: array expected");ct.commands=[];for(let ut=0;ut<et.commands.length;++ut){if(typeof et.commands[ut]!="object")throw TypeError(".PageProfile.commands: object expected");ct.commands[ut]=$root.Command.fromObject(et.commands[ut])}}if(et.execTime!=null&&($util.Long?(ct.execTime=$util.Long.fromValue(et.execTime)).unsigned=!1:typeof et.execTime=="string"?ct.execTime=parseInt(et.execTime,10):typeof et.execTime=="number"?ct.execTime=et.execTime:typeof et.execTime=="object"&&(ct.execTime=new $util.LongBits(et.execTime.low>>>0,et.execTime.high>>>0).toNumber())),et.prepTime!=null&&($util.Long?(ct.prepTime=$util.Long.fromValue(et.prepTime)).unsigned=!1:typeof et.prepTime=="string"?ct.prepTime=parseInt(et.prepTime,10):typeof et.prepTime=="number"?ct.prepTime=et.prepTime:typeof et.prepTime=="object"&&(ct.prepTime=new $util.LongBits(et.prepTime.low>>>0,et.prepTime.high>>>0).toNumber())),et.config){if(!Array.isArray(et.config))throw TypeError(".PageProfile.config: array expected");ct.config=[];for(let ut=0;ut<et.config.length;++ut)ct.config[ut]=String(et.config[ut])}if(et.uncaughtException!=null&&(ct.uncaughtException=String(et.uncaughtException)),et.attributions){if(!Array.isArray(et.attributions))throw TypeError(".PageProfile.attributions: array expected");ct.attributions=[];for(let ut=0;ut<et.attributions.length;++ut)ct.attributions[ut]=String(et.attributions[ut])}return et.os!=null&&(ct.os=String(et.os)),et.timezone!=null&&(ct.timezone=String(et.timezone)),et.headless!=null&&(ct.headless=!!et.headless),et.isFragmentRun!=null&&(ct.isFragmentRun=!!et.isFragmentRun),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.commands=[],ut.config=[],ut.attributions=[]),ct.defaults){if($util.Long){let dt=new $util.Long(0,0,!1);ut.execTime=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.execTime=ct.longs===String?"0":0;if($util.Long){let dt=new $util.Long(0,0,!1);ut.prepTime=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.prepTime=ct.longs===String?"0":0;ut.uncaughtException="",ut.os="",ut.timezone="",ut.headless=!1,ut.isFragmentRun=!1}if(et.commands&&et.commands.length){ut.commands=[];for(let dt=0;dt<et.commands.length;++dt)ut.commands[dt]=$root.Command.toObject(et.commands[dt],ct)}if(et.execTime!=null&&et.hasOwnProperty("execTime")&&(typeof et.execTime=="number"?ut.execTime=ct.longs===String?String(et.execTime):et.execTime:ut.execTime=ct.longs===String?$util.Long.prototype.toString.call(et.execTime):ct.longs===Number?new $util.LongBits(et.execTime.low>>>0,et.execTime.high>>>0).toNumber():et.execTime),et.prepTime!=null&&et.hasOwnProperty("prepTime")&&(typeof et.prepTime=="number"?ut.prepTime=ct.longs===String?String(et.prepTime):et.prepTime:ut.prepTime=ct.longs===String?$util.Long.prototype.toString.call(et.prepTime):ct.longs===Number?new $util.LongBits(et.prepTime.low>>>0,et.prepTime.high>>>0).toNumber():et.prepTime),et.config&&et.config.length){ut.config=[];for(let dt=0;dt<et.config.length;++dt)ut.config[dt]=et.config[dt]}if(et.uncaughtException!=null&&et.hasOwnProperty("uncaughtException")&&(ut.uncaughtException=et.uncaughtException),et.attributions&&et.attributions.length){ut.attributions=[];for(let dt=0;dt<et.attributions.length;++dt)ut.attributions[dt]=et.attributions[dt]}return et.os!=null&&et.hasOwnProperty("os")&&(ut.os=et.os),et.timezone!=null&&et.hasOwnProperty("timezone")&&(ut.timezone=et.timezone),et.headless!=null&&et.hasOwnProperty("headless")&&(ut.headless=et.headless),et.isFragmentRun!=null&&et.hasOwnProperty("isFragmentRun")&&(ut.isFragmentRun=et.isFragmentRun),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PageProfile"},ot})();$root.Argument=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.k="",ot.prototype.t="",ot.prototype.m="",ot.prototype.p=0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.k!=null&&Object.hasOwnProperty.call(et,"k")&&ct.uint32(10).string(et.k),et.t!=null&&Object.hasOwnProperty.call(et,"t")&&ct.uint32(18).string(et.t),et.m!=null&&Object.hasOwnProperty.call(et,"m")&&ct.uint32(26).string(et.m),et.p!=null&&Object.hasOwnProperty.call(et,"p")&&ct.uint32(40).int32(et.p),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Argument;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.k=et.string();break}case 2:{dt.t=et.string();break}case 3:{dt.m=et.string();break}case 5:{dt.p=et.int32();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.k!=null&&et.hasOwnProperty("k")&&!$util.isString(et.k)?"k: string expected":et.t!=null&&et.hasOwnProperty("t")&&!$util.isString(et.t)?"t: string expected":et.m!=null&&et.hasOwnProperty("m")&&!$util.isString(et.m)?"m: string expected":et.p!=null&&et.hasOwnProperty("p")&&!$util.isInteger(et.p)?"p: integer expected":null},ot.fromObject=function(et){if(et instanceof $root.Argument)return et;let ct=new $root.Argument;return et.k!=null&&(ct.k=String(et.k)),et.t!=null&&(ct.t=String(et.t)),et.m!=null&&(ct.m=String(et.m)),et.p!=null&&(ct.p=et.p|0),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.k="",ut.t="",ut.m="",ut.p=0),et.k!=null&&et.hasOwnProperty("k")&&(ut.k=et.k),et.t!=null&&et.hasOwnProperty("t")&&(ut.t=et.t),et.m!=null&&et.hasOwnProperty("m")&&(ut.m=et.m),et.p!=null&&et.hasOwnProperty("p")&&(ut.p=et.p),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Argument"},ot})(),$root.Command=(()=>{function ot(et){if(this.args=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.name="",ot.prototype.args=$util.emptyArray,ot.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.name!=null&&Object.hasOwnProperty.call(et,"name")&&ct.uint32(10).string(et.name),et.args!=null&&et.args.length)for(let ut=0;ut<et.args.length;++ut)$root.Argument.encode(et.args[ut],ct.uint32(18).fork()).ldelim();return et.time!=null&&Object.hasOwnProperty.call(et,"time")&&ct.uint32(32).int64(et.time),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.Command;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.name=et.string();break}case 2:{dt.args&&dt.args.length||(dt.args=[]),dt.args.push($root.Argument.decode(et,et.uint32()));break}case 4:{dt.time=et.int64();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.name!=null&&et.hasOwnProperty("name")&&!$util.isString(et.name))return"name: string expected";if(et.args!=null&&et.hasOwnProperty("args")){if(!Array.isArray(et.args))return"args: array expected";for(let ct=0;ct<et.args.length;++ct){let ut=$root.Argument.verify(et.args[ct]);if(ut)return"args."+ut}}return et.time!=null&&et.hasOwnProperty("time")&&!$util.isInteger(et.time)&&!(et.time&&$util.isInteger(et.time.low)&&$util.isInteger(et.time.high))?"time: integer|Long expected":null},ot.fromObject=function(et){if(et instanceof $root.Command)return et;let ct=new $root.Command;if(et.name!=null&&(ct.name=String(et.name)),et.args){if(!Array.isArray(et.args))throw TypeError(".Command.args: array expected");ct.args=[];for(let ut=0;ut<et.args.length;++ut){if(typeof et.args[ut]!="object")throw TypeError(".Command.args: object expected");ct.args[ut]=$root.Argument.fromObject(et.args[ut])}}return et.time!=null&&($util.Long?(ct.time=$util.Long.fromValue(et.time)).unsigned=!1:typeof et.time=="string"?ct.time=parseInt(et.time,10):typeof et.time=="number"?ct.time=et.time:typeof et.time=="object"&&(ct.time=new $util.LongBits(et.time.low>>>0,et.time.high>>>0).toNumber())),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.args=[]),ct.defaults)if(ut.name="",$util.Long){let dt=new $util.Long(0,0,!1);ut.time=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.time=ct.longs===String?"0":0;if(et.name!=null&&et.hasOwnProperty("name")&&(ut.name=et.name),et.args&&et.args.length){ut.args=[];for(let dt=0;dt<et.args.length;++dt)ut.args[dt]=$root.Argument.toObject(et.args[dt],ct)}return et.time!=null&&et.hasOwnProperty("time")&&(typeof et.time=="number"?ut.time=ct.longs===String?String(et.time):et.time:ut.time=ct.longs===String?$util.Long.prototype.toString.call(et.time):ct.longs===Number?new $util.LongBits(et.time.low>>>0,et.time.high>>>0).toNumber():et.time),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/Command"},ot})(),$root.PageNotFound=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.pageName="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.pageName!=null&&Object.hasOwnProperty.call(et,"pageName")&&ct.uint32(10).string(et.pageName),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PageNotFound;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.pageName=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.pageName!=null&&et.hasOwnProperty("pageName")&&!$util.isString(et.pageName)?"pageName: string expected":null},ot.fromObject=function(et){if(et instanceof $root.PageNotFound)return et;let ct=new $root.PageNotFound;return et.pageName!=null&&(ct.pageName=String(et.pageName)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.pageName=""),et.pageName!=null&&et.hasOwnProperty("pageName")&&(ut.pageName=et.pageName),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PageNotFound"},ot})(),$root.PagesChanged=(()=>{function ot(et){if(this.appPages=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.appPages=$util.emptyArray,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.appPages!=null&&et.appPages.length)for(let ut=0;ut<et.appPages.length;++ut)$root.AppPage.encode(et.appPages[ut],ct.uint32(10).fork()).ldelim();return ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.PagesChanged;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.appPages&&dt.appPages.length||(dt.appPages=[]),dt.appPages.push($root.AppPage.decode(et,et.uint32()));break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.appPages!=null&&et.hasOwnProperty("appPages")){if(!Array.isArray(et.appPages))return"appPages: array expected";for(let ct=0;ct<et.appPages.length;++ct){let ut=$root.AppPage.verify(et.appPages[ct]);if(ut)return"appPages."+ut}}return null},ot.fromObject=function(et){if(et instanceof $root.PagesChanged)return et;let ct=new $root.PagesChanged;if(et.appPages){if(!Array.isArray(et.appPages))throw TypeError(".PagesChanged.appPages: array expected");ct.appPages=[];for(let ut=0;ut<et.appPages.length;++ut){if(typeof et.appPages[ut]!="object")throw TypeError(".PagesChanged.appPages: object expected");ct.appPages[ut]=$root.AppPage.fromObject(et.appPages[ut])}}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.appPages=[]),et.appPages&&et.appPages.length){ut.appPages=[];for(let dt=0;dt<et.appPages.length;++dt)ut.appPages[dt]=$root.AppPage.toObject(et.appPages[dt],ct)}return ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/PagesChanged"},ot})(),$root.ParentMessage=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.message="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.message!=null&&Object.hasOwnProperty.call(et,"message")&&ct.uint32(10).string(et.message),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.ParentMessage;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.message=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.message!=null&&et.hasOwnProperty("message")&&!$util.isString(et.message)?"message: string expected":null},ot.fromObject=function(et){if(et instanceof $root.ParentMessage)return et;let ct=new $root.ParentMessage;return et.message!=null&&(ct.message=String(et.message)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.message=""),et.message!=null&&et.hasOwnProperty("message")&&(ut.message=et.message),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/ParentMessage"},ot})(),$root.SessionEvent=(()=>{function ot(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}ot.prototype.scriptChangedOnDisk=null,ot.prototype.scriptWasManuallyStopped=null,ot.prototype.scriptCompilationException=null;let et;return Object.defineProperty(ot.prototype,"type",{get:$util.oneOfGetter(et=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:$util.oneOfSetter(et)}),ot.create=function(ct){return new ot(ct)},ot.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(ct,"scriptChangedOnDisk")&&ut.uint32(8).bool(ct.scriptChangedOnDisk),ct.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(ct,"scriptWasManuallyStopped")&&ut.uint32(16).bool(ct.scriptWasManuallyStopped),ct.scriptCompilationException!=null&&Object.hasOwnProperty.call(ct,"scriptCompilationException")&&$root.Exception.encode(ct.scriptCompilationException,ut.uint32(26).fork()).ldelim(),ut},ot.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},ot.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.SessionEvent;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.scriptChangedOnDisk=ct.bool();break}case 2:{ft.scriptWasManuallyStopped=ct.bool();break}case 3:{ft.scriptCompilationException=$root.Exception.decode(ct,ct.uint32());break}default:ct.skipType(zt&7);break}}return ft},ot.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},ot.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";let ut={};if(ct.scriptChangedOnDisk!=null&&ct.hasOwnProperty("scriptChangedOnDisk")&&(ut.type=1,typeof ct.scriptChangedOnDisk!="boolean"))return"scriptChangedOnDisk: boolean expected";if(ct.scriptWasManuallyStopped!=null&&ct.hasOwnProperty("scriptWasManuallyStopped")){if(ut.type===1)return"type: multiple values";if(ut.type=1,typeof ct.scriptWasManuallyStopped!="boolean")return"scriptWasManuallyStopped: boolean expected"}if(ct.scriptCompilationException!=null&&ct.hasOwnProperty("scriptCompilationException")){if(ut.type===1)return"type: multiple values";ut.type=1;{let dt=$root.Exception.verify(ct.scriptCompilationException);if(dt)return"scriptCompilationException."+dt}}return null},ot.fromObject=function(ct){if(ct instanceof $root.SessionEvent)return ct;let ut=new $root.SessionEvent;if(ct.scriptChangedOnDisk!=null&&(ut.scriptChangedOnDisk=!!ct.scriptChangedOnDisk),ct.scriptWasManuallyStopped!=null&&(ut.scriptWasManuallyStopped=!!ct.scriptWasManuallyStopped),ct.scriptCompilationException!=null){if(typeof ct.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");ut.scriptCompilationException=$root.Exception.fromObject(ct.scriptCompilationException)}return ut},ot.toObject=function(ct,ut){ut||(ut={});let dt={};return ct.scriptChangedOnDisk!=null&&ct.hasOwnProperty("scriptChangedOnDisk")&&(dt.scriptChangedOnDisk=ct.scriptChangedOnDisk,ut.oneofs&&(dt.type="scriptChangedOnDisk")),ct.scriptWasManuallyStopped!=null&&ct.hasOwnProperty("scriptWasManuallyStopped")&&(dt.scriptWasManuallyStopped=ct.scriptWasManuallyStopped,ut.oneofs&&(dt.type="scriptWasManuallyStopped")),ct.scriptCompilationException!=null&&ct.hasOwnProperty("scriptCompilationException")&&(dt.scriptCompilationException=$root.Exception.toObject(ct.scriptCompilationException,ut),ut.oneofs&&(dt.type="scriptCompilationException")),dt},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/SessionEvent"},ot})();const MetricsEvent=$root.MetricsEvent=(()=>{function ot(et){if(this.commands=[],this.config=[],this.attributions=[],et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.event="",ot.prototype.anonymousId="",ot.prototype.machineIdV3="",ot.prototype.reportHash="",ot.prototype.dev=!1,ot.prototype.source="",ot.prototype.streamlitVersion="",ot.prototype.isHello=!1,ot.prototype.hostedAt="",ot.prototype.owner="",ot.prototype.repo="",ot.prototype.branch="",ot.prototype.mainModule="",ot.prototype.creatorId="",ot.prototype.contextPageUrl="",ot.prototype.contextPageTitle="",ot.prototype.contextPagePath="",ot.prototype.contextPageReferrer="",ot.prototype.contextPageSearch="",ot.prototype.contextLocale="",ot.prototype.contextUserAgent="",ot.prototype.label="",ot.prototype.commands=$util.emptyArray,ot.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.config=$util.emptyArray,ot.prototype.uncaughtException="",ot.prototype.attributions=$util.emptyArray,ot.prototype.os="",ot.prototype.timezone="",ot.prototype.headless=!1,ot.prototype.isFragmentRun=!1,ot.prototype.appId="",ot.prototype.numPages=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.sessionId="",ot.prototype.pythonVersion="",ot.prototype.pageScriptHash="",ot.prototype.activeTheme="",ot.prototype.totalLoadTime=$util.Long?$util.Long.fromBits(0,0,!1):0,ot.prototype.browserInfo=null,ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){if(ct||(ct=$Writer.create()),et.event!=null&&Object.hasOwnProperty.call(et,"event")&&ct.uint32(10).string(et.event),et.anonymousId!=null&&Object.hasOwnProperty.call(et,"anonymousId")&&ct.uint32(18).string(et.anonymousId),et.machineIdV3!=null&&Object.hasOwnProperty.call(et,"machineIdV3")&&ct.uint32(26).string(et.machineIdV3),et.reportHash!=null&&Object.hasOwnProperty.call(et,"reportHash")&&ct.uint32(34).string(et.reportHash),et.dev!=null&&Object.hasOwnProperty.call(et,"dev")&&ct.uint32(40).bool(et.dev),et.source!=null&&Object.hasOwnProperty.call(et,"source")&&ct.uint32(50).string(et.source),et.streamlitVersion!=null&&Object.hasOwnProperty.call(et,"streamlitVersion")&&ct.uint32(58).string(et.streamlitVersion),et.isHello!=null&&Object.hasOwnProperty.call(et,"isHello")&&ct.uint32(64).bool(et.isHello),et.hostedAt!=null&&Object.hasOwnProperty.call(et,"hostedAt")&&ct.uint32(74).string(et.hostedAt),et.owner!=null&&Object.hasOwnProperty.call(et,"owner")&&ct.uint32(82).string(et.owner),et.repo!=null&&Object.hasOwnProperty.call(et,"repo")&&ct.uint32(90).string(et.repo),et.branch!=null&&Object.hasOwnProperty.call(et,"branch")&&ct.uint32(98).string(et.branch),et.mainModule!=null&&Object.hasOwnProperty.call(et,"mainModule")&&ct.uint32(106).string(et.mainModule),et.creatorId!=null&&Object.hasOwnProperty.call(et,"creatorId")&&ct.uint32(114).string(et.creatorId),et.contextPageUrl!=null&&Object.hasOwnProperty.call(et,"contextPageUrl")&&ct.uint32(122).string(et.contextPageUrl),et.contextPageTitle!=null&&Object.hasOwnProperty.call(et,"contextPageTitle")&&ct.uint32(130).string(et.contextPageTitle),et.contextPagePath!=null&&Object.hasOwnProperty.call(et,"contextPagePath")&&ct.uint32(138).string(et.contextPagePath),et.contextPageReferrer!=null&&Object.hasOwnProperty.call(et,"contextPageReferrer")&&ct.uint32(146).string(et.contextPageReferrer),et.contextPageSearch!=null&&Object.hasOwnProperty.call(et,"contextPageSearch")&&ct.uint32(154).string(et.contextPageSearch),et.contextLocale!=null&&Object.hasOwnProperty.call(et,"contextLocale")&&ct.uint32(162).string(et.contextLocale),et.contextUserAgent!=null&&Object.hasOwnProperty.call(et,"contextUserAgent")&&ct.uint32(170).string(et.contextUserAgent),et.label!=null&&Object.hasOwnProperty.call(et,"label")&&ct.uint32(178).string(et.label),et.commands!=null&&et.commands.length)for(let ut=0;ut<et.commands.length;++ut)$root.Command.encode(et.commands[ut],ct.uint32(186).fork()).ldelim();if(et.execTime!=null&&Object.hasOwnProperty.call(et,"execTime")&&ct.uint32(192).int64(et.execTime),et.prepTime!=null&&Object.hasOwnProperty.call(et,"prepTime")&&ct.uint32(200).int64(et.prepTime),et.config!=null&&et.config.length)for(let ut=0;ut<et.config.length;++ut)ct.uint32(210).string(et.config[ut]);if(et.uncaughtException!=null&&Object.hasOwnProperty.call(et,"uncaughtException")&&ct.uint32(218).string(et.uncaughtException),et.attributions!=null&&et.attributions.length)for(let ut=0;ut<et.attributions.length;++ut)ct.uint32(226).string(et.attributions[ut]);return et.os!=null&&Object.hasOwnProperty.call(et,"os")&&ct.uint32(234).string(et.os),et.timezone!=null&&Object.hasOwnProperty.call(et,"timezone")&&ct.uint32(242).string(et.timezone),et.headless!=null&&Object.hasOwnProperty.call(et,"headless")&&ct.uint32(248).bool(et.headless),et.isFragmentRun!=null&&Object.hasOwnProperty.call(et,"isFragmentRun")&&ct.uint32(256).bool(et.isFragmentRun),et.appId!=null&&Object.hasOwnProperty.call(et,"appId")&&ct.uint32(266).string(et.appId),et.numPages!=null&&Object.hasOwnProperty.call(et,"numPages")&&ct.uint32(272).int64(et.numPages),et.sessionId!=null&&Object.hasOwnProperty.call(et,"sessionId")&&ct.uint32(282).string(et.sessionId),et.pythonVersion!=null&&Object.hasOwnProperty.call(et,"pythonVersion")&&ct.uint32(290).string(et.pythonVersion),et.pageScriptHash!=null&&Object.hasOwnProperty.call(et,"pageScriptHash")&&ct.uint32(298).string(et.pageScriptHash),et.activeTheme!=null&&Object.hasOwnProperty.call(et,"activeTheme")&&ct.uint32(306).string(et.activeTheme),et.totalLoadTime!=null&&Object.hasOwnProperty.call(et,"totalLoadTime")&&ct.uint32(312).int64(et.totalLoadTime),et.browserInfo!=null&&Object.hasOwnProperty.call(et,"browserInfo")&&$root.BrowserInfo.encode(et.browserInfo,ct.uint32(322).fork()).ldelim(),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.MetricsEvent;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.event=et.string();break}case 2:{dt.anonymousId=et.string();break}case 3:{dt.machineIdV3=et.string();break}case 4:{dt.reportHash=et.string();break}case 5:{dt.dev=et.bool();break}case 6:{dt.source=et.string();break}case 7:{dt.streamlitVersion=et.string();break}case 8:{dt.isHello=et.bool();break}case 9:{dt.hostedAt=et.string();break}case 10:{dt.owner=et.string();break}case 11:{dt.repo=et.string();break}case 12:{dt.branch=et.string();break}case 13:{dt.mainModule=et.string();break}case 14:{dt.creatorId=et.string();break}case 15:{dt.contextPageUrl=et.string();break}case 16:{dt.contextPageTitle=et.string();break}case 17:{dt.contextPagePath=et.string();break}case 18:{dt.contextPageReferrer=et.string();break}case 19:{dt.contextPageSearch=et.string();break}case 20:{dt.contextLocale=et.string();break}case 21:{dt.contextUserAgent=et.string();break}case 22:{dt.label=et.string();break}case 23:{dt.commands&&dt.commands.length||(dt.commands=[]),dt.commands.push($root.Command.decode(et,et.uint32()));break}case 24:{dt.execTime=et.int64();break}case 25:{dt.prepTime=et.int64();break}case 26:{dt.config&&dt.config.length||(dt.config=[]),dt.config.push(et.string());break}case 27:{dt.uncaughtException=et.string();break}case 28:{dt.attributions&&dt.attributions.length||(dt.attributions=[]),dt.attributions.push(et.string());break}case 29:{dt.os=et.string();break}case 30:{dt.timezone=et.string();break}case 31:{dt.headless=et.bool();break}case 32:{dt.isFragmentRun=et.bool();break}case 33:{dt.appId=et.string();break}case 34:{dt.numPages=et.int64();break}case 35:{dt.sessionId=et.string();break}case 36:{dt.pythonVersion=et.string();break}case 37:{dt.pageScriptHash=et.string();break}case 38:{dt.activeTheme=et.string();break}case 39:{dt.totalLoadTime=et.int64();break}case 40:{dt.browserInfo=$root.BrowserInfo.decode(et,et.uint32());break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){if(typeof et!="object"||et===null)return"object expected";if(et.event!=null&&et.hasOwnProperty("event")&&!$util.isString(et.event))return"event: string expected";if(et.anonymousId!=null&&et.hasOwnProperty("anonymousId")&&!$util.isString(et.anonymousId))return"anonymousId: string expected";if(et.machineIdV3!=null&&et.hasOwnProperty("machineIdV3")&&!$util.isString(et.machineIdV3))return"machineIdV3: string expected";if(et.reportHash!=null&&et.hasOwnProperty("reportHash")&&!$util.isString(et.reportHash))return"reportHash: string expected";if(et.dev!=null&&et.hasOwnProperty("dev")&&typeof et.dev!="boolean")return"dev: boolean expected";if(et.source!=null&&et.hasOwnProperty("source")&&!$util.isString(et.source))return"source: string expected";if(et.streamlitVersion!=null&&et.hasOwnProperty("streamlitVersion")&&!$util.isString(et.streamlitVersion))return"streamlitVersion: string expected";if(et.isHello!=null&&et.hasOwnProperty("isHello")&&typeof et.isHello!="boolean")return"isHello: boolean expected";if(et.hostedAt!=null&&et.hasOwnProperty("hostedAt")&&!$util.isString(et.hostedAt))return"hostedAt: string expected";if(et.owner!=null&&et.hasOwnProperty("owner")&&!$util.isString(et.owner))return"owner: string expected";if(et.repo!=null&&et.hasOwnProperty("repo")&&!$util.isString(et.repo))return"repo: string expected";if(et.branch!=null&&et.hasOwnProperty("branch")&&!$util.isString(et.branch))return"branch: string expected";if(et.mainModule!=null&&et.hasOwnProperty("mainModule")&&!$util.isString(et.mainModule))return"mainModule: string expected";if(et.creatorId!=null&&et.hasOwnProperty("creatorId")&&!$util.isString(et.creatorId))return"creatorId: string expected";if(et.contextPageUrl!=null&&et.hasOwnProperty("contextPageUrl")&&!$util.isString(et.contextPageUrl))return"contextPageUrl: string expected";if(et.contextPageTitle!=null&&et.hasOwnProperty("contextPageTitle")&&!$util.isString(et.contextPageTitle))return"contextPageTitle: string expected";if(et.contextPagePath!=null&&et.hasOwnProperty("contextPagePath")&&!$util.isString(et.contextPagePath))return"contextPagePath: string expected";if(et.contextPageReferrer!=null&&et.hasOwnProperty("contextPageReferrer")&&!$util.isString(et.contextPageReferrer))return"contextPageReferrer: string expected";if(et.contextPageSearch!=null&&et.hasOwnProperty("contextPageSearch")&&!$util.isString(et.contextPageSearch))return"contextPageSearch: string expected";if(et.contextLocale!=null&&et.hasOwnProperty("contextLocale")&&!$util.isString(et.contextLocale))return"contextLocale: string expected";if(et.contextUserAgent!=null&&et.hasOwnProperty("contextUserAgent")&&!$util.isString(et.contextUserAgent))return"contextUserAgent: string expected";if(et.label!=null&&et.hasOwnProperty("label")&&!$util.isString(et.label))return"label: string expected";if(et.commands!=null&&et.hasOwnProperty("commands")){if(!Array.isArray(et.commands))return"commands: array expected";for(let ct=0;ct<et.commands.length;++ct){let ut=$root.Command.verify(et.commands[ct]);if(ut)return"commands."+ut}}if(et.execTime!=null&&et.hasOwnProperty("execTime")&&!$util.isInteger(et.execTime)&&!(et.execTime&&$util.isInteger(et.execTime.low)&&$util.isInteger(et.execTime.high)))return"execTime: integer|Long expected";if(et.prepTime!=null&&et.hasOwnProperty("prepTime")&&!$util.isInteger(et.prepTime)&&!(et.prepTime&&$util.isInteger(et.prepTime.low)&&$util.isInteger(et.prepTime.high)))return"prepTime: integer|Long expected";if(et.config!=null&&et.hasOwnProperty("config")){if(!Array.isArray(et.config))return"config: array expected";for(let ct=0;ct<et.config.length;++ct)if(!$util.isString(et.config[ct]))return"config: string[] expected"}if(et.uncaughtException!=null&&et.hasOwnProperty("uncaughtException")&&!$util.isString(et.uncaughtException))return"uncaughtException: string expected";if(et.attributions!=null&&et.hasOwnProperty("attributions")){if(!Array.isArray(et.attributions))return"attributions: array expected";for(let ct=0;ct<et.attributions.length;++ct)if(!$util.isString(et.attributions[ct]))return"attributions: string[] expected"}if(et.os!=null&&et.hasOwnProperty("os")&&!$util.isString(et.os))return"os: string expected";if(et.timezone!=null&&et.hasOwnProperty("timezone")&&!$util.isString(et.timezone))return"timezone: string expected";if(et.headless!=null&&et.hasOwnProperty("headless")&&typeof et.headless!="boolean")return"headless: boolean expected";if(et.isFragmentRun!=null&&et.hasOwnProperty("isFragmentRun")&&typeof et.isFragmentRun!="boolean")return"isFragmentRun: boolean expected";if(et.appId!=null&&et.hasOwnProperty("appId")&&!$util.isString(et.appId))return"appId: string expected";if(et.numPages!=null&&et.hasOwnProperty("numPages")&&!$util.isInteger(et.numPages)&&!(et.numPages&&$util.isInteger(et.numPages.low)&&$util.isInteger(et.numPages.high)))return"numPages: integer|Long expected";if(et.sessionId!=null&&et.hasOwnProperty("sessionId")&&!$util.isString(et.sessionId))return"sessionId: string expected";if(et.pythonVersion!=null&&et.hasOwnProperty("pythonVersion")&&!$util.isString(et.pythonVersion))return"pythonVersion: string expected";if(et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&!$util.isString(et.pageScriptHash))return"pageScriptHash: string expected";if(et.activeTheme!=null&&et.hasOwnProperty("activeTheme")&&!$util.isString(et.activeTheme))return"activeTheme: string expected";if(et.totalLoadTime!=null&&et.hasOwnProperty("totalLoadTime")&&!$util.isInteger(et.totalLoadTime)&&!(et.totalLoadTime&&$util.isInteger(et.totalLoadTime.low)&&$util.isInteger(et.totalLoadTime.high)))return"totalLoadTime: integer|Long expected";if(et.browserInfo!=null&&et.hasOwnProperty("browserInfo")){let ct=$root.BrowserInfo.verify(et.browserInfo);if(ct)return"browserInfo."+ct}return null},ot.fromObject=function(et){if(et instanceof $root.MetricsEvent)return et;let ct=new $root.MetricsEvent;if(et.event!=null&&(ct.event=String(et.event)),et.anonymousId!=null&&(ct.anonymousId=String(et.anonymousId)),et.machineIdV3!=null&&(ct.machineIdV3=String(et.machineIdV3)),et.reportHash!=null&&(ct.reportHash=String(et.reportHash)),et.dev!=null&&(ct.dev=!!et.dev),et.source!=null&&(ct.source=String(et.source)),et.streamlitVersion!=null&&(ct.streamlitVersion=String(et.streamlitVersion)),et.isHello!=null&&(ct.isHello=!!et.isHello),et.hostedAt!=null&&(ct.hostedAt=String(et.hostedAt)),et.owner!=null&&(ct.owner=String(et.owner)),et.repo!=null&&(ct.repo=String(et.repo)),et.branch!=null&&(ct.branch=String(et.branch)),et.mainModule!=null&&(ct.mainModule=String(et.mainModule)),et.creatorId!=null&&(ct.creatorId=String(et.creatorId)),et.contextPageUrl!=null&&(ct.contextPageUrl=String(et.contextPageUrl)),et.contextPageTitle!=null&&(ct.contextPageTitle=String(et.contextPageTitle)),et.contextPagePath!=null&&(ct.contextPagePath=String(et.contextPagePath)),et.contextPageReferrer!=null&&(ct.contextPageReferrer=String(et.contextPageReferrer)),et.contextPageSearch!=null&&(ct.contextPageSearch=String(et.contextPageSearch)),et.contextLocale!=null&&(ct.contextLocale=String(et.contextLocale)),et.contextUserAgent!=null&&(ct.contextUserAgent=String(et.contextUserAgent)),et.label!=null&&(ct.label=String(et.label)),et.commands){if(!Array.isArray(et.commands))throw TypeError(".MetricsEvent.commands: array expected");ct.commands=[];for(let ut=0;ut<et.commands.length;++ut){if(typeof et.commands[ut]!="object")throw TypeError(".MetricsEvent.commands: object expected");ct.commands[ut]=$root.Command.fromObject(et.commands[ut])}}if(et.execTime!=null&&($util.Long?(ct.execTime=$util.Long.fromValue(et.execTime)).unsigned=!1:typeof et.execTime=="string"?ct.execTime=parseInt(et.execTime,10):typeof et.execTime=="number"?ct.execTime=et.execTime:typeof et.execTime=="object"&&(ct.execTime=new $util.LongBits(et.execTime.low>>>0,et.execTime.high>>>0).toNumber())),et.prepTime!=null&&($util.Long?(ct.prepTime=$util.Long.fromValue(et.prepTime)).unsigned=!1:typeof et.prepTime=="string"?ct.prepTime=parseInt(et.prepTime,10):typeof et.prepTime=="number"?ct.prepTime=et.prepTime:typeof et.prepTime=="object"&&(ct.prepTime=new $util.LongBits(et.prepTime.low>>>0,et.prepTime.high>>>0).toNumber())),et.config){if(!Array.isArray(et.config))throw TypeError(".MetricsEvent.config: array expected");ct.config=[];for(let ut=0;ut<et.config.length;++ut)ct.config[ut]=String(et.config[ut])}if(et.uncaughtException!=null&&(ct.uncaughtException=String(et.uncaughtException)),et.attributions){if(!Array.isArray(et.attributions))throw TypeError(".MetricsEvent.attributions: array expected");ct.attributions=[];for(let ut=0;ut<et.attributions.length;++ut)ct.attributions[ut]=String(et.attributions[ut])}if(et.os!=null&&(ct.os=String(et.os)),et.timezone!=null&&(ct.timezone=String(et.timezone)),et.headless!=null&&(ct.headless=!!et.headless),et.isFragmentRun!=null&&(ct.isFragmentRun=!!et.isFragmentRun),et.appId!=null&&(ct.appId=String(et.appId)),et.numPages!=null&&($util.Long?(ct.numPages=$util.Long.fromValue(et.numPages)).unsigned=!1:typeof et.numPages=="string"?ct.numPages=parseInt(et.numPages,10):typeof et.numPages=="number"?ct.numPages=et.numPages:typeof et.numPages=="object"&&(ct.numPages=new $util.LongBits(et.numPages.low>>>0,et.numPages.high>>>0).toNumber())),et.sessionId!=null&&(ct.sessionId=String(et.sessionId)),et.pythonVersion!=null&&(ct.pythonVersion=String(et.pythonVersion)),et.pageScriptHash!=null&&(ct.pageScriptHash=String(et.pageScriptHash)),et.activeTheme!=null&&(ct.activeTheme=String(et.activeTheme)),et.totalLoadTime!=null&&($util.Long?(ct.totalLoadTime=$util.Long.fromValue(et.totalLoadTime)).unsigned=!1:typeof et.totalLoadTime=="string"?ct.totalLoadTime=parseInt(et.totalLoadTime,10):typeof et.totalLoadTime=="number"?ct.totalLoadTime=et.totalLoadTime:typeof et.totalLoadTime=="object"&&(ct.totalLoadTime=new $util.LongBits(et.totalLoadTime.low>>>0,et.totalLoadTime.high>>>0).toNumber())),et.browserInfo!=null){if(typeof et.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");ct.browserInfo=$root.BrowserInfo.fromObject(et.browserInfo)}return ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};if((ct.arrays||ct.defaults)&&(ut.commands=[],ut.config=[],ut.attributions=[]),ct.defaults){if(ut.event="",ut.anonymousId="",ut.machineIdV3="",ut.reportHash="",ut.dev=!1,ut.source="",ut.streamlitVersion="",ut.isHello=!1,ut.hostedAt="",ut.owner="",ut.repo="",ut.branch="",ut.mainModule="",ut.creatorId="",ut.contextPageUrl="",ut.contextPageTitle="",ut.contextPagePath="",ut.contextPageReferrer="",ut.contextPageSearch="",ut.contextLocale="",ut.contextUserAgent="",ut.label="",$util.Long){let dt=new $util.Long(0,0,!1);ut.execTime=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.execTime=ct.longs===String?"0":0;if($util.Long){let dt=new $util.Long(0,0,!1);ut.prepTime=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.prepTime=ct.longs===String?"0":0;if(ut.uncaughtException="",ut.os="",ut.timezone="",ut.headless=!1,ut.isFragmentRun=!1,ut.appId="",$util.Long){let dt=new $util.Long(0,0,!1);ut.numPages=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.numPages=ct.longs===String?"0":0;if(ut.sessionId="",ut.pythonVersion="",ut.pageScriptHash="",ut.activeTheme="",$util.Long){let dt=new $util.Long(0,0,!1);ut.totalLoadTime=ct.longs===String?dt.toString():ct.longs===Number?dt.toNumber():dt}else ut.totalLoadTime=ct.longs===String?"0":0;ut.browserInfo=null}if(et.event!=null&&et.hasOwnProperty("event")&&(ut.event=et.event),et.anonymousId!=null&&et.hasOwnProperty("anonymousId")&&(ut.anonymousId=et.anonymousId),et.machineIdV3!=null&&et.hasOwnProperty("machineIdV3")&&(ut.machineIdV3=et.machineIdV3),et.reportHash!=null&&et.hasOwnProperty("reportHash")&&(ut.reportHash=et.reportHash),et.dev!=null&&et.hasOwnProperty("dev")&&(ut.dev=et.dev),et.source!=null&&et.hasOwnProperty("source")&&(ut.source=et.source),et.streamlitVersion!=null&&et.hasOwnProperty("streamlitVersion")&&(ut.streamlitVersion=et.streamlitVersion),et.isHello!=null&&et.hasOwnProperty("isHello")&&(ut.isHello=et.isHello),et.hostedAt!=null&&et.hasOwnProperty("hostedAt")&&(ut.hostedAt=et.hostedAt),et.owner!=null&&et.hasOwnProperty("owner")&&(ut.owner=et.owner),et.repo!=null&&et.hasOwnProperty("repo")&&(ut.repo=et.repo),et.branch!=null&&et.hasOwnProperty("branch")&&(ut.branch=et.branch),et.mainModule!=null&&et.hasOwnProperty("mainModule")&&(ut.mainModule=et.mainModule),et.creatorId!=null&&et.hasOwnProperty("creatorId")&&(ut.creatorId=et.creatorId),et.contextPageUrl!=null&&et.hasOwnProperty("contextPageUrl")&&(ut.contextPageUrl=et.contextPageUrl),et.contextPageTitle!=null&&et.hasOwnProperty("contextPageTitle")&&(ut.contextPageTitle=et.contextPageTitle),et.contextPagePath!=null&&et.hasOwnProperty("contextPagePath")&&(ut.contextPagePath=et.contextPagePath),et.contextPageReferrer!=null&&et.hasOwnProperty("contextPageReferrer")&&(ut.contextPageReferrer=et.contextPageReferrer),et.contextPageSearch!=null&&et.hasOwnProperty("contextPageSearch")&&(ut.contextPageSearch=et.contextPageSearch),et.contextLocale!=null&&et.hasOwnProperty("contextLocale")&&(ut.contextLocale=et.contextLocale),et.contextUserAgent!=null&&et.hasOwnProperty("contextUserAgent")&&(ut.contextUserAgent=et.contextUserAgent),et.label!=null&&et.hasOwnProperty("label")&&(ut.label=et.label),et.commands&&et.commands.length){ut.commands=[];for(let dt=0;dt<et.commands.length;++dt)ut.commands[dt]=$root.Command.toObject(et.commands[dt],ct)}if(et.execTime!=null&&et.hasOwnProperty("execTime")&&(typeof et.execTime=="number"?ut.execTime=ct.longs===String?String(et.execTime):et.execTime:ut.execTime=ct.longs===String?$util.Long.prototype.toString.call(et.execTime):ct.longs===Number?new $util.LongBits(et.execTime.low>>>0,et.execTime.high>>>0).toNumber():et.execTime),et.prepTime!=null&&et.hasOwnProperty("prepTime")&&(typeof et.prepTime=="number"?ut.prepTime=ct.longs===String?String(et.prepTime):et.prepTime:ut.prepTime=ct.longs===String?$util.Long.prototype.toString.call(et.prepTime):ct.longs===Number?new $util.LongBits(et.prepTime.low>>>0,et.prepTime.high>>>0).toNumber():et.prepTime),et.config&&et.config.length){ut.config=[];for(let dt=0;dt<et.config.length;++dt)ut.config[dt]=et.config[dt]}if(et.uncaughtException!=null&&et.hasOwnProperty("uncaughtException")&&(ut.uncaughtException=et.uncaughtException),et.attributions&&et.attributions.length){ut.attributions=[];for(let dt=0;dt<et.attributions.length;++dt)ut.attributions[dt]=et.attributions[dt]}return et.os!=null&&et.hasOwnProperty("os")&&(ut.os=et.os),et.timezone!=null&&et.hasOwnProperty("timezone")&&(ut.timezone=et.timezone),et.headless!=null&&et.hasOwnProperty("headless")&&(ut.headless=et.headless),et.isFragmentRun!=null&&et.hasOwnProperty("isFragmentRun")&&(ut.isFragmentRun=et.isFragmentRun),et.appId!=null&&et.hasOwnProperty("appId")&&(ut.appId=et.appId),et.numPages!=null&&et.hasOwnProperty("numPages")&&(typeof et.numPages=="number"?ut.numPages=ct.longs===String?String(et.numPages):et.numPages:ut.numPages=ct.longs===String?$util.Long.prototype.toString.call(et.numPages):ct.longs===Number?new $util.LongBits(et.numPages.low>>>0,et.numPages.high>>>0).toNumber():et.numPages),et.sessionId!=null&&et.hasOwnProperty("sessionId")&&(ut.sessionId=et.sessionId),et.pythonVersion!=null&&et.hasOwnProperty("pythonVersion")&&(ut.pythonVersion=et.pythonVersion),et.pageScriptHash!=null&&et.hasOwnProperty("pageScriptHash")&&(ut.pageScriptHash=et.pageScriptHash),et.activeTheme!=null&&et.hasOwnProperty("activeTheme")&&(ut.activeTheme=et.activeTheme),et.totalLoadTime!=null&&et.hasOwnProperty("totalLoadTime")&&(typeof et.totalLoadTime=="number"?ut.totalLoadTime=ct.longs===String?String(et.totalLoadTime):et.totalLoadTime:ut.totalLoadTime=ct.longs===String?$util.Long.prototype.toString.call(et.totalLoadTime):ct.longs===Number?new $util.LongBits(et.totalLoadTime.low>>>0,et.totalLoadTime.high>>>0).toNumber():et.totalLoadTime),et.browserInfo!=null&&et.hasOwnProperty("browserInfo")&&(ut.browserInfo=$root.BrowserInfo.toObject(et.browserInfo,ct)),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/MetricsEvent"},ot})();$root.BrowserInfo=(()=>{function ot(et){if(et)for(let ct=Object.keys(et),ut=0;ut<ct.length;++ut)et[ct[ut]]!=null&&(this[ct[ut]]=et[ct[ut]])}return ot.prototype.browserName="",ot.prototype.browserVersion="",ot.prototype.deviceType="",ot.prototype.os="",ot.create=function(et){return new ot(et)},ot.encode=function(et,ct){return ct||(ct=$Writer.create()),et.browserName!=null&&Object.hasOwnProperty.call(et,"browserName")&&ct.uint32(10).string(et.browserName),et.browserVersion!=null&&Object.hasOwnProperty.call(et,"browserVersion")&&ct.uint32(18).string(et.browserVersion),et.deviceType!=null&&Object.hasOwnProperty.call(et,"deviceType")&&ct.uint32(26).string(et.deviceType),et.os!=null&&Object.hasOwnProperty.call(et,"os")&&ct.uint32(34).string(et.os),ct},ot.encodeDelimited=function(et,ct){return this.encode(et,ct).ldelim()},ot.decode=function(et,ct){et instanceof $Reader||(et=$Reader.create(et));let ut=ct===void 0?et.len:et.pos+ct,dt=new $root.BrowserInfo;for(;et.pos<ut;){let ft=et.uint32();switch(ft>>>3){case 1:{dt.browserName=et.string();break}case 2:{dt.browserVersion=et.string();break}case 3:{dt.deviceType=et.string();break}case 4:{dt.os=et.string();break}default:et.skipType(ft&7);break}}return dt},ot.decodeDelimited=function(et){return et instanceof $Reader||(et=new $Reader(et)),this.decode(et,et.uint32())},ot.verify=function(et){return typeof et!="object"||et===null?"object expected":et.browserName!=null&&et.hasOwnProperty("browserName")&&!$util.isString(et.browserName)?"browserName: string expected":et.browserVersion!=null&&et.hasOwnProperty("browserVersion")&&!$util.isString(et.browserVersion)?"browserVersion: string expected":et.deviceType!=null&&et.hasOwnProperty("deviceType")&&!$util.isString(et.deviceType)?"deviceType: string expected":et.os!=null&&et.hasOwnProperty("os")&&!$util.isString(et.os)?"os: string expected":null},ot.fromObject=function(et){if(et instanceof $root.BrowserInfo)return et;let ct=new $root.BrowserInfo;return et.browserName!=null&&(ct.browserName=String(et.browserName)),et.browserVersion!=null&&(ct.browserVersion=String(et.browserVersion)),et.deviceType!=null&&(ct.deviceType=String(et.deviceType)),et.os!=null&&(ct.os=String(et.os)),ct},ot.toObject=function(et,ct){ct||(ct={});let ut={};return ct.defaults&&(ut.browserName="",ut.browserVersion="",ut.deviceType="",ut.os=""),et.browserName!=null&&et.hasOwnProperty("browserName")&&(ut.browserName=et.browserName),et.browserVersion!=null&&et.hasOwnProperty("browserVersion")&&(ut.browserVersion=et.browserVersion),et.deviceType!=null&&et.hasOwnProperty("deviceType")&&(ut.deviceType=et.deviceType),et.os!=null&&et.hasOwnProperty("os")&&(ut.os=et.os),ut},ot.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ot.getTypeUrl=function(et){return et===void 0&&(et="type.googleapis.com"),et+"/BrowserInfo"},ot})(),$root.RootContainer=(()=>{const ot={},et=Object.create(ot);return et[ot[0]="MAIN"]=0,et[ot[1]="SIDEBAR"]=1,et[ot[2]="EVENT"]=2,et[ot[3]="BOTTOM"]=3,et})(),$root.openmetrics=(()=>{const ot={};return ot.MetricSet=function(){function et(ct){if(this.metricFamilies=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.metricFamilies=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.metricFamilies!=null&&ct.metricFamilies.length)for(let dt=0;dt<ct.metricFamilies.length;++dt)$root.openmetrics.MetricFamily.encode(ct.metricFamilies[dt],ut.uint32(10).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.MetricSet;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.metricFamilies&&ft.metricFamilies.length||(ft.metricFamilies=[]),ft.metricFamilies.push($root.openmetrics.MetricFamily.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.metricFamilies!=null&&ct.hasOwnProperty("metricFamilies")){if(!Array.isArray(ct.metricFamilies))return"metricFamilies: array expected";for(let ut=0;ut<ct.metricFamilies.length;++ut){let dt=$root.openmetrics.MetricFamily.verify(ct.metricFamilies[ut]);if(dt)return"metricFamilies."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.MetricSet)return ct;let ut=new $root.openmetrics.MetricSet;if(ct.metricFamilies){if(!Array.isArray(ct.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");ut.metricFamilies=[];for(let dt=0;dt<ct.metricFamilies.length;++dt){if(typeof ct.metricFamilies[dt]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");ut.metricFamilies[dt]=$root.openmetrics.MetricFamily.fromObject(ct.metricFamilies[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.metricFamilies=[]),ct.metricFamilies&&ct.metricFamilies.length){dt.metricFamilies=[];for(let ft=0;ft<ct.metricFamilies.length;++ft)dt.metricFamilies[ft]=$root.openmetrics.MetricFamily.toObject(ct.metricFamilies[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.MetricSet"},et}(),ot.MetricFamily=function(){function et(ct){if(this.metrics=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.name="",et.prototype.type=0,et.prototype.unit="",et.prototype.help="",et.prototype.metrics=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.name!=null&&Object.hasOwnProperty.call(ct,"name")&&ut.uint32(10).string(ct.name),ct.type!=null&&Object.hasOwnProperty.call(ct,"type")&&ut.uint32(16).int32(ct.type),ct.unit!=null&&Object.hasOwnProperty.call(ct,"unit")&&ut.uint32(26).string(ct.unit),ct.help!=null&&Object.hasOwnProperty.call(ct,"help")&&ut.uint32(34).string(ct.help),ct.metrics!=null&&ct.metrics.length)for(let dt=0;dt<ct.metrics.length;++dt)$root.openmetrics.Metric.encode(ct.metrics[dt],ut.uint32(42).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.MetricFamily;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.name=ct.string();break}case 2:{ft.type=ct.int32();break}case 3:{ft.unit=ct.string();break}case 4:{ft.help=ct.string();break}case 5:{ft.metrics&&ft.metrics.length||(ft.metrics=[]),ft.metrics.push($root.openmetrics.Metric.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.name!=null&&ct.hasOwnProperty("name")&&!$util.isString(ct.name))return"name: string expected";if(ct.type!=null&&ct.hasOwnProperty("type"))switch(ct.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:break}if(ct.unit!=null&&ct.hasOwnProperty("unit")&&!$util.isString(ct.unit))return"unit: string expected";if(ct.help!=null&&ct.hasOwnProperty("help")&&!$util.isString(ct.help))return"help: string expected";if(ct.metrics!=null&&ct.hasOwnProperty("metrics")){if(!Array.isArray(ct.metrics))return"metrics: array expected";for(let ut=0;ut<ct.metrics.length;++ut){let dt=$root.openmetrics.Metric.verify(ct.metrics[ut]);if(dt)return"metrics."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.MetricFamily)return ct;let ut=new $root.openmetrics.MetricFamily;switch(ct.name!=null&&(ut.name=String(ct.name)),ct.type){default:if(typeof ct.type=="number"){ut.type=ct.type;break}break;case"UNKNOWN":case 0:ut.type=0;break;case"GAUGE":case 1:ut.type=1;break;case"COUNTER":case 2:ut.type=2;break;case"STATE_SET":case 3:ut.type=3;break;case"INFO":case 4:ut.type=4;break;case"HISTOGRAM":case 5:ut.type=5;break;case"GAUGE_HISTOGRAM":case 6:ut.type=6;break;case"SUMMARY":case 7:ut.type=7;break}if(ct.unit!=null&&(ut.unit=String(ct.unit)),ct.help!=null&&(ut.help=String(ct.help)),ct.metrics){if(!Array.isArray(ct.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");ut.metrics=[];for(let dt=0;dt<ct.metrics.length;++dt){if(typeof ct.metrics[dt]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");ut.metrics[dt]=$root.openmetrics.Metric.fromObject(ct.metrics[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.metrics=[]),ut.defaults&&(dt.name="",dt.type=ut.enums===String?"UNKNOWN":0,dt.unit="",dt.help=""),ct.name!=null&&ct.hasOwnProperty("name")&&(dt.name=ct.name),ct.type!=null&&ct.hasOwnProperty("type")&&(dt.type=ut.enums===String?$root.openmetrics.MetricType[ct.type]===void 0?ct.type:$root.openmetrics.MetricType[ct.type]:ct.type),ct.unit!=null&&ct.hasOwnProperty("unit")&&(dt.unit=ct.unit),ct.help!=null&&ct.hasOwnProperty("help")&&(dt.help=ct.help),ct.metrics&&ct.metrics.length){dt.metrics=[];for(let ft=0;ft<ct.metrics.length;++ft)dt.metrics[ft]=$root.openmetrics.Metric.toObject(ct.metrics[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.MetricFamily"},et}(),ot.MetricType=function(){const et={},ct=Object.create(et);return ct[et[0]="UNKNOWN"]=0,ct[et[1]="GAUGE"]=1,ct[et[2]="COUNTER"]=2,ct[et[3]="STATE_SET"]=3,ct[et[4]="INFO"]=4,ct[et[5]="HISTOGRAM"]=5,ct[et[6]="GAUGE_HISTOGRAM"]=6,ct[et[7]="SUMMARY"]=7,ct}(),ot.Metric=function(){function et(ct){if(this.labels=[],this.metricPoints=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.labels=$util.emptyArray,et.prototype.metricPoints=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.labels!=null&&ct.labels.length)for(let dt=0;dt<ct.labels.length;++dt)$root.openmetrics.Label.encode(ct.labels[dt],ut.uint32(10).fork()).ldelim();if(ct.metricPoints!=null&&ct.metricPoints.length)for(let dt=0;dt<ct.metricPoints.length;++dt)$root.openmetrics.MetricPoint.encode(ct.metricPoints[dt],ut.uint32(18).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.Metric;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.labels&&ft.labels.length||(ft.labels=[]),ft.labels.push($root.openmetrics.Label.decode(ct,ct.uint32()));break}case 2:{ft.metricPoints&&ft.metricPoints.length||(ft.metricPoints=[]),ft.metricPoints.push($root.openmetrics.MetricPoint.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.labels!=null&&ct.hasOwnProperty("labels")){if(!Array.isArray(ct.labels))return"labels: array expected";for(let ut=0;ut<ct.labels.length;++ut){let dt=$root.openmetrics.Label.verify(ct.labels[ut]);if(dt)return"labels."+dt}}if(ct.metricPoints!=null&&ct.hasOwnProperty("metricPoints")){if(!Array.isArray(ct.metricPoints))return"metricPoints: array expected";for(let ut=0;ut<ct.metricPoints.length;++ut){let dt=$root.openmetrics.MetricPoint.verify(ct.metricPoints[ut]);if(dt)return"metricPoints."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.Metric)return ct;let ut=new $root.openmetrics.Metric;if(ct.labels){if(!Array.isArray(ct.labels))throw TypeError(".openmetrics.Metric.labels: array expected");ut.labels=[];for(let dt=0;dt<ct.labels.length;++dt){if(typeof ct.labels[dt]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");ut.labels[dt]=$root.openmetrics.Label.fromObject(ct.labels[dt])}}if(ct.metricPoints){if(!Array.isArray(ct.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");ut.metricPoints=[];for(let dt=0;dt<ct.metricPoints.length;++dt){if(typeof ct.metricPoints[dt]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");ut.metricPoints[dt]=$root.openmetrics.MetricPoint.fromObject(ct.metricPoints[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.labels=[],dt.metricPoints=[]),ct.labels&&ct.labels.length){dt.labels=[];for(let ft=0;ft<ct.labels.length;++ft)dt.labels[ft]=$root.openmetrics.Label.toObject(ct.labels[ft],ut)}if(ct.metricPoints&&ct.metricPoints.length){dt.metricPoints=[];for(let ft=0;ft<ct.metricPoints.length;++ft)dt.metricPoints[ft]=$root.openmetrics.MetricPoint.toObject(ct.metricPoints[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.Metric"},et}(),ot.Label=function(){function et(ct){if(ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.name="",et.prototype.value="",et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){return ut||(ut=$Writer.create()),ct.name!=null&&Object.hasOwnProperty.call(ct,"name")&&ut.uint32(10).string(ct.name),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(18).string(ct.value),ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.Label;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.name=ct.string();break}case 2:{ft.value=ct.string();break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){return typeof ct!="object"||ct===null?"object expected":ct.name!=null&&ct.hasOwnProperty("name")&&!$util.isString(ct.name)?"name: string expected":ct.value!=null&&ct.hasOwnProperty("value")&&!$util.isString(ct.value)?"value: string expected":null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.Label)return ct;let ut=new $root.openmetrics.Label;return ct.name!=null&&(ut.name=String(ct.name)),ct.value!=null&&(ut.value=String(ct.value)),ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};return ut.defaults&&(dt.name="",dt.value=""),ct.name!=null&&ct.hasOwnProperty("name")&&(dt.name=ct.name),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ct.value),dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.Label"},et}(),ot.MetricPoint=function(){function et(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.unknownValue=null,et.prototype.gaugeValue=null,et.prototype.counterValue=null,et.prototype.histogramValue=null,et.prototype.stateSetValue=null,et.prototype.infoValue=null,et.prototype.summaryValue=null,et.prototype.timestamp=null;let ct;return Object.defineProperty(et.prototype,"value",{get:$util.oneOfGetter(ct=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.unknownValue!=null&&Object.hasOwnProperty.call(ut,"unknownValue")&&$root.openmetrics.UnknownValue.encode(ut.unknownValue,dt.uint32(10).fork()).ldelim(),ut.gaugeValue!=null&&Object.hasOwnProperty.call(ut,"gaugeValue")&&$root.openmetrics.GaugeValue.encode(ut.gaugeValue,dt.uint32(18).fork()).ldelim(),ut.counterValue!=null&&Object.hasOwnProperty.call(ut,"counterValue")&&$root.openmetrics.CounterValue.encode(ut.counterValue,dt.uint32(26).fork()).ldelim(),ut.histogramValue!=null&&Object.hasOwnProperty.call(ut,"histogramValue")&&$root.openmetrics.HistogramValue.encode(ut.histogramValue,dt.uint32(34).fork()).ldelim(),ut.stateSetValue!=null&&Object.hasOwnProperty.call(ut,"stateSetValue")&&$root.openmetrics.StateSetValue.encode(ut.stateSetValue,dt.uint32(42).fork()).ldelim(),ut.infoValue!=null&&Object.hasOwnProperty.call(ut,"infoValue")&&$root.openmetrics.InfoValue.encode(ut.infoValue,dt.uint32(50).fork()).ldelim(),ut.summaryValue!=null&&Object.hasOwnProperty.call(ut,"summaryValue")&&$root.openmetrics.SummaryValue.encode(ut.summaryValue,dt.uint32(58).fork()).ldelim(),ut.timestamp!=null&&Object.hasOwnProperty.call(ut,"timestamp")&&$root.google.protobuf.Timestamp.encode(ut.timestamp,dt.uint32(66).fork()).ldelim(),dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.MetricPoint;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.unknownValue=$root.openmetrics.UnknownValue.decode(ut,ut.uint32());break}case 2:{zt.gaugeValue=$root.openmetrics.GaugeValue.decode(ut,ut.uint32());break}case 3:{zt.counterValue=$root.openmetrics.CounterValue.decode(ut,ut.uint32());break}case 4:{zt.histogramValue=$root.openmetrics.HistogramValue.decode(ut,ut.uint32());break}case 5:{zt.stateSetValue=$root.openmetrics.StateSetValue.decode(ut,ut.uint32());break}case 6:{zt.infoValue=$root.openmetrics.InfoValue.decode(ut,ut.uint32());break}case 7:{zt.summaryValue=$root.openmetrics.SummaryValue.decode(ut,ut.uint32());break}case 8:{zt.timestamp=$root.google.protobuf.Timestamp.decode(ut,ut.uint32());break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.unknownValue!=null&&ut.hasOwnProperty("unknownValue")){dt.value=1;{let ft=$root.openmetrics.UnknownValue.verify(ut.unknownValue);if(ft)return"unknownValue."+ft}}if(ut.gaugeValue!=null&&ut.hasOwnProperty("gaugeValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.GaugeValue.verify(ut.gaugeValue);if(ft)return"gaugeValue."+ft}}if(ut.counterValue!=null&&ut.hasOwnProperty("counterValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.CounterValue.verify(ut.counterValue);if(ft)return"counterValue."+ft}}if(ut.histogramValue!=null&&ut.hasOwnProperty("histogramValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.HistogramValue.verify(ut.histogramValue);if(ft)return"histogramValue."+ft}}if(ut.stateSetValue!=null&&ut.hasOwnProperty("stateSetValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.StateSetValue.verify(ut.stateSetValue);if(ft)return"stateSetValue."+ft}}if(ut.infoValue!=null&&ut.hasOwnProperty("infoValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.InfoValue.verify(ut.infoValue);if(ft)return"infoValue."+ft}}if(ut.summaryValue!=null&&ut.hasOwnProperty("summaryValue")){if(dt.value===1)return"value: multiple values";dt.value=1;{let ft=$root.openmetrics.SummaryValue.verify(ut.summaryValue);if(ft)return"summaryValue."+ft}}if(ut.timestamp!=null&&ut.hasOwnProperty("timestamp")){let ft=$root.google.protobuf.Timestamp.verify(ut.timestamp);if(ft)return"timestamp."+ft}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.MetricPoint)return ut;let dt=new $root.openmetrics.MetricPoint;if(ut.unknownValue!=null){if(typeof ut.unknownValue!="object")throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");dt.unknownValue=$root.openmetrics.UnknownValue.fromObject(ut.unknownValue)}if(ut.gaugeValue!=null){if(typeof ut.gaugeValue!="object")throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");dt.gaugeValue=$root.openmetrics.GaugeValue.fromObject(ut.gaugeValue)}if(ut.counterValue!=null){if(typeof ut.counterValue!="object")throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");dt.counterValue=$root.openmetrics.CounterValue.fromObject(ut.counterValue)}if(ut.histogramValue!=null){if(typeof ut.histogramValue!="object")throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");dt.histogramValue=$root.openmetrics.HistogramValue.fromObject(ut.histogramValue)}if(ut.stateSetValue!=null){if(typeof ut.stateSetValue!="object")throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");dt.stateSetValue=$root.openmetrics.StateSetValue.fromObject(ut.stateSetValue)}if(ut.infoValue!=null){if(typeof ut.infoValue!="object")throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");dt.infoValue=$root.openmetrics.InfoValue.fromObject(ut.infoValue)}if(ut.summaryValue!=null){if(typeof ut.summaryValue!="object")throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");dt.summaryValue=$root.openmetrics.SummaryValue.fromObject(ut.summaryValue)}if(ut.timestamp!=null){if(typeof ut.timestamp!="object")throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");dt.timestamp=$root.google.protobuf.Timestamp.fromObject(ut.timestamp)}return dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.timestamp=null),ut.unknownValue!=null&&ut.hasOwnProperty("unknownValue")&&(ft.unknownValue=$root.openmetrics.UnknownValue.toObject(ut.unknownValue,dt),dt.oneofs&&(ft.value="unknownValue")),ut.gaugeValue!=null&&ut.hasOwnProperty("gaugeValue")&&(ft.gaugeValue=$root.openmetrics.GaugeValue.toObject(ut.gaugeValue,dt),dt.oneofs&&(ft.value="gaugeValue")),ut.counterValue!=null&&ut.hasOwnProperty("counterValue")&&(ft.counterValue=$root.openmetrics.CounterValue.toObject(ut.counterValue,dt),dt.oneofs&&(ft.value="counterValue")),ut.histogramValue!=null&&ut.hasOwnProperty("histogramValue")&&(ft.histogramValue=$root.openmetrics.HistogramValue.toObject(ut.histogramValue,dt),dt.oneofs&&(ft.value="histogramValue")),ut.stateSetValue!=null&&ut.hasOwnProperty("stateSetValue")&&(ft.stateSetValue=$root.openmetrics.StateSetValue.toObject(ut.stateSetValue,dt),dt.oneofs&&(ft.value="stateSetValue")),ut.infoValue!=null&&ut.hasOwnProperty("infoValue")&&(ft.infoValue=$root.openmetrics.InfoValue.toObject(ut.infoValue,dt),dt.oneofs&&(ft.value="infoValue")),ut.summaryValue!=null&&ut.hasOwnProperty("summaryValue")&&(ft.summaryValue=$root.openmetrics.SummaryValue.toObject(ut.summaryValue,dt),dt.oneofs&&(ft.value="summaryValue")),ut.timestamp!=null&&ut.hasOwnProperty("timestamp")&&(ft.timestamp=$root.google.protobuf.Timestamp.toObject(ut.timestamp,dt)),ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.MetricPoint"},et}(),ot.UnknownValue=function(){function et(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.doubleValue=null,et.prototype.intValue=null;let ct;return Object.defineProperty(et.prototype,"value",{get:$util.oneOfGetter(ct=["doubleValue","intValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.doubleValue!=null&&Object.hasOwnProperty.call(ut,"doubleValue")&&dt.uint32(9).double(ut.doubleValue),ut.intValue!=null&&Object.hasOwnProperty.call(ut,"intValue")&&dt.uint32(16).int64(ut.intValue),dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.UnknownValue;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.doubleValue=ut.double();break}case 2:{zt.intValue=ut.int64();break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(dt.value=1,typeof ut.doubleValue!="number"))return"doubleValue: number expected";if(ut.intValue!=null&&ut.hasOwnProperty("intValue")){if(dt.value===1)return"value: multiple values";if(dt.value=1,!$util.isInteger(ut.intValue)&&!(ut.intValue&&$util.isInteger(ut.intValue.low)&&$util.isInteger(ut.intValue.high)))return"intValue: integer|Long expected"}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.UnknownValue)return ut;let dt=new $root.openmetrics.UnknownValue;return ut.doubleValue!=null&&(dt.doubleValue=Number(ut.doubleValue)),ut.intValue!=null&&($util.Long?(dt.intValue=$util.Long.fromValue(ut.intValue)).unsigned=!1:typeof ut.intValue=="string"?dt.intValue=parseInt(ut.intValue,10):typeof ut.intValue=="number"?dt.intValue=ut.intValue:typeof ut.intValue=="object"&&(dt.intValue=new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber())),dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};return ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(ft.doubleValue=dt.json&&!isFinite(ut.doubleValue)?String(ut.doubleValue):ut.doubleValue,dt.oneofs&&(ft.value="doubleValue")),ut.intValue!=null&&ut.hasOwnProperty("intValue")&&(typeof ut.intValue=="number"?ft.intValue=dt.longs===String?String(ut.intValue):ut.intValue:ft.intValue=dt.longs===String?$util.Long.prototype.toString.call(ut.intValue):dt.longs===Number?new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber():ut.intValue,dt.oneofs&&(ft.value="intValue")),ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.UnknownValue"},et}(),ot.GaugeValue=function(){function et(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.doubleValue=null,et.prototype.intValue=null;let ct;return Object.defineProperty(et.prototype,"value",{get:$util.oneOfGetter(ct=["doubleValue","intValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.doubleValue!=null&&Object.hasOwnProperty.call(ut,"doubleValue")&&dt.uint32(9).double(ut.doubleValue),ut.intValue!=null&&Object.hasOwnProperty.call(ut,"intValue")&&dt.uint32(16).int64(ut.intValue),dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.GaugeValue;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.doubleValue=ut.double();break}case 2:{zt.intValue=ut.int64();break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(dt.value=1,typeof ut.doubleValue!="number"))return"doubleValue: number expected";if(ut.intValue!=null&&ut.hasOwnProperty("intValue")){if(dt.value===1)return"value: multiple values";if(dt.value=1,!$util.isInteger(ut.intValue)&&!(ut.intValue&&$util.isInteger(ut.intValue.low)&&$util.isInteger(ut.intValue.high)))return"intValue: integer|Long expected"}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.GaugeValue)return ut;let dt=new $root.openmetrics.GaugeValue;return ut.doubleValue!=null&&(dt.doubleValue=Number(ut.doubleValue)),ut.intValue!=null&&($util.Long?(dt.intValue=$util.Long.fromValue(ut.intValue)).unsigned=!1:typeof ut.intValue=="string"?dt.intValue=parseInt(ut.intValue,10):typeof ut.intValue=="number"?dt.intValue=ut.intValue:typeof ut.intValue=="object"&&(dt.intValue=new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber())),dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};return ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(ft.doubleValue=dt.json&&!isFinite(ut.doubleValue)?String(ut.doubleValue):ut.doubleValue,dt.oneofs&&(ft.value="doubleValue")),ut.intValue!=null&&ut.hasOwnProperty("intValue")&&(typeof ut.intValue=="number"?ft.intValue=dt.longs===String?String(ut.intValue):ut.intValue:ft.intValue=dt.longs===String?$util.Long.prototype.toString.call(ut.intValue):dt.longs===Number?new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber():ut.intValue,dt.oneofs&&(ft.value="intValue")),ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.GaugeValue"},et}(),ot.CounterValue=function(){function et(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.doubleValue=null,et.prototype.intValue=null,et.prototype.created=null,et.prototype.exemplar=null;let ct;return Object.defineProperty(et.prototype,"total",{get:$util.oneOfGetter(ct=["doubleValue","intValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.doubleValue!=null&&Object.hasOwnProperty.call(ut,"doubleValue")&&dt.uint32(9).double(ut.doubleValue),ut.intValue!=null&&Object.hasOwnProperty.call(ut,"intValue")&&dt.uint32(16).uint64(ut.intValue),ut.created!=null&&Object.hasOwnProperty.call(ut,"created")&&$root.google.protobuf.Timestamp.encode(ut.created,dt.uint32(26).fork()).ldelim(),ut.exemplar!=null&&Object.hasOwnProperty.call(ut,"exemplar")&&$root.openmetrics.Exemplar.encode(ut.exemplar,dt.uint32(34).fork()).ldelim(),dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.CounterValue;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.doubleValue=ut.double();break}case 2:{zt.intValue=ut.uint64();break}case 3:{zt.created=$root.google.protobuf.Timestamp.decode(ut,ut.uint32());break}case 4:{zt.exemplar=$root.openmetrics.Exemplar.decode(ut,ut.uint32());break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(dt.total=1,typeof ut.doubleValue!="number"))return"doubleValue: number expected";if(ut.intValue!=null&&ut.hasOwnProperty("intValue")){if(dt.total===1)return"total: multiple values";if(dt.total=1,!$util.isInteger(ut.intValue)&&!(ut.intValue&&$util.isInteger(ut.intValue.low)&&$util.isInteger(ut.intValue.high)))return"intValue: integer|Long expected"}if(ut.created!=null&&ut.hasOwnProperty("created")){let ft=$root.google.protobuf.Timestamp.verify(ut.created);if(ft)return"created."+ft}if(ut.exemplar!=null&&ut.hasOwnProperty("exemplar")){let ft=$root.openmetrics.Exemplar.verify(ut.exemplar);if(ft)return"exemplar."+ft}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.CounterValue)return ut;let dt=new $root.openmetrics.CounterValue;if(ut.doubleValue!=null&&(dt.doubleValue=Number(ut.doubleValue)),ut.intValue!=null&&($util.Long?(dt.intValue=$util.Long.fromValue(ut.intValue)).unsigned=!0:typeof ut.intValue=="string"?dt.intValue=parseInt(ut.intValue,10):typeof ut.intValue=="number"?dt.intValue=ut.intValue:typeof ut.intValue=="object"&&(dt.intValue=new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber(!0))),ut.created!=null){if(typeof ut.created!="object")throw TypeError(".openmetrics.CounterValue.created: object expected");dt.created=$root.google.protobuf.Timestamp.fromObject(ut.created)}if(ut.exemplar!=null){if(typeof ut.exemplar!="object")throw TypeError(".openmetrics.CounterValue.exemplar: object expected");dt.exemplar=$root.openmetrics.Exemplar.fromObject(ut.exemplar)}return dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.created=null,ft.exemplar=null),ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(ft.doubleValue=dt.json&&!isFinite(ut.doubleValue)?String(ut.doubleValue):ut.doubleValue,dt.oneofs&&(ft.total="doubleValue")),ut.intValue!=null&&ut.hasOwnProperty("intValue")&&(typeof ut.intValue=="number"?ft.intValue=dt.longs===String?String(ut.intValue):ut.intValue:ft.intValue=dt.longs===String?$util.Long.prototype.toString.call(ut.intValue):dt.longs===Number?new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber(!0):ut.intValue,dt.oneofs&&(ft.total="intValue")),ut.created!=null&&ut.hasOwnProperty("created")&&(ft.created=$root.google.protobuf.Timestamp.toObject(ut.created,dt)),ut.exemplar!=null&&ut.hasOwnProperty("exemplar")&&(ft.exemplar=$root.openmetrics.Exemplar.toObject(ut.exemplar,dt)),ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.CounterValue"},et}(),ot.HistogramValue=function(){function et(ut){if(this.buckets=[],ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.doubleValue=null,et.prototype.intValue=null,et.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,et.prototype.created=null,et.prototype.buckets=$util.emptyArray;let ct;return Object.defineProperty(et.prototype,"sum",{get:$util.oneOfGetter(ct=["doubleValue","intValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){if(dt||(dt=$Writer.create()),ut.doubleValue!=null&&Object.hasOwnProperty.call(ut,"doubleValue")&&dt.uint32(9).double(ut.doubleValue),ut.intValue!=null&&Object.hasOwnProperty.call(ut,"intValue")&&dt.uint32(16).int64(ut.intValue),ut.count!=null&&Object.hasOwnProperty.call(ut,"count")&&dt.uint32(24).uint64(ut.count),ut.created!=null&&Object.hasOwnProperty.call(ut,"created")&&$root.google.protobuf.Timestamp.encode(ut.created,dt.uint32(34).fork()).ldelim(),ut.buckets!=null&&ut.buckets.length)for(let ft=0;ft<ut.buckets.length;++ft)$root.openmetrics.HistogramValue.Bucket.encode(ut.buckets[ft],dt.uint32(42).fork()).ldelim();return dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.HistogramValue;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.doubleValue=ut.double();break}case 2:{zt.intValue=ut.int64();break}case 3:{zt.count=ut.uint64();break}case 4:{zt.created=$root.google.protobuf.Timestamp.decode(ut,ut.uint32());break}case 5:{zt.buckets&&zt.buckets.length||(zt.buckets=[]),zt.buckets.push($root.openmetrics.HistogramValue.Bucket.decode(ut,ut.uint32()));break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(dt.sum=1,typeof ut.doubleValue!="number"))return"doubleValue: number expected";if(ut.intValue!=null&&ut.hasOwnProperty("intValue")){if(dt.sum===1)return"sum: multiple values";if(dt.sum=1,!$util.isInteger(ut.intValue)&&!(ut.intValue&&$util.isInteger(ut.intValue.low)&&$util.isInteger(ut.intValue.high)))return"intValue: integer|Long expected"}if(ut.count!=null&&ut.hasOwnProperty("count")&&!$util.isInteger(ut.count)&&!(ut.count&&$util.isInteger(ut.count.low)&&$util.isInteger(ut.count.high)))return"count: integer|Long expected";if(ut.created!=null&&ut.hasOwnProperty("created")){let ft=$root.google.protobuf.Timestamp.verify(ut.created);if(ft)return"created."+ft}if(ut.buckets!=null&&ut.hasOwnProperty("buckets")){if(!Array.isArray(ut.buckets))return"buckets: array expected";for(let ft=0;ft<ut.buckets.length;++ft){let zt=$root.openmetrics.HistogramValue.Bucket.verify(ut.buckets[ft]);if(zt)return"buckets."+zt}}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.HistogramValue)return ut;let dt=new $root.openmetrics.HistogramValue;if(ut.doubleValue!=null&&(dt.doubleValue=Number(ut.doubleValue)),ut.intValue!=null&&($util.Long?(dt.intValue=$util.Long.fromValue(ut.intValue)).unsigned=!1:typeof ut.intValue=="string"?dt.intValue=parseInt(ut.intValue,10):typeof ut.intValue=="number"?dt.intValue=ut.intValue:typeof ut.intValue=="object"&&(dt.intValue=new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber())),ut.count!=null&&($util.Long?(dt.count=$util.Long.fromValue(ut.count)).unsigned=!0:typeof ut.count=="string"?dt.count=parseInt(ut.count,10):typeof ut.count=="number"?dt.count=ut.count:typeof ut.count=="object"&&(dt.count=new $util.LongBits(ut.count.low>>>0,ut.count.high>>>0).toNumber(!0))),ut.created!=null){if(typeof ut.created!="object")throw TypeError(".openmetrics.HistogramValue.created: object expected");dt.created=$root.google.protobuf.Timestamp.fromObject(ut.created)}if(ut.buckets){if(!Array.isArray(ut.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");dt.buckets=[];for(let ft=0;ft<ut.buckets.length;++ft){if(typeof ut.buckets[ft]!="object")throw TypeError(".openmetrics.HistogramValue.buckets: object expected");dt.buckets[ft]=$root.openmetrics.HistogramValue.Bucket.fromObject(ut.buckets[ft])}}return dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};if((dt.arrays||dt.defaults)&&(ft.buckets=[]),dt.defaults){if($util.Long){let zt=new $util.Long(0,0,!0);ft.count=dt.longs===String?zt.toString():dt.longs===Number?zt.toNumber():zt}else ft.count=dt.longs===String?"0":0;ft.created=null}if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(ft.doubleValue=dt.json&&!isFinite(ut.doubleValue)?String(ut.doubleValue):ut.doubleValue,dt.oneofs&&(ft.sum="doubleValue")),ut.intValue!=null&&ut.hasOwnProperty("intValue")&&(typeof ut.intValue=="number"?ft.intValue=dt.longs===String?String(ut.intValue):ut.intValue:ft.intValue=dt.longs===String?$util.Long.prototype.toString.call(ut.intValue):dt.longs===Number?new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber():ut.intValue,dt.oneofs&&(ft.sum="intValue")),ut.count!=null&&ut.hasOwnProperty("count")&&(typeof ut.count=="number"?ft.count=dt.longs===String?String(ut.count):ut.count:ft.count=dt.longs===String?$util.Long.prototype.toString.call(ut.count):dt.longs===Number?new $util.LongBits(ut.count.low>>>0,ut.count.high>>>0).toNumber(!0):ut.count),ut.created!=null&&ut.hasOwnProperty("created")&&(ft.created=$root.google.protobuf.Timestamp.toObject(ut.created,dt)),ut.buckets&&ut.buckets.length){ft.buckets=[];for(let zt=0;zt<ut.buckets.length;++zt)ft.buckets[zt]=$root.openmetrics.HistogramValue.Bucket.toObject(ut.buckets[zt],dt)}return ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.HistogramValue"},et.Bucket=function(){function ut(dt){if(dt)for(let ft=Object.keys(dt),zt=0;zt<ft.length;++zt)dt[ft[zt]]!=null&&(this[ft[zt]]=dt[ft[zt]])}return ut.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,ut.prototype.upperBound=0,ut.prototype.exemplar=null,ut.create=function(dt){return new ut(dt)},ut.encode=function(dt,ft){return ft||(ft=$Writer.create()),dt.count!=null&&Object.hasOwnProperty.call(dt,"count")&&ft.uint32(8).uint64(dt.count),dt.upperBound!=null&&Object.hasOwnProperty.call(dt,"upperBound")&&ft.uint32(17).double(dt.upperBound),dt.exemplar!=null&&Object.hasOwnProperty.call(dt,"exemplar")&&$root.openmetrics.Exemplar.encode(dt.exemplar,ft.uint32(26).fork()).ldelim(),ft},ut.encodeDelimited=function(dt,ft){return this.encode(dt,ft).ldelim()},ut.decode=function(dt,ft){dt instanceof $Reader||(dt=$Reader.create(dt));let zt=ft===void 0?dt.len:dt.pos+ft,Dt=new $root.openmetrics.HistogramValue.Bucket;for(;dt.pos<zt;){let St=dt.uint32();switch(St>>>3){case 1:{Dt.count=dt.uint64();break}case 2:{Dt.upperBound=dt.double();break}case 3:{Dt.exemplar=$root.openmetrics.Exemplar.decode(dt,dt.uint32());break}default:dt.skipType(St&7);break}}return Dt},ut.decodeDelimited=function(dt){return dt instanceof $Reader||(dt=new $Reader(dt)),this.decode(dt,dt.uint32())},ut.verify=function(dt){if(typeof dt!="object"||dt===null)return"object expected";if(dt.count!=null&&dt.hasOwnProperty("count")&&!$util.isInteger(dt.count)&&!(dt.count&&$util.isInteger(dt.count.low)&&$util.isInteger(dt.count.high)))return"count: integer|Long expected";if(dt.upperBound!=null&&dt.hasOwnProperty("upperBound")&&typeof dt.upperBound!="number")return"upperBound: number expected";if(dt.exemplar!=null&&dt.hasOwnProperty("exemplar")){let ft=$root.openmetrics.Exemplar.verify(dt.exemplar);if(ft)return"exemplar."+ft}return null},ut.fromObject=function(dt){if(dt instanceof $root.openmetrics.HistogramValue.Bucket)return dt;let ft=new $root.openmetrics.HistogramValue.Bucket;if(dt.count!=null&&($util.Long?(ft.count=$util.Long.fromValue(dt.count)).unsigned=!0:typeof dt.count=="string"?ft.count=parseInt(dt.count,10):typeof dt.count=="number"?ft.count=dt.count:typeof dt.count=="object"&&(ft.count=new $util.LongBits(dt.count.low>>>0,dt.count.high>>>0).toNumber(!0))),dt.upperBound!=null&&(ft.upperBound=Number(dt.upperBound)),dt.exemplar!=null){if(typeof dt.exemplar!="object")throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");ft.exemplar=$root.openmetrics.Exemplar.fromObject(dt.exemplar)}return ft},ut.toObject=function(dt,ft){ft||(ft={});let zt={};if(ft.defaults){if($util.Long){let Dt=new $util.Long(0,0,!0);zt.count=ft.longs===String?Dt.toString():ft.longs===Number?Dt.toNumber():Dt}else zt.count=ft.longs===String?"0":0;zt.upperBound=0,zt.exemplar=null}return dt.count!=null&&dt.hasOwnProperty("count")&&(typeof dt.count=="number"?zt.count=ft.longs===String?String(dt.count):dt.count:zt.count=ft.longs===String?$util.Long.prototype.toString.call(dt.count):ft.longs===Number?new $util.LongBits(dt.count.low>>>0,dt.count.high>>>0).toNumber(!0):dt.count),dt.upperBound!=null&&dt.hasOwnProperty("upperBound")&&(zt.upperBound=ft.json&&!isFinite(dt.upperBound)?String(dt.upperBound):dt.upperBound),dt.exemplar!=null&&dt.hasOwnProperty("exemplar")&&(zt.exemplar=$root.openmetrics.Exemplar.toObject(dt.exemplar,ft)),zt},ut.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ut.getTypeUrl=function(dt){return dt===void 0&&(dt="type.googleapis.com"),dt+"/openmetrics.HistogramValue.Bucket"},ut}(),et}(),ot.Exemplar=function(){function et(ct){if(this.label=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.value=0,et.prototype.timestamp=null,et.prototype.label=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.value!=null&&Object.hasOwnProperty.call(ct,"value")&&ut.uint32(9).double(ct.value),ct.timestamp!=null&&Object.hasOwnProperty.call(ct,"timestamp")&&$root.google.protobuf.Timestamp.encode(ct.timestamp,ut.uint32(18).fork()).ldelim(),ct.label!=null&&ct.label.length)for(let dt=0;dt<ct.label.length;++dt)$root.openmetrics.Label.encode(ct.label[dt],ut.uint32(26).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.Exemplar;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.value=ct.double();break}case 2:{ft.timestamp=$root.google.protobuf.Timestamp.decode(ct,ct.uint32());break}case 3:{ft.label&&ft.label.length||(ft.label=[]),ft.label.push($root.openmetrics.Label.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.value!=null&&ct.hasOwnProperty("value")&&typeof ct.value!="number")return"value: number expected";if(ct.timestamp!=null&&ct.hasOwnProperty("timestamp")){let ut=$root.google.protobuf.Timestamp.verify(ct.timestamp);if(ut)return"timestamp."+ut}if(ct.label!=null&&ct.hasOwnProperty("label")){if(!Array.isArray(ct.label))return"label: array expected";for(let ut=0;ut<ct.label.length;++ut){let dt=$root.openmetrics.Label.verify(ct.label[ut]);if(dt)return"label."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.Exemplar)return ct;let ut=new $root.openmetrics.Exemplar;if(ct.value!=null&&(ut.value=Number(ct.value)),ct.timestamp!=null){if(typeof ct.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");ut.timestamp=$root.google.protobuf.Timestamp.fromObject(ct.timestamp)}if(ct.label){if(!Array.isArray(ct.label))throw TypeError(".openmetrics.Exemplar.label: array expected");ut.label=[];for(let dt=0;dt<ct.label.length;++dt){if(typeof ct.label[dt]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");ut.label[dt]=$root.openmetrics.Label.fromObject(ct.label[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.label=[]),ut.defaults&&(dt.value=0,dt.timestamp=null),ct.value!=null&&ct.hasOwnProperty("value")&&(dt.value=ut.json&&!isFinite(ct.value)?String(ct.value):ct.value),ct.timestamp!=null&&ct.hasOwnProperty("timestamp")&&(dt.timestamp=$root.google.protobuf.Timestamp.toObject(ct.timestamp,ut)),ct.label&&ct.label.length){dt.label=[];for(let ft=0;ft<ct.label.length;++ft)dt.label[ft]=$root.openmetrics.Label.toObject(ct.label[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.Exemplar"},et}(),ot.StateSetValue=function(){function et(ct){if(this.states=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.states=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.states!=null&&ct.states.length)for(let dt=0;dt<ct.states.length;++dt)$root.openmetrics.StateSetValue.State.encode(ct.states[dt],ut.uint32(10).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.StateSetValue;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.states&&ft.states.length||(ft.states=[]),ft.states.push($root.openmetrics.StateSetValue.State.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.states!=null&&ct.hasOwnProperty("states")){if(!Array.isArray(ct.states))return"states: array expected";for(let ut=0;ut<ct.states.length;++ut){let dt=$root.openmetrics.StateSetValue.State.verify(ct.states[ut]);if(dt)return"states."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.StateSetValue)return ct;let ut=new $root.openmetrics.StateSetValue;if(ct.states){if(!Array.isArray(ct.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");ut.states=[];for(let dt=0;dt<ct.states.length;++dt){if(typeof ct.states[dt]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");ut.states[dt]=$root.openmetrics.StateSetValue.State.fromObject(ct.states[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.states=[]),ct.states&&ct.states.length){dt.states=[];for(let ft=0;ft<ct.states.length;++ft)dt.states[ft]=$root.openmetrics.StateSetValue.State.toObject(ct.states[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.StateSetValue"},et.State=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.enabled=!1,ct.prototype.name="",ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.enabled!=null&&Object.hasOwnProperty.call(ut,"enabled")&&dt.uint32(8).bool(ut.enabled),ut.name!=null&&Object.hasOwnProperty.call(ut,"name")&&dt.uint32(18).string(ut.name),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.StateSetValue.State;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.enabled=ut.bool();break}case 2:{zt.name=ut.string();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.enabled!=null&&ut.hasOwnProperty("enabled")&&typeof ut.enabled!="boolean"?"enabled: boolean expected":ut.name!=null&&ut.hasOwnProperty("name")&&!$util.isString(ut.name)?"name: string expected":null},ct.fromObject=function(ut){if(ut instanceof $root.openmetrics.StateSetValue.State)return ut;let dt=new $root.openmetrics.StateSetValue.State;return ut.enabled!=null&&(dt.enabled=!!ut.enabled),ut.name!=null&&(dt.name=String(ut.name)),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};return dt.defaults&&(ft.enabled=!1,ft.name=""),ut.enabled!=null&&ut.hasOwnProperty("enabled")&&(ft.enabled=ut.enabled),ut.name!=null&&ut.hasOwnProperty("name")&&(ft.name=ut.name),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.StateSetValue.State"},ct}(),et}(),ot.InfoValue=function(){function et(ct){if(this.info=[],ct)for(let ut=Object.keys(ct),dt=0;dt<ut.length;++dt)ct[ut[dt]]!=null&&(this[ut[dt]]=ct[ut[dt]])}return et.prototype.info=$util.emptyArray,et.create=function(ct){return new et(ct)},et.encode=function(ct,ut){if(ut||(ut=$Writer.create()),ct.info!=null&&ct.info.length)for(let dt=0;dt<ct.info.length;++dt)$root.openmetrics.Label.encode(ct.info[dt],ut.uint32(10).fork()).ldelim();return ut},et.encodeDelimited=function(ct,ut){return this.encode(ct,ut).ldelim()},et.decode=function(ct,ut){ct instanceof $Reader||(ct=$Reader.create(ct));let dt=ut===void 0?ct.len:ct.pos+ut,ft=new $root.openmetrics.InfoValue;for(;ct.pos<dt;){let zt=ct.uint32();switch(zt>>>3){case 1:{ft.info&&ft.info.length||(ft.info=[]),ft.info.push($root.openmetrics.Label.decode(ct,ct.uint32()));break}default:ct.skipType(zt&7);break}}return ft},et.decodeDelimited=function(ct){return ct instanceof $Reader||(ct=new $Reader(ct)),this.decode(ct,ct.uint32())},et.verify=function(ct){if(typeof ct!="object"||ct===null)return"object expected";if(ct.info!=null&&ct.hasOwnProperty("info")){if(!Array.isArray(ct.info))return"info: array expected";for(let ut=0;ut<ct.info.length;++ut){let dt=$root.openmetrics.Label.verify(ct.info[ut]);if(dt)return"info."+dt}}return null},et.fromObject=function(ct){if(ct instanceof $root.openmetrics.InfoValue)return ct;let ut=new $root.openmetrics.InfoValue;if(ct.info){if(!Array.isArray(ct.info))throw TypeError(".openmetrics.InfoValue.info: array expected");ut.info=[];for(let dt=0;dt<ct.info.length;++dt){if(typeof ct.info[dt]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");ut.info[dt]=$root.openmetrics.Label.fromObject(ct.info[dt])}}return ut},et.toObject=function(ct,ut){ut||(ut={});let dt={};if((ut.arrays||ut.defaults)&&(dt.info=[]),ct.info&&ct.info.length){dt.info=[];for(let ft=0;ft<ct.info.length;++ft)dt.info[ft]=$root.openmetrics.Label.toObject(ct.info[ft],ut)}return dt},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ct){return ct===void 0&&(ct="type.googleapis.com"),ct+"/openmetrics.InfoValue"},et}(),ot.SummaryValue=function(){function et(ut){if(this.quantile=[],ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}et.prototype.doubleValue=null,et.prototype.intValue=null,et.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,et.prototype.created=null,et.prototype.quantile=$util.emptyArray;let ct;return Object.defineProperty(et.prototype,"sum",{get:$util.oneOfGetter(ct=["doubleValue","intValue"]),set:$util.oneOfSetter(ct)}),et.create=function(ut){return new et(ut)},et.encode=function(ut,dt){if(dt||(dt=$Writer.create()),ut.doubleValue!=null&&Object.hasOwnProperty.call(ut,"doubleValue")&&dt.uint32(9).double(ut.doubleValue),ut.intValue!=null&&Object.hasOwnProperty.call(ut,"intValue")&&dt.uint32(16).int64(ut.intValue),ut.count!=null&&Object.hasOwnProperty.call(ut,"count")&&dt.uint32(24).uint64(ut.count),ut.created!=null&&Object.hasOwnProperty.call(ut,"created")&&$root.google.protobuf.Timestamp.encode(ut.created,dt.uint32(34).fork()).ldelim(),ut.quantile!=null&&ut.quantile.length)for(let ft=0;ft<ut.quantile.length;++ft)$root.openmetrics.SummaryValue.Quantile.encode(ut.quantile[ft],dt.uint32(42).fork()).ldelim();return dt},et.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},et.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.openmetrics.SummaryValue;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.doubleValue=ut.double();break}case 2:{zt.intValue=ut.int64();break}case 3:{zt.count=ut.uint64();break}case 4:{zt.created=$root.google.protobuf.Timestamp.decode(ut,ut.uint32());break}case 5:{zt.quantile&&zt.quantile.length||(zt.quantile=[]),zt.quantile.push($root.openmetrics.SummaryValue.Quantile.decode(ut,ut.uint32()));break}default:ut.skipType(Dt&7);break}}return zt},et.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},et.verify=function(ut){if(typeof ut!="object"||ut===null)return"object expected";let dt={};if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(dt.sum=1,typeof ut.doubleValue!="number"))return"doubleValue: number expected";if(ut.intValue!=null&&ut.hasOwnProperty("intValue")){if(dt.sum===1)return"sum: multiple values";if(dt.sum=1,!$util.isInteger(ut.intValue)&&!(ut.intValue&&$util.isInteger(ut.intValue.low)&&$util.isInteger(ut.intValue.high)))return"intValue: integer|Long expected"}if(ut.count!=null&&ut.hasOwnProperty("count")&&!$util.isInteger(ut.count)&&!(ut.count&&$util.isInteger(ut.count.low)&&$util.isInteger(ut.count.high)))return"count: integer|Long expected";if(ut.created!=null&&ut.hasOwnProperty("created")){let ft=$root.google.protobuf.Timestamp.verify(ut.created);if(ft)return"created."+ft}if(ut.quantile!=null&&ut.hasOwnProperty("quantile")){if(!Array.isArray(ut.quantile))return"quantile: array expected";for(let ft=0;ft<ut.quantile.length;++ft){let zt=$root.openmetrics.SummaryValue.Quantile.verify(ut.quantile[ft]);if(zt)return"quantile."+zt}}return null},et.fromObject=function(ut){if(ut instanceof $root.openmetrics.SummaryValue)return ut;let dt=new $root.openmetrics.SummaryValue;if(ut.doubleValue!=null&&(dt.doubleValue=Number(ut.doubleValue)),ut.intValue!=null&&($util.Long?(dt.intValue=$util.Long.fromValue(ut.intValue)).unsigned=!1:typeof ut.intValue=="string"?dt.intValue=parseInt(ut.intValue,10):typeof ut.intValue=="number"?dt.intValue=ut.intValue:typeof ut.intValue=="object"&&(dt.intValue=new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber())),ut.count!=null&&($util.Long?(dt.count=$util.Long.fromValue(ut.count)).unsigned=!0:typeof ut.count=="string"?dt.count=parseInt(ut.count,10):typeof ut.count=="number"?dt.count=ut.count:typeof ut.count=="object"&&(dt.count=new $util.LongBits(ut.count.low>>>0,ut.count.high>>>0).toNumber(!0))),ut.created!=null){if(typeof ut.created!="object")throw TypeError(".openmetrics.SummaryValue.created: object expected");dt.created=$root.google.protobuf.Timestamp.fromObject(ut.created)}if(ut.quantile){if(!Array.isArray(ut.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");dt.quantile=[];for(let ft=0;ft<ut.quantile.length;++ft){if(typeof ut.quantile[ft]!="object")throw TypeError(".openmetrics.SummaryValue.quantile: object expected");dt.quantile[ft]=$root.openmetrics.SummaryValue.Quantile.fromObject(ut.quantile[ft])}}return dt},et.toObject=function(ut,dt){dt||(dt={});let ft={};if((dt.arrays||dt.defaults)&&(ft.quantile=[]),dt.defaults){if($util.Long){let zt=new $util.Long(0,0,!0);ft.count=dt.longs===String?zt.toString():dt.longs===Number?zt.toNumber():zt}else ft.count=dt.longs===String?"0":0;ft.created=null}if(ut.doubleValue!=null&&ut.hasOwnProperty("doubleValue")&&(ft.doubleValue=dt.json&&!isFinite(ut.doubleValue)?String(ut.doubleValue):ut.doubleValue,dt.oneofs&&(ft.sum="doubleValue")),ut.intValue!=null&&ut.hasOwnProperty("intValue")&&(typeof ut.intValue=="number"?ft.intValue=dt.longs===String?String(ut.intValue):ut.intValue:ft.intValue=dt.longs===String?$util.Long.prototype.toString.call(ut.intValue):dt.longs===Number?new $util.LongBits(ut.intValue.low>>>0,ut.intValue.high>>>0).toNumber():ut.intValue,dt.oneofs&&(ft.sum="intValue")),ut.count!=null&&ut.hasOwnProperty("count")&&(typeof ut.count=="number"?ft.count=dt.longs===String?String(ut.count):ut.count:ft.count=dt.longs===String?$util.Long.prototype.toString.call(ut.count):dt.longs===Number?new $util.LongBits(ut.count.low>>>0,ut.count.high>>>0).toNumber(!0):ut.count),ut.created!=null&&ut.hasOwnProperty("created")&&(ft.created=$root.google.protobuf.Timestamp.toObject(ut.created,dt)),ut.quantile&&ut.quantile.length){ft.quantile=[];for(let zt=0;zt<ut.quantile.length;++zt)ft.quantile[zt]=$root.openmetrics.SummaryValue.Quantile.toObject(ut.quantile[zt],dt)}return ft},et.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},et.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/openmetrics.SummaryValue"},et.Quantile=function(){function ut(dt){if(dt)for(let ft=Object.keys(dt),zt=0;zt<ft.length;++zt)dt[ft[zt]]!=null&&(this[ft[zt]]=dt[ft[zt]])}return ut.prototype.quantile=0,ut.prototype.value=0,ut.create=function(dt){return new ut(dt)},ut.encode=function(dt,ft){return ft||(ft=$Writer.create()),dt.quantile!=null&&Object.hasOwnProperty.call(dt,"quantile")&&ft.uint32(9).double(dt.quantile),dt.value!=null&&Object.hasOwnProperty.call(dt,"value")&&ft.uint32(17).double(dt.value),ft},ut.encodeDelimited=function(dt,ft){return this.encode(dt,ft).ldelim()},ut.decode=function(dt,ft){dt instanceof $Reader||(dt=$Reader.create(dt));let zt=ft===void 0?dt.len:dt.pos+ft,Dt=new $root.openmetrics.SummaryValue.Quantile;for(;dt.pos<zt;){let St=dt.uint32();switch(St>>>3){case 1:{Dt.quantile=dt.double();break}case 2:{Dt.value=dt.double();break}default:dt.skipType(St&7);break}}return Dt},ut.decodeDelimited=function(dt){return dt instanceof $Reader||(dt=new $Reader(dt)),this.decode(dt,dt.uint32())},ut.verify=function(dt){return typeof dt!="object"||dt===null?"object expected":dt.quantile!=null&&dt.hasOwnProperty("quantile")&&typeof dt.quantile!="number"?"quantile: number expected":dt.value!=null&&dt.hasOwnProperty("value")&&typeof dt.value!="number"?"value: number expected":null},ut.fromObject=function(dt){if(dt instanceof $root.openmetrics.SummaryValue.Quantile)return dt;let ft=new $root.openmetrics.SummaryValue.Quantile;return dt.quantile!=null&&(ft.quantile=Number(dt.quantile)),dt.value!=null&&(ft.value=Number(dt.value)),ft},ut.toObject=function(dt,ft){ft||(ft={});let zt={};return ft.defaults&&(zt.quantile=0,zt.value=0),dt.quantile!=null&&dt.hasOwnProperty("quantile")&&(zt.quantile=ft.json&&!isFinite(dt.quantile)?String(dt.quantile):dt.quantile),dt.value!=null&&dt.hasOwnProperty("value")&&(zt.value=ft.json&&!isFinite(dt.value)?String(dt.value):dt.value),zt},ut.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ut.getTypeUrl=function(dt){return dt===void 0&&(dt="type.googleapis.com"),dt+"/openmetrics.SummaryValue.Quantile"},ut}(),et}(),ot})(),$root.google=(()=>{const ot={};return ot.protobuf=function(){const et={};return et.Timestamp=function(){function ct(ut){if(ut)for(let dt=Object.keys(ut),ft=0;ft<dt.length;++ft)ut[dt[ft]]!=null&&(this[dt[ft]]=ut[dt[ft]])}return ct.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,ct.prototype.nanos=0,ct.create=function(ut){return new ct(ut)},ct.encode=function(ut,dt){return dt||(dt=$Writer.create()),ut.seconds!=null&&Object.hasOwnProperty.call(ut,"seconds")&&dt.uint32(8).int64(ut.seconds),ut.nanos!=null&&Object.hasOwnProperty.call(ut,"nanos")&&dt.uint32(16).int32(ut.nanos),dt},ct.encodeDelimited=function(ut,dt){return this.encode(ut,dt).ldelim()},ct.decode=function(ut,dt){ut instanceof $Reader||(ut=$Reader.create(ut));let ft=dt===void 0?ut.len:ut.pos+dt,zt=new $root.google.protobuf.Timestamp;for(;ut.pos<ft;){let Dt=ut.uint32();switch(Dt>>>3){case 1:{zt.seconds=ut.int64();break}case 2:{zt.nanos=ut.int32();break}default:ut.skipType(Dt&7);break}}return zt},ct.decodeDelimited=function(ut){return ut instanceof $Reader||(ut=new $Reader(ut)),this.decode(ut,ut.uint32())},ct.verify=function(ut){return typeof ut!="object"||ut===null?"object expected":ut.seconds!=null&&ut.hasOwnProperty("seconds")&&!$util.isInteger(ut.seconds)&&!(ut.seconds&&$util.isInteger(ut.seconds.low)&&$util.isInteger(ut.seconds.high))?"seconds: integer|Long expected":ut.nanos!=null&&ut.hasOwnProperty("nanos")&&!$util.isInteger(ut.nanos)?"nanos: integer expected":null},ct.fromObject=function(ut){if(ut instanceof $root.google.protobuf.Timestamp)return ut;let dt=new $root.google.protobuf.Timestamp;return ut.seconds!=null&&($util.Long?(dt.seconds=$util.Long.fromValue(ut.seconds)).unsigned=!1:typeof ut.seconds=="string"?dt.seconds=parseInt(ut.seconds,10):typeof ut.seconds=="number"?dt.seconds=ut.seconds:typeof ut.seconds=="object"&&(dt.seconds=new $util.LongBits(ut.seconds.low>>>0,ut.seconds.high>>>0).toNumber())),ut.nanos!=null&&(dt.nanos=ut.nanos|0),dt},ct.toObject=function(ut,dt){dt||(dt={});let ft={};if(dt.defaults){if($util.Long){let zt=new $util.Long(0,0,!1);ft.seconds=dt.longs===String?zt.toString():dt.longs===Number?zt.toNumber():zt}else ft.seconds=dt.longs===String?"0":0;ft.nanos=0}return ut.seconds!=null&&ut.hasOwnProperty("seconds")&&(typeof ut.seconds=="number"?ft.seconds=dt.longs===String?String(ut.seconds):ut.seconds:ft.seconds=dt.longs===String?$util.Long.prototype.toString.call(ut.seconds):dt.longs===Number?new $util.LongBits(ut.seconds.low>>>0,ut.seconds.high>>>0).toNumber():ut.seconds),ut.nanos!=null&&ut.hasOwnProperty("nanos")&&(ft.nanos=ut.nanos),ft},ct.prototype.toJSON=function(){return this.constructor.toObject(this,minimal.util.toJSONOptions)},ct.getTypeUrl=function(ut){return ut===void 0&&(ut="type.googleapis.com"),ut+"/google.protobuf.Timestamp"},ct}(),et}(),ot})();const GENERATED_ELEMENT_ID_PREFIX="$$ID";debounce$4=function(ot,et){let ct;return(...ut)=>{ct&&clearTimeout(ct),ct=setTimeout(()=>{et(...ut),ct=null},ot)}};const EMBED_QUERY_PARAM_KEY="embed",EMBED_OPTIONS_QUERY_PARAM_KEY="embed_options",EMBED_SHOW_COLORED_LINE="show_colored_line",EMBED_SHOW_TOOLBAR="show_toolbar",EMBED_SHOW_PADDING="show_padding",EMBED_DISABLE_SCROLLING="disable_scrolling",EMBED_LIGHT_THEME="light_theme",EMBED_DARK_THEME="dark_theme",EMBED_TRUE="true",EMBED_HIDE_LOADING_SCREEN="hide_loading_screen",EMBED_SHOW_LOADING_SCREEN_V1="show_loading_screen_v1",EMBED_SHOW_LOADING_SCREEN_V2="show_loading_screen_v2",EMBED_QUERY_PARAM_VALUES=[EMBED_SHOW_COLORED_LINE,EMBED_SHOW_TOOLBAR,EMBED_SHOW_PADDING,EMBED_DISABLE_SCROLLING,EMBED_LIGHT_THEME,EMBED_DARK_THEME,EMBED_HIDE_LOADING_SCREEN,EMBED_SHOW_LOADING_SCREEN_V1,EMBED_SHOW_LOADING_SCREEN_V2,EMBED_TRUE];var LoadingScreenType=(ot=>(ot[ot.NONE=0]="NONE",ot[ot.V1=1]="V1",ot[ot.V2=2]="V2",ot))(LoadingScreenType||{});function getEmbedUrlParams(ot){const et=new Set;return new URLSearchParams(window.location.search).forEach((ct,ut)=>{ut=ut.toString().toLowerCase(),ct=ct.toString().toLowerCase(),ut===ot&&EMBED_QUERY_PARAM_VALUES.includes(ct)&&et.add(ct)}),et}function preserveEmbedQueryParams(){if(!isEmbed())return"";const ot=new URLSearchParams(window.location.search).getAll(EMBED_OPTIONS_QUERY_PARAM_KEY),et=[];return et.push([EMBED_QUERY_PARAM_KEY,EMBED_TRUE]),ot.forEach(ct=>{et.push([EMBED_OPTIONS_QUERY_PARAM_KEY,ct])}),new URLSearchParams(et).toString()}function isEmbed(){return getEmbedUrlParams(EMBED_QUERY_PARAM_KEY).has(EMBED_TRUE)}function isColoredLineDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_COLORED_LINE)}function isToolbarDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_TOOLBAR)}function isScrollingHidden(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DISABLE_SCROLLING)}function isPaddingDisplayed(){return isEmbed()&&getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_SHOW_PADDING)}function isLightThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_LIGHT_THEME)}function isDarkThemeInQueryParams(){return getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY).has(EMBED_DARK_THEME)}function isInChildFrame(){return window.parent!==window}function getLoadingScreenType(){const ot=getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY);return ot.has(EMBED_HIDE_LOADING_SCREEN)?0:ot.has(EMBED_SHOW_LOADING_SCREEN_V1)?1:2}function makeElementWithInfoText(ot){return new Element$1({alert:{body:ot,format:Alert.Format.INFO}})}function makeElementWithErrorText(ot){return new Element$1({alert:{body:ot,format:Alert.Format.ERROR}})}function makeAppSkeletonElement(){return new Element$1({skeleton:{style:Skeleton$1.SkeletonStyle.APP}})}function hashString(ot){return xxhash.h32(ot,3735928559).toString(16)}function requireNonNull(ot){if(isNullOrUndefined$1(ot))throw new Error("value is null");return ot}function notUndefined(ot){return ot!==void 0}notNullOrUndefined=function(ot){return ot!=null},isNullOrUndefined$1=function(ot){return ot==null},isFromMac=function(){return/Mac/i.test(navigator.platform)},isFromWindows=function(){return/^Win/i.test(navigator.platform)};function getCookie(ot){const et=document.cookie.match(`\\b${ot}=([^;]*)\\b`);return et?et[1]:void 0}function setCookie(ot,et,ct){const ut=et?ct:new Date,dt=ut?`expires=${ut.toUTCString()};`:"";document.cookie=`${ot}=${et};${dt}path=/`}function isValidElementId(ot){return ot?ot.startsWith(GENERATED_ELEMENT_ID_PREFIX)&&ot.split("-").length>=3:!1}function getElementId(ot){const et=get$5(ot,[requireNonNull(ot.type),"id"]);if(et&&isValidElementId(et))return et}isValidFormId=function(ot){return notNullOrUndefined(ot)&&ot.length>0},isInForm=function(ot){return isValidFormId(ot.formId)};var LabelVisibilityOptions=(ot=>(ot[ot.Visible=0]="Visible",ot[ot.Hidden=1]="Hidden",ot[ot.Collapsed=2]="Collapsed",ot))(LabelVisibilityOptions||{});labelVisibilityProtoValueToEnum=function(ot){switch(ot){case LabelVisibilityMessage.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibilityMessage.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibilityMessage.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}};function findAnIFrameWithClassName(ot,et){for(let ct=0;ct<ot.length;ct++){const ut=ot[ct].contentDocument;if(ut&&ut.getElementsByClassName(et).length>0)return ot[ct]}return null}function canAccessIFrame(ot){try{if(ot.contentWindow===null)return!1;const et=(ot.contentDocument||ot.contentWindow.document).body.innerHTML;return et!==null&&et!==""}catch{return!1}}function getIFrameEnclosingApp(ot){if(!isInChildFrame())return null;const et=getEmbeddingIdClassName(ot),ct='iframe[title="streamlitApp"]';let ut=window.document.querySelectorAll(ct),dt=findAnIFrameWithClassName(ut,et);if(dt&&!canAccessIFrame(dt))return null;if(dt)return dt;if(window.parent&&(ut=window.parent.document.querySelectorAll(ct)),dt=findAnIFrameWithClassName(ut,et),dt&&!canAccessIFrame(dt))return null;if(dt)return dt;let ft=window.document.getElementsByTagName("iframe");return dt=findAnIFrameWithClassName(ft,et),dt&&!canAccessIFrame(dt)?null:dt||(window.parent&&(ft=window.parent.document.getElementsByTagName("iframe")),dt=findAnIFrameWithClassName(ft,et),dt&&!canAccessIFrame(dt)?null:dt)}function generateUID$2(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function getEmbeddingIdClassName(ot){return`stAppEmbeddingId-${ot}`}function extractPageNameFromPathName(ot,et){return decodeURIComponent(document.location.pathname.replace(`/${et}`,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),""))}keysToSnakeCase=function(ot){return Object.keys(ot).reduce((et,ct)=>{const ut=decamelize$2(ct,{preserveConsecutiveUppercase:!0}).replace(".","_");let dt=ot[ct];return dt&&typeof dt=="object"&&!Array.isArray(dt)&&(dt=keysToSnakeCase(dt)),Array.isArray(dt)&&(dt=dt.map(ft=>typeof ft=="object"?keysToSnakeCase(ft):ft)),et[ut]=dt,et},{})};let scriptRel,assetsURL,seen;scriptRel="modulepreload",assetsURL=function(ot){return"/"+ot},seen={},__vitePreload=function ot(et,ct,ut){let dt=Promise.resolve();if(ct&&ct.length>0){document.getElementsByTagName("link");const zt=document.querySelector("meta[property=csp-nonce]"),Dt=(zt==null?void 0:zt.nonce)||(zt==null?void 0:zt.getAttribute("nonce"));dt=Promise.allSettled(ct.map(St=>{if(St=assetsURL(St),St in seen)return;seen[St]=!0;const Tt=St.endsWith(".css"),Rt=Tt?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${St}"]${Rt}`))return;const $t=document.createElement("link");if($t.rel=Tt?"stylesheet":scriptRel,Tt||($t.as="script"),$t.crossOrigin="",$t.href=St,Dt&&$t.setAttribute("nonce",Dt),document.head.appendChild($t),Tt)return new Promise((kt,Bt)=>{$t.addEventListener("load",kt),$t.addEventListener("error",()=>Bt(new Error(`Unable to preload CSS for ${St}`)))})}))}function ft(zt){const Dt=new Event("vite:preloadError",{cancelable:!0});if(Dt.payload=zt,window.dispatchEvent(Dt),!Dt.defaultPrevented)throw zt}return dt.then(zt=>{for(const Dt of zt||[])Dt.status==="rejected"&&ft(Dt.reason);return et().catch(ft)})};var __assign$2=function(){return __assign$2=Object.assign||function(ot){for(var et,ct=1,ut=arguments.length;ct<ut;ct++){et=arguments[ct];for(var dt in et)Object.prototype.hasOwnProperty.call(et,dt)&&(ot[dt]=et[dt])}return ot},__assign$2.apply(this,arguments)};__awaiter=function(ot,et,ct,ut){function dt(ft){return ft instanceof ct?ft:new ct(function(zt){zt(ft)})}return new(ct||(ct=Promise))(function(ft,zt){function Dt(Rt){try{Tt(ut.next(Rt))}catch($t){zt($t)}}function St(Rt){try{Tt(ut.throw(Rt))}catch($t){zt($t)}}function Tt(Rt){Rt.done?ft(Rt.value):dt(Rt.value).then(Dt,St)}Tt((ut=ut.apply(ot,et||[])).next())})},__generator=function(ot,et){var ct={label:0,sent:function(){if(ft[0]&1)throw ft[1];return ft[1]},trys:[],ops:[]},ut,dt,ft,zt;return zt={next:Dt(0),throw:Dt(1),return:Dt(2)},typeof Symbol=="function"&&(zt[Symbol.iterator]=function(){return this}),zt;function Dt(Tt){return function(Rt){return St([Tt,Rt])}}function St(Tt){if(ut)throw new TypeError("Generator is already executing.");for(;zt&&(zt=0,Tt[0]&&(ct=0)),ct;)try{if(ut=1,dt&&(ft=Tt[0]&2?dt.return:Tt[0]?dt.throw||((ft=dt.return)&&ft.call(dt),0):dt.next)&&!(ft=ft.call(dt,Tt[1])).done)return ft;switch(dt=0,ft&&(Tt=[Tt[0]&2,ft.value]),Tt[0]){case 0:case 1:ft=Tt;break;case 4:return ct.label++,{value:Tt[1],done:!1};case 5:ct.label++,dt=Tt[1],Tt=[0];continue;case 7:Tt=ct.ops.pop(),ct.trys.pop();continue;default:if(ft=ct.trys,!(ft=ft.length>0&&ft[ft.length-1])&&(Tt[0]===6||Tt[0]===2)){ct=0;continue}if(Tt[0]===3&&(!ft||Tt[1]>ft[0]&&Tt[1]<ft[3])){ct.label=Tt[1];break}if(Tt[0]===6&&ct.label<ft[1]){ct.label=ft[1],ft=Tt;break}if(ft&&ct.label<ft[2]){ct.label=ft[2],ct.ops.push(Tt);break}ft[2]&&ct.ops.pop(),ct.trys.pop();continue}Tt=et.call(ot,ct)}catch(Rt){Tt=[6,Rt],dt=0}finally{ut=ft=0}if(Tt[0]&5)throw Tt[1];return{value:Tt[0]?Tt[1]:void 0,done:!0}}};function __values(ot){var et=typeof Symbol=="function"&&Symbol.iterator,ct=et&&ot[et],ut=0;if(ct)return ct.call(ot);if(ot&&typeof ot.length=="number")return{next:function(){return ot&&ut>=ot.length&&(ot=void 0),{value:ot&&ot[ut++],done:!ot}}};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(ot,et){var ct=typeof Symbol=="function"&&ot[Symbol.iterator];if(!ct)return ot;var ut=ct.call(ot),dt,ft=[],zt;try{for(;(et===void 0||et-- >0)&&!(dt=ut.next()).done;)ft.push(dt.value)}catch(Dt){zt={error:Dt}}finally{try{dt&&!dt.done&&(ct=ut.return)&&ct.call(ut)}finally{if(zt)throw zt.error}}return ft}__spread=function(){for(var ot=[],et=0;et<arguments.length;et++)ot=ot.concat(__read(arguments[et]));return ot};function __await(ot){return this instanceof __await?(this.v=ot,this):new __await(ot)}function __asyncGenerator(ot,et,ct){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ut=ct.apply(ot,et||[]),dt,ft=[];return dt={},zt("next"),zt("throw"),zt("return"),dt[Symbol.asyncIterator]=function(){return this},dt;function zt(kt){ut[kt]&&(dt[kt]=function(Bt){return new Promise(function(Ft,jt){ft.push([kt,Bt,Ft,jt])>1||Dt(kt,Bt)})})}function Dt(kt,Bt){try{St(ut[kt](Bt))}catch(Ft){$t(ft[0][3],Ft)}}function St(kt){kt.value instanceof __await?Promise.resolve(kt.value.v).then(Tt,Rt):$t(ft[0][2],kt)}function Tt(kt){Dt("next",kt)}function Rt(kt){Dt("throw",kt)}function $t(kt,Bt){kt(Bt),ft.shift(),ft.length&&Dt(ft[0][0],ft[0][1])}}function __asyncDelegator(ot){var et,ct;return et={},ut("next"),ut("throw",function(dt){throw dt}),ut("return"),et[Symbol.iterator]=function(){return this},et;function ut(dt,ft){et[dt]=ot[dt]?function(zt){return(ct=!ct)?{value:__await(ot[dt](zt)),done:!1}:ft?ft(zt):zt}:ft}}function __asyncValues(ot){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var et=ot[Symbol.asyncIterator],ct;return et?et.call(ot):(ot=typeof __values=="function"?__values(ot):ot[Symbol.iterator](),ct={},ut("next"),ut("throw"),ut("return"),ct[Symbol.asyncIterator]=function(){return this},ct);function ut(ft){ct[ft]=ot[ft]&&function(zt){return new Promise(function(Dt,St){zt=ot[ft](zt),dt(Dt,St,zt.done,zt.value)})}}function dt(ft,zt,Dt,St){Promise.resolve(St).then(function(Tt){ft({value:Tt,done:Dt})},zt)}}typeof SuppressedError=="function"&&SuppressedError;const decoder=new TextDecoder("utf-8"),decodeUtf8=ot=>decoder.decode(ot),encoder=new TextEncoder,encodeUtf8=ot=>encoder.encode(ot),isNumber$2=ot=>typeof ot=="number",isBoolean$1=ot=>typeof ot=="boolean",isFunction$7=ot=>typeof ot=="function",isObject$f=ot=>ot!=null&&Object(ot)===ot,isPromise=ot=>isObject$f(ot)&&isFunction$7(ot.then),isIterable=ot=>isObject$f(ot)&&isFunction$7(ot[Symbol.iterator]),isAsyncIterable$1=ot=>isObject$f(ot)&&isFunction$7(ot[Symbol.asyncIterator]),isArrowJSON=ot=>isObject$f(ot)&&isObject$f(ot.schema),isIteratorResult=ot=>isObject$f(ot)&&"done"in ot&&"value"in ot,isFileHandle=ot=>isObject$f(ot)&&isFunction$7(ot.stat)&&isNumber$2(ot.fd),isFetchResponse=ot=>isObject$f(ot)&&isReadableDOMStream(ot.body),isReadableInterop=ot=>"_getDOMStream"in ot&&"_getNodeStream"in ot,isReadableDOMStream=ot=>isObject$f(ot)&&isFunction$7(ot.cancel)&&isFunction$7(ot.getReader)&&!isReadableInterop(ot),isReadableNodeStream=ot=>isObject$f(ot)&&isFunction$7(ot.read)&&isFunction$7(ot.pipe)&&isBoolean$1(ot.readable)&&!isReadableInterop(ot),isFlatbuffersByteBuffer=ot=>isObject$f(ot)&&isFunction$7(ot.clear)&&isFunction$7(ot.bytes)&&isFunction$7(ot.position)&&isFunction$7(ot.setPosition)&&isFunction$7(ot.capacity)&&isFunction$7(ot.getBufferIdentifier)&&isFunction$7(ot.createLong),SharedArrayBuf=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:ArrayBuffer;function collapseContiguousByteRanges(ot){const et=ot[0]?[ot[0]]:[];let ct,ut,dt,ft;for(let zt,Dt,St=0,Tt=0,Rt=ot.length;++St<Rt;){if(zt=et[Tt],Dt=ot[St],!zt||!Dt||zt.buffer!==Dt.buffer||Dt.byteOffset<zt.byteOffset){Dt&&(et[++Tt]=Dt);continue}if({byteOffset:ct,byteLength:dt}=zt,{byteOffset:ut,byteLength:ft}=Dt,ct+dt<ut||ut+ft<ct){Dt&&(et[++Tt]=Dt);continue}et[Tt]=new Uint8Array(zt.buffer,ct,ut-ct+ft)}return et}function memcpy(ot,et,ct=0,ut=et.byteLength){const dt=ot.byteLength,ft=new Uint8Array(ot.buffer,ot.byteOffset,dt),zt=new Uint8Array(et.buffer,et.byteOffset,Math.min(ut,dt));return ft.set(zt,ct),ot}function joinUint8Arrays(ot,et){const ct=collapseContiguousByteRanges(ot),ut=ct.reduce((Rt,$t)=>Rt+$t.byteLength,0);let dt,ft,zt,Dt=0,St=-1;const Tt=Math.min(et||Number.POSITIVE_INFINITY,ut);for(const Rt=ct.length;++St<Rt;){if(dt=ct[St],ft=dt.subarray(0,Math.min(dt.length,Tt-Dt)),Tt<=Dt+ft.length){ft.length<dt.length?ct[St]=dt.subarray(ft.length):ft.length===dt.length&&St++,zt?memcpy(zt,ft,Dt):zt=ft;break}memcpy(zt||(zt=new Uint8Array(Tt)),ft,Dt),Dt+=ft.length}return[zt||new Uint8Array(0),ct.slice(St),ut-(zt?zt.byteLength:0)]}function toArrayBufferView(ot,et){let ct=isIteratorResult(et)?et.value:et;return ct instanceof ot?ot===Uint8Array?new ot(ct.buffer,ct.byteOffset,ct.byteLength):ct:ct?(typeof ct=="string"&&(ct=encodeUtf8(ct)),ct instanceof ArrayBuffer?new ot(ct):ct instanceof SharedArrayBuf?new ot(ct):isFlatbuffersByteBuffer(ct)?toArrayBufferView(ot,ct.bytes()):ArrayBuffer.isView(ct)?ct.byteLength<=0?new ot(0):new ot(ct.buffer,ct.byteOffset,ct.byteLength/ot.BYTES_PER_ELEMENT):ot.from(ct)):new ot(0)}const toInt8Array=ot=>toArrayBufferView(Int8Array,ot),toInt16Array=ot=>toArrayBufferView(Int16Array,ot),toInt32Array=ot=>toArrayBufferView(Int32Array,ot),toBigInt64Array=ot=>toArrayBufferView(BigInt64Array,ot),toUint8Array=ot=>toArrayBufferView(Uint8Array,ot),toUint16Array=ot=>toArrayBufferView(Uint16Array,ot),toUint32Array=ot=>toArrayBufferView(Uint32Array,ot),toBigUint64Array=ot=>toArrayBufferView(BigUint64Array,ot),toFloat32Array=ot=>toArrayBufferView(Float32Array,ot),toFloat64Array=ot=>toArrayBufferView(Float64Array,ot),toUint8ClampedArray=ot=>toArrayBufferView(Uint8ClampedArray,ot),pump$1=ot=>(ot.next(),ot);function*toArrayBufferViewIterator(ot,et){const ct=function*(dt){yield dt},ut=typeof et=="string"||ArrayBuffer.isView(et)||et instanceof ArrayBuffer||et instanceof SharedArrayBuf?ct(et):isIterable(et)?et:ct(et);return yield*pump$1(function*(dt){let ft=null;do ft=dt.next(yield toArrayBufferView(ot,ft));while(!ft.done)}(ut[Symbol.iterator]())),new ot}const toInt8ArrayIterator=ot=>toArrayBufferViewIterator(Int8Array,ot),toInt16ArrayIterator=ot=>toArrayBufferViewIterator(Int16Array,ot),toInt32ArrayIterator=ot=>toArrayBufferViewIterator(Int32Array,ot),toUint8ArrayIterator=ot=>toArrayBufferViewIterator(Uint8Array,ot),toUint16ArrayIterator=ot=>toArrayBufferViewIterator(Uint16Array,ot),toUint32ArrayIterator=ot=>toArrayBufferViewIterator(Uint32Array,ot),toFloat32ArrayIterator=ot=>toArrayBufferViewIterator(Float32Array,ot),toFloat64ArrayIterator=ot=>toArrayBufferViewIterator(Float64Array,ot),toUint8ClampedArrayIterator=ot=>toArrayBufferViewIterator(Uint8ClampedArray,ot);function toArrayBufferViewAsyncIterator(ot,et){return __asyncGenerator(this,arguments,function*(){if(isPromise(et))return yield __await(yield __await(yield*__asyncDelegator(__asyncValues(toArrayBufferViewAsyncIterator(ot,yield __await(et))))));const ct=function(ft){return __asyncGenerator(this,arguments,function*(){yield yield __await(yield __await(ft))})},ut=function(ft){return __asyncGenerator(this,arguments,function*(){yield __await(yield*__asyncDelegator(__asyncValues(pump$1(function*(zt){let Dt=null;do Dt=zt.next(yield Dt==null?void 0:Dt.value);while(!Dt.done)}(ft[Symbol.iterator]())))))})},dt=typeof et=="string"||ArrayBuffer.isView(et)||et instanceof ArrayBuffer||et instanceof SharedArrayBuf?ct(et):isIterable(et)?ut(et):isAsyncIterable$1(et)?et:ct(et);return yield __await(yield*__asyncDelegator(__asyncValues(pump$1(function(ft){return __asyncGenerator(this,arguments,function*(){let zt=null;do zt=yield __await(ft.next(yield yield __await(toArrayBufferView(ot,zt))));while(!zt.done)})}(dt[Symbol.asyncIterator]()))))),yield __await(new ot)})}const toInt8ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Int8Array,ot),toInt16ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Int16Array,ot),toInt32ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Int32Array,ot),toUint8ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Uint8Array,ot),toUint16ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Uint16Array,ot),toUint32ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Uint32Array,ot),toFloat32ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Float32Array,ot),toFloat64ArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Float64Array,ot),toUint8ClampedArrayAsyncIterator=ot=>toArrayBufferViewAsyncIterator(Uint8ClampedArray,ot);function rebaseValueOffsets(ot,et,ct){if(ot!==0){ct=ct.slice(0,et);for(let ut=-1,dt=ct.length;++ut<dt;)ct[ut]+=ot}return ct.subarray(0,et)}function compareArrayLike(ot,et){let ct=0;const ut=ot.length;if(ut!==et.length)return!1;if(ut>0)do if(ot[ct]!==et[ct])return!1;while(++ct<ut);return!0}const util_buffer_=Object.freeze(Object.defineProperty({__proto__:null,compareArrayLike,joinUint8Arrays,memcpy,rebaseValueOffsets,toArrayBufferView,toArrayBufferViewAsyncIterator,toArrayBufferViewIterator,toBigInt64Array,toBigUint64Array,toFloat32Array,toFloat32ArrayAsyncIterator,toFloat32ArrayIterator,toFloat64Array,toFloat64ArrayAsyncIterator,toFloat64ArrayIterator,toInt16Array,toInt16ArrayAsyncIterator,toInt16ArrayIterator,toInt32Array,toInt32ArrayAsyncIterator,toInt32ArrayIterator,toInt8Array,toInt8ArrayAsyncIterator,toInt8ArrayIterator,toUint16Array,toUint16ArrayAsyncIterator,toUint16ArrayIterator,toUint32Array,toUint32ArrayAsyncIterator,toUint32ArrayIterator,toUint8Array,toUint8ArrayAsyncIterator,toUint8ArrayIterator,toUint8ClampedArray,toUint8ClampedArrayAsyncIterator,toUint8ClampedArrayIterator},Symbol.toStringTag,{value:"Module"})),streamAdapters={fromIterable(ot){return pump(fromIterable(ot))},fromAsyncIterable(ot){return pump(fromAsyncIterable(ot))},fromDOMStream(ot){return pump(fromDOMStream(ot))},fromNodeStream(ot){return pump(fromNodeStream(ot))},toDOMStream(ot,et){throw new Error('"toDOMStream" not available in this environment')},toNodeStream(ot,et){throw new Error('"toNodeStream" not available in this environment')}},pump=ot=>(ot.next(),ot);function*fromIterable(ot){let et,ct=!1,ut=[],dt,ft,zt,Dt=0;function St(){return ft==="peek"?joinUint8Arrays(ut,zt)[0]:([dt,ut,Dt]=joinUint8Arrays(ut,zt),dt)}({cmd:ft,size:zt}=(yield null)||{cmd:"read",size:0});const Tt=toUint8ArrayIterator(ot)[Symbol.iterator]();try{do if({done:et,value:dt}=Number.isNaN(zt-Dt)?Tt.next():Tt.next(zt-Dt),!et&&dt.byteLength>0&&(ut.push(dt),Dt+=dt.byteLength),et||zt<=Dt)do({cmd:ft,size:zt}=yield St());while(zt<Dt);while(!et)}catch(Rt){(ct=!0)&&typeof Tt.throw=="function"&&Tt.throw(Rt)}finally{ct===!1&&typeof Tt.return=="function"&&Tt.return(null)}return null}function fromAsyncIterable(ot){return __asyncGenerator(this,arguments,function*(){let et,ct=!1,ut=[],dt,ft,zt,Dt=0;function St(){return ft==="peek"?joinUint8Arrays(ut,zt)[0]:([dt,ut,Dt]=joinUint8Arrays(ut,zt),dt)}({cmd:ft,size:zt}=(yield yield __await(null))||{cmd:"read",size:0});const Tt=toUint8ArrayAsyncIterator(ot)[Symbol.asyncIterator]();try{do if({done:et,value:dt}=Number.isNaN(zt-Dt)?yield __await(Tt.next()):yield __await(Tt.next(zt-Dt)),!et&&dt.byteLength>0&&(ut.push(dt),Dt+=dt.byteLength),et||zt<=Dt)do({cmd:ft,size:zt}=yield yield __await(St()));while(zt<Dt);while(!et)}catch(Rt){(ct=!0)&&typeof Tt.throw=="function"&&(yield __await(Tt.throw(Rt)))}finally{ct===!1&&typeof Tt.return=="function"&&(yield __await(Tt.return(new Uint8Array(0))))}return yield __await(null)})}function fromDOMStream(ot){return __asyncGenerator(this,arguments,function*(){let et=!1,ct=!1,ut=[],dt,ft,zt,Dt=0;function St(){return ft==="peek"?joinUint8Arrays(ut,zt)[0]:([dt,ut,Dt]=joinUint8Arrays(ut,zt),dt)}({cmd:ft,size:zt}=(yield yield __await(null))||{cmd:"read",size:0});const Tt=new AdaptiveByteReader(ot);try{do if({done:et,value:dt}=Number.isNaN(zt-Dt)?yield __await(Tt.read()):yield __await(Tt.read(zt-Dt)),!et&&dt.byteLength>0&&(ut.push(toUint8Array(dt)),Dt+=dt.byteLength),et||zt<=Dt)do({cmd:ft,size:zt}=yield yield __await(St()));while(zt<Dt);while(!et)}catch(Rt){(ct=!0)&&(yield __await(Tt.cancel(Rt)))}finally{ct===!1?yield __await(Tt.cancel()):ot.locked&&Tt.releaseLock()}return yield __await(null)})}class AdaptiveByteReader{constructor(et){this.source=et,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(et){return __awaiter(this,void 0,void 0,function*(){const{reader:ct,source:ut}=this;ct&&(yield ct.cancel(et).catch(()=>{})),ut&&ut.locked&&this.releaseLock()})}read(et){return __awaiter(this,void 0,void 0,function*(){if(et===0)return{done:this.reader==null,value:new Uint8Array(0)};const ct=yield this.reader.read();return!ct.done&&(ct.value=toUint8Array(ct)),ct})}}const onEvent=(ot,et)=>{const ct=dt=>ut([et,dt]);let ut;return[et,ct,new Promise(dt=>(ut=dt)&&ot.once(et,ct))]};function fromNodeStream(ot){return __asyncGenerator(this,arguments,function*(){const et=[];let ct="error",ut=!1,dt=null,ft,zt,Dt=0,St=[],Tt;function Rt(){return ft==="peek"?joinUint8Arrays(St,zt)[0]:([Tt,St,Dt]=joinUint8Arrays(St,zt),Tt)}if({cmd:ft,size:zt}=(yield yield __await(null))||{cmd:"read",size:0},ot.isTTY)return yield yield __await(new Uint8Array(0)),yield __await(null);try{et[0]=onEvent(ot,"end"),et[1]=onEvent(ot,"error");do{if(et[2]=onEvent(ot,"readable"),[ct,dt]=yield __await(Promise.race(et.map(kt=>kt[2]))),ct==="error")break;if((ut=ct==="end")||(Number.isFinite(zt-Dt)?(Tt=toUint8Array(ot.read(zt-Dt)),Tt.byteLength<zt-Dt&&(Tt=toUint8Array(ot.read()))):Tt=toUint8Array(ot.read()),Tt.byteLength>0&&(St.push(Tt),Dt+=Tt.byteLength)),ut||zt<=Dt)do({cmd:ft,size:zt}=yield yield __await(Rt()));while(zt<Dt)}while(!ut)}finally{yield __await($t(et,ct==="error"?dt:null))}return yield __await(null);function $t(kt,Bt){return Tt=St=null,new Promise((Ft,jt)=>{for(const[Kt,Yt]of kt)ot.off(Kt,Yt);try{const Kt=ot.destroy;Kt&&Kt.call(ot,Bt),Bt=void 0}catch(Kt){Bt=Kt||Bt}finally{Bt!=null?jt(Bt):Ft()}})}})}var MetadataVersion;(function(ot){ot[ot.V1=0]="V1",ot[ot.V2=1]="V2",ot[ot.V3=2]="V3",ot[ot.V4=3]="V4",ot[ot.V5=4]="V5"})(MetadataVersion||(MetadataVersion={}));var UnionMode;(function(ot){ot[ot.Sparse=0]="Sparse",ot[ot.Dense=1]="Dense"})(UnionMode||(UnionMode={}));var Precision;(function(ot){ot[ot.HALF=0]="HALF",ot[ot.SINGLE=1]="SINGLE",ot[ot.DOUBLE=2]="DOUBLE"})(Precision||(Precision={}));var DateUnit;(function(ot){ot[ot.DAY=0]="DAY",ot[ot.MILLISECOND=1]="MILLISECOND"})(DateUnit||(DateUnit={}));var TimeUnit;(function(ot){ot[ot.SECOND=0]="SECOND",ot[ot.MILLISECOND=1]="MILLISECOND",ot[ot.MICROSECOND=2]="MICROSECOND",ot[ot.NANOSECOND=3]="NANOSECOND"})(TimeUnit||(TimeUnit={}));var IntervalUnit;(function(ot){ot[ot.YEAR_MONTH=0]="YEAR_MONTH",ot[ot.DAY_TIME=1]="DAY_TIME",ot[ot.MONTH_DAY_NANO=2]="MONTH_DAY_NANO"})(IntervalUnit||(IntervalUnit={}));const SIZEOF_SHORT=2,SIZEOF_INT=4,FILE_IDENTIFIER_LENGTH=4,SIZE_PREFIX_LENGTH=4,int32=new Int32Array(2),float32=new Float32Array(int32.buffer),float64=new Float64Array(int32.buffer),isLittleEndian=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Encoding;(function(ot){ot[ot.UTF8_BYTES=1]="UTF8_BYTES",ot[ot.UTF16_STRING=2]="UTF16_STRING"})(Encoding||(Encoding={}));let ByteBuffer$2=class Sn{constructor(et){this.bytes_=et,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(et){return new Sn(new Uint8Array(et))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(et){this.position_=et}capacity(){return this.bytes_.length}readInt8(et){return this.readUint8(et)<<24>>24}readUint8(et){return this.bytes_[et]}readInt16(et){return this.readUint16(et)<<16>>16}readUint16(et){return this.bytes_[et]|this.bytes_[et+1]<<8}readInt32(et){return this.bytes_[et]|this.bytes_[et+1]<<8|this.bytes_[et+2]<<16|this.bytes_[et+3]<<24}readUint32(et){return this.readInt32(et)>>>0}readInt64(et){return BigInt.asIntN(64,BigInt(this.readUint32(et))+(BigInt(this.readUint32(et+4))<<BigInt(32)))}readUint64(et){return BigInt.asUintN(64,BigInt(this.readUint32(et))+(BigInt(this.readUint32(et+4))<<BigInt(32)))}readFloat32(et){return int32[0]=this.readInt32(et),float32[0]}readFloat64(et){return int32[isLittleEndian?0:1]=this.readInt32(et),int32[isLittleEndian?1:0]=this.readInt32(et+4),float64[0]}writeInt8(et,ct){this.bytes_[et]=ct}writeUint8(et,ct){this.bytes_[et]=ct}writeInt16(et,ct){this.bytes_[et]=ct,this.bytes_[et+1]=ct>>8}writeUint16(et,ct){this.bytes_[et]=ct,this.bytes_[et+1]=ct>>8}writeInt32(et,ct){this.bytes_[et]=ct,this.bytes_[et+1]=ct>>8,this.bytes_[et+2]=ct>>16,this.bytes_[et+3]=ct>>24}writeUint32(et,ct){this.bytes_[et]=ct,this.bytes_[et+1]=ct>>8,this.bytes_[et+2]=ct>>16,this.bytes_[et+3]=ct>>24}writeInt64(et,ct){this.writeInt32(et,Number(BigInt.asIntN(32,ct))),this.writeInt32(et+4,Number(BigInt.asIntN(32,ct>>BigInt(32))))}writeUint64(et,ct){this.writeUint32(et,Number(BigInt.asUintN(32,ct))),this.writeUint32(et+4,Number(BigInt.asUintN(32,ct>>BigInt(32))))}writeFloat32(et,ct){float32[0]=ct,this.writeInt32(et,int32[0])}writeFloat64(et,ct){float64[0]=ct,this.writeInt32(et,int32[isLittleEndian?0:1]),this.writeInt32(et+4,int32[isLittleEndian?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+SIZEOF_INT+FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let et="";for(let ct=0;ct<FILE_IDENTIFIER_LENGTH;ct++)et+=String.fromCharCode(this.readInt8(this.position_+SIZEOF_INT+ct));return et}__offset(et,ct){const ut=et-this.readInt32(et);return ct<this.readInt16(ut)?this.readInt16(ut+ct):0}__union(et,ct){return et.bb_pos=ct+this.readInt32(ct),et.bb=this,et}__string(et,ct){et+=this.readInt32(et);const ut=this.readInt32(et);et+=SIZEOF_INT;const dt=this.bytes_.subarray(et,et+ut);return ct===Encoding.UTF8_BYTES?dt:this.text_decoder_.decode(dt)}__union_with_string(et,ct){return typeof et=="string"?this.__string(ct):this.__union(et,ct)}__indirect(et){return et+this.readInt32(et)}__vector(et){return et+this.readInt32(et)+SIZEOF_INT}__vector_len(et){return this.readInt32(et+this.readInt32(et))}__has_identifier(et){if(et.length!=FILE_IDENTIFIER_LENGTH)throw new Error("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let ct=0;ct<FILE_IDENTIFIER_LENGTH;ct++)if(et.charCodeAt(ct)!=this.readInt8(this.position()+SIZEOF_INT+ct))return!1;return!0}createScalarList(et,ct){const ut=[];for(let dt=0;dt<ct;++dt){const ft=et(dt);ft!==null&&ut.push(ft)}return ut}createObjList(et,ct){const ut=[];for(let dt=0;dt<ct;++dt){const ft=et(dt);ft!==null&&ut.push(ft.unpack())}return ut}},Builder$2=class vn{constructor(et){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,this.text_encoder=new TextEncoder;let ct;et?ct=et:ct=1024,this.bb=ByteBuffer$2.allocate(ct),this.space=ct}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(et){this.force_defaults=et}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(et,ct){et>this.minalign&&(this.minalign=et);const ut=~(this.bb.capacity()-this.space+ct)+1&et-1;for(;this.space<ut+et+ct;){const dt=this.bb.capacity();this.bb=vn.growByteBuffer(this.bb),this.space+=this.bb.capacity()-dt}this.pad(ut)}pad(et){for(let ct=0;ct<et;ct++)this.bb.writeInt8(--this.space,0)}writeInt8(et){this.bb.writeInt8(this.space-=1,et)}writeInt16(et){this.bb.writeInt16(this.space-=2,et)}writeInt32(et){this.bb.writeInt32(this.space-=4,et)}writeInt64(et){this.bb.writeInt64(this.space-=8,et)}writeFloat32(et){this.bb.writeFloat32(this.space-=4,et)}writeFloat64(et){this.bb.writeFloat64(this.space-=8,et)}addInt8(et){this.prep(1,0),this.writeInt8(et)}addInt16(et){this.prep(2,0),this.writeInt16(et)}addInt32(et){this.prep(4,0),this.writeInt32(et)}addInt64(et){this.prep(8,0),this.writeInt64(et)}addFloat32(et){this.prep(4,0),this.writeFloat32(et)}addFloat64(et){this.prep(8,0),this.writeFloat64(et)}addFieldInt8(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addInt8(ct),this.slot(et))}addFieldInt16(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addInt16(ct),this.slot(et))}addFieldInt32(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addInt32(ct),this.slot(et))}addFieldInt64(et,ct,ut){(this.force_defaults||ct!==ut)&&(this.addInt64(ct),this.slot(et))}addFieldFloat32(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addFloat32(ct),this.slot(et))}addFieldFloat64(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addFloat64(ct),this.slot(et))}addFieldOffset(et,ct,ut){(this.force_defaults||ct!=ut)&&(this.addOffset(ct),this.slot(et))}addFieldStruct(et,ct,ut){ct!=ut&&(this.nested(ct),this.slot(et))}nested(et){if(et!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(et){this.vtable!==null&&(this.vtable[et]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(et){const ct=et.capacity();if(ct&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const ut=ct<<1,dt=ByteBuffer$2.allocate(ut);return dt.setPosition(ut-ct),dt.bytes().set(et.bytes(),ut-ct),dt}addOffset(et){this.prep(SIZEOF_INT,0),this.writeInt32(this.offset()-et+SIZEOF_INT)}startObject(et){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=et;for(let ct=0;ct<et;ct++)this.vtable[ct]=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 et=this.offset();let ct=this.vtable_in_use-1;for(;ct>=0&&this.vtable[ct]==0;ct--);const ut=ct+1;for(;ct>=0;ct--)this.addInt16(this.vtable[ct]!=0?et-this.vtable[ct]:0);const dt=2;this.addInt16(et-this.object_start);const ft=(ut+dt)*SIZEOF_SHORT;this.addInt16(ft);let zt=0;const Dt=this.space;e:for(ct=0;ct<this.vtables.length;ct++){const St=this.bb.capacity()-this.vtables[ct];if(ft==this.bb.readInt16(St)){for(let Tt=SIZEOF_SHORT;Tt<ft;Tt+=SIZEOF_SHORT)if(this.bb.readInt16(Dt+Tt)!=this.bb.readInt16(St+Tt))continue e;zt=this.vtables[ct];break}}return zt?(this.space=this.bb.capacity()-et,this.bb.writeInt32(this.space,zt-et)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-et,this.offset()-et)),this.isNested=!1,et}finish(et,ct,ut){const dt=ut?SIZE_PREFIX_LENGTH:0;if(ct){const ft=ct;if(this.prep(this.minalign,SIZEOF_INT+FILE_IDENTIFIER_LENGTH+dt),ft.length!=FILE_IDENTIFIER_LENGTH)throw new TypeError("FlatBuffers: file identifier must be length "+FILE_IDENTIFIER_LENGTH);for(let zt=FILE_IDENTIFIER_LENGTH-1;zt>=0;zt--)this.writeInt8(ft.charCodeAt(zt))}this.prep(this.minalign,SIZEOF_INT+dt),this.addOffset(et),dt&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(et,ct){this.finish(et,ct,!0)}requiredField(et,ct){const ut=this.bb.capacity()-et,dt=ut-this.bb.readInt32(ut);if(!(ct<this.bb.readInt16(dt)&&this.bb.readInt16(dt+ct)!=0))throw new TypeError("FlatBuffers: field "+ct+" must be set")}startVector(et,ct,ut){this.notNested(),this.vector_num_elems=ct,this.prep(SIZEOF_INT,et*ct),this.prep(ut,et*ct)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(et){if(!et)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(et))return this.string_maps.get(et);const ct=this.createString(et);return this.string_maps.set(et,ct),ct}createString(et){if(et==null)return 0;let ct;return et instanceof Uint8Array?ct=et:ct=this.text_encoder.encode(et),this.addInt8(0),this.startVector(1,ct.length,1),this.bb.setPosition(this.space-=ct.length),this.bb.bytes().set(ct,this.space),this.endVector()}createByteVector(et){return et==null?0:(this.startVector(1,et.length,1),this.bb.setPosition(this.space-=et.length),this.bb.bytes().set(et,this.space),this.endVector())}createObjectOffset(et){return et===null?0:typeof et=="string"?this.createString(et):et.pack(this)}createObjectOffsetList(et){const ct=[];for(let ut=0;ut<et.length;++ut){const dt=et[ut];if(dt!==null)ct.push(this.createObjectOffset(dt));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return ct}createStructOffsetList(et,ct){return ct(this,et.length),this.createObjectOffsetList(et.slice().reverse()),this.endVector()}};var BodyCompressionMethod;(function(ot){ot[ot.BUFFER=0]="BUFFER"})(BodyCompressionMethod||(BodyCompressionMethod={}));var CompressionType;(function(ot){ot[ot.LZ4_FRAME=0]="LZ4_FRAME",ot[ot.ZSTD=1]="ZSTD"})(CompressionType||(CompressionType={}));class BodyCompression{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsBodyCompression(et,ct){return(ct||new BodyCompression).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsBodyCompression(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new BodyCompression).__init(et.readInt32(et.position())+et.position(),et)}codec(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt8(this.bb_pos+et):CompressionType.LZ4_FRAME}method(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.readInt8(this.bb_pos+et):BodyCompressionMethod.BUFFER}static startBodyCompression(et){et.startObject(2)}static addCodec(et,ct){et.addFieldInt8(0,ct,CompressionType.LZ4_FRAME)}static addMethod(et,ct){et.addFieldInt8(1,ct,BodyCompressionMethod.BUFFER)}static endBodyCompression(et){return et.endObject()}static createBodyCompression(et,ct,ut){return BodyCompression.startBodyCompression(et),BodyCompression.addCodec(et,ct),BodyCompression.addMethod(et,ut),BodyCompression.endBodyCompression(et)}}let Buffer$3=class{constructor(){this.bb=null,this.bb_pos=0}__init(ot,et){return this.bb_pos=ot,this.bb=et,this}offset(){return this.bb.readInt64(this.bb_pos)}length(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createBuffer(ot,et,ct){return ot.prep(8,16),ot.writeInt64(BigInt(ct??0)),ot.writeInt64(BigInt(et??0)),ot.offset()}},FieldNode$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(ot,et){return this.bb_pos=ot,this.bb=et,this}length(){return this.bb.readInt64(this.bb_pos)}nullCount(){return this.bb.readInt64(this.bb_pos+8)}static sizeOf(){return 16}static createFieldNode(ot,et,ct){return ot.prep(8,16),ot.writeInt64(BigInt(ct??0)),ot.writeInt64(BigInt(et??0)),ot.offset()}},RecordBatch$2=class dn{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsRecordBatch(et,ct){return(ct||new dn).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsRecordBatch(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new dn).__init(et.readInt32(et.position())+et.position(),et)}length(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt64(this.bb_pos+et):BigInt("0")}nodes(et,ct){const ut=this.bb.__offset(this.bb_pos,6);return ut?(ct||new FieldNode$1).__init(this.bb.__vector(this.bb_pos+ut)+et*16,this.bb):null}nodesLength(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.__vector_len(this.bb_pos+et):0}buffers(et,ct){const ut=this.bb.__offset(this.bb_pos,8);return ut?(ct||new Buffer$3).__init(this.bb.__vector(this.bb_pos+ut)+et*16,this.bb):null}buffersLength(){const et=this.bb.__offset(this.bb_pos,8);return et?this.bb.__vector_len(this.bb_pos+et):0}compression(et){const ct=this.bb.__offset(this.bb_pos,10);return ct?(et||new BodyCompression).__init(this.bb.__indirect(this.bb_pos+ct),this.bb):null}static startRecordBatch(et){et.startObject(4)}static addLength(et,ct){et.addFieldInt64(0,ct,BigInt("0"))}static addNodes(et,ct){et.addFieldOffset(1,ct,0)}static startNodesVector(et,ct){et.startVector(16,ct,8)}static addBuffers(et,ct){et.addFieldOffset(2,ct,0)}static startBuffersVector(et,ct){et.startVector(16,ct,8)}static addCompression(et,ct){et.addFieldOffset(3,ct,0)}static endRecordBatch(et){return et.endObject()}},DictionaryBatch$1=class bn{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsDictionaryBatch(et,ct){return(ct||new bn).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsDictionaryBatch(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new bn).__init(et.readInt32(et.position())+et.position(),et)}id(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt64(this.bb_pos+et):BigInt("0")}data(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?(et||new RecordBatch$2).__init(this.bb.__indirect(this.bb_pos+ct),this.bb):null}isDelta(){const et=this.bb.__offset(this.bb_pos,8);return et?!!this.bb.readInt8(this.bb_pos+et):!1}static startDictionaryBatch(et){et.startObject(3)}static addId(et,ct){et.addFieldInt64(0,ct,BigInt("0"))}static addData(et,ct){et.addFieldOffset(1,ct,0)}static addIsDelta(et,ct){et.addFieldInt8(2,+ct,0)}static endDictionaryBatch(et){return et.endObject()}};var Endianness;(function(ot){ot[ot.Little=0]="Little",ot[ot.Big=1]="Big"})(Endianness||(Endianness={}));var DictionaryKind;(function(ot){ot[ot.DenseArray=0]="DenseArray"})(DictionaryKind||(DictionaryKind={}));class Int{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsInt(et,ct){return(ct||new Int).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsInt(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Int).__init(et.readInt32(et.position())+et.position(),et)}bitWidth(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt32(this.bb_pos+et):0}isSigned(){const et=this.bb.__offset(this.bb_pos,6);return et?!!this.bb.readInt8(this.bb_pos+et):!1}static startInt(et){et.startObject(2)}static addBitWidth(et,ct){et.addFieldInt32(0,ct,0)}static addIsSigned(et,ct){et.addFieldInt8(1,+ct,0)}static endInt(et){return et.endObject()}static createInt(et,ct,ut){return Int.startInt(et),Int.addBitWidth(et,ct),Int.addIsSigned(et,ut),Int.endInt(et)}}class DictionaryEncoding{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsDictionaryEncoding(et,ct){return(ct||new DictionaryEncoding).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsDictionaryEncoding(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new DictionaryEncoding).__init(et.readInt32(et.position())+et.position(),et)}id(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt64(this.bb_pos+et):BigInt("0")}indexType(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?(et||new Int).__init(this.bb.__indirect(this.bb_pos+ct),this.bb):null}isOrdered(){const et=this.bb.__offset(this.bb_pos,8);return et?!!this.bb.readInt8(this.bb_pos+et):!1}dictionaryKind(){const et=this.bb.__offset(this.bb_pos,10);return et?this.bb.readInt16(this.bb_pos+et):DictionaryKind.DenseArray}static startDictionaryEncoding(et){et.startObject(4)}static addId(et,ct){et.addFieldInt64(0,ct,BigInt("0"))}static addIndexType(et,ct){et.addFieldOffset(1,ct,0)}static addIsOrdered(et,ct){et.addFieldInt8(2,+ct,0)}static addDictionaryKind(et,ct){et.addFieldInt16(3,ct,DictionaryKind.DenseArray)}static endDictionaryEncoding(et){return et.endObject()}}class KeyValue{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsKeyValue(et,ct){return(ct||new KeyValue).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsKeyValue(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new KeyValue).__init(et.readInt32(et.position())+et.position(),et)}key(et){const ct=this.bb.__offset(this.bb_pos,4);return ct?this.bb.__string(this.bb_pos+ct,et):null}value(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?this.bb.__string(this.bb_pos+ct,et):null}static startKeyValue(et){et.startObject(2)}static addKey(et,ct){et.addFieldOffset(0,ct,0)}static addValue(et,ct){et.addFieldOffset(1,ct,0)}static endKeyValue(et){return et.endObject()}static createKeyValue(et,ct,ut){return KeyValue.startKeyValue(et),KeyValue.addKey(et,ct),KeyValue.addValue(et,ut),KeyValue.endKeyValue(et)}}let Binary$1=class x1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsBinary(et,ct){return(ct||new x1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsBinary(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new x1).__init(et.readInt32(et.position())+et.position(),et)}static startBinary(et){et.startObject(0)}static endBinary(et){return et.endObject()}static createBinary(et){return x1.startBinary(et),x1.endBinary(et)}},Bool$1=class q1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsBool(et,ct){return(ct||new q1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsBool(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new q1).__init(et.readInt32(et.position())+et.position(),et)}static startBool(et){et.startObject(0)}static endBool(et){return et.endObject()}static createBool(et){return q1.startBool(et),q1.endBool(et)}},Date$1=class D1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsDate(et,ct){return(ct||new D1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsDate(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new D1).__init(et.readInt32(et.position())+et.position(),et)}unit(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):DateUnit.MILLISECOND}static startDate(et){et.startObject(1)}static addUnit(et,ct){et.addFieldInt16(0,ct,DateUnit.MILLISECOND)}static endDate(et){return et.endObject()}static createDate(et,ct){return D1.startDate(et),D1.addUnit(et,ct),D1.endDate(et)}},Decimal$1=class i1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsDecimal(et,ct){return(ct||new i1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsDecimal(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new i1).__init(et.readInt32(et.position())+et.position(),et)}precision(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt32(this.bb_pos+et):0}scale(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.readInt32(this.bb_pos+et):0}bitWidth(){const et=this.bb.__offset(this.bb_pos,8);return et?this.bb.readInt32(this.bb_pos+et):128}static startDecimal(et){et.startObject(3)}static addPrecision(et,ct){et.addFieldInt32(0,ct,0)}static addScale(et,ct){et.addFieldInt32(1,ct,0)}static addBitWidth(et,ct){et.addFieldInt32(2,ct,128)}static endDecimal(et){return et.endObject()}static createDecimal(et,ct,ut,dt){return i1.startDecimal(et),i1.addPrecision(et,ct),i1.addScale(et,ut),i1.addBitWidth(et,dt),i1.endDecimal(et)}},Duration$2=class S1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsDuration(et,ct){return(ct||new S1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsDuration(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new S1).__init(et.readInt32(et.position())+et.position(),et)}unit(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):TimeUnit.MILLISECOND}static startDuration(et){et.startObject(1)}static addUnit(et,ct){et.addFieldInt16(0,ct,TimeUnit.MILLISECOND)}static endDuration(et){return et.endObject()}static createDuration(et,ct){return S1.startDuration(et),S1.addUnit(et,ct),S1.endDuration(et)}},FixedSizeBinary$1=class v1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsFixedSizeBinary(et,ct){return(ct||new v1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsFixedSizeBinary(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new v1).__init(et.readInt32(et.position())+et.position(),et)}byteWidth(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt32(this.bb_pos+et):0}static startFixedSizeBinary(et){et.startObject(1)}static addByteWidth(et,ct){et.addFieldInt32(0,ct,0)}static endFixedSizeBinary(et){return et.endObject()}static createFixedSizeBinary(et,ct){return v1.startFixedSizeBinary(et),v1.addByteWidth(et,ct),v1.endFixedSizeBinary(et)}},FixedSizeList$2=class _1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsFixedSizeList(et,ct){return(ct||new _1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsFixedSizeList(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new _1).__init(et.readInt32(et.position())+et.position(),et)}listSize(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt32(this.bb_pos+et):0}static startFixedSizeList(et){et.startObject(1)}static addListSize(et,ct){et.addFieldInt32(0,ct,0)}static endFixedSizeList(et){return et.endObject()}static createFixedSizeList(et,ct){return _1.startFixedSizeList(et),_1.addListSize(et,ct),_1.endFixedSizeList(et)}};class FloatingPoint{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsFloatingPoint(et,ct){return(ct||new FloatingPoint).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsFloatingPoint(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new FloatingPoint).__init(et.readInt32(et.position())+et.position(),et)}precision(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):Precision.HALF}static startFloatingPoint(et){et.startObject(1)}static addPrecision(et,ct){et.addFieldInt16(0,ct,Precision.HALF)}static endFloatingPoint(et){return et.endObject()}static createFloatingPoint(et,ct){return FloatingPoint.startFloatingPoint(et),FloatingPoint.addPrecision(et,ct),FloatingPoint.endFloatingPoint(et)}}class Interval{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsInterval(et,ct){return(ct||new Interval).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsInterval(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Interval).__init(et.readInt32(et.position())+et.position(),et)}unit(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):IntervalUnit.YEAR_MONTH}static startInterval(et){et.startObject(1)}static addUnit(et,ct){et.addFieldInt16(0,ct,IntervalUnit.YEAR_MONTH)}static endInterval(et){return et.endObject()}static createInterval(et,ct){return Interval.startInterval(et),Interval.addUnit(et,ct),Interval.endInterval(et)}}let LargeBinary$1=class k1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsLargeBinary(et,ct){return(ct||new k1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsLargeBinary(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new k1).__init(et.readInt32(et.position())+et.position(),et)}static startLargeBinary(et){et.startObject(0)}static endLargeBinary(et){return et.endObject()}static createLargeBinary(et){return k1.startLargeBinary(et),k1.endLargeBinary(et)}},LargeUtf8$1=class I1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsLargeUtf8(et,ct){return(ct||new I1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsLargeUtf8(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new I1).__init(et.readInt32(et.position())+et.position(),et)}static startLargeUtf8(et){et.startObject(0)}static endLargeUtf8(et){return et.endObject()}static createLargeUtf8(et){return I1.startLargeUtf8(et),I1.endLargeUtf8(et)}},List$1=class N1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsList(et,ct){return(ct||new N1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsList(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new N1).__init(et.readInt32(et.position())+et.position(),et)}static startList(et){et.startObject(0)}static endList(et){return et.endObject()}static createList(et){return N1.startList(et),N1.endList(et)}},Map$4=class T1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsMap(et,ct){return(ct||new T1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsMap(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new T1).__init(et.readInt32(et.position())+et.position(),et)}keysSorted(){const et=this.bb.__offset(this.bb_pos,4);return et?!!this.bb.readInt8(this.bb_pos+et):!1}static startMap(et){et.startObject(1)}static addKeysSorted(et,ct){et.addFieldInt8(0,+ct,0)}static endMap(et){return et.endObject()}static createMap(et,ct){return T1.startMap(et),T1.addKeysSorted(et,ct),T1.endMap(et)}},Null$1=class L1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsNull(et,ct){return(ct||new L1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsNull(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new L1).__init(et.readInt32(et.position())+et.position(),et)}static startNull(et){et.startObject(0)}static endNull(et){return et.endObject()}static createNull(et){return L1.startNull(et),L1.endNull(et)}};class Struct_{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsStruct_(et,ct){return(ct||new Struct_).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsStruct_(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Struct_).__init(et.readInt32(et.position())+et.position(),et)}static startStruct_(et){et.startObject(0)}static endStruct_(et){return et.endObject()}static createStruct_(et){return Struct_.startStruct_(et),Struct_.endStruct_(et)}}class Time{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsTime(et,ct){return(ct||new Time).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsTime(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Time).__init(et.readInt32(et.position())+et.position(),et)}unit(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):TimeUnit.MILLISECOND}bitWidth(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.readInt32(this.bb_pos+et):32}static startTime(et){et.startObject(2)}static addUnit(et,ct){et.addFieldInt16(0,ct,TimeUnit.MILLISECOND)}static addBitWidth(et,ct){et.addFieldInt32(1,ct,32)}static endTime(et){return et.endObject()}static createTime(et,ct,ut){return Time.startTime(et),Time.addUnit(et,ct),Time.addBitWidth(et,ut),Time.endTime(et)}}class Timestamp{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsTimestamp(et,ct){return(ct||new Timestamp).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsTimestamp(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Timestamp).__init(et.readInt32(et.position())+et.position(),et)}unit(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):TimeUnit.SECOND}timezone(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?this.bb.__string(this.bb_pos+ct,et):null}static startTimestamp(et){et.startObject(2)}static addUnit(et,ct){et.addFieldInt16(0,ct,TimeUnit.SECOND)}static addTimezone(et,ct){et.addFieldOffset(1,ct,0)}static endTimestamp(et){return et.endObject()}static createTimestamp(et,ct,ut){return Timestamp.startTimestamp(et),Timestamp.addUnit(et,ct),Timestamp.addTimezone(et,ut),Timestamp.endTimestamp(et)}}class Union{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsUnion(et,ct){return(ct||new Union).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsUnion(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Union).__init(et.readInt32(et.position())+et.position(),et)}mode(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):UnionMode.Sparse}typeIds(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?this.bb.readInt32(this.bb.__vector(this.bb_pos+ct)+et*4):0}typeIdsLength(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.__vector_len(this.bb_pos+et):0}typeIdsArray(){const et=this.bb.__offset(this.bb_pos,6);return et?new Int32Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+et),this.bb.__vector_len(this.bb_pos+et)):null}static startUnion(et){et.startObject(2)}static addMode(et,ct){et.addFieldInt16(0,ct,UnionMode.Sparse)}static addTypeIds(et,ct){et.addFieldOffset(1,ct,0)}static createTypeIdsVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addInt32(ct[ut]);return et.endVector()}static startTypeIdsVector(et,ct){et.startVector(4,ct,4)}static endUnion(et){return et.endObject()}static createUnion(et,ct,ut){return Union.startUnion(et),Union.addMode(et,ct),Union.addTypeIds(et,ut),Union.endUnion(et)}}let Utf8$1=class P1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsUtf8(et,ct){return(ct||new P1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsUtf8(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new P1).__init(et.readInt32(et.position())+et.position(),et)}static startUtf8(et){et.startObject(0)}static endUtf8(et){return et.endObject()}static createUtf8(et){return P1.startUtf8(et),P1.endUtf8(et)}};var Type$2;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.Null=1]="Null",ot[ot.Int=2]="Int",ot[ot.FloatingPoint=3]="FloatingPoint",ot[ot.Binary=4]="Binary",ot[ot.Utf8=5]="Utf8",ot[ot.Bool=6]="Bool",ot[ot.Decimal=7]="Decimal",ot[ot.Date=8]="Date",ot[ot.Time=9]="Time",ot[ot.Timestamp=10]="Timestamp",ot[ot.Interval=11]="Interval",ot[ot.List=12]="List",ot[ot.Struct_=13]="Struct_",ot[ot.Union=14]="Union",ot[ot.FixedSizeBinary=15]="FixedSizeBinary",ot[ot.FixedSizeList=16]="FixedSizeList",ot[ot.Map=17]="Map",ot[ot.Duration=18]="Duration",ot[ot.LargeBinary=19]="LargeBinary",ot[ot.LargeUtf8=20]="LargeUtf8",ot[ot.LargeList=21]="LargeList",ot[ot.RunEndEncoded=22]="RunEndEncoded"})(Type$2||(Type$2={}));let Field$2=class G1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsField(et,ct){return(ct||new G1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsField(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new G1).__init(et.readInt32(et.position())+et.position(),et)}name(et){const ct=this.bb.__offset(this.bb_pos,4);return ct?this.bb.__string(this.bb_pos+ct,et):null}nullable(){const et=this.bb.__offset(this.bb_pos,6);return et?!!this.bb.readInt8(this.bb_pos+et):!1}typeType(){const et=this.bb.__offset(this.bb_pos,8);return et?this.bb.readUint8(this.bb_pos+et):Type$2.NONE}type(et){const ct=this.bb.__offset(this.bb_pos,10);return ct?this.bb.__union(et,this.bb_pos+ct):null}dictionary(et){const ct=this.bb.__offset(this.bb_pos,12);return ct?(et||new DictionaryEncoding).__init(this.bb.__indirect(this.bb_pos+ct),this.bb):null}children(et,ct){const ut=this.bb.__offset(this.bb_pos,14);return ut?(ct||new G1).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+ut)+et*4),this.bb):null}childrenLength(){const et=this.bb.__offset(this.bb_pos,14);return et?this.bb.__vector_len(this.bb_pos+et):0}customMetadata(et,ct){const ut=this.bb.__offset(this.bb_pos,16);return ut?(ct||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+ut)+et*4),this.bb):null}customMetadataLength(){const et=this.bb.__offset(this.bb_pos,16);return et?this.bb.__vector_len(this.bb_pos+et):0}static startField(et){et.startObject(7)}static addName(et,ct){et.addFieldOffset(0,ct,0)}static addNullable(et,ct){et.addFieldInt8(1,+ct,0)}static addTypeType(et,ct){et.addFieldInt8(2,ct,Type$2.NONE)}static addType(et,ct){et.addFieldOffset(3,ct,0)}static addDictionary(et,ct){et.addFieldOffset(4,ct,0)}static addChildren(et,ct){et.addFieldOffset(5,ct,0)}static createChildrenVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addOffset(ct[ut]);return et.endVector()}static startChildrenVector(et,ct){et.startVector(4,ct,4)}static addCustomMetadata(et,ct){et.addFieldOffset(6,ct,0)}static createCustomMetadataVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addOffset(ct[ut]);return et.endVector()}static startCustomMetadataVector(et,ct){et.startVector(4,ct,4)}static endField(et){return et.endObject()}},Schema$5=class a1{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsSchema(et,ct){return(ct||new a1).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsSchema(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new a1).__init(et.readInt32(et.position())+et.position(),et)}endianness(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):Endianness.Little}fields(et,ct){const ut=this.bb.__offset(this.bb_pos,6);return ut?(ct||new Field$2).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+ut)+et*4),this.bb):null}fieldsLength(){const et=this.bb.__offset(this.bb_pos,6);return et?this.bb.__vector_len(this.bb_pos+et):0}customMetadata(et,ct){const ut=this.bb.__offset(this.bb_pos,8);return ut?(ct||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+ut)+et*4),this.bb):null}customMetadataLength(){const et=this.bb.__offset(this.bb_pos,8);return et?this.bb.__vector_len(this.bb_pos+et):0}features(et){const ct=this.bb.__offset(this.bb_pos,10);return ct?this.bb.readInt64(this.bb.__vector(this.bb_pos+ct)+et*8):BigInt(0)}featuresLength(){const et=this.bb.__offset(this.bb_pos,10);return et?this.bb.__vector_len(this.bb_pos+et):0}static startSchema(et){et.startObject(4)}static addEndianness(et,ct){et.addFieldInt16(0,ct,Endianness.Little)}static addFields(et,ct){et.addFieldOffset(1,ct,0)}static createFieldsVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addOffset(ct[ut]);return et.endVector()}static startFieldsVector(et,ct){et.startVector(4,ct,4)}static addCustomMetadata(et,ct){et.addFieldOffset(2,ct,0)}static createCustomMetadataVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addOffset(ct[ut]);return et.endVector()}static startCustomMetadataVector(et,ct){et.startVector(4,ct,4)}static addFeatures(et,ct){et.addFieldOffset(3,ct,0)}static createFeaturesVector(et,ct){et.startVector(8,ct.length,8);for(let ut=ct.length-1;ut>=0;ut--)et.addInt64(ct[ut]);return et.endVector()}static startFeaturesVector(et,ct){et.startVector(8,ct,8)}static endSchema(et){return et.endObject()}static finishSchemaBuffer(et,ct){et.finish(ct)}static finishSizePrefixedSchemaBuffer(et,ct){et.finish(ct,void 0,!0)}static createSchema(et,ct,ut,dt,ft){return a1.startSchema(et),a1.addEndianness(et,ct),a1.addFields(et,ut),a1.addCustomMetadata(et,dt),a1.addFeatures(et,ft),a1.endSchema(et)}};var MessageHeader;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.Schema=1]="Schema",ot[ot.DictionaryBatch=2]="DictionaryBatch",ot[ot.RecordBatch=3]="RecordBatch",ot[ot.Tensor=4]="Tensor",ot[ot.SparseTensor=5]="SparseTensor"})(MessageHeader||(MessageHeader={}));var Type$1;(function(ot){ot[ot.NONE=0]="NONE",ot[ot.Null=1]="Null",ot[ot.Int=2]="Int",ot[ot.Float=3]="Float",ot[ot.Binary=4]="Binary",ot[ot.Utf8=5]="Utf8",ot[ot.Bool=6]="Bool",ot[ot.Decimal=7]="Decimal",ot[ot.Date=8]="Date",ot[ot.Time=9]="Time",ot[ot.Timestamp=10]="Timestamp",ot[ot.Interval=11]="Interval",ot[ot.List=12]="List",ot[ot.Struct=13]="Struct",ot[ot.Union=14]="Union",ot[ot.FixedSizeBinary=15]="FixedSizeBinary",ot[ot.FixedSizeList=16]="FixedSizeList",ot[ot.Map=17]="Map",ot[ot.Duration=18]="Duration",ot[ot.LargeBinary=19]="LargeBinary",ot[ot.LargeUtf8=20]="LargeUtf8",ot[ot.Dictionary=-1]="Dictionary",ot[ot.Int8=-2]="Int8",ot[ot.Int16=-3]="Int16",ot[ot.Int32=-4]="Int32",ot[ot.Int64=-5]="Int64",ot[ot.Uint8=-6]="Uint8",ot[ot.Uint16=-7]="Uint16",ot[ot.Uint32=-8]="Uint32",ot[ot.Uint64=-9]="Uint64",ot[ot.Float16=-10]="Float16",ot[ot.Float32=-11]="Float32",ot[ot.Float64=-12]="Float64",ot[ot.DateDay=-13]="DateDay",ot[ot.DateMillisecond=-14]="DateMillisecond",ot[ot.TimestampSecond=-15]="TimestampSecond",ot[ot.TimestampMillisecond=-16]="TimestampMillisecond",ot[ot.TimestampMicrosecond=-17]="TimestampMicrosecond",ot[ot.TimestampNanosecond=-18]="TimestampNanosecond",ot[ot.TimeSecond=-19]="TimeSecond",ot[ot.TimeMillisecond=-20]="TimeMillisecond",ot[ot.TimeMicrosecond=-21]="TimeMicrosecond",ot[ot.TimeNanosecond=-22]="TimeNanosecond",ot[ot.DenseUnion=-23]="DenseUnion",ot[ot.SparseUnion=-24]="SparseUnion",ot[ot.IntervalDayTime=-25]="IntervalDayTime",ot[ot.IntervalYearMonth=-26]="IntervalYearMonth",ot[ot.DurationSecond=-27]="DurationSecond",ot[ot.DurationMillisecond=-28]="DurationMillisecond",ot[ot.DurationMicrosecond=-29]="DurationMicrosecond",ot[ot.DurationNanosecond=-30]="DurationNanosecond"})(Type$1||(Type$1={}));var BufferType;(function(ot){ot[ot.OFFSET=0]="OFFSET",ot[ot.DATA=1]="DATA",ot[ot.VALIDITY=2]="VALIDITY",ot[ot.TYPE=3]="TYPE"})(BufferType||(BufferType={}));const undf=void 0;function valueToString(ot){if(ot===null)return"null";if(ot===undf)return"undefined";switch(typeof ot){case"number":return`${ot}`;case"bigint":return`${ot}`;case"string":return`"${ot}"`}return typeof ot[Symbol.toPrimitive]=="function"?ot[Symbol.toPrimitive]("string"):ArrayBuffer.isView(ot)?ot instanceof BigInt64Array||ot instanceof BigUint64Array?`[${[...ot].map(et=>valueToString(et))}]`:`[${ot}]`:ArrayBuffer.isView(ot)?`[${ot}]`:JSON.stringify(ot,(et,ct)=>typeof ct=="bigint"?`${ct}`:ct)}const util_pretty_=Object.freeze(Object.defineProperty({__proto__:null,valueToString},Symbol.toStringTag,{value:"Module"}));function bigIntToNumber(ot){if(typeof ot=="bigint"&&(ot<Number.MIN_SAFE_INTEGER||ot>Number.MAX_SAFE_INTEGER))throw new TypeError(`${ot} is not safe to convert to a number.`);return Number(ot)}function divideBigInts(ot,et){return bigIntToNumber(ot/et)+bigIntToNumber(ot%et)/bigIntToNumber(et)}const isArrowBigNumSymbol=Symbol.for("isArrowBigNum");function BigNum(ot,...et){return et.length===0?Object.setPrototypeOf(toArrayBufferView(this.TypedArray,ot),this.constructor.prototype):Object.setPrototypeOf(new this.TypedArray(ot,...et),this.constructor.prototype)}BigNum.prototype[isArrowBigNumSymbol]=!0,BigNum.prototype.toJSON=function(){return`"${bigNumToString(this)}"`},BigNum.prototype.valueOf=function(ot){return bigNumToNumber(this,ot)},BigNum.prototype.toString=function(){return bigNumToString(this)},BigNum.prototype[Symbol.toPrimitive]=function(ot="default"){switch(ot){case"number":return bigNumToNumber(this);case"string":return bigNumToString(this);case"default":return bigNumToBigInt(this)}return bigNumToString(this)};function SignedBigNum(...ot){return BigNum.apply(this,ot)}function UnsignedBigNum(...ot){return BigNum.apply(this,ot)}function DecimalBigNum(...ot){return BigNum.apply(this,ot)}Object.setPrototypeOf(SignedBigNum.prototype,Object.create(Int32Array.prototype)),Object.setPrototypeOf(UnsignedBigNum.prototype,Object.create(Uint32Array.prototype)),Object.setPrototypeOf(DecimalBigNum.prototype,Object.create(Uint32Array.prototype)),Object.assign(SignedBigNum.prototype,BigNum.prototype,{constructor:SignedBigNum,signed:!0,TypedArray:Int32Array,BigIntArray:BigInt64Array}),Object.assign(UnsignedBigNum.prototype,BigNum.prototype,{constructor:UnsignedBigNum,signed:!1,TypedArray:Uint32Array,BigIntArray:BigUint64Array}),Object.assign(DecimalBigNum.prototype,BigNum.prototype,{constructor:DecimalBigNum,signed:!0,TypedArray:Uint32Array,BigIntArray:BigUint64Array});const TWO_TO_THE_64=BigInt(4294967296)*BigInt(4294967296),TWO_TO_THE_64_MINUS_1=TWO_TO_THE_64-BigInt(1);function bigNumToNumber(ot,et){const{buffer:ct,byteOffset:ut,byteLength:dt,signed:ft}=ot,zt=new BigUint64Array(ct,ut,dt/8),Dt=ft&&zt.at(-1)&BigInt(1)<<BigInt(63);let St=BigInt(0),Tt=0;if(Dt){for(const Rt of zt)St|=(Rt^TWO_TO_THE_64_MINUS_1)*(BigInt(1)<<BigInt(64*Tt++));St*=BigInt(-1),St-=BigInt(1)}else for(const Rt of zt)St|=Rt*(BigInt(1)<<BigInt(64*Tt++));if(typeof et=="number"){const Rt=BigInt(Math.pow(10,et)),$t=St/Rt,kt=St%Rt;return bigIntToNumber($t)+bigIntToNumber(kt)/bigIntToNumber(Rt)}return bigIntToNumber(St)}function bigNumToString(ot){if(ot.byteLength===8)return`${new ot.BigIntArray(ot.buffer,ot.byteOffset,1)[0]}`;if(!ot.signed)return unsignedBigNumToString(ot);let et=new Uint16Array(ot.buffer,ot.byteOffset,ot.byteLength/2);if(new Int16Array([et.at(-1)])[0]>=0)return unsignedBigNumToString(ot);et=et.slice();let ct=1;for(let ut=0;ut<et.length;ut++){const dt=et[ut],ft=~dt+ct;et[ut]=ft,ct&=dt===0?1:0}return`-${unsignedBigNumToString(et)}`}function bigNumToBigInt(ot){return ot.byteLength===8?new ot.BigIntArray(ot.buffer,ot.byteOffset,1)[0]:bigNumToString(ot)}function unsignedBigNumToString(ot){let et="";const ct=new Uint32Array(2);let ut=new Uint16Array(ot.buffer,ot.byteOffset,ot.byteLength/2);const dt=new Uint32Array((ut=new Uint16Array(ut).reverse()).buffer);let ft=-1;const zt=ut.length-1;do{for(ct[0]=ut[ft=0];ft<zt;)ut[ft++]=ct[1]=ct[0]/10,ct[0]=(ct[0]-ct[1]*10<<16)+ut[ft];ut[ft]=ct[1]=ct[0]/10,ct[0]=ct[0]-ct[1]*10,et=`${ct[0]}${et}`}while(dt[0]||dt[1]||dt[2]||dt[3]);return et??"0"}class BN{static new(et,ct){switch(ct){case!0:return new SignedBigNum(et);case!1:return new UnsignedBigNum(et)}switch(et.constructor){case Int8Array:case Int16Array:case Int32Array:case BigInt64Array:return new SignedBigNum(et)}return et.byteLength===16?new DecimalBigNum(et):new UnsignedBigNum(et)}static signed(et){return new SignedBigNum(et)}static unsigned(et){return new UnsignedBigNum(et)}static decimal(et){return new DecimalBigNum(et)}constructor(et,ct){return BN.new(et,ct)}}const util_bn_=Object.freeze(Object.defineProperty({__proto__:null,BN,bigNumToBigInt,bigNumToNumber,bigNumToString,isArrowBigNumSymbol},Symbol.toStringTag,{value:"Module"}));var _a$4,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,_o$1,_p,_q,_r,_s,_t$1,_u,_v,_w,_x;class DataType{static isNull(et){return(et==null?void 0:et.typeId)===Type$1.Null}static isInt(et){return(et==null?void 0:et.typeId)===Type$1.Int}static isFloat(et){return(et==null?void 0:et.typeId)===Type$1.Float}static isBinary(et){return(et==null?void 0:et.typeId)===Type$1.Binary}static isLargeBinary(et){return(et==null?void 0:et.typeId)===Type$1.LargeBinary}static isUtf8(et){return(et==null?void 0:et.typeId)===Type$1.Utf8}static isLargeUtf8(et){return(et==null?void 0:et.typeId)===Type$1.LargeUtf8}static isBool(et){return(et==null?void 0:et.typeId)===Type$1.Bool}static isDecimal(et){return(et==null?void 0:et.typeId)===Type$1.Decimal}static isDate(et){return(et==null?void 0:et.typeId)===Type$1.Date}static isTime(et){return(et==null?void 0:et.typeId)===Type$1.Time}static isTimestamp(et){return(et==null?void 0:et.typeId)===Type$1.Timestamp}static isInterval(et){return(et==null?void 0:et.typeId)===Type$1.Interval}static isDuration(et){return(et==null?void 0:et.typeId)===Type$1.Duration}static isList(et){return(et==null?void 0:et.typeId)===Type$1.List}static isStruct(et){return(et==null?void 0:et.typeId)===Type$1.Struct}static isUnion(et){return(et==null?void 0:et.typeId)===Type$1.Union}static isFixedSizeBinary(et){return(et==null?void 0:et.typeId)===Type$1.FixedSizeBinary}static isFixedSizeList(et){return(et==null?void 0:et.typeId)===Type$1.FixedSizeList}static isMap(et){return(et==null?void 0:et.typeId)===Type$1.Map}static isDictionary(et){return(et==null?void 0:et.typeId)===Type$1.Dictionary}static isDenseUnion(et){return DataType.isUnion(et)&&et.mode===UnionMode.Dense}static isSparseUnion(et){return DataType.isUnion(et)&&et.mode===UnionMode.Sparse}constructor(et){this.typeId=et}}_a$4=Symbol.toStringTag,DataType[_a$4]=(ot=>(ot.children=null,ot.ArrayType=Array,ot.OffsetArrayType=Int32Array,ot[Symbol.toStringTag]="DataType"))(DataType.prototype);class Null extends DataType{constructor(){super(Type$1.Null)}toString(){return"Null"}}_b=Symbol.toStringTag,Null[_b]=(ot=>ot[Symbol.toStringTag]="Null")(Null.prototype);class Int_ extends DataType{constructor(et,ct){super(Type$1.Int),this.isSigned=et,this.bitWidth=ct}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?BigInt64Array:BigUint64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`${this.isSigned?"I":"Ui"}nt${this.bitWidth}`}}_c=Symbol.toStringTag,Int_[_c]=(ot=>(ot.isSigned=null,ot.bitWidth=null,ot[Symbol.toStringTag]="Int"))(Int_.prototype);class Int32 extends Int_{constructor(){super(!0,32)}get ArrayType(){return Int32Array}}Object.defineProperty(Int32.prototype,"ArrayType",{value:Int32Array});class Float extends DataType{constructor(et){super(Type$1.Float),this.precision=et}get ArrayType(){switch(this.precision){case Precision.HALF:return Uint16Array;case Precision.SINGLE:return Float32Array;case Precision.DOUBLE:return Float64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}toString(){return`Float${this.precision<<5||16}`}}_d=Symbol.toStringTag,Float[_d]=(ot=>(ot.precision=null,ot[Symbol.toStringTag]="Float"))(Float.prototype);class Binary extends DataType{constructor(){super(Type$1.Binary)}toString(){return"Binary"}}_e=Symbol.toStringTag,Binary[_e]=(ot=>(ot.ArrayType=Uint8Array,ot[Symbol.toStringTag]="Binary"))(Binary.prototype);class LargeBinary extends DataType{constructor(){super(Type$1.LargeBinary)}toString(){return"LargeBinary"}}_f=Symbol.toStringTag,LargeBinary[_f]=(ot=>(ot.ArrayType=Uint8Array,ot.OffsetArrayType=BigInt64Array,ot[Symbol.toStringTag]="LargeBinary"))(LargeBinary.prototype);class Utf8 extends DataType{constructor(){super(Type$1.Utf8)}toString(){return"Utf8"}}_g=Symbol.toStringTag,Utf8[_g]=(ot=>(ot.ArrayType=Uint8Array,ot[Symbol.toStringTag]="Utf8"))(Utf8.prototype);class LargeUtf8 extends DataType{constructor(){super(Type$1.LargeUtf8)}toString(){return"LargeUtf8"}}_h=Symbol.toStringTag,LargeUtf8[_h]=(ot=>(ot.ArrayType=Uint8Array,ot.OffsetArrayType=BigInt64Array,ot[Symbol.toStringTag]="LargeUtf8"))(LargeUtf8.prototype);class Bool extends DataType{constructor(){super(Type$1.Bool)}toString(){return"Bool"}}_j=Symbol.toStringTag,Bool[_j]=(ot=>(ot.ArrayType=Uint8Array,ot[Symbol.toStringTag]="Bool"))(Bool.prototype);class Decimal extends DataType{constructor(et,ct,ut=128){super(Type$1.Decimal),this.scale=et,this.precision=ct,this.bitWidth=ut}toString(){return`Decimal[${this.precision}e${this.scale>0?"+":""}${this.scale}]`}}_k=Symbol.toStringTag,Decimal[_k]=(ot=>(ot.scale=null,ot.precision=null,ot.ArrayType=Uint32Array,ot[Symbol.toStringTag]="Decimal"))(Decimal.prototype);class Date_ extends DataType{constructor(et){super(Type$1.Date),this.unit=et}toString(){return`Date${(this.unit+1)*32}<${DateUnit[this.unit]}>`}get ArrayType(){return this.unit===DateUnit.DAY?Int32Array:BigInt64Array}}_l=Symbol.toStringTag,Date_[_l]=(ot=>(ot.unit=null,ot[Symbol.toStringTag]="Date"))(Date_.prototype);class Time_ extends DataType{constructor(et,ct){super(Type$1.Time),this.unit=et,this.bitWidth=ct}toString(){return`Time${this.bitWidth}<${TimeUnit[this.unit]}>`}get ArrayType(){switch(this.bitWidth){case 32:return Int32Array;case 64:return BigInt64Array}throw new Error(`Unrecognized ${this[Symbol.toStringTag]} type`)}}_m=Symbol.toStringTag,Time_[_m]=(ot=>(ot.unit=null,ot.bitWidth=null,ot[Symbol.toStringTag]="Time"))(Time_.prototype);class Timestamp_ extends DataType{constructor(et,ct){super(Type$1.Timestamp),this.unit=et,this.timezone=ct}toString(){return`Timestamp<${TimeUnit[this.unit]}${this.timezone?`, ${this.timezone}`:""}>`}}_o$1=Symbol.toStringTag,Timestamp_[_o$1]=(ot=>(ot.unit=null,ot.timezone=null,ot.ArrayType=BigInt64Array,ot[Symbol.toStringTag]="Timestamp"))(Timestamp_.prototype);class Interval_ extends DataType{constructor(et){super(Type$1.Interval),this.unit=et}toString(){return`Interval<${IntervalUnit[this.unit]}>`}}_p=Symbol.toStringTag,Interval_[_p]=(ot=>(ot.unit=null,ot.ArrayType=Int32Array,ot[Symbol.toStringTag]="Interval"))(Interval_.prototype);let Duration$1=class extends DataType{constructor(ot){super(Type$1.Duration),this.unit=ot}toString(){return`Duration<${TimeUnit[this.unit]}>`}};_q=Symbol.toStringTag,Duration$1[_q]=(ot=>(ot.unit=null,ot.ArrayType=BigInt64Array,ot[Symbol.toStringTag]="Duration"))(Duration$1.prototype);class List extends DataType{constructor(et){super(Type$1.List),this.children=[et]}toString(){return`List<${this.valueType}>`}get valueType(){return this.children[0].type}get valueField(){return this.children[0]}get ArrayType(){return this.valueType.ArrayType}}_r=Symbol.toStringTag,List[_r]=(ot=>(ot.children=null,ot[Symbol.toStringTag]="List"))(List.prototype);class Struct extends DataType{constructor(et){super(Type$1.Struct),this.children=et}toString(){return`Struct<{${this.children.map(et=>`${et.name}:${et.type}`).join(", ")}}>`}}_s=Symbol.toStringTag,Struct[_s]=(ot=>(ot.children=null,ot[Symbol.toStringTag]="Struct"))(Struct.prototype);class Union_ extends DataType{constructor(et,ct,ut){super(Type$1.Union),this.mode=et,this.children=ut,this.typeIds=ct=Int32Array.from(ct),this.typeIdToChildIndex=ct.reduce((dt,ft,zt)=>(dt[ft]=zt)&&dt||dt,Object.create(null))}toString(){return`${this[Symbol.toStringTag]}<${this.children.map(et=>`${et.type}`).join(" | ")}>`}}_t$1=Symbol.toStringTag,Union_[_t$1]=(ot=>(ot.mode=null,ot.typeIds=null,ot.children=null,ot.typeIdToChildIndex=null,ot.ArrayType=Int8Array,ot[Symbol.toStringTag]="Union"))(Union_.prototype);class FixedSizeBinary extends DataType{constructor(et){super(Type$1.FixedSizeBinary),this.byteWidth=et}toString(){return`FixedSizeBinary[${this.byteWidth}]`}}_u=Symbol.toStringTag,FixedSizeBinary[_u]=(ot=>(ot.byteWidth=null,ot.ArrayType=Uint8Array,ot[Symbol.toStringTag]="FixedSizeBinary"))(FixedSizeBinary.prototype);let FixedSizeList$1=class extends DataType{constructor(ot,et){super(Type$1.FixedSizeList),this.listSize=ot,this.children=[et]}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}>`}};_v=Symbol.toStringTag,FixedSizeList$1[_v]=(ot=>(ot.children=null,ot.listSize=null,ot[Symbol.toStringTag]="FixedSizeList"))(FixedSizeList$1.prototype);class Map_ extends DataType{constructor(et,ct=!1){var ut,dt,ft;if(super(Type$1.Map),this.children=[et],this.keysSorted=ct,et&&(et.name="entries",!((ut=et==null?void 0:et.type)===null||ut===void 0)&&ut.children)){const zt=(dt=et==null?void 0:et.type)===null||dt===void 0?void 0:dt.children[0];zt&&(zt.name="key");const Dt=(ft=et==null?void 0:et.type)===null||ft===void 0?void 0:ft.children[1];Dt&&(Dt.name="value")}}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(et=>`${et.name}:${et.type}`).join(", ")}}>`}}_w=Symbol.toStringTag,Map_[_w]=(ot=>(ot.children=null,ot.keysSorted=null,ot[Symbol.toStringTag]="Map_"))(Map_.prototype);const getId$1=(ot=>()=>++ot)(-1);class Dictionary extends DataType{constructor(et,ct,ut,dt){super(Type$1.Dictionary),this.indices=ct,this.dictionary=et,this.isOrdered=dt||!1,this.id=ut==null?getId$1():bigIntToNumber(ut)}get children(){return this.dictionary.children}get valueType(){return this.dictionary}get ArrayType(){return this.dictionary.ArrayType}toString(){return`Dictionary<${this.indices}, ${this.dictionary}>`}}_x=Symbol.toStringTag,Dictionary[_x]=(ot=>(ot.id=null,ot.indices=null,ot.isOrdered=null,ot.dictionary=null,ot[Symbol.toStringTag]="Dictionary"))(Dictionary.prototype);function strideForType(ot){const et=ot;switch(ot.typeId){case Type$1.Decimal:return ot.bitWidth/32;case Type$1.Interval:return 1+et.unit;case Type$1.FixedSizeList:return et.listSize;case Type$1.FixedSizeBinary:return et.byteWidth;default:return 1}}class Visitor{visitMany(et,...ct){return et.map((ut,dt)=>this.visit(ut,...ct.map(ft=>ft[dt])))}visit(...et){return this.getVisitFn(et[0],!1).apply(this,et)}getVisitFn(et,ct=!0){return getVisitFn(this,et,ct)}getVisitFnByTypeId(et,ct=!0){return getVisitFnByTypeId(this,et,ct)}visitNull(et,...ct){return null}visitBool(et,...ct){return null}visitInt(et,...ct){return null}visitFloat(et,...ct){return null}visitUtf8(et,...ct){return null}visitLargeUtf8(et,...ct){return null}visitBinary(et,...ct){return null}visitLargeBinary(et,...ct){return null}visitFixedSizeBinary(et,...ct){return null}visitDate(et,...ct){return null}visitTimestamp(et,...ct){return null}visitTime(et,...ct){return null}visitDecimal(et,...ct){return null}visitList(et,...ct){return null}visitStruct(et,...ct){return null}visitUnion(et,...ct){return null}visitDictionary(et,...ct){return null}visitInterval(et,...ct){return null}visitDuration(et,...ct){return null}visitFixedSizeList(et,...ct){return null}visitMap(et,...ct){return null}}function getVisitFn(ot,et,ct=!0){return typeof et=="number"?getVisitFnByTypeId(ot,et,ct):typeof et=="string"&&et in Type$1?getVisitFnByTypeId(ot,Type$1[et],ct):et&&et instanceof DataType?getVisitFnByTypeId(ot,inferDType(et),ct):et!=null&&et.type&&et.type instanceof DataType?getVisitFnByTypeId(ot,inferDType(et.type),ct):getVisitFnByTypeId(ot,Type$1.NONE,ct)}function getVisitFnByTypeId(ot,et,ct=!0){let ut=null;switch(et){case Type$1.Null:ut=ot.visitNull;break;case Type$1.Bool:ut=ot.visitBool;break;case Type$1.Int:ut=ot.visitInt;break;case Type$1.Int8:ut=ot.visitInt8||ot.visitInt;break;case Type$1.Int16:ut=ot.visitInt16||ot.visitInt;break;case Type$1.Int32:ut=ot.visitInt32||ot.visitInt;break;case Type$1.Int64:ut=ot.visitInt64||ot.visitInt;break;case Type$1.Uint8:ut=ot.visitUint8||ot.visitInt;break;case Type$1.Uint16:ut=ot.visitUint16||ot.visitInt;break;case Type$1.Uint32:ut=ot.visitUint32||ot.visitInt;break;case Type$1.Uint64:ut=ot.visitUint64||ot.visitInt;break;case Type$1.Float:ut=ot.visitFloat;break;case Type$1.Float16:ut=ot.visitFloat16||ot.visitFloat;break;case Type$1.Float32:ut=ot.visitFloat32||ot.visitFloat;break;case Type$1.Float64:ut=ot.visitFloat64||ot.visitFloat;break;case Type$1.Utf8:ut=ot.visitUtf8;break;case Type$1.LargeUtf8:ut=ot.visitLargeUtf8;break;case Type$1.Binary:ut=ot.visitBinary;break;case Type$1.LargeBinary:ut=ot.visitLargeBinary;break;case Type$1.FixedSizeBinary:ut=ot.visitFixedSizeBinary;break;case Type$1.Date:ut=ot.visitDate;break;case Type$1.DateDay:ut=ot.visitDateDay||ot.visitDate;break;case Type$1.DateMillisecond:ut=ot.visitDateMillisecond||ot.visitDate;break;case Type$1.Timestamp:ut=ot.visitTimestamp;break;case Type$1.TimestampSecond:ut=ot.visitTimestampSecond||ot.visitTimestamp;break;case Type$1.TimestampMillisecond:ut=ot.visitTimestampMillisecond||ot.visitTimestamp;break;case Type$1.TimestampMicrosecond:ut=ot.visitTimestampMicrosecond||ot.visitTimestamp;break;case Type$1.TimestampNanosecond:ut=ot.visitTimestampNanosecond||ot.visitTimestamp;break;case Type$1.Time:ut=ot.visitTime;break;case Type$1.TimeSecond:ut=ot.visitTimeSecond||ot.visitTime;break;case Type$1.TimeMillisecond:ut=ot.visitTimeMillisecond||ot.visitTime;break;case Type$1.TimeMicrosecond:ut=ot.visitTimeMicrosecond||ot.visitTime;break;case Type$1.TimeNanosecond:ut=ot.visitTimeNanosecond||ot.visitTime;break;case Type$1.Decimal:ut=ot.visitDecimal;break;case Type$1.List:ut=ot.visitList;break;case Type$1.Struct:ut=ot.visitStruct;break;case Type$1.Union:ut=ot.visitUnion;break;case Type$1.DenseUnion:ut=ot.visitDenseUnion||ot.visitUnion;break;case Type$1.SparseUnion:ut=ot.visitSparseUnion||ot.visitUnion;break;case Type$1.Dictionary:ut=ot.visitDictionary;break;case Type$1.Interval:ut=ot.visitInterval;break;case Type$1.IntervalDayTime:ut=ot.visitIntervalDayTime||ot.visitInterval;break;case Type$1.IntervalYearMonth:ut=ot.visitIntervalYearMonth||ot.visitInterval;break;case Type$1.Duration:ut=ot.visitDuration;break;case Type$1.DurationSecond:ut=ot.visitDurationSecond||ot.visitDuration;break;case Type$1.DurationMillisecond:ut=ot.visitDurationMillisecond||ot.visitDuration;break;case Type$1.DurationMicrosecond:ut=ot.visitDurationMicrosecond||ot.visitDuration;break;case Type$1.DurationNanosecond:ut=ot.visitDurationNanosecond||ot.visitDuration;break;case Type$1.FixedSizeList:ut=ot.visitFixedSizeList;break;case Type$1.Map:ut=ot.visitMap;break}if(typeof ut=="function")return ut;if(!ct)return()=>null;throw new Error(`Unrecognized type '${Type$1[et]}'`)}function inferDType(ot){switch(ot.typeId){case Type$1.Null:return Type$1.Null;case Type$1.Int:{const{bitWidth:et,isSigned:ct}=ot;switch(et){case 8:return ct?Type$1.Int8:Type$1.Uint8;case 16:return ct?Type$1.Int16:Type$1.Uint16;case 32:return ct?Type$1.Int32:Type$1.Uint32;case 64:return ct?Type$1.Int64:Type$1.Uint64}return Type$1.Int}case Type$1.Float:switch(ot.precision){case Precision.HALF:return Type$1.Float16;case Precision.SINGLE:return Type$1.Float32;case Precision.DOUBLE:return Type$1.Float64}return Type$1.Float;case Type$1.Binary:return Type$1.Binary;case Type$1.LargeBinary:return Type$1.LargeBinary;case Type$1.Utf8:return Type$1.Utf8;case Type$1.LargeUtf8:return Type$1.LargeUtf8;case Type$1.Bool:return Type$1.Bool;case Type$1.Decimal:return Type$1.Decimal;case Type$1.Time:switch(ot.unit){case TimeUnit.SECOND:return Type$1.TimeSecond;case TimeUnit.MILLISECOND:return Type$1.TimeMillisecond;case TimeUnit.MICROSECOND:return Type$1.TimeMicrosecond;case TimeUnit.NANOSECOND:return Type$1.TimeNanosecond}return Type$1.Time;case Type$1.Timestamp:switch(ot.unit){case TimeUnit.SECOND:return Type$1.TimestampSecond;case TimeUnit.MILLISECOND:return Type$1.TimestampMillisecond;case TimeUnit.MICROSECOND:return Type$1.TimestampMicrosecond;case TimeUnit.NANOSECOND:return Type$1.TimestampNanosecond}return Type$1.Timestamp;case Type$1.Date:switch(ot.unit){case DateUnit.DAY:return Type$1.DateDay;case DateUnit.MILLISECOND:return Type$1.DateMillisecond}return Type$1.Date;case Type$1.Interval:switch(ot.unit){case IntervalUnit.DAY_TIME:return Type$1.IntervalDayTime;case IntervalUnit.YEAR_MONTH:return Type$1.IntervalYearMonth}return Type$1.Interval;case Type$1.Duration:switch(ot.unit){case TimeUnit.SECOND:return Type$1.DurationSecond;case TimeUnit.MILLISECOND:return Type$1.DurationMillisecond;case TimeUnit.MICROSECOND:return Type$1.DurationMicrosecond;case TimeUnit.NANOSECOND:return Type$1.DurationNanosecond}return Type$1.Duration;case Type$1.Map:return Type$1.Map;case Type$1.List:return Type$1.List;case Type$1.Struct:return Type$1.Struct;case Type$1.Union:switch(ot.mode){case UnionMode.Dense:return Type$1.DenseUnion;case UnionMode.Sparse:return Type$1.SparseUnion}return Type$1.Union;case Type$1.FixedSizeBinary:return Type$1.FixedSizeBinary;case Type$1.FixedSizeList:return Type$1.FixedSizeList;case Type$1.Dictionary:return Type$1.Dictionary}throw new Error(`Unrecognized type '${Type$1[ot.typeId]}'`)}Visitor.prototype.visitInt8=null,Visitor.prototype.visitInt16=null,Visitor.prototype.visitInt32=null,Visitor.prototype.visitInt64=null,Visitor.prototype.visitUint8=null,Visitor.prototype.visitUint16=null,Visitor.prototype.visitUint32=null,Visitor.prototype.visitUint64=null,Visitor.prototype.visitFloat16=null,Visitor.prototype.visitFloat32=null,Visitor.prototype.visitFloat64=null,Visitor.prototype.visitDateDay=null,Visitor.prototype.visitDateMillisecond=null,Visitor.prototype.visitTimestampSecond=null,Visitor.prototype.visitTimestampMillisecond=null,Visitor.prototype.visitTimestampMicrosecond=null,Visitor.prototype.visitTimestampNanosecond=null,Visitor.prototype.visitTimeSecond=null,Visitor.prototype.visitTimeMillisecond=null,Visitor.prototype.visitTimeMicrosecond=null,Visitor.prototype.visitTimeNanosecond=null,Visitor.prototype.visitDenseUnion=null,Visitor.prototype.visitSparseUnion=null,Visitor.prototype.visitIntervalDayTime=null,Visitor.prototype.visitIntervalYearMonth=null,Visitor.prototype.visitDuration=null,Visitor.prototype.visitDurationSecond=null,Visitor.prototype.visitDurationMillisecond=null,Visitor.prototype.visitDurationMicrosecond=null,Visitor.prototype.visitDurationNanosecond=null;const f64=new Float64Array(1),u32=new Uint32Array(f64.buffer);function uint16ToFloat64(ot){const et=(ot&31744)>>10,ct=(ot&1023)/1024,ut=Math.pow(-1,(ot&32768)>>15);switch(et){case 31:return ut*(ct?Number.NaN:1/0);case 0:return ut*(ct?6103515625e-14*ct:0)}return ut*Math.pow(2,et-15)*(1+ct)}function float64ToUint16(ot){if(ot!==ot)return 32256;f64[0]=ot;const et=(u32[1]&2147483648)>>16&65535;let ct=u32[1]&2146435072,ut=0;return ct>=1089470464?u32[0]>0?ct=31744:(ct=(ct&2080374784)>>16,ut=(u32[1]&1048575)>>10):ct<=1056964608?(ut=1048576+(u32[1]&1048575),ut=1048576+(ut<<(ct>>20)-998)>>21,ct=0):(ct=ct-1056964608>>10,ut=(u32[1]&1048575)+512>>10),et|ct|ut&65535}const util_math_=Object.freeze(Object.defineProperty({__proto__:null,float64ToUint16,uint16ToFloat64},Symbol.toStringTag,{value:"Module"}));class SetVisitor extends Visitor{}function wrapSet(ot){return(et,ct,ut)=>{if(et.setValid(ct,ut!=null))return ot(et,ct,ut)}}const setEpochMsToDays=(ot,et,ct)=>{ot[et]=Math.floor(ct/864e5)},setVariableWidthBytes=(ot,et,ct,ut)=>{if(ct+1<et.length){const dt=bigIntToNumber(et[ct]),ft=bigIntToNumber(et[ct+1]);ot.set(ut.subarray(0,ft-dt),dt)}},setBool$1=({offset:ot,values:et},ct,ut)=>{const dt=ot+ct;ut?et[dt>>3]|=1<<dt%8:et[dt>>3]&=~(1<<dt%8)},setInt=({values:ot},et,ct)=>{ot[et]=ct},setFloat=({values:ot},et,ct)=>{ot[et]=ct},setFloat16=({values:ot},et,ct)=>{ot[et]=float64ToUint16(ct)},setAnyFloat=(ot,et,ct)=>{switch(ot.type.precision){case Precision.HALF:return setFloat16(ot,et,ct);case Precision.SINGLE:case Precision.DOUBLE:return setFloat(ot,et,ct)}},setDateDay=({values:ot},et,ct)=>{setEpochMsToDays(ot,et,ct.valueOf())},setDateMillisecond=({values:ot},et,ct)=>{ot[et]=BigInt(ct)},setFixedSizeBinary=({stride:ot,values:et},ct,ut)=>{et.set(ut.subarray(0,ot),ot*ct)},setBinary=({values:ot,valueOffsets:et},ct,ut)=>setVariableWidthBytes(ot,et,ct,ut),setUtf8=({values:ot,valueOffsets:et},ct,ut)=>setVariableWidthBytes(ot,et,ct,encodeUtf8(ut)),setDate=(ot,et,ct)=>{ot.type.unit===DateUnit.DAY?setDateDay(ot,et,ct):setDateMillisecond(ot,et,ct)},setTimestampSecond=({values:ot},et,ct)=>{ot[et]=BigInt(ct/1e3)},setTimestampMillisecond=({values:ot},et,ct)=>{ot[et]=BigInt(ct)},setTimestampMicrosecond=({values:ot},et,ct)=>{ot[et]=BigInt(ct*1e3)},setTimestampNanosecond=({values:ot},et,ct)=>{ot[et]=BigInt(ct*1e6)},setTimestamp=(ot,et,ct)=>{switch(ot.type.unit){case TimeUnit.SECOND:return setTimestampSecond(ot,et,ct);case TimeUnit.MILLISECOND:return setTimestampMillisecond(ot,et,ct);case TimeUnit.MICROSECOND:return setTimestampMicrosecond(ot,et,ct);case TimeUnit.NANOSECOND:return setTimestampNanosecond(ot,et,ct)}},setTimeSecond=({values:ot},et,ct)=>{ot[et]=ct},setTimeMillisecond=({values:ot},et,ct)=>{ot[et]=ct},setTimeMicrosecond=({values:ot},et,ct)=>{ot[et]=ct},setTimeNanosecond=({values:ot},et,ct)=>{ot[et]=ct},setTime=(ot,et,ct)=>{switch(ot.type.unit){case TimeUnit.SECOND:return setTimeSecond(ot,et,ct);case TimeUnit.MILLISECOND:return setTimeMillisecond(ot,et,ct);case TimeUnit.MICROSECOND:return setTimeMicrosecond(ot,et,ct);case TimeUnit.NANOSECOND:return setTimeNanosecond(ot,et,ct)}},setDecimal=({values:ot,stride:et},ct,ut)=>{ot.set(ut.subarray(0,et),et*ct)},setList=(ot,et,ct)=>{const ut=ot.children[0],dt=ot.valueOffsets,ft=instance$5.getVisitFn(ut);if(Array.isArray(ct))for(let zt=-1,Dt=dt[et],St=dt[et+1];Dt<St;)ft(ut,Dt++,ct[++zt]);else for(let zt=-1,Dt=dt[et],St=dt[et+1];Dt<St;)ft(ut,Dt++,ct.get(++zt))},setMap=(ot,et,ct)=>{const ut=ot.children[0],{valueOffsets:dt}=ot,ft=instance$5.getVisitFn(ut);let{[et]:zt,[et+1]:Dt}=dt;const St=ct instanceof Map?ct.entries():Object.entries(ct);for(const Tt of St)if(ft(ut,zt,Tt),++zt>=Dt)break},_setStructArrayValue=(ot,et)=>(ct,ut,dt,ft)=>ut&&ct(ut,ot,et[ft]),_setStructVectorValue=(ot,et)=>(ct,ut,dt,ft)=>ut&&ct(ut,ot,et.get(ft)),_setStructMapValue=(ot,et)=>(ct,ut,dt,ft)=>ut&&ct(ut,ot,et.get(dt.name)),_setStructObjectValue=(ot,et)=>(ct,ut,dt,ft)=>ut&&ct(ut,ot,et[dt.name]),setStruct=(ot,et,ct)=>{const ut=ot.type.children.map(ft=>instance$5.getVisitFn(ft.type)),dt=ct instanceof Map?_setStructMapValue(et,ct):ct instanceof Vector?_setStructVectorValue(et,ct):Array.isArray(ct)?_setStructArrayValue(et,ct):_setStructObjectValue(et,ct);ot.type.children.forEach((ft,zt)=>dt(ut[zt],ot.children[zt],ft,zt))},setUnion=(ot,et,ct)=>{ot.type.mode===UnionMode.Dense?setDenseUnion(ot,et,ct):setSparseUnion(ot,et,ct)},setDenseUnion=(ot,et,ct)=>{const ut=ot.type.typeIdToChildIndex[ot.typeIds[et]],dt=ot.children[ut];instance$5.visit(dt,ot.valueOffsets[et],ct)},setSparseUnion=(ot,et,ct)=>{const ut=ot.type.typeIdToChildIndex[ot.typeIds[et]],dt=ot.children[ut];instance$5.visit(dt,et,ct)},setDictionary=(ot,et,ct)=>{var ut;(ut=ot.dictionary)===null||ut===void 0||ut.set(ot.values[et],ct)},setIntervalValue=(ot,et,ct)=>{ot.type.unit===IntervalUnit.DAY_TIME?setIntervalDayTime(ot,et,ct):setIntervalYearMonth(ot,et,ct)},setIntervalDayTime=({values:ot},et,ct)=>{ot.set(ct.subarray(0,2),2*et)},setIntervalYearMonth=({values:ot},et,ct)=>{ot[et]=ct[0]*12+ct[1]%12},setDurationSecond=({values:ot},et,ct)=>{ot[et]=ct},setDurationMillisecond=({values:ot},et,ct)=>{ot[et]=ct},setDurationMicrosecond=({values:ot},et,ct)=>{ot[et]=ct},setDurationNanosecond=({values:ot},et,ct)=>{ot[et]=ct},setDuration=(ot,et,ct)=>{switch(ot.type.unit){case TimeUnit.SECOND:return setDurationSecond(ot,et,ct);case TimeUnit.MILLISECOND:return setDurationMillisecond(ot,et,ct);case TimeUnit.MICROSECOND:return setDurationMicrosecond(ot,et,ct);case TimeUnit.NANOSECOND:return setDurationNanosecond(ot,et,ct)}},setFixedSizeList=(ot,et,ct)=>{const{stride:ut}=ot,dt=ot.children[0],ft=instance$5.getVisitFn(dt);if(Array.isArray(ct))for(let zt=-1,Dt=et*ut;++zt<ut;)ft(dt,Dt+zt,ct[zt]);else for(let zt=-1,Dt=et*ut;++zt<ut;)ft(dt,Dt+zt,ct.get(zt))};SetVisitor.prototype.visitBool=wrapSet(setBool$1),SetVisitor.prototype.visitInt=wrapSet(setInt),SetVisitor.prototype.visitInt8=wrapSet(setInt),SetVisitor.prototype.visitInt16=wrapSet(setInt),SetVisitor.prototype.visitInt32=wrapSet(setInt),SetVisitor.prototype.visitInt64=wrapSet(setInt),SetVisitor.prototype.visitUint8=wrapSet(setInt),SetVisitor.prototype.visitUint16=wrapSet(setInt),SetVisitor.prototype.visitUint32=wrapSet(setInt),SetVisitor.prototype.visitUint64=wrapSet(setInt),SetVisitor.prototype.visitFloat=wrapSet(setAnyFloat),SetVisitor.prototype.visitFloat16=wrapSet(setFloat16),SetVisitor.prototype.visitFloat32=wrapSet(setFloat),SetVisitor.prototype.visitFloat64=wrapSet(setFloat),SetVisitor.prototype.visitUtf8=wrapSet(setUtf8),SetVisitor.prototype.visitLargeUtf8=wrapSet(setUtf8),SetVisitor.prototype.visitBinary=wrapSet(setBinary),SetVisitor.prototype.visitLargeBinary=wrapSet(setBinary),SetVisitor.prototype.visitFixedSizeBinary=wrapSet(setFixedSizeBinary),SetVisitor.prototype.visitDate=wrapSet(setDate),SetVisitor.prototype.visitDateDay=wrapSet(setDateDay),SetVisitor.prototype.visitDateMillisecond=wrapSet(setDateMillisecond),SetVisitor.prototype.visitTimestamp=wrapSet(setTimestamp),SetVisitor.prototype.visitTimestampSecond=wrapSet(setTimestampSecond),SetVisitor.prototype.visitTimestampMillisecond=wrapSet(setTimestampMillisecond),SetVisitor.prototype.visitTimestampMicrosecond=wrapSet(setTimestampMicrosecond),SetVisitor.prototype.visitTimestampNanosecond=wrapSet(setTimestampNanosecond),SetVisitor.prototype.visitTime=wrapSet(setTime),SetVisitor.prototype.visitTimeSecond=wrapSet(setTimeSecond),SetVisitor.prototype.visitTimeMillisecond=wrapSet(setTimeMillisecond),SetVisitor.prototype.visitTimeMicrosecond=wrapSet(setTimeMicrosecond),SetVisitor.prototype.visitTimeNanosecond=wrapSet(setTimeNanosecond),SetVisitor.prototype.visitDecimal=wrapSet(setDecimal),SetVisitor.prototype.visitList=wrapSet(setList),SetVisitor.prototype.visitStruct=wrapSet(setStruct),SetVisitor.prototype.visitUnion=wrapSet(setUnion),SetVisitor.prototype.visitDenseUnion=wrapSet(setDenseUnion),SetVisitor.prototype.visitSparseUnion=wrapSet(setSparseUnion),SetVisitor.prototype.visitDictionary=wrapSet(setDictionary),SetVisitor.prototype.visitInterval=wrapSet(setIntervalValue),SetVisitor.prototype.visitIntervalDayTime=wrapSet(setIntervalDayTime),SetVisitor.prototype.visitIntervalYearMonth=wrapSet(setIntervalYearMonth),SetVisitor.prototype.visitDuration=wrapSet(setDuration),SetVisitor.prototype.visitDurationSecond=wrapSet(setDurationSecond),SetVisitor.prototype.visitDurationMillisecond=wrapSet(setDurationMillisecond),SetVisitor.prototype.visitDurationMicrosecond=wrapSet(setDurationMicrosecond),SetVisitor.prototype.visitDurationNanosecond=wrapSet(setDurationNanosecond),SetVisitor.prototype.visitFixedSizeList=wrapSet(setFixedSizeList),SetVisitor.prototype.visitMap=wrapSet(setMap);const instance$5=new SetVisitor,kParent=Symbol.for("parent"),kRowIndex=Symbol.for("rowIndex");class StructRow{constructor(et,ct){return this[kParent]=et,this[kRowIndex]=ct,new Proxy(this,structRowProxyHandler)}toArray(){return Object.values(this.toJSON())}toJSON(){const et=this[kRowIndex],ct=this[kParent],ut=ct.type.children,dt={};for(let ft=-1,zt=ut.length;++ft<zt;)dt[ut[ft].name]=instance$4.visit(ct.children[ft],et);return dt}toString(){return`{${[...this].map(([et,ct])=>`${valueToString(et)}: ${valueToString(ct)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}[Symbol.iterator](){return new StructRowIterator(this[kParent],this[kRowIndex])}}class StructRowIterator{constructor(et,ct){this.childIndex=0,this.children=et.children,this.rowIndex=ct,this.childFields=et.type.children,this.numChildren=this.childFields.length}[Symbol.iterator](){return this}next(){const et=this.childIndex;return et<this.numChildren?(this.childIndex=et+1,{done:!1,value:[this.childFields[et].name,instance$4.visit(this.children[et],this.rowIndex)]}):{done:!0,value:null}}}Object.defineProperties(StructRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kParent]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kRowIndex]:{writable:!0,enumerable:!1,configurable:!1,value:-1}});class StructRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(et){return et[kParent].type.children.map(ct=>ct.name)}has(et,ct){return et[kParent].type.children.some(ut=>ut.name===ct)}getOwnPropertyDescriptor(et,ct){if(et[kParent].type.children.some(ut=>ut.name===ct))return{writable:!0,enumerable:!0,configurable:!0}}get(et,ct){if(Reflect.has(et,ct))return et[ct];const ut=et[kParent].type.children.findIndex(dt=>dt.name===ct);if(ut!==-1){const dt=instance$4.visit(et[kParent].children[ut],et[kRowIndex]);return Reflect.set(et,ct,dt),dt}}set(et,ct,ut){const dt=et[kParent].type.children.findIndex(ft=>ft.name===ct);return dt!==-1?(instance$5.visit(et[kParent].children[dt],et[kRowIndex],ut),Reflect.set(et,ct,ut)):Reflect.has(et,ct)||typeof ct=="symbol"?Reflect.set(et,ct,ut):!1}}const structRowProxyHandler=new StructRowProxyHandler;class GetVisitor extends Visitor{}function wrapGet(ot){return(et,ct)=>et.getValid(ct)?ot(et,ct):null}const epochDaysToMs=(ot,et)=>864e5*ot[et],getNull=(ot,et)=>null,getVariableWidthBytes=(ot,et,ct)=>{if(ct+1>=et.length)return null;const ut=bigIntToNumber(et[ct]),dt=bigIntToNumber(et[ct+1]);return ot.subarray(ut,dt)},getBool$1=({offset:ot,values:et},ct)=>{const ut=ot+ct;return(et[ut>>3]&1<<ut%8)!==0},getDateDay=({values:ot},et)=>epochDaysToMs(ot,et),getDateMillisecond=({values:ot},et)=>bigIntToNumber(ot[et]),getNumeric=({stride:ot,values:et},ct)=>et[ot*ct],getFloat16=({stride:ot,values:et},ct)=>uint16ToFloat64(et[ot*ct]),getBigInts=({values:ot},et)=>ot[et],getFixedSizeBinary=({stride:ot,values:et},ct)=>et.subarray(ot*ct,ot*(ct+1)),getBinary=({values:ot,valueOffsets:et},ct)=>getVariableWidthBytes(ot,et,ct),getUtf8=({values:ot,valueOffsets:et},ct)=>{const ut=getVariableWidthBytes(ot,et,ct);return ut!==null?decodeUtf8(ut):null},getInt=({values:ot},et)=>ot[et],getFloat=({type:ot,values:et},ct)=>ot.precision!==Precision.HALF?et[ct]:uint16ToFloat64(et[ct]),getDate=(ot,et)=>ot.type.unit===DateUnit.DAY?getDateDay(ot,et):getDateMillisecond(ot,et),getTimestampSecond=({values:ot},et)=>1e3*bigIntToNumber(ot[et]),getTimestampMillisecond=({values:ot},et)=>bigIntToNumber(ot[et]),getTimestampMicrosecond=({values:ot},et)=>divideBigInts(ot[et],BigInt(1e3)),getTimestampNanosecond=({values:ot},et)=>divideBigInts(ot[et],BigInt(1e6)),getTimestamp=(ot,et)=>{switch(ot.type.unit){case TimeUnit.SECOND:return getTimestampSecond(ot,et);case TimeUnit.MILLISECOND:return getTimestampMillisecond(ot,et);case TimeUnit.MICROSECOND:return getTimestampMicrosecond(ot,et);case TimeUnit.NANOSECOND:return getTimestampNanosecond(ot,et)}},getTimeSecond=({values:ot},et)=>ot[et],getTimeMillisecond=({values:ot},et)=>ot[et],getTimeMicrosecond=({values:ot},et)=>ot[et],getTimeNanosecond=({values:ot},et)=>ot[et],getTime=(ot,et)=>{switch(ot.type.unit){case TimeUnit.SECOND:return getTimeSecond(ot,et);case TimeUnit.MILLISECOND:return getTimeMillisecond(ot,et);case TimeUnit.MICROSECOND:return getTimeMicrosecond(ot,et);case TimeUnit.NANOSECOND:return getTimeNanosecond(ot,et)}},getDecimal=({values:ot,stride:et},ct)=>BN.decimal(ot.subarray(et*ct,et*(ct+1))),getList=(ot,et)=>{const{valueOffsets:ct,stride:ut,children:dt}=ot,{[et*ut]:ft,[et*ut+1]:zt}=ct,Dt=dt[0].slice(ft,zt-ft);return new Vector([Dt])},getMap=(ot,et)=>{const{valueOffsets:ct,children:ut}=ot,{[et]:dt,[et+1]:ft}=ct,zt=ut[0];return new MapRow(zt.slice(dt,ft-dt))},getStruct=(ot,et)=>new StructRow(ot,et),getUnion=(ot,et)=>ot.type.mode===UnionMode.Dense?getDenseUnion(ot,et):getSparseUnion(ot,et),getDenseUnion=(ot,et)=>{const ct=ot.type.typeIdToChildIndex[ot.typeIds[et]],ut=ot.children[ct];return instance$4.visit(ut,ot.valueOffsets[et])},getSparseUnion=(ot,et)=>{const ct=ot.type.typeIdToChildIndex[ot.typeIds[et]],ut=ot.children[ct];return instance$4.visit(ut,et)},getDictionary=(ot,et)=>{var ct;return(ct=ot.dictionary)===null||ct===void 0?void 0:ct.get(ot.values[et])},getInterval=(ot,et)=>ot.type.unit===IntervalUnit.DAY_TIME?getIntervalDayTime(ot,et):getIntervalYearMonth(ot,et),getIntervalDayTime=({values:ot},et)=>ot.subarray(2*et,2*(et+1)),getIntervalYearMonth=({values:ot},et)=>{const ct=ot[et],ut=new Int32Array(2);return ut[0]=Math.trunc(ct/12),ut[1]=Math.trunc(ct%12),ut},getDurationSecond=({values:ot},et)=>ot[et],getDurationMillisecond=({values:ot},et)=>ot[et],getDurationMicrosecond=({values:ot},et)=>ot[et],getDurationNanosecond=({values:ot},et)=>ot[et],getDuration=(ot,et)=>{switch(ot.type.unit){case TimeUnit.SECOND:return getDurationSecond(ot,et);case TimeUnit.MILLISECOND:return getDurationMillisecond(ot,et);case TimeUnit.MICROSECOND:return getDurationMicrosecond(ot,et);case TimeUnit.NANOSECOND:return getDurationNanosecond(ot,et)}},getFixedSizeList=(ot,et)=>{const{stride:ct,children:ut}=ot,dt=ut[0].slice(et*ct,ct);return new Vector([dt])};GetVisitor.prototype.visitNull=wrapGet(getNull),GetVisitor.prototype.visitBool=wrapGet(getBool$1),GetVisitor.prototype.visitInt=wrapGet(getInt),GetVisitor.prototype.visitInt8=wrapGet(getNumeric),GetVisitor.prototype.visitInt16=wrapGet(getNumeric),GetVisitor.prototype.visitInt32=wrapGet(getNumeric),GetVisitor.prototype.visitInt64=wrapGet(getBigInts),GetVisitor.prototype.visitUint8=wrapGet(getNumeric),GetVisitor.prototype.visitUint16=wrapGet(getNumeric),GetVisitor.prototype.visitUint32=wrapGet(getNumeric),GetVisitor.prototype.visitUint64=wrapGet(getBigInts),GetVisitor.prototype.visitFloat=wrapGet(getFloat),GetVisitor.prototype.visitFloat16=wrapGet(getFloat16),GetVisitor.prototype.visitFloat32=wrapGet(getNumeric),GetVisitor.prototype.visitFloat64=wrapGet(getNumeric),GetVisitor.prototype.visitUtf8=wrapGet(getUtf8),GetVisitor.prototype.visitLargeUtf8=wrapGet(getUtf8),GetVisitor.prototype.visitBinary=wrapGet(getBinary),GetVisitor.prototype.visitLargeBinary=wrapGet(getBinary),GetVisitor.prototype.visitFixedSizeBinary=wrapGet(getFixedSizeBinary),GetVisitor.prototype.visitDate=wrapGet(getDate),GetVisitor.prototype.visitDateDay=wrapGet(getDateDay),GetVisitor.prototype.visitDateMillisecond=wrapGet(getDateMillisecond),GetVisitor.prototype.visitTimestamp=wrapGet(getTimestamp),GetVisitor.prototype.visitTimestampSecond=wrapGet(getTimestampSecond),GetVisitor.prototype.visitTimestampMillisecond=wrapGet(getTimestampMillisecond),GetVisitor.prototype.visitTimestampMicrosecond=wrapGet(getTimestampMicrosecond),GetVisitor.prototype.visitTimestampNanosecond=wrapGet(getTimestampNanosecond),GetVisitor.prototype.visitTime=wrapGet(getTime),GetVisitor.prototype.visitTimeSecond=wrapGet(getTimeSecond),GetVisitor.prototype.visitTimeMillisecond=wrapGet(getTimeMillisecond),GetVisitor.prototype.visitTimeMicrosecond=wrapGet(getTimeMicrosecond),GetVisitor.prototype.visitTimeNanosecond=wrapGet(getTimeNanosecond),GetVisitor.prototype.visitDecimal=wrapGet(getDecimal),GetVisitor.prototype.visitList=wrapGet(getList),GetVisitor.prototype.visitStruct=wrapGet(getStruct),GetVisitor.prototype.visitUnion=wrapGet(getUnion),GetVisitor.prototype.visitDenseUnion=wrapGet(getDenseUnion),GetVisitor.prototype.visitSparseUnion=wrapGet(getSparseUnion),GetVisitor.prototype.visitDictionary=wrapGet(getDictionary),GetVisitor.prototype.visitInterval=wrapGet(getInterval),GetVisitor.prototype.visitIntervalDayTime=wrapGet(getIntervalDayTime),GetVisitor.prototype.visitIntervalYearMonth=wrapGet(getIntervalYearMonth),GetVisitor.prototype.visitDuration=wrapGet(getDuration),GetVisitor.prototype.visitDurationSecond=wrapGet(getDurationSecond),GetVisitor.prototype.visitDurationMillisecond=wrapGet(getDurationMillisecond),GetVisitor.prototype.visitDurationMicrosecond=wrapGet(getDurationMicrosecond),GetVisitor.prototype.visitDurationNanosecond=wrapGet(getDurationNanosecond),GetVisitor.prototype.visitFixedSizeList=wrapGet(getFixedSizeList),GetVisitor.prototype.visitMap=wrapGet(getMap);const instance$4=new GetVisitor,kKeys=Symbol.for("keys"),kVals=Symbol.for("vals"),kKeysAsStrings=Symbol.for("kKeysAsStrings"),_kKeysAsStrings=Symbol.for("_kKeysAsStrings");class MapRow{constructor(et){return this[kKeys]=new Vector([et.children[0]]).memoize(),this[kVals]=et.children[1],new Proxy(this,new MapRowProxyHandler)}get[kKeysAsStrings](){return this[_kKeysAsStrings]||(this[_kKeysAsStrings]=Array.from(this[kKeys].toArray(),String))}[Symbol.iterator](){return new MapRowIterator(this[kKeys],this[kVals])}get size(){return this[kKeys].length}toArray(){return Object.values(this.toJSON())}toJSON(){const et=this[kKeys],ct=this[kVals],ut={};for(let dt=-1,ft=et.length;++dt<ft;)ut[et.get(dt)]=instance$4.visit(ct,dt);return ut}toString(){return`{${[...this].map(([et,ct])=>`${valueToString(et)}: ${valueToString(ct)}`).join(", ")}}`}[Symbol.for("nodejs.util.inspect.custom")](){return this.toString()}}class MapRowIterator{constructor(et,ct){this.keys=et,this.vals=ct,this.keyIndex=0,this.numKeys=et.length}[Symbol.iterator](){return this}next(){const et=this.keyIndex;return et===this.numKeys?{done:!0,value:null}:(this.keyIndex++,{done:!1,value:[this.keys.get(et),instance$4.visit(this.vals,et)]})}}class MapRowProxyHandler{isExtensible(){return!1}deleteProperty(){return!1}preventExtensions(){return!0}ownKeys(et){return et[kKeysAsStrings]}has(et,ct){return et[kKeysAsStrings].includes(ct)}getOwnPropertyDescriptor(et,ct){if(et[kKeysAsStrings].indexOf(ct)!==-1)return{writable:!0,enumerable:!0,configurable:!0}}get(et,ct){if(Reflect.has(et,ct))return et[ct];const ut=et[kKeysAsStrings].indexOf(ct);if(ut!==-1){const dt=instance$4.visit(Reflect.get(et,kVals),ut);return Reflect.set(et,ct,dt),dt}}set(et,ct,ut){const dt=et[kKeysAsStrings].indexOf(ct);return dt!==-1?(instance$5.visit(Reflect.get(et,kVals),dt,ut),Reflect.set(et,ct,ut)):Reflect.has(et,ct)?Reflect.set(et,ct,ut):!1}}Object.defineProperties(MapRow.prototype,{[Symbol.toStringTag]:{enumerable:!1,configurable:!1,value:"Row"},[kKeys]:{writable:!0,enumerable:!1,configurable:!1,value:null},[kVals]:{writable:!0,enumerable:!1,configurable:!1,value:null},[_kKeysAsStrings]:{writable:!0,enumerable:!1,configurable:!1,value:null}});let tmp;function clampRange(ot,et,ct,ut){const{length:dt=0}=ot;let ft=typeof et!="number"?0:et,zt=typeof ct!="number"?dt:ct;return ft<0&&(ft=(ft%dt+dt)%dt),zt<0&&(zt=(zt%dt+dt)%dt),zt<ft&&(tmp=ft,ft=zt,zt=tmp),zt>dt&&(zt=dt),ut?ut(ot,ft,zt):[ft,zt]}const wrapIndex=(ot,et)=>ot<0?et+ot:ot,isNaNFast=ot=>ot!==ot;function createElementComparator(ot){if(typeof ot!="object"||ot===null)return isNaNFast(ot)?isNaNFast:et=>et===ot;if(ot instanceof Date){const et=ot.valueOf();return ct=>ct instanceof Date?ct.valueOf()===et:!1}return ArrayBuffer.isView(ot)?et=>et?compareArrayLike(ot,et):!1:ot instanceof Map?createMapComparator(ot):Array.isArray(ot)?createArrayLikeComparator(ot):ot instanceof Vector?createVectorComparator(ot):createObjectComparator(ot,!0)}function createArrayLikeComparator(ot){const et=[];for(let ct=-1,ut=ot.length;++ct<ut;)et[ct]=createElementComparator(ot[ct]);return createSubElementsComparator(et)}function createMapComparator(ot){let et=-1;const ct=[];for(const ut of ot.values())ct[++et]=createElementComparator(ut);return createSubElementsComparator(ct)}function createVectorComparator(ot){const et=[];for(let ct=-1,ut=ot.length;++ct<ut;)et[ct]=createElementComparator(ot.get(ct));return createSubElementsComparator(et)}function createObjectComparator(ot,et=!1){const ct=Object.keys(ot);if(!et&&ct.length===0)return()=>!1;const ut=[];for(let dt=-1,ft=ct.length;++dt<ft;)ut[dt]=createElementComparator(ot[ct[dt]]);return createSubElementsComparator(ut,ct)}function createSubElementsComparator(ot,et){return ct=>{if(!ct||typeof ct!="object")return!1;switch(ct.constructor){case Array:return compareArray$1(ot,ct);case Map:return compareObject(ot,ct,ct.keys());case MapRow:case StructRow:case Object:case void 0:return compareObject(ot,ct,et||Object.keys(ct))}return ct instanceof Vector?compareVector(ot,ct):!1}}function compareArray$1(ot,et){const ct=ot.length;if(et.length!==ct)return!1;for(let ut=-1;++ut<ct;)if(!ot[ut](et[ut]))return!1;return!0}function compareVector(ot,et){const ct=ot.length;if(et.length!==ct)return!1;for(let ut=-1;++ut<ct;)if(!ot[ut](et.get(ut)))return!1;return!0}function compareObject(ot,et,ct){const ut=ct[Symbol.iterator](),dt=et instanceof Map?et.keys():Object.keys(et)[Symbol.iterator](),ft=et instanceof Map?et.values():Object.values(et)[Symbol.iterator]();let zt=0;const Dt=ot.length;let St=ft.next(),Tt=ut.next(),Rt=dt.next();for(;zt<Dt&&!Tt.done&&!Rt.done&&!St.done&&!(Tt.value!==Rt.value||!ot[zt](St.value));++zt,Tt=ut.next(),Rt=dt.next(),St=ft.next());return zt===Dt&&Tt.done&&Rt.done&&St.done?!0:(ut.return&&ut.return(),dt.return&&dt.return(),ft.return&&ft.return(),!1)}const util_vector_=Object.freeze(Object.defineProperty({__proto__:null,clampRange,createElementComparator,wrapIndex},Symbol.toStringTag,{value:"Module"}));function getBool(ot,et,ct,ut){return(ct&1<<ut)!==0}function getBit(ot,et,ct,ut){return(ct&1<<ut)>>ut}function setBool(ot,et,ct){return ct?!!(ot[et>>3]|=1<<et%8)||!0:!(ot[et>>3]&=~(1<<et%8))&&!1}function truncateBitmap(ot,et,ct){const ut=ct.byteLength+7&-8;if(ot>0||ct.byteLength<ut){const dt=new Uint8Array(ut);return dt.set(ot%8===0?ct.subarray(ot>>3):packBools(new BitIterator(ct,ot,et,null,getBool)).subarray(0,ut)),dt}return ct}function packBools(ot){const et=[];let ct=0,ut=0,dt=0;for(const zt of ot)zt&&(dt|=1<<ut),++ut===8&&(et[ct++]=dt,dt=ut=0);(ct===0||ut>0)&&(et[ct++]=dt);const ft=new Uint8Array(et.length+7&-8);return ft.set(et),ft}class BitIterator{constructor(et,ct,ut,dt,ft){this.bytes=et,this.length=ut,this.context=dt,this.get=ft,this.bit=ct%8,this.byteIndex=ct>>3,this.byte=et[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 popcnt_bit_range(ot,et,ct){if(ct-et<=0)return 0;if(ct-et<8){let ft=0;for(const zt of new BitIterator(ot,et,ct-et,ot,getBit))ft+=zt;return ft}const ut=ct>>3<<3,dt=et+(et%8===0?0:8-et%8);return popcnt_bit_range(ot,et,dt)+popcnt_bit_range(ot,ut,ct)+popcnt_array(ot,dt>>3,ut-dt>>3)}function popcnt_array(ot,et,ct){let ut=0,dt=Math.trunc(et);const ft=new DataView(ot.buffer,ot.byteOffset,ot.byteLength),zt=ct===void 0?ot.byteLength:dt+ct;for(;zt-dt>=4;)ut+=popcnt_uint32(ft.getUint32(dt)),dt+=4;for(;zt-dt>=2;)ut+=popcnt_uint32(ft.getUint16(dt)),dt+=2;for(;zt-dt>=1;)ut+=popcnt_uint32(ft.getUint8(dt)),dt+=1;return ut}function popcnt_uint32(ot){let et=Math.trunc(ot);return et=et-(et>>>1&1431655765),et=(et&858993459)+(et>>>2&858993459),(et+(et>>>4)&252645135)*16843009>>>24}const util_bit_=Object.freeze(Object.defineProperty({__proto__:null,BitIterator,getBit,getBool,packBools,popcnt_array,popcnt_bit_range,popcnt_uint32,setBool,truncateBitmap},Symbol.toStringTag,{value:"Module"})),kUnknownNullCount=-1;class Data{get typeId(){return this.type.typeId}get ArrayType(){return this.type.ArrayType}get buffers(){return[this.valueOffsets,this.values,this.nullBitmap,this.typeIds]}get nullable(){if(this._nullCount!==0){const{type:et}=this;return DataType.isSparseUnion(et)?this.children.some(ct=>ct.nullable):DataType.isDenseUnion(et)?this.children.some(ct=>ct.nullable):this.nullBitmap&&this.nullBitmap.byteLength>0}return!0}get byteLength(){let et=0;const{valueOffsets:ct,values:ut,nullBitmap:dt,typeIds:ft}=this;return ct&&(et+=ct.byteLength),ut&&(et+=ut.byteLength),dt&&(et+=dt.byteLength),ft&&(et+=ft.byteLength),this.children.reduce((zt,Dt)=>zt+Dt.byteLength,et)}get nullCount(){if(DataType.isUnion(this.type))return this.children.reduce((ut,dt)=>ut+dt.nullCount,0);let et=this._nullCount,ct;return et<=kUnknownNullCount&&(ct=this.nullBitmap)&&(this._nullCount=et=ct.length===0?0:this.length-popcnt_bit_range(ct,this.offset,this.offset+this.length)),et}constructor(et,ct,ut,dt,ft,zt=[],Dt){this.type=et,this.children=zt,this.dictionary=Dt,this.offset=Math.floor(Math.max(ct||0,0)),this.length=Math.floor(Math.max(ut||0,0)),this._nullCount=Math.floor(Math.max(dt||0,-1));let St;ft instanceof Data?(this.stride=ft.stride,this.values=ft.values,this.typeIds=ft.typeIds,this.nullBitmap=ft.nullBitmap,this.valueOffsets=ft.valueOffsets):(this.stride=strideForType(et),ft&&((St=ft[0])&&(this.valueOffsets=St),(St=ft[1])&&(this.values=St),(St=ft[2])&&(this.nullBitmap=St),(St=ft[3])&&(this.typeIds=St)))}getValid(et){const{type:ct}=this;if(DataType.isUnion(ct)){const ut=ct,dt=this.children[ut.typeIdToChildIndex[this.typeIds[et]]],ft=ut.mode===UnionMode.Dense?this.valueOffsets[et]:et;return dt.getValid(ft)}if(this.nullable&&this.nullCount>0){const ut=this.offset+et;return(this.nullBitmap[ut>>3]&1<<ut%8)!==0}return!0}setValid(et,ct){let ut;const{type:dt}=this;if(DataType.isUnion(dt)){const ft=dt,zt=this.children[ft.typeIdToChildIndex[this.typeIds[et]]],Dt=ft.mode===UnionMode.Dense?this.valueOffsets[et]:et;ut=zt.getValid(Dt),zt.setValid(Dt,ct)}else{let{nullBitmap:ft}=this;const{offset:zt,length:Dt}=this,St=zt+et,Tt=1<<St%8,Rt=St>>3;(!ft||ft.byteLength<=Rt)&&(ft=new Uint8Array((zt+Dt+63&-64)>>3).fill(255),this.nullCount>0?(ft.set(truncateBitmap(zt,Dt,this.nullBitmap),0),Object.assign(this,{nullBitmap:ft})):Object.assign(this,{nullBitmap:ft,_nullCount:0}));const $t=ft[Rt];ut=($t&Tt)!==0,ft[Rt]=ct?$t|Tt:$t&~Tt}return ut!==!!ct&&(this._nullCount=this.nullCount+(ct?-1:1)),ct}clone(et=this.type,ct=this.offset,ut=this.length,dt=this._nullCount,ft=this,zt=this.children){return new Data(et,ct,ut,dt,ft,zt,this.dictionary)}slice(et,ct){const{stride:ut,typeId:dt,children:ft}=this,zt=+(this._nullCount===0)-1,Dt=dt===16?ut:1,St=this._sliceBuffers(et,ct,ut,dt);return this.clone(this.type,this.offset+et,ct,zt,St,ft.length===0||this.valueOffsets?ft:this._sliceChildren(ft,Dt*et,Dt*ct))}_changeLengthAndBackfillNullBitmap(et){if(this.typeId===Type$1.Null)return this.clone(this.type,0,et,0);const{length:ct,nullCount:ut}=this,dt=new Uint8Array((et+63&-64)>>3).fill(255,0,ct>>3);dt[ct>>3]=(1<<ct-(ct&-8))-1,ut>0&&dt.set(truncateBitmap(this.offset,ct,this.nullBitmap),0);const ft=this.buffers;return ft[BufferType.VALIDITY]=dt,this.clone(this.type,0,et,ut+(et-ct),ft)}_sliceBuffers(et,ct,ut,dt){let ft;const{buffers:zt}=this;return(ft=zt[BufferType.TYPE])&&(zt[BufferType.TYPE]=ft.subarray(et,et+ct)),(ft=zt[BufferType.OFFSET])&&(zt[BufferType.OFFSET]=ft.subarray(et,et+ct+1))||(ft=zt[BufferType.DATA])&&(zt[BufferType.DATA]=dt===6?ft:ft.subarray(ut*et,ut*(et+ct))),zt}_sliceChildren(et,ct,ut){return et.map(dt=>dt.slice(ct,ut))}}Data.prototype.children=Object.freeze([]);class MakeDataVisitor extends Visitor{visit(et){return this.getVisitFn(et.type).call(this,et)}visitNull(et){const{["type"]:ct,["offset"]:ut=0,["length"]:dt=0}=et;return new Data(ct,ut,dt,dt)}visitBool(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length>>3,["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitInt(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length,["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitFloat(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length,["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitUtf8(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.data),ft=toUint8Array(et.nullBitmap),zt=toInt32Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,dt,ft])}visitLargeUtf8(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.data),ft=toUint8Array(et.nullBitmap),zt=toBigInt64Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,dt,ft])}visitBinary(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.data),ft=toUint8Array(et.nullBitmap),zt=toInt32Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,dt,ft])}visitLargeBinary(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.data),ft=toUint8Array(et.nullBitmap),zt=toBigInt64Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,dt,ft])}visitFixedSizeBinary(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitDate(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitTimestamp(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitTime(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitDecimal(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitList(et){const{["type"]:ct,["offset"]:ut=0,["child"]:dt}=et,ft=toUint8Array(et.nullBitmap),zt=toInt32Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,void 0,ft],[dt])}visitStruct(et){const{["type"]:ct,["offset"]:ut=0,["children"]:dt=[]}=et,ft=toUint8Array(et.nullBitmap),{length:zt=dt.reduce((St,{length:Tt})=>Math.max(St,Tt),0),nullCount:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,void 0,ft],dt)}visitUnion(et){const{["type"]:ct,["offset"]:ut=0,["children"]:dt=[]}=et,ft=toArrayBufferView(ct.ArrayType,et.typeIds),{["length"]:zt=ft.length,["nullCount"]:Dt=-1}=et;if(DataType.isSparseUnion(ct))return new Data(ct,ut,zt,Dt,[void 0,void 0,void 0,ft],dt);const St=toInt32Array(et.valueOffsets);return new Data(ct,ut,zt,Dt,[St,void 0,void 0,ft],dt)}visitDictionary(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.indices.ArrayType,et.data),{["dictionary"]:zt=new Vector([new MakeDataVisitor().visit({type:ct.dictionary})])}=et,{["length"]:Dt=ft.length,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[void 0,ft,dt],[],zt)}visitInterval(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitDuration(et){const{["type"]:ct,["offset"]:ut=0}=et,dt=toUint8Array(et.nullBitmap),ft=toArrayBufferView(ct.ArrayType,et.data),{["length"]:zt=ft.length,["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,ft,dt])}visitFixedSizeList(et){const{["type"]:ct,["offset"]:ut=0,["child"]:dt=new MakeDataVisitor().visit({type:ct.valueType})}=et,ft=toUint8Array(et.nullBitmap),{["length"]:zt=dt.length/strideForType(ct),["nullCount"]:Dt=et.nullBitmap?-1:0}=et;return new Data(ct,ut,zt,Dt,[void 0,void 0,ft],[dt])}visitMap(et){const{["type"]:ct,["offset"]:ut=0,["child"]:dt=new MakeDataVisitor().visit({type:ct.childType})}=et,ft=toUint8Array(et.nullBitmap),zt=toInt32Array(et.valueOffsets),{["length"]:Dt=zt.length-1,["nullCount"]:St=et.nullBitmap?-1:0}=et;return new Data(ct,ut,Dt,St,[zt,void 0,ft],[dt])}}const makeDataVisitor=new MakeDataVisitor;function makeData(ot){return makeDataVisitor.visit(ot)}class ChunkedIterator{constructor(et=0,ct){this.numChunks=et,this.getChunkIterator=ct,this.chunkIndex=0,this.chunkIterator=this.getChunkIterator(0)}next(){for(;this.chunkIndex<this.numChunks;){const et=this.chunkIterator.next();if(!et.done)return et;++this.chunkIndex<this.numChunks&&(this.chunkIterator=this.getChunkIterator(this.chunkIndex))}return{done:!0,value:null}}[Symbol.iterator](){return this}}function computeChunkNullable(ot){return ot.some(et=>et.nullable)}function computeChunkNullCounts(ot){return ot.reduce((et,ct)=>et+ct.nullCount,0)}function computeChunkOffsets(ot){return ot.reduce((et,ct,ut)=>(et[ut+1]=et[ut]+ct.length,et),new Uint32Array(ot.length+1))}function sliceChunks$1(ot,et,ct,ut){const dt=[];for(let ft=-1,zt=ot.length;++ft<zt;){const Dt=ot[ft],St=et[ft],{length:Tt}=Dt;if(St>=ut)break;if(ct>=St+Tt)continue;if(St>=ct&&St+Tt<=ut){dt.push(Dt);continue}const Rt=Math.max(0,ct-St),$t=Math.min(ut-St,Tt);dt.push(Dt.slice(Rt,$t-Rt))}return dt.length===0&&dt.push(ot[0].slice(0,0)),dt}function binarySearch(ot,et,ct,ut){let dt=0,ft=0,zt=et.length-1;do{if(dt>=zt-1)return ct<et[zt]?ut(ot,dt,ct-et[dt]):null;ft=dt+Math.trunc((zt-dt)*.5),ct<et[ft]?zt=ft:dt=ft}while(dt<zt)}function isChunkedValid(ot,et){return ot.getValid(et)}function wrapChunkedCall1(ot){function et(ct,ut,dt){return ot(ct[ut],dt)}return function(ct){const ut=this.data;return binarySearch(ut,this._offsets,ct,et)}}function wrapChunkedCall2(ot){let et;function ct(ut,dt,ft){return ot(ut[dt],ft,et)}return function(ut,dt){const ft=this.data;et=dt;const zt=binarySearch(ft,this._offsets,ut,ct);return et=void 0,zt}}function wrapChunkedIndexOf(ot){let et;function ct(ut,dt,ft){let zt=ft,Dt=0,St=0;for(let Tt=dt-1,Rt=ut.length;++Tt<Rt;){const $t=ut[Tt];if(~(Dt=ot($t,et,zt)))return St+Dt;zt=0,St+=$t.length}return-1}return function(ut,dt){et=ut;const ft=this.data,zt=typeof dt!="number"?ct(ft,0,0):binarySearch(ft,this._offsets,dt,ct);return et=void 0,zt}}class IndexOfVisitor extends Visitor{}function nullIndexOf(ot,et){return et===null&&ot.length>0?0:-1}function indexOfNull(ot,et){const{nullBitmap:ct}=ot;if(!ct||ot.nullCount<=0)return-1;let ut=0;for(const dt of new BitIterator(ct,ot.offset+(et||0),ot.length,ct,getBool)){if(!dt)return ut;++ut}return-1}function indexOfValue(ot,et,ct){if(et===void 0)return-1;if(et===null)switch(ot.typeId){case Type$1.Union:break;case Type$1.Dictionary:break;default:return indexOfNull(ot,ct)}const ut=instance$4.getVisitFn(ot),dt=createElementComparator(et);for(let ft=(ct||0)-1,zt=ot.length;++ft<zt;)if(dt(ut(ot,ft)))return ft;return-1}function indexOfUnion(ot,et,ct){const ut=instance$4.getVisitFn(ot),dt=createElementComparator(et);for(let ft=(ct||0)-1,zt=ot.length;++ft<zt;)if(dt(ut(ot,ft)))return ft;return-1}IndexOfVisitor.prototype.visitNull=nullIndexOf,IndexOfVisitor.prototype.visitBool=indexOfValue,IndexOfVisitor.prototype.visitInt=indexOfValue,IndexOfVisitor.prototype.visitInt8=indexOfValue,IndexOfVisitor.prototype.visitInt16=indexOfValue,IndexOfVisitor.prototype.visitInt32=indexOfValue,IndexOfVisitor.prototype.visitInt64=indexOfValue,IndexOfVisitor.prototype.visitUint8=indexOfValue,IndexOfVisitor.prototype.visitUint16=indexOfValue,IndexOfVisitor.prototype.visitUint32=indexOfValue,IndexOfVisitor.prototype.visitUint64=indexOfValue,IndexOfVisitor.prototype.visitFloat=indexOfValue,IndexOfVisitor.prototype.visitFloat16=indexOfValue,IndexOfVisitor.prototype.visitFloat32=indexOfValue,IndexOfVisitor.prototype.visitFloat64=indexOfValue,IndexOfVisitor.prototype.visitUtf8=indexOfValue,IndexOfVisitor.prototype.visitLargeUtf8=indexOfValue,IndexOfVisitor.prototype.visitBinary=indexOfValue,IndexOfVisitor.prototype.visitLargeBinary=indexOfValue,IndexOfVisitor.prototype.visitFixedSizeBinary=indexOfValue,IndexOfVisitor.prototype.visitDate=indexOfValue,IndexOfVisitor.prototype.visitDateDay=indexOfValue,IndexOfVisitor.prototype.visitDateMillisecond=indexOfValue,IndexOfVisitor.prototype.visitTimestamp=indexOfValue,IndexOfVisitor.prototype.visitTimestampSecond=indexOfValue,IndexOfVisitor.prototype.visitTimestampMillisecond=indexOfValue,IndexOfVisitor.prototype.visitTimestampMicrosecond=indexOfValue,IndexOfVisitor.prototype.visitTimestampNanosecond=indexOfValue,IndexOfVisitor.prototype.visitTime=indexOfValue,IndexOfVisitor.prototype.visitTimeSecond=indexOfValue,IndexOfVisitor.prototype.visitTimeMillisecond=indexOfValue,IndexOfVisitor.prototype.visitTimeMicrosecond=indexOfValue,IndexOfVisitor.prototype.visitTimeNanosecond=indexOfValue,IndexOfVisitor.prototype.visitDecimal=indexOfValue,IndexOfVisitor.prototype.visitList=indexOfValue,IndexOfVisitor.prototype.visitStruct=indexOfValue,IndexOfVisitor.prototype.visitUnion=indexOfValue,IndexOfVisitor.prototype.visitDenseUnion=indexOfUnion,IndexOfVisitor.prototype.visitSparseUnion=indexOfUnion,IndexOfVisitor.prototype.visitDictionary=indexOfValue,IndexOfVisitor.prototype.visitInterval=indexOfValue,IndexOfVisitor.prototype.visitIntervalDayTime=indexOfValue,IndexOfVisitor.prototype.visitIntervalYearMonth=indexOfValue,IndexOfVisitor.prototype.visitDuration=indexOfValue,IndexOfVisitor.prototype.visitDurationSecond=indexOfValue,IndexOfVisitor.prototype.visitDurationMillisecond=indexOfValue,IndexOfVisitor.prototype.visitDurationMicrosecond=indexOfValue,IndexOfVisitor.prototype.visitDurationNanosecond=indexOfValue,IndexOfVisitor.prototype.visitFixedSizeList=indexOfValue,IndexOfVisitor.prototype.visitMap=indexOfValue;const instance$3=new IndexOfVisitor;class IteratorVisitor extends Visitor{}function vectorIterator(ot){const{type:et}=ot;if(ot.nullCount===0&&ot.stride===1&&(DataType.isInt(et)&&et.bitWidth!==64||DataType.isTime(et)&&et.bitWidth!==64||DataType.isFloat(et)&&et.precision!==Precision.HALF))return new ChunkedIterator(ot.data.length,ut=>{const dt=ot.data[ut];return dt.values.subarray(0,dt.length)[Symbol.iterator]()});let ct=0;return new ChunkedIterator(ot.data.length,ut=>{const dt=ot.data[ut].length,ft=ot.slice(ct,ct+dt);return ct+=dt,new VectorIterator(ft)})}class VectorIterator{constructor(et){this.vector=et,this.index=0}next(){return this.index<this.vector.length?{value:this.vector.get(this.index++)}:{done:!0,value:null}}[Symbol.iterator](){return this}}IteratorVisitor.prototype.visitNull=vectorIterator,IteratorVisitor.prototype.visitBool=vectorIterator,IteratorVisitor.prototype.visitInt=vectorIterator,IteratorVisitor.prototype.visitInt8=vectorIterator,IteratorVisitor.prototype.visitInt16=vectorIterator,IteratorVisitor.prototype.visitInt32=vectorIterator,IteratorVisitor.prototype.visitInt64=vectorIterator,IteratorVisitor.prototype.visitUint8=vectorIterator,IteratorVisitor.prototype.visitUint16=vectorIterator,IteratorVisitor.prototype.visitUint32=vectorIterator,IteratorVisitor.prototype.visitUint64=vectorIterator,IteratorVisitor.prototype.visitFloat=vectorIterator,IteratorVisitor.prototype.visitFloat16=vectorIterator,IteratorVisitor.prototype.visitFloat32=vectorIterator,IteratorVisitor.prototype.visitFloat64=vectorIterator,IteratorVisitor.prototype.visitUtf8=vectorIterator,IteratorVisitor.prototype.visitLargeUtf8=vectorIterator,IteratorVisitor.prototype.visitBinary=vectorIterator,IteratorVisitor.prototype.visitLargeBinary=vectorIterator,IteratorVisitor.prototype.visitFixedSizeBinary=vectorIterator,IteratorVisitor.prototype.visitDate=vectorIterator,IteratorVisitor.prototype.visitDateDay=vectorIterator,IteratorVisitor.prototype.visitDateMillisecond=vectorIterator,IteratorVisitor.prototype.visitTimestamp=vectorIterator,IteratorVisitor.prototype.visitTimestampSecond=vectorIterator,IteratorVisitor.prototype.visitTimestampMillisecond=vectorIterator,IteratorVisitor.prototype.visitTimestampMicrosecond=vectorIterator,IteratorVisitor.prototype.visitTimestampNanosecond=vectorIterator,IteratorVisitor.prototype.visitTime=vectorIterator,IteratorVisitor.prototype.visitTimeSecond=vectorIterator,IteratorVisitor.prototype.visitTimeMillisecond=vectorIterator,IteratorVisitor.prototype.visitTimeMicrosecond=vectorIterator,IteratorVisitor.prototype.visitTimeNanosecond=vectorIterator,IteratorVisitor.prototype.visitDecimal=vectorIterator,IteratorVisitor.prototype.visitList=vectorIterator,IteratorVisitor.prototype.visitStruct=vectorIterator,IteratorVisitor.prototype.visitUnion=vectorIterator,IteratorVisitor.prototype.visitDenseUnion=vectorIterator,IteratorVisitor.prototype.visitSparseUnion=vectorIterator,IteratorVisitor.prototype.visitDictionary=vectorIterator,IteratorVisitor.prototype.visitInterval=vectorIterator,IteratorVisitor.prototype.visitIntervalDayTime=vectorIterator,IteratorVisitor.prototype.visitIntervalYearMonth=vectorIterator,IteratorVisitor.prototype.visitDuration=vectorIterator,IteratorVisitor.prototype.visitDurationSecond=vectorIterator,IteratorVisitor.prototype.visitDurationMillisecond=vectorIterator,IteratorVisitor.prototype.visitDurationMicrosecond=vectorIterator,IteratorVisitor.prototype.visitDurationNanosecond=vectorIterator,IteratorVisitor.prototype.visitFixedSizeList=vectorIterator,IteratorVisitor.prototype.visitMap=vectorIterator;const instance$2=new IteratorVisitor;var _a$3;const visitorsByTypeId={},vectorPrototypesByTypeId={};class Vector{constructor(et){var ct,ut,dt;const ft=et[0]instanceof Vector?et.flatMap(Dt=>Dt.data):et;if(ft.length===0||ft.some(Dt=>!(Dt instanceof Data)))throw new TypeError("Vector constructor expects an Array of Data instances.");const zt=(ct=ft[0])===null||ct===void 0?void 0:ct.type;switch(ft.length){case 0:this._offsets=[0];break;case 1:{const{get:Dt,set:St,indexOf:Tt}=visitorsByTypeId[zt.typeId],Rt=ft[0];this.isValid=$t=>isChunkedValid(Rt,$t),this.get=$t=>Dt(Rt,$t),this.set=($t,kt)=>St(Rt,$t,kt),this.indexOf=$t=>Tt(Rt,$t),this._offsets=[0,Rt.length];break}default:Object.setPrototypeOf(this,vectorPrototypesByTypeId[zt.typeId]),this._offsets=computeChunkOffsets(ft);break}this.data=ft,this.type=zt,this.stride=strideForType(zt),this.numChildren=(dt=(ut=zt.children)===null||ut===void 0?void 0:ut.length)!==null&&dt!==void 0?dt:0,this.length=this._offsets.at(-1)}get byteLength(){return this.data.reduce((et,ct)=>et+ct.byteLength,0)}get nullable(){return computeChunkNullable(this.data)}get nullCount(){return computeChunkNullCounts(this.data)}get ArrayType(){return this.type.ArrayType}get[Symbol.toStringTag](){return`${this.VectorName}<${this.type[Symbol.toStringTag]}>`}get VectorName(){return`${Type$1[this.type.typeId]}Vector`}isValid(et){return!1}get(et){return null}at(et){return this.get(wrapIndex(et,this.length))}set(et,ct){}indexOf(et,ct){return-1}includes(et,ct){return this.indexOf(et,ct)>-1}[Symbol.iterator](){return instance$2.visit(this)}concat(...et){return new Vector(this.data.concat(et.flatMap(ct=>ct.data).flat(Number.POSITIVE_INFINITY)))}slice(et,ct){return new Vector(clampRange(this,et,ct,({data:ut,_offsets:dt},ft,zt)=>sliceChunks$1(ut,dt,ft,zt)))}toJSON(){return[...this]}toArray(){const{type:et,data:ct,length:ut,stride:dt,ArrayType:ft}=this;switch(et.typeId){case Type$1.Int:case Type$1.Float:case Type$1.Decimal:case Type$1.Time:case Type$1.Timestamp:switch(ct.length){case 0:return new ft;case 1:return ct[0].values.subarray(0,ut*dt);default:return ct.reduce((zt,{values:Dt,length:St})=>(zt.array.set(Dt.subarray(0,St*dt),zt.offset),zt.offset+=St*dt,zt),{array:new ft(ut*dt),offset:0}).array}}return[...this]}toString(){return`[${[...this].join(",")}]`}getChild(et){var ct;return this.getChildAt((ct=this.type.children)===null||ct===void 0?void 0:ct.findIndex(ut=>ut.name===et))}getChildAt(et){return et>-1&&et<this.numChildren?new Vector(this.data.map(({children:ct})=>ct[et])):null}get isMemoized(){return DataType.isDictionary(this.type)?this.data[0].dictionary.isMemoized:!1}memoize(){if(DataType.isDictionary(this.type)){const et=new MemoizedVector(this.data[0].dictionary),ct=this.data.map(ut=>{const dt=ut.clone();return dt.dictionary=et,dt});return new Vector(ct)}return new MemoizedVector(this)}unmemoize(){if(DataType.isDictionary(this.type)&&this.isMemoized){const et=this.data[0].dictionary.unmemoize(),ct=this.data.map(ut=>{const dt=ut.clone();return dt.dictionary=et,dt});return new Vector(ct)}return this}}_a$3=Symbol.toStringTag,Vector[_a$3]=(ot=>{ot.type=DataType.prototype,ot.data=[],ot.length=0,ot.stride=1,ot.numChildren=0,ot._offsets=new Uint32Array([0]),ot[Symbol.isConcatSpreadable]=!0;const et=Object.keys(Type$1).map(ct=>Type$1[ct]).filter(ct=>typeof ct=="number"&&ct!==Type$1.NONE);for(const ct of et){const ut=instance$4.getVisitFnByTypeId(ct),dt=instance$5.getVisitFnByTypeId(ct),ft=instance$3.getVisitFnByTypeId(ct);visitorsByTypeId[ct]={get:ut,set:dt,indexOf:ft},vectorPrototypesByTypeId[ct]=Object.create(ot,{isValid:{value:wrapChunkedCall1(isChunkedValid)},get:{value:wrapChunkedCall1(instance$4.getVisitFnByTypeId(ct))},set:{value:wrapChunkedCall2(instance$5.getVisitFnByTypeId(ct))},indexOf:{value:wrapChunkedIndexOf(instance$3.getVisitFnByTypeId(ct))}})}return"Vector"})(Vector.prototype);class MemoizedVector extends Vector{constructor(et){super(et.data);const ct=this.get,ut=this.set,dt=this.slice,ft=new Array(this.length);Object.defineProperty(this,"get",{value(zt){const Dt=ft[zt];if(Dt!==void 0)return Dt;const St=ct.call(this,zt);return ft[zt]=St,St}}),Object.defineProperty(this,"set",{value(zt,Dt){ut.call(this,zt,Dt),ft[zt]=Dt}}),Object.defineProperty(this,"slice",{value:(zt,Dt)=>new MemoizedVector(dt.call(this,zt,Dt))}),Object.defineProperty(this,"isMemoized",{value:!0}),Object.defineProperty(this,"unmemoize",{value:()=>new Vector(this.data)}),Object.defineProperty(this,"memoize",{value:()=>this})}}let Block$1=class{constructor(){this.bb=null,this.bb_pos=0}__init(ot,et){return this.bb_pos=ot,this.bb=et,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(ot,et,ct,ut){return ot.prep(8,24),ot.writeInt64(BigInt(ut??0)),ot.pad(4),ot.writeInt32(ct),ot.writeInt64(BigInt(et??0)),ot.offset()}};class Footer{constructor(){this.bb=null,this.bb_pos=0}__init(et,ct){return this.bb_pos=et,this.bb=ct,this}static getRootAsFooter(et,ct){return(ct||new Footer).__init(et.readInt32(et.position())+et.position(),et)}static getSizePrefixedRootAsFooter(et,ct){return et.setPosition(et.position()+SIZE_PREFIX_LENGTH),(ct||new Footer).__init(et.readInt32(et.position())+et.position(),et)}version(){const et=this.bb.__offset(this.bb_pos,4);return et?this.bb.readInt16(this.bb_pos+et):MetadataVersion.V1}schema(et){const ct=this.bb.__offset(this.bb_pos,6);return ct?(et||new Schema$5).__init(this.bb.__indirect(this.bb_pos+ct),this.bb):null}dictionaries(et,ct){const ut=this.bb.__offset(this.bb_pos,8);return ut?(ct||new Block$1).__init(this.bb.__vector(this.bb_pos+ut)+et*24,this.bb):null}dictionariesLength(){const et=this.bb.__offset(this.bb_pos,8);return et?this.bb.__vector_len(this.bb_pos+et):0}recordBatches(et,ct){const ut=this.bb.__offset(this.bb_pos,10);return ut?(ct||new Block$1).__init(this.bb.__vector(this.bb_pos+ut)+et*24,this.bb):null}recordBatchesLength(){const et=this.bb.__offset(this.bb_pos,10);return et?this.bb.__vector_len(this.bb_pos+et):0}customMetadata(et,ct){const ut=this.bb.__offset(this.bb_pos,12);return ut?(ct||new KeyValue).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+ut)+et*4),this.bb):null}customMetadataLength(){const et=this.bb.__offset(this.bb_pos,12);return et?this.bb.__vector_len(this.bb_pos+et):0}static startFooter(et){et.startObject(5)}static addVersion(et,ct){et.addFieldInt16(0,ct,MetadataVersion.V1)}static addSchema(et,ct){et.addFieldOffset(1,ct,0)}static addDictionaries(et,ct){et.addFieldOffset(2,ct,0)}static startDictionariesVector(et,ct){et.startVector(24,ct,8)}static addRecordBatches(et,ct){et.addFieldOffset(3,ct,0)}static startRecordBatchesVector(et,ct){et.startVector(24,ct,8)}static addCustomMetadata(et,ct){et.addFieldOffset(4,ct,0)}static createCustomMetadataVector(et,ct){et.startVector(4,ct.length,4);for(let ut=ct.length-1;ut>=0;ut--)et.addOffset(ct[ut]);return et.endVector()}static startCustomMetadataVector(et,ct){et.startVector(4,ct,4)}static endFooter(et){return et.endObject()}static finishFooterBuffer(et,ct){et.finish(ct)}static finishSizePrefixedFooterBuffer(et,ct){et.finish(ct,void 0,!0)}}let Schema$4=class u1{constructor(et=[],ct,ut,dt=MetadataVersion.V5){this.fields=et||[],this.metadata=ct||new Map,ut||(ut=generateDictionaryMap(this.fields)),this.dictionaries=ut,this.metadataVersion=dt}get[Symbol.toStringTag](){return"Schema"}get names(){return this.fields.map(et=>et.name)}toString(){return`Schema<{ ${this.fields.map((et,ct)=>`${ct}: ${et}`).join(", ")} }>`}select(et){const ct=new Set(et),ut=this.fields.filter(dt=>ct.has(dt.name));return new u1(ut,this.metadata)}selectAt(et){const ct=et.map(ut=>this.fields[ut]).filter(Boolean);return new u1(ct,this.metadata)}assign(...et){const ct=et[0]instanceof u1?et[0]:Array.isArray(et[0])?new u1(et[0]):new u1(et),ut=[...this.fields],dt=mergeMaps(mergeMaps(new Map,this.metadata),ct.metadata),ft=ct.fields.filter(Dt=>{const St=ut.findIndex(Tt=>Tt.name===Dt.name);return~St?(ut[St]=Dt.clone({metadata:mergeMaps(mergeMaps(new Map,ut[St].metadata),Dt.metadata)}))&&!1:!0}),zt=generateDictionaryMap(ft,new Map);return new u1([...ut,...ft],dt,new Map([...this.dictionaries,...zt]))}};Schema$4.prototype.fields=null,Schema$4.prototype.metadata=null,Schema$4.prototype.dictionaries=null;let Field$1=class hn{static new(...et){let[ct,ut,dt,ft]=et;return et[0]&&typeof et[0]=="object"&&({name:ct}=et[0],ut===void 0&&(ut=et[0].type),dt===void 0&&(dt=et[0].nullable),ft===void 0&&(ft=et[0].metadata)),new hn(`${ct}`,ut,dt,ft)}constructor(et,ct,ut=!1,dt){this.name=et,this.type=ct,this.nullable=ut,this.metadata=dt||new Map}get typeId(){return this.type.typeId}get[Symbol.toStringTag](){return"Field"}toString(){return`${this.name}: ${this.type}`}clone(...et){let[ct,ut,dt,ft]=et;return!et[0]||typeof et[0]!="object"?[ct=this.name,ut=this.type,dt=this.nullable,ft=this.metadata]=et:{name:ct=this.name,type:ut=this.type,nullable:dt=this.nullable,metadata:ft=this.metadata}=et[0],hn.new(ct,ut,dt,ft)}};Field$1.prototype.type=null,Field$1.prototype.name=null,Field$1.prototype.nullable=null,Field$1.prototype.metadata=null;function mergeMaps(ot,et){return new Map([...ot||new Map,...et||new Map])}function generateDictionaryMap(ot,et=new Map){for(let ct=-1,ut=ot.length;++ct<ut;){const dt=ot[ct].type;if(DataType.isDictionary(dt)){if(!et.has(dt.id))et.set(dt.id,dt.dictionary);else if(et.get(dt.id)!==dt.dictionary)throw new Error("Cannot create Schema containing two different dictionaries with the same Id")}dt.children&&dt.children.length>0&&generateDictionaryMap(dt.children,et)}return et}var Builder$1=Builder$2,ByteBuffer$1=ByteBuffer$2;class Footer_{static decode(et){et=new ByteBuffer$1(toUint8Array(et));const ct=Footer.getRootAsFooter(et),ut=Schema$4.decode(ct.schema(),new Map,ct.version());return new OffHeapFooter(ut,ct)}static encode(et){const ct=new Builder$1,ut=Schema$4.encode(ct,et.schema);Footer.startRecordBatchesVector(ct,et.numRecordBatches);for(const zt of[...et.recordBatches()].slice().reverse())FileBlock.encode(ct,zt);const dt=ct.endVector();Footer.startDictionariesVector(ct,et.numDictionaries);for(const zt of[...et.dictionaryBatches()].slice().reverse())FileBlock.encode(ct,zt);const ft=ct.endVector();return Footer.startFooter(ct),Footer.addSchema(ct,ut),Footer.addVersion(ct,MetadataVersion.V5),Footer.addRecordBatches(ct,dt),Footer.addDictionaries(ct,ft),Footer.finishFooterBuffer(ct,Footer.endFooter(ct)),ct.asUint8Array()}get numRecordBatches(){return this._recordBatches.length}get numDictionaries(){return this._dictionaryBatches.length}constructor(et,ct=MetadataVersion.V5,ut,dt){this.schema=et,this.version=ct,ut&&(this._recordBatches=ut),dt&&(this._dictionaryBatches=dt)}*recordBatches(){for(let et,ct=-1,ut=this.numRecordBatches;++ct<ut;)(et=this.getRecordBatch(ct))&&(yield et)}*dictionaryBatches(){for(let et,ct=-1,ut=this.numDictionaries;++ct<ut;)(et=this.getDictionaryBatch(ct))&&(yield et)}getRecordBatch(et){return et>=0&&et<this.numRecordBatches&&this._recordBatches[et]||null}getDictionaryBatch(et){return et>=0&&et<this.numDictionaries&&this._dictionaryBatches[et]||null}}class OffHeapFooter extends Footer_{get numRecordBatches(){return this._footer.recordBatchesLength()}get numDictionaries(){return this._footer.dictionariesLength()}constructor(et,ct){super(et,ct.version()),this._footer=ct}getRecordBatch(et){if(et>=0&&et<this.numRecordBatches){const ct=this._footer.recordBatches(et);if(ct)return FileBlock.decode(ct)}return null}getDictionaryBatch(et){if(et>=0&&et<this.numDictionaries){const ct=this._footer.dictionaries(et);if(ct)return FileBlock.decode(ct)}return null}}class FileBlock{static decode(et){return new FileBlock(et.metaDataLength(),et.bodyLength(),et.offset())}static encode(et,ct){const{metaDataLength:ut}=ct,dt=BigInt(ct.offset),ft=BigInt(ct.bodyLength);return Block$1.createBlock(et,dt,ut,ft)}constructor(et,ct,ut){this.metaDataLength=et,this.offset=bigIntToNumber(ut),this.bodyLength=bigIntToNumber(ct)}}const ITERATOR_DONE=Object.freeze({done:!0,value:void 0});class ArrowJSON{constructor(et){this._json=et}get schema(){return this._json.schema}get batches(){return this._json.batches||[]}get dictionaries(){return this._json.dictionaries||[]}}class ReadableInterop{tee(){return this._getDOMStream().tee()}pipe(et,ct){return this._getNodeStream().pipe(et,ct)}pipeTo(et,ct){return this._getDOMStream().pipeTo(et,ct)}pipeThrough(et,ct){return this._getDOMStream().pipeThrough(et,ct)}_getDOMStream(){return this._DOMStream||(this._DOMStream=this.toDOMStream())}_getNodeStream(){return this._nodeStream||(this._nodeStream=this.toNodeStream())}}class AsyncQueue extends ReadableInterop{constructor(){super(),this._values=[],this.resolvers=[],this._closedPromise=new Promise(et=>this._closedPromiseResolve=et)}get closed(){return this._closedPromise}cancel(et){return __awaiter(this,void 0,void 0,function*(){yield this.return(et)})}write(et){this._ensureOpen()&&(this.resolvers.length<=0?this._values.push(et):this.resolvers.shift().resolve({done:!1,value:et}))}abort(et){this._closedPromiseResolve&&(this.resolvers.length<=0?this._error={error:et}:this.resolvers.shift().reject({done:!0,value:et}))}close(){if(this._closedPromiseResolve){const{resolvers:et}=this;for(;et.length>0;)et.shift().resolve(ITERATOR_DONE);this._closedPromiseResolve(),this._closedPromiseResolve=void 0}}[Symbol.asyncIterator](){return this}toDOMStream(et){return streamAdapters.toDOMStream(this._closedPromiseResolve||this._error?this:this._values,et)}toNodeStream(et){return streamAdapters.toNodeStream(this._closedPromiseResolve||this._error?this:this._values,et)}throw(et){return __awaiter(this,void 0,void 0,function*(){return yield this.abort(et),ITERATOR_DONE})}return(et){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),ITERATOR_DONE})}read(et){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(et,"read")).value})}peek(et){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(et,"peek")).value})}next(...et){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((ct,ut)=>{this.resolvers.push({resolve:ct,reject:ut})}):Promise.resolve(ITERATOR_DONE)}_ensureOpen(){if(this._closedPromiseResolve)return!0;throw new Error("AsyncQueue is closed")}}class AsyncByteQueue extends AsyncQueue{write(et){if((et=toUint8Array(et)).byteLength>0)return super.write(et)}toString(et=!1){return et?decodeUtf8(this.toUint8Array(!0)):this.toUint8Array(!1).then(decodeUtf8)}toUint8Array(et=!1){return et?joinUint8Arrays(this._values)[0]:__awaiter(this,void 0,void 0,function*(){var ct,ut,dt,ft;const zt=[];let Dt=0;try{for(var St=!0,Tt=__asyncValues(this),Rt;Rt=yield Tt.next(),ct=Rt.done,!ct;St=!0){ft=Rt.value,St=!1;const $t=ft;zt.push($t),Dt+=$t.byteLength}}catch($t){ut={error:$t}}finally{try{!St&&!ct&&(dt=Tt.return)&&(yield dt.call(Tt))}finally{if(ut)throw ut.error}}return joinUint8Arrays(zt,Dt)[0]})}}class ByteStream{constructor(et){et&&(this.source=new ByteStreamSource(streamAdapters.fromIterable(et)))}[Symbol.iterator](){return this}next(et){return this.source.next(et)}throw(et){return this.source.throw(et)}return(et){return this.source.return(et)}peek(et){return this.source.peek(et)}read(et){return this.source.read(et)}}class AsyncByteStream{constructor(et){et instanceof AsyncByteStream?this.source=et.source:et instanceof AsyncByteQueue?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(et)):isReadableNodeStream(et)?this.source=new AsyncByteStreamSource(streamAdapters.fromNodeStream(et)):isReadableDOMStream(et)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(et)):isFetchResponse(et)?this.source=new AsyncByteStreamSource(streamAdapters.fromDOMStream(et.body)):isIterable(et)?this.source=new AsyncByteStreamSource(streamAdapters.fromIterable(et)):isPromise(et)?this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(et)):isAsyncIterable$1(et)&&(this.source=new AsyncByteStreamSource(streamAdapters.fromAsyncIterable(et)))}[Symbol.asyncIterator](){return this}next(et){return this.source.next(et)}throw(et){return this.source.throw(et)}return(et){return this.source.return(et)}get closed(){return this.source.closed}cancel(et){return this.source.cancel(et)}peek(et){return this.source.peek(et)}read(et){return this.source.read(et)}}class ByteStreamSource{constructor(et){this.source=et}cancel(et){this.return(et)}peek(et){return this.next(et,"peek").value}read(et){return this.next(et,"read").value}next(et,ct="read"){return this.source.next({cmd:ct,size:et})}throw(et){return Object.create(this.source.throw&&this.source.throw(et)||ITERATOR_DONE)}return(et){return Object.create(this.source.return&&this.source.return(et)||ITERATOR_DONE)}}class AsyncByteStreamSource{constructor(et){this.source=et,this._closedPromise=new Promise(ct=>this._closedPromiseResolve=ct)}cancel(et){return __awaiter(this,void 0,void 0,function*(){yield this.return(et)})}get closed(){return this._closedPromise}read(et){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(et,"read")).value})}peek(et){return __awaiter(this,void 0,void 0,function*(){return(yield this.next(et,"peek")).value})}next(et){return __awaiter(this,arguments,void 0,function*(ct,ut="read"){return yield this.source.next({cmd:ut,size:ct})})}throw(et){return __awaiter(this,void 0,void 0,function*(){const ct=this.source.throw&&(yield this.source.throw(et))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(ct)})}return(et){return __awaiter(this,void 0,void 0,function*(){const ct=this.source.return&&(yield this.source.return(et))||ITERATOR_DONE;return this._closedPromiseResolve&&this._closedPromiseResolve(),this._closedPromiseResolve=void 0,Object.create(ct)})}}class RandomAccessFile extends ByteStream{constructor(et,ct){super(),this.position=0,this.buffer=toUint8Array(et),this.size=ct===void 0?this.buffer.byteLength:ct}readInt32(et){const{buffer:ct,byteOffset:ut}=this.readAt(et,4);return new DataView(ct,ut).getInt32(0,!0)}seek(et){return this.position=Math.min(et,this.size),et<this.size}read(et){const{buffer:ct,size:ut,position:dt}=this;return ct&&dt<ut?(typeof et!="number"&&(et=Number.POSITIVE_INFINITY),this.position=Math.min(ut,dt+Math.min(ut-dt,et)),ct.subarray(dt,this.position)):null}readAt(et,ct){const ut=this.buffer,dt=Math.min(this.size,et+ct);return ut?ut.subarray(et,dt):new Uint8Array(ct)}close(){this.buffer&&(this.buffer=null)}throw(et){return this.close(),{done:!0,value:et}}return(et){return this.close(),{done:!0,value:et}}}class AsyncRandomAccessFile extends AsyncByteStream{constructor(et,ct){super(),this.position=0,this._handle=et,typeof ct=="number"?this.size=ct:this._pending=__awaiter(this,void 0,void 0,function*(){this.size=(yield et.stat()).size,delete this._pending})}readInt32(et){return __awaiter(this,void 0,void 0,function*(){const{buffer:ct,byteOffset:ut}=yield this.readAt(et,4);return new DataView(ct,ut).getInt32(0,!0)})}seek(et){return __awaiter(this,void 0,void 0,function*(){return this._pending&&(yield this._pending),this.position=Math.min(et,this.size),et<this.size})}read(et){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:ct,size:ut,position:dt}=this;if(ct&&dt<ut){typeof et!="number"&&(et=Number.POSITIVE_INFINITY);let ft=dt,zt=0,Dt=0;const St=Math.min(ut,ft+Math.min(ut-ft,et)),Tt=new Uint8Array(Math.max(0,(this.position=St)-ft));for(;(ft+=Dt)<St&&(zt+=Dt)<Tt.byteLength;)({bytesRead:Dt}=yield ct.read(Tt,zt,Tt.byteLength-zt,ft));return Tt}return null})}readAt(et,ct){return __awaiter(this,void 0,void 0,function*(){this._pending&&(yield this._pending);const{_handle:ut,size:dt}=this;if(ut&&et+ct<dt){const ft=Math.min(dt,et+ct),zt=new Uint8Array(ft-et);return(yield ut.read(zt,0,ct,et)).buffer}return new Uint8Array(ct)})}close(){return __awaiter(this,void 0,void 0,function*(){const et=this._handle;this._handle=null,et&&(yield et.close())})}throw(et){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:et}})}return(et){return __awaiter(this,void 0,void 0,function*(){return yield this.close(),{done:!0,value:et}})}}const carryBit16=65536;function intAsHex(ot){return ot<0&&(ot=4294967295+ot+1),`0x${ot.toString(16)}`}const kInt32DecimalDigits=8,kPowersOfTen=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8];class BaseInt64{constructor(et){this.buffer=et}high(){return this.buffer[1]}low(){return this.buffer[0]}_times(et){const ct=new Uint32Array([this.buffer[1]>>>16,this.buffer[1]&65535,this.buffer[0]>>>16,this.buffer[0]&65535]),ut=new Uint32Array([et.buffer[1]>>>16,et.buffer[1]&65535,et.buffer[0]>>>16,et.buffer[0]&65535]);let dt=ct[3]*ut[3];this.buffer[0]=dt&65535;let ft=dt>>>16;return dt=ct[2]*ut[3],ft+=dt,dt=ct[3]*ut[2]>>>0,ft+=dt,this.buffer[0]+=ft<<16,this.buffer[1]=ft>>>0<dt?carryBit16:0,this.buffer[1]+=ft>>>16,this.buffer[1]+=ct[1]*ut[3]+ct[2]*ut[2]+ct[3]*ut[1],this.buffer[1]+=ct[0]*ut[3]+ct[1]*ut[2]+ct[2]*ut[1]+ct[3]*ut[0]<<16,this}_plus(et){const ct=this.buffer[0]+et.buffer[0]>>>0;this.buffer[1]+=et.buffer[1],ct<this.buffer[0]>>>0&&++this.buffer[1],this.buffer[0]=ct}lessThan(et){return this.buffer[1]<et.buffer[1]||this.buffer[1]===et.buffer[1]&&this.buffer[0]<et.buffer[0]}equals(et){return this.buffer[1]===et.buffer[1]&&this.buffer[0]==et.buffer[0]}greaterThan(et){return et.lessThan(this)}hex(){return`${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}}class Uint64 extends BaseInt64{times(et){return this._times(et),this}plus(et){return this._plus(et),this}static from(et,ct=new Uint32Array(2)){return Uint64.fromString(typeof et=="string"?et:et.toString(),ct)}static fromNumber(et,ct=new Uint32Array(2)){return Uint64.fromString(et.toString(),ct)}static fromString(et,ct=new Uint32Array(2)){const ut=et.length,dt=new Uint64(ct);for(let ft=0;ft<ut;){const zt=kInt32DecimalDigits<ut-ft?kInt32DecimalDigits:ut-ft,Dt=new Uint64(new Uint32Array([Number.parseInt(et.slice(ft,ft+zt),10),0])),St=new Uint64(new Uint32Array([kPowersOfTen[zt],0]));dt.times(St),dt.plus(Dt),ft+=zt}return dt}static convertArray(et){const ct=new Uint32Array(et.length*2);for(let ut=-1,dt=et.length;++ut<dt;)Uint64.from(et[ut],new Uint32Array(ct.buffer,ct.byteOffset+2*ut*4,2));return ct}static multiply(et,ct){return new Uint64(new Uint32Array(et.buffer)).times(ct)}static add(et,ct){return new Uint64(new Uint32Array(et.buffer)).plus(ct)}}class Int64 extends BaseInt64{negate(){return this.buffer[0]=~this.buffer[0]+1,this.buffer[1]=~this.buffer[1],this.buffer[0]==0&&++this.buffer[1],this}times(et){return this._times(et),this}plus(et){return this._plus(et),this}lessThan(et){const ct=this.buffer[1]<<0,ut=et.buffer[1]<<0;return ct<ut||ct===ut&&this.buffer[0]<et.buffer[0]}static from(et,ct=new Uint32Array(2)){return Int64.fromString(typeof et=="string"?et:et.toString(),ct)}static fromNumber(et,ct=new Uint32Array(2)){return Int64.fromString(et.toString(),ct)}static fromString(et,ct=new Uint32Array(2)){const ut=et.startsWith("-"),dt=et.length,ft=new Int64(ct);for(let zt=ut?1:0;zt<dt;){const Dt=kInt32DecimalDigits<dt-zt?kInt32DecimalDigits:dt-zt,St=new Int64(new Uint32Array([Number.parseInt(et.slice(zt,zt+Dt),10),0])),Tt=new Int64(new Uint32Array([kPowersOfTen[Dt],0]));ft.times(Tt),ft.plus(St),zt+=Dt}return ut?ft.negate():ft}static convertArray(et){const ct=new Uint32Array(et.length*2);for(let ut=-1,dt=et.length;++ut<dt;)Int64.from(et[ut],new Uint32Array(ct.buffer,ct.byteOffset+2*ut*4,2));return ct}static multiply(et,ct){return new Int64(new Uint32Array(et.buffer)).times(ct)}static add(et,ct){return new Int64(new Uint32Array(et.buffer)).plus(ct)}}class Int128{constructor(et){this.buffer=et}high(){return new Int64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2))}low(){return new Int64(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(et){const ct=new Uint64(new Uint32Array([this.buffer[3],0])),ut=new Uint64(new Uint32Array([this.buffer[2],0])),dt=new Uint64(new Uint32Array([this.buffer[1],0])),ft=new Uint64(new Uint32Array([this.buffer[0],0])),zt=new Uint64(new Uint32Array([et.buffer[3],0])),Dt=new Uint64(new Uint32Array([et.buffer[2],0])),St=new Uint64(new Uint32Array([et.buffer[1],0])),Tt=new Uint64(new Uint32Array([et.buffer[0],0]));let Rt=Uint64.multiply(ft,Tt);this.buffer[0]=Rt.low();const $t=new Uint64(new Uint32Array([Rt.high(),0]));return Rt=Uint64.multiply(dt,Tt),$t.plus(Rt),Rt=Uint64.multiply(ft,St),$t.plus(Rt),this.buffer[1]=$t.low(),this.buffer[3]=$t.lessThan(Rt)?1:0,this.buffer[2]=$t.high(),new Uint64(new Uint32Array(this.buffer.buffer,this.buffer.byteOffset+8,2)).plus(Uint64.multiply(ut,Tt)).plus(Uint64.multiply(dt,St)).plus(Uint64.multiply(ft,Dt)),this.buffer[3]+=Uint64.multiply(ct,Tt).plus(Uint64.multiply(ut,St)).plus(Uint64.multiply(dt,Dt)).plus(Uint64.multiply(ft,zt)).low(),this}plus(et){const ct=new Uint32Array(4);return ct[3]=this.buffer[3]+et.buffer[3]>>>0,ct[2]=this.buffer[2]+et.buffer[2]>>>0,ct[1]=this.buffer[1]+et.buffer[1]>>>0,ct[0]=this.buffer[0]+et.buffer[0]>>>0,ct[0]<this.buffer[0]>>>0&&++ct[1],ct[1]<this.buffer[1]>>>0&&++ct[2],ct[2]<this.buffer[2]>>>0&&++ct[3],this.buffer[3]=ct[3],this.buffer[2]=ct[2],this.buffer[1]=ct[1],this.buffer[0]=ct[0],this}hex(){return`${intAsHex(this.buffer[3])} ${intAsHex(this.buffer[2])} ${intAsHex(this.buffer[1])} ${intAsHex(this.buffer[0])}`}static multiply(et,ct){return new Int128(new Uint32Array(et.buffer)).times(ct)}static add(et,ct){return new Int128(new Uint32Array(et.buffer)).plus(ct)}static from(et,ct=new Uint32Array(4)){return Int128.fromString(typeof et=="string"?et:et.toString(),ct)}static fromNumber(et,ct=new Uint32Array(4)){return Int128.fromString(et.toString(),ct)}static fromString(et,ct=new Uint32Array(4)){const ut=et.startsWith("-"),dt=et.length,ft=new Int128(ct);for(let zt=ut?1:0;zt<dt;){const Dt=kInt32DecimalDigits<dt-zt?kInt32DecimalDigits:dt-zt,St=new Int128(new Uint32Array([Number.parseInt(et.slice(zt,zt+Dt),10),0,0,0])),Tt=new Int128(new Uint32Array([kPowersOfTen[Dt],0,0,0]));ft.times(Tt),ft.plus(St),zt+=Dt}return ut?ft.negate():ft}static convertArray(et){const ct=new Uint32Array(et.length*4);for(let ut=-1,dt=et.length;++ut<dt;)Int128.from(et[ut],new Uint32Array(ct.buffer,ct.byteOffset+16*ut,4));return ct}}const util_int_=Object.freeze(Object.defineProperty({__proto__:null,BaseInt64,Int128,Int64,Uint64},Symbol.toStringTag,{value:"Module"}));class VectorLoader extends Visitor{constructor(et,ct,ut,dt,ft=MetadataVersion.V5){super(),this.nodesIndex=-1,this.buffersIndex=-1,this.bytes=et,this.nodes=ct,this.buffers=ut,this.dictionaries=dt,this.metadataVersion=ft}visit(et){return super.visit(et instanceof Field$1?et.type:et)}visitNull(et,{length:ct}=this.nextFieldNode()){return makeData({type:et,length:ct})}visitBool(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitInt(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitFloat(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitUtf8(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),data:this.readData(et)})}visitLargeUtf8(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),data:this.readData(et)})}visitBinary(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),data:this.readData(et)})}visitLargeBinary(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),data:this.readData(et)})}visitFixedSizeBinary(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitDate(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitTimestamp(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitTime(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitDecimal(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitList(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),child:this.visit(et.children[0])})}visitStruct(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),children:this.visitMany(et.children)})}visitUnion(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return this.metadataVersion<MetadataVersion.V5&&this.readNullBitmap(et,ut),et.mode===UnionMode.Sparse?this.visitSparseUnion(et,{length:ct,nullCount:ut}):this.visitDenseUnion(et,{length:ct,nullCount:ut})}visitDenseUnion(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,typeIds:this.readTypeIds(et),valueOffsets:this.readOffsets(et),children:this.visitMany(et.children)})}visitSparseUnion(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,typeIds:this.readTypeIds(et),children:this.visitMany(et.children)})}visitDictionary(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et.indices),dictionary:this.readDictionary(et)})}visitInterval(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitDuration(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),data:this.readData(et)})}visitFixedSizeList(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),child:this.visit(et.children[0])})}visitMap(et,{length:ct,nullCount:ut}=this.nextFieldNode()){return makeData({type:et,length:ct,nullCount:ut,nullBitmap:this.readNullBitmap(et,ut),valueOffsets:this.readOffsets(et),child:this.visit(et.children[0])})}nextFieldNode(){return this.nodes[++this.nodesIndex]}nextBufferRange(){return this.buffers[++this.buffersIndex]}readNullBitmap(et,ct,ut=this.nextBufferRange()){return ct>0&&this.readData(et,ut)||new Uint8Array(0)}readOffsets(et,ct){return this.readData(et,ct)}readTypeIds(et,ct){return this.readData(et,ct)}readData(et,{length:ct,offset:ut}=this.nextBufferRange()){return this.bytes.subarray(ut,ut+ct)}readDictionary(et){return this.dictionaries.get(et.id)}}class JSONVectorLoader extends VectorLoader{constructor(et,ct,ut,dt,ft){super(new Uint8Array(0),ct,ut,dt,ft),this.sources=et}readNullBitmap(et,ct,{offset:ut}=this.nextBufferRange()){return ct<=0?new Uint8Array(0):packBools(this.sources[ut])}readOffsets(et,{offset:ct}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(et.OffsetArrayType,this.sources[ct]))}readTypeIds(et,{offset:ct}=this.nextBufferRange()){return toArrayBufferView(Uint8Array,toArrayBufferView(et.ArrayType,this.sources[ct]))}readData(et,{offset:ct}=this.nextBufferRange()){const{sources:ut}=this;return DataType.isTimestamp(et)||(DataType.isInt(et)||DataType.isTime(et))&&et.bitWidth===64||DataType.isDuration(et)||DataType.isDate(et)&&et.unit===DateUnit.MILLISECOND?toArrayBufferView(Uint8Array,Int64.convertArray(ut[ct])):DataType.isDecimal(et)?toArrayBufferView(Uint8Array,Int128.convertArray(ut[ct])):DataType.isBinary(et)||DataType.isLargeBinary(et)||DataType.isFixedSizeBinary(et)?binaryDataFromJSON(ut[ct]):DataType.isBool(et)?packBools(ut[ct]):DataType.isUtf8(et)||DataType.isLargeUtf8(et)?encodeUtf8(ut[ct].join("")):toArrayBufferView(Uint8Array,toArrayBufferView(et.ArrayType,ut[ct].map(dt=>+dt)))}}function binaryDataFromJSON(ot){const et=ot.join(""),ct=new Uint8Array(et.length/2);for(let ut=0;ut<et.length;ut+=2)ct[ut>>1]=Number.parseInt(et.slice(ut,ut+2),16);return ct}class TypeComparator extends Visitor{compareSchemas(et,ct){return et===ct||ct instanceof et.constructor&&this.compareManyFields(et.fields,ct.fields)}compareManyFields(et,ct){return et===ct||Array.isArray(et)&&Array.isArray(ct)&&et.length===ct.length&&et.every((ut,dt)=>this.compareFields(ut,ct[dt]))}compareFields(et,ct){return et===ct||ct instanceof et.constructor&&et.name===ct.name&&et.nullable===ct.nullable&&this.visit(et.type,ct.type)}}function compareConstructor(ot,et){return et instanceof ot.constructor}function compareAny(ot,et){return ot===et||compareConstructor(ot,et)}function compareInt(ot,et){return ot===et||compareConstructor(ot,et)&&ot.bitWidth===et.bitWidth&&ot.isSigned===et.isSigned}function compareFloat(ot,et){return ot===et||compareConstructor(ot,et)&&ot.precision===et.precision}function compareFixedSizeBinary(ot,et){return ot===et||compareConstructor(ot,et)&&ot.byteWidth===et.byteWidth}function compareDate(ot,et){return ot===et||compareConstructor(ot,et)&&ot.unit===et.unit}function compareTimestamp(ot,et){return ot===et||compareConstructor(ot,et)&&ot.unit===et.unit&&ot.timezone===et.timezone}function compareTime(ot,et){return ot===et||compareConstructor(ot,et)&&ot.unit===et.unit&&ot.bitWidth===et.bitWidth}function compareList(ot,et){return ot===et||compareConstructor(ot,et)&&ot.children.length===et.children.length&&instance$1.compareManyFields(ot.children,et.children)}function compareStruct(ot,et){return ot===et||compareConstructor(ot,et)&&ot.children.length===et.children.length&&instance$1.compareManyFields(ot.children,et.children)}function compareUnion(ot,et){return ot===et||compareConstructor(ot,et)&&ot.mode===et.mode&&ot.typeIds.every((ct,ut)=>ct===et.typeIds[ut])&&instance$1.compareManyFields(ot.children,et.children)}function compareDictionary(ot,et){return ot===et||compareConstructor(ot,et)&&ot.id===et.id&&ot.isOrdered===et.isOrdered&&instance$1.visit(ot.indices,et.indices)&&instance$1.visit(ot.dictionary,et.dictionary)}function compareInterval(ot,et){return ot===et||compareConstructor(ot,et)&&ot.unit===et.unit}function compareDuration(ot,et){return ot===et||compareConstructor(ot,et)&&ot.unit===et.unit}function compareFixedSizeList(ot,et){return ot===et||compareConstructor(ot,et)&&ot.listSize===et.listSize&&ot.children.length===et.children.length&&instance$1.compareManyFields(ot.children,et.children)}function compareMap(ot,et){return ot===et||compareConstructor(ot,et)&&ot.keysSorted===et.keysSorted&&ot.children.length===et.children.length&&instance$1.compareManyFields(ot.children,et.children)}TypeComparator.prototype.visitNull=compareAny,TypeComparator.prototype.visitBool=compareAny,TypeComparator.prototype.visitInt=compareInt,TypeComparator.prototype.visitInt8=compareInt,TypeComparator.prototype.visitInt16=compareInt,TypeComparator.prototype.visitInt32=compareInt,TypeComparator.prototype.visitInt64=compareInt,TypeComparator.prototype.visitUint8=compareInt,TypeComparator.prototype.visitUint16=compareInt,TypeComparator.prototype.visitUint32=compareInt,TypeComparator.prototype.visitUint64=compareInt,TypeComparator.prototype.visitFloat=compareFloat,TypeComparator.prototype.visitFloat16=compareFloat,TypeComparator.prototype.visitFloat32=compareFloat,TypeComparator.prototype.visitFloat64=compareFloat,TypeComparator.prototype.visitUtf8=compareAny,TypeComparator.prototype.visitLargeUtf8=compareAny,TypeComparator.prototype.visitBinary=compareAny,TypeComparator.prototype.visitLargeBinary=compareAny,TypeComparator.prototype.visitFixedSizeBinary=compareFixedSizeBinary,TypeComparator.prototype.visitDate=compareDate,TypeComparator.prototype.visitDateDay=compareDate,TypeComparator.prototype.visitDateMillisecond=compareDate,TypeComparator.prototype.visitTimestamp=compareTimestamp,TypeComparator.prototype.visitTimestampSecond=compareTimestamp,TypeComparator.prototype.visitTimestampMillisecond=compareTimestamp,TypeComparator.prototype.visitTimestampMicrosecond=compareTimestamp,TypeComparator.prototype.visitTimestampNanosecond=compareTimestamp,TypeComparator.prototype.visitTime=compareTime,TypeComparator.prototype.visitTimeSecond=compareTime,TypeComparator.prototype.visitTimeMillisecond=compareTime,TypeComparator.prototype.visitTimeMicrosecond=compareTime,TypeComparator.prototype.visitTimeNanosecond=compareTime,TypeComparator.prototype.visitDecimal=compareAny,TypeComparator.prototype.visitList=compareList,TypeComparator.prototype.visitStruct=compareStruct,TypeComparator.prototype.visitUnion=compareUnion,TypeComparator.prototype.visitDenseUnion=compareUnion,TypeComparator.prototype.visitSparseUnion=compareUnion,TypeComparator.prototype.visitDictionary=compareDictionary,TypeComparator.prototype.visitInterval=compareInterval,TypeComparator.prototype.visitIntervalDayTime=compareInterval,TypeComparator.prototype.visitIntervalYearMonth=compareInterval,TypeComparator.prototype.visitDuration=compareDuration,TypeComparator.prototype.visitDurationSecond=compareDuration,TypeComparator.prototype.visitDurationMillisecond=compareDuration,TypeComparator.prototype.visitDurationMicrosecond=compareDuration,TypeComparator.prototype.visitDurationNanosecond=compareDuration,TypeComparator.prototype.visitFixedSizeList=compareFixedSizeList,TypeComparator.prototype.visitMap=compareMap;const instance$1=new TypeComparator;function compareSchemas(ot,et){return instance$1.compareSchemas(ot,et)}function compareFields(ot,et){return instance$1.compareFields(ot,et)}function compareTypes(ot,et){return instance$1.visit(ot,et)}function distributeVectorsIntoRecordBatches(ot,et){return uniformlyDistributeChunksAcrossRecordBatches(ot,et.map(ct=>ct.data.concat()))}function uniformlyDistributeChunksAcrossRecordBatches(ot,et){const ct=[...ot.fields],ut=[],dt={numBatches:et.reduce(($t,kt)=>Math.max($t,kt.length),0)};let ft=0,zt=0,Dt=-1;const St=et.length;let Tt,Rt=[];for(;dt.numBatches-- >0;){for(zt=Number.POSITIVE_INFINITY,Dt=-1;++Dt<St;)Rt[Dt]=Tt=et[Dt].shift(),zt=Math.min(zt,Tt?Tt.length:zt);Number.isFinite(zt)&&(Rt=distributeChildren(ct,zt,Rt,et,dt),zt>0&&(ut[ft++]=makeData({type:new Struct(ct),length:zt,nullCount:0,children:Rt.slice()})))}return[ot=ot.assign(ct),ut.map($t=>new RecordBatch$1(ot,$t))]}function distributeChildren(ot,et,ct,ut,dt){var ft;const zt=(et+63&-64)>>3;for(let Dt=-1,St=ut.length;++Dt<St;){const Tt=ct[Dt],Rt=Tt==null?void 0:Tt.length;if(Rt>=et)Rt===et?ct[Dt]=Tt:(ct[Dt]=Tt.slice(0,et),dt.numBatches=Math.max(dt.numBatches,ut[Dt].unshift(Tt.slice(et,Rt-et))));else{const $t=ot[Dt];ot[Dt]=$t.clone({nullable:!0}),ct[Dt]=(ft=Tt==null?void 0:Tt._changeLengthAndBackfillNullBitmap(et))!==null&&ft!==void 0?ft:makeData({type:$t.type,length:et,nullCount:et,nullBitmap:new Uint8Array(zt)})}}return ct}var _a$2;class Table{constructor(...et){var ct,ut;if(et.length===0)return this.batches=[],this.schema=new Schema$4([]),this._offsets=[0],this;let dt,ft;et[0]instanceof Schema$4&&(dt=et.shift()),et.at(-1)instanceof Uint32Array&&(ft=et.pop());const zt=St=>{if(St){if(St instanceof RecordBatch$1)return[St];if(St instanceof Table)return St.batches;if(St instanceof Data){if(St.type instanceof Struct)return[new RecordBatch$1(new Schema$4(St.type.children),St)]}else{if(Array.isArray(St))return St.flatMap(Tt=>zt(Tt));if(typeof St[Symbol.iterator]=="function")return[...St].flatMap(Tt=>zt(Tt));if(typeof St=="object"){const Tt=Object.keys(St),Rt=Tt.map(Bt=>new Vector([St[Bt]])),$t=dt??new Schema$4(Tt.map((Bt,Ft)=>new Field$1(String(Bt),Rt[Ft].type,Rt[Ft].nullable))),[,kt]=distributeVectorsIntoRecordBatches($t,Rt);return kt.length===0?[new RecordBatch$1(St)]:kt}}}return[]},Dt=et.flatMap(St=>zt(St));if(dt=(ut=dt??((ct=Dt[0])===null||ct===void 0?void 0:ct.schema))!==null&&ut!==void 0?ut:new Schema$4([]),!(dt instanceof Schema$4))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");for(const St of Dt){if(!(St instanceof RecordBatch$1))throw new TypeError("Table constructor expects a [Schema, RecordBatch[]] pair.");if(!compareSchemas(dt,St.schema))throw new TypeError("Table and inner RecordBatch schemas must be equivalent.")}this.schema=dt,this.batches=Dt,this._offsets=ft??computeChunkOffsets(this.data)}get data(){return this.batches.map(({data:et})=>et)}get numCols(){return this.schema.fields.length}get numRows(){return this.data.reduce((et,ct)=>et+ct.length,0)}get nullCount(){return this._nullCount===-1&&(this._nullCount=computeChunkNullCounts(this.data)),this._nullCount}isValid(et){return!1}get(et){return null}at(et){return this.get(wrapIndex(et,this.numRows))}set(et,ct){}indexOf(et,ct){return-1}[Symbol.iterator](){return this.batches.length>0?instance$2.visit(new Vector(this.data)):new Array(0)[Symbol.iterator]()}toArray(){return[...this]}toString(){return`[
|
|
12
12
|
${this.toArray().join(`,
|
|
@@ -408,7 +408,7 @@ If this is an installed component that works locally, the app may be having trou
|
|
|
408
408
|
|
|
409
409
|
For more troubleshooting help, please see the [Streamlit Component docs](${COMPONENT_DEVELOPER_URL}) or visit our [forums](${COMMUNITY_URL}).`,ct}function tryParseArgs(ot,et,ct,ut){if(!ut)try{return parseArgs(ot,et)}catch(dt){const ft=ensureError(dt);ct(ft)}return[{},[]]}function compareDataframeArgs(ot,et){return ot===et||ot.length===et.length&&ot.every((ct,ut)=>{const dt=et[ut];return ct.key===dt.key&&ct.value===dt.value})}function ComponentInstance(ot){const[et,ct]=reactExports.useState(),{disabled:ut,element:dt,registry:ft,theme:zt,widgetMgr:Dt,width:St,fragmentId:Tt}=ot,{componentName:Rt,jsonArgs:$t,specialArgs:kt,url:Bt}=dt,[Ft,jt]=tryParseArgs($t,kt,ct,et),Kt=reactExports.useRef({args:{},dataframeArgs:[]}),Yt=compareDataframeArgs(Kt.current.dataframeArgs,jt);Kt.current.args=Ft,Kt.current.dataframeArgs=jt;const[Ut,Jt]=reactExports.useState(),[Ht,e0]=reactExports.useState(isNaN(Ft.height)?void 0:Ft.height),t0=reactExports.useRef(!1),Zt=reactExports.useRef(null),o0=reactExports.useRef(),n0=useTimeout(()=>logWarning(getWarnMessage(Rt,Bt)),COMPONENT_READY_WARNING_TIME_MS/4),r0=useTimeout(()=>Jt(!0),COMPONENT_READY_WARNING_TIME_MS);if(reactExports.useEffect(()=>{t0.current&&sendRenderMessage(Kt.current.args,Kt.current.dataframeArgs,ut,zt,Zt.current??void 0)},[ut,Ht,Yt,$t,zt,St]),reactExports.useEffect(()=>{const p0=O0=>{O0!==void 0&&O0!==Ht&&(isNullOrUndefined$1(Zt.current)||(Zt.current.height=O0.toString(),e0(O0)))},_0=()=>{sendRenderMessage(Kt.current.args,Kt.current.dataframeArgs,ut,zt,Zt.current??void 0),n0(),r0(),t0.current=!0,Jt(!1)};o0.current={isReady:()=>t0.current,element:dt,widgetMgr:Dt,setComponentError:ct,componentReadyCallback:_0,frameHeightCallback:p0,fragmentId:Tt}},[Rt,ut,dt,Ht,Yt,Ut,$t,zt,Dt,r0,n0,Tt]),reactExports.useEffect(()=>{var _0;const p0=((_0=Zt.current)==null?void 0:_0.contentWindow)??void 0;if(p0)return ft.registerListener(p0,createIframeMessageHandler(o0)),()=>{p0&&ft.deregisterListener(p0)}},[ft,Rt]),et)return jsxRuntimeExports.jsx(ErrorElement,{name:et.name,message:et.message});const a0=!t0.current&&!Ut&&Ht!==0&&jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({height:Ht,style:Skeleton$1.SkeletonStyle.ELEMENT})}),u0=!t0.current&&Ut?jsxRuntimeExports.jsx(AlertElement,{width:St,body:getWarnMessage(Rt,Bt),kind:Kind.WARNING}):null;return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a0,u0,jsxRuntimeExports.jsx(CustomComponentIFrame,{IframeComponent:StyledComponentIframe,className:"stCustomComponentV1","data-testid":"stCustomComponentV1",allow:DEFAULT_IFRAME_FEATURE_POLICY,ref:Zt,src:getSrc(Rt,ft,Bt),width:St,height:Ht??0,scrolling:"no",sandbox:DEFAULT_IFRAME_SANDBOX_POLICY,title:Rt,componentReady:t0.current})]})}const ComponentInstance$1=withTheme(ComponentInstance);class ComponentRegistry{constructor(et){this.msgListeners=new Map,this.registerListener=(ct,ut)=>{this.msgListeners.has(ct),this.msgListeners.set(ct,ut)},this.deregisterListener=ct=>{this.msgListeners.delete(ct)},this.getComponentURL=(ct,ut)=>this.endpoints.buildComponentURL(ct,ut),this.onMessageEvent=ct=>{if(isNullOrUndefined$1(ct.data)||!ct.data.hasOwnProperty("isStreamlitMessage"))return;if(isNullOrUndefined$1(ct.source)){logWarning("Received component message with no eventSource!",ct.data);return}const ut=this.msgListeners.get(ct.source);if(isNullOrUndefined$1(ut)||typeof ut!="function"){logWarning("Received component message for unregistered ComponentInstance!",ct.data);return}const{type:dt}=ct.data;if(isNullOrUndefined$1(dt)){logWarning("Received Streamlit message with no type!",ct.data);return}ut(dt,ct.data)},this.endpoints=et,window.addEventListener("message",this.onMessageEvent)}}const Maybe=reactExports.memo(function ot({children:et}){return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:et})},(ot,et)=>!(ot.enable||et.enable));function makeMarkdownHeading(ot,et){switch(ot.toLowerCase()){case Tags.H1:return`# ${et}`;case Tags.H2:return`## ${et}`;case Tags.H3:return`### ${et}`;default:throw new Error(`Unrecognized tag for header: ${ot}`)}}function Heading(ot){const{width:et,element:ct}=ot,{tag:ut,anchor:dt,body:ft,help:zt,hideAnchor:Dt,divider:St}=ct,Tt=React$1.useContext(IsSidebarContext),Rt=React$1.useContext(IsDialogContext),[$t,...kt]=ft.split(`
|
|
410
410
|
`);return jsxRuntimeExports.jsxs("div",{style:{width:et},className:"stHeading","data-testid":"stHeading",children:[jsxRuntimeExports.jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInSidebarOrDialog:Tt||Rt,style:{width:et},"data-testid":"stMarkdownContainer",children:[jsxRuntimeExports.jsx(HeadingWithActionElements,{anchor:dt,help:zt,hideAnchor:Dt,tag:ut,children:jsxRuntimeExports.jsx(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(ut,$t),overrideComponents:{p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment}})}),kt.length>0&&jsxRuntimeExports.jsx(RenderedMarkdown,{source:kt.join(`
|
|
411
|
-
`),allowHTML:!1})]}),St&&jsxRuntimeExports.jsx(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:St.includes("linear"),color:St})]})}StyledCheckbox$1=createStyled("div",{target:"edwcd611"})(({width:ot,theme:et})=>({width:ot,display:"flex",alignItems:"center",minHeight:et.sizes.smallElementHeight}),""),StyledContent=createStyled("div",{target:"edwcd610"})(({visibility:ot})=>({display:ot===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:ot===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}),"");function translateGapWidth(ot,et){let ct=et.spacing.lg;return ot==="medium"?ct=et.spacing.threeXL:ot==="large"&&(ct=et.spacing.fourXL),ct}const StyledHorizontalBlock=createStyled("div",{target:"e1f1d6gn5"})(({theme:ot,gap:et})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(et,ot)}),""),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=createStyled("div",{target:"e1f1d6gn4"})(({theme:ot,isStale:et,width:ct,elementType:ut})=>({width:ct,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:ot.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${ot.spacing.lg}`,zIndex:ot.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${ot.spacing.xs}`,marginBottom:`-${ot.spacing.xs}`},...et&&ut!=="skeleton"?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{},...ut==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(ut)?{marginBottom:`-${ot.spacing.lg}`}:{}}),""),StyledColumn=createStyled("div",{target:"e1f1d6gn3"})(({theme:ot,weight:et,gap:ct,showBorder:ut,verticalAlignment:dt})=>{const{VerticalAlignment:ft}=Block$2.Column,zt=et*100,Dt=translateGapWidth(ct,ot),St=`calc(${zt}% - ${Dt})`;return{width:St,flex:`1 1 ${St}`,[`@media (max-width: ${ot.breakpoints.columns})`]:{minWidth:`calc(100% - ${ot.spacing.twoXL})`},...dt===ft.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:ot.spacing.sm}},...dt===ft.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:ot.spacing.sm}},...dt===ft.CENTER&&{marginTop:"auto",marginBottom:"auto"},...ut&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`}}},""),StyledVerticalBlock=createStyled("div",{target:"e1f1d6gn2"})(({width:ot,theme:et})=>({width:ot,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:et.spacing.lg}),""),StyledVerticalBlockWrapper=createStyled("div",{target:"e1f1d6gn1"})({name:"1wmy9hl",styles:"display:flex;flex-direction:column;flex:1"}),StyledVerticalBlockBorderWrapper=createStyled("div",{target:"e1f1d6gn0"})(({theme:ot,border:et,height:ct})=>({...et&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`},...ct&&{height:`${ct}px`,overflow:"auto"}}),""),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index-CoKgwXo8.js"),[])),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index-DHFNQm8n.js"),__vite__mapDeps([0,1]))),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index-OR2HlVVN.js"),__vite__mapDeps([2,1]))),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-steA8SlM.js").then(async ot=>(await ot.__tla,ot)).then(ot=>ot.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13]))),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index-Bp04iQqW.js"),__vite__mapDeps([14,15,16,17,4,6,5]))),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index-0aipcnh6.js"),[])),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index-CGhw9Sdf.js"),[])),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index-P_LN9wWJ.js"),__vite__mapDeps([18,9,10,6,5,19,4,20,15,16,21]))),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index-Df9nIm6O.js"),__vite__mapDeps([22,17,16,20,6,5]))),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-DtrE1h0V.js"),[])),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index-RhMZ16-Y.js"),__vite__mapDeps([23,6,5]))),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index-DqxtC9MD.js"),[])),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index-xGO_nKX1.js"),[])),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index-Dwt05210.js"),__vite__mapDeps([24,4,5]))),Video=React$1.lazy(()=>__vitePreload(()=>import("./index-CIL1eIZN.js"),[])),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BHysWwrh.js"),__vite__mapDeps([25,4,6,26,8,12]))),Button=React$1.lazy(()=>__vitePreload(()=>import("./index-CWiqZgRl.js"),[])),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index-D9QNa8Xs.js"),__vite__mapDeps([27,19,4]))),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index-BTHCcLIl.js"),__vite__mapDeps([28,8]))),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index-DURajqPC.js"),__vite__mapDeps([29,4,30,31]))),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BpeIvyJQ.js"),__vite__mapDeps([32,33,34,35,36]))),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index-D-lzdDJ5.js"),__vite__mapDeps([37,19,4]))),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index-BhkIHxDp.js"),__vite__mapDeps([38,19,4]))),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index-fudEipDa.js"),__vite__mapDeps([39,19,4,40,10,11,41,36]))),Html=React$1.lazy(()=>__vitePreload(()=>import("./index-qMuFpOqI.js"),[])),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index-BrRb8POj.js"),__vite__mapDeps([42,19,4]))),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index-Cua9_98i.js"),__vite__mapDeps([43,31]))),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index-CSyyBx79.js"),[])),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index-C4j64dI5.js"),__vite__mapDeps([44,19,4]))),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index-6rnmC53g.js"),__vite__mapDeps([45,19,4]))),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index-CIs9EQe5.js"),__vite__mapDeps([46,7,19,4]))),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index-CW4i_Lge.js"),__vite__mapDeps([47,4,31,26,30]))),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index-ByOIN0Gm.js"),__vite__mapDeps([48,49,50,34,33,19,4,35,36]))),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index-DjQcVgxO.js"),__vite__mapDeps([51,49,50,34,19,4,33,41,36]))),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index-hsTwnoRn.js"),__vite__mapDeps([52,19,4,40,10,11]))),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index-N6IvabtE.js"),__vite__mapDeps([53,7,49,4,33,41,36]))),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0));function hideIfStale(ot,et){return ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):et}const RawElementNodeRenderer=ot=>{const{node:et}=ot;if(!et)throw new Error("ElementNode not found.");const ct={width:ot.width,disableFullscreenMode:ot.disableFullscreenMode},ut={...ct,widgetMgr:ot.widgetMgr,disabled:ot.widgetsDisabled,fragmentId:et.fragmentId};switch(et.element.type){case"alert":{const ft=et.element.alert;return jsxRuntimeExports.jsx(AlertElement,{icon:ft.icon,body:ft.body,kind:getAlertElementKind(ft.format),...ct})}case"arrowTable":return jsxRuntimeExports.jsx(ArrowTable,{element:et.quiverElement,...ct});case"audio":return jsxRuntimeExports.jsx(Audio,{element:et.element.audio,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"balloons":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Balloons,{scriptRunId:ot.scriptRunId}));case"bokehChart":return jsxRuntimeExports.jsx(DebouncedBokehChart,{element:et.element.bokehChart,...ct});case"code":{const ft=et.element.code;return jsxRuntimeExports.jsx(StreamlitSyntaxHighlighter,{language:ft.language,showLineNumbers:ft.showLineNumbers,wrapLines:ft.wrapLines,children:ft.codeText})}case"deckGlJsonChart":return jsxRuntimeExports.jsx(DeckGlJsonChart,{element:et.element.deckGlJsonChart,...ut});case"docString":return jsxRuntimeExports.jsx(DocString,{element:et.element.docString,...ct});case"empty":return jsxRuntimeExports.jsx("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsxRuntimeExports.jsx(ExceptionElement,{element:et.element.exception,...ct});case"graphvizChart":return jsxRuntimeExports.jsx(GraphVizChart,{element:et.element.graphvizChart,...ct});case"heading":return jsxRuntimeExports.jsx(Heading,{element:et.element.heading,...ct});case"iframe":return jsxRuntimeExports.jsx(IFrame,{element:et.element.iframe,...ct});case"imgs":return jsxRuntimeExports.jsx(ImageList,{element:et.element.imgs,endpoints:ot.endpoints,...ct});case"json":return jsxRuntimeExports.jsx(Json,{element:et.element.json,...ct});case"markdown":return jsxRuntimeExports.jsx(Markdown,{element:et.element.markdown,...ct});case"metric":return jsxRuntimeExports.jsx(Metric,{element:et.element.metric});case"html":return jsxRuntimeExports.jsx(Html,{element:et.element.html,...ct});case"pageLink":{const ft=et.element.pageLink,zt=ut.disabled||ft.disabled;return jsxRuntimeExports.jsx(PageLink,{element:ft,disabled:zt,...ct})}case"progress":return jsxRuntimeExports.jsx(Progress,{element:et.element.progress,...ct});case"skeleton":return jsxRuntimeExports.jsx(Skeleton,{element:et.element.skeleton});case"snow":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Snow,{scriptRunId:ot.scriptRunId}));case"spinner":return jsxRuntimeExports.jsx(Spinner,{element:et.element.spinner,...ct});case"text":return jsxRuntimeExports.jsx(TextElement,{element:et.element.text,...ct});case"video":return jsxRuntimeExports.jsx(Video,{element:et.element.video,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"toast":{const ft=et.element.toast;return jsxRuntimeExports.jsx(Toast,{body:ft.body,icon:ft.icon,...ct},et.scriptRunId)}case"arrowDataFrame":{const ft=et.element.arrowDataFrame;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ArrowDataFrame,{element:ft,data:et.quiverElement,...ft.id&&{key:ft.id},...ut})}case"arrowVegaLiteChart":const dt=et.vegaLiteChartElement;return jsxRuntimeExports.jsx(ArrowVegaLiteChart,{element:dt,...ut},dt.id||void 0);case"audioInput":{const ft=et.element.audioInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(AudioInput,{uploadClient:ot.uploadClient,element:ft,...ut},ft.id)}case"button":{const ft=et.element.button;if(ut.disabled=ut.disabled||ft.disabled,ft.isFormSubmitter){const{formId:zt}=ft,Dt=ot.formsData.formsWithUploads.has(zt);return jsxRuntimeExports.jsx(FormSubmitContent,{element:ft,hasInProgressUpload:Dt,...ut})}return jsxRuntimeExports.jsx(Button,{element:ft,...ut})}case"buttonGroup":{const ft=et.element.buttonGroup;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ButtonGroup,{element:ft,...ut},ft.id)}case"downloadButton":{const ft=et.element.downloadButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DownloadButton,{endpoints:ot.endpoints,element:ft,...ut},ft.id)}case"cameraInput":{const ft=et.element.cameraInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(CameraInput,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"chatInput":{const ft=et.element.chatInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ChatInput,{element:ft,...ut},ft.id)}case"checkbox":{const ft=et.element.checkbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Checkbox,{element:ft,...ut},ft.id)}case"colorPicker":{const ft=et.element.colorPicker;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ColorPicker,{element:ft,...ut},ft.id)}case"componentInstance":return jsxRuntimeExports.jsx(ComponentInstance$1,{registry:ot.componentRegistry,element:et.element.componentInstance,...ut});case"dateInput":{const ft=et.element.dateInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DateInput,{element:ft,...ut},ft.id)}case"fileUploader":{const ft=et.element.fileUploader;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(FileUploader,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"linkButton":{const ft=et.element.linkButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(LinkButton,{element:ft,...ut})}case"multiselect":{const ft=et.element.multiselect;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Multiselect,{element:ft,...ut},ft.id)}case"numberInput":{const ft=et.element.numberInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(NumberInput,{element:ft,...ut},ft.id)}case"plotlyChart":{const ft=et.element.plotlyChart;return jsxRuntimeExports.jsx(PlotlyChart,{element:ft,...ut},ft.id)}case"radio":{const ft=et.element.radio;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Radio,{element:ft,...ut},ft.id)}case"selectbox":{const ft=et.element.selectbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Selectbox$1,{element:ft,...ut},ft.id)}case"slider":{const ft=et.element.slider;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Slider$1,{element:ft,...ut},ft.id)}case"textArea":{const ft=et.element.textArea;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextArea,{element:ft,...ut},ft.id)}case"textInput":{const ft=et.element.textInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextInput,{element:ft,...ut},ft.id)}case"timeInput":{const ft=et.element.timeInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TimeInput,{element:ft,...ut},ft.id)}default:throw new Error(`Unrecognized Element type ${et.element.type}`)}},ElementNodeRenderer=ot=>{const{isFullScreen:et,fragmentIdsThisRun:ct}=React$1.useContext(LibContext),{node:ut,width:dt}=ot,ft=ut.element.type||"",zt=shouldComponentBeEnabled(ft,ot.scriptRunState),Dt=isComponentStale(zt,ut,ot.scriptRunState,ot.scriptRunId,ct),St=getElementId(ut.element),Tt=getKeyFromId(St);return jsxRuntimeExports.jsx(Maybe,{enable:zt,children:jsxRuntimeExports.jsx(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(Tt)),"data-testid":"stElementContainer","data-stale":Dt,isStale:Dt&&!et,width:dt,elementType:ft,children:jsxRuntimeExports.jsx(ErrorBoundary,{width:dt,children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsxRuntimeExports.jsx(RawElementNodeRenderer,{...ot,isStale:Dt})})})})})},BlockNodeRenderer=ot=>{const{node:et}=ot,{fragmentIdsThisRun:ct}=reactExports.useContext(LibContext);if(et.isEmpty&&!et.deltaBlock.allowEmpty)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=shouldComponentBeEnabled("",ot.scriptRunState),dt=isComponentStale(ut,et,ot.scriptRunState,ot.scriptRunId,ct),ft={...ot,node:et},zt=ot.disableFullscreenMode||notNullOrUndefined(et.deltaBlock.dialog)||notNullOrUndefined(et.deltaBlock.popover),Dt=jsxRuntimeExports.jsx(LayoutBlock,{...ft,disableFullscreenMode:zt});if(et.deltaBlock.dialog)return jsxRuntimeExports.jsx(DialogWithProvider,{element:et.deltaBlock.dialog,deltaMsgReceivedAt:et.deltaMsgReceivedAt,children:Dt});if(et.deltaBlock.expandable)return jsxRuntimeExports.jsx(Expander,{empty:et.isEmpty,isStale:dt,element:et.deltaBlock.expandable,children:Dt});if(et.deltaBlock.popover)return jsxRuntimeExports.jsx(Popover,{empty:et.isEmpty,element:et.deltaBlock.popover,width:ot.width,children:Dt});if(et.deltaBlock.type==="form"){const{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,border:$t}=et.deltaBlock.form,kt=ot.formsData.submitButtons.get(St),Bt=kt!==void 0&&kt.length>0;return jsxRuntimeExports.jsx(Form,{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,width:ot.width,hasSubmitButton:Bt,scriptRunState:ot.scriptRunState,widgetMgr:ot.widgetMgr,border:$t,children:Dt})}if(et.deltaBlock.chatMessage)return jsxRuntimeExports.jsx(ChatMessage,{element:et.deltaBlock.chatMessage,endpoints:ot.endpoints,children:Dt});if(et.deltaBlock.column)return jsxRuntimeExports.jsx(StyledColumn,{weight:et.deltaBlock.column.weight??0,gap:et.deltaBlock.column.gap??"",verticalAlignment:et.deltaBlock.column.verticalAlignment??void 0,showBorder:et.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:Dt});if(et.deltaBlock.tabContainer){const St={...ft,isStale:dt,renderTabContent:Tt=>jsxRuntimeExports.jsx(VerticalBlock,{...Tt})};return jsxRuntimeExports.jsx(Tabs,{...St})}return Dt},ChildRenderer=ot=>{const{libConfig:et}=reactExports.useContext(LibContext);assignDividerColor(ot.node,useTheme());const ct=new Set;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ot.node.children&&ot.node.children.map((ut,dt)=>{const ft=et.disableFullscreenMode||ot.disableFullscreenMode;if(ut instanceof ElementNode){const zt={...ot,disableFullscreenMode:ft,node:ut},Dt=getElementId(ut.element)||dt.toString();return ct.has(Dt)?null:(ct.add(Dt),jsxRuntimeExports.jsx(ElementNodeRenderer,{...zt},Dt))}if(ut instanceof BlockNode){const zt={...ot,disableFullscreenMode:ft,node:ut};return jsxRuntimeExports.jsx(BlockNodeRenderer,{...zt},dt)}throw new Error(`Unrecognized AppNode: ${ut}`)})})};function ScrollToBottomVerticalBlockWrapper(ot){const{border:et,height:ct,children:ut}=ot,dt=useScrollToBottom();return jsxRuntimeExports.jsx(StyledVerticalBlockBorderWrapper,{border:et,height:ct,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:dt,children:ut})}const VerticalBlock=ot=>{var $t,kt;const et=reactExports.useRef(null),[ct,ut]=React$1.useState(-1),dt=reactExports.useMemo(()=>new ResizeObserver(([Bt])=>{window.requestAnimationFrame(()=>{ut(Bt.target.getBoundingClientRect().width||-1)})}),[ut]),ft=(($t=ot.node.deltaBlock.vertical)==null?void 0:$t.border)??!1,zt=((kt=ot.node.deltaBlock.vertical)==null?void 0:kt.height)||void 0,Dt=zt&&ot.node.children.find(Bt=>Bt instanceof BlockNode&&Bt.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(et.current&&dt.observe(et.current),()=>{dt.disconnect()}),[dt,Dt]);const St=Dt?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,Tt={...ot,width:ct},Rt=getKeyFromId(ot.node.deltaBlock.id);return jsxRuntimeExports.jsx(St,{border:ft,height:zt,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsxRuntimeExports.jsx(StyledVerticalBlockWrapper,{ref:et,children:jsxRuntimeExports.jsx(StyledVerticalBlock,{width:ct,className:classNames("stVerticalBlock",convertKeyToClassName(Rt)),"data-testid":"stVerticalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...Tt})})})})},HorizontalBlock=ot=>{var ct;const et=((ct=ot.node.deltaBlock.horizontal)==null?void 0:ct.gap)??"";return jsxRuntimeExports.jsx(StyledHorizontalBlock,{gap:et,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...ot})})};function LayoutBlock(ot){return ot.node.deltaBlock.horizontal?jsxRuntimeExports.jsx(HorizontalBlock,{...ot}):jsxRuntimeExports.jsx(VerticalBlock,{...ot})}let StyledDataFrameOverlay,PortalProvider;StyledDataFrameOverlay=createStyled("div",{target:"e1v116lc0"})(({theme:ot})=>({position:"fixed",top:0,left:0,zIndex:ot.zIndices.tablePortal,lineHeight:"100%"}),""),PortalContext=React$1.createContext(null),PortalProvider=({children:ot})=>{const et=reactExports.useRef(null),ct=reactExports.useCallback(()=>et.current,[]);return jsxRuntimeExports.jsxs(PortalContext.Provider,{value:ct,children:[ot,jsxRuntimeExports.jsx(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:et})]})};function ThemeProvider({theme:ot,baseuiTheme:et,children:ct}){return jsxRuntimeExports.jsx(ThemeProvider$1,{theme:et||baseuiLightTheme,children:jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:ct})})}function toCodePoint(ot,et){const ct=[];let ut=0,dt=0,ft=0;for(;ft<ot.length;)ut=ot.charCodeAt(ft++),dt?(ct.push((65536+(dt-55296<<10)+(ut-56320)).toString(16)),dt=0):55296<=ut&&ut<=56319?dt=ut:ct.push(ut.toString(16));return ct.join("-")}const UFE0Fg=/\uFE0F/g,U200D="\u200D";function grabTheRightIcon(ot){return toCodePoint(ot.indexOf(U200D)<0?ot.replace(UFE0Fg,""):ot)}function iconToUrl(ot){const et=/^:(.+)\/(.+):$/,ct=ot.match(et);return ct===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${ct[2]}/default/24px.svg`}function handleFavicon(ot,et,ct){const ut=extractEmoji(ot);let dt;ut&&!ot.startsWith(":material")?dt=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(ut)}.png`:ot.startsWith(":material")?dt=iconToUrl(ot):dt=ct.buildMediaURL(ot),overwriteFavicon(dt),et({type:"SET_PAGE_FAVICON",favicon:dt})}function overwriteFavicon(ot){const et=document.querySelector("link[rel='shortcut icon']");et&&(et.href=ot)}function extractEmoji(ot){const et=ot.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(et))?nodeEmoji$1.get(et):nodeEmoji$1.hasEmoji(ot)?ot:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(ot,et){return ot&&baseFor$1(ot,et,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(ot){return typeof ot=="function"?ot:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(ot,et){return ot&&baseForOwn$3(ot,castFunction$1(et))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(ot){return this.__data__.set(ot,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(ot){return this.__data__.has(ot)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(ot){var et=-1,ct=ot==null?0:ot.length;for(this.__data__=new MapCache$1;++et<ct;)this.add(ot[et])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1,SetCache$3.prototype.has=setCacheHas$1,_SetCache=SetCache$3;function arraySome$2(ot,et){for(var ct=-1,ut=ot==null?0:ot.length;++ct<ut;)if(et(ot[ct],ct,ot))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(ot,et){return ot.has(et)}let SetCache$2,arraySome$1,cacheHas$2,COMPARE_PARTIAL_FLAG$b,COMPARE_UNORDERED_FLAG$7;_cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$b,Dt=ot.length,St=et.length;if(Dt!=St&&!(zt&&St>Dt))return!1;var Tt=ft.get(ot),Rt=ft.get(et);if(Tt&&Rt)return Tt==et&&Rt==ot;var $t=-1,kt=!0,Bt=ct&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ft.set(ot,et),ft.set(et,ot);++$t<Dt;){var Ft=ot[$t],jt=et[$t];if(ut)var Kt=zt?ut(jt,Ft,$t,et,ot,ft):ut(Ft,jt,$t,ot,et,ft);if(Kt!==void 0){if(Kt)continue;kt=!1;break}if(Bt){if(!arraySome$1(et,function(Yt,Ut){if(!cacheHas$2(Bt,Ut)&&(Ft===Yt||dt(Ft,Yt,ct,ut,ft)))return Bt.push(Ut)})){kt=!1;break}}else if(!(Ft===jt||dt(Ft,jt,ct,ut,ft))){kt=!1;break}}return ft.delete(ot),ft.delete(et),kt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(ot,et,ct,ut,dt,ft,zt){switch(ct){case dataViewTag$3:if(ot.byteLength!=et.byteLength||ot.byteOffset!=et.byteOffset)return!1;ot=ot.buffer,et=et.buffer;case arrayBufferTag$2:return!(ot.byteLength!=et.byteLength||!ft(new Uint8Array$2(ot),new Uint8Array$2(et)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+ot,+et);case errorTag$2:return ot.name==et.name&&ot.message==et.message;case regexpTag$2:case stringTag$2:return ot==et+"";case mapTag$3:var Dt=mapToArray$1;case setTag$3:var St=ut&COMPARE_PARTIAL_FLAG$a;if(Dt||(Dt=setToArray$1),ot.size!=et.size&&!St)return!1;var Tt=zt.get(ot);if(Tt)return Tt==et;ut|=COMPARE_UNORDERED_FLAG$6,zt.set(ot,et);var Rt=equalArrays$2(Dt(ot),Dt(et),ut,dt,ft,zt);return zt.delete(ot),Rt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(ot)==symbolValueOf$1.call(et)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$9,Dt=getAllKeys$1(ot),St=Dt.length,Tt=getAllKeys$1(et),Rt=Tt.length;if(St!=Rt&&!zt)return!1;for(var $t=St;$t--;){var kt=Dt[$t];if(!(zt?kt in et:hasOwnProperty$f.call(et,kt)))return!1}var Bt=ft.get(ot),Ft=ft.get(et);if(Bt&&Ft)return Bt==et&&Ft==ot;var jt=!0;ft.set(ot,et),ft.set(et,ot);for(var Kt=zt;++$t<St;){kt=Dt[$t];var Yt=ot[kt],Ut=et[kt];if(ut)var Jt=zt?ut(Ut,Yt,kt,et,ot,ft):ut(Yt,Ut,kt,ot,et,ft);if(!(Jt===void 0?Yt===Ut||dt(Yt,Ut,ct,ut,ft):Jt)){jt=!1;break}Kt||(Kt=kt=="constructor")}if(jt&&!Kt){var Ht=ot.constructor,e0=et.constructor;Ht!=e0&&"constructor"in ot&&"constructor"in et&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof e0=="function"&&e0 instanceof e0)&&(jt=!1)}return ft.delete(ot),ft.delete(et),jt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(ot,et,ct,ut,dt,ft){var zt=isArray$7(ot),Dt=isArray$7(et),St=zt?arrayTag$2:getTag$1(ot),Tt=Dt?arrayTag$2:getTag$1(et);St=St==argsTag$3?objectTag$4:St,Tt=Tt==argsTag$3?objectTag$4:Tt;var Rt=St==objectTag$4,$t=Tt==objectTag$4,kt=St==Tt;if(kt&&isBuffer$2(ot)){if(!isBuffer$2(et))return!1;zt=!0,Rt=!1}if(kt&&!Rt)return ft||(ft=new Stack$2),zt||isTypedArray$2(ot)?equalArrays$1(ot,et,ct,ut,dt,ft):equalByTag$1(ot,et,St,ct,ut,dt,ft);if(!(ct&COMPARE_PARTIAL_FLAG$8)){var Bt=Rt&&hasOwnProperty$e.call(ot,"__wrapped__"),Ft=$t&&hasOwnProperty$e.call(et,"__wrapped__");if(Bt||Ft){var jt=Bt?ot.value():ot,Kt=Ft?et.value():et;return ft||(ft=new Stack$2),dt(jt,Kt,ct,ut,ft)}}return kt?(ft||(ft=new Stack$2),equalObjects$1(ot,et,ct,ut,dt,ft)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(ot,et,ct,ut,dt){return ot===et?!0:ot==null||et==null||!isObjectLike$1(ot)&&!isObjectLike$1(et)?ot!==ot&&et!==et:baseIsEqualDeep$1(ot,et,ct,ut,baseIsEqual$4,dt)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(ot,et,ct,ut){var dt=ct.length,ft=dt,zt=!ut;if(ot==null)return!ft;for(ot=Object(ot);dt--;){var Dt=ct[dt];if(zt&&Dt[2]?Dt[1]!==ot[Dt[0]]:!(Dt[0]in ot))return!1}for(;++dt<ft;){Dt=ct[dt];var St=Dt[0],Tt=ot[St],Rt=Dt[1];if(zt&&Dt[2]){if(Tt===void 0&&!(St in ot))return!1}else{var $t=new Stack$1;if(ut)var kt=ut(Tt,Rt,St,ot,et,$t);if(!(kt===void 0?baseIsEqual$3(Rt,Tt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,ut,$t):kt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$4=isObject_1;function isStrictComparable$3(ot){return ot===ot&&!isObject$4(ot)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(ot){for(var et=keys$1(ot),ct=et.length;ct--;){var ut=et[ct],dt=ot[ut];et[ct]=[ut,dt,isStrictComparable$2(dt)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(ot,et){return function(ct){return ct==null?!1:ct[ot]===et&&(et!==void 0||ot in Object(ct))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(ot){var et=getMatchData$1(ot);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(ct){return ct===ot||baseIsMatch$1(ct,ot,et)}}var _baseMatches=baseMatches$2;function baseHasIn$2(ot,et){return ot!=null&&et in Object(ot)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(ot,et,ct){et=castPath$3(et,ot);for(var ut=-1,dt=et.length,ft=!1;++ut<dt;){var zt=toKey$4(et[ut]);if(!(ft=ot!=null&&ct(ot,zt)))break;ot=ot[zt]}return ft||++ut!=dt?ft:(dt=ot==null?0:ot.length,!!dt&&isLength$1(dt)&&isIndex$2(zt,dt)&&(isArray$6(ot)||isArguments$1(ot)))}let baseHasIn$1,hasPath$1;_hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(ot,et){return ot!=null&&hasPath$1(ot,et,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(ot,et){return isKey$2(ot)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$3(ot),et):function(ct){var ut=get$2(ct,ot);return ut===void 0&&ut===et?hasIn$2(ct,ot):baseIsEqual$2(et,ut,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(ot){return function(et){return baseGet$3(et,ot)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(ot){return isKey$1(ot)?baseProperty$1(toKey$2(ot)):basePropertyDeep$1(ot)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(ot){return typeof ot=="function"?ot:ot==null?identity$2:typeof ot=="object"?isArray$5(ot)?baseMatchesProperty$1(ot[0],ot[1]):baseMatches$1(ot):property$1(ot)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(ot,et){return function(ct,ut){if(ct==null)return ct;if(!isArrayLike$2(ct))return ot(ct,ut);for(var dt=ct.length,ft=et?dt:-1,zt=Object(ct);(et?ft--:++ft<dt)&&ut(zt[ft],ft,zt)!==!1;);return ct}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(ot,et){var ct=-1,ut=isArrayLike$1(ot)?Array(ot.length):[];return baseEach$2(ot,function(dt,ft,zt){ut[++ct]=et(dt,ft,zt)}),ut}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(ot,et){var ct=isArray$4(ot)?arrayMap$3:baseMap$2;return ct(ot,baseIteratee$4(et))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0}),flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(ot){return ot&&ot.__esModule?ot:{default:ot}}var flattenNames=flattenNames$1.flattenNames=function ot(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=[];return(0,_map3.default)(et,function(ut){Array.isArray(ut)?ot(ut).map(function(dt){return ct.push(dt)}):(0,_isPlainObject3.default)(ut)?(0,_forOwn3$2.default)(ut,function(dt,ft){dt===!0&&ct.push(ft),ct.push(ft+"-"+dt)}):(0,_isString3.default)(ut)&&ct.push(ut)}),ct};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$6(ot){return ot&&ot.__esModule?ot:{default:ot}}var mergeClasses=mergeClasses$1.mergeClasses=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=et.default&&(0,_cloneDeep3.default)(et.default)||{};return ct.map(function(dt){var ft=et[dt];return ft&&(0,_forOwn3$1.default)(ft,function(zt,Dt){ut[Dt]||(ut[Dt]={}),ut[Dt]=_extends$w({},ut[Dt],ft[Dt])}),dt}),ut};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0}),autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$5(ot){return ot.__esModule?ot:{default:ot}}var transforms={borderRadius:function ot(et){return{msBorderRadius:et,MozBorderRadius:et,OBorderRadius:et,WebkitBorderRadius:et,borderRadius:et}},boxShadow:function ot(et){return{msBoxShadow:et,MozBoxShadow:et,OBoxShadow:et,WebkitBoxShadow:et,boxShadow:et}},userSelect:function ot(et){return{WebkitTouchCallout:et,KhtmlUserSelect:et,MozUserSelect:et,msUserSelect:et,WebkitUserSelect:et,userSelect:et}},flex:function ot(et){return{WebkitBoxFlex:et,MozBoxFlex:et,WebkitFlex:et,msFlex:et,flex:et}},flexBasis:function ot(et){return{WebkitFlexBasis:et,flexBasis:et}},justifyContent:function ot(et){return{WebkitJustifyContent:et,justifyContent:et}},transition:function ot(et){return{msTransition:et,MozTransition:et,OTransition:et,WebkitTransition:et,transition:et}},transform:function ot(et){return{msTransform:et,MozTransform:et,OTransform:et,WebkitTransform:et,transform:et}},absolute:function ot(et){var ct=et&&et.split(" ");return{position:"absolute",top:ct&&ct[0],right:ct&&ct[1],bottom:ct&&ct[2],left:ct&&ct[3]}},extend:function ot(et,ct){var ut=ct[et];return ut||{extend:et}}},autoprefix=autoprefix$1.autoprefix=function ot(et){var ct={};return(0,_forOwn3.default)(et,function(ut,dt){var ft={};(0,_forOwn3.default)(ut,function(zt,Dt){var St=transforms[Dt];St?ft=_extends$v({},ft,St(zt)):ft[Dt]=zt}),ct[dt]=ft}),ct};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0}),hover$1.hover=void 0;var _extends$u=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$f(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$f(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var hover=hover$1.hover=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$f(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$f(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$f(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={hover:!1},Dt.handleMouseOver=function(){return Dt.setState({hover:!0})},Dt.handleMouseOut=function(){return Dt.setState({hover:!1})},Dt.render=function(){return _react2$3.default.createElement(ct,{onMouseOver:Dt.handleMouseOver,onMouseOut:Dt.handleMouseOut},_react2$3.default.createElement(et,_extends$u({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$f(Dt,St)}return dt}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0}),active$1.active=void 0;var _extends$t=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$e(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$e(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var active=active$1.active=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$e(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$e(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$e(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={active:!1},Dt.handleMouseDown=function(){return Dt.setState({active:!0})},Dt.handleMouseUp=function(){return Dt.setState({active:!1})},Dt.render=function(){return _react2$2.default.createElement(ct,{onMouseDown:Dt.handleMouseDown,onMouseUp:Dt.handleMouseUp},_react2$2.default.createElement(et,_extends$t({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$e(Dt,St)}return dt}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function ot(et,ct){var ut={},dt=function(ft){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ut[ft]=zt};return et===0&&dt("first-child"),et===ct-1&&dt("last-child"),(et===0||et%2===0)&&dt("even"),Math.abs(et%2)===1&&dt("odd"),dt("nth-child",et),ut};loop.default=loopable,Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(ot){return ot&&ot.__esModule?ot:{default:ot}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default,lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function ot(et){for(var ct=arguments.length,ut=Array(ct>1?ct-1:0),dt=1;dt<ct;dt++)ut[dt-1]=arguments[dt];var ft=(0,_flattenNames2.default)(ut),zt=(0,_mergeClasses2.default)(et,ft);return(0,_autoprefix2.default)(zt)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function ot(et,ct,ut,dt,ft){var zt=ft.clientWidth,Dt=ft.clientHeight,St=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,Tt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Rt=St-(ft.getBoundingClientRect().left+window.pageXOffset),$t=Tt-(ft.getBoundingClientRect().top+window.pageYOffset);if(ut==="vertical"){var kt=void 0;if($t<0?kt=0:$t>Dt?kt=1:kt=Math.round($t*100/Dt)/100,ct.a!==kt)return{h:ct.h,s:ct.s,l:ct.l,a:kt,source:"rgb"}}else{var Bt=void 0;if(Rt<0?Bt=0:Rt>zt?Bt=1:Bt=Math.round(Rt*100/zt)/100,dt!==Bt)return{h:ct.h,s:ct.s,l:ct.l,a:Bt,source:"rgb"}}return null},checkboardCache={},render=function ot(et,ct,ut,dt){if(typeof document>"u"&&!dt)return null;var ft=dt?new dt:document.createElement("canvas");ft.width=ut*2,ft.height=ut*2;var zt=ft.getContext("2d");return zt?(zt.fillStyle=et,zt.fillRect(0,0,ft.width,ft.height),zt.fillStyle=ct,zt.fillRect(0,0,ut,ut),zt.translate(ut,ut),zt.fillRect(0,0,ut,ut),ft.toDataURL()):null},get$1=function ot(et,ct,ut,dt){var ft=et+"-"+ct+"-"+ut+(dt?"-server":"");if(checkboardCache[ft])return checkboardCache[ft];var zt=render(et,ct,ut,dt);return checkboardCache[ft]=zt,zt},_extends$s=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},Checkboard=function ot(et){var ct=et.white,ut=et.grey,dt=et.size,ft=et.renderers,zt=et.borderRadius,Dt=et.boxShadow,St=et.children,Tt=_default$2({default:{grid:{borderRadius:zt,boxShadow:Dt,absolute:"0px 0px 0px 0px",background:"url("+get$1(ct,ut,dt,ft.canvas)+") center left"}}});return reactExports.isValidElement(St)?React$1.cloneElement(St,_extends$s({},St.props,{style:_extends$s({},St.props.style,Tt.grid)})):React$1.createElement("div",{style:Tt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_createClass$d=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$d(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$d(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Alpha=function(ot){_inherits$d(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$d(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$d(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$2(Tt,dt.props.hsl,dt.props.direction,dt.props.a,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},dt.unbindEventListeners=function(){window.removeEventListener("mousemove",dt.handleChange),window.removeEventListener("mouseup",dt.handleMouseUp)},ut),_possibleConstructorReturn$d(dt,ft)}return _createClass$d(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var ct=this,ut=this.props.rgb,dt=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
411
|
+
`),allowHTML:!1})]}),St&&jsxRuntimeExports.jsx(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:St.includes("linear"),color:St})]})}StyledCheckbox$1=createStyled("div",{target:"edwcd611"})(({width:ot,theme:et})=>({width:ot,display:"flex",alignItems:"center",minHeight:et.sizes.smallElementHeight}),""),StyledContent=createStyled("div",{target:"edwcd610"})(({visibility:ot})=>({display:ot===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:ot===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}),"");function translateGapWidth(ot,et){let ct=et.spacing.lg;return ot==="medium"?ct=et.spacing.threeXL:ot==="large"&&(ct=et.spacing.fourXL),ct}const StyledHorizontalBlock=createStyled("div",{target:"e1f1d6gn5"})(({theme:ot,gap:et})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:translateGapWidth(et,ot)}),""),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=createStyled("div",{target:"e1f1d6gn4"})(({theme:ot,isStale:et,width:ct,elementType:ut})=>({width:ct,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"},":is(.stHtml-empty)":{display:"none"},":has(> .stCacheSpinner)":{height:ot.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${ot.spacing.lg}`,zIndex:ot.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${ot.spacing.xs}`,marginBottom:`-${ot.spacing.xs}`},...et&&ut!=="skeleton"?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{},...ut==="empty"?{display:"none"}:{},...GLOBAL_ELEMENTS.includes(ut)?{marginBottom:`-${ot.spacing.lg}`}:{}}),""),StyledColumn=createStyled("div",{target:"e1f1d6gn3"})(({theme:ot,weight:et,gap:ct,showBorder:ut,verticalAlignment:dt})=>{const{VerticalAlignment:ft}=Block$2.Column,zt=et*100,Dt=translateGapWidth(ct,ot),St=`calc(${zt}% - ${Dt})`;return{width:St,flex:`1 1 ${St}`,[`@media (max-width: ${ot.breakpoints.columns})`]:{minWidth:`calc(100% - ${ot.spacing.twoXL})`},...dt===ft.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:ot.spacing.sm}},...dt===ft.TOP&&{[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginTop:ot.spacing.sm}},...dt===ft.CENTER&&{marginTop:"auto",marginBottom:"auto"},...ut&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`}}},""),StyledVerticalBlock=createStyled("div",{target:"e1f1d6gn2"})(({width:ot,theme:et})=>({width:ot,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:et.spacing.lg}),""),StyledVerticalBlockWrapper=createStyled("div",{target:"e1f1d6gn1"})({name:"1wmy9hl",styles:"display:flex;flex-direction:column;flex:1"}),StyledVerticalBlockBorderWrapper=createStyled("div",{target:"e1f1d6gn0"})(({theme:ot,border:et,height:ct})=>({...et&&{border:`${ot.sizes.borderWidth} solid ${ot.colors.borderColor}`,borderRadius:ot.radii.default,padding:`calc(${ot.spacing.lg} - ${ot.sizes.borderWidth})`},...ct&&{height:`${ct}px`,overflow:"auto"}}),""),Audio=React$1.lazy(()=>__vitePreload(()=>import("./index-BM4uLW3s.js"),[])),Balloons=React$1.lazy(()=>__vitePreload(()=>import("./index-Pb86pUMm.js"),__vite__mapDeps([0,1]))),Snow=React$1.lazy(()=>__vitePreload(()=>import("./index-zflrmcBt.js"),__vite__mapDeps([2,1]))),ArrowDataFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-ZUNcqgeq.js").then(async ot=>(await ot.__tla,ot)).then(ot=>ot.c),__vite__mapDeps([3,4,5,6,7,8,9,10,11,12,13]))),ArrowVegaLiteChart=React$1.lazy(()=>__vitePreload(()=>import("./index-BByqVhYh.js"),__vite__mapDeps([14,15,16,17,4,6,5]))),Toast=React$1.lazy(()=>__vitePreload(()=>import("./index-YUTOpyBs.js"),[])),BokehChart=React$1.lazy(()=>__vitePreload(()=>import("./index-BFkh2EDe.js"),[])),DebouncedBokehChart=debounceRender(BokehChart,100),DeckGlJsonChart=React$1.lazy(()=>__vitePreload(()=>import("./index-ce2FoF0m.js"),__vite__mapDeps([18,9,10,6,5,19,4,20,15,16,21]))),GraphVizChart=React$1.lazy(()=>__vitePreload(()=>import("./index-DEXFHxro.js"),__vite__mapDeps([22,17,16,20,6,5]))),IFrame=React$1.lazy(()=>__vitePreload(()=>import("./index-m1mIjWp5.js"),[])),ImageList=React$1.lazy(()=>__vitePreload(()=>import("./index-w3QLWMIe.js"),__vite__mapDeps([23,6,5]))),LinkButton=React$1.lazy(()=>__vitePreload(()=>import("./index-DmCANcEY.js"),[])),PageLink=React$1.lazy(()=>__vitePreload(()=>import("./index-Hu3FoAZP.js"),[])),PlotlyChart=React$1.lazy(()=>__vitePreload(()=>import("./index-Bo6fA87g.js"),__vite__mapDeps([24,4,5]))),Video=React$1.lazy(()=>__vitePreload(()=>import("./index-CcWWS1JT.js"),[])),AudioInput=React$1.lazy(()=>__vitePreload(()=>import("./index-gVtKu3MD.js"),__vite__mapDeps([25,4,6,26,8,12]))),Button=React$1.lazy(()=>__vitePreload(()=>import("./index-BKdmDn79.js"),[])),ButtonGroup=React$1.lazy(()=>__vitePreload(()=>import("./index-DUZJI1KN.js"),__vite__mapDeps([27,19,4]))),DownloadButton=React$1.lazy(()=>__vitePreload(()=>import("./index-ItgUgpY7.js"),__vite__mapDeps([28,8]))),CameraInput=React$1.lazy(()=>__vitePreload(()=>import("./index-I5lK7nyO.js"),__vite__mapDeps([29,4,30,31]))),ChatInput=React$1.lazy(()=>__vitePreload(()=>import("./index-DlLUjT1S.js"),__vite__mapDeps([32,33,34,35,36]))),Checkbox=React$1.lazy(()=>__vitePreload(()=>import("./index-BFCLs_X3.js"),__vite__mapDeps([37,19,4]))),ColorPicker=React$1.lazy(()=>__vitePreload(()=>import("./index-D2eWP7lT.js"),__vite__mapDeps([38,19,4]))),DateInput=React$1.lazy(()=>__vitePreload(()=>import("./index-DWA8E9x2.js"),__vite__mapDeps([39,19,4,40,10,11,41,36]))),Html=React$1.lazy(()=>__vitePreload(()=>import("./index-DrFZgW3n.js"),[])),Multiselect=React$1.lazy(()=>__vitePreload(()=>import("./index-DBLWtqmb.js"),__vite__mapDeps([42,19,4]))),Progress=React$1.lazy(()=>__vitePreload(()=>import("./index-CbfNI9jm.js"),__vite__mapDeps([43,31]))),Spinner=React$1.lazy(()=>__vitePreload(()=>import("./index-DE-qBTEd.js"),[])),Radio=React$1.lazy(()=>__vitePreload(()=>import("./index-xxcWnwsb.js"),__vite__mapDeps([44,19,4]))),Selectbox$1=React$1.lazy(()=>__vitePreload(()=>import("./index-Dx6YQ-Hb.js"),__vite__mapDeps([45,19,4]))),Slider$1=React$1.lazy(()=>__vitePreload(()=>import("./index-ChM6SngL.js"),__vite__mapDeps([46,7,19,4]))),FileUploader=React$1.lazy(()=>__vitePreload(()=>import("./index-BcpEGcBW.js"),__vite__mapDeps([47,4,31,26,30]))),TextArea=React$1.lazy(()=>__vitePreload(()=>import("./index-BQ4RtD02.js"),__vite__mapDeps([48,49,50,34,33,19,4,35,36]))),TextInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BVyxD_B8.js"),__vite__mapDeps([51,49,50,34,19,4,33,41,36]))),TimeInput=React$1.lazy(()=>__vitePreload(()=>import("./index-BXRfu-ak.js"),__vite__mapDeps([52,19,4,40,10,11]))),NumberInput=React$1.lazy(()=>__vitePreload(()=>import("./index-DVxRcwZL.js"),__vite__mapDeps([53,7,49,4,33,41,36]))),StreamlitSyntaxHighlighter=React$1.lazy(()=>__vitePreload(()=>Promise.resolve().then(()=>StreamlitSyntaxHighlighter$2),void 0));function hideIfStale(ot,et){return ot?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{}):et}const RawElementNodeRenderer=ot=>{const{node:et}=ot;if(!et)throw new Error("ElementNode not found.");const ct={width:ot.width,disableFullscreenMode:ot.disableFullscreenMode},ut={...ct,widgetMgr:ot.widgetMgr,disabled:ot.widgetsDisabled,fragmentId:et.fragmentId};switch(et.element.type){case"alert":{const ft=et.element.alert;return jsxRuntimeExports.jsx(AlertElement,{icon:ft.icon,body:ft.body,kind:getAlertElementKind(ft.format),...ct})}case"arrowTable":return jsxRuntimeExports.jsx(ArrowTable,{element:et.quiverElement,...ct});case"audio":return jsxRuntimeExports.jsx(Audio,{element:et.element.audio,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"balloons":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Balloons,{scriptRunId:ot.scriptRunId}));case"bokehChart":return jsxRuntimeExports.jsx(DebouncedBokehChart,{element:et.element.bokehChart,...ct});case"code":{const ft=et.element.code;return jsxRuntimeExports.jsx(StreamlitSyntaxHighlighter,{language:ft.language,showLineNumbers:ft.showLineNumbers,wrapLines:ft.wrapLines,children:ft.codeText})}case"deckGlJsonChart":return jsxRuntimeExports.jsx(DeckGlJsonChart,{element:et.element.deckGlJsonChart,...ut});case"docString":return jsxRuntimeExports.jsx(DocString,{element:et.element.docString,...ct});case"empty":return jsxRuntimeExports.jsx("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsxRuntimeExports.jsx(ExceptionElement,{element:et.element.exception,...ct});case"graphvizChart":return jsxRuntimeExports.jsx(GraphVizChart,{element:et.element.graphvizChart,...ct});case"heading":return jsxRuntimeExports.jsx(Heading,{element:et.element.heading,...ct});case"iframe":return jsxRuntimeExports.jsx(IFrame,{element:et.element.iframe,...ct});case"imgs":return jsxRuntimeExports.jsx(ImageList,{element:et.element.imgs,endpoints:ot.endpoints,...ct});case"json":return jsxRuntimeExports.jsx(Json,{element:et.element.json,...ct});case"markdown":return jsxRuntimeExports.jsx(Markdown,{element:et.element.markdown,...ct});case"metric":return jsxRuntimeExports.jsx(Metric,{element:et.element.metric});case"html":return jsxRuntimeExports.jsx(Html,{element:et.element.html,...ct});case"pageLink":{const ft=et.element.pageLink,zt=ut.disabled||ft.disabled;return jsxRuntimeExports.jsx(PageLink,{element:ft,disabled:zt,...ct})}case"progress":return jsxRuntimeExports.jsx(Progress,{element:et.element.progress,...ct});case"skeleton":return jsxRuntimeExports.jsx(Skeleton,{element:et.element.skeleton});case"snow":return hideIfStale(ot.isStale,jsxRuntimeExports.jsx(Snow,{scriptRunId:ot.scriptRunId}));case"spinner":return jsxRuntimeExports.jsx(Spinner,{element:et.element.spinner,...ct});case"text":return jsxRuntimeExports.jsx(TextElement,{element:et.element.text,...ct});case"video":return jsxRuntimeExports.jsx(Video,{element:et.element.video,endpoints:ot.endpoints,...ct,elementMgr:ot.widgetMgr});case"toast":{const ft=et.element.toast;return jsxRuntimeExports.jsx(Toast,{body:ft.body,icon:ft.icon,...ct},et.scriptRunId)}case"arrowDataFrame":{const ft=et.element.arrowDataFrame;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ArrowDataFrame,{element:ft,data:et.quiverElement,...ft.id&&{key:ft.id},...ut})}case"arrowVegaLiteChart":const dt=et.vegaLiteChartElement;return jsxRuntimeExports.jsx(ArrowVegaLiteChart,{element:dt,...ut},dt.id||void 0);case"audioInput":{const ft=et.element.audioInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(AudioInput,{uploadClient:ot.uploadClient,element:ft,...ut},ft.id)}case"button":{const ft=et.element.button;if(ut.disabled=ut.disabled||ft.disabled,ft.isFormSubmitter){const{formId:zt}=ft,Dt=ot.formsData.formsWithUploads.has(zt);return jsxRuntimeExports.jsx(FormSubmitContent,{element:ft,hasInProgressUpload:Dt,...ut})}return jsxRuntimeExports.jsx(Button,{element:ft,...ut})}case"buttonGroup":{const ft=et.element.buttonGroup;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ButtonGroup,{element:ft,...ut},ft.id)}case"downloadButton":{const ft=et.element.downloadButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DownloadButton,{endpoints:ot.endpoints,element:ft,...ut},ft.id)}case"cameraInput":{const ft=et.element.cameraInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(CameraInput,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"chatInput":{const ft=et.element.chatInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ChatInput,{element:ft,...ut},ft.id)}case"checkbox":{const ft=et.element.checkbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Checkbox,{element:ft,...ut},ft.id)}case"colorPicker":{const ft=et.element.colorPicker;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(ColorPicker,{element:ft,...ut},ft.id)}case"componentInstance":return jsxRuntimeExports.jsx(ComponentInstance$1,{registry:ot.componentRegistry,element:et.element.componentInstance,...ut});case"dateInput":{const ft=et.element.dateInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(DateInput,{element:ft,...ut},ft.id)}case"fileUploader":{const ft=et.element.fileUploader;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(FileUploader,{element:ft,uploadClient:ot.uploadClient,...ut},ft.id)}case"linkButton":{const ft=et.element.linkButton;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(LinkButton,{element:ft,...ut})}case"multiselect":{const ft=et.element.multiselect;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Multiselect,{element:ft,...ut},ft.id)}case"numberInput":{const ft=et.element.numberInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(NumberInput,{element:ft,...ut},ft.id)}case"plotlyChart":{const ft=et.element.plotlyChart;return jsxRuntimeExports.jsx(PlotlyChart,{element:ft,...ut},ft.id)}case"radio":{const ft=et.element.radio;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Radio,{element:ft,...ut},ft.id)}case"selectbox":{const ft=et.element.selectbox;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Selectbox$1,{element:ft,...ut},ft.id)}case"slider":{const ft=et.element.slider;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(Slider$1,{element:ft,...ut},ft.id)}case"textArea":{const ft=et.element.textArea;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextArea,{element:ft,...ut},ft.id)}case"textInput":{const ft=et.element.textInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TextInput,{element:ft,...ut},ft.id)}case"timeInput":{const ft=et.element.timeInput;return ut.disabled=ut.disabled||ft.disabled,jsxRuntimeExports.jsx(TimeInput,{element:ft,...ut},ft.id)}default:throw new Error(`Unrecognized Element type ${et.element.type}`)}},ElementNodeRenderer=ot=>{const{isFullScreen:et,fragmentIdsThisRun:ct}=React$1.useContext(LibContext),{node:ut,width:dt}=ot,ft=ut.element.type||"",zt=shouldComponentBeEnabled(ft,ot.scriptRunState),Dt=isComponentStale(zt,ut,ot.scriptRunState,ot.scriptRunId,ct),St=getElementId(ut.element),Tt=getKeyFromId(St);return jsxRuntimeExports.jsx(Maybe,{enable:zt,children:jsxRuntimeExports.jsx(StyledElementContainer,{className:classNames("stElementContainer","element-container",convertKeyToClassName(Tt)),"data-testid":"stElementContainer","data-stale":Dt,isStale:Dt&&!et,width:dt,elementType:ft,children:jsxRuntimeExports.jsx(ErrorBoundary,{width:dt,children:jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsxRuntimeExports.jsx(RawElementNodeRenderer,{...ot,isStale:Dt})})})})})},BlockNodeRenderer=ot=>{const{node:et}=ot,{fragmentIdsThisRun:ct}=reactExports.useContext(LibContext);if(et.isEmpty&&!et.deltaBlock.allowEmpty)return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{});const ut=shouldComponentBeEnabled("",ot.scriptRunState),dt=isComponentStale(ut,et,ot.scriptRunState,ot.scriptRunId,ct),ft={...ot,node:et},zt=ot.disableFullscreenMode||notNullOrUndefined(et.deltaBlock.dialog)||notNullOrUndefined(et.deltaBlock.popover),Dt=jsxRuntimeExports.jsx(LayoutBlock,{...ft,disableFullscreenMode:zt});if(et.deltaBlock.dialog)return jsxRuntimeExports.jsx(DialogWithProvider,{element:et.deltaBlock.dialog,deltaMsgReceivedAt:et.deltaMsgReceivedAt,children:Dt});if(et.deltaBlock.expandable)return jsxRuntimeExports.jsx(Expander,{empty:et.isEmpty,isStale:dt,element:et.deltaBlock.expandable,children:Dt});if(et.deltaBlock.popover)return jsxRuntimeExports.jsx(Popover,{empty:et.isEmpty,element:et.deltaBlock.popover,width:ot.width,children:Dt});if(et.deltaBlock.type==="form"){const{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,border:$t}=et.deltaBlock.form,kt=ot.formsData.submitButtons.get(St),Bt=kt!==void 0&&kt.length>0;return jsxRuntimeExports.jsx(Form,{formId:St,clearOnSubmit:Tt,enterToSubmit:Rt,width:ot.width,hasSubmitButton:Bt,scriptRunState:ot.scriptRunState,widgetMgr:ot.widgetMgr,border:$t,children:Dt})}if(et.deltaBlock.chatMessage)return jsxRuntimeExports.jsx(ChatMessage,{element:et.deltaBlock.chatMessage,endpoints:ot.endpoints,children:Dt});if(et.deltaBlock.column)return jsxRuntimeExports.jsx(StyledColumn,{weight:et.deltaBlock.column.weight??0,gap:et.deltaBlock.column.gap??"",verticalAlignment:et.deltaBlock.column.verticalAlignment??void 0,showBorder:et.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:Dt});if(et.deltaBlock.tabContainer){const St={...ft,isStale:dt,renderTabContent:Tt=>jsxRuntimeExports.jsx(VerticalBlock,{...Tt})};return jsxRuntimeExports.jsx(Tabs,{...St})}return Dt},ChildRenderer=ot=>{const{libConfig:et}=reactExports.useContext(LibContext);assignDividerColor(ot.node,useTheme());const ct=new Set;return jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:ot.node.children&&ot.node.children.map((ut,dt)=>{const ft=et.disableFullscreenMode||ot.disableFullscreenMode;if(ut instanceof ElementNode){const zt={...ot,disableFullscreenMode:ft,node:ut},Dt=getElementId(ut.element)||dt.toString();return ct.has(Dt)?null:(ct.add(Dt),jsxRuntimeExports.jsx(ElementNodeRenderer,{...zt},Dt))}if(ut instanceof BlockNode){const zt={...ot,disableFullscreenMode:ft,node:ut};return jsxRuntimeExports.jsx(BlockNodeRenderer,{...zt},dt)}throw new Error(`Unrecognized AppNode: ${ut}`)})})};function ScrollToBottomVerticalBlockWrapper(ot){const{border:et,height:ct,children:ut}=ot,dt=useScrollToBottom();return jsxRuntimeExports.jsx(StyledVerticalBlockBorderWrapper,{border:et,height:ct,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"scroll-to-bottom",ref:dt,children:ut})}const VerticalBlock=ot=>{var $t,kt;const et=reactExports.useRef(null),[ct,ut]=React$1.useState(-1),dt=reactExports.useMemo(()=>new ResizeObserver(([Bt])=>{window.requestAnimationFrame(()=>{ut(Bt.target.getBoundingClientRect().width||-1)})}),[ut]),ft=(($t=ot.node.deltaBlock.vertical)==null?void 0:$t.border)??!1,zt=((kt=ot.node.deltaBlock.vertical)==null?void 0:kt.height)||void 0,Dt=zt&&ot.node.children.find(Bt=>Bt instanceof BlockNode&&Bt.deltaBlock.type==="chatMessage")!==void 0;reactExports.useEffect(()=>(et.current&&dt.observe(et.current),()=>{dt.disconnect()}),[dt,Dt]);const St=Dt?ScrollToBottomVerticalBlockWrapper:StyledVerticalBlockBorderWrapper,Tt={...ot,width:ct},Rt=getKeyFromId(ot.node.deltaBlock.id);return jsxRuntimeExports.jsx(St,{border:ft,height:zt,"data-testid":"stVerticalBlockBorderWrapper","data-test-scroll-behavior":"normal",children:jsxRuntimeExports.jsx(StyledVerticalBlockWrapper,{ref:et,children:jsxRuntimeExports.jsx(StyledVerticalBlock,{width:ct,className:classNames("stVerticalBlock",convertKeyToClassName(Rt)),"data-testid":"stVerticalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...Tt})})})})},HorizontalBlock=ot=>{var ct;const et=((ct=ot.node.deltaBlock.horizontal)==null?void 0:ct.gap)??"";return jsxRuntimeExports.jsx(StyledHorizontalBlock,{gap:et,className:"stHorizontalBlock","data-testid":"stHorizontalBlock",children:jsxRuntimeExports.jsx(ChildRenderer,{...ot})})};function LayoutBlock(ot){return ot.node.deltaBlock.horizontal?jsxRuntimeExports.jsx(HorizontalBlock,{...ot}):jsxRuntimeExports.jsx(VerticalBlock,{...ot})}let StyledDataFrameOverlay,PortalProvider;StyledDataFrameOverlay=createStyled("div",{target:"e1v116lc0"})(({theme:ot})=>({position:"fixed",top:0,left:0,zIndex:ot.zIndices.tablePortal,lineHeight:"100%"}),""),PortalContext=React$1.createContext(null),PortalProvider=({children:ot})=>{const et=reactExports.useRef(null),ct=reactExports.useCallback(()=>et.current,[]);return jsxRuntimeExports.jsxs(PortalContext.Provider,{value:ct,children:[ot,jsxRuntimeExports.jsx(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:et})]})};function ThemeProvider({theme:ot,baseuiTheme:et,children:ct}){return jsxRuntimeExports.jsx(ThemeProvider$1,{theme:et||baseuiLightTheme,children:jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:ct})})}function toCodePoint(ot,et){const ct=[];let ut=0,dt=0,ft=0;for(;ft<ot.length;)ut=ot.charCodeAt(ft++),dt?(ct.push((65536+(dt-55296<<10)+(ut-56320)).toString(16)),dt=0):55296<=ut&&ut<=56319?dt=ut:ct.push(ut.toString(16));return ct.join("-")}const UFE0Fg=/\uFE0F/g,U200D="\u200D";function grabTheRightIcon(ot){return toCodePoint(ot.indexOf(U200D)<0?ot.replace(UFE0Fg,""):ot)}function iconToUrl(ot){const et=/^:(.+)\/(.+):$/,ct=ot.match(et);return ct===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${ct[2]}/default/24px.svg`}function handleFavicon(ot,et,ct){const ut=extractEmoji(ot);let dt;ut&&!ot.startsWith(":material")?dt=`https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/${grabTheRightIcon(ut)}.png`:ot.startsWith(":material")?dt=iconToUrl(ot):dt=ct.buildMediaURL(ot),overwriteFavicon(dt),et({type:"SET_PAGE_FAVICON",favicon:dt})}function overwriteFavicon(ot){const et=document.querySelector("link[rel='shortcut icon']");et&&(et.href=ot)}function extractEmoji(ot){const et=ot.replace("-","_");return nodeEmoji$1.hasEmoji(nodeEmoji$1.get(et))?nodeEmoji$1.get(et):nodeEmoji$1.hasEmoji(ot)?ot:""}var lib$2={},flattenNames$1={},baseFor$1=_baseFor,keys$2=keys_1;function baseForOwn$4(ot,et){return ot&&baseFor$1(ot,et,keys$2)}var _baseForOwn=baseForOwn$4,identity$3=identity_1;function castFunction$2(ot){return typeof ot=="function"?ot:identity$3}var _castFunction=castFunction$2,baseForOwn$3=_baseForOwn,castFunction$1=_castFunction;function forOwn(ot,et){return ot&&baseForOwn$3(ot,castFunction$1(et))}var forOwn_1=forOwn,HASH_UNDEFINED$3="__lodash_hash_undefined__";function setCacheAdd$2(ot){return this.__data__.set(ot,HASH_UNDEFINED$3),this}var _setCacheAdd=setCacheAdd$2;function setCacheHas$2(ot){return this.__data__.has(ot)}var _setCacheHas=setCacheHas$2,MapCache$1=_MapCache,setCacheAdd$1=_setCacheAdd,setCacheHas$1=_setCacheHas;function SetCache$3(ot){var et=-1,ct=ot==null?0:ot.length;for(this.__data__=new MapCache$1;++et<ct;)this.add(ot[et])}SetCache$3.prototype.add=SetCache$3.prototype.push=setCacheAdd$1,SetCache$3.prototype.has=setCacheHas$1,_SetCache=SetCache$3;function arraySome$2(ot,et){for(var ct=-1,ut=ot==null?0:ot.length;++ct<ut;)if(et(ot[ct],ct,ot))return!0;return!1}var _arraySome=arraySome$2;function cacheHas$3(ot,et){return ot.has(et)}let SetCache$2,arraySome$1,cacheHas$2,COMPARE_PARTIAL_FLAG$b,COMPARE_UNORDERED_FLAG$7;_cacheHas=cacheHas$3,SetCache$2=_SetCache,arraySome$1=_arraySome,cacheHas$2=_cacheHas,COMPARE_PARTIAL_FLAG$b=1,COMPARE_UNORDERED_FLAG$7=2;function equalArrays$3(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$b,Dt=ot.length,St=et.length;if(Dt!=St&&!(zt&&St>Dt))return!1;var Tt=ft.get(ot),Rt=ft.get(et);if(Tt&&Rt)return Tt==et&&Rt==ot;var $t=-1,kt=!0,Bt=ct&COMPARE_UNORDERED_FLAG$7?new SetCache$2:void 0;for(ft.set(ot,et),ft.set(et,ot);++$t<Dt;){var Ft=ot[$t],jt=et[$t];if(ut)var Kt=zt?ut(jt,Ft,$t,et,ot,ft):ut(Ft,jt,$t,ot,et,ft);if(Kt!==void 0){if(Kt)continue;kt=!1;break}if(Bt){if(!arraySome$1(et,function(Yt,Ut){if(!cacheHas$2(Bt,Ut)&&(Ft===Yt||dt(Ft,Yt,ct,ut,ft)))return Bt.push(Ut)})){kt=!1;break}}else if(!(Ft===jt||dt(Ft,jt,ct,ut,ft))){kt=!1;break}}return ft.delete(ot),ft.delete(et),kt}var _equalArrays=equalArrays$3,Symbol$2=_Symbol,Uint8Array$2=_Uint8Array,eq$1=eq_1,equalArrays$2=_equalArrays,mapToArray$1=_mapToArray,setToArray$1=_setToArray,COMPARE_PARTIAL_FLAG$a=1,COMPARE_UNORDERED_FLAG$6=2,boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$2="[object Error]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",symbolProto$2=Symbol$2?Symbol$2.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag$2(ot,et,ct,ut,dt,ft,zt){switch(ct){case dataViewTag$3:if(ot.byteLength!=et.byteLength||ot.byteOffset!=et.byteOffset)return!1;ot=ot.buffer,et=et.buffer;case arrayBufferTag$2:return!(ot.byteLength!=et.byteLength||!ft(new Uint8Array$2(ot),new Uint8Array$2(et)));case boolTag$2:case dateTag$2:case numberTag$2:return eq$1(+ot,+et);case errorTag$2:return ot.name==et.name&&ot.message==et.message;case regexpTag$2:case stringTag$2:return ot==et+"";case mapTag$3:var Dt=mapToArray$1;case setTag$3:var St=ut&COMPARE_PARTIAL_FLAG$a;if(Dt||(Dt=setToArray$1),ot.size!=et.size&&!St)return!1;var Tt=zt.get(ot);if(Tt)return Tt==et;ut|=COMPARE_UNORDERED_FLAG$6,zt.set(ot,et);var Rt=equalArrays$2(Dt(ot),Dt(et),ut,dt,ft,zt);return zt.delete(ot),Rt;case symbolTag$2:if(symbolValueOf$1)return symbolValueOf$1.call(ot)==symbolValueOf$1.call(et)}return!1}var _equalByTag=equalByTag$2,getAllKeys$1=_getAllKeys,COMPARE_PARTIAL_FLAG$9=1,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty;function equalObjects$2(ot,et,ct,ut,dt,ft){var zt=ct&COMPARE_PARTIAL_FLAG$9,Dt=getAllKeys$1(ot),St=Dt.length,Tt=getAllKeys$1(et),Rt=Tt.length;if(St!=Rt&&!zt)return!1;for(var $t=St;$t--;){var kt=Dt[$t];if(!(zt?kt in et:hasOwnProperty$f.call(et,kt)))return!1}var Bt=ft.get(ot),Ft=ft.get(et);if(Bt&&Ft)return Bt==et&&Ft==ot;var jt=!0;ft.set(ot,et),ft.set(et,ot);for(var Kt=zt;++$t<St;){kt=Dt[$t];var Yt=ot[kt],Ut=et[kt];if(ut)var Jt=zt?ut(Ut,Yt,kt,et,ot,ft):ut(Yt,Ut,kt,ot,et,ft);if(!(Jt===void 0?Yt===Ut||dt(Yt,Ut,ct,ut,ft):Jt)){jt=!1;break}Kt||(Kt=kt=="constructor")}if(jt&&!Kt){var Ht=ot.constructor,e0=et.constructor;Ht!=e0&&"constructor"in ot&&"constructor"in et&&!(typeof Ht=="function"&&Ht instanceof Ht&&typeof e0=="function"&&e0 instanceof e0)&&(jt=!1)}return ft.delete(ot),ft.delete(et),jt}var _equalObjects=equalObjects$2,Stack$2=_Stack,equalArrays$1=_equalArrays,equalByTag$1=_equalByTag,equalObjects$1=_equalObjects,getTag$1=_getTag,isArray$7=isArray_1,isBuffer$2=isBufferExports,isTypedArray$2=isTypedArray_1,COMPARE_PARTIAL_FLAG$8=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$g=Object.prototype,hasOwnProperty$e=objectProto$g.hasOwnProperty;function baseIsEqualDeep$2(ot,et,ct,ut,dt,ft){var zt=isArray$7(ot),Dt=isArray$7(et),St=zt?arrayTag$2:getTag$1(ot),Tt=Dt?arrayTag$2:getTag$1(et);St=St==argsTag$3?objectTag$4:St,Tt=Tt==argsTag$3?objectTag$4:Tt;var Rt=St==objectTag$4,$t=Tt==objectTag$4,kt=St==Tt;if(kt&&isBuffer$2(ot)){if(!isBuffer$2(et))return!1;zt=!0,Rt=!1}if(kt&&!Rt)return ft||(ft=new Stack$2),zt||isTypedArray$2(ot)?equalArrays$1(ot,et,ct,ut,dt,ft):equalByTag$1(ot,et,St,ct,ut,dt,ft);if(!(ct&COMPARE_PARTIAL_FLAG$8)){var Bt=Rt&&hasOwnProperty$e.call(ot,"__wrapped__"),Ft=$t&&hasOwnProperty$e.call(et,"__wrapped__");if(Bt||Ft){var jt=Bt?ot.value():ot,Kt=Ft?et.value():et;return ft||(ft=new Stack$2),dt(jt,Kt,ct,ut,ft)}}return kt?(ft||(ft=new Stack$2),equalObjects$1(ot,et,ct,ut,dt,ft)):!1}var _baseIsEqualDeep=baseIsEqualDeep$2,baseIsEqualDeep$1=_baseIsEqualDeep,isObjectLike$1=isObjectLike_1;function baseIsEqual$4(ot,et,ct,ut,dt){return ot===et?!0:ot==null||et==null||!isObjectLike$1(ot)&&!isObjectLike$1(et)?ot!==ot&&et!==et:baseIsEqualDeep$1(ot,et,ct,ut,baseIsEqual$4,dt)}var _baseIsEqual=baseIsEqual$4,Stack$1=_Stack,baseIsEqual$3=_baseIsEqual,COMPARE_PARTIAL_FLAG$7=1,COMPARE_UNORDERED_FLAG$5=2;function baseIsMatch$2(ot,et,ct,ut){var dt=ct.length,ft=dt,zt=!ut;if(ot==null)return!ft;for(ot=Object(ot);dt--;){var Dt=ct[dt];if(zt&&Dt[2]?Dt[1]!==ot[Dt[0]]:!(Dt[0]in ot))return!1}for(;++dt<ft;){Dt=ct[dt];var St=Dt[0],Tt=ot[St],Rt=Dt[1];if(zt&&Dt[2]){if(Tt===void 0&&!(St in ot))return!1}else{var $t=new Stack$1;if(ut)var kt=ut(Tt,Rt,St,ot,et,$t);if(!(kt===void 0?baseIsEqual$3(Rt,Tt,COMPARE_PARTIAL_FLAG$7|COMPARE_UNORDERED_FLAG$5,ut,$t):kt))return!1}}return!0}var _baseIsMatch=baseIsMatch$2,isObject$4=isObject_1;function isStrictComparable$3(ot){return ot===ot&&!isObject$4(ot)}var _isStrictComparable=isStrictComparable$3,isStrictComparable$2=_isStrictComparable,keys$1=keys_1;function getMatchData$2(ot){for(var et=keys$1(ot),ct=et.length;ct--;){var ut=et[ct],dt=ot[ut];et[ct]=[ut,dt,isStrictComparable$2(dt)]}return et}var _getMatchData=getMatchData$2;function matchesStrictComparable$3(ot,et){return function(ct){return ct==null?!1:ct[ot]===et&&(et!==void 0||ot in Object(ct))}}var _matchesStrictComparable=matchesStrictComparable$3,baseIsMatch$1=_baseIsMatch,getMatchData$1=_getMatchData,matchesStrictComparable$2=_matchesStrictComparable;function baseMatches$2(ot){var et=getMatchData$1(ot);return et.length==1&&et[0][2]?matchesStrictComparable$2(et[0][0],et[0][1]):function(ct){return ct===ot||baseIsMatch$1(ct,ot,et)}}var _baseMatches=baseMatches$2;function baseHasIn$2(ot,et){return ot!=null&&et in Object(ot)}var _baseHasIn=baseHasIn$2,castPath$3=_castPath,isArguments$1=isArguments_1,isArray$6=isArray_1,isIndex$2=_isIndex,isLength$1=isLength_1,toKey$4=_toKey;function hasPath$2(ot,et,ct){et=castPath$3(et,ot);for(var ut=-1,dt=et.length,ft=!1;++ut<dt;){var zt=toKey$4(et[ut]);if(!(ft=ot!=null&&ct(ot,zt)))break;ot=ot[zt]}return ft||++ut!=dt?ft:(dt=ot==null?0:ot.length,!!dt&&isLength$1(dt)&&isIndex$2(zt,dt)&&(isArray$6(ot)||isArguments$1(ot)))}let baseHasIn$1,hasPath$1;_hasPath=hasPath$2,baseHasIn$1=_baseHasIn,hasPath$1=_hasPath;function hasIn$3(ot,et){return ot!=null&&hasPath$1(ot,et,baseHasIn$1)}var hasIn_1=hasIn$3,baseIsEqual$2=_baseIsEqual,get$2=get_1,hasIn$2=hasIn_1,isKey$2=_isKey,isStrictComparable$1=_isStrictComparable,matchesStrictComparable$1=_matchesStrictComparable,toKey$3=_toKey,COMPARE_PARTIAL_FLAG$6=1,COMPARE_UNORDERED_FLAG$4=2;function baseMatchesProperty$2(ot,et){return isKey$2(ot)&&isStrictComparable$1(et)?matchesStrictComparable$1(toKey$3(ot),et):function(ct){var ut=get$2(ct,ot);return ut===void 0&&ut===et?hasIn$2(ct,ot):baseIsEqual$2(et,ut,COMPARE_PARTIAL_FLAG$6|COMPARE_UNORDERED_FLAG$4)}}var _baseMatchesProperty=baseMatchesProperty$2,baseGet$3=_baseGet;function basePropertyDeep$2(ot){return function(et){return baseGet$3(et,ot)}}var _basePropertyDeep=basePropertyDeep$2,baseProperty$1=_baseProperty,basePropertyDeep$1=_basePropertyDeep,isKey$1=_isKey,toKey$2=_toKey;function property$2(ot){return isKey$1(ot)?baseProperty$1(toKey$2(ot)):basePropertyDeep$1(ot)}var property_1=property$2,baseMatches$1=_baseMatches,baseMatchesProperty$1=_baseMatchesProperty,identity$2=identity_1,isArray$5=isArray_1,property$1=property_1;function baseIteratee$5(ot){return typeof ot=="function"?ot:ot==null?identity$2:typeof ot=="object"?isArray$5(ot)?baseMatchesProperty$1(ot[0],ot[1]):baseMatches$1(ot):property$1(ot)}var _baseIteratee=baseIteratee$5,isArrayLike$2=isArrayLike_1;function createBaseEach$2(ot,et){return function(ct,ut){if(ct==null)return ct;if(!isArrayLike$2(ct))return ot(ct,ut);for(var dt=ct.length,ft=et?dt:-1,zt=Object(ct);(et?ft--:++ft<dt)&&ut(zt[ft],ft,zt)!==!1;);return ct}}var _createBaseEach=createBaseEach$2,baseForOwn$2=_baseForOwn,createBaseEach$1=_createBaseEach,baseEach$3=createBaseEach$1(baseForOwn$2),_baseEach=baseEach$3,baseEach$2=_baseEach,isArrayLike$1=isArrayLike_1;function baseMap$3(ot,et){var ct=-1,ut=isArrayLike$1(ot)?Array(ot.length):[];return baseEach$2(ot,function(dt,ft,zt){ut[++ct]=et(dt,ft,zt)}),ut}var _baseMap=baseMap$3,arrayMap$3=_arrayMap,baseIteratee$4=_baseIteratee,baseMap$2=_baseMap,isArray$4=isArray_1;function map$1(ot,et){var ct=isArray$4(ot)?arrayMap$3:baseMap$2;return ct(ot,baseIteratee$4(et))}var map_1=map$1;Object.defineProperty(flattenNames$1,"__esModule",{value:!0}),flattenNames$1.flattenNames=void 0;var _isString2=isString_1,_isString3=_interopRequireDefault$7(_isString2),_forOwn2$2=forOwn_1,_forOwn3$2=_interopRequireDefault$7(_forOwn2$2),_isPlainObject2=isPlainObject_1,_isPlainObject3=_interopRequireDefault$7(_isPlainObject2),_map2=map_1,_map3=_interopRequireDefault$7(_map2);function _interopRequireDefault$7(ot){return ot&&ot.__esModule?ot:{default:ot}}var flattenNames=flattenNames$1.flattenNames=function ot(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],ct=[];return(0,_map3.default)(et,function(ut){Array.isArray(ut)?ot(ut).map(function(dt){return ct.push(dt)}):(0,_isPlainObject3.default)(ut)?(0,_forOwn3$2.default)(ut,function(dt,ft){dt===!0&&ct.push(ft),ct.push(ft+"-"+dt)}):(0,_isString3.default)(ut)&&ct.push(ut)}),ct};flattenNames$1.default=flattenNames;var mergeClasses$1={};Object.defineProperty(mergeClasses$1,"__esModule",{value:!0}),mergeClasses$1.mergeClasses=void 0;var _forOwn2$1=forOwn_1,_forOwn3$1=_interopRequireDefault$6(_forOwn2$1),_cloneDeep2=cloneDeep_1,_cloneDeep3=_interopRequireDefault$6(_cloneDeep2),_extends$w=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$6(ot){return ot&&ot.__esModule?ot:{default:ot}}var mergeClasses=mergeClasses$1.mergeClasses=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ut=et.default&&(0,_cloneDeep3.default)(et.default)||{};return ct.map(function(dt){var ft=et[dt];return ft&&(0,_forOwn3$1.default)(ft,function(zt,Dt){ut[Dt]||(ut[Dt]={}),ut[Dt]=_extends$w({},ut[Dt],ft[Dt])}),dt}),ut};mergeClasses$1.default=mergeClasses;var autoprefix$1={};Object.defineProperty(autoprefix$1,"__esModule",{value:!0}),autoprefix$1.autoprefix=void 0;var _forOwn2=forOwn_1,_forOwn3=_interopRequireDefault$5(_forOwn2),_extends$v=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot};function _interopRequireDefault$5(ot){return ot.__esModule?ot:{default:ot}}var transforms={borderRadius:function ot(et){return{msBorderRadius:et,MozBorderRadius:et,OBorderRadius:et,WebkitBorderRadius:et,borderRadius:et}},boxShadow:function ot(et){return{msBoxShadow:et,MozBoxShadow:et,OBoxShadow:et,WebkitBoxShadow:et,boxShadow:et}},userSelect:function ot(et){return{WebkitTouchCallout:et,KhtmlUserSelect:et,MozUserSelect:et,msUserSelect:et,WebkitUserSelect:et,userSelect:et}},flex:function ot(et){return{WebkitBoxFlex:et,MozBoxFlex:et,WebkitFlex:et,msFlex:et,flex:et}},flexBasis:function ot(et){return{WebkitFlexBasis:et,flexBasis:et}},justifyContent:function ot(et){return{WebkitJustifyContent:et,justifyContent:et}},transition:function ot(et){return{msTransition:et,MozTransition:et,OTransition:et,WebkitTransition:et,transition:et}},transform:function ot(et){return{msTransform:et,MozTransform:et,OTransform:et,WebkitTransform:et,transform:et}},absolute:function ot(et){var ct=et&&et.split(" ");return{position:"absolute",top:ct&&ct[0],right:ct&&ct[1],bottom:ct&&ct[2],left:ct&&ct[3]}},extend:function ot(et,ct){var ut=ct[et];return ut||{extend:et}}},autoprefix=autoprefix$1.autoprefix=function ot(et){var ct={};return(0,_forOwn3.default)(et,function(ut,dt){var ft={};(0,_forOwn3.default)(ut,function(zt,Dt){var St=transforms[Dt];St?ft=_extends$v({},ft,St(zt)):ft[Dt]=zt}),ct[dt]=ft}),ct};autoprefix$1.default=autoprefix;var hover$1={};Object.defineProperty(hover$1,"__esModule",{value:!0}),hover$1.hover=void 0;var _extends$u=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$3=reactExports,_react2$3=_interopRequireDefault$4(_react$3);function _interopRequireDefault$4(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$f(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$f(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$f(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var hover=hover$1.hover=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$f(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$f(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$f(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={hover:!1},Dt.handleMouseOver=function(){return Dt.setState({hover:!0})},Dt.handleMouseOut=function(){return Dt.setState({hover:!1})},Dt.render=function(){return _react2$3.default.createElement(ct,{onMouseOver:Dt.handleMouseOver,onMouseOut:Dt.handleMouseOut},_react2$3.default.createElement(et,_extends$u({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$f(Dt,St)}return dt}(_react2$3.default.Component)};hover$1.default=hover;var active$1={};Object.defineProperty(active$1,"__esModule",{value:!0}),active$1.active=void 0;var _extends$t=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_react$2=reactExports,_react2$2=_interopRequireDefault$3(_react$2);function _interopRequireDefault$3(ot){return ot&&ot.__esModule?ot:{default:ot}}function _classCallCheck$e(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$e(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$e(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var active=active$1.active=function ot(et){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return function(ut){_inherits$e(dt,ut);function dt(){var ft,zt,Dt,St;_classCallCheck$e(this,dt);for(var Tt=arguments.length,Rt=Array(Tt),$t=0;$t<Tt;$t++)Rt[$t]=arguments[$t];return St=(zt=(Dt=_possibleConstructorReturn$e(this,(ft=dt.__proto__||Object.getPrototypeOf(dt)).call.apply(ft,[this].concat(Rt))),Dt),Dt.state={active:!1},Dt.handleMouseDown=function(){return Dt.setState({active:!0})},Dt.handleMouseUp=function(){return Dt.setState({active:!1})},Dt.render=function(){return _react2$2.default.createElement(ct,{onMouseDown:Dt.handleMouseDown,onMouseUp:Dt.handleMouseUp},_react2$2.default.createElement(et,_extends$t({},Dt.props,Dt.state)))},zt),_possibleConstructorReturn$e(Dt,St)}return dt}(_react2$2.default.Component)};active$1.default=active;var loop={};Object.defineProperty(loop,"__esModule",{value:!0});var loopable=function ot(et,ct){var ut={},dt=function(ft){var zt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;ut[ft]=zt};return et===0&&dt("first-child"),et===ct-1&&dt("last-child"),(et===0||et%2===0)&&dt("even"),Math.abs(et%2)===1&&dt("odd"),dt("nth-child",et),ut};loop.default=loopable,Object.defineProperty(lib$2,"__esModule",{value:!0}),lib$2.ReactCSS=lib$2.loop=lib$2.handleActive=handleHover=lib$2.handleHover=lib$2.hover=void 0;var _flattenNames=flattenNames$1,_flattenNames2=_interopRequireDefault$2(_flattenNames),_mergeClasses=mergeClasses$1,_mergeClasses2=_interopRequireDefault$2(_mergeClasses),_autoprefix=autoprefix$1,_autoprefix2=_interopRequireDefault$2(_autoprefix),_hover2=hover$1,_hover3=_interopRequireDefault$2(_hover2),_active=active$1,_active2=_interopRequireDefault$2(_active),_loop2=loop,_loop3=_interopRequireDefault$2(_loop2);function _interopRequireDefault$2(ot){return ot&&ot.__esModule?ot:{default:ot}}lib$2.hover=_hover3.default;var handleHover=lib$2.handleHover=_hover3.default;lib$2.handleActive=_active2.default,lib$2.loop=_loop3.default;var ReactCSS=lib$2.ReactCSS=function ot(et){for(var ct=arguments.length,ut=Array(ct>1?ct-1:0),dt=1;dt<ct;dt++)ut[dt-1]=arguments[dt];var ft=(0,_flattenNames2.default)(ut),zt=(0,_mergeClasses2.default)(et,ft);return(0,_autoprefix2.default)(zt)},_default$2=lib$2.default=ReactCSS,calculateChange$2=function ot(et,ct,ut,dt,ft){var zt=ft.clientWidth,Dt=ft.clientHeight,St=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,Tt=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Rt=St-(ft.getBoundingClientRect().left+window.pageXOffset),$t=Tt-(ft.getBoundingClientRect().top+window.pageYOffset);if(ut==="vertical"){var kt=void 0;if($t<0?kt=0:$t>Dt?kt=1:kt=Math.round($t*100/Dt)/100,ct.a!==kt)return{h:ct.h,s:ct.s,l:ct.l,a:kt,source:"rgb"}}else{var Bt=void 0;if(Rt<0?Bt=0:Rt>zt?Bt=1:Bt=Math.round(Rt*100/zt)/100,dt!==Bt)return{h:ct.h,s:ct.s,l:ct.l,a:Bt,source:"rgb"}}return null},checkboardCache={},render=function ot(et,ct,ut,dt){if(typeof document>"u"&&!dt)return null;var ft=dt?new dt:document.createElement("canvas");ft.width=ut*2,ft.height=ut*2;var zt=ft.getContext("2d");return zt?(zt.fillStyle=et,zt.fillRect(0,0,ft.width,ft.height),zt.fillStyle=ct,zt.fillRect(0,0,ut,ut),zt.translate(ut,ut),zt.fillRect(0,0,ut,ut),ft.toDataURL()):null},get$1=function ot(et,ct,ut,dt){var ft=et+"-"+ct+"-"+ut+(dt?"-server":"");if(checkboardCache[ft])return checkboardCache[ft];var zt=render(et,ct,ut,dt);return checkboardCache[ft]=zt,zt},_extends$s=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},Checkboard=function ot(et){var ct=et.white,ut=et.grey,dt=et.size,ft=et.renderers,zt=et.borderRadius,Dt=et.boxShadow,St=et.children,Tt=_default$2({default:{grid:{borderRadius:zt,boxShadow:Dt,absolute:"0px 0px 0px 0px",background:"url("+get$1(ct,ut,dt,ft.canvas)+") center left"}}});return reactExports.isValidElement(St)?React$1.cloneElement(St,_extends$s({},St.props,{style:_extends$s({},St.props.style,Tt.grid)})):React$1.createElement("div",{style:Tt.grid})};Checkboard.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var _extends$r=Object.assign||function(ot){for(var et=1;et<arguments.length;et++){var ct=arguments[et];for(var ut in ct)Object.prototype.hasOwnProperty.call(ct,ut)&&(ot[ut]=ct[ut])}return ot},_createClass$d=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$d(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$d(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$d(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Alpha=function(ot){_inherits$d(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$d(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$d(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$2(Tt,dt.props.hsl,dt.props.direction,dt.props.a,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},dt.unbindEventListeners=function(){window.removeEventListener("mousemove",dt.handleChange),window.removeEventListener("mouseup",dt.handleMouseUp)},ut),_possibleConstructorReturn$d(dt,ft)}return _createClass$d(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var ct=this,ut=this.props.rgb,dt=_default$2({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
412
412
|
rgba(`+ut.r+","+ut.g+","+ut.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:ut.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+ut.r+","+ut.g+","+ut.b+`, 0) 0%,
|
|
413
413
|
rgba(`+ut.r+","+ut.g+","+ut.b+", 1) 100%)"},pointer:{left:0,top:ut.a*100+"%"}},overwrite:_extends$r({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return React$1.createElement("div",{style:dt.alpha},React$1.createElement("div",{style:dt.checkboard},React$1.createElement(Checkboard,{renderers:this.props.renderers})),React$1.createElement("div",{style:dt.gradient}),React$1.createElement("div",{style:dt.container,ref:function(ft){return ct.container=ft},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("div",{style:dt.pointer},this.props.pointer?React$1.createElement(this.props.pointer,this.props):React$1.createElement("div",{style:dt.slider}))))}}]),et}(reactExports.PureComponent||reactExports.Component),_createClass$c=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _defineProperty$d(ot,et,ct){return et in ot?Object.defineProperty(ot,et,{value:ct,enumerable:!0,configurable:!0,writable:!0}):ot[et]=ct,ot}function _classCallCheck$c(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$c(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$c(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var DEFAULT_ARROW_OFFSET=1,UP_KEY_CODE=38,DOWN_KEY_CODE=40,VALID_KEY_CODES=[UP_KEY_CODE,DOWN_KEY_CODE],isValidKeyCode=function ot(et){return VALID_KEY_CODES.indexOf(et)>-1},getNumberValue=function ot(et){return Number(String(et).replace(/%/g,""))},idCounter=1,EditableInput=function(ot){_inherits$c(et,ot);function et(ct){_classCallCheck$c(this,et);var ut=_possibleConstructorReturn$c(this,(et.__proto__||Object.getPrototypeOf(et)).call(this));return ut.handleBlur=function(){ut.state.blurValue&&ut.setState({value:ut.state.blurValue,blurValue:null})},ut.handleChange=function(dt){ut.setUpdatedValue(dt.target.value,dt)},ut.handleKeyDown=function(dt){var ft=getNumberValue(dt.target.value);if(!isNaN(ft)&&isValidKeyCode(dt.keyCode)){var zt=ut.getArrowOffset(),Dt=dt.keyCode===UP_KEY_CODE?ft+zt:ft-zt;ut.setUpdatedValue(Dt,dt)}},ut.handleDrag=function(dt){if(ut.props.dragLabel){var ft=Math.round(ut.props.value+dt.movementX);ft>=0&&ft<=ut.props.dragMax&&ut.props.onChange&&ut.props.onChange(ut.getValueObjectWithLabel(ft),dt)}},ut.handleMouseDown=function(dt){ut.props.dragLabel&&(dt.preventDefault(),ut.handleDrag(dt),window.addEventListener("mousemove",ut.handleDrag),window.addEventListener("mouseup",ut.handleMouseUp))},ut.handleMouseUp=function(){ut.unbindEventListeners()},ut.unbindEventListeners=function(){window.removeEventListener("mousemove",ut.handleDrag),window.removeEventListener("mouseup",ut.handleMouseUp)},ut.state={value:String(ct.value).toUpperCase(),blurValue:String(ct.value).toUpperCase()},ut.inputId="rc-editable-input-"+idCounter++,ut}return _createClass$c(et,[{key:"componentDidUpdate",value:function(ct,ut){this.props.value!==this.state.value&&(ct.value!==this.props.value||ut.value!==this.state.value)&&(this.input===document.activeElement?this.setState({blurValue:String(this.props.value).toUpperCase()}):this.setState({value:String(this.props.value).toUpperCase(),blurValue:!this.state.blurValue&&String(this.props.value).toUpperCase()}))}},{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"getValueObjectWithLabel",value:function(ct){return _defineProperty$d({},this.props.label,ct)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||DEFAULT_ARROW_OFFSET}},{key:"setUpdatedValue",value:function(ct,ut){var dt=this.props.label?this.getValueObjectWithLabel(ct):ct;this.props.onChange&&this.props.onChange(dt,ut),this.setState({value:ct})}},{key:"render",value:function(){var ct=this,ut=_default$2({default:{wrap:{position:"relative"}},"user-override":{wrap:this.props.style&&this.props.style.wrap?this.props.style.wrap:{},input:this.props.style&&this.props.style.input?this.props.style.input:{},label:this.props.style&&this.props.style.label?this.props.style.label:{}},"dragLabel-true":{label:{cursor:"ew-resize"}}},{"user-override":!0},this.props);return React$1.createElement("div",{style:ut.wrap},React$1.createElement("input",{id:this.inputId,style:ut.input,ref:function(dt){return ct.input=dt},value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,onBlur:this.handleBlur,placeholder:this.props.placeholder,spellCheck:"false"}),this.props.label&&!this.props.hideLabel?React$1.createElement("label",{htmlFor:this.inputId,style:ut.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),et}(reactExports.PureComponent||reactExports.Component),calculateChange$1=function ot(et,ct,ut,dt){var ft=dt.clientWidth,zt=dt.clientHeight,Dt=typeof et.pageX=="number"?et.pageX:et.touches[0].pageX,St=typeof et.pageY=="number"?et.pageY:et.touches[0].pageY,Tt=Dt-(dt.getBoundingClientRect().left+window.pageXOffset),Rt=St-(dt.getBoundingClientRect().top+window.pageYOffset);if(ct==="vertical"){var $t=void 0;if(Rt<0)$t=359;else if(Rt>zt)$t=0;else{var kt=-(Rt*100/zt)+100;$t=360*kt/100}if(ut.h!==$t)return{h:$t,s:ut.s,l:ut.l,a:ut.a,source:"hsl"}}else{var Bt=void 0;if(Tt<0)Bt=0;else if(Tt>ft)Bt=359;else{var Ft=Tt*100/ft;Bt=360*Ft/100}if(ut.h!==Bt)return{h:Bt,s:ut.s,l:ut.l,a:ut.a,source:"hsl"}}return null},_createClass$b=function(){function ot(et,ct){for(var ut=0;ut<ct.length;ut++){var dt=ct[ut];dt.enumerable=dt.enumerable||!1,dt.configurable=!0,"value"in dt&&(dt.writable=!0),Object.defineProperty(et,dt.key,dt)}}return function(et,ct,ut){return ct&&ot(et.prototype,ct),ut&&ot(et,ut),et}}();function _classCallCheck$b(ot,et){if(!(ot instanceof et))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn$b(ot,et){if(!ot)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return et&&(typeof et=="object"||typeof et=="function")?et:ot}function _inherits$b(ot,et){if(typeof et!="function"&&et!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof et);ot.prototype=Object.create(et&&et.prototype,{constructor:{value:ot,enumerable:!1,writable:!0,configurable:!0}}),et&&(Object.setPrototypeOf?Object.setPrototypeOf(ot,et):ot.__proto__=et)}var Hue=function(ot){_inherits$b(et,ot);function et(){var ct,ut,dt,ft;_classCallCheck$b(this,et);for(var zt=arguments.length,Dt=Array(zt),St=0;St<zt;St++)Dt[St]=arguments[St];return ft=(ut=(dt=_possibleConstructorReturn$b(this,(ct=et.__proto__||Object.getPrototypeOf(et)).call.apply(ct,[this].concat(Dt))),dt),dt.handleChange=function(Tt){var Rt=calculateChange$1(Tt,dt.props.direction,dt.props.hsl,dt.container);Rt&&typeof dt.props.onChange=="function"&&dt.props.onChange(Rt,Tt)},dt.handleMouseDown=function(Tt){dt.handleChange(Tt),window.addEventListener("mousemove",dt.handleChange),window.addEventListener("mouseup",dt.handleMouseUp)},dt.handleMouseUp=function(){dt.unbindEventListeners()},ut),_possibleConstructorReturn$b(dt,ft)}return _createClass$b(et,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var ct=this,ut=this.props.direction,dt=ut===void 0?"horizontal":ut,ft=_default$2({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:dt==="vertical"});return React$1.createElement("div",{style:ft.hue},React$1.createElement("div",{className:"hue-"+dt,style:ft.container,ref:function(zt){return ct.container=zt},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},React$1.createElement("style",null,`
|
|
414
414
|
.hue-horizontal {
|
|
@@ -507,5 +507,5 @@ not been pushed to GitHub. Please add it to continue.
|
|
|
507
507
|
}
|
|
508
508
|
100% {
|
|
509
509
|
opacity: 0;
|
|
510
|
-
}`,StyledCountdown=createStyled("div",{target:"e7qru6u0"})(({theme:ot})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:ot.sizes.full,height:ot.sizes.full,fontSize:"40vh",color:ot.colors.red,fontWeight:ot.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${ot.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`}),""),Countdown=({countdown:ot,endCallback:et})=>{const[ct,ut]=reactExports.useState(ot),dt=()=>{const ft=ct-1;ft>=0&&ut(ft),ft===0&&et()};return jsxRuntimeExports.jsx(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:dt,children:jsxRuntimeExports.jsx("span",{children:ct})},`frame${ct}`)};function withScreencast(ot){const ct=class ct extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:dt}=this.state;this.setState({recordAudio:!dt})},this.showDialog=dt=>{const{currentState:ft}=this.state;ScreenCastRecorder.isSupportedBrowser()?ft==="OFF"?this.setState({fileName:dt,currentState:"SETUP"}):this.stopRecording().catch(zt=>logWarning(`withScreencast.stopRecording threw an error: ${zt}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:dt}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:dt,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let dt;const{currentState:ft}=this.state;ft==="OFF"||isNullOrUndefined$1(this.recorder)||(ft==="COUNTDOWN"&&this.setState({currentState:"OFF"}),ft==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(dt=await this.recorder.stop(),this.setState({outputBlob:dt,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(dt=>logWarning(`withScreencast.stopRecording threw an error: ${dt}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:dt,fileName:ft,recordAudio:zt,currentState:Dt}=this.state;return jsxRuntimeExports.jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsxRuntimeExports.jsx(ot,{...this.props,screenCast:this.getScreenCastProps()}),Dt==="UNSUPPORTED"&&jsxRuntimeExports.jsx(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),Dt==="SETUP"&&jsxRuntimeExports.jsx(ScreencastDialog,{recordAudio:zt,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),Dt==="COUNTDOWN"&&jsxRuntimeExports.jsx(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),Dt==="PREVIEW_FILE"&&dt&&jsxRuntimeExports.jsx(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:dt,fileName:ft})]})}}};ct.displayName=`withScreencast(${ot.displayName||ot.name})`;let et=ct;return hoistNonReactStatics$2(et,ot)}function getTitle(ot){return ot||"Streamlit"}class StrategyV1{constructor(et){this.appNav=et,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(et){var zt,Dt;this.appPages=et.appPages,this.currentPageScriptHash=et.pageScriptHash,this.hideSidebarNav=((zt=et.config)==null?void 0:zt.hideSidebarNav)??!1;const ct=this.appPages[0],ut=ct.urlPathname??"",dt=((Dt=this.appPages.find(St=>St.pageScriptHash===this.currentPageScriptHash))==null?void 0:Dt.urlPathname)??"",ft=ct.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(ut,dt,ft),document.title=getTitle(dt??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:ft?"":dt,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(et){const{appPages:ct}=et;return[{appPages:ct},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ct})}]}handlePageNotFound(et){var dt;const{pageName:ct}=et;this.appNav.onPageNotFound(ct);const ut=((dt=this.appPages[0])==null?void 0:dt.pageScriptHash)??"";return this.currentPageScriptHash=ut,[{currentPageScriptHash:ut},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:ut})}]}handleNavigation(et){}findPageByUrlPath(et){return this.appPages.length===0?null:this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.appPages[0]}clearPageElements(et,ct,ut){return AppRoot.empty(ct,!1,ut,et.logo)}}class StrategyV2{constructor(et){this.appNav=et,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(et){var ct;return this.mainScriptHash=et.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((ct=et.config)==null?void 0:ct.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(et){}handlePageNotFound(et){const{pageName:ct}=et;return this.appNav.onPageNotFound(ct),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(et){const{sections:ct,position:ut,appPages:dt}=et;this.appPages=dt,this.hideSidebarNav=ut===Navigation.Position.HIDDEN;const ft=et.pageScriptHash,zt=dt.find(Tt=>Tt.pageScriptHash===ft),Dt=dt.find(Tt=>Tt.isDefault);this.mainPage=Dt;const St=zt.urlPathname;if(!this.appNav.isPageTitleSet){const Tt=getTitle(zt.pageName);document.title=Tt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:zt.pageName??""})}return!this.appNav.isPageIconSet&&zt.icon&&this.appNav.onPageIconChange(zt.icon),this.appNav.onUpdatePageUrl(Dt.urlPathname??"",St,zt.isDefault??!1),[{appPages:dt,navSections:ct,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:et.expanded,currentPageScriptHash:ft},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:dt}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:zt.isDefault?"":St,currentPageScriptHash:ft})}]}findPageByUrlPath(et){return this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.mainPage}clearPageElements(et,ct,ut){return et.filterMainScriptElements(ct)}}class AppNavigation{constructor(et,ct,ut,dt){this.hostCommunicationMgr=et,this.onUpdatePageUrl=ct,this.onPageNotFound=ut,this.onPageIconChange=dt,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(et){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(et)}handleNavigation(et){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(et)}handlePagesChanged(et){return this.strategy.handlePagesChanged(et)}handlePageNotFound(et){return this.strategy.handlePageNotFound(et)}findPageByUrlPath(et){return this.strategy.findPageByUrlPath(et)}handlePageConfigChanged(et){this.isPageIconSet=!!et.favicon,this.isPageTitleSet=!!et.title}clearPageElements(et,ct,ut){return this.strategy.clearPageElements(et,ct,ut)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>",showDevelopmentOptions=(ot,et)=>et==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==et||Config.ToolbarMode.MINIMAL==et?!1:ot||isLocalhost();let App$1=(M1=class extends reactExports.PureComponent{constructor(et){super(et),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(ut,dt,ft)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:ut,msg:dt,onContinue:ft,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(ut,dt)=>{const[,ft,zt]=createPresetThemes(),Dt=isPresetTheme(this.props.theme.activeTheme);ut===ft.name&&Dt?this.props.theme.setTheme(ft):ut===zt.name&&Dt?this.props.theme.setTheme(zt):dt&&this.props.theme.setImportedTheme(dt)},this.handleConnectionStateChanged=ut=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${ut}`),ut===ConnectionState.CONNECTED){const dt=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||dt)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:ut!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:ut})},this.handleGitInfoChanged=ut=>{this.setState({gitInfo:ut})},this.handleCustomParentMessage=ut=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:ut.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=ut=>{const dt=(ft,zt,Dt)=>{const St=ft[zt];if(St in Dt)return Dt[St](ft[St]);throw new Error(`Cannot handle ${zt} "${St}".`)};try{dt(ut,"type",{newSession:ft=>this.handleNewSession(ft),sessionStatusChanged:ft=>this.handleSessionStatusChanged(ft),sessionEvent:ft=>this.handleSessionEvent(ft),delta:ft=>this.handleDeltaMsg(ft,ut.metadata),pageConfigChanged:ft=>this.handlePageConfigChanged(ft),pageInfoChanged:ft=>this.handlePageInfoChanged(ft),pagesChanged:ft=>this.handlePagesChanged(ft),pageNotFound:ft=>this.handlePageNotFound(ft),gitInfoChanged:ft=>this.handleGitInfoChanged(ft),scriptFinished:ft=>this.handleScriptFinished(ft),pageProfile:ft=>this.handlePageProfileMsg(ft),autoRerun:ft=>this.handleAutoRerun(ft),fileUrlsResponse:ft=>this.uploadClient.onFileURLsResponse(ft),parentMessage:ft=>this.handleCustomParentMessage(ft),logo:ft=>this.handleLogo(ft,ut.metadata),navigation:ft=>this.handleNavigation(ft)})}catch(ft){const zt=ensureError(ft);logError(zt),this.showError("Bad message format",zt.message)}},this.handleLogo=(ut,dt)=>{const ft={activeScriptHash:dt.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(ut,ft)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=ut=>{const{title:dt,favicon:ft,layout:zt,initialSidebarState:Dt,menuItems:St}=ut;this.appNavigation.handlePageConfigChanged(ut),dt&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:dt}),document.title=dt),ft&&this.onPageIconChanged(ft),zt!==this.state.layout&&this.setState(Tt=>({layout:zt,userSettings:{...Tt.userSettings,wideMode:zt===PageConfig.Layout.WIDE}})),Dt!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:Dt})),this.setState({menuItems:St})},this.handlePageInfoChanged=ut=>{const{queryString:dt}=ut,ft=document.location.pathname+(dt?`?${dt}`:"");window.history.pushState({},"",ft),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt?`?${dt}`:""})},this.onPageNotFound=ut=>{const dt=ut?`You have requested page /${ut}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${dt}. Running the app's main page.`)},this.handlePageNotFound=ut=>{this.maybeSetState(this.appNavigation.handlePageNotFound(ut))},this.onPageIconChanged=ut=>{handleFavicon(ut,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=ut=>{this.maybeSetState(this.appNavigation.handlePagesChanged(ut))},this.handleNavigation=ut=>{this.maybeSetState(this.appNavigation.handleNavigation(ut))},this.handlePageProfileMsg=ut=>{var zt,Dt,St;const dt=PageProfile.toObject(ut),ft=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...dt,isFragmentRun:!!dt.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(zt=this.state.appPages)==null?void 0:zt.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(St=(Dt=this.props.theme)==null?void 0:Dt.activeTheme)==null?void 0:St.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:ft})},this.handleAutoRerun=ut=>{const dt=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(ut.fragmentId,!0)},ut.interval*1e3);this.setState(ft=>({autoReruns:[...ft.autoReruns,dt]}))},this.handleSessionStatusChanged=ut=>{this.setState(dt=>{let{scriptRunState:ft}=dt,{dialog:zt}=dt;return ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.STOP_REQUESTED?(ft=ScriptRunState.RUNNING,notNullOrUndefined(zt)&&zt.type===DialogType.SCRIPT_COMPILE_ERROR&&(zt=void 0)):!ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&dt.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(ft=ScriptRunState.NOT_RUNNING),{userSettings:{...dt.userSettings,runOnSave:!!ut.runOnSave},dialog:zt,scriptRunState:ft}})},this.handleSessionEvent=ut=>{if(this.sessionEventDispatcher.handleSessionEventMsg(ut),ut.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const dt={type:DialogType.SCRIPT_COMPILE_ERROR,exception:ut.scriptCompilationException,onClose:()=>{}};this.openDialog(dt)}},this.maybeUpdatePageUrl=(ut,dt,ft)=>{const zt=this.getBaseUriParts();if(zt){const{basePath:Dt}=zt,St=extractPageNameFromPathName(document.location.pathname,Dt);if((St===""?ut:St)!==dt){const Tt=ft?"":dt,Rt=preserveEmbedQueryParams(),$t=Rt?`?${Rt}`:"",kt=`${Dt?`/${Dt}`:""}/${Tt}${$t}`,Bt=kt.endsWith("/")&&kt!=="/"?kt.slice(0,-1):kt;window.history.pushState({},"",Bt)}}},this.handleNewSession=ut=>{const dt=ut.initialize;if(this.hasStreamlitVersionChanged(dt)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(ut);const{appHash:ft,currentPageScriptHash:zt}=this.state,{scriptRunId:Dt,name:St,mainScriptPath:Tt,fragmentIdsThisRun:Rt,pageScriptHash:$t,mainScriptHash:kt}=ut;if(Rt.length)this.setState({fragmentIdsThisRun:Rt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Ft=ut.config,jt=ut.customTheme;this.processThemeInput(jt),this.setState({allowRunOnSave:Ft.allowRunOnSave,hideTopBar:Ft.hideTopBar,toolbarMode:Ft.toolbarMode,latestRunTime:performance.now(),mainScriptHash:kt,fragmentIdsThisRun:Rt}),this.maybeSetState(this.appNavigation.handleNewSession(ut)),this.onPageIconChanged("/favicon.png")}const Bt=hashString(this.sessionInfo.current.installationId+Tt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(Bt),this.metricsMgr.enqueue("updateReport"),ft===Bt&&zt===$t?this.setState({scriptRunId:Dt}):this.clearAppState(Bt,Dt,St,kt)},this.handleOneTimeInitialization=ut=>{const dt=ut.initialize,ft=ut.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(ut)),this.metricsMgr.initialize({gatherUsageStats:ft.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(dt.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:ut}=this.state,dt=this.appNavigation.findPageByUrlPath(document.location.pathname),ft=document.location.toString().includes("#"),zt=(dt==null?void 0:dt.pageScriptHash)===ut;isNullOrUndefined$1(dt)||ft&&zt||this.onPageChange(dt.pageScriptHash)},this.setAndSendTheme=ut=>{this.props.theme.setTheme(ut),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(ut.emotion)})},this.createThemeHash=ut=>{if(!ut)return"hash_for_undefined_custom_theme";const dt=Object.entries(ut);return dt.sort(),hashString(dt.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=ut=>{const{runOnSave:dt}=this.state.userSettings,{runOnSave:ft}=ut;if(this.setState({userSettings:ut}),dt!==ft&&this.isServerConnected()){const zt=new BackMsg({setRunOnSave:ft});zt.type="setRunOnSave",this.sendBackMsg(zt)}},this.handleDeltaMsg=(ut,dt)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,ut,dt),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const ft=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,ft&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugShutdownRuntime:!0});ut.type="debugShutdownRuntime",this.sendBackMsg(ut)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugDisconnectWebsocket:!0});ut.type="debugDisconnectWebsocket",this.sendBackMsg(ut)}},this.debugClearForwardMsgCache=()=>{var ut,dt;isLocalhost()&&((dt=(ut=this.connectionManager)==null?void 0:ut.connection)==null||dt.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(ut=>{clearInterval(ut)}),this.setState({autoReruns:[]})},this.rerunScript=(ut=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),ut===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=ut=>{const{elements:dt,mainScriptHash:ft}=this.state;this.cleanupAutoReruns();const zt=this.appNavigation.clearPageElements(dt,ft,void 0),Dt=new Set(Array.from(zt.getElements()).map(St=>getElementId(St)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(Dt),void 0,ut)},this.isAppInReadyState=ut=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&ut.scriptRunState===ScriptRunState.RUNNING&&ut.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(ut,dt,ft,zt)=>{const Dt=this.getBaseUriParts();if(!Dt){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:St}=this.state,{basePath:Tt}=Dt;let Rt=this.getQueryString(),$t="";ft?ft!=St&&(Rt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:Rt})):St?ft=St:($t=extractPageNameFromPathName(document.location.pathname,Tt),ft=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:Rt,widgetStates:ut,pageScriptHash:ft,pageName:$t,fragmentId:dt,isAutoRerun:zt}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const ut=new BackMsg({stopScript:!0});ut.type="stopScript",this.sendBackMsg(ut),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const ut={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(ut)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var dt;const ut={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((dt=this.state.dialog)==null?void 0:dt.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const ut={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const ut=new BackMsg({clearCache:!0});ut.type="clearCache",this.sendBackMsg(ut)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const ut=new BackMsg({appHeartbeat:!0});ut.type="appHeartbeat",this.sendBackMsg(ut)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=ut=>{this.connectionManager?this.connectionManager.sendMessage(ut):logError(`Not connected. Cannot send back message: ${ut}`)},this.handleConnectionError=ut=>{this.showError("Connection error",ut)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(ut=!0)=>{const dt={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:ut,metricsMgr:this.metricsMgr};this.openDialog(dt)},this.aboutCallback=()=>{const{menuItems:ut}=this.state,dt={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:ut==null?void 0:ut.aboutSectionMd};this.openDialog(dt)},this.printCallback=()=>{const{scriptRunState:ut}=this.state;if(ut!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let dt;try{const ft=getIFrameEnclosingApp(this.embeddingId);ft&&ft.contentWindow?dt=ft.contentWindow.window:dt=window}catch{dt=window}finally{dt||(dt=window),dt.print()}},this.screencastCallback=()=>{const{scriptName:ut}=this.state,{startRecording:dt}=this.props.screenCast,ft=hooks().format("YYYY-MM-DD-HH-MM-SS");dt(`streamlit-${ut}-${ft}`)},this.handleFullScreen=ut=>{this.setState({isFullScreen:ut})},this.setLibConfig=ut=>{this.setState({libConfig:ut})},this.setAppConfig=ut=>{this.setState({appConfig:ut})},this.addScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:dt.scriptFinishedHandlers.concat(ut)}))},this.removeScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:without$1(dt.scriptFinishedHandlers,ut)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:ut}=this.state,dt=ut&&ut.length>0?ut:document.location.search;return dt.startsWith("?")?dt.substring(1):dt},this.isInCloudEnvironment=()=>{const{hostMenuItems:ut}=this.state;return ut&&(ut==null?void 0:ut.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(ut,dt)=>{if(this.isServerConnected()){const ft=new BackMsg({fileUrlsRequest:{requestId:ut,fileNames:dt.map(zt=>zt.name),sessionId:this.sessionInfo.current.sessionId}});ft.type="fileUrlsRequest",this.sendBackMsg(ft)}},this.handleKeyDown=ut=>{switch(ut){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=ut=>{ut==="esc"&&this.props.screenCast.stopRecording()},J$2();let ct=this.createThemeHash();isPresetTheme(et.theme.activeTheme)||(ct=this.createThemeHash(toThemeInput(et.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:ct,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:ut=>this.setState({formsData:ut})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:et.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:ut=>{this.setState({inputsDisabled:ut})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:ut=>this.setState({isOwner:ut}),jwtHeaderChanged:({jwtHeaderName:ut,jwtHeaderValue:dt})=>{this.endpoints.setJWTHeader!==void 0&&this.state.appConfig.useExternalAuthToken&&this.endpoints.setJWTHeader({jwtHeaderName:ut,jwtHeaderValue:dt})},fileUploadClientConfigChanged:ut=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(ut)},hostMenuItemsChanged:ut=>{this.setState({hostMenuItems:ut})},hostToolbarItemsChanged:ut=>{this.setState({hostToolbarItems:ut})},hostHideSidebarNavChanged:ut=>{this.setState({hostHideSidebarNav:ut})},sidebarChevronDownshiftChanged:ut=>{this.setState({sidebarChevronDownshift:ut})},pageLinkBaseUrlChanged:ut=>{this.setState({pageLinkBaseUrl:ut})},queryParamsChanged:ut=>{this.setState({queryParams:ut})},deployedAppMetadataChanged:ut=>{this.setState({deployedAppMetadata:ut})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var ut;(ut=this.connectionManager)==null||ut.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:ut=>this.widgetMgr.setFormsWithUploadsInProgress(ut),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.connectionManager=new ConnectionManager({kernel:et,sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:ut=>{const{allowedOrigins:dt,useExternalAuthToken:ft,disableFullscreenMode:zt,enableCustomParentMessages:Dt,mapboxToken:St,enforceDownloadInNewTab:Tt,metricsUrl:Rt}=ut,$t={allowedOrigins:dt,useExternalAuthToken:ft,enableCustomParentMessages:Dt},kt={mapboxToken:St,disableFullscreenMode:zt,enforceDownloadInNewTab:Tt};this.metricsMgr.setMetricsConfig(Rt),this.hostCommunicationMgr.setAllowedOrigins($t),this.setAppConfig($t),this.setLibConfig(kt)}})}componentDidMount(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.initializeConnectionManager(),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),this.uploadClient.setKernel(et),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const ut=document.querySelectorAll("[data-iframe-height]"),dt=Array.from(ut).map(ft=>Math.ceil(ft.getBoundingClientRect().bottom));return Math.max(0,...dt)}},__vitePreload(()=>import("./iframeResizer.contentWindow-DLNn1A7T.js").then(ut=>ut.i),[])),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(et,ct){window.prerenderReady===!1&&this.isAppInReadyState(ct)&&(window.prerenderReady=!0),this.state.scriptRunState!==ct.scriptRunState&&this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}componentWillUnmount(){var et;(et=this.connectionManager)==null||et.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(et,ct){logError(ct);const ut={type:DialogType.WARNING,title:et,msg:ct,onClose:()=>{}};this.openDialog(ut)}hasStreamlitVersionChanged(et){if(this.sessionInfo.isSet){const ct=this.sessionInfo.current.streamlitVersion,{environmentInfo:ut}=et;if(notNullOrUndefined(ut)&¬NullOrUndefined(ut.streamlitVersion))return ct!=ut.streamlitVersion}return!1}maybeSetState(et){if(et){const[ct,ut]=et;this.setState(ct,ut)}}processThemeInput(et){const ct=this.createThemeHash(et);if(ct===this.state.themeHash)return;this.setState({themeHash:ct});const ut=!isPresetTheme(this.props.theme.activeTheme);if(et){const dt=createTheme(CUSTOM_THEME_NAME,et);this.props.theme.addThemes([dt]),(getCachedTheme()===null||ut)&&this.setAndSendTheme(dt)}else this.props.theme.addThemes([]),ut&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(et){if(et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(ct=>ct())},0),et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:ut,fragmentIdsThisRun:dt})=>({elements:this.pendingElementsBuffer.clearStaleNodes(ut,dt)}),()=>{this.pendingElementsBuffer=this.state.elements});const ct=new Set(Array.from(this.state.elements.getElements()).map(ut=>getElementId(ut)).filter(notUndefined));this.widgetMgr.removeInactive(ct)}this.connectionManager!==null&&et!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(et,ct,ut,dt){const{hideSidebarNav:ft,elements:zt}=this.state,Dt=ft&&zt.sidebar||void 0;this.setState({scriptRunId:ct,scriptName:ut,appHash:et,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,dt,Dt)},()=>{this.pendingElementsBuffer=this.state.elements;const St=new Set(Array.from(this.state.elements.getElements()).map(Tt=>getElementId(Tt)).filter(notUndefined));this.widgetMgr.removeInactive(St)})}openDialog(et){this.setState({dialog:et})}render(){const{allowRunOnSave:et,connectionState:ct,dialog:ut,elements:dt,initialSidebarState:ft,menuItems:zt,isFullScreen:Dt,scriptRunId:St,scriptRunState:Tt,userSettings:Rt,hideTopBar:$t,hideSidebarNav:kt,expandSidebarNav:Bt,currentPageScriptHash:Ft,hostHideSidebarNav:jt,pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,hostMenuItems:Ut,hostToolbarItems:Jt,libConfig:Ht,appConfig:e0,inputsDisabled:t0,appPages:Zt,navSections:o0}=this.state,n0=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),r0=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":Rt.wideMode}),a0=ut?StreamlitDialog({...ut,onClose:this.closeDialog}):null,u0=t0||ct!==ConnectionState.CONNECTED;return jsxRuntimeExports.jsx(AppContext.Provider,{value:{initialSidebarState:ft,wideMode:Rt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,gitInfo:this.state.gitInfo,appConfig:e0},children:jsxRuntimeExports.jsx(LibContext.Provider,{value:{isFullScreen:Dt,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Ft,libConfig:Ht,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsxRuntimeExports.jsx(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxRuntimeExports.jsxs(StyledApp,{className:r0,"data-testid":"stApp","data-test-script-state":St==INITIAL_SCRIPT_RUN_ID?"initial":Tt,"data-test-connection-state":ct,children:[jsxRuntimeExports.jsxs(Header,{children:[!$t&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StatusWidget,{connectionState:ct,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:Tt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:et}),jsxRuntimeExports.jsx(ToolbarActions,{hostToolbarItems:Jt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsxRuntimeExports.jsx(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsxRuntimeExports.jsx(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:Ut,developmentMode:n0,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:zt,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsxRuntimeExports.jsx(AppView,{endpoints:this.endpoints,sessionInfo:this.sessionInfo,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:dt,scriptRunId:St,scriptRunState:Tt,widgetMgr:this.widgetMgr,widgetsDisabled:u0,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:dt.logo,appPages:Zt,navSections:o0,onPageChange:this.onPageChange,currentPageScriptHash:Ft,hideSidebarNav:kt||jt,expandSidebarNav:Bt}),a0]})})})})}},M1.contextType=StliteKernelContext,M1);const AppWithScreencast=withScreencast(App$1);function useThemeManager(){const ot=getDefaultTheme(),[et,ct]=reactExports.useState(ot),[ut,dt]=reactExports.useState([]),[ft,zt]=reactExports.useState([...createPresetThemes(),...isPresetTheme(ot)?[]:[ot]]),Dt=$t=>{zt([...createPresetThemes(),...$t])},St=reactExports.useCallback($t=>{$t!==et&&(ct($t),$t.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme($t))},[ct,et]),Tt=reactExports.useCallback(()=>{et.name===AUTO_THEME_NAME&&St(getHostSpecifiedTheme());const $t=ft.filter(kt=>kt.name!==AUTO_THEME_NAME);zt([createAutoTheme(),...$t])},[et.name,ft,St]),Rt=reactExports.useCallback($t=>{$t.fontFaces&&dt($t.fontFaces);const kt=new CustomThemeConfig($t),Bt=createTheme(CUSTOM_THEME_NAME,kt);St(Bt)},[dt,St]);return reactExports.useEffect(()=>{const $t=window.matchMedia("(prefers-color-scheme: dark)");return $t.addEventListener("change",Tt),window.addEventListener("afterprint",Tt),()=>{window.removeEventListener("afterprint",Tt),$t.removeEventListener("change",Tt)}},[et,ft,Tt]),[{setTheme:St,activeTheme:et,addThemes:Dt,availableThemes:ft,setImportedTheme:Rt},ut]}const ThemedApp=({streamlitExecutionStartedAt:ot})=>{const[et,ct]=useThemeManager(),{activeTheme:ut}=et,dt=ut.name===CUSTOM_THEME_NAME&&ct.length>0;return jsxRuntimeExports.jsx(RootStyleProvider,{theme:ut,children:jsxRuntimeExports.jsx(WindowDimensionsProvider,{children:jsxRuntimeExports.jsxs(PortalProvider,{children:[dt&&jsxRuntimeExports.jsx(FontFaceDeclaration,{fontFaces:ct}),jsxRuntimeExports.jsx(AppWithScreencast,{theme:et,streamlitExecutionStartedAt:ot})]})})})};class SequentialIDGenerator{constructor(et=""){this.prefix=et,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const et=this.increment().toString(36);return this.prefix?`${this.prefix}${et}`:et}increment(){const et=this.count+this.offset;return et===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,et}}const minMaxWidth=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,minWidth=/\(\s*min(-device)?-width/i,maxMinWidth=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,maxWidth=/\(\s*max(-device)?-width/i,isMinWidth=_testQuery(minMaxWidth,maxMinWidth,minWidth),isMaxWidth=_testQuery(maxMinWidth,minMaxWidth,maxWidth),minMaxHeight=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,minHeight=/\(\s*min(-device)?-height/i,maxMinHeight=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,maxHeight=/\(\s*max(-device)?-height/i,isMinHeight=_testQuery(minMaxHeight,maxMinHeight,minHeight),isMaxHeight=_testQuery(maxMinHeight,minMaxHeight,maxHeight),isPrint=/print/i,isPrintOnly=/^print$/i,maxValue=Number.MAX_VALUE;function _getQueryLength(ot){const et=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(ot);if(et===null)return maxValue;let ct=et[1];switch(et[2]){case"ch":ct=parseFloat(ct)*8.8984375;break;case"em":case"rem":ct=parseFloat(ct)*16;break;case"ex":ct=parseFloat(ct)*8.296875;break;case"px":ct=parseFloat(ct);break}return+ct}function _testQuery(ot,et,ct){return function(ut){return ot.test(ut)?!0:et.test(ut)?!1:ct.test(ut)}}function _testIsPrint(ot,et){const ct=isPrint.test(ot),ut=isPrintOnly.test(ot),dt=isPrint.test(et),ft=isPrintOnly.test(et);return ct&&dt?!ut&&ft?1:ut&&!ft?-1:ot.localeCompare(et):ct?1:dt?-1:null}function sortCSSmq(ot,et){if(ot==="")return-1;if(et==="")return 1;const ct=_testIsPrint(ot,et);if(ct!==null)return ct;const ut=isMinWidth(ot)||isMinHeight(ot),dt=isMaxWidth(ot)||isMaxHeight(ot),ft=isMinWidth(et)||isMinHeight(et),zt=isMaxWidth(et)||isMaxHeight(et);if(ut&&zt)return-1;if(dt&&ft)return 1;const Dt=_getQueryLength(ot),St=_getQueryLength(et);return Dt===maxValue&&St===maxValue?ot.localeCompare(et):Dt===maxValue?1:St===maxValue?-1:Dt>St?dt?-1:1:Dt<St?dt?1:-1:ot.localeCompare(et)}class MultiCache{constructor(et,ct,ut){this.idGenerator=et,this.onNewCache=ct,this.onNewValue=ut,this.sortedCacheKeys=[],this.caches={}}getCache(et){if(!this.caches[et]){const ct=new Cache(this.idGenerator,this.onNewValue);ct.key=et,this.sortedCacheKeys.push(et),this.sortedCacheKeys.sort(sortCSSmq);const ut=this.sortedCacheKeys.indexOf(et),dt=ut<this.sortedCacheKeys.length-1?this.sortedCacheKeys[ut+1]:void 0;this.caches[et]=ct,this.onNewCache(et,ct,dt)}return this.caches[et]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(et,ct){this.cache={},this.idGenerator=et,this.onNewValue=ct}addValue(et,ct){const ut=this.cache[et];if(ut)return ut;const dt=this.idGenerator.next();return this.cache[et]=dt,this.onNewValue(this,dt,ct),dt}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$1={};function hyphenateStyleName$2(ot){return ot in cache$1?cache$1[ot]:cache$1[ot]=ot.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(ot){return ot.charAt(0).toUpperCase()+ot.slice(1)}function prefixProperty(ot,et,ct){if(ot.hasOwnProperty(et)){for(var ut={},dt=ot[et],ft=capitalizeString(et),zt=Object.keys(ct),Dt=0;Dt<zt.length;Dt++){var St=zt[Dt];if(St===et)for(var Tt=0;Tt<dt.length;Tt++)ut[dt[Tt]+ft]=ct[et];ut[St]=ct[St]}return ut}return ct}function prefixValue$1(ot,et,ct,ut,dt){for(var ft=0,zt=ot.length;ft<zt;++ft){var Dt=ot[ft](et,ct,ut,dt);if(Dt)return Dt}}function addIfNew(ot,et){ot.indexOf(et)===-1&&ot.push(et)}function addNewValuesOnly(ot,et){if(Array.isArray(et))for(var ct=0,ut=et.length;ct<ut;++ct)addIfNew(ot,et[ct]);else addIfNew(ot,et)}function isObject(ot){return ot instanceof Object&&!Array.isArray(ot)}function createPrefixer(ot){var et=ot.prefixMap,ct=ot.plugins;return function ut(dt){for(var ft in dt){var zt=dt[ft];if(isObject(zt))dt[ft]=ut(zt);else if(Array.isArray(zt)){for(var Dt=[],St=0,Tt=zt.length;St<Tt;++St){var Rt=prefixValue$1(ct,ft,zt[St],dt,et);addNewValuesOnly(Dt,Rt||zt[St])}Dt.length>0&&(dt[ft]=Dt)}else{var $t=prefixValue$1(ct,ft,zt,dt,et);$t&&(dt[ft]=$t),dt=prefixProperty(et,ft,dt)}}return dt}}var w=["Webkit"],m=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={plugins:[],prefixMap:{appearance:wm,textEmphasisPosition:w,textEmphasis:w,textEmphasisStyle:w,textEmphasisColor:w,boxDecorationBreak:w,maskImage:w,maskMode:w,maskRepeat:w,maskPosition:w,maskClip:w,maskOrigin:w,maskSize:w,maskComposite:w,mask:w,maskBorderSource:w,maskBorderMode:w,maskBorderSlice:w,maskBorderWidth:w,maskBorderOutset:w,maskBorderRepeat:w,maskBorder:w,maskType:w,textDecorationStyle:w,textDecorationSkip:w,textDecorationLine:w,textDecorationColor:w,userSelect:wmms,backdropFilter:w,fontKerning:w,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w,shapeImageThreshold:w,shapeImageMargin:w,shapeImageOutside:w,filter:w,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w,tabSize:m,fontFeatureSettings:w,columnCount:w,columnFill:w,columnGap:w,columnRule:w,columnRuleColor:w,columnRuleStyle:w,columnRuleWidth:w,columns:w,columnSpan:w,columnWidth:w,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(ot,et){if(typeof et=="string"&&et==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(ot,et){if(ot==="cursor"&&values$3.hasOwnProperty(et))return prefixes$5.map(function(ct){return ct+et})}var isPrefixedValue$1={exports:{}};(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ut;var ct=/-webkit-|-moz-|-ms-/;function ut(dt){return typeof dt=="string"&&ct.test(dt)}ot.exports=et.default})(isPrefixedValue$1,isPrefixedValue$1.exports);var isPrefixedValueExports=isPrefixedValue$1.exports;const isPrefixedValue=getDefaultExportFromCjs$1(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("cross-fade(")>-1)return prefixes$4.map(function(ct){return et.replace(/cross-fade\(/g,ct+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("filter(")>-1)return prefixes$3.map(function(ct){return et.replace(/filter\(/g,ct+"filter(")})}var values$2={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function flex(ot,et){if(ot==="display"&&values$2.hasOwnProperty(et))return values$2[et]}var alternativeValues={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},alternativeProps$1={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function flexboxOld(ot,et,ct){ot==="flexDirection"&&typeof et=="string"&&(et.indexOf("column")>-1?ct.WebkitBoxOrient="vertical":ct.WebkitBoxOrient="horizontal",et.indexOf("reverse")>-1?ct.WebkitBoxDirection="reverse":ct.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(ot)&&(ct[alternativeProps$1[ot]]=alternativeValues[et]||et)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function gradient(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&values$1.test(et))return prefixes$2.map(function(ct){return et.replace(values$1,function(ut){return ct+ut})})}var _slicedToArray=function(){function ot(et,ct){var ut=[],dt=!0,ft=!1,zt=void 0;try{for(var Dt=et[Symbol.iterator](),St;!(dt=(St=Dt.next()).done)&&(ut.push(St.value),!(ct&&ut.length===ct));dt=!0);}catch(Tt){ft=!0,zt=Tt}finally{try{!dt&&Dt.return&&Dt.return()}finally{if(ft)throw zt}}return ut}return function(et,ct){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return ot(et,ct);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function isSimplePositionValue(ot){return typeof ot=="number"&&!isNaN(ot)}function isComplexSpanValue(ot){return typeof ot=="string"&&ot.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridRowAlign=et)},gridColumn:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridColumn=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridColumnStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridColumnEnd(+ft+ +Rt,ct):propertyConverters.gridColumnEnd(+zt,ct)}else propertyConverters.gridColumnStart(et,ct)},gridColumnEnd:function ot(et,ct){var ut=ct.msGridColumn;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridColumnSpan=et-ut)},gridColumnStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridColumn=et)},gridRow:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridRow=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridRowStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridRowEnd(+ft+ +Rt,ct):propertyConverters.gridRowEnd(+zt,ct)}else propertyConverters.gridRowStart(et,ct)},gridRowEnd:function ot(et,ct){var ut=ct.msGridRow;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridRowSpan=et-ut)},gridRowStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridRow=et)},gridTemplateColumns:function ot(et,ct){ct.msGridColumns=et},gridTemplateRows:function ot(et,ct){ct.msGridRows=et},justifySelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridColumnAlign=et)}};function grid(ot,et,ct){if(ot==="display"&&et in displayValues)return displayValues[et];if(ot in propertyConverters){var ut=propertyConverters[ot];ut(et,ct)}}var prefixes$1=["-webkit-",""];function imageSet(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("image-set(")>-1)return prefixes$1.map(function(ct){return et.replace(/image-set\(/g,ct+"image-set(")})}var alternativeProps={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function logical(ot,et,ct){if(Object.prototype.hasOwnProperty.call(alternativeProps,ot))for(var ut=alternativeProps[ot],dt=0,ft=ut.length;dt<ft;++dt)ct[ut[dt]]=et}function position(ot,et){if(ot==="position"&&et==="sticky")return["-webkit-sticky","sticky"]}var prefixes=["-webkit-","-moz-",""],properties$1={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},values={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function sizing(ot,et){if(properties$1.hasOwnProperty(ot)&&values.hasOwnProperty(et))return prefixes.map(function(ct){return ct+et})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache={};function toHyphenLower(ot){return"-"+ot.toLowerCase()}function hyphenateStyleName(ot){if(cache.hasOwnProperty(ot))return cache[ot];var et=ot.replace(uppercasePattern,toHyphenLower);return cache[ot]=msPattern.test(et)?"-"+et:et}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ft;var ct=require$$0,ut=dt(ct);function dt(zt){return zt&&zt.__esModule?zt:{default:zt}}function ft(zt){return(0,ut.default)(zt)}ot.exports=et.default})(hyphenateProperty$1,hyphenateProperty$1.exports);var hyphenatePropertyExports=hyphenateProperty$1.exports;const hyphenateProperty=getDefaultExportFromCjs$1(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(ot,et){if(isPrefixedValue(ot))return ot;for(var ct=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g),ut=0,dt=ct.length;ut<dt;++ut){var ft=ct[ut],zt=[ft];for(var Dt in et){var St=hyphenateProperty(Dt);if(ft.indexOf(St)>-1&&St!=="order")for(var Tt=et[Dt],Rt=0,$t=Tt.length;Rt<$t;++Rt)zt.unshift(ft.replace(St,prefixMapping[Tt[Rt]]+St))}ct[ut]=zt.join(",")}return ct.join(",")}function transition(ot,et,ct,ut){if(typeof et=="string"&&properties.hasOwnProperty(ot)){var dt=prefixValue(et,ut),ft=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-moz-|-ms-/.test(Dt)}).join(",");if(ot.indexOf("Webkit")>-1)return ft;var zt=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-webkit-|-ms-/.test(Dt)}).join(",");return ot.indexOf("Moz")>-1?zt:(ct["Webkit"+capitalizeString(ot)]=ft,ct["Moz"+capitalizeString(ot)]=zt,dt)}}var plugins=[backgroundClip,crossFade,cursor,filter,flexboxOld,gradient,grid,imageSet,logical,position,sizing,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins});function injectStylePrefixed(ot,et,ct,ut){const dt=ot.getCache(ct);let ft="";for(const zt in et){const Dt=et[zt];if(Dt!=null)if(typeof Dt!="object"){const St=`${hyphenateStyleName$2(zt)}:${Dt}`,Tt=`${ut}${St}`,Rt=dt.cache[Tt];if(Rt!==void 0){ft+=" "+Rt;continue}else{let $t="";const kt=prefix({[zt]:Dt});for(const Ft in kt){const jt=kt[Ft],Kt=typeof jt;if(Kt==="string"||Kt==="number"){const Yt=`${hyphenateStyleName$2(Ft)}:${jt}`;Yt!==St&&($t+=`${Yt};`)}else if(Array.isArray(jt)){const Yt=hyphenateStyleName$2(Ft);for(let Ut=0;Ut<jt.length;Ut++){const Jt=`${Yt}:${jt[Ut]}`;Jt!==St&&($t+=`${Jt};`)}}}$t+=St;const Bt=dt.addValue(Tt,{pseudo:ut,block:$t});ft+=" "+Bt}}else zt[0]===":"?ft+=" "+injectStylePrefixed(ot,Dt,ct,ut+zt):zt.substring(0,6)==="@media"&&(ft+=" "+injectStylePrefixed(ot,Dt,zt.substr(7),ut))}return ft.slice(1)}function atomicSelector(ot,et){let ct=`.${ot}`;return et&&(ct+=et),ct}function keyframesToBlock(ot){let et="";for(const ct in ot)et+=`${ct}{${declarationsToBlock(ot[ct])}}`;return et}function declarationsToBlock(ot){let et="";for(const ct in ot){const ut=ot[ct];(typeof ut=="string"||typeof ut=="number")&&(et+=`${hyphenateStyleName$2(ct)}:${ut};`)}return et.slice(0,-1)}function keyframesBlockToRule(ot,et){return`@keyframes ${ot}{${et}}`}function fontFaceBlockToRule(ot,et){return`@font-face{font-family:${ot};${et}}`}function styleBlockToRule(ot,et){return`${ot}{${et}}`}const insertRuleIntoDevtools=(ot,et)=>{const ct=ot.substring(1,ot.indexOf(":")!==-1?ot.indexOf(":"):ot.length),ut={};for(const dt of et.split(";"))dt.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[ct]&&(ut[dt.substring(0,dt.indexOf(":"))]=dt.substring(dt.indexOf(":")+1,dt.length));window.__STYLETRON_DEVTOOLS__.atomicMap[ct]=ut},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft,zt]=ut,Dt=ft?`${ft}${zt}`:zt;ot.cache[Dt]=dt,ot.idGenerator.increment()}}function hydrate(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft]=ut;ot.cache[ft]=dt,ot.idGenerator.increment()}}class StyletronClient{constructor(et={}){this.styleElements={};const ct=new SequentialIDGenerator(et.prefix),ut=(dt,ft,zt)=>{const{pseudo:Dt,block:St}=zt,Tt=this.styleElements[dt.key].sheet,Rt=atomicSelector(ft,Dt),$t=styleBlockToRule(Rt,St);try{Tt.insertRule($t,Tt.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(ct,(dt,ft,zt)=>{const Dt=document.createElement("style");if(Dt.media=dt,zt===void 0)this.container.appendChild(Dt);else{const St=findSheetIndexWithMedia(this.container.children,zt);this.container.insertBefore(Dt,this.container.children[St])}this.styleElements[dt]=Dt},ut),this.keyframesCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=keyframesBlockToRule(ft,keyframesToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),this.fontFaceCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=fontFaceBlockToRule(ft,declarationsToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),et.container&&(this.container=et.container),et.hydrate&&et.hydrate.length>0){if(!this.container){const dt=et.hydrate[0].parentElement;dt!=null&&(this.container=dt)}for(let dt=0;dt<et.hydrate.length;dt++){const ft=et.hydrate[dt],zt=ft.getAttribute("data-hydrate");if(zt==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,ft.textContent);continue}if(zt==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,ft.textContent);continue}const Dt=ft.media?ft.media:"";this.styleElements[Dt]=ft;const St=new Cache(ct,ut);St.key=Dt,hydrateStyles(St,STYLES_HYDRATOR,ft.textContent),this.styleCache.sortedCacheKeys.push(Dt),this.styleCache.caches[Dt]=St}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(et){return injectStylePrefixed(this.styleCache,et,"","")}renderFontFace(et){const ct=declarationsToBlock(et);return this.fontFaceCache.addValue(ct,et)}renderKeyframes(et){const ct=keyframesToBlock(et);return this.keyframesCache.addValue(ct,et)}}function findSheetIndexWithMedia(ot,et){let ct=0;for(;ct<ot.length;ct++){const ut=ot[ct];if(ut.tagName==="STYLE"&&ut.media===et)return ct}return-1}const engine=new StyletronClient({prefix:"st-"}),streamlitExecutionStartedAt=Date.now();function StreamlitApp(ot){return jsxRuntimeExports.jsx(StliteKernelProvider,{kernel:ot.kernel,children:jsxRuntimeExports.jsx(Provider$1,{value:engine,children:jsxRuntimeExports.jsx(ThemedApp,{streamlitExecutionStartedAt})})})}function r(ot){var et,ct,ut="";if(typeof ot=="string"||typeof ot=="number")ut+=ot;else if(typeof ot=="object")if(Array.isArray(ot)){var dt=ot.length;for(et=0;et<dt;et++)ot[et]&&(ct=r(ot[et]))&&(ut&&(ut+=" "),ut+=ct)}else for(ct in ot)ot[ct]&&(ut&&(ut+=" "),ut+=ct);return ut}function clsx(){for(var ot,et,ct=0,ut="",dt=arguments.length;ct<dt;ct++)(ot=arguments[ct])&&(et=r(ot))&&(ut&&(ut+=" "),ut+=et);return ut}function Mt(ot){if(typeof document>"u")return;let et=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",et.firstChild?et.insertBefore(ct,et.firstChild):et.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=ot:ct.appendChild(document.createTextNode(ot))}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
510
|
+
}`,StyledCountdown=createStyled("div",{target:"e7qru6u0"})(({theme:ot})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:ot.sizes.full,height:ot.sizes.full,fontSize:"40vh",color:ot.colors.red,fontWeight:ot.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${ot.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`}),""),Countdown=({countdown:ot,endCallback:et})=>{const[ct,ut]=reactExports.useState(ot),dt=()=>{const ft=ct-1;ft>=0&&ut(ft),ft===0&&et()};return jsxRuntimeExports.jsx(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:dt,children:jsxRuntimeExports.jsx("span",{children:ct})},`frame${ct}`)};function withScreencast(ot){const ct=class ct extends reactExports.PureComponent{constructor(){super(...arguments),this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:this.props.testOverride||"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:dt}=this.state;this.setState({recordAudio:!dt})},this.showDialog=dt=>{const{currentState:ft}=this.state;ScreenCastRecorder.isSupportedBrowser()?ft==="OFF"?this.setState({fileName:dt,currentState:"SETUP"}):this.stopRecording().catch(zt=>logWarning(`withScreencast.stopRecording threw an error: ${zt}`)):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:dt}=this.state;this.recorder=new ScreenCastRecorder({recordAudio:dt,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch{this.setState({currentState:"UNSUPPORTED"});return}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let dt;const{currentState:ft}=this.state;ft==="OFF"||isNullOrUndefined$1(this.recorder)||(ft==="COUNTDOWN"&&this.setState({currentState:"OFF"}),ft==="RECORDING"&&(this.recorder.getState()==="inactive"?this.setState({currentState:"OFF"}):(dt=await this.recorder.stop(),this.setState({outputBlob:dt,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(isNullOrUndefined$1(this.recorder))throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch(dt=>logWarning(`withScreencast.stopRecording threw an error: ${dt}`))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})},this.render=()=>{const{outputBlob:dt,fileName:ft,recordAudio:zt,currentState:Dt}=this.state;return jsxRuntimeExports.jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsxRuntimeExports.jsx(ot,{...this.props,screenCast:this.getScreenCastProps()}),Dt==="UNSUPPORTED"&&jsxRuntimeExports.jsx(UnsupportedBrowserDialog$1,{onClose:this.closeDialog}),Dt==="SETUP"&&jsxRuntimeExports.jsx(ScreencastDialog,{recordAudio:zt,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),Dt==="COUNTDOWN"&&jsxRuntimeExports.jsx(Countdown,{countdown:3,endCallback:this.onCountdownEnd}),Dt==="PREVIEW_FILE"&&dt&&jsxRuntimeExports.jsx(VideoRecordedDialog,{onClose:this.closeDialog,videoBlob:dt,fileName:ft})]})}}};ct.displayName=`withScreencast(${ot.displayName||ot.name})`;let et=ct;return hoistNonReactStatics$2(et,ot)}function getTitle(ot){return ot||"Streamlit"}class StrategyV1{constructor(et){this.appNav=et,this.appPages=[],this.currentPageScriptHash=null,this.hideSidebarNav=null}handleNewSession(et){var zt,Dt;this.appPages=et.appPages,this.currentPageScriptHash=et.pageScriptHash,this.hideSidebarNav=((zt=et.config)==null?void 0:zt.hideSidebarNav)??!1;const ct=this.appPages[0],ut=ct.urlPathname??"",dt=((Dt=this.appPages.find(St=>St.pageScriptHash===this.currentPageScriptHash))==null?void 0:Dt.urlPathname)??"",ft=ct.pageScriptHash===this.currentPageScriptHash;return this.appNav.onUpdatePageUrl(ut,dt,ft),document.title=getTitle(dt??""),[{hideSidebarNav:this.hideSidebarNav,appPages:this.appPages,currentPageScriptHash:this.currentPageScriptHash},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:this.appPages}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:ft?"":dt,currentPageScriptHash:this.currentPageScriptHash})}]}handlePagesChanged(et){const{appPages:ct}=et;return[{appPages:ct},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:ct})}]}handlePageNotFound(et){var dt;const{pageName:ct}=et;this.appNav.onPageNotFound(ct);const ut=((dt=this.appPages[0])==null?void 0:dt.pageScriptHash)??"";return this.currentPageScriptHash=ut,[{currentPageScriptHash:ut},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:ut})}]}handleNavigation(et){}findPageByUrlPath(et){return this.appPages.length===0?null:this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.appPages[0]}clearPageElements(et,ct,ut){return AppRoot.empty(ct,!1,ut,et.logo)}}class StrategyV2{constructor(et){this.appNav=et,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(et){var ct;return this.mainScriptHash=et.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=((ct=et.config)==null?void 0:ct.hideSidebarNav)??null),document.title=getTitle(""),[{hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handlePagesChanged(et){}handlePageNotFound(et){const{pageName:ct}=et;return this.appNav.onPageNotFound(ct),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}handleNavigation(et){const{sections:ct,position:ut,appPages:dt}=et;this.appPages=dt,this.hideSidebarNav=ut===Navigation.Position.HIDDEN;const ft=et.pageScriptHash,zt=dt.find(Tt=>Tt.pageScriptHash===ft),Dt=dt.find(Tt=>Tt.isDefault);this.mainPage=Dt;const St=zt.urlPathname;if(!this.appNav.isPageTitleSet){const Tt=getTitle(zt.pageName);document.title=Tt,this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:zt.pageName??""})}return!this.appNav.isPageIconSet&&zt.icon&&this.appNav.onPageIconChange(zt.icon),this.appNav.onUpdatePageUrl(Dt.urlPathname??"",St,zt.isDefault??!1),[{appPages:dt,navSections:ct,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:et.expanded,currentPageScriptHash:ft},()=>{this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:dt}),this.appNav.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:zt.isDefault?"":St,currentPageScriptHash:ft})}]}findPageByUrlPath(et){return this.appPages.find(ct=>et.endsWith("/"+ct.urlPathname))??this.mainPage}clearPageElements(et,ct,ut){return et.filterMainScriptElements(ct)}}class AppNavigation{constructor(et,ct,ut,dt){this.hostCommunicationMgr=et,this.onUpdatePageUrl=ct,this.onPageNotFound=ut,this.onPageIconChange=dt,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.strategy=new StrategyV1(this)}handleNewSession(et){return this.isPageTitleSet=!1,this.isPageIconSet=!1,this.strategy.handleNewSession(et)}handleNavigation(et){return this.strategy instanceof StrategyV1&&(this.strategy=new StrategyV2(this)),this.strategy.handleNavigation(et)}handlePagesChanged(et){return this.strategy.handlePagesChanged(et)}handlePageNotFound(et){return this.strategy.handlePageNotFound(et)}findPageByUrlPath(et){return this.strategy.findPageByUrlPath(et)}handlePageConfigChanged(et){this.isPageIconSet=!!et.favicon,this.isPageTitleSet=!!et.title}clearPageElements(et,ct,ut){return this.strategy.clearPageElements(et,ct,ut)}}const ELEMENT_LIST_BUFFER_TIMEOUT_MS=10,INITIAL_SCRIPT_RUN_ID="<null>",showDevelopmentOptions=(ot,et)=>et==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==et||Config.ToolbarMode.MINIMAL==et?!1:ot||isLocalhost();let App$1=(M1=class extends reactExports.PureComponent{constructor(et){super(et),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.showDeployError=(ut,dt,ft)=>{this.openDialog({type:DialogType.DEPLOY_ERROR,title:ut,msg:dt,onContinue:ft,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleThemeMessage=(ut,dt)=>{const[,ft,zt]=createPresetThemes(),Dt=isPresetTheme(this.props.theme.activeTheme);ut===ft.name&&Dt?this.props.theme.setTheme(ft):ut===zt.name&&Dt?this.props.theme.setTheme(zt):dt&&this.props.theme.setImportedTheme(dt)},this.handleConnectionStateChanged=ut=>{if(logMessage(`Connection state changed from ${this.state.connectionState} to ${ut}`),ut===ConnectionState.CONNECTED){const dt=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||this.state.scriptRunState===ScriptRunState.RUNNING;(!this.sessionInfo.last||dt)&&(this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:ut!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.clearCurrent();this.setState({connectionState:ut})},this.handleGitInfoChanged=ut=>{this.setState({gitInfo:ut})},this.handleCustomParentMessage=ut=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:ut.message}):logError("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=ut=>{const dt=(ft,zt,Dt)=>{const St=ft[zt];if(St in Dt)return Dt[St](ft[St]);throw new Error(`Cannot handle ${zt} "${St}".`)};try{dt(ut,"type",{newSession:ft=>this.handleNewSession(ft),sessionStatusChanged:ft=>this.handleSessionStatusChanged(ft),sessionEvent:ft=>this.handleSessionEvent(ft),delta:ft=>this.handleDeltaMsg(ft,ut.metadata),pageConfigChanged:ft=>this.handlePageConfigChanged(ft),pageInfoChanged:ft=>this.handlePageInfoChanged(ft),pagesChanged:ft=>this.handlePagesChanged(ft),pageNotFound:ft=>this.handlePageNotFound(ft),gitInfoChanged:ft=>this.handleGitInfoChanged(ft),scriptFinished:ft=>this.handleScriptFinished(ft),pageProfile:ft=>this.handlePageProfileMsg(ft),autoRerun:ft=>this.handleAutoRerun(ft),fileUrlsResponse:ft=>this.uploadClient.onFileURLsResponse(ft),parentMessage:ft=>this.handleCustomParentMessage(ft),logo:ft=>this.handleLogo(ft,ut.metadata),navigation:ft=>this.handleNavigation(ft)})}catch(ft){const zt=ensureError(ft);logError(zt),this.showError("Bad message format",zt.message)}},this.handleLogo=(ut,dt)=>{const ft={activeScriptHash:dt.activeScriptHash,scriptRunId:this.state.scriptRunId};this.setState({elements:this.pendingElementsBuffer.appRootWithLogo(ut,ft)},()=>{this.pendingElementsBuffer=this.state.elements})},this.handlePageConfigChanged=ut=>{const{title:dt,favicon:ft,layout:zt,initialSidebarState:Dt,menuItems:St}=ut;this.appNavigation.handlePageConfigChanged(ut),dt&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:dt}),document.title=dt),ft&&this.onPageIconChanged(ft),zt!==this.state.layout&&this.setState(Tt=>({layout:zt,userSettings:{...Tt.userSettings,wideMode:zt===PageConfig.Layout.WIDE}})),Dt!==this.state.initialSidebarState&&this.setState(()=>({initialSidebarState:Dt})),this.setState({menuItems:St})},this.handlePageInfoChanged=ut=>{const{queryString:dt}=ut,ft=document.location.pathname+(dt?`?${dt}`:"");window.history.pushState({},"",ft),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:dt?`?${dt}`:""})},this.onPageNotFound=ut=>{const dt=ut?`You have requested page /${ut}, but no corresponding file was found in the app's pages/ directory`:"The page that you have requested does not seem to exist";this.showError("Page not found",`${dt}. Running the app's main page.`)},this.handlePageNotFound=ut=>{this.maybeSetState(this.appNavigation.handlePageNotFound(ut))},this.onPageIconChanged=ut=>{handleFavicon(ut,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handlePagesChanged=ut=>{this.maybeSetState(this.appNavigation.handlePagesChanged(ut))},this.handleNavigation=ut=>{this.maybeSetState(this.appNavigation.handleNavigation(ut))},this.handlePageProfileMsg=ut=>{var zt,Dt,St;const dt=PageProfile.toObject(ut),ft=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...dt,isFragmentRun:!!dt.isFragmentRun,appId:this.sessionInfo.current.appId,numPages:(zt=this.state.appPages)==null?void 0:zt.length,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:(St=(Dt=this.props.theme)==null?void 0:Dt.activeTheme)==null?void 0:St.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:ft})},this.handleAutoRerun=ut=>{const dt=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(ut.fragmentId,!0)},ut.interval*1e3);this.setState(ft=>({autoReruns:[...ft.autoReruns,dt]}))},this.handleSessionStatusChanged=ut=>{this.setState(dt=>{let{scriptRunState:ft}=dt,{dialog:zt}=dt;return ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.STOP_REQUESTED?(ft=ScriptRunState.RUNNING,notNullOrUndefined(zt)&&zt.type===DialogType.SCRIPT_COMPILE_ERROR&&(zt=void 0)):!ut.scriptIsRunning&&dt.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&dt.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(ft=ScriptRunState.NOT_RUNNING),{userSettings:{...dt.userSettings,runOnSave:!!ut.runOnSave},dialog:zt,scriptRunState:ft}})},this.handleSessionEvent=ut=>{if(this.sessionEventDispatcher.handleSessionEventMsg(ut),ut.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const dt={type:DialogType.SCRIPT_COMPILE_ERROR,exception:ut.scriptCompilationException,onClose:()=>{}};this.openDialog(dt)}},this.maybeUpdatePageUrl=(ut,dt,ft)=>{const zt=this.getBaseUriParts();if(zt){const{basePath:Dt}=zt,St=extractPageNameFromPathName(document.location.pathname,Dt);if((St===""?ut:St)!==dt){const Tt=ft?"":dt,Rt=preserveEmbedQueryParams(),$t=Rt?`?${Rt}`:"",kt=`${Dt?`/${Dt}`:""}/${Tt}${$t}`,Bt=kt.endsWith("/")&&kt!=="/"?kt.slice(0,-1):kt;window.history.pushState({},"",Bt)}}},this.handleNewSession=ut=>{const dt=ut.initialize;if(this.hasStreamlitVersionChanged(dt)){window.location.reload();return}this.sessionInfo.isSet||this.handleOneTimeInitialization(ut);const{appHash:ft,currentPageScriptHash:zt}=this.state,{scriptRunId:Dt,name:St,mainScriptPath:Tt,fragmentIdsThisRun:Rt,pageScriptHash:$t,mainScriptHash:kt}=ut;if(Rt.length)this.setState({fragmentIdsThisRun:Rt,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Ft=ut.config,jt=ut.customTheme;this.processThemeInput(jt),this.setState({allowRunOnSave:Ft.allowRunOnSave,hideTopBar:Ft.hideTopBar,toolbarMode:Ft.toolbarMode,latestRunTime:performance.now(),mainScriptHash:kt,fragmentIdsThisRun:Rt}),this.maybeSetState(this.appNavigation.handleNewSession(ut)),this.onPageIconChanged("/favicon.png")}const Bt=hashString(this.sessionInfo.current.installationId+Tt);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(Bt),this.metricsMgr.enqueue("updateReport"),ft===Bt&&zt===$t?this.setState({scriptRunId:Dt}):this.clearAppState(Bt,Dt,St,kt)},this.handleOneTimeInitialization=ut=>{const dt=ut.initialize,ft=ut.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(ut)),this.metricsMgr.initialize({gatherUsageStats:ft.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(dt.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:ut}=this.state,dt=this.appNavigation.findPageByUrlPath(document.location.pathname),ft=document.location.toString().includes("#"),zt=(dt==null?void 0:dt.pageScriptHash)===ut;isNullOrUndefined$1(dt)||ft&&zt||this.onPageChange(dt.pageScriptHash)},this.setAndSendTheme=ut=>{this.props.theme.setTheme(ut),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(ut.emotion)})},this.createThemeHash=ut=>{if(!ut)return"hash_for_undefined_custom_theme";const dt=Object.entries(ut);return dt.sort(),hashString(dt.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0})},this.saveSettings=ut=>{const{runOnSave:dt}=this.state.userSettings,{runOnSave:ft}=ut;if(this.setState({userSettings:ut}),dt!==ft&&this.isServerConnected()){const zt=new BackMsg({setRunOnSave:ft});zt.type="setRunOnSave",this.sendBackMsg(zt)}},this.handleDeltaMsg=(ut,dt)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,ut,dt),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const ft=this.state.scriptRunState===ScriptRunState.RUNNING;setTimeout(()=>{this.pendingElementsTimerRunning=!1,ft&&this.setState({elements:this.pendingElementsBuffer})},ELEMENT_LIST_BUFFER_TIMEOUT_MS)}},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugShutdownRuntime:!0});ut.type="debugShutdownRuntime",this.sendBackMsg(ut)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const ut=new BackMsg({debugDisconnectWebsocket:!0});ut.type="debugDisconnectWebsocket",this.sendBackMsg(ut)}},this.debugClearForwardMsgCache=()=>{var ut,dt;isLocalhost()&&((dt=(ut=this.connectionManager)==null?void 0:ut.connection)==null||dt.cache.messages.clear())},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(ut=>{clearInterval(ut)}),this.setState({autoReruns:[]})},this.rerunScript=(ut=!1)=>{if(this.closeDialog(),!this.isServerConnected()){logError("Cannot rerun script when disconnected from server.");return}this.state.scriptRunState===ScriptRunState.RUNNING||this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),ut===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){logError("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=ut=>{const{elements:dt,mainScriptHash:ft}=this.state;this.cleanupAutoReruns();const zt=this.appNavigation.clearPageElements(dt,ft,void 0),Dt=new Set(Array.from(zt.getElements()).map(St=>getElementId(St)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(Dt),void 0,ut)},this.isAppInReadyState=ut=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&ut.scriptRunState===ScriptRunState.RUNNING&&ut.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(ut,dt,ft,zt)=>{const Dt=this.getBaseUriParts();if(!Dt){logError("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:St}=this.state,{basePath:Tt}=Dt;let Rt=this.getQueryString(),$t="";ft?ft!=St&&(Rt=preserveEmbedQueryParams(),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:Rt})):St?ft=St:($t=extractPageNameFromPathName(document.location.pathname,Tt),ft=""),this.sendBackMsg(new BackMsg({rerunScript:{queryString:Rt,widgetStates:ut,pageScriptHash:ft,pageName:$t,fragmentId:dt,isAutoRerun:zt}})),PerformanceEvents.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected()){logError("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const ut=new BackMsg({stopScript:!0});ut.type="stopScript",this.sendBackMsg(ut),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const ut={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(ut)}else logError("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{var dt;const ut={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:((dt=this.state.dialog)==null?void 0:dt.type)===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.openThemeCreatorDialog=()=>{this.metricsMgr.enqueue("menuClick",{label:"editTheme"});const ut={type:DialogType.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog,metricsMgr:this.metricsMgr};this.openDialog(ut)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const ut=new BackMsg({clearCache:!0});ut.type="clearCache",this.sendBackMsg(ut)}else logError("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const ut=new BackMsg({appHeartbeat:!0});ut.type="appHeartbeat",this.sendBackMsg(ut)}else logError("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=ut=>{this.connectionManager?this.connectionManager.sendMessage(ut):logError(`Not connected. Cannot send back message: ${ut}`)},this.handleConnectionError=ut=>{this.showError("Connection error",ut)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(ut=!0)=>{const dt={type:DialogType.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),openThemeCreator:this.openThemeCreatorDialog,animateModal:ut,metricsMgr:this.metricsMgr};this.openDialog(dt)},this.aboutCallback=()=>{const{menuItems:ut}=this.state,dt={type:DialogType.ABOUT,sessionInfo:this.sessionInfo,onClose:this.closeDialog,aboutSectionMd:ut==null?void 0:ut.aboutSectionMd};this.openDialog(dt)},this.printCallback=()=>{const{scriptRunState:ut}=this.state;if(ut!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let dt;try{const ft=getIFrameEnclosingApp(this.embeddingId);ft&&ft.contentWindow?dt=ft.contentWindow.window:dt=window}catch{dt=window}finally{dt||(dt=window),dt.print()}},this.screencastCallback=()=>{const{scriptName:ut}=this.state,{startRecording:dt}=this.props.screenCast,ft=hooks().format("YYYY-MM-DD-HH-MM-SS");dt(`streamlit-${ut}-${ft}`)},this.handleFullScreen=ut=>{this.setState({isFullScreen:ut})},this.setLibConfig=ut=>{this.setState({libConfig:ut})},this.setAppConfig=ut=>{this.setState({appConfig:ut})},this.addScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:dt.scriptFinishedHandlers.concat(ut)}))},this.removeScriptFinishedHandler=ut=>{this.setState((dt,ft)=>({scriptFinishedHandlers:without$1(dt.scriptFinishedHandlers,ut)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:ut}=this.state,dt=ut&&ut.length>0?ut:document.location.search;return dt.startsWith("?")?dt.substring(1):dt},this.isInCloudEnvironment=()=>{const{hostMenuItems:ut}=this.state;return ut&&(ut==null?void 0:ut.length)>0},this.showDeployButton=()=>showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&!this.isInCloudEnvironment()&&this.sessionInfo.isSet&&!this.sessionInfo.isHello,this.deployButtonClicked=()=>{this.metricsMgr.enqueue("menuClick",{label:"deployButtonInApp"}),this.sendLoadGitInfoBackMsg(),this.openDeployDialog()},this.requestFileURLs=(ut,dt)=>{if(this.isServerConnected()){const ft=new BackMsg({fileUrlsRequest:{requestId:ut,fileNames:dt.map(zt=>zt.name),sessionId:this.sessionInfo.current.sessionId}});ft.type="fileUrlsRequest",this.sendBackMsg(ft)}},this.handleKeyDown=ut=>{switch(ut){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=ut=>{ut==="esc"&&this.props.screenCast.stopRecording()},J$2();let ct=this.createThemeHash();isPresetTheme(et.theme.activeTheme)||(ct=this.createThemeHash(toThemeInput(et.theme.activeTheme.emotion))),this.state={connectionState:ConnectionState.INITIAL,elements:AppRoot.empty("",!0),isFullScreen:!1,scriptName:"",scriptRunId:INITIAL_SCRIPT_RUN_ID,appHash:null,scriptRunState:ScriptRunState.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],themeHash:ct,gitInfo:null,formsData:createFormsData(),appPages:[],navSections:[],currentPageScriptHash:"",mainScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,expandSidebarNav:!1,toolbarMode:Config.ToolbarMode.MINIMAL,latestRunTime:performance.now(),fragmentIdsThisRun:[],isOwner:!1,hostMenuItems:[],hostToolbarItems:[],hostHideSidebarNav:!1,sidebarChevronDownshift:0,pageLinkBaseUrl:"",queryParams:"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:ut=>this.setState({formsData:ut})}),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:et.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:ut=>{this.setState({inputsDisabled:ut})},themeChanged:this.handleThemeMessage,pageChanged:this.onPageChange,isOwnerChanged:ut=>this.setState({isOwner:ut}),jwtHeaderChanged:({jwtHeaderName:ut,jwtHeaderValue:dt})=>{this.endpoints.setJWTHeader!==void 0&&this.state.appConfig.useExternalAuthToken&&this.endpoints.setJWTHeader({jwtHeaderName:ut,jwtHeaderValue:dt})},fileUploadClientConfigChanged:ut=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(ut)},hostMenuItemsChanged:ut=>{this.setState({hostMenuItems:ut})},hostToolbarItemsChanged:ut=>{this.setState({hostToolbarItems:ut})},hostHideSidebarNavChanged:ut=>{this.setState({hostHideSidebarNav:ut})},sidebarChevronDownshiftChanged:ut=>{this.setState({sidebarChevronDownshift:ut})},pageLinkBaseUrlChanged:ut=>{this.setState({pageLinkBaseUrl:ut})},queryParamsChanged:ut=>{this.setState({queryParams:ut})},deployedAppMetadataChanged:ut=>{this.setState({deployedAppMetadata:ut})},restartWebsocketConnection:()=>{this.connectionManager||this.initializeConnectionManager()},terminateWebsocketConnection:()=>{var ut;(ut=this.connectionManager)==null||ut.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:ut=>this.widgetMgr.setFormsWithUploadsInProgress(ut),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}initializeConnectionManager(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.connectionManager=new ConnectionManager({kernel:et,sessionInfo:this.sessionInfo,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,onHostConfigResp:ut=>{const{allowedOrigins:dt,useExternalAuthToken:ft,disableFullscreenMode:zt,enableCustomParentMessages:Dt,mapboxToken:St,enforceDownloadInNewTab:Tt,metricsUrl:Rt}=ut,$t={allowedOrigins:dt,useExternalAuthToken:ft,enableCustomParentMessages:Dt},kt={mapboxToken:St,disableFullscreenMode:zt,enforceDownloadInNewTab:Tt};this.metricsMgr.setMetricsConfig(Rt),this.hostCommunicationMgr.setAllowedOrigins($t),this.setAppConfig($t),this.setLibConfig(kt)}})}componentDidMount(){var ct;const et=(ct=this.context)==null?void 0:ct.kernel;if(et==null)throw new Error("Kernel is not set in the context.");this.initializeConnectionManager(),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),this.uploadClient.setKernel(et),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const ut=document.querySelectorAll("[data-iframe-height]"),dt=Array.from(ut).map(ft=>Math.ceil(ft.getBoundingClientRect().bottom));return Math.max(0,...dt)}},__vitePreload(()=>import("./iframeResizer.contentWindow-D4yL-VeT.js").then(ut=>ut.i),[])),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(this.props.theme.activeTheme.emotion)}),this.metricsMgr.enqueue("viewReport"),window.addEventListener("popstate",this.onHistoryChange,!1)}componentDidUpdate(et,ct){window.prerenderReady===!1&&this.isAppInReadyState(ct)&&(window.prerenderReady=!0),this.state.scriptRunState!==ct.scriptRunState&&this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}componentWillUnmount(){var et;(et=this.connectionManager)==null||et.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}showError(et,ct){logError(ct);const ut={type:DialogType.WARNING,title:et,msg:ct,onClose:()=>{}};this.openDialog(ut)}hasStreamlitVersionChanged(et){if(this.sessionInfo.isSet){const ct=this.sessionInfo.current.streamlitVersion,{environmentInfo:ut}=et;if(notNullOrUndefined(ut)&¬NullOrUndefined(ut.streamlitVersion))return ct!=ut.streamlitVersion}return!1}maybeSetState(et){if(et){const[ct,ut]=et;this.setState(ct,ut)}}processThemeInput(et){const ct=this.createThemeHash(et);if(ct===this.state.themeHash)return;this.setState({themeHash:ct});const ut=!isPresetTheme(this.props.theme.activeTheme);if(et){const dt=createTheme(CUSTOM_THEME_NAME,et);this.props.theme.addThemes([dt]),(getCachedTheme()===null||ut)&&this.setAndSendTheme(dt)}else this.props.theme.addThemes([]),ut&&this.setAndSendTheme(getHostSpecifiedTheme())}handleScriptFinished(et){if(et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){if(window.setTimeout(()=>{this.state.scriptFinishedHandlers.map(ct=>ct())},0),et===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||et===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY){this.setState(({scriptRunId:ut,fragmentIdsThisRun:dt})=>({elements:this.pendingElementsBuffer.clearStaleNodes(ut,dt)}),()=>{this.pendingElementsBuffer=this.state.elements});const ct=new Set(Array.from(this.state.elements.getElements()).map(ut=>getElementId(ut)).filter(notUndefined));this.widgetMgr.removeInactive(ct)}this.connectionManager!==null&&et!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge)}}clearAppState(et,ct,ut,dt){const{hideSidebarNav:ft,elements:zt}=this.state,Dt=ft&&zt.sidebar||void 0;this.setState({scriptRunId:ct,scriptName:ut,appHash:et,elements:this.appNavigation.clearPageElements(this.pendingElementsBuffer,dt,Dt)},()=>{this.pendingElementsBuffer=this.state.elements;const St=new Set(Array.from(this.state.elements.getElements()).map(Tt=>getElementId(Tt)).filter(notUndefined));this.widgetMgr.removeInactive(St)})}openDialog(et){this.setState({dialog:et})}render(){const{allowRunOnSave:et,connectionState:ct,dialog:ut,elements:dt,initialSidebarState:ft,menuItems:zt,isFullScreen:Dt,scriptRunId:St,scriptRunState:Tt,userSettings:Rt,hideTopBar:$t,hideSidebarNav:kt,expandSidebarNav:Bt,currentPageScriptHash:Ft,hostHideSidebarNav:jt,pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,hostMenuItems:Ut,hostToolbarItems:Jt,libConfig:Ht,appConfig:e0,inputsDisabled:t0,appPages:Zt,navSections:o0}=this.state,n0=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),r0=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":Rt.wideMode}),a0=ut?StreamlitDialog({...ut,onClose:this.closeDialog}):null,u0=t0||ct!==ConnectionState.CONNECTED;return jsxRuntimeExports.jsx(AppContext.Provider,{value:{initialSidebarState:ft,wideMode:Rt.wideMode,embedded:isEmbed(),showPadding:!isEmbed()||isPaddingDisplayed(),disableScrolling:isScrollingHidden(),showToolbar:!isEmbed()||isToolbarDisplayed(),showColoredLine:!isEmbed()||isColoredLineDisplayed(),pageLinkBaseUrl:Kt,sidebarChevronDownshift:Yt,gitInfo:this.state.gitInfo,appConfig:e0},children:jsxRuntimeExports.jsx(LibContext.Provider,{value:{isFullScreen:Dt,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,addThemes:this.props.theme.addThemes,onPageChange:this.onPageChange,currentPageScriptHash:Ft,libConfig:Ht,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language},children:jsxRuntimeExports.jsx(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxRuntimeExports.jsxs(StyledApp,{className:r0,"data-testid":"stApp","data-test-script-state":St==INITIAL_SCRIPT_RUN_ID?"initial":Tt,"data-test-connection-state":ct,children:[jsxRuntimeExports.jsxs(Header,{children:[!$t&&jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[jsxRuntimeExports.jsx(StatusWidget,{connectionState:ct,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:Tt,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:et}),jsxRuntimeExports.jsx(ToolbarActions,{hostToolbarItems:Jt,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr})]}),this.showDeployButton()&&jsxRuntimeExports.jsx(DeployButton,{onClick:this.deployButtonClicked.bind(this)}),jsxRuntimeExports.jsx(MainMenu$1,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,printCallback:this.printCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,hostMenuItems:Ut,developmentMode:n0,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:zt,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]}),jsxRuntimeExports.jsx(AppView,{endpoints:this.endpoints,sessionInfo:this.sessionInfo,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:dt,scriptRunId:St,scriptRunState:Tt,widgetMgr:this.widgetMgr,widgetsDisabled:u0,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appLogo:dt.logo,appPages:Zt,navSections:o0,onPageChange:this.onPageChange,currentPageScriptHash:Ft,hideSidebarNav:kt||jt,expandSidebarNav:Bt}),a0]})})})})}},M1.contextType=StliteKernelContext,M1);const AppWithScreencast=withScreencast(App$1);function useThemeManager(){const ot=getDefaultTheme(),[et,ct]=reactExports.useState(ot),[ut,dt]=reactExports.useState([]),[ft,zt]=reactExports.useState([...createPresetThemes(),...isPresetTheme(ot)?[]:[ot]]),Dt=$t=>{zt([...createPresetThemes(),...$t])},St=reactExports.useCallback($t=>{$t!==et&&(ct($t),$t.name===AUTO_THEME_NAME?removeCachedTheme():setCachedTheme($t))},[ct,et]),Tt=reactExports.useCallback(()=>{et.name===AUTO_THEME_NAME&&St(getHostSpecifiedTheme());const $t=ft.filter(kt=>kt.name!==AUTO_THEME_NAME);zt([createAutoTheme(),...$t])},[et.name,ft,St]),Rt=reactExports.useCallback($t=>{$t.fontFaces&&dt($t.fontFaces);const kt=new CustomThemeConfig($t),Bt=createTheme(CUSTOM_THEME_NAME,kt);St(Bt)},[dt,St]);return reactExports.useEffect(()=>{const $t=window.matchMedia("(prefers-color-scheme: dark)");return $t.addEventListener("change",Tt),window.addEventListener("afterprint",Tt),()=>{window.removeEventListener("afterprint",Tt),$t.removeEventListener("change",Tt)}},[et,ft,Tt]),[{setTheme:St,activeTheme:et,addThemes:Dt,availableThemes:ft,setImportedTheme:Rt},ut]}const ThemedApp=({streamlitExecutionStartedAt:ot})=>{const[et,ct]=useThemeManager(),{activeTheme:ut}=et,dt=ut.name===CUSTOM_THEME_NAME&&ct.length>0;return jsxRuntimeExports.jsx(RootStyleProvider,{theme:ut,children:jsxRuntimeExports.jsx(WindowDimensionsProvider,{children:jsxRuntimeExports.jsxs(PortalProvider,{children:[dt&&jsxRuntimeExports.jsx(FontFaceDeclaration,{fontFaces:ct}),jsxRuntimeExports.jsx(AppWithScreencast,{theme:et,streamlitExecutionStartedAt:ot})]})})})};class SequentialIDGenerator{constructor(et=""){this.prefix=et,this.count=0,this.offset=374,this.msb=1295,this.power=2}next(){const et=this.increment().toString(36);return this.prefix?`${this.prefix}${et}`:et}increment(){const et=this.count+this.offset;return et===this.msb&&(this.offset+=(this.msb+1)*9,this.msb=Math.pow(36,++this.power)-1),this.count++,et}}const minMaxWidth=/(!?\(\s*min(-device-)?-width).+\(\s*max(-device)?-width/i,minWidth=/\(\s*min(-device)?-width/i,maxMinWidth=/(!?\(\s*max(-device)?-width).+\(\s*min(-device)?-width/i,maxWidth=/\(\s*max(-device)?-width/i,isMinWidth=_testQuery(minMaxWidth,maxMinWidth,minWidth),isMaxWidth=_testQuery(maxMinWidth,minMaxWidth,maxWidth),minMaxHeight=/(!?\(\s*min(-device)?-height).+\(\s*max(-device)?-height/i,minHeight=/\(\s*min(-device)?-height/i,maxMinHeight=/(!?\(\s*max(-device)?-height).+\(\s*min(-device)?-height/i,maxHeight=/\(\s*max(-device)?-height/i,isMinHeight=_testQuery(minMaxHeight,maxMinHeight,minHeight),isMaxHeight=_testQuery(maxMinHeight,minMaxHeight,maxHeight),isPrint=/print/i,isPrintOnly=/^print$/i,maxValue=Number.MAX_VALUE;function _getQueryLength(ot){const et=/(-?\d*\.?\d+)(ch|em|ex|px|rem)/.exec(ot);if(et===null)return maxValue;let ct=et[1];switch(et[2]){case"ch":ct=parseFloat(ct)*8.8984375;break;case"em":case"rem":ct=parseFloat(ct)*16;break;case"ex":ct=parseFloat(ct)*8.296875;break;case"px":ct=parseFloat(ct);break}return+ct}function _testQuery(ot,et,ct){return function(ut){return ot.test(ut)?!0:et.test(ut)?!1:ct.test(ut)}}function _testIsPrint(ot,et){const ct=isPrint.test(ot),ut=isPrintOnly.test(ot),dt=isPrint.test(et),ft=isPrintOnly.test(et);return ct&&dt?!ut&&ft?1:ut&&!ft?-1:ot.localeCompare(et):ct?1:dt?-1:null}function sortCSSmq(ot,et){if(ot==="")return-1;if(et==="")return 1;const ct=_testIsPrint(ot,et);if(ct!==null)return ct;const ut=isMinWidth(ot)||isMinHeight(ot),dt=isMaxWidth(ot)||isMaxHeight(ot),ft=isMinWidth(et)||isMinHeight(et),zt=isMaxWidth(et)||isMaxHeight(et);if(ut&&zt)return-1;if(dt&&ft)return 1;const Dt=_getQueryLength(ot),St=_getQueryLength(et);return Dt===maxValue&&St===maxValue?ot.localeCompare(et):Dt===maxValue?1:St===maxValue?-1:Dt>St?dt?-1:1:Dt<St?dt?1:-1:ot.localeCompare(et)}class MultiCache{constructor(et,ct,ut){this.idGenerator=et,this.onNewCache=ct,this.onNewValue=ut,this.sortedCacheKeys=[],this.caches={}}getCache(et){if(!this.caches[et]){const ct=new Cache(this.idGenerator,this.onNewValue);ct.key=et,this.sortedCacheKeys.push(et),this.sortedCacheKeys.sort(sortCSSmq);const ut=this.sortedCacheKeys.indexOf(et),dt=ut<this.sortedCacheKeys.length-1?this.sortedCacheKeys[ut+1]:void 0;this.caches[et]=ct,this.onNewCache(et,ct,dt)}return this.caches[et]}getSortedCacheKeys(){return this.sortedCacheKeys}}class Cache{constructor(et,ct){this.cache={},this.idGenerator=et,this.onNewValue=ct}addValue(et,ct){const ut=this.cache[et];if(ut)return ut;const dt=this.idGenerator.next();return this.cache[et]=dt,this.onNewValue(this,dt,ct),dt}}const uppercasePattern$1=/[A-Z]/g,msPattern$1=/^ms-/,cache$1={};function hyphenateStyleName$2(ot){return ot in cache$1?cache$1[ot]:cache$1[ot]=ot.replace(uppercasePattern$1,"-$&").toLowerCase().replace(msPattern$1,"-ms-")}function capitalizeString(ot){return ot.charAt(0).toUpperCase()+ot.slice(1)}function prefixProperty(ot,et,ct){if(ot.hasOwnProperty(et)){for(var ut={},dt=ot[et],ft=capitalizeString(et),zt=Object.keys(ct),Dt=0;Dt<zt.length;Dt++){var St=zt[Dt];if(St===et)for(var Tt=0;Tt<dt.length;Tt++)ut[dt[Tt]+ft]=ct[et];ut[St]=ct[St]}return ut}return ct}function prefixValue$1(ot,et,ct,ut,dt){for(var ft=0,zt=ot.length;ft<zt;++ft){var Dt=ot[ft](et,ct,ut,dt);if(Dt)return Dt}}function addIfNew(ot,et){ot.indexOf(et)===-1&&ot.push(et)}function addNewValuesOnly(ot,et){if(Array.isArray(et))for(var ct=0,ut=et.length;ct<ut;++ct)addIfNew(ot,et[ct]);else addIfNew(ot,et)}function isObject(ot){return ot instanceof Object&&!Array.isArray(ot)}function createPrefixer(ot){var et=ot.prefixMap,ct=ot.plugins;return function ut(dt){for(var ft in dt){var zt=dt[ft];if(isObject(zt))dt[ft]=ut(zt);else if(Array.isArray(zt)){for(var Dt=[],St=0,Tt=zt.length;St<Tt;++St){var Rt=prefixValue$1(ct,ft,zt[St],dt,et);addNewValuesOnly(Dt,Rt||zt[St])}Dt.length>0&&(dt[ft]=Dt)}else{var $t=prefixValue$1(ct,ft,zt,dt,et);$t&&(dt[ft]=$t),dt=prefixProperty(et,ft,dt)}}return dt}}var w=["Webkit"],m=["Moz"],ms=["ms"],wm=["Webkit","Moz"],wms=["Webkit","ms"],wmms=["Webkit","Moz","ms"];const data={plugins:[],prefixMap:{appearance:wm,textEmphasisPosition:w,textEmphasis:w,textEmphasisStyle:w,textEmphasisColor:w,boxDecorationBreak:w,maskImage:w,maskMode:w,maskRepeat:w,maskPosition:w,maskClip:w,maskOrigin:w,maskSize:w,maskComposite:w,mask:w,maskBorderSource:w,maskBorderMode:w,maskBorderSlice:w,maskBorderWidth:w,maskBorderOutset:w,maskBorderRepeat:w,maskBorder:w,maskType:w,textDecorationStyle:w,textDecorationSkip:w,textDecorationLine:w,textDecorationColor:w,userSelect:wmms,backdropFilter:w,fontKerning:w,scrollSnapType:wms,scrollSnapPointsX:wms,scrollSnapPointsY:wms,scrollSnapDestination:wms,scrollSnapCoordinate:wms,clipPath:w,shapeImageThreshold:w,shapeImageMargin:w,shapeImageOutside:w,filter:w,hyphens:wms,flowInto:wms,flowFrom:wms,breakBefore:wms,breakAfter:wms,breakInside:wms,regionFragment:wms,writingMode:wms,textOrientation:w,tabSize:m,fontFeatureSettings:w,columnCount:w,columnFill:w,columnGap:w,columnRule:w,columnRuleColor:w,columnRuleStyle:w,columnRuleWidth:w,columns:w,columnSpan:w,columnWidth:w,wrapFlow:ms,wrapThrough:ms,wrapMargin:ms,textSizeAdjust:wms}};function backgroundClip(ot,et){if(typeof et=="string"&&et==="text")return["-webkit-text","text"]}var prefixes$5=["-webkit-","-moz-",""],values$3={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function cursor(ot,et){if(ot==="cursor"&&values$3.hasOwnProperty(et))return prefixes$5.map(function(ct){return ct+et})}var isPrefixedValue$1={exports:{}};(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ut;var ct=/-webkit-|-moz-|-ms-/;function ut(dt){return typeof dt=="string"&&ct.test(dt)}ot.exports=et.default})(isPrefixedValue$1,isPrefixedValue$1.exports);var isPrefixedValueExports=isPrefixedValue$1.exports;const isPrefixedValue=getDefaultExportFromCjs$1(isPrefixedValueExports);var prefixes$4=["-webkit-",""];function crossFade(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("cross-fade(")>-1)return prefixes$4.map(function(ct){return et.replace(/cross-fade\(/g,ct+"cross-fade(")})}var prefixes$3=["-webkit-",""];function filter(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("filter(")>-1)return prefixes$3.map(function(ct){return et.replace(/filter\(/g,ct+"filter(")})}var values$2={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function flex(ot,et){if(ot==="display"&&values$2.hasOwnProperty(et))return values$2[et]}var alternativeValues={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},alternativeProps$1={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function flexboxOld(ot,et,ct){ot==="flexDirection"&&typeof et=="string"&&(et.indexOf("column")>-1?ct.WebkitBoxOrient="vertical":ct.WebkitBoxOrient="horizontal",et.indexOf("reverse")>-1?ct.WebkitBoxDirection="reverse":ct.WebkitBoxDirection="normal"),alternativeProps$1.hasOwnProperty(ot)&&(ct[alternativeProps$1[ot]]=alternativeValues[et]||et)}var prefixes$2=["-webkit-","-moz-",""],values$1=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function gradient(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&values$1.test(et))return prefixes$2.map(function(ct){return et.replace(values$1,function(ut){return ct+ut})})}var _slicedToArray=function(){function ot(et,ct){var ut=[],dt=!0,ft=!1,zt=void 0;try{for(var Dt=et[Symbol.iterator](),St;!(dt=(St=Dt.next()).done)&&(ut.push(St.value),!(ct&&ut.length===ct));dt=!0);}catch(Tt){ft=!0,zt=Tt}finally{try{!dt&&Dt.return&&Dt.return()}finally{if(ft)throw zt}}return ut}return function(et,ct){if(Array.isArray(et))return et;if(Symbol.iterator in Object(et))return ot(et,ct);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function isSimplePositionValue(ot){return typeof ot=="number"&&!isNaN(ot)}function isComplexSpanValue(ot){return typeof ot=="string"&&ot.includes("/")}var alignmentValues=["center","end","start","stretch"],displayValues={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},propertyConverters={alignSelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridRowAlign=et)},gridColumn:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridColumn=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridColumnStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridColumnEnd(+ft+ +Rt,ct):propertyConverters.gridColumnEnd(+zt,ct)}else propertyConverters.gridColumnStart(et,ct)},gridColumnEnd:function ot(et,ct){var ut=ct.msGridColumn;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridColumnSpan=et-ut)},gridColumnStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridColumn=et)},gridRow:function ot(et,ct){if(isSimplePositionValue(et))ct.msGridRow=et;else if(isComplexSpanValue(et)){var ut=et.split("/"),dt=_slicedToArray(ut,2),ft=dt[0],zt=dt[1];propertyConverters.gridRowStart(+ft,ct);var Dt=zt.split(/ ?span /),St=_slicedToArray(Dt,2),Tt=St[0],Rt=St[1];Tt===""?propertyConverters.gridRowEnd(+ft+ +Rt,ct):propertyConverters.gridRowEnd(+zt,ct)}else propertyConverters.gridRowStart(et,ct)},gridRowEnd:function ot(et,ct){var ut=ct.msGridRow;isSimplePositionValue(et)&&isSimplePositionValue(ut)&&(ct.msGridRowSpan=et-ut)},gridRowStart:function ot(et,ct){isSimplePositionValue(et)&&(ct.msGridRow=et)},gridTemplateColumns:function ot(et,ct){ct.msGridColumns=et},gridTemplateRows:function ot(et,ct){ct.msGridRows=et},justifySelf:function ot(et,ct){alignmentValues.indexOf(et)>-1&&(ct.msGridColumnAlign=et)}};function grid(ot,et,ct){if(ot==="display"&&et in displayValues)return displayValues[et];if(ot in propertyConverters){var ut=propertyConverters[ot];ut(et,ct)}}var prefixes$1=["-webkit-",""];function imageSet(ot,et){if(typeof et=="string"&&!isPrefixedValue(et)&&et.indexOf("image-set(")>-1)return prefixes$1.map(function(ct){return et.replace(/image-set\(/g,ct+"image-set(")})}var alternativeProps={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function logical(ot,et,ct){if(Object.prototype.hasOwnProperty.call(alternativeProps,ot))for(var ut=alternativeProps[ot],dt=0,ft=ut.length;dt<ft;++dt)ct[ut[dt]]=et}function position(ot,et){if(ot==="position"&&et==="sticky")return["-webkit-sticky","sticky"]}var prefixes=["-webkit-","-moz-",""],properties$1={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},values={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function sizing(ot,et){if(properties$1.hasOwnProperty(ot)&&values.hasOwnProperty(et))return prefixes.map(function(ct){return ct+et})}var hyphenateProperty$1={exports:{}},uppercasePattern=/[A-Z]/g,msPattern=/^ms-/,cache={};function toHyphenLower(ot){return"-"+ot.toLowerCase()}function hyphenateStyleName(ot){if(cache.hasOwnProperty(ot))return cache[ot];var et=ot.replace(uppercasePattern,toHyphenLower);return cache[ot]=msPattern.test(et)?"-"+et:et}const hyphenateStyleName$1=Object.freeze(Object.defineProperty({__proto__:null,default:hyphenateStyleName},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(hyphenateStyleName$1);(function(ot,et){Object.defineProperty(et,"__esModule",{value:!0}),et.default=ft;var ct=require$$0,ut=dt(ct);function dt(zt){return zt&&zt.__esModule?zt:{default:zt}}function ft(zt){return(0,ut.default)(zt)}ot.exports=et.default})(hyphenateProperty$1,hyphenateProperty$1.exports);var hyphenatePropertyExports=hyphenateProperty$1.exports;const hyphenateProperty=getDefaultExportFromCjs$1(hyphenatePropertyExports);var properties={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},prefixMapping={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function prefixValue(ot,et){if(isPrefixedValue(ot))return ot;for(var ct=ot.split(/,(?![^()]*(?:\([^()]*\))?\))/g),ut=0,dt=ct.length;ut<dt;++ut){var ft=ct[ut],zt=[ft];for(var Dt in et){var St=hyphenateProperty(Dt);if(ft.indexOf(St)>-1&&St!=="order")for(var Tt=et[Dt],Rt=0,$t=Tt.length;Rt<$t;++Rt)zt.unshift(ft.replace(St,prefixMapping[Tt[Rt]]+St))}ct[ut]=zt.join(",")}return ct.join(",")}function transition(ot,et,ct,ut){if(typeof et=="string"&&properties.hasOwnProperty(ot)){var dt=prefixValue(et,ut),ft=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-moz-|-ms-/.test(Dt)}).join(",");if(ot.indexOf("Webkit")>-1)return ft;var zt=dt.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Dt){return!/-webkit-|-ms-/.test(Dt)}).join(",");return ot.indexOf("Moz")>-1?zt:(ct["Webkit"+capitalizeString(ot)]=ft,ct["Moz"+capitalizeString(ot)]=zt,dt)}}var plugins=[backgroundClip,crossFade,cursor,filter,flexboxOld,gradient,grid,imageSet,logical,position,sizing,transition,flex],prefix=createPrefixer({prefixMap:data.prefixMap,plugins});function injectStylePrefixed(ot,et,ct,ut){const dt=ot.getCache(ct);let ft="";for(const zt in et){const Dt=et[zt];if(Dt!=null)if(typeof Dt!="object"){const St=`${hyphenateStyleName$2(zt)}:${Dt}`,Tt=`${ut}${St}`,Rt=dt.cache[Tt];if(Rt!==void 0){ft+=" "+Rt;continue}else{let $t="";const kt=prefix({[zt]:Dt});for(const Ft in kt){const jt=kt[Ft],Kt=typeof jt;if(Kt==="string"||Kt==="number"){const Yt=`${hyphenateStyleName$2(Ft)}:${jt}`;Yt!==St&&($t+=`${Yt};`)}else if(Array.isArray(jt)){const Yt=hyphenateStyleName$2(Ft);for(let Ut=0;Ut<jt.length;Ut++){const Jt=`${Yt}:${jt[Ut]}`;Jt!==St&&($t+=`${Jt};`)}}}$t+=St;const Bt=dt.addValue(Tt,{pseudo:ut,block:$t});ft+=" "+Bt}}else zt[0]===":"?ft+=" "+injectStylePrefixed(ot,Dt,ct,ut+zt):zt.substring(0,6)==="@media"&&(ft+=" "+injectStylePrefixed(ot,Dt,zt.substr(7),ut))}return ft.slice(1)}function atomicSelector(ot,et){let ct=`.${ot}`;return et&&(ct+=et),ct}function keyframesToBlock(ot){let et="";for(const ct in ot)et+=`${ct}{${declarationsToBlock(ot[ct])}}`;return et}function declarationsToBlock(ot){let et="";for(const ct in ot){const ut=ot[ct];(typeof ut=="string"||typeof ut=="number")&&(et+=`${hyphenateStyleName$2(ct)}:${ut};`)}return et.slice(0,-1)}function keyframesBlockToRule(ot,et){return`@keyframes ${ot}{${et}}`}function fontFaceBlockToRule(ot,et){return`@font-face{font-family:${ot};${et}}`}function styleBlockToRule(ot,et){return`${ot}{${et}}`}const insertRuleIntoDevtools=(ot,et)=>{const ct=ot.substring(1,ot.indexOf(":")!==-1?ot.indexOf(":"):ot.length),ut={};for(const dt of et.split(";"))dt.trim()!==""&&!window.__STYLETRON_DEVTOOLS__.atomicMap[ct]&&(ut[dt.substring(0,dt.indexOf(":"))]=dt.substring(dt.indexOf(":")+1,dt.length));window.__STYLETRON_DEVTOOLS__.atomicMap[ct]=ut},STYLES_HYDRATOR=/\.([^{:]+)(:[^{]+)?{(?:[^}]*;)?([^}]*?)}/g,KEYFRAMES_HYRDATOR=/@keyframes ([^{]+){((?:(?:from|to|(?:\d+\.?\d*%))\{(?:[^}])*})*)}/g,FONT_FACE_HYDRATOR=/@font-face\{font-family:([^;]+);([^}]*)\}/g;function hydrateStyles(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft,zt]=ut,Dt=ft?`${ft}${zt}`:zt;ot.cache[Dt]=dt,ot.idGenerator.increment()}}function hydrate(ot,et,ct){let ut;for(;ut=et.exec(ct);){const[,dt,ft]=ut;ot.cache[ft]=dt,ot.idGenerator.increment()}}class StyletronClient{constructor(et={}){this.styleElements={};const ct=new SequentialIDGenerator(et.prefix),ut=(dt,ft,zt)=>{const{pseudo:Dt,block:St}=zt,Tt=this.styleElements[dt.key].sheet,Rt=atomicSelector(ft,Dt),$t=styleBlockToRule(Rt,St);try{Tt.insertRule($t,Tt.cssRules.length)}catch{}};if(this.styleCache=new MultiCache(ct,(dt,ft,zt)=>{const Dt=document.createElement("style");if(Dt.media=dt,zt===void 0)this.container.appendChild(Dt);else{const St=findSheetIndexWithMedia(this.container.children,zt);this.container.insertBefore(Dt,this.container.children[St])}this.styleElements[dt]=Dt},ut),this.keyframesCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=keyframesBlockToRule(ft,keyframesToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),this.fontFaceCache=new Cache(new SequentialIDGenerator(et.prefix),(dt,ft,zt)=>{this.styleCache.getCache("");const Dt=this.styleElements[""].sheet,St=fontFaceBlockToRule(ft,declarationsToBlock(zt));try{Dt.insertRule(St,Dt.cssRules.length)}catch{}}),et.container&&(this.container=et.container),et.hydrate&&et.hydrate.length>0){if(!this.container){const dt=et.hydrate[0].parentElement;dt!=null&&(this.container=dt)}for(let dt=0;dt<et.hydrate.length;dt++){const ft=et.hydrate[dt],zt=ft.getAttribute("data-hydrate");if(zt==="font-face"){hydrate(this.fontFaceCache,FONT_FACE_HYDRATOR,ft.textContent);continue}if(zt==="keyframes"){hydrate(this.keyframesCache,KEYFRAMES_HYRDATOR,ft.textContent);continue}const Dt=ft.media?ft.media:"";this.styleElements[Dt]=ft;const St=new Cache(ct,ut);St.key=Dt,hydrateStyles(St,STYLES_HYDRATOR,ft.textContent),this.styleCache.sortedCacheKeys.push(Dt),this.styleCache.caches[Dt]=St}}if(!this.container){if(document.head===null)throw new Error("No container provided and `document.head` was null");this.container=document.head}}renderStyle(et){return injectStylePrefixed(this.styleCache,et,"","")}renderFontFace(et){const ct=declarationsToBlock(et);return this.fontFaceCache.addValue(ct,et)}renderKeyframes(et){const ct=keyframesToBlock(et);return this.keyframesCache.addValue(ct,et)}}function findSheetIndexWithMedia(ot,et){let ct=0;for(;ct<ot.length;ct++){const ut=ot[ct];if(ut.tagName==="STYLE"&&ut.media===et)return ct}return-1}const engine=new StyletronClient({prefix:"st-"}),streamlitExecutionStartedAt=Date.now();function StreamlitApp(ot){return jsxRuntimeExports.jsx(StliteKernelProvider,{kernel:ot.kernel,children:jsxRuntimeExports.jsx(Provider$1,{value:engine,children:jsxRuntimeExports.jsx(ThemedApp,{streamlitExecutionStartedAt})})})}function r(ot){var et,ct,ut="";if(typeof ot=="string"||typeof ot=="number")ut+=ot;else if(typeof ot=="object")if(Array.isArray(ot)){var dt=ot.length;for(et=0;et<dt;et++)ot[et]&&(ct=r(ot[et]))&&(ut&&(ut+=" "),ut+=ct)}else for(ct in ot)ot[ct]&&(ut&&(ut+=" "),ut+=ct);return ut}function clsx(){for(var ot,et,ct=0,ut="",dt=arguments.length;ct<dt;ct++)(ot=arguments[ct])&&(et=r(ot))&&(ut&&(ut+=" "),ut+=et);return ut}function Mt(ot){if(typeof document>"u")return;let et=document.head||document.getElementsByTagName("head")[0],ct=document.createElement("style");ct.type="text/css",et.firstChild?et.insertBefore(ct,et.firstChild):et.appendChild(ct),ct.styleSheet?ct.styleSheet.cssText=ot:ct.appendChild(document.createTextNode(ot))}Mt(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
|
|
511
511
|
`);var L=ot=>typeof ot=="number"&&!isNaN(ot),N=ot=>typeof ot=="string",P=ot=>typeof ot=="function",mt=ot=>N(ot)||L(ot),B=ot=>N(ot)||P(ot)?ot:null,pt=(ot,et)=>ot===!1||L(ot)&&ot>0?ot:et,z=ot=>reactExports.isValidElement(ot)||N(ot)||P(ot)||L(ot);function Z(ot,et,ct=300){let{scrollHeight:ut,style:dt}=ot;requestAnimationFrame(()=>{dt.minHeight="initial",dt.height=ut+"px",dt.transition=`all ${ct}ms`,requestAnimationFrame(()=>{dt.height="0",dt.padding="0",dt.margin="0",setTimeout(et,ct)})})}function $({enter:ot,exit:et,appendPosition:ct=!1,collapse:ut=!0,collapseDuration:dt=300}){return function({children:ft,position:zt,preventExitTransition:Dt,done:St,nodeRef:Tt,isIn:Rt,playToast:$t}){let kt=ct?`${ot}--${zt}`:ot,Bt=ct?`${et}--${zt}`:et,Ft=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{let jt=Tt.current,Kt=kt.split(" "),Yt=Ut=>{Ut.target===Tt.current&&($t(),jt.removeEventListener("animationend",Yt),jt.removeEventListener("animationcancel",Yt),Ft.current===0&&Ut.type!=="animationcancel"&&jt.classList.remove(...Kt))};jt.classList.add(...Kt),jt.addEventListener("animationend",Yt),jt.addEventListener("animationcancel",Yt)},[]),reactExports.useEffect(()=>{let jt=Tt.current,Kt=()=>{jt.removeEventListener("animationend",Kt),ut?Z(jt,St,dt):St()};Rt||(Dt?Kt():(Ft.current=1,jt.className+=` ${Bt}`,jt.addEventListener("animationend",Kt)))},[Rt]),React$1.createElement(React$1.Fragment,null,ft)}}function J(ot,et){return{content:tt(ot.content,ot.props),containerId:ot.props.containerId,id:ot.props.toastId,theme:ot.props.theme,type:ot.props.type,data:ot.props.data||{},isLoading:ot.props.isLoading,icon:ot.props.icon,reason:ot.removalReason,status:et}}function tt(ot,et,ct=!1){return reactExports.isValidElement(ot)&&!N(ot.type)?reactExports.cloneElement(ot,{closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):P(ot)?ot({closeToast:et.closeToast,toastProps:et,data:et.data,isPaused:ct}):ot}function yt({closeToast:ot,theme:et,ariaLabel:ct="close"}){return React$1.createElement("button",{className:`Toastify__close-button Toastify__close-button--${et}`,type:"button",onClick:ut=>{ut.stopPropagation(),ot(!0)},"aria-label":ct},React$1.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React$1.createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function gt({delay:ot,isRunning:et,closeToast:ct,type:ut="default",hide:dt,className:ft,controlledProgress:zt,progress:Dt,rtl:St,isIn:Tt,theme:Rt}){let $t=dt||zt&&Dt===0,kt={animationDuration:`${ot}ms`,animationPlayState:et?"running":"paused"};zt&&(kt.transform=`scaleX(${Dt})`);let Bt=clsx("Toastify__progress-bar",zt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${Rt}`,`Toastify__progress-bar--${ut}`,{"Toastify__progress-bar--rtl":St}),Ft=P(ft)?ft({rtl:St,type:ut,defaultClassName:Bt}):clsx(Bt,ft),jt={[zt&&Dt>=1?"onTransitionEnd":"onAnimationEnd"]:zt&&Dt<1?null:()=>{Tt&&ct()}};return React$1.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":$t},React$1.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${Rt} Toastify__progress-bar--${ut}`}),React$1.createElement("div",{role:"progressbar","aria-hidden":$t?"true":"false","aria-label":"notification timer",className:Ft,style:kt,...jt}))}var Xt=1,at=()=>`${Xt++}`;function _t(ot,et,ct){let ut=1,dt=0,ft=[],zt=[],Dt=et,St=new Map,Tt=new Set,Rt=Ut=>(Tt.add(Ut),()=>Tt.delete(Ut)),$t=()=>{zt=Array.from(St.values()),Tt.forEach(Ut=>Ut())},kt=({containerId:Ut,toastId:Jt,updateId:Ht})=>{let e0=Ut?Ut!==ot:ot!==1,t0=St.has(Jt)&&Ht==null;return e0||t0},Bt=(Ut,Jt)=>{St.forEach(Ht=>{var e0;(Jt==null||Jt===Ht.props.toastId)&&((e0=Ht.toggle)==null||e0.call(Ht,Ut))})},Ft=Ut=>{var Jt,Ht;(Ht=(Jt=Ut.props)==null?void 0:Jt.onClose)==null||Ht.call(Jt,Ut.removalReason),Ut.isActive=!1},jt=Ut=>{if(Ut==null)St.forEach(Ft);else{let Jt=St.get(Ut);Jt&&Ft(Jt)}$t()},Kt=()=>{dt-=ft.length,ft=[]},Yt=Ut=>{var Jt,Ht;let{toastId:e0,updateId:t0}=Ut.props,Zt=t0==null;Ut.staleId&&St.delete(Ut.staleId),Ut.isActive=!0,St.set(e0,Ut),$t(),ct(J(Ut,Zt?"added":"updated")),Zt&&((Ht=(Jt=Ut.props).onOpen)==null||Ht.call(Jt))};return{id:ot,props:Dt,observe:Rt,toggle:Bt,removeToast:jt,toasts:St,clearQueue:Kt,buildToast:(Ut,Jt)=>{if(kt(Jt))return;let{toastId:Ht,updateId:e0,data:t0,staleId:Zt,delay:o0}=Jt,n0=e0==null;n0&&dt++;let r0={...Dt,style:Dt.toastStyle,key:ut++,...Object.fromEntries(Object.entries(Jt).filter(([u0,p0])=>p0!=null)),toastId:Ht,updateId:e0,data:t0,isIn:!1,className:B(Jt.className||Dt.toastClassName),progressClassName:B(Jt.progressClassName||Dt.progressClassName),autoClose:Jt.isLoading?!1:pt(Jt.autoClose,Dt.autoClose),closeToast(u0){St.get(Ht).removalReason=u0,jt(Ht)},deleteToast(){let u0=St.get(Ht);if(u0!=null){if(ct(J(u0,"removed")),St.delete(Ht),dt--,dt<0&&(dt=0),ft.length>0){Yt(ft.shift());return}$t()}}};r0.closeButton=Dt.closeButton,Jt.closeButton===!1||z(Jt.closeButton)?r0.closeButton=Jt.closeButton:Jt.closeButton===!0&&(r0.closeButton=z(Dt.closeButton)?Dt.closeButton:!0);let a0={content:Ut,props:r0,staleId:Zt};Dt.limit&&Dt.limit>0&&dt>Dt.limit&&n0?ft.push(a0):L(o0)?setTimeout(()=>{Yt(a0)},o0):Yt(a0)},setProps(Ut){Dt=Ut},setToggle:(Ut,Jt)=>{let Ht=St.get(Ut);Ht&&(Ht.toggle=Jt)},isToastActive:Ut=>{var Jt;return(Jt=St.get(Ut))==null?void 0:Jt.isActive},getSnapshot:()=>zt}}var I=new Map,F=[],st=new Set,Vt=ot=>st.forEach(et=>et(ot)),bt=()=>I.size>0;function Qt(){F.forEach(ot=>nt(ot.content,ot.options)),F=[]}var vt=(ot,{containerId:et})=>{var ct;return(ct=I.get(et||1))==null?void 0:ct.toasts.get(ot)};function X(ot,et){var ct;if(et)return!!((ct=I.get(et))!=null&&ct.isToastActive(ot));let ut=!1;return I.forEach(dt=>{dt.isToastActive(ot)&&(ut=!0)}),ut}function ht(ot){if(!bt()){F=F.filter(et=>ot!=null&&et.options.toastId!==ot);return}if(ot==null||mt(ot))I.forEach(et=>{et.removeToast(ot)});else if(ot&&("containerId"in ot||"id"in ot)){let et=I.get(ot.containerId);et?et.removeToast(ot.id):I.forEach(ct=>{ct.removeToast(ot.id)})}}var Ct=(ot={})=>{I.forEach(et=>{et.props.limit&&(!ot.containerId||et.id===ot.containerId)&&et.clearQueue()})};function nt(ot,et){z(ot)&&(bt()||F.push({content:ot,options:et}),I.forEach(ct=>{ct.buildToast(ot,et)}))}function xt(ot){var et;(et=I.get(ot.containerId||1))==null||et.setToggle(ot.id,ot.fn)}function rt(ot,et){I.forEach(ct=>{(et==null||!(et!=null&&et.containerId)||(et==null?void 0:et.containerId)===ct.id)&&ct.toggle(ot,et==null?void 0:et.id)})}function Et(ot){let et=ot.containerId||1;return{subscribe(ct){let ut=_t(et,ot,Vt);I.set(et,ut);let dt=ut.observe(ct);return Qt(),()=>{dt(),I.delete(et)}},setProps(ct){var ut;(ut=I.get(et))==null||ut.setProps(ct)},getSnapshot(){var ct;return(ct=I.get(et))==null?void 0:ct.getSnapshot()}}}function Pt(ot){return st.add(ot),()=>{st.delete(ot)}}function Wt(ot){return ot&&(N(ot.toastId)||L(ot.toastId))?ot.toastId:at()}function U(ot,et){return nt(ot,et),et.toastId}function V(ot,et){return{...et,type:et&&et.type||ot,toastId:Wt(et)}}function Q(ot){return(et,ct)=>U(et,V(ot,ct))}function y(ot,et){return U(ot,V("default",et))}y.loading=(ot,et)=>U(ot,V("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...et}));function Gt(ot,{pending:et,error:ct,success:ut},dt){let ft;et&&(ft=N(et)?y.loading(et,dt):y.loading(et.render,{...dt,...et}));let zt={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},Dt=(Tt,Rt,$t)=>{if(Rt==null){y.dismiss(ft);return}let kt={type:Tt,...zt,...dt,data:$t},Bt=N(Rt)?{render:Rt}:Rt;return ft?y.update(ft,{...kt,...Bt}):y(Bt.render,{...kt,...Bt}),$t},St=P(ot)?ot():ot;return St.then(Tt=>Dt("success",ut,Tt)).catch(Tt=>Dt("error",ct,Tt)),St}y.promise=Gt,y.success=Q("success"),y.info=Q("info"),y.error=Q("error"),y.warning=Q("warning"),y.warn=y.warning,y.dark=(ot,et)=>U(ot,V("default",{theme:"dark",...et}));function qt(ot){ht(ot)}y.dismiss=qt,y.clearWaitingQueue=Ct,y.isActive=X,y.update=(ot,et={})=>{let ct=vt(ot,et);if(ct){let{props:ut,content:dt}=ct,ft={delay:100,...ut,...et,toastId:et.toastId||ot,updateId:at()};ft.toastId!==ot&&(ft.staleId=ot);let zt=ft.render||dt;delete ft.render,U(zt,ft)}},y.done=ot=>{y.update(ot,{progress:1})},y.onChange=Pt,y.play=ot=>rt(!0,ot),y.pause=ot=>rt(!1,ot);function It(ot){var et;let{subscribe:ct,getSnapshot:ut,setProps:dt}=reactExports.useRef(Et(ot)).current;dt(ot);let ft=(et=reactExports.useSyncExternalStore(ct,ut,ut))==null?void 0:et.slice();function zt(Dt){if(!ft)return[];let St=new Map;return ot.newestOnTop&&ft.reverse(),ft.forEach(Tt=>{let{position:Rt}=Tt.props;St.has(Rt)||St.set(Rt,[]),St.get(Rt).push(Tt)}),Array.from(St,Tt=>Dt(Tt[0],Tt[1]))}return{getToastToRender:zt,isToastActive:X,count:ft==null?void 0:ft.length}}function At(ot){let[et,ct]=reactExports.useState(!1),[ut,dt]=reactExports.useState(!1),ft=reactExports.useRef(null),zt=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:Dt,pauseOnHover:St,closeToast:Tt,onClick:Rt,closeOnClick:$t}=ot;xt({id:ot.toastId,containerId:ot.containerId,fn:ct}),reactExports.useEffect(()=>{if(ot.pauseOnFocusLoss)return kt(),()=>{Bt()}},[ot.pauseOnFocusLoss]);function kt(){document.hasFocus()||Yt(),window.addEventListener("focus",Kt),window.addEventListener("blur",Yt)}function Bt(){window.removeEventListener("focus",Kt),window.removeEventListener("blur",Yt)}function Ft(Zt){if(ot.draggable===!0||ot.draggable===Zt.pointerType){Ut();let o0=ft.current;zt.canCloseOnClick=!0,zt.canDrag=!0,o0.style.transition="none",ot.draggableDirection==="x"?(zt.start=Zt.clientX,zt.removalDistance=o0.offsetWidth*(ot.draggablePercent/100)):(zt.start=Zt.clientY,zt.removalDistance=o0.offsetHeight*(ot.draggablePercent===80?ot.draggablePercent*1.5:ot.draggablePercent)/100)}}function jt(Zt){let{top:o0,bottom:n0,left:r0,right:a0}=ft.current.getBoundingClientRect();Zt.nativeEvent.type!=="touchend"&&ot.pauseOnHover&&Zt.clientX>=r0&&Zt.clientX<=a0&&Zt.clientY>=o0&&Zt.clientY<=n0?Yt():Kt()}function Kt(){ct(!0)}function Yt(){ct(!1)}function Ut(){zt.didMove=!1,document.addEventListener("pointermove",Ht),document.addEventListener("pointerup",e0)}function Jt(){document.removeEventListener("pointermove",Ht),document.removeEventListener("pointerup",e0)}function Ht(Zt){let o0=ft.current;if(zt.canDrag&&o0){zt.didMove=!0,et&&Yt(),ot.draggableDirection==="x"?zt.delta=Zt.clientX-zt.start:zt.delta=Zt.clientY-zt.start,zt.start!==Zt.clientX&&(zt.canCloseOnClick=!1);let n0=ot.draggableDirection==="x"?`${zt.delta}px, var(--y)`:`0, calc(${zt.delta}px + var(--y))`;o0.style.transform=`translate3d(${n0},0)`,o0.style.opacity=`${1-Math.abs(zt.delta/zt.removalDistance)}`}}function e0(){Jt();let Zt=ft.current;if(zt.canDrag&&zt.didMove&&Zt){if(zt.canDrag=!1,Math.abs(zt.delta)>zt.removalDistance){dt(!0),ot.closeToast(!0),ot.collapseAll();return}Zt.style.transition="transform 0.2s, opacity 0.2s",Zt.style.removeProperty("transform"),Zt.style.removeProperty("opacity")}}let t0={onPointerDown:Ft,onPointerUp:jt};return Dt&&St&&(t0.onMouseEnter=Yt,ot.stacked||(t0.onMouseLeave=Kt)),$t&&(t0.onClick=Zt=>{Rt&&Rt(Zt),zt.canCloseOnClick&&Tt(!0)}),{playToast:Kt,pauseToast:Yt,isRunning:et,preventExitTransition:ut,toastRef:ft,eventHandlers:t0}}var Ot=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,G=({theme:ot,type:et,isLoading:ct,...ut})=>React$1.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:ot==="colored"?"currentColor":`var(--toastify-icon-color-${et})`,...ut});function ao(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))}function so(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))}function no(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))}function ro(ot){return React$1.createElement(G,{...ot},React$1.createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))}function io(){return React$1.createElement("div",{className:"Toastify__spinner"})}var W={info:so,warning:ao,success:no,error:ro,spinner:io},lo=ot=>ot in W;function Nt({theme:ot,type:et,isLoading:ct,icon:ut}){let dt=null,ft={theme:ot,type:et};return ut===!1||(P(ut)?dt=ut({...ft,isLoading:ct}):reactExports.isValidElement(ut)?dt=reactExports.cloneElement(ut,ft):ct?dt=W.spinner():lo(et)&&(dt=W[et](ft))),dt}var wt=ot=>{let{isRunning:et,preventExitTransition:ct,toastRef:ut,eventHandlers:dt,playToast:ft}=At(ot),{closeButton:zt,children:Dt,autoClose:St,onClick:Tt,type:Rt,hideProgressBar:$t,closeToast:kt,transition:Bt,position:Ft,className:jt,style:Kt,progressClassName:Yt,updateId:Ut,role:Jt,progress:Ht,rtl:e0,toastId:t0,deleteToast:Zt,isIn:o0,isLoading:n0,closeOnClick:r0,theme:a0,ariaLabel:u0}=ot,p0=clsx("Toastify__toast",`Toastify__toast-theme--${a0}`,`Toastify__toast--${Rt}`,{"Toastify__toast--rtl":e0},{"Toastify__toast--close-on-click":r0}),_0=P(jt)?jt({rtl:e0,position:Ft,type:Rt,defaultClassName:p0}):clsx(p0,jt),O0=Nt(ot),E0=!!Ht||!St,H0={closeToast:kt,type:Rt,theme:a0},I0=null;return zt===!1||(P(zt)?I0=zt(H0):reactExports.isValidElement(zt)?I0=reactExports.cloneElement(zt,H0):I0=yt(H0)),React$1.createElement(Bt,{isIn:o0,done:Zt,position:Ft,preventExitTransition:ct,nodeRef:ut,playToast:ft},React$1.createElement("div",{id:t0,tabIndex:0,onClick:Tt,"data-in":o0,className:_0,...dt,style:Kt,ref:ut,...o0&&{role:Jt,"aria-label":u0}},O0!=null&&React$1.createElement("div",{className:clsx("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!n0})},O0),tt(Dt,ot,!et),I0,!ot.customProgressBar&&React$1.createElement(gt,{...Ut&&!E0?{key:`p-${Ut}`}:{},rtl:e0,theme:a0,delay:St,isRunning:et,isIn:o0,closeToast:kt,hide:$t,type:Rt,className:Yt,controlledProgress:E0,progress:Ht||0})))},K=(ot,et=!1)=>({enter:`Toastify--animate Toastify__${ot}-enter`,exit:`Toastify--animate Toastify__${ot}-exit`,appendPosition:et}),lt=$(K("bounce",!0)),mo=$(K("slide",!0)),_o={position:"top-right",transition:lt,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light","aria-label":"Notifications Alt+T",hotKeys:ot=>ot.altKey&&ot.code==="KeyT"};function Lt(ot){let et={..._o,...ot},ct=ot.stacked,[ut,dt]=reactExports.useState(!0),ft=reactExports.useRef(null),{getToastToRender:zt,isToastActive:Dt,count:St}=It(et),{className:Tt,style:Rt,rtl:$t,containerId:kt,hotKeys:Bt}=et;function Ft(Kt){let Yt=clsx("Toastify__toast-container",`Toastify__toast-container--${Kt}`,{"Toastify__toast-container--rtl":$t});return P(Tt)?Tt({position:Kt,rtl:$t,defaultClassName:Yt}):clsx(Yt,B(Tt))}function jt(){ct&&(dt(!0),y.play())}return Ot(()=>{var Kt;if(ct){let Yt=ft.current.querySelectorAll('[data-in="true"]'),Ut=12,Jt=(Kt=et.position)==null?void 0:Kt.includes("top"),Ht=0,e0=0;Array.from(Yt).reverse().forEach((t0,Zt)=>{let o0=t0;o0.classList.add("Toastify__toast--stacked"),Zt>0&&(o0.dataset.collapsed=`${ut}`),o0.dataset.pos||(o0.dataset.pos=Jt?"top":"bot");let n0=Ht*(ut?.2:1)+(ut?0:Ut*Zt);o0.style.setProperty("--y",`${Jt?n0:n0*-1}px`),o0.style.setProperty("--g",`${Ut}`),o0.style.setProperty("--s",`${1-(ut?e0:0)}`),Ht+=o0.offsetHeight,e0+=.025})}},[ut,St,ct]),reactExports.useEffect(()=>{function Kt(Yt){var Ut;let Jt=ft.current;Bt(Yt)&&((Ut=Jt.querySelector('[tabIndex="0"]'))==null||Ut.focus(),dt(!1),y.pause()),Yt.key==="Escape"&&(document.activeElement===Jt||Jt!=null&&Jt.contains(document.activeElement))&&(dt(!0),y.play())}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[Bt]),React$1.createElement("section",{ref:ft,className:"Toastify",id:kt,onMouseEnter:()=>{ct&&(dt(!1),y.pause())},onMouseLeave:jt,"aria-live":"polite","aria-atomic":"false","aria-relevant":"additions text","aria-label":et["aria-label"]},zt((Kt,Yt)=>{let Ut=Yt.length?{...Rt}:{...Rt,pointerEvents:"none"};return React$1.createElement("div",{tabIndex:-1,className:Ft(Kt),"data-stacked":ct,style:Ut,key:`c-${Kt}`},Yt.map(({content:Jt,props:Ht})=>React$1.createElement(wt,{...Ht,stacked:ct,collapseAll:jt,isIn:Dt(Ht.toastId,Ht.containerId),key:`t-${Ht.key}`},Jt)))}))}function ErrorToastContent(ot){const et=ot;return jsxRuntimeExports.jsxs("div",{style:{width:"100%",padding:0},children:[jsxRuntimeExports.jsx("p",{children:et.message}),et.error&&jsxRuntimeExports.jsx("pre",{style:{width:"100%",padding:0,overflow:"scroll",maxHeight:300},children:jsxRuntimeExports.jsx("code",{style:{padding:"16px"},children:et.error.message})})]})}function makeToastKernelCallbacks(ot){const{disableProgressToasts:et=!1,disableErrorToasts:ct=!1}={};let ut=null;const dt=[];return{onProgress:ft=>{if(et)return;const zt=y(ft,{position:"bottom-right",transition:mo,isLoading:!0,hideProgressBar:!0,closeButton:!1});dt.push(zt),ut&&y.update(ut,{isLoading:!1,autoClose:3e3}),ut=zt},onLoad:()=>{dt.forEach(ft=>y.dismiss(ft))},onError:ft=>{ct||y(jsxRuntimeExports.jsx(ErrorToastContent,{message:"Error during booting up",error:ft}),{position:"bottom-right",type:"error",autoClose:!1,closeOnClick:!1})}}}function isDarkTheme(){const ot=getDefaultTheme().name;return ot===AUTO_THEME_NAME?window.matchMedia("(prefers-color-scheme: dark)").matches:ot===darkTheme.name}function ToastContainer(){return jsxRuntimeExports.jsx(Lt,{style:{zIndex:999999},theme:isDarkTheme()?"dark":"light"})}const USE_NODEJS_WORKER=window.nodeJsWorkerAPI.USE_NODEJS_WORKER;class NodeJsWorkerMock{constructor(){this.onmessage=null,this.initializePromise=window.nodeJsWorkerAPI.initialize(),window.nodeJsWorkerAPI.onMessage(et=>{this.onmessage&&this.onmessage({data:et,ports:[]})})}postMessage(et,ct){this.initializePromise.then(()=>{const ut=ct?ct[0]:null,dt=ut&&(ft=>{ut.postMessage(ft)});window.nodeJsWorkerAPI.postMessage({data:et,onPortMessage:dt})})}terminate(){window.nodeJsWorkerAPI.terminate()}}let pyodideUrl;USE_NODEJS_WORKER||(pyodideUrl=window.location.href.split("/").slice(0,-1).join("/")+"/pyodide/pyodide.mjs");function App(){const[ot,et]=reactExports.useState();return reactExports.useEffect(()=>{let ct=!1,ut=null;return Promise.all([window.archivesAPI.readSitePackagesSnapshot(),window.archivesAPI.readPrebuiltPackageNames(),window.archivesAPI.readStreamlitAppDirectory()]).then(([dt,ft,zt])=>{if(ct)return;const Dt={};Object.keys(zt).forEach(St=>{const Tt=zt[St];Dt[St]={data:Tt}}),ut=new StliteKernel({entrypoint:window.appConfig.entrypoint,files:Dt,archives:[{buffer:dt,format:"gztar",options:{extractDir:"/"}}],requirements:[],prebuiltPackageNames:ft,pyodideUrl,wheelUrls:void 0,idbfsMountpoints:window.appConfig.idbfsMountpoints,worker:USE_NODEJS_WORKER?new NodeJsWorkerMock:void 0,workerType:"module",...makeToastKernelCallbacks()}),et(ut)}),()=>{ct=!0,ut&&ut.dispose()}},[]),ot?jsxRuntimeExports.jsx(StreamlitApp,{kernel:ot}):null}ReactDOM.render(jsxRuntimeExports.jsxs(React$1.StrictMode,{children:[jsxRuntimeExports.jsx(App,{}),jsxRuntimeExports.jsx(ToastContainer,{})]}),document.getElementById("root"))})();export{isEqual$1 as $,toString$9 as A,isNullOrUndefined$1 as B,merge$6 as C,numbro$1 as D,EmotionIconBase as E,notNullOrUndefined as F,hooks as G,formatPeriodType as H,moment$1 as I,getTypeName as J,format as K,convertToSeconds as L,useTheme as M,Arrow$2 as N,logError as O,PortalContext as P,transparentize as Q,React$1 as R,convertRemToPx as S,logWarning as T,_defineProperty$u as U,_objectWithoutProperties$o as V,_typeof$g as W,jsx as X,css$2 as Y,_toConsumableArray$3 as Z,_extends$Q as _,__tla,range$1 as a,labelVisibilityProtoValueToEnum as a$,Popover$1 as a0,StyledTooltipContentWrapper as a1,StreamlitMarkdown$1 as a2,PLACEMENT as a3,ACCESSIBILITY_TYPE as a4,hasLightBackgroundColor as a5,LibContext as a6,debounce$4 as a7,Resizable as a8,IndexTypeName as a9,getAugmentedNamespace as aA,DEFAULT_IFRAME_FEATURE_POLICY as aB,DEFAULT_IFRAME_SANDBOX_POLICY as aC,useStliteMediaObjects as aD,darken as aE,BaseButtonSize as aF,BaseButtonKind as aG,BaseButtonTooltip as aH,DynamicButtonLabel as aI,IsSidebarContext as aJ,Placement as aK,getGray90 as aL,getIncreasingGreen as aM,getDecreasingRed as aN,PlotlyChart$1 as aO,keysToSnakeCase as aP,WindowDimensionsContext as aQ,Video$1 as aR,zip$1 as aS,FileUploaderState as aT,UploadedFileInfo as aU,StyledSpinner as aV,ENABLE_PERIPHERALS_DOCS_URL as aW,BaseButton as aX,Icon$2 as aY,blend as aZ,WidgetLabel as a_,_baseMerge as aa,_createAssigner as ab,getGray70 as ac,getGray30 as ad,getCategoricalColorsArray as ae,getDivergingColorsArray as af,getSequentialColorsArray as ag,getBlue80 as ah,Global as ai,ensureError as aj,withTheme as ak,DynamicIcon as al,toaster as am,AlertElement as an,Kind as ao,_assertThisInitialized$e as ap,ErrorElement as aq,StyledInlineCode as ar,axios as as,Skeleton as at,Skeleton$1 as au,hoistNonReactStatics$2 as av,lib$3 as aw,parseToRgba as ax,DeckGlJsonChart$1 as ay,_unsupportedIterableToArray$l as az,reactDomExports as b,TextInput$1 as b$,TooltipIcon as b0,Tooltip as b1,styled as b2,getOverrides as b3,LocaleContext as b4,ButtonGroup$1 as b5,LabelVisibilityMessage as b6,StyledWidgetLabelHelpInline as b7,useStliteKernel as b8,themeColors as b9,isPresetTheme as bA,classNames as bB,isValidFormId as bC,toPropertyKey as bD,_setPrototypeOf$e as bE,hexToRgb as bF,withWrapper as bG,StyledWidgetInstructions as bH,isFromMac as bI,SIZE$1 as bJ,CUSTOM_INPUT_TYPE as bK,DeleteAlt$1 as bL,ADJOINED as bM,filterOptions as bN,ENHANCER_POSITION as bO,UISelectbox as bP,pick$1 as bQ,Slider$2 as bR,isFromWindows as bS,__awaiter as bT,__generator as bU,__spread as bV,PropTypes as bW,ChevronLeft as bX,ChevronRight as bY,isInForm as bZ,toString_1 as b_,isMobile_1 as ba,CAMERA_PERMISSION_URL as bb,StyledWidgetLabelHelp as bc,isFocusVisible as bd,getOverride as be,getOverrideProps as bf,StyledCheckbox$1 as bg,Checkbox$1 as bh,StyledContent as bi,BaseColorPicker as bj,useStyletron as bk,mergeOverride as bl,toObjectOverride as bm,Icon$1 as bn,UIDConsumer as bo,StatefulMenu as bp,mergeOverrides as bq,ChevronDown$1 as br,ThemeContext as bs,forkFocus as bt,forkBlur as bu,Select as bv,without$1 as bw,fuzzyFilterSelectOptions as bx,TYPE as by,VirtualDropdown as bz,createStyled as c,ThemeProvider$1 as c0,createThemedStyled as c1,createThemedUseStyletron as c2,createThemedWithStyle as c3,expandBorderStyles as c4,withStyle as c5,reactIsExports$1 as c6,NumberInput$1 as c7,_hasPath as d,commonjsGlobal$1 as e,classnamesExports as f,getDefaultExportFromCjs$1 as g,_root as h,isPropValid as i,jsxRuntimeExports as j,keyframes as k,isObject_1 as l,_Set as m,_setToArray as n,_SetCache as o,propTypesExports as p,_arrayIncludes as q,reactExports as r,_arrayIncludesWith as s,toNumber_1 as t,useStliteMediaObjectUrl as u,_cacheHas as v,groupBy$1 as w,__vitePreload as x,flatten$2 as y,require$$0$1 as z};
|