streamlit-nightly 1.53.2.dev20260203__py3-none-any.whl → 1.54.1.dev20260204__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit/elements/arrow.py +66 -26
- streamlit/elements/lib/built_in_chart_utils.py +1 -1
- streamlit/elements/lib/column_config_utils.py +4 -4
- streamlit/elements/lib/options_selector_utils.py +4 -0
- streamlit/elements/lib/pandas_styler_utils.py +22 -22
- streamlit/elements/widgets/button_group.py +221 -86
- streamlit/elements/widgets/data_editor.py +9 -9
- streamlit/elements/widgets/radio.py +8 -4
- streamlit/hello/dataframe_demo.py +1 -1
- streamlit/proto/ArrowData_pb2.py +5 -3
- streamlit/proto/ArrowData_pb2.pyi +44 -4
- streamlit/proto/ArrowNamedDataSet_pb2.py +4 -4
- streamlit/proto/ArrowNamedDataSet_pb2.pyi +3 -3
- streamlit/proto/ArrowVegaLiteChart_pb2.py +4 -4
- streamlit/proto/ArrowVegaLiteChart_pb2.pyi +3 -3
- streamlit/proto/ButtonGroup_pb2.py +8 -8
- streamlit/proto/ButtonGroup_pb2.pyi +9 -7
- streamlit/proto/Dataframe_pb2.py +31 -0
- streamlit/proto/{Arrow_pb2.pyi → Dataframe_pb2.pyi} +39 -102
- streamlit/proto/Element_pb2.py +5 -4
- streamlit/proto/Element_pb2.pyi +11 -10
- streamlit/proto/Table_pb2.py +29 -0
- streamlit/proto/Table_pb2.pyi +83 -0
- streamlit/static/index.html +1 -1
- streamlit/static/manifest.json +308 -308
- streamlit/static/static/js/{ErrorOutline.esm.C9uHPmIj.js → ErrorOutline.esm.DWBqsdHn.js} +1 -1
- streamlit/static/static/js/{FileDownload.esm.D-YPxF3t.js → FileDownload.esm.D5koxJhf.js} +1 -1
- streamlit/static/static/js/{FileHelper.DQSH0zYW.js → FileHelper.kJKftfu4.js} +5 -5
- streamlit/static/static/js/{FormClearHelper.DQoXcOWo.js → FormClearHelper.CyGGPn10.js} +1 -1
- streamlit/static/static/js/{InputInstructions.C7VMyGT7.js → InputInstructions.oezYb8Lm.js} +1 -1
- streamlit/static/static/js/{Particles.BdQSRZde.js → Particles.BIpBmEwi.js} +1 -1
- streamlit/static/static/js/{ProgressBar.DNF_pWKr.js → ProgressBar.BRAS_FJc.js} +1 -1
- streamlit/static/static/js/{StreamlitSyntaxHighlighter.Cys9Bt18.js → StreamlitSyntaxHighlighter.c2qcx-xG.js} +1 -1
- streamlit/static/static/js/{TableChart.esm.B9SMgSK4.js → TableChart.esm.BuemQLVW.js} +1 -1
- streamlit/static/static/js/{Toolbar.BXfC9Z-W.js → Toolbar.mUe2Nmta.js} +1 -1
- streamlit/static/static/js/{WidgetLabelHelpIconInline.gkreC55g.js → WidgetLabelHelpIconInline.if89y2mu.js} +1 -1
- streamlit/static/static/js/{base-input.iB32RS3w.js → base-input.AJ4KxBTh.js} +1 -1
- streamlit/static/static/js/{checkbox.Bqz68SYq.js → checkbox.GY4JoJkM.js} +1 -1
- streamlit/static/static/js/{createDownloadLinkElement.YxVC9Qur.js → createDownloadLinkElement.BWJh90jh.js} +1 -1
- streamlit/static/static/js/{data-grid-overlay-editor.sBsdk5Xg.js → data-grid-overlay-editor.C9AINtRf.js} +1 -1
- streamlit/static/static/js/{downloader.Bzxqt3AW.js → downloader.BZY8OE4f.js} +1 -1
- streamlit/static/static/js/{embed.CDzakah3.js → embed.BjO7Ez0y.js} +1 -1
- streamlit/static/static/js/{es6.CxCc4bfn.js → es6.eb5oR8iN.js} +2 -2
- streamlit/static/static/js/{formatNumber.L8T7D36k.js → formatNumber.CCeQsvJQ.js} +1 -1
- streamlit/static/static/js/{iconPosition.C47DkA-1.js → iconPosition.D6eEnKvO.js} +1 -1
- streamlit/static/static/js/{iframeResizer.contentWindow.uEFLXEg3.js → iframeResizer.contentWindow.DTsWJRTo.js} +1 -1
- streamlit/static/static/js/{index.C6dhwBSe.js → index.B6l4FdUv.js} +1 -1
- streamlit/static/static/js/{index.BV_YgIHe.js → index.B7H2q9vo.js} +2 -2
- streamlit/static/static/js/{index.DjgdCvlK.js → index.BDdmrM58.js} +1 -1
- streamlit/static/static/js/{index.CAbQaUvi.js → index.BMbQnwRD.js} +1 -1
- streamlit/static/static/js/{index.CCLteRW6.js → index.BQ5MOzHu.js} +1 -1
- streamlit/static/static/js/{index.CzwJzgQs.js → index.BSgo_bkv.js} +1 -1
- streamlit/static/static/js/{index.B60AZFRh.js → index.BU5M9DsN.js} +1 -1
- streamlit/static/static/js/{index.BVTW_o-a.js → index.BYIxnU34.js} +1 -1
- streamlit/static/static/js/{index.DqhZqWYB.js → index.BZL2hIBz.js} +1 -1
- streamlit/static/static/js/{index.CAbafj7s.js → index.BZVrJlnq.js} +1 -1
- streamlit/static/static/js/{index.Ck0ZkOfK.js → index.Bd7QK46M.js} +1 -1
- streamlit/static/static/js/{index.BzdcdLDK.js → index.BfHA_i34.js} +1 -1
- streamlit/static/static/js/{index.kBgXO7Vv.js → index.Bgry-Ek_.js} +1 -1
- streamlit/static/static/js/{index.aZRhdEuX.js → index.Bi25zaXA.js} +1 -1
- streamlit/static/static/js/{index.QXukCzoh.js → index.Bj3M1xBC.js} +1 -1
- streamlit/static/static/js/{index.Bnwh8oZr.js → index.Bjrvlqx5.js} +6 -6
- streamlit/static/static/js/{index.h2N-W51I.js → index.BnOSeM5K.js} +1 -1
- streamlit/static/static/js/index.BoL6J1jK.js +2 -0
- streamlit/static/static/js/{index.BwvxzVOo.js → index.BoORyxOa.js} +1 -1
- streamlit/static/static/js/{index.Ba8L-ulI.js → index.Bpd7GPeH.js} +1 -1
- streamlit/static/static/js/{index.BG4RxMOI.js → index.BpeJX018.js} +1 -1
- streamlit/static/static/js/index.BriH7JVk.js +2 -0
- streamlit/static/static/js/{index.DO55kRo5.js → index.BwkeObMo.js} +1 -1
- streamlit/static/static/js/{index.C1d2QjTR.js → index.C0o85qmd.js} +1 -1
- streamlit/static/static/js/{index.D7L9gHlE.js → index.C7_wNJTH.js} +1 -1
- streamlit/static/static/js/{index.BwTkGOAy.js → index.CGZP_w9b.js} +1 -1
- streamlit/static/static/js/{index.CjBDVb1a.js → index.CGw52-0-.js} +1 -1
- streamlit/static/static/js/{index.D_cvtSlg.js → index.CUvtJj0a.js} +1 -1
- streamlit/static/static/js/{index.Dtbj_oyb.js → index.Cfx1ZHWt.js} +1 -1
- streamlit/static/static/js/{index.BvHsyiyy.js → index.Chl2kALe.js} +1 -1
- streamlit/static/static/js/index.Crlx_wdE.js +1 -0
- streamlit/static/static/js/{index.B_LfkwqU.js → index.D9A-8ebQ.js} +1 -1
- streamlit/static/static/js/{index.BHyzKS4e.js → index.DBIoNOen.js} +7 -7
- streamlit/static/static/js/{index.DgqmsDCJ.js → index.DMKTAe4F.js} +1 -1
- streamlit/static/static/js/{index.DEKnCsY-.js → index.DNrpqKVt.js} +1 -1
- streamlit/static/static/js/{index.BsrhCS7f.js → index.DSRvF_8e.js} +1 -1
- streamlit/static/static/js/{index.DN_oudQl.js → index.DhB1m_xG.js} +1 -1
- streamlit/static/static/js/{index.XJY9qZ6a.js → index.DiES30vM.js} +1 -1
- streamlit/static/static/js/{index.DHrByikW.js → index.DlJ4Y1xc.js} +1 -1
- streamlit/static/static/js/{index.C5-TpWis.js → index.J61yByUR.js} +1 -1
- streamlit/static/static/js/{index.iUHLeAvv.js → index.JxDTXE8N.js} +1 -1
- streamlit/static/static/js/{index.C1uZrWog.js → index.KGr28TP8.js} +1 -1
- streamlit/static/static/js/{index.BuJPJSD7.js → index.Pgm3rRpH.js} +1 -1
- streamlit/static/static/js/{index.fUsWkW8E.js → index.XzcYOc9I.js} +1 -1
- streamlit/static/static/js/{index.CQ713nQM.js → index.Z_u7ZS4h.js} +1 -1
- streamlit/static/static/js/{index.D-9VyyiA.js → index.hDg7x0Tp.js} +1 -1
- streamlit/static/static/js/{index.D2R3Co5f.js → index.k7p0hmaU.js} +1 -1
- streamlit/static/static/js/{index.Bh5BZaHG.js → index.syoxWolF.js} +1 -1
- streamlit/static/static/js/{index.kEL0HsUR.js → index.xZ651bTg.js} +1 -1
- streamlit/static/static/js/{input.BCHJn1Cw.js → input.C-PwAMG6.js} +1 -1
- streamlit/static/static/js/{main.23ZP6f1E.js → main.fMmyxXOf.js} +1 -1
- streamlit/static/static/js/{memory.D8f8Q4mO.js → memory.BG__eDEj.js} +1 -1
- streamlit/static/static/js/{number-overlay-editor.ZWvSpjJ5.js → number-overlay-editor.C0n-91sR.js} +1 -1
- streamlit/static/static/js/{pandasStylerUtils.DlZ2GBs_.js → pandasStylerUtils.BqWaUzvh.js} +1 -1
- streamlit/static/static/js/{sandbox.BH6D3KL9.js → sandbox.CHhc-txg.js} +1 -1
- streamlit/static/static/js/{sprintfjs.CtrdaGLQ.js → sprintfjs.BlFBKfMf.js} +1 -1
- streamlit/static/static/js/{styled-components.iD1HRMLc.js → styled-components.D5uOQqN2.js} +1 -1
- streamlit/static/static/js/{throttle.DR7d9vp_.js → throttle.DlZC3xNA.js} +1 -1
- streamlit/static/static/js/{timepicker.Bd34xjcG.js → timepicker._TfRUaDL.js} +1 -1
- streamlit/static/static/js/{toConsumableArray.BDTTq1c5.js → toConsumableArray.CZW4AmuW.js} +1 -1
- streamlit/static/static/js/uniqueId.CTTDAAaF.js +1 -0
- streamlit/static/static/js/{useBasicWidgetState.BXKaD8DQ.js → useBasicWidgetState.Bx27912z.js} +1 -1
- streamlit/static/static/js/{useIntlLocale.CysOvegI.js → useIntlLocale.DsOvysl7.js} +1 -1
- streamlit/static/static/js/{useTextInputAutoExpand.CVd5Hf2S.js → useTextInputAutoExpand.C9g8px1W.js} +1 -1
- streamlit/static/static/js/{useUpdateUiValue.CIUgfO8X.js → useUpdateUiValue.fF-Cntkp.js} +1 -1
- streamlit/static/static/js/{useWaveformController.CDLqlnLv.js → useWaveformController.C5EtFoJE.js} +1 -1
- streamlit/static/static/js/{withCalculatedWidth.Ce1Zblb2.js → withCalculatedWidth.CcvaXQb0.js} +1 -1
- streamlit/static/static/js/{withFullScreenWrapper.DBm7N75M.js → withFullScreenWrapper.DP61hzLF.js} +1 -1
- streamlit/testing/v1/element_tree.py +20 -15
- streamlit/web/server/routes.py +14 -0
- streamlit/web/server/server.py +4 -0
- {streamlit_nightly-1.53.2.dev20260203.dist-info → streamlit_nightly-1.54.1.dev20260204.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.53.2.dev20260203.dist-info → streamlit_nightly-1.54.1.dev20260204.dist-info}/RECORD +122 -120
- streamlit/proto/Arrow_pb2.py +0 -34
- streamlit/static/static/js/index.B3zULhHv.js +0 -1
- streamlit/static/static/js/index.BrZtYm2A.js +0 -2
- streamlit/static/static/js/index.CcBYyLfq.js +0 -2
- streamlit/static/static/js/uniqueId.Bd_Iuzvc.js +0 -1
- {streamlit_nightly-1.53.2.dev20260203.dist-info → streamlit_nightly-1.54.1.dev20260204.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.53.2.dev20260203.dist-info → streamlit_nightly-1.54.1.dev20260204.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.53.2.dev20260203.dist-info → streamlit_nightly-1.54.1.dev20260204.dist-info}/top_level.txt +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./index.syoxWolF.js","./index.bsVAaBS1.js","./index.Bd7QK46M.js","./index.Pgm3rRpH.js","./index.xZ651bTg.js","./index.k7p0hmaU.js","./StreamlitSyntaxHighlighter.c2qcx-xG.js","./index.Crlx_wdE.js","./pandasStylerUtils.BqWaUzvh.js","./moment.C7qA8nIE.js","./numbro.B9_PXfzp.js","./_baseIndexOf.BTknn6Gb.js","./index.KGr28TP8.js","./withFullScreenWrapper.DP61hzLF.js","./Toolbar.mUe2Nmta.js","./index.Bjrvlqx5.js","./FormClearHelper.CyGGPn10.js","./index.8HslT92O.js","./main.fMmyxXOf.js","./throttle.DlZC3xNA.js","./toConsumableArray.CZW4AmuW.js","./formatNumber.CCeQsvJQ.js","./sprintfjs.BlFBKfMf.js","./formatMoment.C6Hwn6X5.js","./checkbox.GY4JoJkM.js","./createDownloadLinkElement.BWJh90jh.js","./FileDownload.esm.D5koxJhf.js","./_arrayIncludes.B19Iyn2B.js","../css/index.DgR7E2CV.css","./embed.BjO7Ez0y.js","./threshold.CUNQbqMA.js","./value.DaKxGC7O.js","./timer.BZio6gjG.js","./TableChart.esm.BuemQLVW.js","./index.DMKTAe4F.js","./Particles.BIpBmEwi.js","./index.hDg7x0Tp.js","./useBasicWidgetState.Bx27912z.js","../css/index.BuwrT-ty.css","./index.XzcYOc9I.js","./index.BSgo_bkv.js","./IFrameUtil.DefezniK.js","./index.Z_u7ZS4h.js","./index.CGZP_w9b.js","./index.DiES30vM.js","./iconPosition.D6eEnKvO.js","./index.JxDTXE8N.js","./WidgetLabelHelpIconInline.if89y2mu.js","./index.BQ5MOzHu.js","./index.BMbQnwRD.js","./index.BDdmrM58.js","./ProgressBar.BRAS_FJc.js","./index.J61yByUR.js","./index.BwkeObMo.js","./useWaveformController.C5EtFoJE.js","./urls.BwSlolu9.js","./index.Bpd7GPeH.js","./index.BoL6J1jK.js","./index.BnOSeM5K.js","./withCalculatedWidth.CcvaXQb0.js","./index.BZVrJlnq.js","./UploadFileInfo.Dr-zDST7.js","./index.CGw52-0-.js","./FileHelper.kJKftfu4.js","./InputInstructions.oezYb8Lm.js","./useTextInputAutoExpand.C9g8px1W.js","./base-input.AJ4KxBTh.js","./inputUtils.CptNuJwn.js","./ErrorOutline.esm.DWBqsdHn.js","./index.BZL2hIBz.js","./index.C7_wNJTH.js","./index.DlJ4Y1xc.js","./useIntlLocale.DsOvysl7.js","./timepicker._TfRUaDL.js","./input.C-PwAMG6.js","./index.B6l4FdUv.js","./styled-components.D5uOQqN2.js","./index.C0o85qmd.js","./index.DSRvF_8e.js","./index.BoORyxOa.js","./index.CUvtJj0a.js","./index.Bi25zaXA.js","./index.DhB1m_xG.js","./uniqueId.CTTDAAaF.js","./index.B7H2q9vo.js","./index.BpeJX018.js","./index.D9A-8ebQ.js","./index.Cfx1ZHWt.js","./useUpdateUiValue.fF-Cntkp.js","./index.Bgry-Ek_.js","./index.BU5M9DsN.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
function _mergeNamespaces(n,i){for(var e=0;e<i.length;e++){const t=i[e];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in n)){const d=Object.getOwnPropertyDescriptor(t,o);d&&Object.defineProperty(n,o,d.get?d:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))t(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const p of d.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&t(p)}).observe(document,{childList:!0,subtree:!0});function e(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function t(o){if(o.ep)return;o.ep=!0;const d=e(o);fetch(o.href,d)}})();var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function getAugmentedNamespace(n){if(Object.prototype.hasOwnProperty.call(n,"__esModule"))return n;var i=n.default;if(typeof i=="function"){var e=function t(){var o=!1;try{o=this instanceof t}catch{}return o?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};e.prototype=i.prototype}else e={};return Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(n).forEach(function(t){var o=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,o.get?o:{enumerable:!0,get:function(){return n[t]}})}),e}var jsxRuntime={exports:{}},reactJsxRuntime_production_min={},react={exports:{}},react_production_min={};var hasRequiredReact_production_min;function requireReact_production_min(){if(hasRequiredReact_production_min)return react_production_min;hasRequiredReact_production_min=1;var n=Symbol.for("react.element"),i=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),t=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),$=Symbol.for("react.memo"),E=Symbol.for("react.lazy"),M=Symbol.iterator;function H(Ge){return Ge===null||typeof Ge!="object"?null:(Ge=M&&Ge[M]||Ge["@@iterator"],typeof Ge=="function"?Ge:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},be=Object.assign,ye={};function we(Ge,tt,Ue){this.props=Ge,this.context=tt,this.refs=ye,this.updater=Ue||Z}we.prototype.isReactComponent={},we.prototype.setState=function(Ge,tt){if(typeof Ge!="object"&&typeof Ge!="function"&&Ge!=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,Ge,tt,"setState")},we.prototype.forceUpdate=function(Ge){this.updater.enqueueForceUpdate(this,Ge,"forceUpdate")};function Ce(){}Ce.prototype=we.prototype;function xe(Ge,tt,Ue){this.props=Ge,this.context=tt,this.refs=ye,this.updater=Ue||Z}var Ne=xe.prototype=new Ce;Ne.constructor=xe,be(Ne,we.prototype),Ne.isPureReactComponent=!0;var Fe=Array.isArray,Le=Object.prototype.hasOwnProperty,Me={current:null},Ve={key:!0,ref:!0,__self:!0,__source:!0};function Ke(Ge,tt,Ue){var Ot,xt={},ut=null,ht=null;if(tt!=null)for(Ot in tt.ref!==void 0&&(ht=tt.ref),tt.key!==void 0&&(ut=""+tt.key),tt)Le.call(tt,Ot)&&!Ve.hasOwnProperty(Ot)&&(xt[Ot]=tt[Ot]);var wt=arguments.length-2;if(wt===1)xt.children=Ue;else if(1<wt){for(var Et=Array(wt),Tt=0;Tt<wt;Tt++)Et[Tt]=arguments[Tt+2];xt.children=Et}if(Ge&&Ge.defaultProps)for(Ot in wt=Ge.defaultProps,wt)xt[Ot]===void 0&&(xt[Ot]=wt[Ot]);return{$$typeof:n,type:Ge,key:ut,ref:ht,props:xt,_owner:Me.current}}function ze(Ge,tt){return{$$typeof:n,type:Ge.type,key:tt,ref:Ge.ref,props:Ge.props,_owner:Ge._owner}}function je(Ge){return typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===n}function We(Ge){var tt={"=":"=0",":":"=2"};return"$"+Ge.replace(/[=:]/g,function(Ue){return tt[Ue]})}var Xe=/\/+/g;function Qe(Ge,tt){return typeof Ge=="object"&&Ge!==null&&Ge.key!=null?We(""+Ge.key):tt.toString(36)}function Ye(Ge,tt,Ue,Ot,xt){var ut=typeof Ge;(ut==="undefined"||ut==="boolean")&&(Ge=null);var ht=!1;if(Ge===null)ht=!0;else switch(ut){case"string":case"number":ht=!0;break;case"object":switch(Ge.$$typeof){case n:case i:ht=!0}}if(ht)return ht=Ge,xt=xt(ht),Ge=Ot===""?"."+Qe(ht,0):Ot,Fe(xt)?(Ue="",Ge!=null&&(Ue=Ge.replace(Xe,"$&/")+"/"),Ye(xt,tt,Ue,"",function(Tt){return Tt})):xt!=null&&(je(xt)&&(xt=ze(xt,Ue+(!xt.key||ht&&ht.key===xt.key?"":(""+xt.key).replace(Xe,"$&/")+"/")+Ge)),tt.push(xt)),1;if(ht=0,Ot=Ot===""?".":Ot+":",Fe(Ge))for(var wt=0;wt<Ge.length;wt++){ut=Ge[wt];var Et=Ot+Qe(ut,wt);ht+=Ye(ut,tt,Ue,Et,xt)}else if(Et=H(Ge),typeof Et=="function")for(Ge=Et.call(Ge),wt=0;!(ut=Ge.next()).done;)ut=ut.value,Et=Ot+Qe(ut,wt++),ht+=Ye(ut,tt,Ue,Et,xt);else if(ut==="object")throw tt=String(Ge),Error("Objects are not valid as a React child (found: "+(tt==="[object Object]"?"object with keys {"+Object.keys(Ge).join(", ")+"}":tt)+"). If you meant to render a collection of children, use an array instead.");return ht}function He(Ge,tt,Ue){if(Ge==null)return Ge;var Ot=[],xt=0;return Ye(Ge,Ot,"","",function(ut){return tt.call(Ue,ut,xt++)}),Ot}function rt(Ge){if(Ge._status===-1){var tt=Ge._result;tt=tt(),tt.then(function(Ue){(Ge._status===0||Ge._status===-1)&&(Ge._status=1,Ge._result=Ue)},function(Ue){(Ge._status===0||Ge._status===-1)&&(Ge._status=2,Ge._result=Ue)}),Ge._status===-1&&(Ge._status=0,Ge._result=tt)}if(Ge._status===1)return Ge._result.default;throw Ge._result}var ft={current:null},ot={transition:null},pt={ReactCurrentDispatcher:ft,ReactCurrentBatchConfig:ot,ReactCurrentOwner:Me};function Be(){throw Error("act(...) is not supported in production builds of React.")}return react_production_min.Children={map:He,forEach:function(Ge,tt,Ue){He(Ge,function(){tt.apply(this,arguments)},Ue)},count:function(Ge){var tt=0;return He(Ge,function(){tt++}),tt},toArray:function(Ge){return He(Ge,function(tt){return tt})||[]},only:function(Ge){if(!je(Ge))throw Error("React.Children.only expected to receive a single React element child.");return Ge}},react_production_min.Component=we,react_production_min.Fragment=e,react_production_min.Profiler=o,react_production_min.PureComponent=xe,react_production_min.StrictMode=t,react_production_min.Suspense=y,react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pt,react_production_min.act=Be,react_production_min.cloneElement=function(Ge,tt,Ue){if(Ge==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Ge+".");var Ot=be({},Ge.props),xt=Ge.key,ut=Ge.ref,ht=Ge._owner;if(tt!=null){if(tt.ref!==void 0&&(ut=tt.ref,ht=Me.current),tt.key!==void 0&&(xt=""+tt.key),Ge.type&&Ge.type.defaultProps)var wt=Ge.type.defaultProps;for(Et in tt)Le.call(tt,Et)&&!Ve.hasOwnProperty(Et)&&(Ot[Et]=tt[Et]===void 0&&wt!==void 0?wt[Et]:tt[Et])}var Et=arguments.length-2;if(Et===1)Ot.children=Ue;else if(1<Et){wt=Array(Et);for(var Tt=0;Tt<Et;Tt++)wt[Tt]=arguments[Tt+2];Ot.children=wt}return{$$typeof:n,type:Ge.type,key:xt,ref:ut,props:Ot,_owner:ht}},react_production_min.createContext=function(Ge){return Ge={$$typeof:p,_currentValue:Ge,_currentValue2:Ge,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Ge.Provider={$$typeof:d,_context:Ge},Ge.Consumer=Ge},react_production_min.createElement=Ke,react_production_min.createFactory=function(Ge){var tt=Ke.bind(null,Ge);return tt.type=Ge,tt},react_production_min.createRef=function(){return{current:null}},react_production_min.forwardRef=function(Ge){return{$$typeof:h,render:Ge}},react_production_min.isValidElement=je,react_production_min.lazy=function(Ge){return{$$typeof:E,_payload:{_status:-1,_result:Ge},_init:rt}},react_production_min.memo=function(Ge,tt){return{$$typeof:$,type:Ge,compare:tt===void 0?null:tt}},react_production_min.startTransition=function(Ge){var tt=ot.transition;ot.transition={};try{Ge()}finally{ot.transition=tt}},react_production_min.unstable_act=Be,react_production_min.useCallback=function(Ge,tt){return ft.current.useCallback(Ge,tt)},react_production_min.useContext=function(Ge){return ft.current.useContext(Ge)},react_production_min.useDebugValue=function(){},react_production_min.useDeferredValue=function(Ge){return ft.current.useDeferredValue(Ge)},react_production_min.useEffect=function(Ge,tt){return ft.current.useEffect(Ge,tt)},react_production_min.useId=function(){return ft.current.useId()},react_production_min.useImperativeHandle=function(Ge,tt,Ue){return ft.current.useImperativeHandle(Ge,tt,Ue)},react_production_min.useInsertionEffect=function(Ge,tt){return ft.current.useInsertionEffect(Ge,tt)},react_production_min.useLayoutEffect=function(Ge,tt){return ft.current.useLayoutEffect(Ge,tt)},react_production_min.useMemo=function(Ge,tt){return ft.current.useMemo(Ge,tt)},react_production_min.useReducer=function(Ge,tt,Ue){return ft.current.useReducer(Ge,tt,Ue)},react_production_min.useRef=function(Ge){return ft.current.useRef(Ge)},react_production_min.useState=function(Ge){return ft.current.useState(Ge)},react_production_min.useSyncExternalStore=function(Ge,tt,Ue){return ft.current.useSyncExternalStore(Ge,tt,Ue)},react_production_min.useTransition=function(){return ft.current.useTransition()},react_production_min.version="18.3.1",react_production_min}var hasRequiredReact;function requireReact(){return hasRequiredReact||(hasRequiredReact=1,react.exports=requireReact_production_min()),react.exports}var hasRequiredReactJsxRuntime_production_min;function requireReactJsxRuntime_production_min(){if(hasRequiredReactJsxRuntime_production_min)return reactJsxRuntime_production_min;hasRequiredReactJsxRuntime_production_min=1;var n=requireReact(),i=Symbol.for("react.element"),e=Symbol.for("react.fragment"),t=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,d={key:!0,ref:!0,__self:!0,__source:!0};function p(h,y,$){var E,M={},H=null,Z=null;$!==void 0&&(H=""+$),y.key!==void 0&&(H=""+y.key),y.ref!==void 0&&(Z=y.ref);for(E in y)t.call(y,E)&&!d.hasOwnProperty(E)&&(M[E]=y[E]);if(h&&h.defaultProps)for(E in y=h.defaultProps,y)M[E]===void 0&&(M[E]=y[E]);return{$$typeof:i,type:h,key:H,ref:Z,props:M,_owner:o.current}}return reactJsxRuntime_production_min.Fragment=e,reactJsxRuntime_production_min.jsx=p,reactJsxRuntime_production_min.jsxs=p,reactJsxRuntime_production_min}var hasRequiredJsxRuntime;function requireJsxRuntime(){return hasRequiredJsxRuntime||(hasRequiredJsxRuntime=1,jsxRuntime.exports=requireReactJsxRuntime_production_min()),jsxRuntime.exports}var jsxRuntimeExports=requireJsxRuntime(),reactExports=requireReact();const React=getDefaultExportFromCjs(reactExports),React$1=_mergeNamespaces({__proto__:null,default:React},[reactExports]);function sheetForTag(n){if(n.sheet)return n.sheet;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].ownerNode===n)return document.styleSheets[i]}function createStyleElement(n){var i=document.createElement("style");return i.setAttribute("data-emotion",n.key),n.nonce!==void 0&&i.setAttribute("nonce",n.nonce),i.appendChild(document.createTextNode("")),i.setAttribute("data-s",""),i}var StyleSheet=(function(){function n(e){var t=this;this._insertTag=function(o){var d;t.tags.length===0?t.insertionPoint?d=t.insertionPoint.nextSibling:t.prepend?d=t.container.firstChild:d=t.before:d=t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(o,d),t.tags.push(o)},this.isSpeedy=e.speedy===void 0?!0:e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var i=n.prototype;return i.hydrate=function(t){t.forEach(this._insertTag)},i.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(createStyleElement(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var d=sheetForTag(o);try{d.insertRule(t,d.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(t));this.ctr++},i.flush=function(){this.tags.forEach(function(t){var o;return(o=t.parentNode)==null?void 0:o.removeChild(t)}),this.tags=[],this.ctr=0},n})(),MS="-ms-",MOZ="-moz-",WEBKIT="-webkit-",COMMENT="comm",RULESET="rule",DECLARATION="decl",IMPORT="@import",KEYFRAMES="@keyframes",LAYER="@layer",abs=Math.abs,from=String.fromCharCode,assign$1=Object.assign;function hash$1(n,i){return charat(n,0)^45?(((i<<2^charat(n,0))<<2^charat(n,1))<<2^charat(n,2))<<2^charat(n,3):0}function trim(n){return n.trim()}function match(n,i){return(n=i.exec(n))?n[0]:n}function replace$1(n,i,e){return n.replace(i,e)}function indexof(n,i){return n.indexOf(i)}function charat(n,i){return n.charCodeAt(i)|0}function substr(n,i,e){return n.slice(i,e)}function strlen(n){return n.length}function sizeof(n){return n.length}function append(n,i){return i.push(n),n}function combine(n,i){return n.map(i).join("")}var line=1,column=1,length=0,position$3=0,character=0,characters="";function node$1(n,i,e,t,o,d,p){return{value:n,root:i,parent:e,type:t,props:o,children:d,line,column,length:p,return:""}}function copy(n,i){return assign$1(node$1("",null,null,"",null,null,0),n,{length:-n.length},i)}function char(){return character}function prev(){return character=position$3>0?charat(characters,--position$3):0,column--,character===10&&(column=1,line--),character}function next(){return character=position$3<length?charat(characters,position$3++):0,column++,character===10&&(column=1,line++),character}function peek$1(){return charat(characters,position$3)}function caret(){return position$3}function slice(n,i){return substr(characters,n,i)}function token$1(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function alloc(n){return line=column=1,length=strlen(characters=n),position$3=0,[]}function dealloc(n){return characters="",n}function delimit(n){return trim(slice(position$3-1,delimiter(n===91?n+2:n===40?n+1:n)))}function whitespace$1(n){for(;(character=peek$1())&&character<33;)next();return token$1(n)>2||token$1(character)>3?"":" "}function escaping(n,i){for(;--i&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(n,caret()+(i<6&&peek$1()==32&&next()==32))}function delimiter(n){for(;next();)switch(character){case n:return position$3;case 34:case 39:n!==34&&n!==39&&delimiter(character);break;case 40:n===41&&delimiter(n);break;case 92:next();break}return position$3}function commenter(n,i){for(;next()&&n+character!==57;)if(n+character===84&&peek$1()===47)break;return"/*"+slice(i,position$3-1)+"*"+from(n===47?n:next())}function identifier(n){for(;!token$1(peek$1());)next();return slice(n,position$3)}function compile(n){return dealloc(parse$4("",null,null,null,[""],n=alloc(n),0,[0],n))}function parse$4(n,i,e,t,o,d,p,h,y){for(var $=0,E=0,M=p,H=0,Z=0,be=0,ye=1,we=1,Ce=1,xe=0,Ne="",Fe=o,Le=d,Me=t,Ve=Ne;we;)switch(be=xe,xe=next()){case 40:if(be!=108&&charat(Ve,M-1)==58){indexof(Ve+=replace$1(delimit(xe),"&","&\f"),"&\f")!=-1&&(Ce=-1);break}case 34:case 39:case 91:Ve+=delimit(xe);break;case 9:case 10:case 13:case 32:Ve+=whitespace$1(be);break;case 92:Ve+=escaping(caret()-1,7);continue;case 47:switch(peek$1()){case 42:case 47:append(comment(commenter(next(),caret()),i,e),y);break;default:Ve+="/"}break;case 123*ye:h[$++]=strlen(Ve)*Ce;case 125*ye:case 59:case 0:switch(xe){case 0:case 125:we=0;case 59+E:Ce==-1&&(Ve=replace$1(Ve,/\f/g,"")),Z>0&&strlen(Ve)-M&&append(Z>32?declaration(Ve+";",t,e,M-1):declaration(replace$1(Ve," ","")+";",t,e,M-2),y);break;case 59:Ve+=";";default:if(append(Me=ruleset(Ve,i,e,$,E,o,h,Ne,Fe=[],Le=[],M),d),xe===123)if(E===0)parse$4(Ve,i,Me,Me,Fe,d,M,h,Le);else switch(H===99&&charat(Ve,3)===110?100:H){case 100:case 108:case 109:case 115:parse$4(n,Me,Me,t&&append(ruleset(n,Me,Me,0,0,o,h,Ne,o,Fe=[],M),Le),o,Le,M,h,t?Fe:Le);break;default:parse$4(Ve,Me,Me,Me,[""],Le,0,h,Le)}}$=E=Z=0,ye=Ce=1,Ne=Ve="",M=p;break;case 58:M=1+strlen(Ve),Z=be;default:if(ye<1){if(xe==123)--ye;else if(xe==125&&ye++==0&&prev()==125)continue}switch(Ve+=from(xe),xe*ye){case 38:Ce=E>0?1:(Ve+="\f",-1);break;case 44:h[$++]=(strlen(Ve)-1)*Ce,Ce=1;break;case 64:peek$1()===45&&(Ve+=delimit(next())),H=peek$1(),E=M=strlen(Ne=Ve+=identifier(caret())),xe++;break;case 45:be===45&&strlen(Ve)==2&&(ye=0)}}return d}function ruleset(n,i,e,t,o,d,p,h,y,$,E){for(var M=o-1,H=o===0?d:[""],Z=sizeof(H),be=0,ye=0,we=0;be<t;++be)for(var Ce=0,xe=substr(n,M+1,M=abs(ye=p[be])),Ne=n;Ce<Z;++Ce)(Ne=trim(ye>0?H[Ce]+" "+xe:replace$1(xe,/&\f/g,H[Ce])))&&(y[we++]=Ne);return node$1(n,i,e,o===0?RULESET:h,y,$,E)}function comment(n,i,e){return node$1(n,i,e,COMMENT,from(char()),substr(n,2,-2),0)}function declaration(n,i,e,t){return node$1(n,i,e,DECLARATION,substr(n,0,t),substr(n,t+1,-1),t)}function serialize$2(n,i){for(var e="",t=sizeof(n),o=0;o<t;o++)e+=i(n[o],o,n,i)||"";return e}function stringify$3(n,i,e,t){switch(n.type){case LAYER:if(n.children.length)break;case IMPORT:case DECLARATION:return n.return=n.return||n.value;case COMMENT:return"";case KEYFRAMES:return n.return=n.value+"{"+serialize$2(n.children,t)+"}";case RULESET:n.value=n.props.join(",")}return strlen(e=serialize$2(n.children,t))?n.return=n.value+"{"+e+"}":""}function middleware(n){var i=sizeof(n);return function(e,t,o,d){for(var p="",h=0;h<i;h++)p+=n[h](e,t,o,d)||"";return p}}function rulesheet(n){return function(i){i.root||(i=i.return)&&n(i)}}var weakMemoize=function(i){var e=new WeakMap;return function(t){if(e.has(t))return e.get(t);var o=i(t);return e.set(t,o),o}};function memoize$1(n){var i=Object.create(null);return function(e){return i[e]===void 0&&(i[e]=n(e)),i[e]}}var identifierWithPointTracking=function(i,e,t){for(var o=0,d=0;o=d,d=peek$1(),o===38&&d===12&&(e[t]=1),!token$1(d);)next();return slice(i,position$3)},toRules=function(i,e){var t=-1,o=44;do switch(token$1(o)){case 0:o===38&&peek$1()===12&&(e[t]=1),i[t]+=identifierWithPointTracking(position$3-1,e,t);break;case 2:i[t]+=delimit(o);break;case 4:if(o===44){i[++t]=peek$1()===58?"&\f":"",e[t]=i[t].length;break}default:i[t]+=from(o)}while(o=next());return i},getRules=function(i,e){return dealloc(toRules(alloc(i),e))},fixedElements=new WeakMap,compat=function(i){if(!(i.type!=="rule"||!i.parent||i.length<1)){for(var e=i.value,t=i.parent,o=i.column===t.column&&i.line===t.line;t.type!=="rule";)if(t=t.parent,!t)return;if(!(i.props.length===1&&e.charCodeAt(0)!==58&&!fixedElements.get(t))&&!o){fixedElements.set(i,!0);for(var d=[],p=getRules(e,d),h=t.props,y=0,$=0;y<p.length;y++)for(var E=0;E<h.length;E++,$++)i.props[$]=d[y]?p[y].replace(/&\f/g,h[E]):h[E]+" "+p[y]}}},removeLabel=function(i){if(i.type==="decl"){var e=i.value;e.charCodeAt(0)===108&&e.charCodeAt(2)===98&&(i.return="",i.value="")}};function prefix$1(n,i){switch(hash$1(n,i)){case 5103:return WEBKIT+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+n+MOZ+n+MS+n+n;case 6828:case 4268:return WEBKIT+n+MS+n+n;case 6165:return WEBKIT+n+MS+"flex-"+n+n;case 5187:return WEBKIT+n+replace$1(n,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+n;case 5443:return WEBKIT+n+MS+"flex-item-"+replace$1(n,/flex-|-self/,"")+n;case 4675:return WEBKIT+n+MS+"flex-line-pack"+replace$1(n,/align-content|flex-|-self/,"")+n;case 5548:return WEBKIT+n+MS+replace$1(n,"shrink","negative")+n;case 5292:return WEBKIT+n+MS+replace$1(n,"basis","preferred-size")+n;case 6060:return WEBKIT+"box-"+replace$1(n,"-grow","")+WEBKIT+n+MS+replace$1(n,"grow","positive")+n;case 4554:return WEBKIT+replace$1(n,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+n;case 6187:return replace$1(replace$1(replace$1(n,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),n,"")+n;case 5495:case 3959:return replace$1(n,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace$1(replace$1(n,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+n+n;case 4095:case 3583:case 4068:case 2532:return replace$1(n,/(.+)-inline(.+)/,WEBKIT+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(n)-1-i>6)switch(charat(n,i+1)){case 109:if(charat(n,i+4)!==45)break;case 102:return replace$1(n,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(n,i+3)==108?"$3":"$2-$3"))+n;case 115:return~indexof(n,"stretch")?prefix$1(replace$1(n,"stretch","fill-available"),i)+n:n}break;case 4949:if(charat(n,i+1)!==115)break;case 6444:switch(charat(n,strlen(n)-3-(~indexof(n,"!important")&&10))){case 107:return replace$1(n,":",":"+WEBKIT)+n;case 101:return replace$1(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(n,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+n}break;case 5936:switch(charat(n,i+11)){case 114:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return WEBKIT+n+MS+replace$1(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return WEBKIT+n+MS+n+n}return n}var prefixer=function(i,e,t,o){if(i.length>-1&&!i.return)switch(i.type){case DECLARATION:i.return=prefix$1(i.value,i.length);break;case KEYFRAMES:return serialize$2([copy(i,{value:replace$1(i.value,"@","@"+WEBKIT)})],o);case RULESET:if(i.length)return combine(i.props,function(d){switch(match(d,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize$2([copy(i,{props:[replace$1(d,/:(read-\w+)/,":"+MOZ+"$1")]})],o);case"::placeholder":return serialize$2([copy(i,{props:[replace$1(d,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(i,{props:[replace$1(d,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(i,{props:[replace$1(d,/:(plac\w+)/,MS+"input-$1")]})],o)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(i){var e=i.key;if(e==="css"){var t=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(t,function(ye){var we=ye.getAttribute("data-emotion");we.indexOf(" ")!==-1&&(document.head.appendChild(ye),ye.setAttribute("data-s",""))})}var o=i.stylisPlugins||defaultStylisPlugins,d={},p,h=[];p=i.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+e+' "]'),function(ye){for(var we=ye.getAttribute("data-emotion").split(" "),Ce=1;Ce<we.length;Ce++)d[we[Ce]]=!0;h.push(ye)});var y,$=[compat,removeLabel];{var E,M=[stringify$3,rulesheet(function(ye){E.insert(ye)})],H=middleware($.concat(o,M)),Z=function(we){return serialize$2(compile(we),H)};y=function(we,Ce,xe,Ne){E=xe,Z(we?we+"{"+Ce.styles+"}":Ce.styles),Ne&&(be.inserted[Ce.name]=!0)}}var be={key:e,sheet:new StyleSheet({key:e,container:p,nonce:i.nonce,speedy:i.speedy,prepend:i.prepend,insertionPoint:i.insertionPoint}),nonce:i.nonce,inserted:d,registered:{},insert:y};return be.sheet.hydrate(h),be};function _extends$A(){return _extends$A=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)({}).hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$A.apply(null,arguments)}var reactIs$1={exports:{}},reactIs_production_min$1={};var hasRequiredReactIs_production_min$1;function requireReactIs_production_min$1(){if(hasRequiredReactIs_production_min$1)return reactIs_production_min$1;hasRequiredReactIs_production_min$1=1;var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103,e=n?Symbol.for("react.portal"):60106,t=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,d=n?Symbol.for("react.profiler"):60114,p=n?Symbol.for("react.provider"):60109,h=n?Symbol.for("react.context"):60110,y=n?Symbol.for("react.async_mode"):60111,$=n?Symbol.for("react.concurrent_mode"):60111,E=n?Symbol.for("react.forward_ref"):60112,M=n?Symbol.for("react.suspense"):60113,H=n?Symbol.for("react.suspense_list"):60120,Z=n?Symbol.for("react.memo"):60115,be=n?Symbol.for("react.lazy"):60116,ye=n?Symbol.for("react.block"):60121,we=n?Symbol.for("react.fundamental"):60117,Ce=n?Symbol.for("react.responder"):60118,xe=n?Symbol.for("react.scope"):60119;function Ne(Le){if(typeof Le=="object"&&Le!==null){var Me=Le.$$typeof;switch(Me){case i:switch(Le=Le.type,Le){case y:case $:case t:case d:case o:case M:return Le;default:switch(Le=Le&&Le.$$typeof,Le){case h:case E:case be:case Z:case p:return Le;default:return Me}}case e:return Me}}}function Fe(Le){return Ne(Le)===$}return reactIs_production_min$1.AsyncMode=y,reactIs_production_min$1.ConcurrentMode=$,reactIs_production_min$1.ContextConsumer=h,reactIs_production_min$1.ContextProvider=p,reactIs_production_min$1.Element=i,reactIs_production_min$1.ForwardRef=E,reactIs_production_min$1.Fragment=t,reactIs_production_min$1.Lazy=be,reactIs_production_min$1.Memo=Z,reactIs_production_min$1.Portal=e,reactIs_production_min$1.Profiler=d,reactIs_production_min$1.StrictMode=o,reactIs_production_min$1.Suspense=M,reactIs_production_min$1.isAsyncMode=function(Le){return Fe(Le)||Ne(Le)===y},reactIs_production_min$1.isConcurrentMode=Fe,reactIs_production_min$1.isContextConsumer=function(Le){return Ne(Le)===h},reactIs_production_min$1.isContextProvider=function(Le){return Ne(Le)===p},reactIs_production_min$1.isElement=function(Le){return typeof Le=="object"&&Le!==null&&Le.$$typeof===i},reactIs_production_min$1.isForwardRef=function(Le){return Ne(Le)===E},reactIs_production_min$1.isFragment=function(Le){return Ne(Le)===t},reactIs_production_min$1.isLazy=function(Le){return Ne(Le)===be},reactIs_production_min$1.isMemo=function(Le){return Ne(Le)===Z},reactIs_production_min$1.isPortal=function(Le){return Ne(Le)===e},reactIs_production_min$1.isProfiler=function(Le){return Ne(Le)===d},reactIs_production_min$1.isStrictMode=function(Le){return Ne(Le)===o},reactIs_production_min$1.isSuspense=function(Le){return Ne(Le)===M},reactIs_production_min$1.isValidElementType=function(Le){return typeof Le=="string"||typeof Le=="function"||Le===t||Le===$||Le===d||Le===o||Le===M||Le===H||typeof Le=="object"&&Le!==null&&(Le.$$typeof===be||Le.$$typeof===Z||Le.$$typeof===p||Le.$$typeof===h||Le.$$typeof===E||Le.$$typeof===we||Le.$$typeof===Ce||Le.$$typeof===xe||Le.$$typeof===ye)},reactIs_production_min$1.typeOf=Ne,reactIs_production_min$1}var hasRequiredReactIs$1;function requireReactIs$1(){return hasRequiredReactIs$1||(hasRequiredReactIs$1=1,reactIs$1.exports=requireReactIs_production_min$1()),reactIs$1.exports}var hoistNonReactStatics_cjs,hasRequiredHoistNonReactStatics_cjs;function requireHoistNonReactStatics_cjs(){if(hasRequiredHoistNonReactStatics_cjs)return hoistNonReactStatics_cjs;hasRequiredHoistNonReactStatics_cjs=1;var n=requireReactIs$1(),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},t={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};d[n.ForwardRef]=t,d[n.Memo]=o;function p(be){return n.isMemo(be)?o:d[be.$$typeof]||i}var h=Object.defineProperty,y=Object.getOwnPropertyNames,$=Object.getOwnPropertySymbols,E=Object.getOwnPropertyDescriptor,M=Object.getPrototypeOf,H=Object.prototype;function Z(be,ye,we){if(typeof ye!="string"){if(H){var Ce=M(ye);Ce&&Ce!==H&&Z(be,Ce,we)}var xe=y(ye);$&&(xe=xe.concat($(ye)));for(var Ne=p(be),Fe=p(ye),Le=0;Le<xe.length;++Le){var Me=xe[Le];if(!e[Me]&&!(we&&we[Me])&&!(Fe&&Fe[Me])&&!(Ne&&Ne[Me])){var Ve=E(ye,Me);try{h(be,Me,Ve)}catch{}}}}return be}return hoistNonReactStatics_cjs=Z,hoistNonReactStatics_cjs}var hoistNonReactStatics_cjsExports=requireHoistNonReactStatics_cjs();const hoistNonReactStatics=getDefaultExportFromCjs(hoistNonReactStatics_cjsExports);var isBrowser$2=!0;function getRegisteredStyles(n,i,e){var t="";return e.split(" ").forEach(function(o){n[o]!==void 0?i.push(n[o]+";"):o&&(t+=o+" ")}),t}var registerStyles=function(i,e,t){var o=i.key+"-"+e.name;(t===!1||isBrowser$2===!1)&&i.registered[o]===void 0&&(i.registered[o]=e.styles)},insertStyles=function(i,e,t){registerStyles(i,e,t);var o=i.key+"-"+e.name;if(i.inserted[e.name]===void 0){var d=e;do i.insert(e===d?"."+o:"",d,i.sheet,!0),d=d.next;while(d!==void 0)}};function murmur2(n){for(var i=0,e,t=0,o=n.length;o>=4;++t,o-=4)e=n.charCodeAt(t)&255|(n.charCodeAt(++t)&255)<<8|(n.charCodeAt(++t)&255)<<16|(n.charCodeAt(++t)&255)<<24,e=(e&65535)*1540483477+((e>>>16)*59797<<16),e^=e>>>24,i=(e&65535)*1540483477+((e>>>16)*59797<<16)^(i&65535)*1540483477+((i>>>16)*59797<<16);switch(o){case 3:i^=(n.charCodeAt(t+2)&255)<<16;case 2:i^=(n.charCodeAt(t+1)&255)<<8;case 1:i^=n.charCodeAt(t)&255,i=(i&65535)*1540483477+((i>>>16)*59797<<16)}return i^=i>>>13,i=(i&65535)*1540483477+((i>>>16)*59797<<16),((i^i>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(i){return i.charCodeAt(1)===45},isProcessableValue=function(i){return i!=null&&typeof i!="boolean"},processStyleName=memoize$1(function(n){return isCustomProperty(n)?n:n.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(i,e){switch(i){case"animation":case"animationName":if(typeof e=="string")return e.replace(animationRegex,function(t,o,d){return cursor$1={name:o,styles:d,next:cursor$1},o})}return unitlessKeys[i]!==1&&!isCustomProperty(i)&&typeof e=="number"&&e!==0?e+"px":e};function handleInterpolation(n,i,e){if(e==null)return"";var t=e;if(t.__emotion_styles!==void 0)return t;switch(typeof e){case"boolean":return"";case"object":{var o=e;if(o.anim===1)return cursor$1={name:o.name,styles:o.styles,next:cursor$1},o.name;var d=e;if(d.styles!==void 0){var p=d.next;if(p!==void 0)for(;p!==void 0;)cursor$1={name:p.name,styles:p.styles,next:cursor$1},p=p.next;var h=d.styles+";";return h}return createStringFromObject(n,i,e)}case"function":{if(n!==void 0){var y=cursor$1,$=e(n);return cursor$1=y,handleInterpolation(n,i,$)}break}}var E=e;if(i==null)return E;var M=i[E];return M!==void 0?M:E}function createStringFromObject(n,i,e){var t="";if(Array.isArray(e))for(var o=0;o<e.length;o++)t+=handleInterpolation(n,i,e[o])+";";else for(var d in e){var p=e[d];if(typeof p!="object"){var h=p;i!=null&&i[h]!==void 0?t+=d+"{"+i[h]+"}":isProcessableValue(h)&&(t+=processStyleName(d)+":"+processStyleValue(d,h)+";")}else if(Array.isArray(p)&&typeof p[0]=="string"&&(i==null||i[p[0]]===void 0))for(var y=0;y<p.length;y++)isProcessableValue(p[y])&&(t+=processStyleName(d)+":"+processStyleValue(d,p[y])+";");else{var $=handleInterpolation(n,i,p);switch(d){case"animation":case"animationName":{t+=processStyleName(d)+":"+$+";";break}default:t+=d+"{"+$+"}"}}}return t}var labelPattern=/label:\s*([^\s;{]+)\s*(;|$)/g,cursor$1;function serializeStyles(n,i,e){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var t=!0,o="";cursor$1=void 0;var d=n[0];if(d==null||d.raw===void 0)t=!1,o+=handleInterpolation(e,i,d);else{var p=d;o+=p[0]}for(var h=1;h<n.length;h++)if(o+=handleInterpolation(e,i,n[h]),t){var y=d;o+=y[h]}labelPattern.lastIndex=0;for(var $="",E;(E=labelPattern.exec(o))!==null;)$+="-"+E[1];var M=murmur2(o)+$;return{name:M,styles:o,next:cursor$1}}var syncFallback=function(i){return i()},useInsertionEffect=React$1.useInsertionEffect?React$1.useInsertionEffect:!1,useInsertionEffectAlwaysWithSyncFallback=useInsertionEffect||syncFallback,useInsertionEffectWithLayoutFallback=useInsertionEffect||reactExports.useLayoutEffect,EmotionCacheContext=reactExports.createContext(typeof HTMLElement<"u"?createCache({key:"css"}):null),CacheProvider=EmotionCacheContext.Provider,withEmotionCache=function(i){return reactExports.forwardRef(function(e,t){var o=reactExports.useContext(EmotionCacheContext);return i(e,o,t)})},ThemeContext$2=reactExports.createContext({}),useTheme=function(){return reactExports.useContext(ThemeContext$2)},getTheme=function(i,e){if(typeof e=="function"){var t=e(i);return t}return _extends$A({},i,e)},createCacheWithTheme=weakMemoize(function(n){return weakMemoize(function(i){return getTheme(n,i)})}),ThemeProvider$2=function(i){var e=reactExports.useContext(ThemeContext$2);return i.theme!==e&&(e=createCacheWithTheme(e)(i.theme)),reactExports.createElement(ThemeContext$2.Provider,{value:e},i.children)},hasOwn={}.hasOwnProperty,typePropName="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",createEmotionProps=function(i,e){var t={};for(var o in e)hasOwn.call(e,o)&&(t[o]=e[o]);return t[typePropName]=i,t},Insertion$1=function(i){var e=i.cache,t=i.serialized,o=i.isStringTag;return registerStyles(e,t,o),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(e,t,o)}),null},Emotion=withEmotionCache(function(n,i,e){var t=n.css;typeof t=="string"&&i.registered[t]!==void 0&&(t=i.registered[t]);var o=n[typePropName],d=[t],p="";typeof n.className=="string"?p=getRegisteredStyles(i.registered,d,n.className):n.className!=null&&(p=n.className+" ");var h=serializeStyles(d,void 0,reactExports.useContext(ThemeContext$2));p+=i.key+"-"+h.name;var y={};for(var $ in n)hasOwn.call(n,$)&&$!=="css"&&$!==typePropName&&(y[$]=n[$]);return y.className=p,e&&(y.ref=e),reactExports.createElement(reactExports.Fragment,null,reactExports.createElement(Insertion$1,{cache:i,serialized:h,isStringTag:typeof o=="string"}),reactExports.createElement(o,y))}),Emotion$1=Emotion,Fragment=jsxRuntimeExports.Fragment,jsx$1=function(i,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsx(Emotion$1,createEmotionProps(i,e),t):jsxRuntimeExports.jsx(i,e,t)},jsxs=function(i,e,t){return hasOwn.call(e,"css")?jsxRuntimeExports.jsxs(Emotion$1,createEmotionProps(i,e),t):jsxRuntimeExports.jsxs(i,e,t)},loglevel$1={exports:{}},loglevel=loglevel$1.exports,hasRequiredLoglevel;function requireLoglevel(){return hasRequiredLoglevel||(hasRequiredLoglevel=1,(function(n){(function(i,e){n.exports?n.exports=e():i.log=e()})(loglevel,function(){var i=function(){},e="undefined",t=typeof window!==e&&typeof window.navigator!==e&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],d={},p=null;function h(ye,we){var Ce=ye[we];if(typeof Ce.bind=="function")return Ce.bind(ye);try{return Function.prototype.bind.call(Ce,ye)}catch{return function(){return Function.prototype.apply.apply(Ce,[ye,arguments])}}}function y(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function $(ye){return ye==="debug"&&(ye="log"),typeof console===e?!1:ye==="trace"&&t?y:console[ye]!==void 0?h(console,ye):console.log!==void 0?h(console,"log"):i}function E(){for(var ye=this.getLevel(),we=0;we<o.length;we++){var Ce=o[we];this[Ce]=we<ye?i:this.methodFactory(Ce,ye,this.name)}if(this.log=this.debug,typeof console===e&&ye<this.levels.SILENT)return"No console available for logging"}function M(ye){return function(){typeof console!==e&&(E.call(this),this[ye].apply(this,arguments))}}function H(ye,we,Ce){return $(ye)||M.apply(this,arguments)}function Z(ye,we){var Ce=this,xe,Ne,Fe,Le="loglevel";typeof ye=="string"?Le+=":"+ye:typeof ye=="symbol"&&(Le=void 0);function Me(We){var Xe=(o[We]||"silent").toUpperCase();if(!(typeof window===e||!Le)){try{window.localStorage[Le]=Xe;return}catch{}try{window.document.cookie=encodeURIComponent(Le)+"="+Xe+";"}catch{}}}function Ve(){var We;if(!(typeof window===e||!Le)){try{We=window.localStorage[Le]}catch{}if(typeof We===e)try{var Xe=window.document.cookie,Qe=encodeURIComponent(Le),Ye=Xe.indexOf(Qe+"=");Ye!==-1&&(We=/^([^;]+)/.exec(Xe.slice(Ye+Qe.length+1))[1])}catch{}return Ce.levels[We]===void 0&&(We=void 0),We}}function Ke(){if(!(typeof window===e||!Le)){try{window.localStorage.removeItem(Le)}catch{}try{window.document.cookie=encodeURIComponent(Le)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function ze(We){var Xe=We;if(typeof Xe=="string"&&Ce.levels[Xe.toUpperCase()]!==void 0&&(Xe=Ce.levels[Xe.toUpperCase()]),typeof Xe=="number"&&Xe>=0&&Xe<=Ce.levels.SILENT)return Xe;throw new TypeError("log.setLevel() called with invalid level: "+We)}Ce.name=ye,Ce.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},Ce.methodFactory=we||H,Ce.getLevel=function(){return Fe??Ne??xe},Ce.setLevel=function(We,Xe){return Fe=ze(We),Xe!==!1&&Me(Fe),E.call(Ce)},Ce.setDefaultLevel=function(We){Ne=ze(We),Ve()||Ce.setLevel(We,!1)},Ce.resetLevel=function(){Fe=null,Ke(),E.call(Ce)},Ce.enableAll=function(We){Ce.setLevel(Ce.levels.TRACE,We)},Ce.disableAll=function(We){Ce.setLevel(Ce.levels.SILENT,We)},Ce.rebuild=function(){if(p!==Ce&&(xe=ze(p.getLevel())),E.call(Ce),p===Ce)for(var We in d)d[We].rebuild()},xe=ze(p?p.getLevel():"WARN");var je=Ve();je!=null&&(Fe=ze(je)),E.call(Ce)}p=new Z,p.getLogger=function(we){if(typeof we!="symbol"&&typeof we!="string"||we==="")throw new TypeError("You must supply a name when creating a logger.");var Ce=d[we];return Ce||(Ce=d[we]=new Z(we,p.methodFactory)),Ce};var be=typeof window!==e?window.log:void 0;return p.noConflict=function(){return typeof window!==e&&window.log===p&&(window.log=be),p},p.getLoggers=function(){return d},p.default=p,p})})(loglevel$1)),loglevel$1.exports}var loglevelExports=requireLoglevel(),client={},reactDom={exports:{}},reactDom_production_min={},scheduler={exports:{}},scheduler_production_min={};var hasRequiredScheduler_production_min;function requireScheduler_production_min(){return hasRequiredScheduler_production_min||(hasRequiredScheduler_production_min=1,(function(n){function i(ot,pt){var Be=ot.length;ot.push(pt);e:for(;0<Be;){var Ge=Be-1>>>1,tt=ot[Ge];if(0<o(tt,pt))ot[Ge]=pt,ot[Be]=tt,Be=Ge;else break e}}function e(ot){return ot.length===0?null:ot[0]}function t(ot){if(ot.length===0)return null;var pt=ot[0],Be=ot.pop();if(Be!==pt){ot[0]=Be;e:for(var Ge=0,tt=ot.length,Ue=tt>>>1;Ge<Ue;){var Ot=2*(Ge+1)-1,xt=ot[Ot],ut=Ot+1,ht=ot[ut];if(0>o(xt,Be))ut<tt&&0>o(ht,xt)?(ot[Ge]=ht,ot[ut]=Be,Ge=ut):(ot[Ge]=xt,ot[Ot]=Be,Ge=Ot);else if(ut<tt&&0>o(ht,Be))ot[Ge]=ht,ot[ut]=Be,Ge=ut;else break e}}return pt}function o(ot,pt){var Be=ot.sortIndex-pt.sortIndex;return Be!==0?Be:ot.id-pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var p=Date,h=p.now();n.unstable_now=function(){return p.now()-h}}var y=[],$=[],E=1,M=null,H=3,Z=!1,be=!1,ye=!1,we=typeof setTimeout=="function"?setTimeout:null,Ce=typeof clearTimeout=="function"?clearTimeout:null,xe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ne(ot){for(var pt=e($);pt!==null;){if(pt.callback===null)t($);else if(pt.startTime<=ot)t($),pt.sortIndex=pt.expirationTime,i(y,pt);else break;pt=e($)}}function Fe(ot){if(ye=!1,Ne(ot),!be)if(e(y)!==null)be=!0,rt(Le);else{var pt=e($);pt!==null&&ft(Fe,pt.startTime-ot)}}function Le(ot,pt){be=!1,ye&&(ye=!1,Ce(Ke),Ke=-1),Z=!0;var Be=H;try{for(Ne(pt),M=e(y);M!==null&&(!(M.expirationTime>pt)||ot&&!We());){var Ge=M.callback;if(typeof Ge=="function"){M.callback=null,H=M.priorityLevel;var tt=Ge(M.expirationTime<=pt);pt=n.unstable_now(),typeof tt=="function"?M.callback=tt:M===e(y)&&t(y),Ne(pt)}else t(y);M=e(y)}if(M!==null)var Ue=!0;else{var Ot=e($);Ot!==null&&ft(Fe,Ot.startTime-pt),Ue=!1}return Ue}finally{M=null,H=Be,Z=!1}}var Me=!1,Ve=null,Ke=-1,ze=5,je=-1;function We(){return!(n.unstable_now()-je<ze)}function Xe(){if(Ve!==null){var ot=n.unstable_now();je=ot;var pt=!0;try{pt=Ve(!0,ot)}finally{pt?Qe():(Me=!1,Ve=null)}}else Me=!1}var Qe;if(typeof xe=="function")Qe=function(){xe(Xe)};else if(typeof MessageChannel<"u"){var Ye=new MessageChannel,He=Ye.port2;Ye.port1.onmessage=Xe,Qe=function(){He.postMessage(null)}}else Qe=function(){we(Xe,0)};function rt(ot){Ve=ot,Me||(Me=!0,Qe())}function ft(ot,pt){Ke=we(function(){ot(n.unstable_now())},pt)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(ot){ot.callback=null},n.unstable_continueExecution=function(){be||Z||(be=!0,rt(Le))},n.unstable_forceFrameRate=function(ot){0>ot||125<ot?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ze=0<ot?Math.floor(1e3/ot):5},n.unstable_getCurrentPriorityLevel=function(){return H},n.unstable_getFirstCallbackNode=function(){return e(y)},n.unstable_next=function(ot){switch(H){case 1:case 2:case 3:var pt=3;break;default:pt=H}var Be=H;H=pt;try{return ot()}finally{H=Be}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(ot,pt){switch(ot){case 1:case 2:case 3:case 4:case 5:break;default:ot=3}var Be=H;H=ot;try{return pt()}finally{H=Be}},n.unstable_scheduleCallback=function(ot,pt,Be){var Ge=n.unstable_now();switch(typeof Be=="object"&&Be!==null?(Be=Be.delay,Be=typeof Be=="number"&&0<Be?Ge+Be:Ge):Be=Ge,ot){case 1:var tt=-1;break;case 2:tt=250;break;case 5:tt=1073741823;break;case 4:tt=1e4;break;default:tt=5e3}return tt=Be+tt,ot={id:E++,callback:pt,priorityLevel:ot,startTime:Be,expirationTime:tt,sortIndex:-1},Be>Ge?(ot.sortIndex=Be,i($,ot),e(y)===null&&ot===e($)&&(ye?(Ce(Ke),Ke=-1):ye=!0,ft(Fe,Be-Ge))):(ot.sortIndex=tt,i(y,ot),be||Z||(be=!0,rt(Le))),ot},n.unstable_shouldYield=We,n.unstable_wrapCallback=function(ot){var pt=H;return function(){var Be=H;H=pt;try{return ot.apply(this,arguments)}finally{H=Be}}}})(scheduler_production_min)),scheduler_production_min}var hasRequiredScheduler;function requireScheduler(){return hasRequiredScheduler||(hasRequiredScheduler=1,scheduler.exports=requireScheduler_production_min()),scheduler.exports}var hasRequiredReactDom_production_min;function requireReactDom_production_min(){if(hasRequiredReactDom_production_min)return reactDom_production_min;hasRequiredReactDom_production_min=1;var n=requireReact(),i=requireScheduler();function e(g){for(var k="https://reactjs.org/docs/error-decoder.html?invariant="+g,X=1;X<arguments.length;X++)k+="&args[]="+encodeURIComponent(arguments[X]);return"Minified React error #"+g+"; visit "+k+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var t=new Set,o={};function d(g,k){p(g,k),p(g+"Capture",k)}function p(g,k){for(o[g]=k,g=0;g<k.length;g++)t.add(k[g])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),y=Object.prototype.hasOwnProperty,$=/^[: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]*$/,E={},M={};function H(g){return y.call(M,g)?!0:y.call(E,g)?!1:$.test(g)?M[g]=!0:(E[g]=!0,!1)}function Z(g,k,X,ve){if(X!==null&&X.type===0)return!1;switch(typeof k){case"function":case"symbol":return!0;case"boolean":return ve?!1:X!==null?!X.acceptsBooleans:(g=g.toLowerCase().slice(0,5),g!=="data-"&&g!=="aria-");default:return!1}}function be(g,k,X,ve){if(k===null||typeof k>"u"||Z(g,k,X,ve))return!0;if(ve)return!1;if(X!==null)switch(X.type){case 3:return!k;case 4:return k===!1;case 5:return isNaN(k);case 6:return isNaN(k)||1>k}return!1}function ye(g,k,X,ve,$e,Ie,De){this.acceptsBooleans=k===2||k===3||k===4,this.attributeName=ve,this.attributeNamespace=$e,this.mustUseProperty=X,this.propertyName=g,this.type=k,this.sanitizeURL=Ie,this.removeEmptyString=De}var we={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(g){we[g]=new ye(g,0,!1,g,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(g){var k=g[0];we[k]=new ye(k,1,!1,g[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(g){we[g]=new ye(g,2,!1,g.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(g){we[g]=new ye(g,2,!1,g,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(g){we[g]=new ye(g,3,!1,g.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(g){we[g]=new ye(g,3,!0,g,null,!1,!1)}),["capture","download"].forEach(function(g){we[g]=new ye(g,4,!1,g,null,!1,!1)}),["cols","rows","size","span"].forEach(function(g){we[g]=new ye(g,6,!1,g,null,!1,!1)}),["rowSpan","start"].forEach(function(g){we[g]=new ye(g,5,!1,g.toLowerCase(),null,!1,!1)});var Ce=/[\-:]([a-z])/g;function xe(g){return g[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(g){var k=g.replace(Ce,xe);we[k]=new ye(k,1,!1,g,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(g){var k=g.replace(Ce,xe);we[k]=new ye(k,1,!1,g,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(g){var k=g.replace(Ce,xe);we[k]=new ye(k,1,!1,g,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(g){we[g]=new ye(g,1,!1,g.toLowerCase(),null,!1,!1)}),we.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(g){we[g]=new ye(g,1,!1,g.toLowerCase(),null,!0,!0)});function Ne(g,k,X,ve){var $e=we.hasOwnProperty(k)?we[k]:null;($e!==null?$e.type!==0:ve||!(2<k.length)||k[0]!=="o"&&k[0]!=="O"||k[1]!=="n"&&k[1]!=="N")&&(be(k,X,$e,ve)&&(X=null),ve||$e===null?H(k)&&(X===null?g.removeAttribute(k):g.setAttribute(k,""+X)):$e.mustUseProperty?g[$e.propertyName]=X===null?$e.type===3?!1:"":X:(k=$e.attributeName,ve=$e.attributeNamespace,X===null?g.removeAttribute(k):($e=$e.type,X=$e===3||$e===4&&X===!0?"":""+X,ve?g.setAttributeNS(ve,k,X):g.setAttribute(k,X))))}var Fe=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),Ve=Symbol.for("react.fragment"),Ke=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),We=Symbol.for("react.context"),Xe=Symbol.for("react.forward_ref"),Qe=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),He=Symbol.for("react.memo"),rt=Symbol.for("react.lazy"),ft=Symbol.for("react.offscreen"),ot=Symbol.iterator;function pt(g){return g===null||typeof g!="object"?null:(g=ot&&g[ot]||g["@@iterator"],typeof g=="function"?g:null)}var Be=Object.assign,Ge;function tt(g){if(Ge===void 0)try{throw Error()}catch(X){var k=X.stack.trim().match(/\n( *(at )?)/);Ge=k&&k[1]||""}return`
|
|
3
3
|
`+Ge+g}var Ue=!1;function Ot(g,k){if(!g||Ue)return"";Ue=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(k)if(k=function(){throw Error()},Object.defineProperty(k.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(k,[])}catch(at){var ve=at}Reflect.construct(g,[],k)}else{try{k.call()}catch(at){ve=at}g.call(k.prototype)}else{try{throw Error()}catch(at){ve=at}g()}}catch(at){if(at&&ve&&typeof at.stack=="string"){for(var $e=at.stack.split(`
|
|
4
4
|
`),Ie=ve.stack.split(`
|
|
@@ -15,7 +15,7 @@ Error generating stack: `+Ie.message+`
|
|
|
15
15
|
${$?`font-weight: ${$};`:""}
|
|
16
16
|
${y?`unicode-range: ${y};`:""}
|
|
17
17
|
}
|
|
18
|
-
`});return jsx$1(Global,{styles:[css(i)]})},FontSources=({fontSources:n})=>jsx$1(Helmet,{children:Object.entries(n).map(([i,e])=>jsx$1("link",{id:i,rel:"stylesheet",href:e},i))});typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,i;const e=new Promise((t,o)=>{n=t,i=o});return{resolve:n,reject:i,promise:e}});function getCookie(n){const i=document.cookie.match(`\\b${n}=([^;]*)\\b`);return i?i[1]:void 0}function localStorageAvailable(){const n="testData";try{const{localStorage:i}=window;i.setItem(n,n),i.getItem(n),i.removeItem(n)}catch{return!1}return!0}function isValidAllowedOrigins(n){return Array.isArray(n)&&n.length>0&&n.every(i=>typeof i=="string"&&i.trim().length>0)}function deepClone(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}function deepFreeze(n){return Object.freeze(n),Array.isArray(n)?n.forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}):Object.values(n).forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}),n}const capturedConfig=(()=>{const n=window.__streamlit;if(!n)return;const i=deepClone(n);return deepFreeze(i)})(),StreamlitConfig={get BACKEND_BASE_URL(){return capturedConfig?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return capturedConfig?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return capturedConfig?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return capturedConfig?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return capturedConfig?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return capturedConfig?.LIGHT_THEME},get DARK_THEME(){return capturedConfig?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return capturedConfig?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return capturedConfig?.HOST_CONFIG}};function notNullOrUndefined(n){return n!=null}function isNullOrUndefined$1(n){return n==null}const isLocalhost=()=>window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",NO_SCRIPT_RUN_ID="NO_SCRIPT_RUN_ID";var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=n;function n(i,e){for(var t=new Array(arguments.length-1),o=0,d=2,p=!0;d<arguments.length;)t[o++]=arguments[d++];return new Promise(function(y,$){t[o]=function(M){if(p)if(p=!1,M)$(M);else{for(var H=new Array(arguments.length-1),Z=0;Z<H.length;)H[Z++]=arguments[Z];y.apply(null,H)}};try{i.apply(e||null,t)}catch(E){p&&(p=!1,$(E))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(n){var i=n;i.length=function(h){var y=h.length;if(!y)return 0;for(var $=0;--y%4>1&&h.charAt(y)==="=";)++$;return Math.ceil(h.length*3)/4-$};for(var e=new Array(64),t=new Array(123),o=0;o<64;)t[e[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(h,y,$){for(var E=null,M=[],H=0,Z=0,be;y<$;){var ye=h[y++];switch(Z){case 0:M[H++]=e[ye>>2],be=(ye&3)<<4,Z=1;break;case 1:M[H++]=e[be|ye>>4],be=(ye&15)<<2,Z=2;break;case 2:M[H++]=e[be|ye>>6],M[H++]=e[ye&63],Z=0;break}H>8191&&((E||(E=[])).push(String.fromCharCode.apply(String,M)),H=0)}return Z&&(M[H++]=e[be],M[H++]=61,Z===1&&(M[H++]=61)),E?(H&&E.push(String.fromCharCode.apply(String,M.slice(0,H))),E.join("")):String.fromCharCode.apply(String,M.slice(0,H))};var d="invalid encoding";i.decode=function(h,y,$){for(var E=$,M=0,H,Z=0;Z<h.length;){var be=h.charCodeAt(Z++);if(be===61&&M>1)break;if((be=t[be])===void 0)throw Error(d);switch(M){case 0:H=be,M=1;break;case 1:y[$++]=H<<2|(be&48)>>4,H=be,M=2;break;case 2:y[$++]=(H&15)<<4|(be&60)>>2,H=be,M=3;break;case 3:y[$++]=(H&3)<<6|be,M=0;break}}if(M===1)throw Error(d);return $-E},i.test=function(h){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(h)}})(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=n;function n(){this._listeners={}}return n.prototype.on=function(e,t,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:o||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],d=0;d<o.length;)o[d].fn===t?o.splice(d,1):++d;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var o=[],d=1;d<arguments.length;)o.push(arguments[d++]);for(d=0;d<t.length;)t[d].fn.apply(t[d++].ctx,o)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=n(n);function n(d){return typeof Float32Array<"u"?(function(){var p=new Float32Array([-0]),h=new Uint8Array(p.buffer),y=h[3]===128;function $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3]}function E(Z,be,ye){p[0]=Z,be[ye]=h[3],be[ye+1]=h[2],be[ye+2]=h[1],be[ye+3]=h[0]}d.writeFloatLE=y?$:E,d.writeFloatBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],p[0]}function H(Z,be){return h[3]=Z[be],h[2]=Z[be+1],h[1]=Z[be+2],h[0]=Z[be+3],p[0]}d.readFloatLE=y?M:H,d.readFloatBE=y?H:M})():(function(){function p(y,$,E,M){var H=$<0?1:0;if(H&&($=-$),$===0)y(1/$>0?0:2147483648,E,M);else if(isNaN($))y(2143289344,E,M);else if($>34028234663852886e22)y((H<<31|2139095040)>>>0,E,M);else if($<11754943508222875e-54)y((H<<31|Math.round($/1401298464324817e-60))>>>0,E,M);else{var Z=Math.floor(Math.log($)/Math.LN2),be=Math.round($*Math.pow(2,-Z)*8388608)&8388607;y((H<<31|Z+127<<23|be)>>>0,E,M)}}d.writeFloatLE=p.bind(null,i),d.writeFloatBE=p.bind(null,e);function h(y,$,E){var M=y($,E),H=(M>>31)*2+1,Z=M>>>23&255,be=M&8388607;return Z===255?be?NaN:H*(1/0):Z===0?H*1401298464324817e-60*be:H*Math.pow(2,Z-150)*(be+8388608)}d.readFloatLE=h.bind(null,t),d.readFloatBE=h.bind(null,o)})(),typeof Float64Array<"u"?(function(){var p=new Float64Array([-0]),h=new Uint8Array(p.buffer),y=h[7]===128;function $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3],be[ye+4]=h[4],be[ye+5]=h[5],be[ye+6]=h[6],be[ye+7]=h[7]}function E(Z,be,ye){p[0]=Z,be[ye]=h[7],be[ye+1]=h[6],be[ye+2]=h[5],be[ye+3]=h[4],be[ye+4]=h[3],be[ye+5]=h[2],be[ye+6]=h[1],be[ye+7]=h[0]}d.writeDoubleLE=y?$:E,d.writeDoubleBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],h[4]=Z[be+4],h[5]=Z[be+5],h[6]=Z[be+6],h[7]=Z[be+7],p[0]}function H(Z,be){return h[7]=Z[be],h[6]=Z[be+1],h[5]=Z[be+2],h[4]=Z[be+3],h[3]=Z[be+4],h[2]=Z[be+5],h[1]=Z[be+6],h[0]=Z[be+7],p[0]}d.readDoubleLE=y?M:H,d.readDoubleBE=y?H:M})():(function(){function p(y,$,E,M,H,Z){var be=M<0?1:0;if(be&&(M=-M),M===0)y(0,H,Z+$),y(1/M>0?0:2147483648,H,Z+E);else if(isNaN(M))y(0,H,Z+$),y(2146959360,H,Z+E);else if(M>17976931348623157e292)y(0,H,Z+$),y((be<<31|2146435072)>>>0,H,Z+E);else{var ye;if(M<22250738585072014e-324)ye=M/5e-324,y(ye>>>0,H,Z+$),y((be<<31|ye/4294967296)>>>0,H,Z+E);else{var we=Math.floor(Math.log(M)/Math.LN2);we===1024&&(we=1023),ye=M*Math.pow(2,-we),y(ye*4503599627370496>>>0,H,Z+$),y((be<<31|we+1023<<20|ye*1048576&1048575)>>>0,H,Z+E)}}}d.writeDoubleLE=p.bind(null,i,0,4),d.writeDoubleBE=p.bind(null,e,4,0);function h(y,$,E,M,H){var Z=y(M,H+$),be=y(M,H+E),ye=(be>>31)*2+1,we=be>>>20&2047,Ce=4294967296*(be&1048575)+Z;return we===2047?Ce?NaN:ye*(1/0):we===0?ye*5e-324*Ce:ye*Math.pow(2,we-1075)*(Ce+4503599627370496)}d.readDoubleLE=h.bind(null,t,0,4),d.readDoubleBE=h.bind(null,o,4,0)})(),d}function i(d,p,h){p[h]=d&255,p[h+1]=d>>>8&255,p[h+2]=d>>>16&255,p[h+3]=d>>>24}function e(d,p,h){p[h]=d>>>24,p[h+1]=d>>>16&255,p[h+2]=d>>>8&255,p[h+3]=d&255}function t(d,p){return(d[p]|d[p+1]<<8|d[p+2]<<16|d[p+3]<<24)>>>0}function o(d,p){return(d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(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(n){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(n){var i=n;i.length=function(t){for(var o=0,d=0,p=0;p<t.length;++p)d=t.charCodeAt(p),d<128?o+=1:d<2048?o+=2:(d&64512)===55296&&(t.charCodeAt(p+1)&64512)===56320?(++p,o+=4):o+=3;return o},i.read=function(t,o,d){var p=d-o;if(p<1)return"";for(var h=null,y=[],$=0,E;o<d;)E=t[o++],E<128?y[$++]=E:E>191&&E<224?y[$++]=(E&31)<<6|t[o++]&63:E>239&&E<365?(E=((E&7)<<18|(t[o++]&63)<<12|(t[o++]&63)<<6|t[o++]&63)-65536,y[$++]=55296+(E>>10),y[$++]=56320+(E&1023)):y[$++]=(E&15)<<12|(t[o++]&63)<<6|t[o++]&63,$>8191&&((h||(h=[])).push(String.fromCharCode.apply(String,y)),$=0);return h?($&&h.push(String.fromCharCode.apply(String,y.slice(0,$))),h.join("")):String.fromCharCode.apply(String,y.slice(0,$))},i.write=function(t,o,d){for(var p=d,h,y,$=0;$<t.length;++$)h=t.charCodeAt($),h<128?o[d++]=h:h<2048?(o[d++]=h>>6|192,o[d++]=h&63|128):(h&64512)===55296&&((y=t.charCodeAt($+1))&64512)===56320?(h=65536+((h&1023)<<10)+(y&1023),++$,o[d++]=h>>18|240,o[d++]=h>>12&63|128,o[d++]=h>>6&63|128,o[d++]=h&63|128):(o[d++]=h>>12|224,o[d++]=h>>6&63|128,o[d++]=h&63|128);return d-p}})(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=n;function n(i,e,t){var o=t||8192,d=o>>>1,p=null,h=o;return function($){if($<1||$>d)return i($);h+$>o&&(p=i(o),h=0);var E=e.call(p,h,h+=$);return h&7&&(h=(h|7)+1),E}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var n=requireMinimal$1();function i(d,p){this.lo=d>>>0,this.hi=p>>>0}var e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(p){if(p===0)return e;var h=p<0;h&&(p=-p);var y=p>>>0,$=(p-y)/4294967296>>>0;return h&&($=~$>>>0,y=~y>>>0,++y>4294967295&&(y=0,++$>4294967295&&($=0))),new i(y,$)},i.from=function(p){if(typeof p=="number")return i.fromNumber(p);if(n.isString(p))if(n.Long)p=n.Long.fromString(p);else return i.fromNumber(parseInt(p,10));return p.low||p.high?new i(p.low>>>0,p.high>>>0):e},i.prototype.toNumber=function(p){if(!p&&this.hi>>>31){var h=~this.lo+1>>>0,y=~this.hi>>>0;return h||(y=y+1>>>0),-(h+y*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(p){return n.Long?new n.Long(this.lo|0,this.hi|0,!!p):{low:this.lo|0,high:this.hi|0,unsigned:!!p}};var o=String.prototype.charCodeAt;return i.fromHash=function(p){return p===t?e:new i((o.call(p,0)|o.call(p,1)<<8|o.call(p,2)<<16|o.call(p,3)<<24)>>>0,(o.call(p,4)|o.call(p,5)<<8|o.call(p,6)<<16|o.call(p,7)<<24)>>>0)},i.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)},i.prototype.zzEncode=function(){var p=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^p)>>>0,this.lo=(this.lo<<1^p)>>>0,this},i.prototype.zzDecode=function(){var p=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^p)>>>0,this.hi=(this.hi>>>1^p)>>>0,this},i.prototype.length=function(){var p=this.lo,h=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return y===0?h===0?p<16384?p<128?1:2:p<2097152?3:4:h<16384?h<128?5:6:h<2097152?7:8:y<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,(function(n){var i=n;i.asPromise=requireAspromise(),i.base64=requireBase64(),i.EventEmitter=requireEventemitter(),i.float=requireFloat(),i.inquire=requireInquire(),i.utf8=requireUtf8(),i.pool=requirePool(),i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(d){return typeof d=="number"&&isFinite(d)&&Math.floor(d)===d},i.isString=function(d){return typeof d=="string"||d instanceof String},i.isObject=function(d){return d&&typeof d=="object"},i.isset=i.isSet=function(d,p){var h=d[p];return h!=null&&d.hasOwnProperty(p)?typeof h!="object"||(Array.isArray(h)?h.length:Object.keys(h).length)>0:!1},i.Buffer=(function(){try{var o=i.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}})(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(d){return typeof d=="number"?i.Buffer?i._Buffer_allocUnsafe(d):new i.Array(d):i.Buffer?i._Buffer_from(d):typeof Uint8Array>"u"?d:new Uint8Array(d)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(d){return d?i.LongBits.from(d).toHash():i.LongBits.zeroHash},i.longFromHash=function(d,p){var h=i.LongBits.fromHash(d);return i.Long?i.Long.fromBits(h.lo,h.hi,p):h.toNumber(!!p)};function e(o,d,p){for(var h=Object.keys(d),y=0;y<h.length;++y)(o[h[y]]===void 0||!p)&&(o[h[y]]=d[h[y]]);return o}i.merge=e,i.lcFirst=function(d){return d.charAt(0).toLowerCase()+d.substring(1)};function t(o){function d(p,h){if(!(this instanceof d))return new d(p,h);Object.defineProperty(this,"message",{get:function(){return p}}),Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:new Error().stack||""}),h&&e(this,h)}return d.prototype=Object.create(Error.prototype,{constructor:{value:d,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),d}i.newError=t,i.ProtocolError=t("ProtocolError"),i.oneOfGetter=function(d){for(var p={},h=0;h<d.length;++h)p[d[h]]=1;return function(){for(var y=Object.keys(this),$=y.length-1;$>-1;--$)if(p[y[$]]===1&&this[y[$]]!==void 0&&this[y[$]]!==null)return y[$]}},i.oneOfSetter=function(d){return function(p){for(var h=0;h<d.length;++h)d[h]!==p&&delete this[d[h]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var o=i.Buffer;if(!o){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=o.from!==Uint8Array.from&&o.from||function(p,h){return new o(p,h)},i._Buffer_allocUnsafe=o.allocUnsafe||function(p){return new o(p)}}})(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=y;var n=requireMinimal$1(),i,e=n.LongBits,t=n.base64,o=n.utf8;function d(we,Ce,xe){this.fn=we,this.len=Ce,this.next=void 0,this.val=xe}function p(){}function h(we){this.head=we.head,this.tail=we.tail,this.len=we.len,this.next=we.states}function y(){this.len=0,this.head=new d(p,0,0),this.tail=this.head,this.states=null}var $=function(){return n.Buffer?function(){return(y.create=function(){return new i})()}:function(){return new y}};y.create=$(),y.alloc=function(Ce){return new n.Array(Ce)},n.Array!==Array&&(y.alloc=n.pool(y.alloc,n.Array.prototype.subarray)),y.prototype._push=function(Ce,xe,Ne){return this.tail=this.tail.next=new d(Ce,xe,Ne),this.len+=xe,this};function E(we,Ce,xe){Ce[xe]=we&255}function M(we,Ce,xe){for(;we>127;)Ce[xe++]=we&127|128,we>>>=7;Ce[xe]=we}function H(we,Ce){this.len=we,this.next=void 0,this.val=Ce}H.prototype=Object.create(d.prototype),H.prototype.fn=M,y.prototype.uint32=function(Ce){return this.len+=(this.tail=this.tail.next=new H((Ce=Ce>>>0)<128?1:Ce<16384?2:Ce<2097152?3:Ce<268435456?4:5,Ce)).len,this},y.prototype.int32=function(Ce){return Ce<0?this._push(Z,10,e.fromNumber(Ce)):this.uint32(Ce)},y.prototype.sint32=function(Ce){return this.uint32((Ce<<1^Ce>>31)>>>0)};function Z(we,Ce,xe){for(;we.hi;)Ce[xe++]=we.lo&127|128,we.lo=(we.lo>>>7|we.hi<<25)>>>0,we.hi>>>=7;for(;we.lo>127;)Ce[xe++]=we.lo&127|128,we.lo=we.lo>>>7;Ce[xe++]=we.lo}y.prototype.uint64=function(Ce){var xe=e.from(Ce);return this._push(Z,xe.length(),xe)},y.prototype.int64=y.prototype.uint64,y.prototype.sint64=function(Ce){var xe=e.from(Ce).zzEncode();return this._push(Z,xe.length(),xe)},y.prototype.bool=function(Ce){return this._push(E,1,Ce?1:0)};function be(we,Ce,xe){Ce[xe]=we&255,Ce[xe+1]=we>>>8&255,Ce[xe+2]=we>>>16&255,Ce[xe+3]=we>>>24}y.prototype.fixed32=function(Ce){return this._push(be,4,Ce>>>0)},y.prototype.sfixed32=y.prototype.fixed32,y.prototype.fixed64=function(Ce){var xe=e.from(Ce);return this._push(be,4,xe.lo)._push(be,4,xe.hi)},y.prototype.sfixed64=y.prototype.fixed64,y.prototype.float=function(Ce){return this._push(n.float.writeFloatLE,4,Ce)},y.prototype.double=function(Ce){return this._push(n.float.writeDoubleLE,8,Ce)};var ye=n.Array.prototype.set?function(Ce,xe,Ne){xe.set(Ce,Ne)}:function(Ce,xe,Ne){for(var Fe=0;Fe<Ce.length;++Fe)xe[Ne+Fe]=Ce[Fe]};return y.prototype.bytes=function(Ce){var xe=Ce.length>>>0;if(!xe)return this._push(E,1,0);if(n.isString(Ce)){var Ne=y.alloc(xe=t.length(Ce));t.decode(Ce,Ne,0),Ce=Ne}return this.uint32(xe)._push(ye,xe,Ce)},y.prototype.string=function(Ce){var xe=o.length(Ce);return xe?this.uint32(xe)._push(o.write,xe,Ce):this._push(E,1,0)},y.prototype.fork=function(){return this.states=new h(this),this.head=this.tail=new d(p,0,0),this.len=0,this},y.prototype.reset=function(){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 d(p,0,0),this.len=0),this},y.prototype.ldelim=function(){var Ce=this.head,xe=this.tail,Ne=this.len;return this.reset().uint32(Ne),Ne&&(this.tail.next=Ce.next,this.tail=xe,this.len+=Ne),this},y.prototype.finish=function(){for(var Ce=this.head.next,xe=this.constructor.alloc(this.len),Ne=0;Ce;)Ce.fn(Ce.val,xe,Ne),Ne+=Ce.len,Ce=Ce.next;return xe},y._configure=function(we){i=we,y.create=$(),i._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=e;var n=requireWriter();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(){n.call(this)}e._configure=function(){e.alloc=i._Buffer_allocUnsafe,e.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&i.Buffer.prototype.set.name==="set"?function(d,p,h){p.set(d,h)}:function(d,p,h){if(d.copy)d.copy(p,h,0,d.length);else for(var y=0;y<d.length;)p[h++]=d[y++]}},e.prototype.bytes=function(d){i.isString(d)&&(d=i._Buffer_from(d,"base64"));var p=d.length>>>0;return this.uint32(p),p&&this._push(e.writeBytesBuffer,p,d),this};function t(o,d,p){o.length<40?i.utf8.write(o,d,p):d.utf8Write?d.utf8Write(o,p):d.write(o,p)}return e.prototype.string=function(d){var p=i.Buffer.byteLength(d);return this.uint32(p),p&&this._push(t,p,d),this},e._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=d;var n=requireMinimal$1(),i,e=n.LongBits,t=n.utf8;function o(M,H){return RangeError("index out of range: "+M.pos+" + "+(H||1)+" > "+M.len)}function d(M){this.buf=M,this.pos=0,this.len=M.length}var p=typeof Uint8Array<"u"?function(H){if(H instanceof Uint8Array||Array.isArray(H))return new d(H);throw Error("illegal buffer")}:function(H){if(Array.isArray(H))return new d(H);throw Error("illegal buffer")},h=function(){return n.Buffer?function(Z){return(d.create=function(ye){return n.Buffer.isBuffer(ye)?new i(ye):p(ye)})(Z)}:p};d.create=h(),d.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,d.prototype.uint32=(function(){var H=4294967295;return function(){if(H=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(H=(H|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return H;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return H}})(),d.prototype.int32=function(){return this.uint32()|0},d.prototype.sint32=function(){var H=this.uint32();return H>>>1^-(H&1)|0};function y(){var M=new e(0,0),H=0;if(this.len-this.pos>4){for(;H<4;++H)if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*7)>>>0,this.buf[this.pos++]<128)return M;if(M.lo=(M.lo|(this.buf[this.pos]&127)<<28)>>>0,M.hi=(M.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return M;H=0}else{for(;H<3;++H){if(this.pos>=this.len)throw o(this);if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*7)>>>0,this.buf[this.pos++]<128)return M}return M.lo=(M.lo|(this.buf[this.pos++]&127)<<H*7)>>>0,M}if(this.len-this.pos>4){for(;H<5;++H)if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}else for(;H<5;++H){if(this.pos>=this.len)throw o(this);if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}throw Error("invalid varint encoding")}d.prototype.bool=function(){return this.uint32()!==0};function $(M,H){return(M[H-4]|M[H-3]<<8|M[H-2]<<16|M[H-1]<<24)>>>0}d.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)|0};function E(){if(this.pos+8>this.len)throw o(this,8);return new e($(this.buf,this.pos+=4),$(this.buf,this.pos+=4))}return d.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var H=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,H},d.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var H=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,H},d.prototype.bytes=function(){var H=this.uint32(),Z=this.pos,be=this.pos+H;if(be>this.len)throw o(this,H);if(this.pos+=H,Array.isArray(this.buf))return this.buf.slice(Z,be);if(Z===be){var ye=n.Buffer;return ye?ye.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,Z,be)},d.prototype.string=function(){var H=this.bytes();return t.read(H,0,H.length)},d.prototype.skip=function(H){if(typeof H=="number"){if(this.pos+H>this.len)throw o(this,H);this.pos+=H}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},d.prototype.skipType=function(M){switch(M){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(M=this.uint32()&7)!==4;)this.skipType(M);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+M+" at offset "+this.pos)}return this},d._configure=function(M){i=M,d.create=h(),i._configure();var H=n.Long?"toLong":"toNumber";n.merge(d.prototype,{int64:function(){return y.call(this)[H](!1)},uint64:function(){return y.call(this)[H](!0)},sint64:function(){return y.call(this).zzDecode()[H](!1)},fixed64:function(){return E.call(this)[H](!0)},sfixed64:function(){return E.call(this)[H](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=e;var n=requireReader();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(t){n.call(this,t)}return e._configure=function(){i.Buffer&&(e.prototype._slice=i.Buffer.prototype.slice)},e.prototype.string=function(){var o=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+o,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+o,this.len))},e._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=i;var n=requireMinimal$1();(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i;function i(e,t,o){if(typeof e!="function")throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!o}return i.prototype.rpcCall=function e(t,o,d,p,h){if(!p)throw TypeError("request must be specified");var y=this;if(!h)return n.asPromise(e,y,t,o,d,p);if(!y.rpcImpl){setTimeout(function(){h(Error("already ended"))},0);return}try{return y.rpcImpl(t,o[y.requestDelimited?"encodeDelimited":"encode"](p).finish(),function(E,M){if(E)return y.emit("error",E,t),h(E);if(M===null){y.end(!0);return}if(!(M instanceof d))try{M=d[y.responseDelimited?"decodeDelimited":"decode"](M)}catch(H){return y.emit("error",H,t),h(H)}return y.emit("data",M,t),h(null,M)})}catch($){y.emit("error",$,t),setTimeout(function(){h($)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(n){var i=n;i.Service=requireService$1()})(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(n){var i=n;i.build="minimal",i.Writer=requireWriter(),i.BufferWriter=requireWriter_buffer(),i.Reader=requireReader(),i.BufferReader=requireReader_buffer(),i.util=requireMinimal$1(),i.rpc=requireRpc(),i.roots=requireRoots(),i.configure=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),Alert=$root.Alert=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.format=0,n.prototype.icon="",n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Alert;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.format=e.int32();break}case 3:{p.icon=e.string();break}case 4:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Alert)return e;let t=new $root.Alert;switch(e.body!=null&&(t.body=String(e.body)),e.format){default:if(typeof e.format=="number"){t.format=e.format;break}break;case"UNUSED":case 0:t.format=0;break;case"ERROR":case 1:t.format=1;break;case"WARNING":case 2:t.format=2;break;case"INFO":case 3:t.format=3;break;case"SUCCESS":case 4:t.format=4;break}if(e.icon!=null&&(t.icon=String(e.icon)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Alert.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.format=t.enums===String?"UNUSED":0,o.icon="",o.widthConfig=null),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.format!=null&&e.hasOwnProperty("format")&&(o.format=t.enums===String?$root.Alert.Format[e.format]===void 0?e.format:$root.Alert.Format[e.format]:e.format),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Alert"},n.Format=(function(){const i={},e=Object.create(i);return e[i[0]="UNUSED"]=0,e[i[1]="ERROR"]=1,e[i[2]="WARNING"]=2,e[i[3]="INFO"]=3,e[i[4]="SUCCESS"]=4,e})(),n})(),streamlit=$root.streamlit=(()=>{const n={};return n.WidthConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelWidth=null,i.prototype.remWidth=null;let e;return Object.defineProperty(i.prototype,"widthSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelWidth","remWidth"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelWidth!=null&&Object.hasOwnProperty.call(o,"pixelWidth")&&d.uint32(24).uint32(o.pixelWidth),o.remWidth!=null&&Object.hasOwnProperty.call(o,"remWidth")&&d.uint32(37).float(o.remWidth),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.WidthConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelWidth=o.uint32();break}case 4:{y.remWidth=o.float();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.WidthConfig)return o;let d=new $root.streamlit.WidthConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelWidth!=null&&(d.pixelWidth=o.pixelWidth>>>0),o.remWidth!=null&&(d.remWidth=Number(o.remWidth)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.widthSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.widthSpec="useContent")),o.pixelWidth!=null&&o.hasOwnProperty("pixelWidth")&&(p.pixelWidth=o.pixelWidth,d.oneofs&&(p.widthSpec="pixelWidth")),o.remWidth!=null&&o.hasOwnProperty("remWidth")&&(p.remWidth=d.json&&!isFinite(o.remWidth)?String(o.remWidth):o.remWidth,d.oneofs&&(p.widthSpec="remWidth")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.WidthConfig"},i})(),n.HeightConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelHeight=null,i.prototype.remHeight=null;let e;return Object.defineProperty(i.prototype,"heightSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelHeight","remHeight"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelHeight!=null&&Object.hasOwnProperty.call(o,"pixelHeight")&&d.uint32(24).uint32(o.pixelHeight),o.remHeight!=null&&Object.hasOwnProperty.call(o,"remHeight")&&d.uint32(37).float(o.remHeight),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.HeightConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelHeight=o.uint32();break}case 4:{y.remHeight=o.float();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.HeightConfig)return o;let d=new $root.streamlit.HeightConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelHeight!=null&&(d.pixelHeight=o.pixelHeight>>>0),o.remHeight!=null&&(d.remHeight=Number(o.remHeight)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.heightSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.heightSpec="useContent")),o.pixelHeight!=null&&o.hasOwnProperty("pixelHeight")&&(p.pixelHeight=o.pixelHeight,d.oneofs&&(p.heightSpec="pixelHeight")),o.remHeight!=null&&o.hasOwnProperty("remHeight")&&(p.remHeight=d.json&&!isFinite(o.remHeight)?String(o.remHeight):o.remHeight,d.oneofs&&(p.heightSpec="remHeight")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.HeightConfig"},i})(),n.GapSize=(function(){const i={},e=Object.create(i);return e[i[0]="GAP_UNDEFINED"]=0,e[i[1]="SMALL"]=1,e[i[2]="MEDIUM"]=2,e[i[3]="LARGE"]=3,e[i[4]="NONE"]=4,e[i[5]="XXSMALL"]=5,e[i[6]="XSMALL"]=6,e[i[7]="XLARGE"]=7,e[i[8]="XXLARGE"]=8,e})(),n.GapConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.gapSize=null;let e;return Object.defineProperty(i.prototype,"gapSpec",{get:$util.oneOfGetter(e=["gapSize"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.gapSize!=null&&Object.hasOwnProperty.call(o,"gapSize")&&d.uint32(8).int32(o.gapSize),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.GapConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gapSize=o.int32();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.GapConfig)return o;let d=new $root.streamlit.GapConfig;switch(o.gapSize){default:if(typeof o.gapSize=="number"){d.gapSize=o.gapSize;break}break;case"GAP_UNDEFINED":case 0:d.gapSize=0;break;case"SMALL":case 1:d.gapSize=1;break;case"MEDIUM":case 2:d.gapSize=2;break;case"LARGE":case 3:d.gapSize=3;break;case"NONE":case 4:d.gapSize=4;break;case"XXSMALL":case 5:d.gapSize=5;break;case"XSMALL":case 6:d.gapSize=6;break;case"XLARGE":case 7:d.gapSize=7;break;case"XXLARGE":case 8:d.gapSize=8;break}return d},i.toObject=function(o,d){d||(d={});let p={};return o.gapSize!=null&&o.hasOwnProperty("gapSize")&&(p.gapSize=d.enums===String?$root.streamlit.GapSize[o.gapSize]===void 0?o.gapSize:$root.streamlit.GapSize[o.gapSize]:o.gapSize,d.oneofs&&(p.gapSpec="gapSize")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.GapConfig"},i})(),n.ButtonLikeIconPosition=(function(){const i={},e=Object.create(i);return e[i[0]="LEFT"]=0,e[i[1]="RIGHT"]=1,e})(),n.TextAlignmentConfig=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.alignment=0,i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.alignment!=null&&Object.hasOwnProperty.call(t,"alignment")&&o.uint32(8).int32(t.alignment),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.streamlit.TextAlignmentConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.alignment=t.int32();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.streamlit.TextAlignmentConfig)return t;let o=new $root.streamlit.TextAlignmentConfig;switch(t.alignment){default:if(typeof t.alignment=="number"){o.alignment=t.alignment;break}break;case"UNSPECIFIED":case 0:o.alignment=0;break;case"LEFT":case 1:o.alignment=1;break;case"CENTER":case 2:o.alignment=2;break;case"RIGHT":case 3:o.alignment=3;break;case"JUSTIFY":case 4:o.alignment=4;break}return o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.alignment=o.enums===String?"UNSPECIFIED":0),t.alignment!=null&&t.hasOwnProperty("alignment")&&(d.alignment=o.enums===String?$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]===void 0?t.alignment:$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]:t.alignment),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/streamlit.TextAlignmentConfig"},i.Alignment=(function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LEFT"]=1,t[e[2]="CENTER"]=2,t[e[3]="RIGHT"]=3,t[e[4]="JUSTIFY"]=4,t})(),i})(),n})();$root.AppPage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.icon="",n.prototype.isDefault=!1,n.prototype.sectionHeader="",n.prototype.urlPathname="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.isDefault!=null&&Object.hasOwnProperty.call(e,"isDefault")&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&Object.hasOwnProperty.call(e,"sectionHeader")&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&Object.hasOwnProperty.call(e,"urlPathname")&&t.uint32(50).string(e.urlPathname),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AppPage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageScriptHash=e.string();break}case 2:{p.pageName=e.string();break}case 3:{p.icon=e.string();break}case 4:{p.isDefault=e.bool();break}case 5:{p.sectionHeader=e.string();break}case 6:{p.urlPathname=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AppPage)return e;let t=new $root.AppPage;return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.icon!=null&&(t.icon=String(e.icon)),e.isDefault!=null&&(t.isDefault=!!e.isDefault),e.sectionHeader!=null&&(t.sectionHeader=String(e.sectionHeader)),e.urlPathname!=null&&(t.urlPathname=String(e.urlPathname)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageScriptHash="",o.pageName="",o.icon="",o.isDefault=!1,o.sectionHeader="",o.urlPathname=""),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.isDefault!=null&&e.hasOwnProperty("isDefault")&&(o.isDefault=e.isDefault),e.sectionHeader!=null&&e.hasOwnProperty("sectionHeader")&&(o.sectionHeader=e.sectionHeader),e.urlPathname!=null&&e.hasOwnProperty("urlPathname")&&(o.urlPathname=e.urlPathname),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AppPage"},n})();const Arrow$2=$root.Arrow=(()=>{function n(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=$util.newBuffer([]),n.prototype.styler=null,n.prototype.id="",n.prototype.columns="",n.prototype.editingMode=0,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.columnOrder=$util.emptyArray,n.prototype.selectionMode=$util.emptyArray,n.prototype.rowHeight=null,n.prototype.borderMode=0,n.prototype.placeholder=null;let i;return Object.defineProperty(n.prototype,"_rowHeight",{get:$util.oneOfGetter(i=["rowHeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_placeholder",{get:$util.oneOfGetter(i=["placeholder"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).bytes(t.data),t.styler!=null&&Object.hasOwnProperty.call(t,"styler")&&$root.Styler.encode(t.styler,o.uint32(18).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(50).string(t.id),t.columns!=null&&Object.hasOwnProperty.call(t,"columns")&&o.uint32(58).string(t.columns),t.editingMode!=null&&Object.hasOwnProperty.call(t,"editingMode")&&o.uint32(64).int32(t.editingMode),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(82).string(t.formId),t.columnOrder!=null&&t.columnOrder.length)for(let d=0;d<t.columnOrder.length;++d)o.uint32(90).string(t.columnOrder[d]);if(t.selectionMode!=null&&t.selectionMode.length){o.uint32(98).fork();for(let d=0;d<t.selectionMode.length;++d)o.int32(t.selectionMode[d]);o.ldelim()}return t.rowHeight!=null&&Object.hasOwnProperty.call(t,"rowHeight")&&o.uint32(104).uint32(t.rowHeight),t.borderMode!=null&&Object.hasOwnProperty.call(t,"borderMode")&&o.uint32(112).int32(t.borderMode),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(122).string(t.placeholder),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Arrow;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.bytes();break}case 2:{h.styler=$root.Styler.decode(t,t.uint32());break}case 6:{h.id=t.string();break}case 7:{h.columns=t.string();break}case 8:{h.editingMode=t.int32();break}case 9:{h.disabled=t.bool();break}case 10:{h.formId=t.string();break}case 11:{h.columnOrder&&h.columnOrder.length||(h.columnOrder=[]),h.columnOrder.push(t.string());break}case 12:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.selectionMode.push(t.int32())}else h.selectionMode.push(t.int32());break}case 13:{h.rowHeight=t.uint32();break}case 14:{h.borderMode=t.int32();break}case 15:{h.placeholder=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Arrow)return t;let o=new $root.Arrow;if(t.data!=null&&(typeof t.data=="string"?$util.base64.decode(t.data,o.data=$util.newBuffer($util.base64.length(t.data)),0):t.data.length>=0&&(o.data=t.data)),t.styler!=null){if(typeof t.styler!="object")throw TypeError(".Arrow.styler: object expected");o.styler=$root.Styler.fromObject(t.styler)}switch(t.id!=null&&(o.id=String(t.id)),t.columns!=null&&(o.columns=String(t.columns)),t.editingMode){default:if(typeof t.editingMode=="number"){o.editingMode=t.editingMode;break}break;case"READ_ONLY":case 0:o.editingMode=0;break;case"FIXED":case 1:o.editingMode=1;break;case"DYNAMIC":case 2:o.editingMode=2;break;case"ADD_ONLY":case 3:o.editingMode=3;break;case"DELETE_ONLY":case 4:o.editingMode=4;break}if(t.disabled!=null&&(o.disabled=!!t.disabled),t.formId!=null&&(o.formId=String(t.formId)),t.columnOrder){if(!Array.isArray(t.columnOrder))throw TypeError(".Arrow.columnOrder: array expected");o.columnOrder=[];for(let d=0;d<t.columnOrder.length;++d)o.columnOrder[d]=String(t.columnOrder[d])}if(t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".Arrow.selectionMode: array expected");o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)switch(t.selectionMode[d]){default:if(typeof t.selectionMode[d]=="number"){o.selectionMode[d]=t.selectionMode[d];break}case"SINGLE_ROW":case 0:o.selectionMode[d]=0;break;case"MULTI_ROW":case 1:o.selectionMode[d]=1;break;case"SINGLE_COLUMN":case 2:o.selectionMode[d]=2;break;case"MULTI_COLUMN":case 3:o.selectionMode[d]=3;break;case"SINGLE_CELL":case 4:o.selectionMode[d]=4;break;case"MULTI_CELL":case 5:o.selectionMode[d]=5;break}}switch(t.rowHeight!=null&&(o.rowHeight=t.rowHeight>>>0),t.borderMode){default:if(typeof t.borderMode=="number"){o.borderMode=t.borderMode;break}break;case"ALL":case 0:o.borderMode=0;break;case"NONE":case 1:o.borderMode=1;break;case"HORIZONTAL":case 2:o.borderMode=2;break}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.columnOrder=[],d.selectionMode=[]),o.defaults&&(o.bytes===String?d.data="":(d.data=[],o.bytes!==Array&&(d.data=$util.newBuffer(d.data))),d.styler=null,d.id="",d.columns="",d.editingMode=o.enums===String?"READ_ONLY":0,d.disabled=!1,d.formId="",d.borderMode=o.enums===String?"ALL":0),t.data!=null&&t.hasOwnProperty("data")&&(d.data=o.bytes===String?$util.base64.encode(t.data,0,t.data.length):o.bytes===Array?Array.prototype.slice.call(t.data):t.data),t.styler!=null&&t.hasOwnProperty("styler")&&(d.styler=$root.Styler.toObject(t.styler,o)),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.columns!=null&&t.hasOwnProperty("columns")&&(d.columns=t.columns),t.editingMode!=null&&t.hasOwnProperty("editingMode")&&(d.editingMode=o.enums===String?$root.Arrow.EditingMode[t.editingMode]===void 0?t.editingMode:$root.Arrow.EditingMode[t.editingMode]:t.editingMode),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.columnOrder&&t.columnOrder.length){d.columnOrder=[];for(let p=0;p<t.columnOrder.length;++p)d.columnOrder[p]=t.columnOrder[p]}if(t.selectionMode&&t.selectionMode.length){d.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)d.selectionMode[p]=o.enums===String?$root.Arrow.SelectionMode[t.selectionMode[p]]===void 0?t.selectionMode[p]:$root.Arrow.SelectionMode[t.selectionMode[p]]:t.selectionMode[p]}return t.rowHeight!=null&&t.hasOwnProperty("rowHeight")&&(d.rowHeight=t.rowHeight,o.oneofs&&(d._rowHeight="rowHeight")),t.borderMode!=null&&t.hasOwnProperty("borderMode")&&(d.borderMode=o.enums===String?$root.Arrow.BorderMode[t.borderMode]===void 0?t.borderMode:$root.Arrow.BorderMode[t.borderMode]:t.borderMode),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder,o.oneofs&&(d._placeholder="placeholder")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Arrow"},n.EditingMode=(function(){const e={},t=Object.create(e);return t[e[0]="READ_ONLY"]=0,t[e[1]="FIXED"]=1,t[e[2]="DYNAMIC"]=2,t[e[3]="ADD_ONLY"]=3,t[e[4]="DELETE_ONLY"]=4,t})(),n.SelectionMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_ROW"]=0,t[e[1]="MULTI_ROW"]=1,t[e[2]="SINGLE_COLUMN"]=2,t[e[3]="MULTI_COLUMN"]=3,t[e[4]="SINGLE_CELL"]=4,t[e[5]="MULTI_CELL"]=5,t})(),n.BorderMode=(function(){const e={},t=Object.create(e);return t[e[0]="ALL"]=0,t[e[1]="NONE"]=1,t[e[2]="HORIZONTAL"]=2,t})(),n})();$root.Styler=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Styler;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=e.string();break}case 2:{p.caption=e.string();break}case 3:{p.styles=e.string();break}case 4:{p.displayValues=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Styler)return e;let t=new $root.Styler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.uuid="",o.caption="",o.styles="",t.bytes===String?o.displayValues="":(o.displayValues=[],t.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(o.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(o.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(o.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Styler"},n})();$root.ArrowData=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowData;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowData)return e;let t=new $root.ArrowData;return e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data)))),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowData"},n})();$root.ArrowNamedDataSet=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowNamedDataSet;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 3:{p.hasName=e.bool();break}case 2:{p.data=$root.Arrow.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowNamedDataSet)return e;let t=new $root.ArrowNamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=$root.Arrow.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.name="",o.data=null,o.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Arrow.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(o.hasName=e.hasName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowNamedDataSet"},n})();$root.ArrowVegaLiteChart=(()=>{function n(i){if(this.datasets=[],this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let o=0;o<e.datasets.length;++o)$root.ArrowNamedDataSet.encode(e.datasets[o],t.uint32(34).fork()).ldelim();if(e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let o=0;o<e.selectionMode.length;++o)t.uint32(66).string(e.selectionMode[o]);return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowVegaLiteChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 2:{p.data=$root.Arrow.decode(e,e.uint32());break}case 4:{p.datasets&&p.datasets.length||(p.datasets=[]),p.datasets.push($root.ArrowNamedDataSet.decode(e,e.uint32()));break}case 5:{p.useContainerWidth=e.bool();break}case 6:{p.theme=e.string();break}case 7:{p.id=e.string();break}case 8:{p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),p.selectionMode.push(e.string());break}case 9:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowVegaLiteChart)return e;let t=new $root.ArrowVegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=$root.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let o=0;o<e.datasets.length;++o){if(typeof e.datasets[o]!="object")throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[o]=$root.ArrowNamedDataSet.fromObject(e.datasets[o])}}if(e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".ArrowVegaLiteChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)t.selectionMode[o]=String(e.selectionMode[o])}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.datasets=[],o.selectionMode=[]),t.defaults&&(o.spec="",o.data=null,o.useContainerWidth=!1,o.theme="",o.id="",o.formId=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){o.datasets=[];for(let d=0;d<e.datasets.length;++d)o.datasets[d]=$root.ArrowNamedDataSet.toObject(e.datasets[d],t)}if(e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.theme!=null&&e.hasOwnProperty("theme")&&(o.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowVegaLiteChart"},n})();$root.Audio=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(48).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(56).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&o.uint32(64).bool(t.autoplay),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(74).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(82).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Audio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 6:{h.endTime=t.int32();break}case 7:{h.loop=t.bool();break}case 8:{h.autoplay=t.bool();break}case 9:{h.id=t.string();break}case 10:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Audio)return t;let o=new $root.Audio;if(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Audio.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.startTime=0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Audio"},n})();$root.AudioInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.sampleRate=null;let i;return Object.defineProperty(n.prototype,"_sampleRate",{get:$util.oneOfGetter(i=["sampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(26).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(34).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(40).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(50).fork()).ldelim(),t.sampleRate!=null&&Object.hasOwnProperty.call(t,"sampleRate")&&o.uint32(56).int32(t.sampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.AudioInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.help=t.string();break}case 4:{h.formId=t.string();break}case 5:{h.disabled=t.bool();break}case 6:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 7:{h.sampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.AudioInput)return t;let o=new $root.AudioInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.sampleRate!=null&&(o.sampleRate=t.sampleRate|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.sampleRate!=null&&t.hasOwnProperty("sampleRate")&&(d.sampleRate=t.sampleRate,o.oneofs&&(d._sampleRate="sampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AudioInput"},n})();const LabelVisibility=$root.LabelVisibility=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LabelVisibility;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LabelVisibility)return e;let t=new $root.LabelVisibility;switch(e.value){default:if(typeof e.value=="number"){t.value=e.value;break}break;case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=t.enums===String?"VISIBLE":0),e.value!=null&&e.hasOwnProperty("value")&&(o.value=t.enums===String?$root.LabelVisibility.LabelVisibilityOptions[e.value]===void 0?e.value:$root.LabelVisibility.LabelVisibilityOptions[e.value]:e.value),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LabelVisibility"},n.LabelVisibilityOptions=(function(){const i={},e=Object.create(i);return e[i[0]="VISIBLE"]=0,e[i[1]="HIDDEN"]=1,e[i[2]="COLLAPSED"]=2,e})(),n})();$root.AuthRedirect=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AuthRedirect;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AuthRedirect)return e;let t=new $root.AuthRedirect;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AuthRedirect"},n})();$root.AutoRerun=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.interval=0,n.prototype.fragmentId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.interval!=null&&Object.hasOwnProperty.call(e,"interval")&&t.uint32(13).float(e.interval),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(18).string(e.fragmentId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AutoRerun;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.interval=e.float();break}case 2:{p.fragmentId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AutoRerun)return e;let t=new $root.AutoRerun;return e.interval!=null&&(t.interval=Number(e.interval)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.interval=0,o.fragmentId=""),e.interval!=null&&e.hasOwnProperty("interval")&&(o.interval=t.json&&!isFinite(e.interval)?String(e.interval):e.interval),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AutoRerun"},n})();const BackMsg=$root.BackMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.clearCache=null,n.prototype.setRunOnSave=null,n.prototype.stopScript=null,n.prototype.rerunScript=null,n.prototype.loadGitInfo=null,n.prototype.debugDisconnectWebsocket=null,n.prototype.debugShutdownRuntime=null,n.prototype.fileUrlsRequest=null,n.prototype.appHeartbeat=null,n.prototype.deferredFileRequest=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime","fileUrlsRequest","appHeartbeat","deferredFileRequest"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.clearCache!=null&&Object.hasOwnProperty.call(t,"clearCache")&&o.uint32(40).bool(t.clearCache),t.setRunOnSave!=null&&Object.hasOwnProperty.call(t,"setRunOnSave")&&o.uint32(48).bool(t.setRunOnSave),t.stopScript!=null&&Object.hasOwnProperty.call(t,"stopScript")&&o.uint32(56).bool(t.stopScript),t.rerunScript!=null&&Object.hasOwnProperty.call(t,"rerunScript")&&$root.ClientState.encode(t.rerunScript,o.uint32(90).fork()).ldelim(),t.loadGitInfo!=null&&Object.hasOwnProperty.call(t,"loadGitInfo")&&o.uint32(96).bool(t.loadGitInfo),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugLastBackmsgId")&&o.uint32(106).string(t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(t,"debugDisconnectWebsocket")&&o.uint32(112).bool(t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(t,"debugShutdownRuntime")&&o.uint32(120).bool(t.debugShutdownRuntime),t.fileUrlsRequest!=null&&Object.hasOwnProperty.call(t,"fileUrlsRequest")&&$root.FileURLsRequest.encode(t.fileUrlsRequest,o.uint32(130).fork()).ldelim(),t.appHeartbeat!=null&&Object.hasOwnProperty.call(t,"appHeartbeat")&&o.uint32(136).bool(t.appHeartbeat),t.deferredFileRequest!=null&&Object.hasOwnProperty.call(t,"deferredFileRequest")&&$root.DeferredFileRequest.encode(t.deferredFileRequest,o.uint32(146).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BackMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.clearCache=t.bool();break}case 6:{h.setRunOnSave=t.bool();break}case 7:{h.stopScript=t.bool();break}case 11:{h.rerunScript=$root.ClientState.decode(t,t.uint32());break}case 12:{h.loadGitInfo=t.bool();break}case 14:{h.debugDisconnectWebsocket=t.bool();break}case 15:{h.debugShutdownRuntime=t.bool();break}case 16:{h.fileUrlsRequest=$root.FileURLsRequest.decode(t,t.uint32());break}case 17:{h.appHeartbeat=t.bool();break}case 18:{h.deferredFileRequest=$root.DeferredFileRequest.decode(t,t.uint32());break}case 13:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BackMsg)return t;let o=new $root.BackMsg;if(t.clearCache!=null&&(o.clearCache=!!t.clearCache),t.setRunOnSave!=null&&(o.setRunOnSave=!!t.setRunOnSave),t.stopScript!=null&&(o.stopScript=!!t.stopScript),t.rerunScript!=null){if(typeof t.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");o.rerunScript=$root.ClientState.fromObject(t.rerunScript)}if(t.loadGitInfo!=null&&(o.loadGitInfo=!!t.loadGitInfo),t.debugDisconnectWebsocket!=null&&(o.debugDisconnectWebsocket=!!t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&(o.debugShutdownRuntime=!!t.debugShutdownRuntime),t.fileUrlsRequest!=null){if(typeof t.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");o.fileUrlsRequest=$root.FileURLsRequest.fromObject(t.fileUrlsRequest)}if(t.appHeartbeat!=null&&(o.appHeartbeat=!!t.appHeartbeat),t.deferredFileRequest!=null){if(typeof t.deferredFileRequest!="object")throw TypeError(".BackMsg.deferredFileRequest: object expected");o.deferredFileRequest=$root.DeferredFileRequest.fromObject(t.deferredFileRequest)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugLastBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.debugLastBackmsgId=""),t.clearCache!=null&&t.hasOwnProperty("clearCache")&&(d.clearCache=t.clearCache,o.oneofs&&(d.type="clearCache")),t.setRunOnSave!=null&&t.hasOwnProperty("setRunOnSave")&&(d.setRunOnSave=t.setRunOnSave,o.oneofs&&(d.type="setRunOnSave")),t.stopScript!=null&&t.hasOwnProperty("stopScript")&&(d.stopScript=t.stopScript,o.oneofs&&(d.type="stopScript")),t.rerunScript!=null&&t.hasOwnProperty("rerunScript")&&(d.rerunScript=$root.ClientState.toObject(t.rerunScript,o),o.oneofs&&(d.type="rerunScript")),t.loadGitInfo!=null&&t.hasOwnProperty("loadGitInfo")&&(d.loadGitInfo=t.loadGitInfo,o.oneofs&&(d.type="loadGitInfo")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&t.hasOwnProperty("debugDisconnectWebsocket")&&(d.debugDisconnectWebsocket=t.debugDisconnectWebsocket,o.oneofs&&(d.type="debugDisconnectWebsocket")),t.debugShutdownRuntime!=null&&t.hasOwnProperty("debugShutdownRuntime")&&(d.debugShutdownRuntime=t.debugShutdownRuntime,o.oneofs&&(d.type="debugShutdownRuntime")),t.fileUrlsRequest!=null&&t.hasOwnProperty("fileUrlsRequest")&&(d.fileUrlsRequest=$root.FileURLsRequest.toObject(t.fileUrlsRequest,o),o.oneofs&&(d.type="fileUrlsRequest")),t.appHeartbeat!=null&&t.hasOwnProperty("appHeartbeat")&&(d.appHeartbeat=t.appHeartbeat,o.oneofs&&(d.type="appHeartbeat")),t.deferredFileRequest!=null&&t.hasOwnProperty("deferredFileRequest")&&(d.deferredFileRequest=$root.DeferredFileRequest.toObject(t.deferredFileRequest,o),o.oneofs&&(d.type="deferredFileRequest")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BackMsg"},n})();$root.DeferredFileRequest=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(18).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileRequest)return e;let t=new $root.DeferredFileRequest;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.sessionId=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileRequest"},n})();$root.ContextInfo=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.timezone=null,n.prototype.timezoneOffset=null,n.prototype.locale=null,n.prototype.url=null,n.prototype.isEmbedded=null,n.prototype.colorScheme=null;let i;return Object.defineProperty(n.prototype,"_timezone",{get:$util.oneOfGetter(i=["timezone"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_timezoneOffset",{get:$util.oneOfGetter(i=["timezoneOffset"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_locale",{get:$util.oneOfGetter(i=["locale"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_url",{get:$util.oneOfGetter(i=["url"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_isEmbedded",{get:$util.oneOfGetter(i=["isEmbedded"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_colorScheme",{get:$util.oneOfGetter(i=["colorScheme"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&o.uint32(10).string(t.timezone),t.timezoneOffset!=null&&Object.hasOwnProperty.call(t,"timezoneOffset")&&o.uint32(16).int32(t.timezoneOffset),t.locale!=null&&Object.hasOwnProperty.call(t,"locale")&&o.uint32(26).string(t.locale),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(34).string(t.url),t.isEmbedded!=null&&Object.hasOwnProperty.call(t,"isEmbedded")&&o.uint32(40).bool(t.isEmbedded),t.colorScheme!=null&&Object.hasOwnProperty.call(t,"colorScheme")&&o.uint32(50).string(t.colorScheme),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ContextInfo;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.timezone=t.string();break}case 2:{h.timezoneOffset=t.int32();break}case 3:{h.locale=t.string();break}case 4:{h.url=t.string();break}case 5:{h.isEmbedded=t.bool();break}case 6:{h.colorScheme=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ContextInfo)return t;let o=new $root.ContextInfo;return t.timezone!=null&&(o.timezone=String(t.timezone)),t.timezoneOffset!=null&&(o.timezoneOffset=t.timezoneOffset|0),t.locale!=null&&(o.locale=String(t.locale)),t.url!=null&&(o.url=String(t.url)),t.isEmbedded!=null&&(o.isEmbedded=!!t.isEmbedded),t.colorScheme!=null&&(o.colorScheme=String(t.colorScheme)),o},n.toObject=function(t,o){o||(o={});let d={};return t.timezone!=null&&t.hasOwnProperty("timezone")&&(d.timezone=t.timezone,o.oneofs&&(d._timezone="timezone")),t.timezoneOffset!=null&&t.hasOwnProperty("timezoneOffset")&&(d.timezoneOffset=t.timezoneOffset,o.oneofs&&(d._timezoneOffset="timezoneOffset")),t.locale!=null&&t.hasOwnProperty("locale")&&(d.locale=t.locale,o.oneofs&&(d._locale="locale")),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url,o.oneofs&&(d._url="url")),t.isEmbedded!=null&&t.hasOwnProperty("isEmbedded")&&(d.isEmbedded=t.isEmbedded,o.oneofs&&(d._isEmbedded="isEmbedded")),t.colorScheme!=null&&t.hasOwnProperty("colorScheme")&&(d.colorScheme=t.colorScheme,o.oneofs&&(d._colorScheme="colorScheme")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ContextInfo"},n})();$root.ClientState=(()=>{function n(i){if(this.cachedMessageHashes=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.queryString="",n.prototype.widgetStates=null,n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.fragmentId="",n.prototype.isAutoRerun=!1,n.prototype.cachedMessageHashes=$util.emptyArray,n.prototype.contextInfo=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&Object.hasOwnProperty.call(e,"widgetStates")&&$root.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&Object.hasOwnProperty.call(e,"isAutoRerun")&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let o=0;o<e.cachedMessageHashes.length;++o)t.uint32(58).string(e.cachedMessageHashes[o]);return e.contextInfo!=null&&Object.hasOwnProperty.call(e,"contextInfo")&&$root.ContextInfo.encode(e.contextInfo,t.uint32(66).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ClientState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}case 2:{p.widgetStates=$root.WidgetStates.decode(e,e.uint32());break}case 3:{p.pageScriptHash=e.string();break}case 4:{p.pageName=e.string();break}case 5:{p.fragmentId=e.string();break}case 6:{p.isAutoRerun=e.bool();break}case 7:{p.cachedMessageHashes&&p.cachedMessageHashes.length||(p.cachedMessageHashes=[]),p.cachedMessageHashes.push(e.string());break}case 8:{p.contextInfo=$root.ContextInfo.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ClientState)return e;let t=new $root.ClientState;if(e.queryString!=null&&(t.queryString=String(e.queryString)),e.widgetStates!=null){if(typeof e.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=$root.WidgetStates.fromObject(e.widgetStates)}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),e.isAutoRerun!=null&&(t.isAutoRerun=!!e.isAutoRerun),e.cachedMessageHashes){if(!Array.isArray(e.cachedMessageHashes))throw TypeError(".ClientState.cachedMessageHashes: array expected");t.cachedMessageHashes=[];for(let o=0;o<e.cachedMessageHashes.length;++o)t.cachedMessageHashes[o]=String(e.cachedMessageHashes[o])}if(e.contextInfo!=null){if(typeof e.contextInfo!="object")throw TypeError(".ClientState.contextInfo: object expected");t.contextInfo=$root.ContextInfo.fromObject(e.contextInfo)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.cachedMessageHashes=[]),t.defaults&&(o.queryString="",o.widgetStates=null,o.pageScriptHash="",o.pageName="",o.fragmentId="",o.isAutoRerun=!1,o.contextInfo=null),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),e.widgetStates!=null&&e.hasOwnProperty("widgetStates")&&(o.widgetStates=$root.WidgetStates.toObject(e.widgetStates,t)),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),e.isAutoRerun!=null&&e.hasOwnProperty("isAutoRerun")&&(o.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){o.cachedMessageHashes=[];for(let d=0;d<e.cachedMessageHashes.length;++d)o.cachedMessageHashes[d]=e.cachedMessageHashes[d]}return e.contextInfo!=null&&e.hasOwnProperty("contextInfo")&&(o.contextInfo=$root.ContextInfo.toObject(e.contextInfo,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ClientState"},n})();const WidgetStates=$root.WidgetStates=(()=>{function n(i){if(this.widgets=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.widgets=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.widgets!=null&&e.widgets.length)for(let o=0;o<e.widgets.length;++o)$root.WidgetState.encode(e.widgets[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.WidgetStates;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.widgets&&p.widgets.length||(p.widgets=[]),p.widgets.push($root.WidgetState.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.WidgetStates)return e;let t=new $root.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let o=0;o<e.widgets.length;++o){if(typeof e.widgets[o]!="object")throw TypeError(".WidgetStates.widgets: object expected");t.widgets[o]=$root.WidgetState.fromObject(e.widgets[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.widgets=[]),e.widgets&&e.widgets.length){o.widgets=[];for(let d=0;d<e.widgets.length;++d)o.widgets[d]=$root.WidgetState.toObject(e.widgets[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/WidgetStates"},n})(),WidgetState=$root.WidgetState=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.triggerValue=null,n.prototype.boolValue=null,n.prototype.doubleValue=null,n.prototype.intValue=null,n.prototype.stringValue=null,n.prototype.doubleArrayValue=null,n.prototype.intArrayValue=null,n.prototype.stringArrayValue=null,n.prototype.jsonValue=null,n.prototype.arrowValue=null,n.prototype.bytesValue=null,n.prototype.fileUploaderStateValue=null,n.prototype.stringTriggerValue=null,n.prototype.chatInputValue=null,n.prototype.jsonTriggerValue=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue","stringTriggerValue","chatInputValue","jsonTriggerValue"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.triggerValue!=null&&Object.hasOwnProperty.call(t,"triggerValue")&&o.uint32(16).bool(t.triggerValue),t.boolValue!=null&&Object.hasOwnProperty.call(t,"boolValue")&&o.uint32(24).bool(t.boolValue),t.doubleValue!=null&&Object.hasOwnProperty.call(t,"doubleValue")&&o.uint32(33).double(t.doubleValue),t.intValue!=null&&Object.hasOwnProperty.call(t,"intValue")&&o.uint32(40).sint64(t.intValue),t.stringValue!=null&&Object.hasOwnProperty.call(t,"stringValue")&&o.uint32(50).string(t.stringValue),t.doubleArrayValue!=null&&Object.hasOwnProperty.call(t,"doubleArrayValue")&&$root.DoubleArray.encode(t.doubleArrayValue,o.uint32(58).fork()).ldelim(),t.intArrayValue!=null&&Object.hasOwnProperty.call(t,"intArrayValue")&&$root.SInt64Array.encode(t.intArrayValue,o.uint32(66).fork()).ldelim(),t.stringArrayValue!=null&&Object.hasOwnProperty.call(t,"stringArrayValue")&&$root.StringArray.encode(t.stringArrayValue,o.uint32(74).fork()).ldelim(),t.jsonValue!=null&&Object.hasOwnProperty.call(t,"jsonValue")&&o.uint32(82).string(t.jsonValue),t.arrowValue!=null&&Object.hasOwnProperty.call(t,"arrowValue")&&$root.ArrowTable.encode(t.arrowValue,o.uint32(90).fork()).ldelim(),t.bytesValue!=null&&Object.hasOwnProperty.call(t,"bytesValue")&&o.uint32(98).bytes(t.bytesValue),t.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(t,"fileUploaderStateValue")&&$root.FileUploaderState.encode(t.fileUploaderStateValue,o.uint32(106).fork()).ldelim(),t.stringTriggerValue!=null&&Object.hasOwnProperty.call(t,"stringTriggerValue")&&$root.StringTriggerValue.encode(t.stringTriggerValue,o.uint32(114).fork()).ldelim(),t.chatInputValue!=null&&Object.hasOwnProperty.call(t,"chatInputValue")&&$root.ChatInputValue.encode(t.chatInputValue,o.uint32(122).fork()).ldelim(),t.jsonTriggerValue!=null&&Object.hasOwnProperty.call(t,"jsonTriggerValue")&&o.uint32(130).string(t.jsonTriggerValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.WidgetState;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.triggerValue=t.bool();break}case 3:{h.boolValue=t.bool();break}case 4:{h.doubleValue=t.double();break}case 5:{h.intValue=t.sint64();break}case 6:{h.stringValue=t.string();break}case 7:{h.doubleArrayValue=$root.DoubleArray.decode(t,t.uint32());break}case 8:{h.intArrayValue=$root.SInt64Array.decode(t,t.uint32());break}case 9:{h.stringArrayValue=$root.StringArray.decode(t,t.uint32());break}case 10:{h.jsonValue=t.string();break}case 11:{h.arrowValue=$root.ArrowTable.decode(t,t.uint32());break}case 12:{h.bytesValue=t.bytes();break}case 13:{h.fileUploaderStateValue=$root.FileUploaderState.decode(t,t.uint32());break}case 14:{h.stringTriggerValue=$root.StringTriggerValue.decode(t,t.uint32());break}case 15:{h.chatInputValue=$root.ChatInputValue.decode(t,t.uint32());break}case 16:{h.jsonTriggerValue=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.WidgetState)return t;let o=new $root.WidgetState;if(t.id!=null&&(o.id=String(t.id)),t.triggerValue!=null&&(o.triggerValue=!!t.triggerValue),t.boolValue!=null&&(o.boolValue=!!t.boolValue),t.doubleValue!=null&&(o.doubleValue=Number(t.doubleValue)),t.intValue!=null&&($util.Long?(o.intValue=$util.Long.fromValue(t.intValue)).unsigned=!1:typeof t.intValue=="string"?o.intValue=parseInt(t.intValue,10):typeof t.intValue=="number"?o.intValue=t.intValue:typeof t.intValue=="object"&&(o.intValue=new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber())),t.stringValue!=null&&(o.stringValue=String(t.stringValue)),t.doubleArrayValue!=null){if(typeof t.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");o.doubleArrayValue=$root.DoubleArray.fromObject(t.doubleArrayValue)}if(t.intArrayValue!=null){if(typeof t.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");o.intArrayValue=$root.SInt64Array.fromObject(t.intArrayValue)}if(t.stringArrayValue!=null){if(typeof t.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");o.stringArrayValue=$root.StringArray.fromObject(t.stringArrayValue)}if(t.jsonValue!=null&&(o.jsonValue=String(t.jsonValue)),t.arrowValue!=null){if(typeof t.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");o.arrowValue=$root.ArrowTable.fromObject(t.arrowValue)}if(t.bytesValue!=null&&(typeof t.bytesValue=="string"?$util.base64.decode(t.bytesValue,o.bytesValue=$util.newBuffer($util.base64.length(t.bytesValue)),0):t.bytesValue.length>=0&&(o.bytesValue=t.bytesValue)),t.fileUploaderStateValue!=null){if(typeof t.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");o.fileUploaderStateValue=$root.FileUploaderState.fromObject(t.fileUploaderStateValue)}if(t.stringTriggerValue!=null){if(typeof t.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");o.stringTriggerValue=$root.StringTriggerValue.fromObject(t.stringTriggerValue)}if(t.chatInputValue!=null){if(typeof t.chatInputValue!="object")throw TypeError(".WidgetState.chatInputValue: object expected");o.chatInputValue=$root.ChatInputValue.fromObject(t.chatInputValue)}return t.jsonTriggerValue!=null&&(o.jsonTriggerValue=String(t.jsonTriggerValue)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.triggerValue!=null&&t.hasOwnProperty("triggerValue")&&(d.triggerValue=t.triggerValue,o.oneofs&&(d.value="triggerValue")),t.boolValue!=null&&t.hasOwnProperty("boolValue")&&(d.boolValue=t.boolValue,o.oneofs&&(d.value="boolValue")),t.doubleValue!=null&&t.hasOwnProperty("doubleValue")&&(d.doubleValue=o.json&&!isFinite(t.doubleValue)?String(t.doubleValue):t.doubleValue,o.oneofs&&(d.value="doubleValue")),t.intValue!=null&&t.hasOwnProperty("intValue")&&(typeof t.intValue=="number"?d.intValue=o.longs===String?String(t.intValue):t.intValue:d.intValue=o.longs===String?$util.Long.prototype.toString.call(t.intValue):o.longs===Number?new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber():t.intValue,o.oneofs&&(d.value="intValue")),t.stringValue!=null&&t.hasOwnProperty("stringValue")&&(d.stringValue=t.stringValue,o.oneofs&&(d.value="stringValue")),t.doubleArrayValue!=null&&t.hasOwnProperty("doubleArrayValue")&&(d.doubleArrayValue=$root.DoubleArray.toObject(t.doubleArrayValue,o),o.oneofs&&(d.value="doubleArrayValue")),t.intArrayValue!=null&&t.hasOwnProperty("intArrayValue")&&(d.intArrayValue=$root.SInt64Array.toObject(t.intArrayValue,o),o.oneofs&&(d.value="intArrayValue")),t.stringArrayValue!=null&&t.hasOwnProperty("stringArrayValue")&&(d.stringArrayValue=$root.StringArray.toObject(t.stringArrayValue,o),o.oneofs&&(d.value="stringArrayValue")),t.jsonValue!=null&&t.hasOwnProperty("jsonValue")&&(d.jsonValue=t.jsonValue,o.oneofs&&(d.value="jsonValue")),t.arrowValue!=null&&t.hasOwnProperty("arrowValue")&&(d.arrowValue=$root.ArrowTable.toObject(t.arrowValue,o),o.oneofs&&(d.value="arrowValue")),t.bytesValue!=null&&t.hasOwnProperty("bytesValue")&&(d.bytesValue=o.bytes===String?$util.base64.encode(t.bytesValue,0,t.bytesValue.length):o.bytes===Array?Array.prototype.slice.call(t.bytesValue):t.bytesValue,o.oneofs&&(d.value="bytesValue")),t.fileUploaderStateValue!=null&&t.hasOwnProperty("fileUploaderStateValue")&&(d.fileUploaderStateValue=$root.FileUploaderState.toObject(t.fileUploaderStateValue,o),o.oneofs&&(d.value="fileUploaderStateValue")),t.stringTriggerValue!=null&&t.hasOwnProperty("stringTriggerValue")&&(d.stringTriggerValue=$root.StringTriggerValue.toObject(t.stringTriggerValue,o),o.oneofs&&(d.value="stringTriggerValue")),t.chatInputValue!=null&&t.hasOwnProperty("chatInputValue")&&(d.chatInputValue=$root.ChatInputValue.toObject(t.chatInputValue,o),o.oneofs&&(d.value="chatInputValue")),t.jsonTriggerValue!=null&&t.hasOwnProperty("jsonTriggerValue")&&(d.jsonTriggerValue=t.jsonTriggerValue,o.oneofs&&(d.value="jsonTriggerValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/WidgetState"},n})(),StringArray=$root.StringArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length)for(let o=0;o<e.data.length;++o)t.uint32(10).string(e.data[o]);return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.StringArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data&&p.data.length||(p.data=[]),p.data.push(e.string());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.StringArray)return e;let t=new $root.StringArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=String(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/StringArray"},n})(),DoubleArray=$root.DoubleArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.double(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DoubleArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.double())}else p.data.push(e.double());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DoubleArray)return e;let t=new $root.DoubleArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=Number(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=t.json&&!isFinite(e.data[d])?String(e.data[d]):e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DoubleArray"},n})();$root.Int32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int32())}else p.data.push(e.int32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int32Array)return e;let t=new $root.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]|0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int32Array"},n})();$root.Int64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int64())}else p.data.push(e.int64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int64Array)return e;let t=new $root.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int64Array"},n})();const SInt64Array=$root.SInt64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.sint64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SInt64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.sint64())}else p.data.push(e.sint64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SInt64Array)return e;let t=new $root.SInt64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SInt64Array"},n})();$root.UInt32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.uint32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UInt32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.uint32())}else p.data.push(e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UInt32Array)return e;let t=new $root.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]>>>0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UInt32Array"},n})();$root.StringTriggerValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.StringTriggerValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.StringTriggerValue)return t;let o=new $root.StringTriggerValue;return t.data!=null&&(o.data=String(t.data)),o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/StringTriggerValue"},n})();$root.FileURLsRequest=(()=>{function n(i){if(this.fileNames=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.requestId="",n.prototype.fileNames=$util.emptyArray,n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.requestId!=null&&Object.hasOwnProperty.call(e,"requestId")&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let o=0;o<e.fileNames.length;++o)t.uint32(18).string(e.fileNames[o]);return e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(26).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.requestId=e.string();break}case 2:{p.fileNames&&p.fileNames.length||(p.fileNames=[]),p.fileNames.push(e.string());break}case 3:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsRequest)return e;let t=new $root.FileURLsRequest;if(e.requestId!=null&&(t.requestId=String(e.requestId)),e.fileNames){if(!Array.isArray(e.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");t.fileNames=[];for(let o=0;o<e.fileNames.length;++o)t.fileNames[o]=String(e.fileNames[o])}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileNames=[]),t.defaults&&(o.requestId="",o.sessionId=""),e.requestId!=null&&e.hasOwnProperty("requestId")&&(o.requestId=e.requestId),e.fileNames&&e.fileNames.length){o.fileNames=[];for(let d=0;d<e.fileNames.length;++d)o.fileNames[d]=e.fileNames[d]}return e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsRequest"},n})();$root.FileURLs=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.uploadUrl="",n.prototype.deleteUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&Object.hasOwnProperty.call(e,"uploadUrl")&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&Object.hasOwnProperty.call(e,"deleteUrl")&&t.uint32(26).string(e.deleteUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLs;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.uploadUrl=e.string();break}case 3:{p.deleteUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLs)return e;let t=new $root.FileURLs;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.uploadUrl!=null&&(t.uploadUrl=String(e.uploadUrl)),e.deleteUrl!=null&&(t.deleteUrl=String(e.deleteUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.uploadUrl="",o.deleteUrl=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.uploadUrl!=null&&e.hasOwnProperty("uploadUrl")&&(o.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&e.hasOwnProperty("deleteUrl")&&(o.deleteUrl=e.deleteUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLs"},n})();$root.FileURLsResponse=(()=>{function n(i){if(this.fileUrls=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.responseId="",n.prototype.fileUrls=$util.emptyArray,n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.responseId!=null&&Object.hasOwnProperty.call(e,"responseId")&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let o=0;o<e.fileUrls.length;++o)$root.FileURLs.encode(e.fileUrls[o],t.uint32(18).fork()).ldelim();return e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.responseId=e.string();break}case 2:{p.fileUrls&&p.fileUrls.length||(p.fileUrls=[]),p.fileUrls.push($root.FileURLs.decode(e,e.uint32()));break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsResponse)return e;let t=new $root.FileURLsResponse;if(e.responseId!=null&&(t.responseId=String(e.responseId)),e.fileUrls){if(!Array.isArray(e.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");t.fileUrls=[];for(let o=0;o<e.fileUrls.length;++o){if(typeof e.fileUrls[o]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");t.fileUrls[o]=$root.FileURLs.fromObject(e.fileUrls[o])}}return e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileUrls=[]),t.defaults&&(o.responseId="",o.errorMsg=""),e.responseId!=null&&e.hasOwnProperty("responseId")&&(o.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){o.fileUrls=[];for(let d=0;d<e.fileUrls.length;++d)o.fileUrls[d]=$root.FileURLs.toObject(e.fileUrls[d],t)}return e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsResponse"},n})();const UploadedFileInfo=$root.UploadedFileInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.size=$util.Long?$util.Long.fromBits(0,0,!0):0,n.prototype.fileId="",n.prototype.fileUrls=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint64(e.size),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&Object.hasOwnProperty.call(e,"fileUrls")&&$root.FileURLs.encode(e.fileUrls,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UploadedFileInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.name=e.string();break}case 3:{p.size=e.uint64();break}case 4:{p.fileId=e.string();break}case 5:{p.fileUrls=$root.FileURLs.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UploadedFileInfo)return e;let t=new $root.UploadedFileInfo;if(e.name!=null&&(t.name=String(e.name)),e.size!=null&&($util.Long?(t.size=$util.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?t.size=parseInt(e.size,10):typeof e.size=="number"?t.size=e.size:typeof e.size=="object"&&(t.size=new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(t.fileId=String(e.fileId)),e.fileUrls!=null){if(typeof e.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");t.fileUrls=$root.FileURLs.fromObject(e.fileUrls)}return t},n.toObject=function(e,t){t||(t={});let o={};if(t.defaults){if(o.name="",$util.Long){let d=new $util.Long(0,0,!0);o.size=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.size=t.longs===String?"0":0;o.fileId="",o.fileUrls=null}return e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.size!=null&&e.hasOwnProperty("size")&&(typeof e.size=="number"?o.size=t.longs===String?String(e.size):e.size:o.size=t.longs===String?$util.Long.prototype.toString.call(e.size):t.longs===Number?new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.fileUrls!=null&&e.hasOwnProperty("fileUrls")&&(o.fileUrls=$root.FileURLs.toObject(e.fileUrls,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UploadedFileInfo"},n})(),FileUploaderState=$root.FileUploaderState=(()=>{function n(i){if(this.uploadedFileInfo=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uploadedFileInfo=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let o=0;o<e.uploadedFileInfo.length;++o)$root.UploadedFileInfo.encode(e.uploadedFileInfo[o],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploaderState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.uploadedFileInfo&&p.uploadedFileInfo.length||(p.uploadedFileInfo=[]),p.uploadedFileInfo.push($root.UploadedFileInfo.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploaderState)return e;let t=new $root.FileUploaderState;if(e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let o=0;o<e.uploadedFileInfo.length;++o){if(typeof e.uploadedFileInfo[o]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[o]=$root.UploadedFileInfo.fromObject(e.uploadedFileInfo[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.uploadedFileInfo=[]),e.uploadedFileInfo&&e.uploadedFileInfo.length){o.uploadedFileInfo=[];for(let d=0;d<e.uploadedFileInfo.length;++d)o.uploadedFileInfo[d]=$root.UploadedFileInfo.toObject(e.uploadedFileInfo[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploaderState"},n})(),ChatInputValue=$root.ChatInputValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=null,n.prototype.fileUploaderState=null,n.prototype.audioFileInfo=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_fileUploaderState",{get:$util.oneOfGetter(i=["fileUploaderState"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_audioFileInfo",{get:$util.oneOfGetter(i=["audioFileInfo"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),t.fileUploaderState!=null&&Object.hasOwnProperty.call(t,"fileUploaderState")&&$root.FileUploaderState.encode(t.fileUploaderState,o.uint32(18).fork()).ldelim(),t.audioFileInfo!=null&&Object.hasOwnProperty.call(t,"audioFileInfo")&&$root.UploadedFileInfo.encode(t.audioFileInfo,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInputValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}case 2:{h.fileUploaderState=$root.FileUploaderState.decode(t,t.uint32());break}case 3:{h.audioFileInfo=$root.UploadedFileInfo.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInputValue)return t;let o=new $root.ChatInputValue;if(t.data!=null&&(o.data=String(t.data)),t.fileUploaderState!=null){if(typeof t.fileUploaderState!="object")throw TypeError(".ChatInputValue.fileUploaderState: object expected");o.fileUploaderState=$root.FileUploaderState.fromObject(t.fileUploaderState)}if(t.audioFileInfo!=null){if(typeof t.audioFileInfo!="object")throw TypeError(".ChatInputValue.audioFileInfo: object expected");o.audioFileInfo=$root.UploadedFileInfo.fromObject(t.audioFileInfo)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),t.fileUploaderState!=null&&t.hasOwnProperty("fileUploaderState")&&(d.fileUploaderState=$root.FileUploaderState.toObject(t.fileUploaderState,o),o.oneofs&&(d._fileUploaderState="fileUploaderState")),t.audioFileInfo!=null&&t.hasOwnProperty("audioFileInfo")&&(d.audioFileInfo=$root.UploadedFileInfo.toObject(t.audioFileInfo,o),o.oneofs&&(d._audioFileInfo="audioFileInfo")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInputValue"},n})();$root.ComponentInstance=(()=>{function n(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.jsonArgs="",n.prototype.specialArgs=$util.emptyArray,n.prototype.componentName="",n.prototype.url="",n.prototype.formId="",n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.jsonArgs!=null&&Object.hasOwnProperty.call(t,"jsonArgs")&&o.uint32(18).string(t.jsonArgs),t.specialArgs!=null&&t.specialArgs.length)for(let d=0;d<t.specialArgs.length;++d)$root.SpecialArg.encode(t.specialArgs[d],o.uint32(26).fork()).ldelim();return t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(34).string(t.componentName),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(56).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ComponentInstance;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.jsonArgs=t.string();break}case 3:{h.specialArgs&&h.specialArgs.length||(h.specialArgs=[]),h.specialArgs.push($root.SpecialArg.decode(t,t.uint32()));break}case 4:{h.componentName=t.string();break}case 5:{h.url=t.string();break}case 6:{h.formId=t.string();break}case 7:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ComponentInstance)return t;let o=new $root.ComponentInstance;if(t.id!=null&&(o.id=String(t.id)),t.jsonArgs!=null&&(o.jsonArgs=String(t.jsonArgs)),t.specialArgs){if(!Array.isArray(t.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");o.specialArgs=[];for(let d=0;d<t.specialArgs.length;++d){if(typeof t.specialArgs[d]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");o.specialArgs[d]=$root.SpecialArg.fromObject(t.specialArgs[d])}}return t.componentName!=null&&(o.componentName=String(t.componentName)),t.url!=null&&(o.url=String(t.url)),t.formId!=null&&(o.formId=String(t.formId)),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.specialArgs=[]),o.defaults&&(d.id="",d.jsonArgs="",d.componentName="",d.url="",d.formId=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.jsonArgs!=null&&t.hasOwnProperty("jsonArgs")&&(d.jsonArgs=t.jsonArgs),t.specialArgs&&t.specialArgs.length){d.specialArgs=[];for(let p=0;p<t.specialArgs.length;++p)d.specialArgs[p]=$root.SpecialArg.toObject(t.specialArgs[p],o)}return t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ComponentInstance"},n})();$root.SpecialArg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.key="",n.prototype.arrowDataframe=null,n.prototype.bytes=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["arrowDataframe","bytes"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&o.uint32(10).string(t.key),t.arrowDataframe!=null&&Object.hasOwnProperty.call(t,"arrowDataframe")&&$root.ArrowDataframe.encode(t.arrowDataframe,o.uint32(18).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(26).bytes(t.bytes),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SpecialArg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.key=t.string();break}case 2:{h.arrowDataframe=$root.ArrowDataframe.decode(t,t.uint32());break}case 3:{h.bytes=t.bytes();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SpecialArg)return t;let o=new $root.SpecialArg;if(t.key!=null&&(o.key=String(t.key)),t.arrowDataframe!=null){if(typeof t.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");o.arrowDataframe=$root.ArrowDataframe.fromObject(t.arrowDataframe)}return t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.key=""),t.key!=null&&t.hasOwnProperty("key")&&(d.key=t.key),t.arrowDataframe!=null&&t.hasOwnProperty("arrowDataframe")&&(d.arrowDataframe=$root.ArrowDataframe.toObject(t.arrowDataframe,o),o.oneofs&&(d.value="arrowDataframe")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.value="bytes")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SpecialArg"},n})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.prototype.height=0,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowDataframe;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.ArrowTable.decode(e,e.uint32());break}case 2:{p.height=e.uint32();break}case 3:{p.width=e.uint32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowDataframe)return e;let t=new $root.ArrowDataframe;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowDataframe.data: object expected");t.data=$root.ArrowTable.fromObject(e.data)}return e.height!=null&&(t.height=e.height>>>0),e.width!=null&&(t.width=e.width>>>0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null,o.height=0,o.width=0),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.ArrowTable.toObject(e.data,t)),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowDataframe"},n})();$root.ArrowTable=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.prototype.index=$util.newBuffer([]),n.prototype.columns=$util.newBuffer([]),n.prototype.styler=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),e.styler!=null&&Object.hasOwnProperty.call(e,"styler")&&$root.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTable;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}case 2:{p.index=e.bytes();break}case 3:{p.columns=e.bytes();break}case 5:{p.styler=$root.ArrowTableStyler.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTable)return e;let t=new $root.ArrowTable;if(e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),e.index!=null&&(typeof e.index=="string"?$util.base64.decode(e.index,t.index=$util.newBuffer($util.base64.length(e.index)),0):e.index.length>=0&&(t.index=e.index)),e.columns!=null&&(typeof e.columns=="string"?$util.base64.decode(e.columns,t.columns=$util.newBuffer($util.base64.length(e.columns)),0):e.columns.length>=0&&(t.columns=e.columns)),e.styler!=null){if(typeof e.styler!="object")throw TypeError(".ArrowTable.styler: object expected");t.styler=$root.ArrowTableStyler.fromObject(e.styler)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data))),t.bytes===String?o.index="":(o.index=[],t.bytes!==Array&&(o.index=$util.newBuffer(o.index))),t.bytes===String?o.columns="":(o.columns=[],t.bytes!==Array&&(o.columns=$util.newBuffer(o.columns))),o.styler=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.index!=null&&e.hasOwnProperty("index")&&(o.index=t.bytes===String?$util.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),e.columns!=null&&e.hasOwnProperty("columns")&&(o.columns=t.bytes===String?$util.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),e.styler!=null&&e.hasOwnProperty("styler")&&(o.styler=$root.ArrowTableStyler.toObject(e.styler,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTable"},n})();$root.ArrowTableStyler=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTableStyler;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=e.string();break}case 2:{p.caption=e.string();break}case 3:{p.styles=e.string();break}case 4:{p.displayValues=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTableStyler)return e;let t=new $root.ArrowTableStyler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.uuid="",o.caption="",o.styles="",t.bytes===String?o.displayValues="":(o.displayValues=[],t.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(o.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(o.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(o.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTableStyler"},n})();$root.Balloons=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Balloons;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Balloons)return e;let t=new $root.Balloons;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Balloons"},n})();$root.MixedData=(()=>{function n(i){if(this.arrowBlobs={},i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.arrowBlobs=$util.emptyObject,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&Object.hasOwnProperty.call(e,"arrowBlobs"))for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d)t.uint32(18).fork().uint32(10).string(o[d]),$root.ArrowData.encode(e.arrowBlobs[o[d]],t.uint32(18).fork()).ldelim().ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MixedData,h,y;for(;e.pos<d;){let $=e.uint32();if($===o)break;switch($>>>3){case 1:{p.json=e.string();break}case 2:{p.arrowBlobs===$util.emptyObject&&(p.arrowBlobs={});let E=e.uint32()+e.pos;for(h="",y=null;e.pos<E;){let M=e.uint32();switch(M>>>3){case 1:h=e.string();break;case 2:y=$root.ArrowData.decode(e,e.uint32());break;default:e.skipType(M&7);break}}p.arrowBlobs[h]=y;break}default:e.skipType($&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MixedData)return e;let t=new $root.MixedData;if(e.json!=null&&(t.json=String(e.json)),e.arrowBlobs){if(typeof e.arrowBlobs!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs={};for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d){if(typeof e.arrowBlobs[o[d]]!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs[o[d]]=$root.ArrowData.fromObject(e.arrowBlobs[o[d]])}}return t},n.toObject=function(e,t){t||(t={});let o={};(t.objects||t.defaults)&&(o.arrowBlobs={}),t.defaults&&(o.json=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json);let d;if(e.arrowBlobs&&(d=Object.keys(e.arrowBlobs)).length){o.arrowBlobs={};for(let p=0;p<d.length;++p)o.arrowBlobs[d[p]]=$root.ArrowData.toObject(e.arrowBlobs[d[p]],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MixedData"},n})();$root.BidiComponent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.componentName="",n.prototype.jsContent=null,n.prototype.jsSourcePath=null,n.prototype.formId="",n.prototype.htmlContent=null,n.prototype.cssContent=null,n.prototype.cssSourcePath=null,n.prototype.isolateStyles=!1,n.prototype.json=null,n.prototype.arrowData=null,n.prototype.bytes=null,n.prototype.mixed=null;let i;return Object.defineProperty(n.prototype,"_jsContent",{get:$util.oneOfGetter(i=["jsContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_jsSourcePath",{get:$util.oneOfGetter(i=["jsSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_htmlContent",{get:$util.oneOfGetter(i=["htmlContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssContent",{get:$util.oneOfGetter(i=["cssContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssSourcePath",{get:$util.oneOfGetter(i=["cssSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"data",{get:$util.oneOfGetter(i=["json","arrowData","bytes","mixed"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(18).string(t.componentName),t.jsContent!=null&&Object.hasOwnProperty.call(t,"jsContent")&&o.uint32(26).string(t.jsContent),t.jsSourcePath!=null&&Object.hasOwnProperty.call(t,"jsSourcePath")&&o.uint32(34).string(t.jsSourcePath),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.htmlContent!=null&&Object.hasOwnProperty.call(t,"htmlContent")&&o.uint32(50).string(t.htmlContent),t.cssContent!=null&&Object.hasOwnProperty.call(t,"cssContent")&&o.uint32(58).string(t.cssContent),t.cssSourcePath!=null&&Object.hasOwnProperty.call(t,"cssSourcePath")&&o.uint32(66).string(t.cssSourcePath),t.isolateStyles!=null&&Object.hasOwnProperty.call(t,"isolateStyles")&&o.uint32(72).bool(t.isolateStyles),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&o.uint32(82).string(t.json),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,o.uint32(90).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(98).bytes(t.bytes),t.mixed!=null&&Object.hasOwnProperty.call(t,"mixed")&&$root.MixedData.encode(t.mixed,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BidiComponent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.componentName=t.string();break}case 3:{h.jsContent=t.string();break}case 4:{h.jsSourcePath=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.htmlContent=t.string();break}case 7:{h.cssContent=t.string();break}case 8:{h.cssSourcePath=t.string();break}case 9:{h.isolateStyles=t.bool();break}case 10:{h.json=t.string();break}case 11:{h.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 12:{h.bytes=t.bytes();break}case 13:{h.mixed=$root.MixedData.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BidiComponent)return t;let o=new $root.BidiComponent;if(t.id!=null&&(o.id=String(t.id)),t.componentName!=null&&(o.componentName=String(t.componentName)),t.jsContent!=null&&(o.jsContent=String(t.jsContent)),t.jsSourcePath!=null&&(o.jsSourcePath=String(t.jsSourcePath)),t.formId!=null&&(o.formId=String(t.formId)),t.htmlContent!=null&&(o.htmlContent=String(t.htmlContent)),t.cssContent!=null&&(o.cssContent=String(t.cssContent)),t.cssSourcePath!=null&&(o.cssSourcePath=String(t.cssSourcePath)),t.isolateStyles!=null&&(o.isolateStyles=!!t.isolateStyles),t.json!=null&&(o.json=String(t.json)),t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".BidiComponent.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(t.arrowData)}if(t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),t.mixed!=null){if(typeof t.mixed!="object")throw TypeError(".BidiComponent.mixed: object expected");o.mixed=$root.MixedData.fromObject(t.mixed)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.componentName="",d.formId="",d.isolateStyles=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.jsContent!=null&&t.hasOwnProperty("jsContent")&&(d.jsContent=t.jsContent,o.oneofs&&(d._jsContent="jsContent")),t.jsSourcePath!=null&&t.hasOwnProperty("jsSourcePath")&&(d.jsSourcePath=t.jsSourcePath,o.oneofs&&(d._jsSourcePath="jsSourcePath")),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.htmlContent!=null&&t.hasOwnProperty("htmlContent")&&(d.htmlContent=t.htmlContent,o.oneofs&&(d._htmlContent="htmlContent")),t.cssContent!=null&&t.hasOwnProperty("cssContent")&&(d.cssContent=t.cssContent,o.oneofs&&(d._cssContent="cssContent")),t.cssSourcePath!=null&&t.hasOwnProperty("cssSourcePath")&&(d.cssSourcePath=t.cssSourcePath,o.oneofs&&(d._cssSourcePath="cssSourcePath")),t.isolateStyles!=null&&t.hasOwnProperty("isolateStyles")&&(d.isolateStyles=t.isolateStyles),t.json!=null&&t.hasOwnProperty("json")&&(d.json=t.json,o.oneofs&&(d.data="json")),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(t.arrowData,o),o.oneofs&&(d.data="arrowData")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.data="bytes")),t.mixed!=null&&t.hasOwnProperty("mixed")&&(d.mixed=$root.MixedData.toObject(t.mixed,o),o.oneofs&&(d.data="mixed")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BidiComponent"},n})();const Block$1=$root.Block=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.vertical=null,n.prototype.horizontal=null,n.prototype.column=null,n.prototype.expandable=null,n.prototype.form=null,n.prototype.tabContainer=null,n.prototype.tab=null,n.prototype.chatMessage=null,n.prototype.popover=null,n.prototype.dialog=null,n.prototype.flexContainer=null,n.prototype.allowEmpty=!1,n.prototype.id=null,n.prototype.heightConfig=null,n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["vertical","horizontal","column","expandable","form","tabContainer","tab","chatMessage","popover","dialog","flexContainer"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_id",{get:$util.oneOfGetter(i=["id"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.vertical!=null&&Object.hasOwnProperty.call(t,"vertical")&&$root.Block.Vertical.encode(t.vertical,o.uint32(10).fork()).ldelim(),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&$root.Block.Horizontal.encode(t.horizontal,o.uint32(18).fork()).ldelim(),t.column!=null&&Object.hasOwnProperty.call(t,"column")&&$root.Block.Column.encode(t.column,o.uint32(26).fork()).ldelim(),t.expandable!=null&&Object.hasOwnProperty.call(t,"expandable")&&$root.Block.Expandable.encode(t.expandable,o.uint32(34).fork()).ldelim(),t.form!=null&&Object.hasOwnProperty.call(t,"form")&&$root.Block.Form.encode(t.form,o.uint32(42).fork()).ldelim(),t.tabContainer!=null&&Object.hasOwnProperty.call(t,"tabContainer")&&$root.Block.TabContainer.encode(t.tabContainer,o.uint32(50).fork()).ldelim(),t.tab!=null&&Object.hasOwnProperty.call(t,"tab")&&$root.Block.Tab.encode(t.tab,o.uint32(58).fork()).ldelim(),t.allowEmpty!=null&&Object.hasOwnProperty.call(t,"allowEmpty")&&o.uint32(64).bool(t.allowEmpty),t.chatMessage!=null&&Object.hasOwnProperty.call(t,"chatMessage")&&$root.Block.ChatMessage.encode(t.chatMessage,o.uint32(74).fork()).ldelim(),t.popover!=null&&Object.hasOwnProperty.call(t,"popover")&&$root.Block.Popover.encode(t.popover,o.uint32(82).fork()).ldelim(),t.dialog!=null&&Object.hasOwnProperty.call(t,"dialog")&&$root.Block.Dialog.encode(t.dialog,o.uint32(90).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.flexContainer!=null&&Object.hasOwnProperty.call(t,"flexContainer")&&$root.Block.FlexContainer.encode(t.flexContainer,o.uint32(106).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(114).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(122).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Block;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.vertical=$root.Block.Vertical.decode(t,t.uint32());break}case 2:{h.horizontal=$root.Block.Horizontal.decode(t,t.uint32());break}case 3:{h.column=$root.Block.Column.decode(t,t.uint32());break}case 4:{h.expandable=$root.Block.Expandable.decode(t,t.uint32());break}case 5:{h.form=$root.Block.Form.decode(t,t.uint32());break}case 6:{h.tabContainer=$root.Block.TabContainer.decode(t,t.uint32());break}case 7:{h.tab=$root.Block.Tab.decode(t,t.uint32());break}case 9:{h.chatMessage=$root.Block.ChatMessage.decode(t,t.uint32());break}case 10:{h.popover=$root.Block.Popover.decode(t,t.uint32());break}case 11:{h.dialog=$root.Block.Dialog.decode(t,t.uint32());break}case 13:{h.flexContainer=$root.Block.FlexContainer.decode(t,t.uint32());break}case 8:{h.allowEmpty=t.bool();break}case 12:{h.id=t.string();break}case 14:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 15:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Block)return t;let o=new $root.Block;if(t.vertical!=null){if(typeof t.vertical!="object")throw TypeError(".Block.vertical: object expected");o.vertical=$root.Block.Vertical.fromObject(t.vertical)}if(t.horizontal!=null){if(typeof t.horizontal!="object")throw TypeError(".Block.horizontal: object expected");o.horizontal=$root.Block.Horizontal.fromObject(t.horizontal)}if(t.column!=null){if(typeof t.column!="object")throw TypeError(".Block.column: object expected");o.column=$root.Block.Column.fromObject(t.column)}if(t.expandable!=null){if(typeof t.expandable!="object")throw TypeError(".Block.expandable: object expected");o.expandable=$root.Block.Expandable.fromObject(t.expandable)}if(t.form!=null){if(typeof t.form!="object")throw TypeError(".Block.form: object expected");o.form=$root.Block.Form.fromObject(t.form)}if(t.tabContainer!=null){if(typeof t.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");o.tabContainer=$root.Block.TabContainer.fromObject(t.tabContainer)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".Block.tab: object expected");o.tab=$root.Block.Tab.fromObject(t.tab)}if(t.chatMessage!=null){if(typeof t.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");o.chatMessage=$root.Block.ChatMessage.fromObject(t.chatMessage)}if(t.popover!=null){if(typeof t.popover!="object")throw TypeError(".Block.popover: object expected");o.popover=$root.Block.Popover.fromObject(t.popover)}if(t.dialog!=null){if(typeof t.dialog!="object")throw TypeError(".Block.dialog: object expected");o.dialog=$root.Block.Dialog.fromObject(t.dialog)}if(t.flexContainer!=null){if(typeof t.flexContainer!="object")throw TypeError(".Block.flexContainer: object expected");o.flexContainer=$root.Block.FlexContainer.fromObject(t.flexContainer)}if(t.allowEmpty!=null&&(o.allowEmpty=!!t.allowEmpty),t.id!=null&&(o.id=String(t.id)),t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Block.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Block.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.allowEmpty=!1),t.vertical!=null&&t.hasOwnProperty("vertical")&&(d.vertical=$root.Block.Vertical.toObject(t.vertical,o),o.oneofs&&(d.type="vertical")),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=$root.Block.Horizontal.toObject(t.horizontal,o),o.oneofs&&(d.type="horizontal")),t.column!=null&&t.hasOwnProperty("column")&&(d.column=$root.Block.Column.toObject(t.column,o),o.oneofs&&(d.type="column")),t.expandable!=null&&t.hasOwnProperty("expandable")&&(d.expandable=$root.Block.Expandable.toObject(t.expandable,o),o.oneofs&&(d.type="expandable")),t.form!=null&&t.hasOwnProperty("form")&&(d.form=$root.Block.Form.toObject(t.form,o),o.oneofs&&(d.type="form")),t.tabContainer!=null&&t.hasOwnProperty("tabContainer")&&(d.tabContainer=$root.Block.TabContainer.toObject(t.tabContainer,o),o.oneofs&&(d.type="tabContainer")),t.tab!=null&&t.hasOwnProperty("tab")&&(d.tab=$root.Block.Tab.toObject(t.tab,o),o.oneofs&&(d.type="tab")),t.allowEmpty!=null&&t.hasOwnProperty("allowEmpty")&&(d.allowEmpty=t.allowEmpty),t.chatMessage!=null&&t.hasOwnProperty("chatMessage")&&(d.chatMessage=$root.Block.ChatMessage.toObject(t.chatMessage,o),o.oneofs&&(d.type="chatMessage")),t.popover!=null&&t.hasOwnProperty("popover")&&(d.popover=$root.Block.Popover.toObject(t.popover,o),o.oneofs&&(d.type="popover")),t.dialog!=null&&t.hasOwnProperty("dialog")&&(d.dialog=$root.Block.Dialog.toObject(t.dialog,o),o.oneofs&&(d.type="dialog")),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id,o.oneofs&&(d._id="id")),t.flexContainer!=null&&t.hasOwnProperty("flexContainer")&&(d.flexContainer=$root.Block.FlexContainer.toObject(t.flexContainer,o),o.oneofs&&(d.type="flexContainer")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Block"},n.Vertical=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Vertical;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.border=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Vertical)return o;let d=new $root.Block.Vertical;return o.border!=null&&(d.border=!!o.border),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Vertical"},e})(),n.Horizontal=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.gap="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.gap!=null&&Object.hasOwnProperty.call(o,"gap")&&d.uint32(10).string(o.gap),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Horizontal;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gap=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Horizontal)return o;let d=new $root.Block.Horizontal;return o.gap!=null&&(d.gap=String(o.gap)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.gap=""),o.gap!=null&&o.hasOwnProperty("gap")&&(p.gap=o.gap),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Horizontal"},e})(),n.FlexContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),o.gapConfig!=null&&Object.hasOwnProperty.call(o,"gapConfig")&&$root.streamlit.GapConfig.encode(o.gapConfig,d.uint32(18).fork()).ldelim(),o.scale!=null&&Object.hasOwnProperty.call(o,"scale")&&d.uint32(29).float(o.scale),o.direction!=null&&Object.hasOwnProperty.call(o,"direction")&&d.uint32(32).int32(o.direction),o.wrap!=null&&Object.hasOwnProperty.call(o,"wrap")&&d.uint32(40).bool(o.wrap),o.justify!=null&&Object.hasOwnProperty.call(o,"justify")&&d.uint32(56).int32(o.justify),o.align!=null&&Object.hasOwnProperty.call(o,"align")&&d.uint32(64).int32(o.align),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.FlexContainer;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.border=o.bool();break}case 2:{y.gapConfig=$root.streamlit.GapConfig.decode(o,o.uint32());break}case 3:{y.scale=o.float();break}case 4:{y.direction=o.int32();break}case 5:{y.wrap=o.bool();break}case 7:{y.justify=o.int32();break}case 8:{y.align=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.FlexContainer)return o;let d=new $root.Block.FlexContainer;if(o.border!=null&&(d.border=!!o.border),o.gapConfig!=null){if(typeof o.gapConfig!="object")throw TypeError(".Block.FlexContainer.gapConfig: object expected");d.gapConfig=$root.streamlit.GapConfig.fromObject(o.gapConfig)}switch(o.scale!=null&&(d.scale=Number(o.scale)),o.direction){default:if(typeof o.direction=="number"){d.direction=o.direction;break}break;case"DIRECTION_UNDEFINED":case 0:d.direction=0;break;case"VERTICAL":case 1:d.direction=1;break;case"HORIZONTAL":case 2:d.direction=2;break}switch(o.wrap!=null&&(d.wrap=!!o.wrap),o.justify){default:if(typeof o.justify=="number"){d.justify=o.justify;break}break;case"JUSTIFY_UNDEFINED":case 0:d.justify=0;break;case"JUSTIFY_START":case 1:d.justify=1;break;case"JUSTIFY_END":case 2:d.justify=2;break;case"JUSTIFY_CENTER":case 3:d.justify=3;break;case"SPACE_BETWEEN":case 4:d.justify=4;break}switch(o.align){default:if(typeof o.align=="number"){d.align=o.align;break}break;case"ALIGN_UNDEFINED":case 0:d.align=0;break;case"ALIGN_START":case 1:d.align=1;break;case"ALIGN_END":case 2:d.align=2;break;case"ALIGN_CENTER":case 3:d.align=3;break;case"STRETCH":case 4:d.align=4;break}return d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1,p.gapConfig=null,p.scale=0,p.direction=d.enums===String?"DIRECTION_UNDEFINED":0,p.wrap=!1,p.justify=d.enums===String?"JUSTIFY_UNDEFINED":0,p.align=d.enums===String?"ALIGN_UNDEFINED":0),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.gapConfig!=null&&o.hasOwnProperty("gapConfig")&&(p.gapConfig=$root.streamlit.GapConfig.toObject(o.gapConfig,d)),o.scale!=null&&o.hasOwnProperty("scale")&&(p.scale=d.json&&!isFinite(o.scale)?String(o.scale):o.scale),o.direction!=null&&o.hasOwnProperty("direction")&&(p.direction=d.enums===String?$root.Block.FlexContainer.Direction[o.direction]===void 0?o.direction:$root.Block.FlexContainer.Direction[o.direction]:o.direction),o.wrap!=null&&o.hasOwnProperty("wrap")&&(p.wrap=o.wrap),o.justify!=null&&o.hasOwnProperty("justify")&&(p.justify=d.enums===String?$root.Block.FlexContainer.Justify[o.justify]===void 0?o.justify:$root.Block.FlexContainer.Justify[o.justify]:o.justify),o.align!=null&&o.hasOwnProperty("align")&&(p.align=d.enums===String?$root.Block.FlexContainer.Align[o.align]===void 0?o.align:$root.Block.FlexContainer.Align[o.align]:o.align),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.FlexContainer"},e.Direction=(function(){const t={},o=Object.create(t);return o[t[0]="DIRECTION_UNDEFINED"]=0,o[t[1]="VERTICAL"]=1,o[t[2]="HORIZONTAL"]=2,o})(),e.Justify=(function(){const t={},o=Object.create(t);return o[t[0]="JUSTIFY_UNDEFINED"]=0,o[t[1]="JUSTIFY_START"]=1,o[t[2]="JUSTIFY_END"]=2,o[t[3]="JUSTIFY_CENTER"]=3,o[t[4]="SPACE_BETWEEN"]=4,o})(),e.Align=(function(){const t={},o=Object.create(t);return o[t[0]="ALIGN_UNDEFINED"]=0,o[t[1]="ALIGN_START"]=1,o[t[2]="ALIGN_END"]=2,o[t[3]="ALIGN_CENTER"]=3,o[t[4]="STRETCH"]=4,o})(),e})(),n.Column=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.weight=0,e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return Object.defineProperty(e.prototype,"_gapConfig",{get:$util.oneOfGetter(t=["gapConfig"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.weight!=null&&Object.hasOwnProperty.call(d,"weight")&&p.uint32(9).double(d.weight),d.verticalAlignment!=null&&Object.hasOwnProperty.call(d,"verticalAlignment")&&p.uint32(24).int32(d.verticalAlignment),d.showBorder!=null&&Object.hasOwnProperty.call(d,"showBorder")&&p.uint32(32).bool(d.showBorder),d.gapConfig!=null&&Object.hasOwnProperty.call(d,"gapConfig")&&$root.streamlit.GapConfig.encode(d.gapConfig,p.uint32(42).fork()).ldelim(),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Column;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.weight=d.double();break}case 3:{$.verticalAlignment=d.int32();break}case 4:{$.showBorder=d.bool();break}case 5:{$.gapConfig=$root.streamlit.GapConfig.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Column)return d;let p=new $root.Block.Column;switch(d.weight!=null&&(p.weight=Number(d.weight)),d.verticalAlignment){default:if(typeof d.verticalAlignment=="number"){p.verticalAlignment=d.verticalAlignment;break}break;case"TOP":case 0:p.verticalAlignment=0;break;case"CENTER":case 1:p.verticalAlignment=1;break;case"BOTTOM":case 2:p.verticalAlignment=2;break}if(d.showBorder!=null&&(p.showBorder=!!d.showBorder),d.gapConfig!=null){if(typeof d.gapConfig!="object")throw TypeError(".Block.Column.gapConfig: object expected");p.gapConfig=$root.streamlit.GapConfig.fromObject(d.gapConfig)}return p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.weight=0,h.verticalAlignment=p.enums===String?"TOP":0,h.showBorder=!1),d.weight!=null&&d.hasOwnProperty("weight")&&(h.weight=p.json&&!isFinite(d.weight)?String(d.weight):d.weight),d.verticalAlignment!=null&&d.hasOwnProperty("verticalAlignment")&&(h.verticalAlignment=p.enums===String?$root.Block.Column.VerticalAlignment[d.verticalAlignment]===void 0?d.verticalAlignment:$root.Block.Column.VerticalAlignment[d.verticalAlignment]:d.verticalAlignment),d.showBorder!=null&&d.hasOwnProperty("showBorder")&&(h.showBorder=d.showBorder),d.gapConfig!=null&&d.hasOwnProperty("gapConfig")&&(h.gapConfig=$root.streamlit.GapConfig.toObject(d.gapConfig,p),p.oneofs&&(h._gapConfig="gapConfig")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Column"},e.VerticalAlignment=(function(){const o={},d=Object.create(o);return d[o[0]="TOP"]=0,d[o[1]="CENTER"]=1,d[o[2]="BOTTOM"]=2,d})(),e})(),n.Expandable=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.label="",e.prototype.expanded=null,e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_expanded",{get:$util.oneOfGetter(t=["expanded"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.label!=null&&Object.hasOwnProperty.call(d,"label")&&p.uint32(10).string(d.label),d.expanded!=null&&Object.hasOwnProperty.call(d,"expanded")&&p.uint32(16).bool(d.expanded),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(26).string(d.icon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Expandable;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.label=d.string();break}case 2:{$.expanded=d.bool();break}case 3:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Expandable)return d;let p=new $root.Block.Expandable;return d.label!=null&&(p.label=String(d.label)),d.expanded!=null&&(p.expanded=!!d.expanded),d.icon!=null&&(p.icon=String(d.icon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.label="",h.icon=""),d.label!=null&&d.hasOwnProperty("label")&&(h.label=d.label),d.expanded!=null&&d.hasOwnProperty("expanded")&&(h.expanded=d.expanded,p.oneofs&&(h._expanded="expanded")),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Expandable"},e})(),n.Dialog=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.title="",e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id="",e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_isOpen",{get:$util.oneOfGetter(t=["isOpen"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.title!=null&&Object.hasOwnProperty.call(d,"title")&&p.uint32(10).string(d.title),d.dismissible!=null&&Object.hasOwnProperty.call(d,"dismissible")&&p.uint32(16).bool(d.dismissible),d.width!=null&&Object.hasOwnProperty.call(d,"width")&&p.uint32(24).int32(d.width),d.isOpen!=null&&Object.hasOwnProperty.call(d,"isOpen")&&p.uint32(32).bool(d.isOpen),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(42).string(d.id),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(50).string(d.icon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Dialog;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.title=d.string();break}case 2:{$.dismissible=d.bool();break}case 3:{$.width=d.int32();break}case 4:{$.isOpen=d.bool();break}case 5:{$.id=d.string();break}case 6:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Dialog)return d;let p=new $root.Block.Dialog;switch(d.title!=null&&(p.title=String(d.title)),d.dismissible!=null&&(p.dismissible=!!d.dismissible),d.width){default:if(typeof d.width=="number"){p.width=d.width;break}break;case"SMALL":case 0:p.width=0;break;case"LARGE":case 1:p.width=1;break;case"MEDIUM":case 2:p.width=2;break}return d.isOpen!=null&&(p.isOpen=!!d.isOpen),d.id!=null&&(p.id=String(d.id)),d.icon!=null&&(p.icon=String(d.icon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.title="",h.dismissible=!1,h.width=p.enums===String?"SMALL":0,h.id="",h.icon=""),d.title!=null&&d.hasOwnProperty("title")&&(h.title=d.title),d.dismissible!=null&&d.hasOwnProperty("dismissible")&&(h.dismissible=d.dismissible),d.width!=null&&d.hasOwnProperty("width")&&(h.width=p.enums===String?$root.Block.Dialog.DialogWidth[d.width]===void 0?d.width:$root.Block.Dialog.DialogWidth[d.width]:d.width),d.isOpen!=null&&d.hasOwnProperty("isOpen")&&(h.isOpen=d.isOpen,p.oneofs&&(h._isOpen="isOpen")),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Dialog"},e.DialogWidth=(function(){const o={},d=Object.create(o);return d[o[0]="SMALL"]=0,d[o[1]="LARGE"]=1,d[o[2]="MEDIUM"]=2,d})(),e})(),n.Form=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.formId!=null&&Object.hasOwnProperty.call(o,"formId")&&d.uint32(10).string(o.formId),o.clearOnSubmit!=null&&Object.hasOwnProperty.call(o,"clearOnSubmit")&&d.uint32(16).bool(o.clearOnSubmit),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(24).bool(o.border),o.enterToSubmit!=null&&Object.hasOwnProperty.call(o,"enterToSubmit")&&d.uint32(32).bool(o.enterToSubmit),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Form;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.formId=o.string();break}case 2:{y.clearOnSubmit=o.bool();break}case 3:{y.border=o.bool();break}case 4:{y.enterToSubmit=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Form)return o;let d=new $root.Block.Form;return o.formId!=null&&(d.formId=String(o.formId)),o.clearOnSubmit!=null&&(d.clearOnSubmit=!!o.clearOnSubmit),o.border!=null&&(d.border=!!o.border),o.enterToSubmit!=null&&(d.enterToSubmit=!!o.enterToSubmit),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.formId="",p.clearOnSubmit=!1,p.border=!1,p.enterToSubmit=!1),o.formId!=null&&o.hasOwnProperty("formId")&&(p.formId=o.formId),o.clearOnSubmit!=null&&o.hasOwnProperty("clearOnSubmit")&&(p.clearOnSubmit=o.clearOnSubmit),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.enterToSubmit!=null&&o.hasOwnProperty("enterToSubmit")&&(p.enterToSubmit=o.enterToSubmit),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Form"},e})(),n.TabContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.defaultTabIndex=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.defaultTabIndex!=null&&Object.hasOwnProperty.call(o,"defaultTabIndex")&&d.uint32(8).int32(o.defaultTabIndex),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.TabContainer;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.defaultTabIndex=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.TabContainer)return o;let d=new $root.Block.TabContainer;return o.defaultTabIndex!=null&&(d.defaultTabIndex=o.defaultTabIndex|0),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.defaultTabIndex=0),o.defaultTabIndex!=null&&o.hasOwnProperty("defaultTabIndex")&&(p.defaultTabIndex=o.defaultTabIndex),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.TabContainer"},e})(),n.Tab=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Tab;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Tab)return o;let d=new $root.Block.Tab;return o.label!=null&&(d.label=String(o.label)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Tab"},e})(),n.Popover=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.prototype.help="",e.prototype.disabled=!1,e.prototype.icon="",e.prototype.type="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),o.help!=null&&Object.hasOwnProperty.call(o,"help")&&d.uint32(26).string(o.help),o.disabled!=null&&Object.hasOwnProperty.call(o,"disabled")&&d.uint32(32).bool(o.disabled),o.icon!=null&&Object.hasOwnProperty.call(o,"icon")&&d.uint32(42).string(o.icon),o.type!=null&&Object.hasOwnProperty.call(o,"type")&&d.uint32(50).string(o.type),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Popover;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}case 3:{y.help=o.string();break}case 4:{y.disabled=o.bool();break}case 5:{y.icon=o.string();break}case 6:{y.type=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Popover)return o;let d=new $root.Block.Popover;return o.label!=null&&(d.label=String(o.label)),o.help!=null&&(d.help=String(o.help)),o.disabled!=null&&(d.disabled=!!o.disabled),o.icon!=null&&(d.icon=String(o.icon)),o.type!=null&&(d.type=String(o.type)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label="",p.help="",p.disabled=!1,p.icon="",p.type=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),o.help!=null&&o.hasOwnProperty("help")&&(p.help=o.help),o.disabled!=null&&o.hasOwnProperty("disabled")&&(p.disabled=o.disabled),o.icon!=null&&o.hasOwnProperty("icon")&&(p.icon=o.icon),o.type!=null&&o.hasOwnProperty("type")&&(p.type=o.type),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Popover"},e})(),n.ChatMessage=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.name="",e.prototype.avatar="",e.prototype.avatarType=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(10).string(o.name),o.avatar!=null&&Object.hasOwnProperty.call(o,"avatar")&&d.uint32(18).string(o.avatar),o.avatarType!=null&&Object.hasOwnProperty.call(o,"avatarType")&&d.uint32(24).int32(o.avatarType),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.ChatMessage;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.name=o.string();break}case 2:{y.avatar=o.string();break}case 3:{y.avatarType=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.ChatMessage)return o;let d=new $root.Block.ChatMessage;switch(o.name!=null&&(d.name=String(o.name)),o.avatar!=null&&(d.avatar=String(o.avatar)),o.avatarType){default:if(typeof o.avatarType=="number"){d.avatarType=o.avatarType;break}break;case"IMAGE":case 0:d.avatarType=0;break;case"EMOJI":case 1:d.avatarType=1;break;case"ICON":case 2:d.avatarType=2;break}return d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.name="",p.avatar="",p.avatarType=d.enums===String?"IMAGE":0),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),o.avatar!=null&&o.hasOwnProperty("avatar")&&(p.avatar=o.avatar),o.avatarType!=null&&o.hasOwnProperty("avatarType")&&(p.avatarType=d.enums===String?$root.Block.ChatMessage.AvatarType[o.avatarType]===void 0?o.avatarType:$root.Block.ChatMessage.AvatarType[o.avatarType]:o.avatarType),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.ChatMessage"},e.AvatarType=(function(){const t={},o=Object.create(t);return o[t[0]="IMAGE"]=0,o[t[1]="EMOJI"]=1,o[t[2]="ICON"]=2,o})(),e})(),n})();$root.Button=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.isFormSubmitter=!1,n.prototype.type="",n.prototype.disabled=!1,n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Button;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.isFormSubmitter=e.bool();break}case 7:{p.type=e.string();break}case 8:{p.disabled=e.bool();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Button)return e;let t=new $root.Button;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.isFormSubmitter!=null&&(t.isFormSubmitter=!!e.isFormSubmitter),e.type!=null&&(t.type=String(e.type)),e.disabled!=null&&(t.disabled=!!e.disabled),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.isFormSubmitter=!1,o.type="",o.disabled=!1,o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.isFormSubmitter!=null&&e.hasOwnProperty("isFormSubmitter")&&(o.isFormSubmitter=e.isFormSubmitter),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Button"},n})();const ButtonGroup$1=$root.ButtonGroup=(()=>{function n(e){if(this.options=[],this.default=[],this.value=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.options=$util.emptyArray,n.prototype.default=$util.emptyArray,n.prototype.disabled=!1,n.prototype.clickMode=0,n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.style=0,n.prototype.label="",n.prototype.labelVisibility=null,n.prototype.help=null;let i;return Object.defineProperty(n.prototype,"_help",{get:$util.oneOfGetter(i=["help"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)$root.ButtonGroup.Option.encode(t.options[d],o.uint32(18).fork()).ldelim();if(t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.uint32(t.default[d]);o.ldelim()}if(t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.clickMode!=null&&Object.hasOwnProperty.call(t,"clickMode")&&o.uint32(40).int32(t.clickMode),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.value!=null&&t.value.length){o.uint32(58).fork();for(let d=0;d<t.value.length;++d)o.uint32(t.value[d]);o.ldelim()}return t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(80).int32(t.style),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(90).string(t.label),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(106).string(t.help),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ButtonGroup;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.options&&h.options.length||(h.options=[]),h.options.push($root.ButtonGroup.Option.decode(t,t.uint32()));break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.uint32())}else h.default.push(t.uint32());break}case 4:{h.disabled=t.bool();break}case 5:{h.clickMode=t.int32();break}case 6:{h.formId=t.string();break}case 7:{if(h.value&&h.value.length||(h.value=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.value.push(t.uint32())}else h.value.push(t.uint32());break}case 8:{h.setValue=t.bool();break}case 10:{h.style=t.int32();break}case 11:{h.label=t.string();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 13:{h.help=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ButtonGroup)return t;let o=new $root.ButtonGroup;if(t.id!=null&&(o.id=String(t.id)),t.options){if(!Array.isArray(t.options))throw TypeError(".ButtonGroup.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d){if(typeof t.options[d]!="object")throw TypeError(".ButtonGroup.options: object expected");o.options[d]=$root.ButtonGroup.Option.fromObject(t.options[d])}}if(t.default){if(!Array.isArray(t.default))throw TypeError(".ButtonGroup.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]>>>0}switch(t.disabled!=null&&(o.disabled=!!t.disabled),t.clickMode){default:if(typeof t.clickMode=="number"){o.clickMode=t.clickMode;break}break;case"SINGLE_SELECT":case 0:o.clickMode=0;break;case"MULTI_SELECT":case 1:o.clickMode=1;break}if(t.formId!=null&&(o.formId=String(t.formId)),t.value){if(!Array.isArray(t.value))throw TypeError(".ButtonGroup.value: array expected");o.value=[];for(let d=0;d<t.value.length;++d)o.value[d]=t.value[d]>>>0}switch(t.setValue!=null&&(o.setValue=!!t.setValue),t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"SEGMENTED_CONTROL":case 0:o.style=0;break;case"PILLS":case 1:o.style=1;break}if(t.label!=null&&(o.label=String(t.label)),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.help!=null&&(o.help=String(t.help)),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.default=[],d.value=[]),o.defaults&&(d.id="",d.disabled=!1,d.clickMode=o.enums===String?"SINGLE_SELECT":0,d.formId="",d.setValue=!1,d.style=o.enums===String?"SEGMENTED_CONTROL":0,d.label="",d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=$root.ButtonGroup.Option.toObject(t.options[p],o)}if(t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.clickMode!=null&&t.hasOwnProperty("clickMode")&&(d.clickMode=o.enums===String?$root.ButtonGroup.ClickMode[t.clickMode]===void 0?t.clickMode:$root.ButtonGroup.ClickMode[t.clickMode]:t.clickMode),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value&&t.value.length){d.value=[];for(let p=0;p<t.value.length;++p)d.value[p]=t.value[p]}return t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.ButtonGroup.Style[t.style]===void 0?t.style:$root.ButtonGroup.Style[t.style]:t.style),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help,o.oneofs&&(d._help="help")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ButtonGroup"},n.ClickMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_SELECT"]=0,t[e[1]="MULTI_SELECT"]=1,t})(),n.Option=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.content="",e.prototype.contentIcon=null;let t;return Object.defineProperty(e.prototype,"_contentIcon",{get:$util.oneOfGetter(t=["contentIcon"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.content!=null&&Object.hasOwnProperty.call(d,"content")&&p.uint32(10).string(d.content),d.contentIcon!=null&&Object.hasOwnProperty.call(d,"contentIcon")&&p.uint32(26).string(d.contentIcon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.ButtonGroup.Option;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.content=d.string();break}case 3:{$.contentIcon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.ButtonGroup.Option)return d;let p=new $root.ButtonGroup.Option;return d.content!=null&&(p.content=String(d.content)),d.contentIcon!=null&&(p.contentIcon=String(d.contentIcon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.content=""),d.content!=null&&d.hasOwnProperty("content")&&(h.content=d.content),d.contentIcon!=null&&d.hasOwnProperty("contentIcon")&&(h.contentIcon=d.contentIcon,p.oneofs&&(h._contentIcon="contentIcon")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/ButtonGroup.Option"},e})(),n.Style=(function(){const e={},t=Object.create(e);return t[e[0]="SEGMENTED_CONTROL"]=0,t[e[1]="PILLS"]=1,t})(),n})();$root.CameraInput=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CameraInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.help=e.string();break}case 4:{p.formId=e.string();break}case 5:{p.disabled=e.bool();break}case 6:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CameraInput)return e;let t=new $root.CameraInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CameraInput"},n})();const ChatInput$1=$root.ChatInput=(()=>{function n(e){if(this.fileType=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.placeholder="",n.prototype.maxChars=0,n.prototype.disabled=!1,n.prototype.value="",n.prototype.setValue=!1,n.prototype.default="",n.prototype.acceptFile=0,n.prototype.fileType=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.acceptAudio=!1,n.prototype.audioSampleRate=null;let i;return Object.defineProperty(n.prototype,"_audioSampleRate",{get:$util.oneOfGetter(i=["audioSampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(18).string(t.placeholder),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(24).uint32(t.maxChars),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(42).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(48).bool(t.setValue),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(58).string(t.default),t.acceptFile!=null&&Object.hasOwnProperty.call(t,"acceptFile")&&o.uint32(72).int32(t.acceptFile),t.fileType!=null&&t.fileType.length)for(let d=0;d<t.fileType.length;++d)o.uint32(82).string(t.fileType[d]);return t.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(t,"maxUploadSizeMb")&&o.uint32(88).int32(t.maxUploadSizeMb),t.acceptAudio!=null&&Object.hasOwnProperty.call(t,"acceptAudio")&&o.uint32(96).bool(t.acceptAudio),t.audioSampleRate!=null&&Object.hasOwnProperty.call(t,"audioSampleRate")&&o.uint32(104).int32(t.audioSampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.placeholder=t.string();break}case 3:{h.maxChars=t.uint32();break}case 4:{h.disabled=t.bool();break}case 5:{h.value=t.string();break}case 6:{h.setValue=t.bool();break}case 7:{h.default=t.string();break}case 9:{h.acceptFile=t.int32();break}case 10:{h.fileType&&h.fileType.length||(h.fileType=[]),h.fileType.push(t.string());break}case 11:{h.maxUploadSizeMb=t.int32();break}case 12:{h.acceptAudio=t.bool();break}case 13:{h.audioSampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInput)return t;let o=new $root.ChatInput;switch(t.id!=null&&(o.id=String(t.id)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.disabled!=null&&(o.disabled=!!t.disabled),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.default!=null&&(o.default=String(t.default)),t.acceptFile){default:if(typeof t.acceptFile=="number"){o.acceptFile=t.acceptFile;break}break;case"NONE":case 0:o.acceptFile=0;break;case"SINGLE":case 1:o.acceptFile=1;break;case"MULTIPLE":case 2:o.acceptFile=2;break;case"DIRECTORY":case 3:o.acceptFile=3;break}if(t.fileType){if(!Array.isArray(t.fileType))throw TypeError(".ChatInput.fileType: array expected");o.fileType=[];for(let d=0;d<t.fileType.length;++d)o.fileType[d]=String(t.fileType[d])}return t.maxUploadSizeMb!=null&&(o.maxUploadSizeMb=t.maxUploadSizeMb|0),t.acceptAudio!=null&&(o.acceptAudio=!!t.acceptAudio),t.audioSampleRate!=null&&(o.audioSampleRate=t.audioSampleRate|0),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fileType=[]),o.defaults&&(d.id="",d.placeholder="",d.maxChars=0,d.disabled=!1,d.value="",d.setValue=!1,d.default="",d.acceptFile=o.enums===String?"NONE":0,d.maxUploadSizeMb=0,d.acceptAudio=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.acceptFile!=null&&t.hasOwnProperty("acceptFile")&&(d.acceptFile=o.enums===String?$root.ChatInput.AcceptFile[t.acceptFile]===void 0?t.acceptFile:$root.ChatInput.AcceptFile[t.acceptFile]:t.acceptFile),t.fileType&&t.fileType.length){d.fileType=[];for(let p=0;p<t.fileType.length;++p)d.fileType[p]=t.fileType[p]}return t.maxUploadSizeMb!=null&&t.hasOwnProperty("maxUploadSizeMb")&&(d.maxUploadSizeMb=t.maxUploadSizeMb),t.acceptAudio!=null&&t.hasOwnProperty("acceptAudio")&&(d.acceptAudio=t.acceptAudio),t.audioSampleRate!=null&&t.hasOwnProperty("audioSampleRate")&&(d.audioSampleRate=t.audioSampleRate,o.oneofs&&(d._audioSampleRate="audioSampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInput"},n.AcceptFile=(function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="SINGLE"]=1,t[e[2]="MULTIPLE"]=2,t[e[3]="DIRECTORY"]=3,t})(),n})(),Checkbox$1=$root.Checkbox=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=!1,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(80).int32(e.type),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Checkbox;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.bool();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 10:{p.type=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Checkbox)return e;let t=new $root.Checkbox;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=!!e.value),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"DEFAULT":case 0:t.type=0;break;case"TOGGLE":case 1:t.type=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.value=!1,o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"DEFAULT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Checkbox.StyleType[e.type]===void 0?e.type:$root.Checkbox.StyleType[e.type]:e.type),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Checkbox"},n.StyleType=(function(){const i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="TOGGLE"]=1,e})(),n})();$root.Code=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.codeText="",n.prototype.language="",n.prototype.showLineNumbers=!1,n.prototype.wrapLines=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.codeText!=null&&Object.hasOwnProperty.call(e,"codeText")&&t.uint32(10).string(e.codeText),e.language!=null&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&Object.hasOwnProperty.call(e,"showLineNumbers")&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&Object.hasOwnProperty.call(e,"wrapLines")&&t.uint32(32).bool(e.wrapLines),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Code;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.codeText=e.string();break}case 2:{p.language=e.string();break}case 3:{p.showLineNumbers=e.bool();break}case 4:{p.wrapLines=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Code)return e;let t=new $root.Code;return e.codeText!=null&&(t.codeText=String(e.codeText)),e.language!=null&&(t.language=String(e.language)),e.showLineNumbers!=null&&(t.showLineNumbers=!!e.showLineNumbers),e.wrapLines!=null&&(t.wrapLines=!!e.wrapLines),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.codeText="",o.language="",o.showLineNumbers=!1,o.wrapLines=!1),e.codeText!=null&&e.hasOwnProperty("codeText")&&(o.codeText=e.codeText),e.language!=null&&e.hasOwnProperty("language")&&(o.language=e.language),e.showLineNumbers!=null&&e.hasOwnProperty("showLineNumbers")&&(o.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&e.hasOwnProperty("wrapLines")&&(o.wrapLines=e.wrapLines),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Code"},n})();$root.ColorPicker=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default="",n.prototype.help="",n.prototype.formId="",n.prototype.value="",n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ColorPicker;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.string();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.string();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ColorPicker)return e;let t=new $root.ColorPicker;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=String(e.default)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=String(e.value)),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default="",o.help="",o.formId="",o.value="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ColorPicker"},n})();$root.DateInput=(()=>{function n(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.isRange=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(74).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(106).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.isRange=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 10:{p.setValue=e.bool();break}case 11:{p.disabled=e.bool();break}case 12:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 13:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateInput)return e;let t=new $root.DateInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.isRange!=null&&(t.isRange=!!e.isRange),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults&&(o.id="",o.label="",o.min="",o.max="",o.isRange=!1,o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format=""),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateInput"},n})();$root.DateTimeInput=(()=>{function n(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.isRange=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(66).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(112).bool(e.isRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateTimeInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.help=e.string();break}case 7:{p.formId=e.string();break}case 8:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 9:{p.setValue=e.bool();break}case 10:{p.disabled=e.bool();break}case 11:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 12:{p.format=e.string();break}case 13:{p.step=e.int64();break}case 14:{p.isRange=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateTimeInput)return e;let t=new $root.DateTimeInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateTimeInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateTimeInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateTimeInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),e.step!=null&&($util.Long?(t.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?t.step=parseInt(e.step,10):typeof e.step=="number"?t.step=e.step:typeof e.step=="object"&&(t.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&(t.isRange=!!e.isRange),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults){if(o.id="",o.label="",o.min="",o.max="",o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format="",$util.Long){let d=new $util.Long(0,0,!1);o.step=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.step=t.longs===String?"0":0;o.isRange=!1}if(e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?o.step=t.longs===String?String(e.step):e.step:o.step=t.longs===String?$util.Long.prototype.toString.call(e.step):t.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateTimeInput"},n})();const DeckGlJsonChart$1=$root.DeckGlJsonChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.tooltip="",n.prototype.id="",n.prototype.mapboxToken="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.tooltip!=null&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(42).string(e.id),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(50).string(e.mapboxToken),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let o=0;o<e.selectionMode.length;++o)t.int32(e.selectionMode[o]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(82).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeckGlJsonChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.json=e.string();break}case 2:{p.tooltip=e.string();break}case 5:{p.id=e.string();break}case 6:{p.mapboxToken=e.string();break}case 9:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.selectionMode.push(e.int32())}else p.selectionMode.push(e.int32());break}case 10:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeckGlJsonChart)return e;let t=new $root.DeckGlJsonChart;if(e.json!=null&&(t.json=String(e.json)),e.tooltip!=null&&(t.tooltip=String(e.tooltip)),e.id!=null&&(t.id=String(e.id)),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)switch(e.selectionMode[o]){default:if(typeof e.selectionMode[o]=="number"){t.selectionMode[o]=e.selectionMode[o];break}case"SINGLE_OBJECT":case 0:t.selectionMode[o]=0;break;case"MULTI_OBJECT":case 1:t.selectionMode[o]=1;break}}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.selectionMode=[]),t.defaults&&(o.json="",o.tooltip="",o.id="",o.mapboxToken="",o.formId=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json),e.tooltip!=null&&e.hasOwnProperty("tooltip")&&(o.tooltip=e.tooltip),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(o.mapboxToken=e.mapboxToken),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=t.enums===String?$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]===void 0?e.selectionMode[d]:$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]:e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeckGlJsonChart"},n.SelectionMode=(function(){const i={},e=Object.create(i);return e[i[0]="SINGLE_OBJECT"]=0,e[i[1]="MULTI_OBJECT"]=1,e})(),n})();$root.Delta=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.newElement=null,n.prototype.addBlock=null,n.prototype.newTransient=null,n.prototype.arrowAddRows=null,n.prototype.fragmentId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newElement","addBlock","newTransient","arrowAddRows"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.newElement!=null&&Object.hasOwnProperty.call(t,"newElement")&&$root.Element.encode(t.newElement,o.uint32(26).fork()).ldelim(),t.addBlock!=null&&Object.hasOwnProperty.call(t,"addBlock")&&$root.Block.encode(t.addBlock,o.uint32(50).fork()).ldelim(),t.arrowAddRows!=null&&Object.hasOwnProperty.call(t,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(t.arrowAddRows,o.uint32(58).fork()).ldelim(),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&o.uint32(66).string(t.fragmentId),t.newTransient!=null&&Object.hasOwnProperty.call(t,"newTransient")&&$root.Transient.encode(t.newTransient,o.uint32(74).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Delta;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 3:{h.newElement=$root.Element.decode(t,t.uint32());break}case 6:{h.addBlock=$root.Block.decode(t,t.uint32());break}case 9:{h.newTransient=$root.Transient.decode(t,t.uint32());break}case 7:{h.arrowAddRows=$root.ArrowNamedDataSet.decode(t,t.uint32());break}case 8:{h.fragmentId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Delta)return t;let o=new $root.Delta;if(t.newElement!=null){if(typeof t.newElement!="object")throw TypeError(".Delta.newElement: object expected");o.newElement=$root.Element.fromObject(t.newElement)}if(t.addBlock!=null){if(typeof t.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");o.addBlock=$root.Block.fromObject(t.addBlock)}if(t.newTransient!=null){if(typeof t.newTransient!="object")throw TypeError(".Delta.newTransient: object expected");o.newTransient=$root.Transient.fromObject(t.newTransient)}if(t.arrowAddRows!=null){if(typeof t.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");o.arrowAddRows=$root.ArrowNamedDataSet.fromObject(t.arrowAddRows)}return t.fragmentId!=null&&(o.fragmentId=String(t.fragmentId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.fragmentId=""),t.newElement!=null&&t.hasOwnProperty("newElement")&&(d.newElement=$root.Element.toObject(t.newElement,o),o.oneofs&&(d.type="newElement")),t.addBlock!=null&&t.hasOwnProperty("addBlock")&&(d.addBlock=$root.Block.toObject(t.addBlock,o),o.oneofs&&(d.type="addBlock")),t.arrowAddRows!=null&&t.hasOwnProperty("arrowAddRows")&&(d.arrowAddRows=$root.ArrowNamedDataSet.toObject(t.arrowAddRows,o),o.oneofs&&(d.type="arrowAddRows")),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(d.fragmentId=t.fragmentId),t.newTransient!=null&&t.hasOwnProperty("newTransient")&&(d.newTransient=$root.Transient.toObject(t.newTransient,o),o.oneofs&&(d.type="newTransient")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Delta"},n})();const Element$1=$root.Element=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.heightConfig=null,n.prototype.widthConfig=null,n.prototype.textAlignmentConfig=null,n.prototype.alert=null,n.prototype.arrowDataFrame=null,n.prototype.arrowTable=null,n.prototype.arrowVegaLiteChart=null,n.prototype.audio=null,n.prototype.audioInput=null,n.prototype.balloons=null,n.prototype.bidiComponent=null,n.prototype.button=null,n.prototype.buttonGroup=null,n.prototype.downloadButton=null,n.prototype.cameraInput=null,n.prototype.chatInput=null,n.prototype.checkbox=null,n.prototype.colorPicker=null,n.prototype.componentInstance=null,n.prototype.dateInput=null,n.prototype.deckGlJsonChart=null,n.prototype.docString=null,n.prototype.empty=null,n.prototype.exception=null,n.prototype.favicon=null,n.prototype.feedback=null,n.prototype.fileUploader=null,n.prototype.graphvizChart=null,n.prototype.html=null,n.prototype.iframe=null,n.prototype.imgs=null,n.prototype.json=null,n.prototype.linkButton=null,n.prototype.markdown=null,n.prototype.metric=null,n.prototype.multiselect=null,n.prototype.numberInput=null,n.prototype.pageLink=null,n.prototype.plotlyChart=null,n.prototype.progress=null,n.prototype.radio=null,n.prototype.selectbox=null,n.prototype.skeleton=null,n.prototype.slider=null,n.prototype.snow=null,n.prototype.space=null,n.prototype.spinner=null,n.prototype.text=null,n.prototype.textArea=null,n.prototype.textInput=null,n.prototype.timeInput=null,n.prototype.dateTimeInput=null,n.prototype.toast=null,n.prototype.video=null,n.prototype.heading=null,n.prototype.code=null;let i;return Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_textAlignmentConfig",{get:$util.oneOfGetter(i=["textAlignmentConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","audioInput","balloons","bidiComponent","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dateInput","deckGlJsonChart","docString","empty","exception","favicon","feedback","fileUploader","graphvizChart","html","iframe","imgs","json","linkButton","markdown","metric","multiselect","numberInput","pageLink","plotlyChart","progress","radio","selectbox","skeleton","slider","snow","space","spinner","text","textArea","textInput","timeInput","dateTimeInput","toast","video","heading","code"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&$root.Text.encode(t.text,o.uint32(10).fork()).ldelim(),t.empty!=null&&Object.hasOwnProperty.call(t,"empty")&&$root.Empty.encode(t.empty,o.uint32(18).fork()).ldelim(),t.progress!=null&&Object.hasOwnProperty.call(t,"progress")&&$root.Progress.encode(t.progress,o.uint32(42).fork()).ldelim(),t.imgs!=null&&Object.hasOwnProperty.call(t,"imgs")&&$root.ImageList.encode(t.imgs,o.uint32(50).fork()).ldelim(),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&$root.DocString.encode(t.docString,o.uint32(58).fork()).ldelim(),t.exception!=null&&Object.hasOwnProperty.call(t,"exception")&&$root.Exception.encode(t.exception,o.uint32(66).fork()).ldelim(),t.balloons!=null&&Object.hasOwnProperty.call(t,"balloons")&&$root.Balloons.encode(t.balloons,o.uint32(98).fork()).ldelim(),t.audio!=null&&Object.hasOwnProperty.call(t,"audio")&&$root.Audio.encode(t.audio,o.uint32(106).fork()).ldelim(),t.video!=null&&Object.hasOwnProperty.call(t,"video")&&$root.Video.encode(t.video,o.uint32(114).fork()).ldelim(),t.plotlyChart!=null&&Object.hasOwnProperty.call(t,"plotlyChart")&&$root.PlotlyChart.encode(t.plotlyChart,o.uint32(130).fork()).ldelim(),t.graphvizChart!=null&&Object.hasOwnProperty.call(t,"graphvizChart")&&$root.GraphVizChart.encode(t.graphvizChart,o.uint32(146).fork()).ldelim(),t.button!=null&&Object.hasOwnProperty.call(t,"button")&&$root.Button.encode(t.button,o.uint32(154).fork()).ldelim(),t.checkbox!=null&&Object.hasOwnProperty.call(t,"checkbox")&&$root.Checkbox.encode(t.checkbox,o.uint32(162).fork()).ldelim(),t.slider!=null&&Object.hasOwnProperty.call(t,"slider")&&$root.Slider.encode(t.slider,o.uint32(170).fork()).ldelim(),t.textArea!=null&&Object.hasOwnProperty.call(t,"textArea")&&$root.TextArea.encode(t.textArea,o.uint32(178).fork()).ldelim(),t.radio!=null&&Object.hasOwnProperty.call(t,"radio")&&$root.Radio.encode(t.radio,o.uint32(186).fork()).ldelim(),t.textInput!=null&&Object.hasOwnProperty.call(t,"textInput")&&$root.TextInput.encode(t.textInput,o.uint32(194).fork()).ldelim(),t.selectbox!=null&&Object.hasOwnProperty.call(t,"selectbox")&&$root.Selectbox.encode(t.selectbox,o.uint32(202).fork()).ldelim(),t.timeInput!=null&&Object.hasOwnProperty.call(t,"timeInput")&&$root.TimeInput.encode(t.timeInput,o.uint32(210).fork()).ldelim(),t.dateInput!=null&&Object.hasOwnProperty.call(t,"dateInput")&&$root.DateInput.encode(t.dateInput,o.uint32(218).fork()).ldelim(),t.multiselect!=null&&Object.hasOwnProperty.call(t,"multiselect")&&$root.MultiSelect.encode(t.multiselect,o.uint32(226).fork()).ldelim(),t.markdown!=null&&Object.hasOwnProperty.call(t,"markdown")&&$root.Markdown.encode(t.markdown,o.uint32(234).fork()).ldelim(),t.alert!=null&&Object.hasOwnProperty.call(t,"alert")&&$root.Alert.encode(t.alert,o.uint32(242).fork()).ldelim(),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&$root.Json.encode(t.json,o.uint32(250).fork()).ldelim(),t.numberInput!=null&&Object.hasOwnProperty.call(t,"numberInput")&&$root.NumberInput.encode(t.numberInput,o.uint32(258).fork()).ldelim(),t.fileUploader!=null&&Object.hasOwnProperty.call(t,"fileUploader")&&$root.FileUploader.encode(t.fileUploader,o.uint32(266).fork()).ldelim(),t.deckGlJsonChart!=null&&Object.hasOwnProperty.call(t,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(t.deckGlJsonChart,o.uint32(274).fork()).ldelim(),t.colorPicker!=null&&Object.hasOwnProperty.call(t,"colorPicker")&&$root.ColorPicker.encode(t.colorPicker,o.uint32(282).fork()).ldelim(),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&$root.Favicon.encode(t.favicon,o.uint32(290).fork()).ldelim(),t.componentInstance!=null&&Object.hasOwnProperty.call(t,"componentInstance")&&$root.ComponentInstance.encode(t.componentInstance,o.uint32(298).fork()).ldelim(),t.iframe!=null&&Object.hasOwnProperty.call(t,"iframe")&&$root.IFrame.encode(t.iframe,o.uint32(306).fork()).ldelim(),t.arrowTable!=null&&Object.hasOwnProperty.call(t,"arrowTable")&&$root.Arrow.encode(t.arrowTable,o.uint32(314).fork()).ldelim(),t.arrowDataFrame!=null&&Object.hasOwnProperty.call(t,"arrowDataFrame")&&$root.Arrow.encode(t.arrowDataFrame,o.uint32(322).fork()).ldelim(),t.arrowVegaLiteChart!=null&&Object.hasOwnProperty.call(t,"arrowVegaLiteChart")&&$root.ArrowVegaLiteChart.encode(t.arrowVegaLiteChart,o.uint32(330).fork()).ldelim(),t.metric!=null&&Object.hasOwnProperty.call(t,"metric")&&$root.Metric.encode(t.metric,o.uint32(338).fork()).ldelim(),t.downloadButton!=null&&Object.hasOwnProperty.call(t,"downloadButton")&&$root.DownloadButton.encode(t.downloadButton,o.uint32(346).fork()).ldelim(),t.spinner!=null&&Object.hasOwnProperty.call(t,"spinner")&&$root.Spinner.encode(t.spinner,o.uint32(354).fork()).ldelim(),t.cameraInput!=null&&Object.hasOwnProperty.call(t,"cameraInput")&&$root.CameraInput.encode(t.cameraInput,o.uint32(362).fork()).ldelim(),t.snow!=null&&Object.hasOwnProperty.call(t,"snow")&&$root.Snow.encode(t.snow,o.uint32(370).fork()).ldelim(),t.heading!=null&&Object.hasOwnProperty.call(t,"heading")&&$root.Heading.encode(t.heading,o.uint32(378).fork()).ldelim(),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&$root.Code.encode(t.code,o.uint32(386).fork()).ldelim(),t.chatInput!=null&&Object.hasOwnProperty.call(t,"chatInput")&&$root.ChatInput.encode(t.chatInput,o.uint32(394).fork()).ldelim(),t.toast!=null&&Object.hasOwnProperty.call(t,"toast")&&$root.Toast.encode(t.toast,o.uint32(402).fork()).ldelim(),t.linkButton!=null&&Object.hasOwnProperty.call(t,"linkButton")&&$root.LinkButton.encode(t.linkButton,o.uint32(410).fork()).ldelim(),t.skeleton!=null&&Object.hasOwnProperty.call(t,"skeleton")&&$root.Skeleton.encode(t.skeleton,o.uint32(418).fork()).ldelim(),t.pageLink!=null&&Object.hasOwnProperty.call(t,"pageLink")&&$root.PageLink.encode(t.pageLink,o.uint32(426).fork()).ldelim(),t.html!=null&&Object.hasOwnProperty.call(t,"html")&&$root.Html.encode(t.html,o.uint32(434).fork()).ldelim(),t.buttonGroup!=null&&Object.hasOwnProperty.call(t,"buttonGroup")&&$root.ButtonGroup.encode(t.buttonGroup,o.uint32(442).fork()).ldelim(),t.audioInput!=null&&Object.hasOwnProperty.call(t,"audioInput")&&$root.AudioInput.encode(t.audioInput,o.uint32(450).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(458).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(466).fork()).ldelim(),t.bidiComponent!=null&&Object.hasOwnProperty.call(t,"bidiComponent")&&$root.BidiComponent.encode(t.bidiComponent,o.uint32(474).fork()).ldelim(),t.space!=null&&Object.hasOwnProperty.call(t,"space")&&$root.Space.encode(t.space,o.uint32(482).fork()).ldelim(),t.textAlignmentConfig!=null&&Object.hasOwnProperty.call(t,"textAlignmentConfig")&&$root.streamlit.TextAlignmentConfig.encode(t.textAlignmentConfig,o.uint32(490).fork()).ldelim(),t.dateTimeInput!=null&&Object.hasOwnProperty.call(t,"dateTimeInput")&&$root.DateTimeInput.encode(t.dateTimeInput,o.uint32(498).fork()).ldelim(),t.feedback!=null&&Object.hasOwnProperty.call(t,"feedback")&&$root.Feedback.encode(t.feedback,o.uint32(506).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Element;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 57:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 58:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}case 61:{h.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.decode(t,t.uint32());break}case 30:{h.alert=$root.Alert.decode(t,t.uint32());break}case 40:{h.arrowDataFrame=$root.Arrow.decode(t,t.uint32());break}case 39:{h.arrowTable=$root.Arrow.decode(t,t.uint32());break}case 41:{h.arrowVegaLiteChart=$root.ArrowVegaLiteChart.decode(t,t.uint32());break}case 13:{h.audio=$root.Audio.decode(t,t.uint32());break}case 56:{h.audioInput=$root.AudioInput.decode(t,t.uint32());break}case 12:{h.balloons=$root.Balloons.decode(t,t.uint32());break}case 59:{h.bidiComponent=$root.BidiComponent.decode(t,t.uint32());break}case 19:{h.button=$root.Button.decode(t,t.uint32());break}case 55:{h.buttonGroup=$root.ButtonGroup.decode(t,t.uint32());break}case 43:{h.downloadButton=$root.DownloadButton.decode(t,t.uint32());break}case 45:{h.cameraInput=$root.CameraInput.decode(t,t.uint32());break}case 49:{h.chatInput=$root.ChatInput.decode(t,t.uint32());break}case 20:{h.checkbox=$root.Checkbox.decode(t,t.uint32());break}case 35:{h.colorPicker=$root.ColorPicker.decode(t,t.uint32());break}case 37:{h.componentInstance=$root.ComponentInstance.decode(t,t.uint32());break}case 27:{h.dateInput=$root.DateInput.decode(t,t.uint32());break}case 34:{h.deckGlJsonChart=$root.DeckGlJsonChart.decode(t,t.uint32());break}case 7:{h.docString=$root.DocString.decode(t,t.uint32());break}case 2:{h.empty=$root.Empty.decode(t,t.uint32());break}case 8:{h.exception=$root.Exception.decode(t,t.uint32());break}case 36:{h.favicon=$root.Favicon.decode(t,t.uint32());break}case 63:{h.feedback=$root.Feedback.decode(t,t.uint32());break}case 33:{h.fileUploader=$root.FileUploader.decode(t,t.uint32());break}case 18:{h.graphvizChart=$root.GraphVizChart.decode(t,t.uint32());break}case 54:{h.html=$root.Html.decode(t,t.uint32());break}case 38:{h.iframe=$root.IFrame.decode(t,t.uint32());break}case 6:{h.imgs=$root.ImageList.decode(t,t.uint32());break}case 31:{h.json=$root.Json.decode(t,t.uint32());break}case 51:{h.linkButton=$root.LinkButton.decode(t,t.uint32());break}case 29:{h.markdown=$root.Markdown.decode(t,t.uint32());break}case 42:{h.metric=$root.Metric.decode(t,t.uint32());break}case 28:{h.multiselect=$root.MultiSelect.decode(t,t.uint32());break}case 32:{h.numberInput=$root.NumberInput.decode(t,t.uint32());break}case 53:{h.pageLink=$root.PageLink.decode(t,t.uint32());break}case 16:{h.plotlyChart=$root.PlotlyChart.decode(t,t.uint32());break}case 5:{h.progress=$root.Progress.decode(t,t.uint32());break}case 23:{h.radio=$root.Radio.decode(t,t.uint32());break}case 25:{h.selectbox=$root.Selectbox.decode(t,t.uint32());break}case 52:{h.skeleton=$root.Skeleton.decode(t,t.uint32());break}case 21:{h.slider=$root.Slider.decode(t,t.uint32());break}case 46:{h.snow=$root.Snow.decode(t,t.uint32());break}case 60:{h.space=$root.Space.decode(t,t.uint32());break}case 44:{h.spinner=$root.Spinner.decode(t,t.uint32());break}case 1:{h.text=$root.Text.decode(t,t.uint32());break}case 22:{h.textArea=$root.TextArea.decode(t,t.uint32());break}case 24:{h.textInput=$root.TextInput.decode(t,t.uint32());break}case 26:{h.timeInput=$root.TimeInput.decode(t,t.uint32());break}case 62:{h.dateTimeInput=$root.DateTimeInput.decode(t,t.uint32());break}case 50:{h.toast=$root.Toast.decode(t,t.uint32());break}case 14:{h.video=$root.Video.decode(t,t.uint32());break}case 47:{h.heading=$root.Heading.decode(t,t.uint32());break}case 48:{h.code=$root.Code.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Element)return t;let o=new $root.Element;if(t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Element.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Element.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}if(t.textAlignmentConfig!=null){if(typeof t.textAlignmentConfig!="object")throw TypeError(".Element.textAlignmentConfig: object expected");o.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.fromObject(t.textAlignmentConfig)}if(t.alert!=null){if(typeof t.alert!="object")throw TypeError(".Element.alert: object expected");o.alert=$root.Alert.fromObject(t.alert)}if(t.arrowDataFrame!=null){if(typeof t.arrowDataFrame!="object")throw TypeError(".Element.arrowDataFrame: object expected");o.arrowDataFrame=$root.Arrow.fromObject(t.arrowDataFrame)}if(t.arrowTable!=null){if(typeof t.arrowTable!="object")throw TypeError(".Element.arrowTable: object expected");o.arrowTable=$root.Arrow.fromObject(t.arrowTable)}if(t.arrowVegaLiteChart!=null){if(typeof t.arrowVegaLiteChart!="object")throw TypeError(".Element.arrowVegaLiteChart: object expected");o.arrowVegaLiteChart=$root.ArrowVegaLiteChart.fromObject(t.arrowVegaLiteChart)}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".Element.audio: object expected");o.audio=$root.Audio.fromObject(t.audio)}if(t.audioInput!=null){if(typeof t.audioInput!="object")throw TypeError(".Element.audioInput: object expected");o.audioInput=$root.AudioInput.fromObject(t.audioInput)}if(t.balloons!=null){if(typeof t.balloons!="object")throw TypeError(".Element.balloons: object expected");o.balloons=$root.Balloons.fromObject(t.balloons)}if(t.bidiComponent!=null){if(typeof t.bidiComponent!="object")throw TypeError(".Element.bidiComponent: object expected");o.bidiComponent=$root.BidiComponent.fromObject(t.bidiComponent)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".Element.button: object expected");o.button=$root.Button.fromObject(t.button)}if(t.buttonGroup!=null){if(typeof t.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");o.buttonGroup=$root.ButtonGroup.fromObject(t.buttonGroup)}if(t.downloadButton!=null){if(typeof t.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");o.downloadButton=$root.DownloadButton.fromObject(t.downloadButton)}if(t.cameraInput!=null){if(typeof t.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");o.cameraInput=$root.CameraInput.fromObject(t.cameraInput)}if(t.chatInput!=null){if(typeof t.chatInput!="object")throw TypeError(".Element.chatInput: object expected");o.chatInput=$root.ChatInput.fromObject(t.chatInput)}if(t.checkbox!=null){if(typeof t.checkbox!="object")throw TypeError(".Element.checkbox: object expected");o.checkbox=$root.Checkbox.fromObject(t.checkbox)}if(t.colorPicker!=null){if(typeof t.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");o.colorPicker=$root.ColorPicker.fromObject(t.colorPicker)}if(t.componentInstance!=null){if(typeof t.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");o.componentInstance=$root.ComponentInstance.fromObject(t.componentInstance)}if(t.dateInput!=null){if(typeof t.dateInput!="object")throw TypeError(".Element.dateInput: object expected");o.dateInput=$root.DateInput.fromObject(t.dateInput)}if(t.deckGlJsonChart!=null){if(typeof t.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");o.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(t.deckGlJsonChart)}if(t.docString!=null){if(typeof t.docString!="object")throw TypeError(".Element.docString: object expected");o.docString=$root.DocString.fromObject(t.docString)}if(t.empty!=null){if(typeof t.empty!="object")throw TypeError(".Element.empty: object expected");o.empty=$root.Empty.fromObject(t.empty)}if(t.exception!=null){if(typeof t.exception!="object")throw TypeError(".Element.exception: object expected");o.exception=$root.Exception.fromObject(t.exception)}if(t.favicon!=null){if(typeof t.favicon!="object")throw TypeError(".Element.favicon: object expected");o.favicon=$root.Favicon.fromObject(t.favicon)}if(t.feedback!=null){if(typeof t.feedback!="object")throw TypeError(".Element.feedback: object expected");o.feedback=$root.Feedback.fromObject(t.feedback)}if(t.fileUploader!=null){if(typeof t.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");o.fileUploader=$root.FileUploader.fromObject(t.fileUploader)}if(t.graphvizChart!=null){if(typeof t.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");o.graphvizChart=$root.GraphVizChart.fromObject(t.graphvizChart)}if(t.html!=null){if(typeof t.html!="object")throw TypeError(".Element.html: object expected");o.html=$root.Html.fromObject(t.html)}if(t.iframe!=null){if(typeof t.iframe!="object")throw TypeError(".Element.iframe: object expected");o.iframe=$root.IFrame.fromObject(t.iframe)}if(t.imgs!=null){if(typeof t.imgs!="object")throw TypeError(".Element.imgs: object expected");o.imgs=$root.ImageList.fromObject(t.imgs)}if(t.json!=null){if(typeof t.json!="object")throw TypeError(".Element.json: object expected");o.json=$root.Json.fromObject(t.json)}if(t.linkButton!=null){if(typeof t.linkButton!="object")throw TypeError(".Element.linkButton: object expected");o.linkButton=$root.LinkButton.fromObject(t.linkButton)}if(t.markdown!=null){if(typeof t.markdown!="object")throw TypeError(".Element.markdown: object expected");o.markdown=$root.Markdown.fromObject(t.markdown)}if(t.metric!=null){if(typeof t.metric!="object")throw TypeError(".Element.metric: object expected");o.metric=$root.Metric.fromObject(t.metric)}if(t.multiselect!=null){if(typeof t.multiselect!="object")throw TypeError(".Element.multiselect: object expected");o.multiselect=$root.MultiSelect.fromObject(t.multiselect)}if(t.numberInput!=null){if(typeof t.numberInput!="object")throw TypeError(".Element.numberInput: object expected");o.numberInput=$root.NumberInput.fromObject(t.numberInput)}if(t.pageLink!=null){if(typeof t.pageLink!="object")throw TypeError(".Element.pageLink: object expected");o.pageLink=$root.PageLink.fromObject(t.pageLink)}if(t.plotlyChart!=null){if(typeof t.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");o.plotlyChart=$root.PlotlyChart.fromObject(t.plotlyChart)}if(t.progress!=null){if(typeof t.progress!="object")throw TypeError(".Element.progress: object expected");o.progress=$root.Progress.fromObject(t.progress)}if(t.radio!=null){if(typeof t.radio!="object")throw TypeError(".Element.radio: object expected");o.radio=$root.Radio.fromObject(t.radio)}if(t.selectbox!=null){if(typeof t.selectbox!="object")throw TypeError(".Element.selectbox: object expected");o.selectbox=$root.Selectbox.fromObject(t.selectbox)}if(t.skeleton!=null){if(typeof t.skeleton!="object")throw TypeError(".Element.skeleton: object expected");o.skeleton=$root.Skeleton.fromObject(t.skeleton)}if(t.slider!=null){if(typeof t.slider!="object")throw TypeError(".Element.slider: object expected");o.slider=$root.Slider.fromObject(t.slider)}if(t.snow!=null){if(typeof t.snow!="object")throw TypeError(".Element.snow: object expected");o.snow=$root.Snow.fromObject(t.snow)}if(t.space!=null){if(typeof t.space!="object")throw TypeError(".Element.space: object expected");o.space=$root.Space.fromObject(t.space)}if(t.spinner!=null){if(typeof t.spinner!="object")throw TypeError(".Element.spinner: object expected");o.spinner=$root.Spinner.fromObject(t.spinner)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".Element.text: object expected");o.text=$root.Text.fromObject(t.text)}if(t.textArea!=null){if(typeof t.textArea!="object")throw TypeError(".Element.textArea: object expected");o.textArea=$root.TextArea.fromObject(t.textArea)}if(t.textInput!=null){if(typeof t.textInput!="object")throw TypeError(".Element.textInput: object expected");o.textInput=$root.TextInput.fromObject(t.textInput)}if(t.timeInput!=null){if(typeof t.timeInput!="object")throw TypeError(".Element.timeInput: object expected");o.timeInput=$root.TimeInput.fromObject(t.timeInput)}if(t.dateTimeInput!=null){if(typeof t.dateTimeInput!="object")throw TypeError(".Element.dateTimeInput: object expected");o.dateTimeInput=$root.DateTimeInput.fromObject(t.dateTimeInput)}if(t.toast!=null){if(typeof t.toast!="object")throw TypeError(".Element.toast: object expected");o.toast=$root.Toast.fromObject(t.toast)}if(t.video!=null){if(typeof t.video!="object")throw TypeError(".Element.video: object expected");o.video=$root.Video.fromObject(t.video)}if(t.heading!=null){if(typeof t.heading!="object")throw TypeError(".Element.heading: object expected");o.heading=$root.Heading.fromObject(t.heading)}if(t.code!=null){if(typeof t.code!="object")throw TypeError(".Element.code: object expected");o.code=$root.Code.fromObject(t.code)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.text!=null&&t.hasOwnProperty("text")&&(d.text=$root.Text.toObject(t.text,o),o.oneofs&&(d.type="text")),t.empty!=null&&t.hasOwnProperty("empty")&&(d.empty=$root.Empty.toObject(t.empty,o),o.oneofs&&(d.type="empty")),t.progress!=null&&t.hasOwnProperty("progress")&&(d.progress=$root.Progress.toObject(t.progress,o),o.oneofs&&(d.type="progress")),t.imgs!=null&&t.hasOwnProperty("imgs")&&(d.imgs=$root.ImageList.toObject(t.imgs,o),o.oneofs&&(d.type="imgs")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=$root.DocString.toObject(t.docString,o),o.oneofs&&(d.type="docString")),t.exception!=null&&t.hasOwnProperty("exception")&&(d.exception=$root.Exception.toObject(t.exception,o),o.oneofs&&(d.type="exception")),t.balloons!=null&&t.hasOwnProperty("balloons")&&(d.balloons=$root.Balloons.toObject(t.balloons,o),o.oneofs&&(d.type="balloons")),t.audio!=null&&t.hasOwnProperty("audio")&&(d.audio=$root.Audio.toObject(t.audio,o),o.oneofs&&(d.type="audio")),t.video!=null&&t.hasOwnProperty("video")&&(d.video=$root.Video.toObject(t.video,o),o.oneofs&&(d.type="video")),t.plotlyChart!=null&&t.hasOwnProperty("plotlyChart")&&(d.plotlyChart=$root.PlotlyChart.toObject(t.plotlyChart,o),o.oneofs&&(d.type="plotlyChart")),t.graphvizChart!=null&&t.hasOwnProperty("graphvizChart")&&(d.graphvizChart=$root.GraphVizChart.toObject(t.graphvizChart,o),o.oneofs&&(d.type="graphvizChart")),t.button!=null&&t.hasOwnProperty("button")&&(d.button=$root.Button.toObject(t.button,o),o.oneofs&&(d.type="button")),t.checkbox!=null&&t.hasOwnProperty("checkbox")&&(d.checkbox=$root.Checkbox.toObject(t.checkbox,o),o.oneofs&&(d.type="checkbox")),t.slider!=null&&t.hasOwnProperty("slider")&&(d.slider=$root.Slider.toObject(t.slider,o),o.oneofs&&(d.type="slider")),t.textArea!=null&&t.hasOwnProperty("textArea")&&(d.textArea=$root.TextArea.toObject(t.textArea,o),o.oneofs&&(d.type="textArea")),t.radio!=null&&t.hasOwnProperty("radio")&&(d.radio=$root.Radio.toObject(t.radio,o),o.oneofs&&(d.type="radio")),t.textInput!=null&&t.hasOwnProperty("textInput")&&(d.textInput=$root.TextInput.toObject(t.textInput,o),o.oneofs&&(d.type="textInput")),t.selectbox!=null&&t.hasOwnProperty("selectbox")&&(d.selectbox=$root.Selectbox.toObject(t.selectbox,o),o.oneofs&&(d.type="selectbox")),t.timeInput!=null&&t.hasOwnProperty("timeInput")&&(d.timeInput=$root.TimeInput.toObject(t.timeInput,o),o.oneofs&&(d.type="timeInput")),t.dateInput!=null&&t.hasOwnProperty("dateInput")&&(d.dateInput=$root.DateInput.toObject(t.dateInput,o),o.oneofs&&(d.type="dateInput")),t.multiselect!=null&&t.hasOwnProperty("multiselect")&&(d.multiselect=$root.MultiSelect.toObject(t.multiselect,o),o.oneofs&&(d.type="multiselect")),t.markdown!=null&&t.hasOwnProperty("markdown")&&(d.markdown=$root.Markdown.toObject(t.markdown,o),o.oneofs&&(d.type="markdown")),t.alert!=null&&t.hasOwnProperty("alert")&&(d.alert=$root.Alert.toObject(t.alert,o),o.oneofs&&(d.type="alert")),t.json!=null&&t.hasOwnProperty("json")&&(d.json=$root.Json.toObject(t.json,o),o.oneofs&&(d.type="json")),t.numberInput!=null&&t.hasOwnProperty("numberInput")&&(d.numberInput=$root.NumberInput.toObject(t.numberInput,o),o.oneofs&&(d.type="numberInput")),t.fileUploader!=null&&t.hasOwnProperty("fileUploader")&&(d.fileUploader=$root.FileUploader.toObject(t.fileUploader,o),o.oneofs&&(d.type="fileUploader")),t.deckGlJsonChart!=null&&t.hasOwnProperty("deckGlJsonChart")&&(d.deckGlJsonChart=$root.DeckGlJsonChart.toObject(t.deckGlJsonChart,o),o.oneofs&&(d.type="deckGlJsonChart")),t.colorPicker!=null&&t.hasOwnProperty("colorPicker")&&(d.colorPicker=$root.ColorPicker.toObject(t.colorPicker,o),o.oneofs&&(d.type="colorPicker")),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=$root.Favicon.toObject(t.favicon,o),o.oneofs&&(d.type="favicon")),t.componentInstance!=null&&t.hasOwnProperty("componentInstance")&&(d.componentInstance=$root.ComponentInstance.toObject(t.componentInstance,o),o.oneofs&&(d.type="componentInstance")),t.iframe!=null&&t.hasOwnProperty("iframe")&&(d.iframe=$root.IFrame.toObject(t.iframe,o),o.oneofs&&(d.type="iframe")),t.arrowTable!=null&&t.hasOwnProperty("arrowTable")&&(d.arrowTable=$root.Arrow.toObject(t.arrowTable,o),o.oneofs&&(d.type="arrowTable")),t.arrowDataFrame!=null&&t.hasOwnProperty("arrowDataFrame")&&(d.arrowDataFrame=$root.Arrow.toObject(t.arrowDataFrame,o),o.oneofs&&(d.type="arrowDataFrame")),t.arrowVegaLiteChart!=null&&t.hasOwnProperty("arrowVegaLiteChart")&&(d.arrowVegaLiteChart=$root.ArrowVegaLiteChart.toObject(t.arrowVegaLiteChart,o),o.oneofs&&(d.type="arrowVegaLiteChart")),t.metric!=null&&t.hasOwnProperty("metric")&&(d.metric=$root.Metric.toObject(t.metric,o),o.oneofs&&(d.type="metric")),t.downloadButton!=null&&t.hasOwnProperty("downloadButton")&&(d.downloadButton=$root.DownloadButton.toObject(t.downloadButton,o),o.oneofs&&(d.type="downloadButton")),t.spinner!=null&&t.hasOwnProperty("spinner")&&(d.spinner=$root.Spinner.toObject(t.spinner,o),o.oneofs&&(d.type="spinner")),t.cameraInput!=null&&t.hasOwnProperty("cameraInput")&&(d.cameraInput=$root.CameraInput.toObject(t.cameraInput,o),o.oneofs&&(d.type="cameraInput")),t.snow!=null&&t.hasOwnProperty("snow")&&(d.snow=$root.Snow.toObject(t.snow,o),o.oneofs&&(d.type="snow")),t.heading!=null&&t.hasOwnProperty("heading")&&(d.heading=$root.Heading.toObject(t.heading,o),o.oneofs&&(d.type="heading")),t.code!=null&&t.hasOwnProperty("code")&&(d.code=$root.Code.toObject(t.code,o),o.oneofs&&(d.type="code")),t.chatInput!=null&&t.hasOwnProperty("chatInput")&&(d.chatInput=$root.ChatInput.toObject(t.chatInput,o),o.oneofs&&(d.type="chatInput")),t.toast!=null&&t.hasOwnProperty("toast")&&(d.toast=$root.Toast.toObject(t.toast,o),o.oneofs&&(d.type="toast")),t.linkButton!=null&&t.hasOwnProperty("linkButton")&&(d.linkButton=$root.LinkButton.toObject(t.linkButton,o),o.oneofs&&(d.type="linkButton")),t.skeleton!=null&&t.hasOwnProperty("skeleton")&&(d.skeleton=$root.Skeleton.toObject(t.skeleton,o),o.oneofs&&(d.type="skeleton")),t.pageLink!=null&&t.hasOwnProperty("pageLink")&&(d.pageLink=$root.PageLink.toObject(t.pageLink,o),o.oneofs&&(d.type="pageLink")),t.html!=null&&t.hasOwnProperty("html")&&(d.html=$root.Html.toObject(t.html,o),o.oneofs&&(d.type="html")),t.buttonGroup!=null&&t.hasOwnProperty("buttonGroup")&&(d.buttonGroup=$root.ButtonGroup.toObject(t.buttonGroup,o),o.oneofs&&(d.type="buttonGroup")),t.audioInput!=null&&t.hasOwnProperty("audioInput")&&(d.audioInput=$root.AudioInput.toObject(t.audioInput,o),o.oneofs&&(d.type="audioInput")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),t.bidiComponent!=null&&t.hasOwnProperty("bidiComponent")&&(d.bidiComponent=$root.BidiComponent.toObject(t.bidiComponent,o),o.oneofs&&(d.type="bidiComponent")),t.space!=null&&t.hasOwnProperty("space")&&(d.space=$root.Space.toObject(t.space,o),o.oneofs&&(d.type="space")),t.textAlignmentConfig!=null&&t.hasOwnProperty("textAlignmentConfig")&&(d.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.toObject(t.textAlignmentConfig,o),o.oneofs&&(d._textAlignmentConfig="textAlignmentConfig")),t.dateTimeInput!=null&&t.hasOwnProperty("dateTimeInput")&&(d.dateTimeInput=$root.DateTimeInput.toObject(t.dateTimeInput,o),o.oneofs&&(d.type="dateTimeInput")),t.feedback!=null&&t.hasOwnProperty("feedback")&&(d.feedback=$root.Feedback.toObject(t.feedback,o),o.oneofs&&(d.type="feedback")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Element"},n})();$root.DownloadButton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.ignoreRerun=!1,n.prototype.deferredFileId=null,n.prototype.shortcut="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_deferredFileId",{get:$util.oneOfGetter(i=["deferredFileId"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).bool(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(64).bool(t.useContainerWidth),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(74).string(t.type),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(82).string(t.icon),t.ignoreRerun!=null&&Object.hasOwnProperty.call(t,"ignoreRerun")&&o.uint32(88).bool(t.ignoreRerun),t.deferredFileId!=null&&Object.hasOwnProperty.call(t,"deferredFileId")&&o.uint32(98).string(t.deferredFileId),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&o.uint32(106).string(t.shortcut),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(112).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.DownloadButton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.bool();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.url=t.string();break}case 7:{h.disabled=t.bool();break}case 8:{h.useContainerWidth=t.bool();break}case 9:{h.type=t.string();break}case 10:{h.icon=t.string();break}case 11:{h.ignoreRerun=t.bool();break}case 12:{h.deferredFileId=t.string();break}case 13:{h.shortcut=t.string();break}case 14:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.DownloadButton)return t;let o=new $root.DownloadButton;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=!!t.default),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.url!=null&&(o.url=String(t.url)),t.disabled!=null&&(o.disabled=!!t.disabled),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.type!=null&&(o.type=String(t.type)),t.icon!=null&&(o.icon=String(t.icon)),t.ignoreRerun!=null&&(o.ignoreRerun=!!t.ignoreRerun),t.deferredFileId!=null&&(o.deferredFileId=String(t.deferredFileId)),t.shortcut!=null&&(o.shortcut=String(t.shortcut)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.default=!1,d.help="",d.formId="",d.url="",d.disabled=!1,d.useContainerWidth=!1,d.type="",d.icon="",d.ignoreRerun=!1,d.shortcut="",d.iconPosition=o.enums===String?"LEFT":0),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.ignoreRerun!=null&&t.hasOwnProperty("ignoreRerun")&&(d.ignoreRerun=t.ignoreRerun),t.deferredFileId!=null&&t.hasOwnProperty("deferredFileId")&&(d.deferredFileId=t.deferredFileId,o.oneofs&&(d._deferredFileId="deferredFileId")),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(d.shortcut=t.shortcut),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DownloadButton"},n})();$root.DocString=(()=>{function n(i){if(this.members=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.docString="",n.prototype.type="",n.prototype.name="",n.prototype.value="",n.prototype.members=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.docString!=null&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(50).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let o=0;o<e.members.length;++o)$root.Member.encode(e.members[o],t.uint32(66).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DocString;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.docString=e.string();break}case 4:{p.type=e.string();break}case 6:{p.name=e.string();break}case 7:{p.value=e.string();break}case 8:{p.members&&p.members.length||(p.members=[]),p.members.push($root.Member.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DocString)return e;let t=new $root.DocString;if(e.docString!=null&&(t.docString=String(e.docString)),e.type!=null&&(t.type=String(e.type)),e.name!=null&&(t.name=String(e.name)),e.value!=null&&(t.value=String(e.value)),e.members){if(!Array.isArray(e.members))throw TypeError(".DocString.members: array expected");t.members=[];for(let o=0;o<e.members.length;++o){if(typeof e.members[o]!="object")throw TypeError(".DocString.members: object expected");t.members[o]=$root.Member.fromObject(e.members[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.members=[]),t.defaults&&(o.docString="",o.type="",o.name="",o.value=""),e.docString!=null&&e.hasOwnProperty("docString")&&(o.docString=e.docString),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.members&&e.members.length){o.members=[];for(let d=0;d<e.members.length;++d)o.members[d]=$root.Member.toObject(e.members[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DocString"},n})();$root.Member=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.name="",n.prototype.type="",n.prototype.value=null,n.prototype.docString=null;let i;return Object.defineProperty(n.prototype,"contents",{get:$util.oneOfGetter(i=["value","docString"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(18).string(t.type),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(26).string(t.value),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&o.uint32(34).string(t.docString),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Member;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.string();break}case 3:{h.value=t.string();break}case 4:{h.docString=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Member)return t;let o=new $root.Member;return t.name!=null&&(o.name=String(t.name)),t.type!=null&&(o.type=String(t.type)),t.value!=null&&(o.value=String(t.value)),t.docString!=null&&(o.docString=String(t.docString)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.type=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d.contents="value")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=t.docString,o.oneofs&&(d.contents="docString")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Member"},n})();$root.Empty=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Empty;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Empty?e:new $root.Empty},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Empty"},n})();$root.Exception=(()=>{function n(i){if(this.stackTrace=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.type="",n.prototype.message="",n.prototype.messageIsMarkdown=!1,n.prototype.stackTrace=$util.emptyArray,n.prototype.isWarning=!1,n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let o=0;o<e.stackTrace.length;++o)t.uint32(26).string(e.stackTrace[o]);return e.messageIsMarkdown!=null&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Exception;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.type=e.string();break}case 2:{p.message=e.string();break}case 4:{p.messageIsMarkdown=e.bool();break}case 3:{p.stackTrace&&p.stackTrace.length||(p.stackTrace=[]),p.stackTrace.push(e.string());break}case 5:{p.isWarning=e.bool();break}case 6:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Exception)return e;let t=new $root.Exception;if(e.type!=null&&(t.type=String(e.type)),e.message!=null&&(t.message=String(e.message)),e.messageIsMarkdown!=null&&(t.messageIsMarkdown=!!e.messageIsMarkdown),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let o=0;o<e.stackTrace.length;++o)t.stackTrace[o]=String(e.stackTrace[o])}if(e.isWarning!=null&&(t.isWarning=!!e.isWarning),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Exception.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.stackTrace=[]),t.defaults&&(o.type="",o.message="",o.messageIsMarkdown=!1,o.isWarning=!1,o.widthConfig=null),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),e.stackTrace&&e.stackTrace.length){o.stackTrace=[];for(let d=0;d<e.stackTrace.length;++d)o.stackTrace[d]=e.stackTrace[d]}return e.messageIsMarkdown!=null&&e.hasOwnProperty("messageIsMarkdown")&&(o.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&e.hasOwnProperty("isWarning")&&(o.isWarning=e.isWarning),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Exception"},n})();$root.Favicon=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Favicon;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Favicon)return e;let t=new $root.Favicon;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Favicon"},n})();const Feedback$1=$root.Feedback=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.type=0,n.prototype.default=null,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(16).int32(t.type),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).uint32(t.default),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(48).uint32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(56).bool(t.setValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Feedback;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.type=t.int32();break}case 3:{h.default=t.uint32();break}case 4:{h.disabled=t.bool();break}case 5:{h.formId=t.string();break}case 6:{h.value=t.uint32();break}case 7:{h.setValue=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Feedback)return t;let o=new $root.Feedback;switch(t.id!=null&&(o.id=String(t.id)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"THUMBS":case 0:o.type=0;break;case"FACES":case 1:o.type=1;break;case"STARS":case 2:o.type=2;break}return t.default!=null&&(o.default=t.default>>>0),t.disabled!=null&&(o.disabled=!!t.disabled),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=t.value>>>0),t.setValue!=null&&(o.setValue=!!t.setValue),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.type=o.enums===String?"THUMBS":0,d.disabled=!1,d.formId="",d.setValue=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Feedback.FeedbackType[t.type]===void 0?t.type:$root.Feedback.FeedbackType[t.type]:t.type),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Feedback"},n.FeedbackType=(function(){const e={},t=Object.create(e);return t[e[0]="THUMBS"]=0,t[e[1]="FACES"]=1,t[e[2]="STARS"]=2,t})(),n})();$root.FileUploader=(()=>{function n(i){if(this.type=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.type=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.multipleFiles=!1,n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.acceptDirectory=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let o=0;o<e.type.length;++o)t.uint32(26).string(e.type[o]);return e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.acceptDirectory!=null&&Object.hasOwnProperty.call(e,"acceptDirectory")&&t.uint32(88).bool(e.acceptDirectory),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploader;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.type&&p.type.length||(p.type=[]),p.type.push(e.string());break}case 4:{p.maxUploadSizeMb=e.int32();break}case 6:{p.multipleFiles=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.disabled=e.bool();break}case 10:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 11:{p.acceptDirectory=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploader)return e;let t=new $root.FileUploader;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let o=0;o<e.type.length;++o)t.type[o]=String(e.type[o])}if(e.maxUploadSizeMb!=null&&(t.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&(t.multipleFiles=!!e.multipleFiles),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.acceptDirectory!=null&&(t.acceptDirectory=!!e.acceptDirectory),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.type=[]),t.defaults&&(o.id="",o.label="",o.maxUploadSizeMb=0,o.multipleFiles=!1,o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null,o.acceptDirectory=!1),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.type&&e.type.length){o.type=[];for(let d=0;d<e.type.length;++d)o.type[d]=e.type[d]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty("maxUploadSizeMb")&&(o.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&e.hasOwnProperty("multipleFiles")&&(o.multipleFiles=e.multipleFiles),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.acceptDirectory!=null&&e.hasOwnProperty("acceptDirectory")&&(o.acceptDirectory=e.acceptDirectory),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploader"},n})();$root.GraphVizChart=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.elementId="",n.prototype.engine="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),e.engine!=null&&Object.hasOwnProperty.call(e,"engine")&&t.uint32(50).string(e.engine),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GraphVizChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 5:{p.elementId=e.string();break}case 6:{p.engine=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GraphVizChart)return e;let t=new $root.GraphVizChart;return e.spec!=null&&(t.spec=String(e.spec)),e.elementId!=null&&(t.elementId=String(e.elementId)),e.engine!=null&&(t.engine=String(e.engine)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.spec="",o.elementId="",o.engine=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.elementId!=null&&e.hasOwnProperty("elementId")&&(o.elementId=e.elementId),e.engine!=null&&e.hasOwnProperty("engine")&&(o.engine=e.engine),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GraphVizChart"},n})();$root.Html=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.unsafeAllowJavascript=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(e,"unsafeAllowJavascript")&&t.uint32(16).bool(e.unsafeAllowJavascript),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Html;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.unsafeAllowJavascript=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Html)return e;let t=new $root.Html;return e.body!=null&&(t.body=String(e.body)),e.unsafeAllowJavascript!=null&&(t.unsafeAllowJavascript=!!e.unsafeAllowJavascript),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.unsafeAllowJavascript=!1),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.unsafeAllowJavascript!=null&&e.hasOwnProperty("unsafeAllowJavascript")&&(o.unsafeAllowJavascript=e.unsafeAllowJavascript),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Html"},n})();$root.IFrame=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.src=null,n.prototype.srcdoc=null,n.prototype.scrolling=!1,n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["src","srcdoc"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.src!=null&&Object.hasOwnProperty.call(t,"src")&&o.uint32(10).string(t.src),t.srcdoc!=null&&Object.hasOwnProperty.call(t,"srcdoc")&&o.uint32(18).string(t.srcdoc),t.scrolling!=null&&Object.hasOwnProperty.call(t,"scrolling")&&o.uint32(56).bool(t.scrolling),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(64).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.IFrame;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.src=t.string();break}case 2:{h.srcdoc=t.string();break}case 7:{h.scrolling=t.bool();break}case 8:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.IFrame)return t;let o=new $root.IFrame;return t.src!=null&&(o.src=String(t.src)),t.srcdoc!=null&&(o.srcdoc=String(t.srcdoc)),t.scrolling!=null&&(o.scrolling=!!t.scrolling),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.scrolling=!1),t.src!=null&&t.hasOwnProperty("src")&&(d.src=t.src,o.oneofs&&(d.type="src")),t.srcdoc!=null&&t.hasOwnProperty("srcdoc")&&(d.srcdoc=t.srcdoc,o.oneofs&&(d.type="srcdoc")),t.scrolling!=null&&t.hasOwnProperty("scrolling")&&(d.scrolling=t.scrolling),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/IFrame"},n})();$root.Image=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.caption="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Image;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.url=e.string();break}case 2:{p.caption=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Image)return e;let t=new $root.Image;return e.url!=null&&(t.url=String(e.url)),e.caption!=null&&(t.caption=String(e.caption)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.caption="",o.url=""),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Image"},n})();$root.ImageList=(()=>{function n(i){if(this.imgs=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.imgs=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.imgs!=null&&e.imgs.length)for(let o=0;o<e.imgs.length;++o)$root.Image.encode(e.imgs[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ImageList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.imgs&&p.imgs.length||(p.imgs=[]),p.imgs.push($root.Image.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ImageList)return e;let t=new $root.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let o=0;o<e.imgs.length;++o){if(typeof e.imgs[o]!="object")throw TypeError(".ImageList.imgs: object expected");t.imgs[o]=$root.Image.fromObject(e.imgs[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.imgs=[]),e.imgs&&e.imgs.length){o.imgs=[];for(let d=0;d<e.imgs.length;++d)o.imgs[d]=$root.Image.toObject(e.imgs[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ImageList"},n})();$root.Json=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.body="",n.prototype.expanded=!1,n.prototype.maxExpandDepth=null;let i;return Object.defineProperty(n.prototype,"_maxExpandDepth",{get:$util.oneOfGetter(i=["maxExpandDepth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.expanded!=null&&Object.hasOwnProperty.call(t,"expanded")&&o.uint32(16).bool(t.expanded),t.maxExpandDepth!=null&&Object.hasOwnProperty.call(t,"maxExpandDepth")&&o.uint32(24).int32(t.maxExpandDepth),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Json;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.expanded=t.bool();break}case 3:{h.maxExpandDepth=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Json)return t;let o=new $root.Json;return t.body!=null&&(o.body=String(t.body)),t.expanded!=null&&(o.expanded=!!t.expanded),t.maxExpandDepth!=null&&(o.maxExpandDepth=t.maxExpandDepth|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.expanded=!1),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.expanded!=null&&t.hasOwnProperty("expanded")&&(d.expanded=t.expanded),t.maxExpandDepth!=null&&t.hasOwnProperty("maxExpandDepth")&&(d.maxExpandDepth=t.maxExpandDepth,o.oneofs&&(d._maxExpandDepth="maxExpandDepth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Json"},n})();$root.LinkButton=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LinkButton;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 4:{p.help=e.string();break}case 6:{p.url=e.string();break}case 7:{p.disabled=e.bool();break}case 8:{p.useContainerWidth=e.bool();break}case 9:{p.type=e.string();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LinkButton)return e;let t=new $root.LinkButton;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.url!=null&&(t.url=String(e.url)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(t.type=String(e.type)),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.url="",o.disabled=!1,o.useContainerWidth=!1,o.type="",o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LinkButton"},n})();const NumberInput$1=$root.NumberInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.formId="",n.prototype.format="",n.prototype.hasMin=!1,n.prototype.hasMax=!1,n.prototype.dataType=0,n.prototype.default=null,n.prototype.step=0,n.prototype.min=0,n.prototype.max=0,n.prototype.help="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.icon="";let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(26).string(t.formId),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&o.uint32(66).string(t.format),t.hasMin!=null&&Object.hasOwnProperty.call(t,"hasMin")&&o.uint32(88).bool(t.hasMin),t.hasMax!=null&&Object.hasOwnProperty.call(t,"hasMax")&&o.uint32(96).bool(t.hasMax),t.dataType!=null&&Object.hasOwnProperty.call(t,"dataType")&&o.uint32(104).int32(t.dataType),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(113).double(t.default),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(121).double(t.step),t.min!=null&&Object.hasOwnProperty.call(t,"min")&&o.uint32(129).double(t.min),t.max!=null&&Object.hasOwnProperty.call(t,"max")&&o.uint32(137).double(t.max),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(146).string(t.help),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(153).double(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(160).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(168).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(178).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(186).string(t.placeholder),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(194).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.NumberInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.formId=t.string();break}case 8:{h.format=t.string();break}case 11:{h.hasMin=t.bool();break}case 12:{h.hasMax=t.bool();break}case 13:{h.dataType=t.int32();break}case 14:{h.default=t.double();break}case 15:{h.step=t.double();break}case 16:{h.min=t.double();break}case 17:{h.max=t.double();break}case 18:{h.help=t.string();break}case 19:{h.value=t.double();break}case 20:{h.setValue=t.bool();break}case 21:{h.disabled=t.bool();break}case 22:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 23:{h.placeholder=t.string();break}case 24:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.NumberInput)return t;let o=new $root.NumberInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.formId!=null&&(o.formId=String(t.formId)),t.format!=null&&(o.format=String(t.format)),t.hasMin!=null&&(o.hasMin=!!t.hasMin),t.hasMax!=null&&(o.hasMax=!!t.hasMax),t.dataType){default:if(typeof t.dataType=="number"){o.dataType=t.dataType;break}break;case"INT":case 0:o.dataType=0;break;case"FLOAT":case 1:o.dataType=1;break}if(t.default!=null&&(o.default=Number(t.default)),t.step!=null&&(o.step=Number(t.step)),t.min!=null&&(o.min=Number(t.min)),t.max!=null&&(o.max=Number(t.max)),t.help!=null&&(o.help=String(t.help)),t.value!=null&&(o.value=Number(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.formId="",d.format="",d.hasMin=!1,d.hasMax=!1,d.dataType=o.enums===String?"INT":0,d.step=0,d.min=0,d.max=0,d.help="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder="",d.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.format!=null&&t.hasOwnProperty("format")&&(d.format=t.format),t.hasMin!=null&&t.hasOwnProperty("hasMin")&&(d.hasMin=t.hasMin),t.hasMax!=null&&t.hasOwnProperty("hasMax")&&(d.hasMax=t.hasMax),t.dataType!=null&&t.hasOwnProperty("dataType")&&(d.dataType=o.enums===String?$root.NumberInput.DataType[t.dataType]===void 0?t.dataType:$root.NumberInput.DataType[t.dataType]:t.dataType),t.default!=null&&t.hasOwnProperty("default")&&(d.default=o.json&&!isFinite(t.default)?String(t.default):t.default,o.oneofs&&(d._default="default")),t.step!=null&&t.hasOwnProperty("step")&&(d.step=o.json&&!isFinite(t.step)?String(t.step):t.step),t.min!=null&&t.hasOwnProperty("min")&&(d.min=o.json&&!isFinite(t.min)?String(t.min):t.min),t.max!=null&&t.hasOwnProperty("max")&&(d.max=o.json&&!isFinite(t.max)?String(t.max):t.max),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/NumberInput"},n.DataType=(function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t})(),n})(),Markdown$3=$root.Markdown=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.allowHtml=!1,n.prototype.elementType=0,n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.allowHtml!=null&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),e.elementType!=null&&Object.hasOwnProperty.call(e,"elementType")&&t.uint32(32).int32(e.elementType),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Markdown;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.allowHtml=e.bool();break}case 4:{p.elementType=e.int32();break}case 5:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Markdown)return e;let t=new $root.Markdown;switch(e.body!=null&&(t.body=String(e.body)),e.allowHtml!=null&&(t.allowHtml=!!e.allowHtml),e.elementType){default:if(typeof e.elementType=="number"){t.elementType=e.elementType;break}break;case"UNSPECIFIED":case 0:t.elementType=0;break;case"NATIVE":case 1:t.elementType=1;break;case"CAPTION":case 2:t.elementType=2;break;case"CODE":case 3:t.elementType=3;break;case"LATEX":case 4:t.elementType=4;break;case"DIVIDER":case 5:t.elementType=5;break}return e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.allowHtml=!1,o.elementType=t.enums===String?"UNSPECIFIED":0,o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.allowHtml!=null&&e.hasOwnProperty("allowHtml")&&(o.allowHtml=e.allowHtml),e.elementType!=null&&e.hasOwnProperty("elementType")&&(o.elementType=t.enums===String?$root.Markdown.Type[e.elementType]===void 0?e.elementType:$root.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Markdown"},n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="NATIVE"]=1,e[i[2]="CAPTION"]=2,e[i[3]="CODE"]=3,e[i[4]="LATEX"]=4,e[i[5]="DIVIDER"]=5,e})(),n})(),Metric$1=$root.Metric=(()=>{function n(i){if(this.chartData=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.label="",n.prototype.body="",n.prototype.delta="",n.prototype.direction=0,n.prototype.color=0,n.prototype.help="",n.prototype.labelVisibility=null,n.prototype.showBorder=!1,n.prototype.chartData=$util.emptyArray,n.prototype.chartType=0,n.prototype.format="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),e.delta!=null&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),e.direction!=null&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),e.color!=null&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),e.showBorder!=null&&Object.hasOwnProperty.call(e,"showBorder")&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let o=0;o<e.chartData.length;++o)t.double(e.chartData[o]);t.ldelim()}return e.chartType!=null&&Object.hasOwnProperty.call(e,"chartType")&&t.uint32(80).int32(e.chartType),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(90).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Metric;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.body=e.string();break}case 3:{p.delta=e.string();break}case 4:{p.direction=e.int32();break}case 5:{p.color=e.int32();break}case 6:{p.help=e.string();break}case 7:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 8:{p.showBorder=e.bool();break}case 9:{if(p.chartData&&p.chartData.length||(p.chartData=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.chartData.push(e.double())}else p.chartData.push(e.double());break}case 10:{p.chartType=e.int32();break}case 11:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Metric)return e;let t=new $root.Metric;switch(e.label!=null&&(t.label=String(e.label)),e.body!=null&&(t.body=String(e.body)),e.delta!=null&&(t.delta=String(e.delta)),e.direction){default:if(typeof e.direction=="number"){t.direction=e.direction;break}break;case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2;break}switch(e.color){default:if(typeof e.color=="number"){t.color=e.color;break}break;case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2;break;case"ORANGE":case 3:t.color=3;break;case"YELLOW":case 4:t.color=4;break;case"BLUE":case 5:t.color=5;break;case"VIOLET":case 6:t.color=6;break;case"PRIMARY":case 7:t.color=7;break}if(e.help!=null&&(t.help=String(e.help)),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}if(e.showBorder!=null&&(t.showBorder=!!e.showBorder),e.chartData){if(!Array.isArray(e.chartData))throw TypeError(".Metric.chartData: array expected");t.chartData=[];for(let o=0;o<e.chartData.length;++o)t.chartData[o]=Number(e.chartData[o])}switch(e.chartType){default:if(typeof e.chartType=="number"){t.chartType=e.chartType;break}break;case"LINE":case 0:t.chartType=0;break;case"BAR":case 1:t.chartType=1;break;case"AREA":case 2:t.chartType=2;break}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.chartData=[]),t.defaults&&(o.label="",o.body="",o.delta="",o.direction=t.enums===String?"DOWN":0,o.color=t.enums===String?"RED":0,o.help="",o.labelVisibility=null,o.showBorder=!1,o.chartType=t.enums===String?"LINE":0,o.format=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.delta!=null&&e.hasOwnProperty("delta")&&(o.delta=e.delta),e.direction!=null&&e.hasOwnProperty("direction")&&(o.direction=t.enums===String?$root.Metric.MetricDirection[e.direction]===void 0?e.direction:$root.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&e.hasOwnProperty("color")&&(o.color=t.enums===String?$root.Metric.MetricColor[e.color]===void 0?e.color:$root.Metric.MetricColor[e.color]:e.color),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.showBorder!=null&&e.hasOwnProperty("showBorder")&&(o.showBorder=e.showBorder),e.chartData&&e.chartData.length){o.chartData=[];for(let d=0;d<e.chartData.length;++d)o.chartData[d]=t.json&&!isFinite(e.chartData[d])?String(e.chartData[d]):e.chartData[d]}return e.chartType!=null&&e.hasOwnProperty("chartType")&&(o.chartType=t.enums===String?$root.Metric.ChartType[e.chartType]===void 0?e.chartType:$root.Metric.ChartType[e.chartType]:e.chartType),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Metric"},n.MetricDirection=(function(){const i={},e=Object.create(i);return e[i[0]="DOWN"]=0,e[i[1]="UP"]=1,e[i[2]="NONE"]=2,e})(),n.MetricColor=(function(){const i={},e=Object.create(i);return e[i[0]="RED"]=0,e[i[1]="GREEN"]=1,e[i[2]="GRAY"]=2,e[i[3]="ORANGE"]=3,e[i[4]="YELLOW"]=4,e[i[5]="BLUE"]=5,e[i[6]="VIOLET"]=6,e[i[7]="PRIMARY"]=7,e})(),n.ChartType=(function(){const i={},e=Object.create(i);return e[i[0]="LINE"]=0,e[i[1]="BAR"]=1,e[i[2]="AREA"]=2,e})(),n})();$root.MultiSelect=(()=>{function n(e){if(this.default=[],this.options=[],this.rawValues=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValues=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.maxSelections=0,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let i;return Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.int32(t.default[d]);o.ldelim()}if(t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.maxSelections!=null&&Object.hasOwnProperty.call(t,"maxSelections")&&o.uint32(88).int32(t.maxSelections),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(98).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(104).bool(t.acceptNewOptions),t.rawValues!=null&&t.rawValues.length)for(let d=0;d<t.rawValues.length;++d)o.uint32(114).string(t.rawValues[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.MultiSelect;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.int32())}else h.default.push(t.int32());break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(t.string());break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 11:{h.maxSelections=t.int32();break}case 12:{h.placeholder=t.string();break}case 13:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.MultiSelect)return t;let o=new $root.MultiSelect;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default){if(!Array.isArray(t.default))throw TypeError(".MultiSelect.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]|0}if(t.options){if(!Array.isArray(t.options))throw TypeError(".MultiSelect.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValues){if(!Array.isArray(t.rawValues))throw TypeError(".MultiSelect.rawValues: array expected");o.rawValues=[];for(let d=0;d<t.rawValues.length;++d)o.rawValues[d]=String(t.rawValues[d])}if(t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.maxSelections!=null&&(o.maxSelections=t.maxSelections|0),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.options=[],d.rawValues=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.maxSelections=0,d.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.maxSelections!=null&&t.hasOwnProperty("maxSelections")&&(d.maxSelections=t.maxSelections),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValues&&t.rawValues.length){d.rawValues=[];for(let p=0;p<t.rawValues.length;++p)d.rawValues[p]=t.rawValues[p]}return d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/MultiSelect"},n})();$root.PageLink=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.page="",n.prototype.label="",n.prototype.icon="",n.prototype.pageScriptHash="",n.prototype.help="",n.prototype.useContainerWidth=null,n.prototype.disabled=!1,n.prototype.external=!1,n.prototype.queryString="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_useContainerWidth",{get:$util.oneOfGetter(i=["useContainerWidth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.page!=null&&Object.hasOwnProperty.call(t,"page")&&o.uint32(10).string(t.page),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(26).string(t.icon),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&o.uint32(34).string(t.pageScriptHash),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(48).bool(t.useContainerWidth),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.external!=null&&Object.hasOwnProperty.call(t,"external")&&o.uint32(64).bool(t.external),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&o.uint32(74).string(t.queryString),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(80).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageLink;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.page=t.string();break}case 2:{h.label=t.string();break}case 3:{h.icon=t.string();break}case 4:{h.pageScriptHash=t.string();break}case 5:{h.help=t.string();break}case 6:{h.useContainerWidth=t.bool();break}case 7:{h.disabled=t.bool();break}case 8:{h.external=t.bool();break}case 9:{h.queryString=t.string();break}case 10:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageLink)return t;let o=new $root.PageLink;switch(t.page!=null&&(o.page=String(t.page)),t.label!=null&&(o.label=String(t.label)),t.icon!=null&&(o.icon=String(t.icon)),t.pageScriptHash!=null&&(o.pageScriptHash=String(t.pageScriptHash)),t.help!=null&&(o.help=String(t.help)),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.disabled!=null&&(o.disabled=!!t.disabled),t.external!=null&&(o.external=!!t.external),t.queryString!=null&&(o.queryString=String(t.queryString)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.page="",d.label="",d.icon="",d.pageScriptHash="",d.help="",d.disabled=!1,d.external=!1,d.queryString="",d.iconPosition=o.enums===String?"LEFT":0),t.page!=null&&t.hasOwnProperty("page")&&(d.page=t.page),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(d.pageScriptHash=t.pageScriptHash),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth,o.oneofs&&(d._useContainerWidth="useContainerWidth")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.external!=null&&t.hasOwnProperty("external")&&(d.external=t.external),t.queryString!=null&&t.hasOwnProperty("queryString")&&(d.queryString=t.queryString),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageLink"},n})();const PlotlyChart$1=$root.PlotlyChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.prototype.spec="",n.prototype.config="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let o=0;o<e.selectionMode.length;++o)t.int32(e.selectionMode[o]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(82).string(e.spec),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&t.uint32(90).string(e.config),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PlotlyChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 6:{p.theme=e.string();break}case 7:{p.id=e.string();break}case 8:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.selectionMode.push(e.int32())}else p.selectionMode.push(e.int32());break}case 9:{p.formId=e.string();break}case 10:{p.spec=e.string();break}case 11:{p.config=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PlotlyChart)return e;let t=new $root.PlotlyChart;if(e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)switch(e.selectionMode[o]){default:if(typeof e.selectionMode[o]=="number"){t.selectionMode[o]=e.selectionMode[o];break}case"POINTS":case 0:t.selectionMode[o]=0;break;case"BOX":case 1:t.selectionMode[o]=1;break;case"LASSO":case 2:t.selectionMode[o]=2;break}}return e.formId!=null&&(t.formId=String(e.formId)),e.spec!=null&&(t.spec=String(e.spec)),e.config!=null&&(t.config=String(e.config)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.selectionMode=[]),t.defaults&&(o.theme="",o.id="",o.formId="",o.spec="",o.config=""),e.theme!=null&&e.hasOwnProperty("theme")&&(o.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=t.enums===String?$root.PlotlyChart.SelectionMode[e.selectionMode[d]]===void 0?e.selectionMode[d]:$root.PlotlyChart.SelectionMode[e.selectionMode[d]]:e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.config!=null&&e.hasOwnProperty("config")&&(o.config=e.config),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PlotlyChart"},n.SelectionMode=(function(){const i={},e=Object.create(i);return e[i[0]="POINTS"]=0,e[i[1]="BOX"]=1,e[i[2]="LASSO"]=2,e})(),n})();$root.Progress=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.prototype.text="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(18).string(e.text),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Progress;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.uint32();break}case 2:{p.text=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Progress)return e;let t=new $root.Progress;return e.value!=null&&(t.value=e.value>>>0),e.text!=null&&(t.text=String(e.text)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=0,o.text=""),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Progress"},n})();$root.Snow=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Snow;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Snow)return e;let t=new $root.Snow;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Snow"},n})();$root.Spinner=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.text="",n.prototype.cache=!1,n.prototype.showTime=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),e.cache!=null&&Object.hasOwnProperty.call(e,"cache")&&t.uint32(16).bool(e.cache),e.showTime!=null&&Object.hasOwnProperty.call(e,"showTime")&&t.uint32(24).bool(e.showTime),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Spinner;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.text=e.string();break}case 2:{p.cache=e.bool();break}case 3:{p.showTime=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Spinner)return e;let t=new $root.Spinner;return e.text!=null&&(t.text=String(e.text)),e.cache!=null&&(t.cache=!!e.cache),e.showTime!=null&&(t.showTime=!!e.showTime),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.text="",o.cache=!1,o.showTime=!1),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),e.cache!=null&&e.hasOwnProperty("cache")&&(o.cache=e.cache),e.showTime!=null&&e.hasOwnProperty("showTime")&&(o.showTime=e.showTime),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Spinner"},n})();$root.Radio=(()=>{function n(e){if(this.options=[],this.captions=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.horizontal=!1,n.prototype.labelVisibility=null,n.prototype.captions=$util.emptyArray;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&o.uint32(80).bool(t.horizontal),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(90).fork()).ldelim(),t.captions!=null&&t.captions.length)for(let d=0;d<t.captions.length;++d)o.uint32(98).string(t.captions[d]);return t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&o.uint32(106).string(t.rawValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Radio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 13:{h.rawValue=t.string();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.horizontal=t.bool();break}case 11:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 12:{h.captions&&h.captions.length||(h.captions=[]),h.captions.push(t.string());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Radio)return t;let o=new $root.Radio;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Radio.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValue!=null&&(o.rawValue=String(t.rawValue)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.horizontal!=null&&(o.horizontal=!!t.horizontal),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}if(t.captions){if(!Array.isArray(t.captions))throw TypeError(".Radio.captions: array expected");o.captions=[];for(let d=0;d<t.captions.length;++d)o.captions[d]=String(t.captions[d])}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.captions=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.horizontal=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=t.horizontal),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.captions&&t.captions.length){d.captions=[];for(let p=0;p<t.captions.length;++p)d.captions[p]=t.captions[p]}return t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(d.rawValue=t.rawValue,o.oneofs&&(d._rawValue="rawValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Radio"},n})();$root.Selectbox=(()=>{function n(e){if(this.options=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);return t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(96).bool(t.acceptNewOptions),t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&o.uint32(106).string(t.rawValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Selectbox;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 13:{h.rawValue=t.string();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 11:{h.placeholder=t.string();break}case 12:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Selectbox)return t;let o=new $root.Selectbox;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Selectbox.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValue!=null&&(o.rawValue=String(t.rawValue)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}return t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(d.rawValue=t.rawValue,o.oneofs&&(d._rawValue="rawValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Selectbox"},n})();const Skeleton$1=$root.Skeleton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.style=0,n.prototype.height=null;let i;return Object.defineProperty(n.prototype,"_height",{get:$util.oneOfGetter(i=["height"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(8).int32(t.style),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(16).int32(t.height),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Skeleton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.style=t.int32();break}case 2:{h.height=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Skeleton)return t;let o=new $root.Skeleton;switch(t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"ELEMENT":case 0:o.style=0;break;case"APP":case 1:o.style=1;break}return t.height!=null&&(o.height=t.height|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.style=o.enums===String?"ELEMENT":0),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.Skeleton.SkeletonStyle[t.style]===void 0?t.style:$root.Skeleton.SkeletonStyle[t.style]:t.style),t.height!=null&&t.hasOwnProperty("height")&&(d.height=t.height,o.oneofs&&(d._height="height")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Skeleton"},n.SkeletonStyle=(function(){const e={},t=Object.create(e);return t[e[0]="ELEMENT"]=0,t[e[1]="APP"]=1,t})(),n})(),Slider$1=$root.Slider=(()=>{function n(i){if(this.default=[],this.value=[],this.options=[],this.rawValue=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.formId="",n.prototype.label="",n.prototype.format="",n.prototype.dataType=0,n.prototype.default=$util.emptyArray,n.prototype.min=0,n.prototype.max=0,n.prototype.step=0,n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.prototype.rawValue=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let o=0;o<e.default.length;++o)t.double(e.default[o]);t.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let o=0;o<e.value.length;++o)t.double(e.value[o]);t.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let o=0;o<e.options.length;++o)t.uint32(106).string(e.options[o]);if(e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(136).int32(e.type),e.rawValue!=null&&e.rawValue.length)for(let o=0;o<e.rawValue.length;++o)t.uint32(146).string(e.rawValue[o]);return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Slider;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.formId=e.string();break}case 3:{p.label=e.string();break}case 4:{p.format=e.string();break}case 5:{p.dataType=e.int32();break}case 6:{if(p.default&&p.default.length||(p.default=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.default.push(e.double())}else p.default.push(e.double());break}case 7:{p.min=e.double();break}case 8:{p.max=e.double();break}case 9:{p.step=e.double();break}case 10:{if(p.value&&p.value.length||(p.value=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.value.push(e.double())}else p.value.push(e.double());break}case 11:{p.setValue=e.bool();break}case 13:{p.options&&p.options.length||(p.options=[]),p.options.push(e.string());break}case 14:{p.help=e.string();break}case 15:{p.disabled=e.bool();break}case 16:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 17:{p.type=e.int32();break}case 18:{p.rawValue&&p.rawValue.length||(p.rawValue=[]),p.rawValue.push(e.string());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Slider)return e;let t=new $root.Slider;switch(e.id!=null&&(t.id=String(e.id)),e.formId!=null&&(t.formId=String(e.formId)),e.label!=null&&(t.label=String(e.label)),e.format!=null&&(t.format=String(e.format)),e.dataType){default:if(typeof e.dataType=="number"){t.dataType=e.dataType;break}break;case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1;break;case"DATETIME":case 2:t.dataType=2;break;case"DATE":case 3:t.dataType=3;break;case"TIME":case 4:t.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=Number(e.default[o])}if(e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),e.step!=null&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=Number(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let o=0;o<e.options.length;++o)t.options[o]=String(e.options[o])}if(e.help!=null&&(t.help=String(e.help)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"SLIDER":case 1:t.type=1;break;case"SELECT_SLIDER":case 2:t.type=2;break}if(e.rawValue){if(!Array.isArray(e.rawValue))throw TypeError(".Slider.rawValue: array expected");t.rawValue=[];for(let o=0;o<e.rawValue.length;++o)t.rawValue[o]=String(e.rawValue[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[],o.options=[],o.rawValue=[]),t.defaults&&(o.id="",o.formId="",o.label="",o.format="",o.dataType=t.enums===String?"INT":0,o.min=0,o.max=0,o.step=0,o.setValue=!1,o.help="",o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"UNSPECIFIED":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.dataType!=null&&e.hasOwnProperty("dataType")&&(o.dataType=t.enums===String?$root.Slider.DataType[e.dataType]===void 0?e.dataType:$root.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=t.json&&!isFinite(e.default[d])?String(e.default[d]):e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty("step")&&(o.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=t.json&&!isFinite(e.value[d])?String(e.value[d]):e.value[d]}if(e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.options&&e.options.length){o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=e.options[d]}if(e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Slider.Type[e.type]===void 0?e.type:$root.Slider.Type[e.type]:e.type),e.rawValue&&e.rawValue.length){o.rawValue=[];for(let d=0;d<e.rawValue.length;++d)o.rawValue[d]=e.rawValue[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Slider"},n.DataType=(function(){const i={},e=Object.create(i);return e[i[0]="INT"]=0,e[i[1]="FLOAT"]=1,e[i[2]="DATETIME"]=2,e[i[3]="DATE"]=3,e[i[4]="TIME"]=4,e})(),n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="SLIDER"]=1,e[i[2]="SELECT_SLIDER"]=2,e})(),n})();$root.Space=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Space;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Space?e:new $root.Space},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Space"},n})();$root.Text=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(18).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Text;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Text)return e;let t=new $root.Text;return e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Text"},n})();$root.TextArea=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(82).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(88).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextArea;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.placeholder=t.string();break}case 11:{h.disabled=t.bool();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextArea)return t;let o=new $root.TextArea;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.placeholder="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextArea"},n})();const TextInput$1=$root.TextInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.type=0,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.autocomplete="",n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.icon="";let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(32).int32(t.type),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.autocomplete!=null&&Object.hasOwnProperty.call(t,"autocomplete")&&o.uint32(82).string(t.autocomplete),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(96).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(106).fork()).ldelim(),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(114).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.type=t.int32();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.autocomplete=t.string();break}case 11:{h.placeholder=t.string();break}case 12:{h.disabled=t.bool();break}case 13:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 14:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextInput)return t;let o=new $root.TextInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"DEFAULT":case 0:o.type=0;break;case"PASSWORD":case 1:o.type=1;break}if(t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.autocomplete!=null&&(o.autocomplete=String(t.autocomplete)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.type=o.enums===String?"DEFAULT":0,d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.autocomplete="",d.placeholder="",d.disabled=!1,d.labelVisibility=null,d.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.TextInput.Type[t.type]===void 0?t.type:$root.TextInput.Type[t.type]:t.type),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.autocomplete!=null&&t.hasOwnProperty("autocomplete")&&(d.autocomplete=t.autocomplete),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextInput"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t})(),n})();$root.TimeInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(50).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(56).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(64).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(74).fork()).ldelim(),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(80).int64(t.step),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TimeInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.value=t.string();break}case 7:{h.setValue=t.bool();break}case 8:{h.disabled=t.bool();break}case 9:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 10:{h.step=t.int64();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TimeInput)return t;let o=new $root.TimeInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.step!=null&&($util.Long?(o.step=$util.Long.fromValue(t.step)).unsigned=!1:typeof t.step=="string"?o.step=parseInt(t.step,10):typeof t.step=="number"?o.step=t.step:typeof t.step=="object"&&(o.step=new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber())),o},n.toObject=function(t,o){o||(o={});let d={};if(o.defaults)if(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,$util.Long){let p=new $util.Long(0,0,!1);d.step=o.longs===String?p.toString():o.longs===Number?p.toNumber():p}else d.step=o.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.step!=null&&t.hasOwnProperty("step")&&(typeof t.step=="number"?d.step=o.longs===String?String(t.step):t.step:d.step=o.longs===String?$util.Long.prototype.toString.call(t.step):o.longs===Number?new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber():t.step),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TimeInput"},n})();$root.Toast=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.body="",n.prototype.icon="",n.prototype.duration=null;let i;return Object.defineProperty(n.prototype,"_duration",{get:$util.oneOfGetter(i=["duration"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(18).string(t.icon),t.duration!=null&&Object.hasOwnProperty.call(t,"duration")&&o.uint32(24).int32(t.duration),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Toast;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.icon=t.string();break}case 3:{h.duration=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Toast)return t;let o=new $root.Toast;return t.body!=null&&(o.body=String(t.body)),t.icon!=null&&(o.icon=String(t.icon)),t.duration!=null&&(o.duration=t.duration|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.icon=""),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.duration!=null&&t.hasOwnProperty("duration")&&(d.duration=t.duration,o.oneofs&&(d._duration="duration")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Toast"},n})();$root.SubtitleTrack=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.label="",n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SubtitleTrack;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SubtitleTrack)return e;let t=new $root.SubtitleTrack;return e.label!=null&&(t.label=String(e.label)),e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.label="",o.url=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SubtitleTrack"},n})();const Video$1=$root.Video=(()=>{function n(e){if(this.subtitles=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.type=0,n.prototype.subtitles=$util.emptyArray,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.muted=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(40).int32(t.type),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.subtitles!=null&&t.subtitles.length)for(let d=0;d<t.subtitles.length;++d)$root.SubtitleTrack.encode(t.subtitles[d],o.uint32(58).fork()).ldelim();return t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(64).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(72).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&o.uint32(80).bool(t.autoplay),t.muted!=null&&Object.hasOwnProperty.call(t,"muted")&&o.uint32(88).bool(t.muted),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Video;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 6:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 5:{h.type=t.int32();break}case 7:{h.subtitles&&h.subtitles.length||(h.subtitles=[]),h.subtitles.push($root.SubtitleTrack.decode(t,t.uint32()));break}case 8:{h.endTime=t.int32();break}case 9:{h.loop=t.bool();break}case 10:{h.autoplay=t.bool();break}case 11:{h.muted=t.bool();break}case 12:{h.id=t.string();break}case 13:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Video)return t;let o=new $root.Video;switch(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"UNUSED":case 0:o.type=0;break;case"NATIVE":case 1:o.type=1;break;case"YOUTUBE_IFRAME":case 2:o.type=2;break}if(t.subtitles){if(!Array.isArray(t.subtitles))throw TypeError(".Video.subtitles: array expected");o.subtitles=[];for(let d=0;d<t.subtitles.length;++d){if(typeof t.subtitles[d]!="object")throw TypeError(".Video.subtitles: object expected");o.subtitles[d]=$root.SubtitleTrack.fromObject(t.subtitles[d])}}if(t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.muted!=null&&(o.muted=!!t.muted),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Video.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.subtitles=[]),o.defaults&&(d.startTime=0,d.type=o.enums===String?"UNUSED":0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.muted=!1,d.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Video.Type[t.type]===void 0?t.type:$root.Video.Type[t.type]:t.type),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.subtitles&&t.subtitles.length){d.subtitles=[];for(let p=0;p<t.subtitles.length;++p)d.subtitles[p]=$root.SubtitleTrack.toObject(t.subtitles[p],o)}return t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.muted!=null&&t.hasOwnProperty("muted")&&(d.muted=t.muted),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Video"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t})(),n})();$root.Heading=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tag="",n.prototype.anchor="",n.prototype.body="",n.prototype.help="",n.prototype.hideAnchor=!1,n.prototype.divider="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tag!=null&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),e.anchor!=null&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.hideAnchor!=null&&Object.hasOwnProperty.call(e,"hideAnchor")&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&Object.hasOwnProperty.call(e,"divider")&&t.uint32(50).string(e.divider),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Heading;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tag=e.string();break}case 2:{p.anchor=e.string();break}case 3:{p.body=e.string();break}case 4:{p.help=e.string();break}case 5:{p.hideAnchor=e.bool();break}case 6:{p.divider=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Heading)return e;let t=new $root.Heading;return e.tag!=null&&(t.tag=String(e.tag)),e.anchor!=null&&(t.anchor=String(e.anchor)),e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),e.hideAnchor!=null&&(t.hideAnchor=!!e.hideAnchor),e.divider!=null&&(t.divider=String(e.divider)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tag="",o.anchor="",o.body="",o.help="",o.hideAnchor=!1,o.divider=""),e.tag!=null&&e.hasOwnProperty("tag")&&(o.tag=e.tag),e.anchor!=null&&e.hasOwnProperty("anchor")&&(o.anchor=e.anchor),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.hideAnchor!=null&&e.hasOwnProperty("hideAnchor")&&(o.hideAnchor=e.hideAnchor),e.divider!=null&&e.hasOwnProperty("divider")&&(o.divider=e.divider),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Heading"},n})();$root.Transient=(()=>{function n(i){if(this.elements=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.elements=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.elements!=null&&e.elements.length)for(let o=0;o<e.elements.length;++o)$root.Element.encode(e.elements[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Transient;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.elements&&p.elements.length||(p.elements=[]),p.elements.push($root.Element.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Transient)return e;let t=new $root.Transient;if(e.elements){if(!Array.isArray(e.elements))throw TypeError(".Transient.elements: array expected");t.elements=[];for(let o=0;o<e.elements.length;++o){if(typeof e.elements[o]!="object")throw TypeError(".Transient.elements: object expected");t.elements[o]=$root.Element.fromObject(e.elements[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.elements=[]),e.elements&&e.elements.length){o.elements=[];for(let d=0;d<e.elements.length;++d)o.elements[d]=$root.Element.toObject(e.elements[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Transient"},n})();const ForwardMsg=$root.ForwardMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.hash="",n.prototype.metadata=null,n.prototype.newSession=null,n.prototype.delta=null,n.prototype.pageInfoChanged=null,n.prototype.pageConfigChanged=null,n.prototype.scriptFinished=null,n.prototype.gitInfoChanged=null,n.prototype.pageProfile=null,n.prototype.sessionStatusChanged=null,n.prototype.sessionEvent=null,n.prototype.navigation=null,n.prototype.pageNotFound=null,n.prototype.fileUrlsResponse=null,n.prototype.autoRerun=null,n.prototype.logo=null,n.prototype.authRedirect=null,n.prototype.parentMessage=null,n.prototype.refHash=null,n.prototype.deferredFileResponse=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","fileUrlsResponse","autoRerun","logo","authRedirect","parentMessage","refHash","deferredFileResponse"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.hash!=null&&Object.hasOwnProperty.call(t,"hash")&&o.uint32(10).string(t.hash),t.metadata!=null&&Object.hasOwnProperty.call(t,"metadata")&&$root.ForwardMsgMetadata.encode(t.metadata,o.uint32(18).fork()).ldelim(),t.newSession!=null&&Object.hasOwnProperty.call(t,"newSession")&&$root.NewSession.encode(t.newSession,o.uint32(34).fork()).ldelim(),t.delta!=null&&Object.hasOwnProperty.call(t,"delta")&&$root.Delta.encode(t.delta,o.uint32(42).fork()).ldelim(),t.scriptFinished!=null&&Object.hasOwnProperty.call(t,"scriptFinished")&&o.uint32(48).int32(t.scriptFinished),t.sessionStatusChanged!=null&&Object.hasOwnProperty.call(t,"sessionStatusChanged")&&$root.SessionStatus.encode(t.sessionStatusChanged,o.uint32(74).fork()).ldelim(),t.sessionEvent!=null&&Object.hasOwnProperty.call(t,"sessionEvent")&&$root.SessionEvent.encode(t.sessionEvent,o.uint32(82).fork()).ldelim(),t.refHash!=null&&Object.hasOwnProperty.call(t,"refHash")&&o.uint32(90).string(t.refHash),t.pageInfoChanged!=null&&Object.hasOwnProperty.call(t,"pageInfoChanged")&&$root.PageInfo.encode(t.pageInfoChanged,o.uint32(98).fork()).ldelim(),t.pageConfigChanged!=null&&Object.hasOwnProperty.call(t,"pageConfigChanged")&&$root.PageConfig.encode(t.pageConfigChanged,o.uint32(106).fork()).ldelim(),t.gitInfoChanged!=null&&Object.hasOwnProperty.call(t,"gitInfoChanged")&&$root.GitInfo.encode(t.gitInfoChanged,o.uint32(114).fork()).ldelim(),t.pageNotFound!=null&&Object.hasOwnProperty.call(t,"pageNotFound")&&$root.PageNotFound.encode(t.pageNotFound,o.uint32(122).fork()).ldelim(),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugLastBackmsgId")&&o.uint32(138).string(t.debugLastBackmsgId),t.pageProfile!=null&&Object.hasOwnProperty.call(t,"pageProfile")&&$root.PageProfile.encode(t.pageProfile,o.uint32(146).fork()).ldelim(),t.fileUrlsResponse!=null&&Object.hasOwnProperty.call(t,"fileUrlsResponse")&&$root.FileURLsResponse.encode(t.fileUrlsResponse,o.uint32(154).fork()).ldelim(),t.parentMessage!=null&&Object.hasOwnProperty.call(t,"parentMessage")&&$root.ParentMessage.encode(t.parentMessage,o.uint32(162).fork()).ldelim(),t.autoRerun!=null&&Object.hasOwnProperty.call(t,"autoRerun")&&$root.AutoRerun.encode(t.autoRerun,o.uint32(170).fork()).ldelim(),t.logo!=null&&Object.hasOwnProperty.call(t,"logo")&&$root.Logo.encode(t.logo,o.uint32(178).fork()).ldelim(),t.navigation!=null&&Object.hasOwnProperty.call(t,"navigation")&&$root.Navigation.encode(t.navigation,o.uint32(186).fork()).ldelim(),t.authRedirect!=null&&Object.hasOwnProperty.call(t,"authRedirect")&&$root.AuthRedirect.encode(t.authRedirect,o.uint32(194).fork()).ldelim(),t.deferredFileResponse!=null&&Object.hasOwnProperty.call(t,"deferredFileResponse")&&$root.DeferredFileResponse.encode(t.deferredFileResponse,o.uint32(202).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ForwardMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.hash=t.string();break}case 2:{h.metadata=$root.ForwardMsgMetadata.decode(t,t.uint32());break}case 4:{h.newSession=$root.NewSession.decode(t,t.uint32());break}case 5:{h.delta=$root.Delta.decode(t,t.uint32());break}case 12:{h.pageInfoChanged=$root.PageInfo.decode(t,t.uint32());break}case 13:{h.pageConfigChanged=$root.PageConfig.decode(t,t.uint32());break}case 6:{h.scriptFinished=t.int32();break}case 14:{h.gitInfoChanged=$root.GitInfo.decode(t,t.uint32());break}case 18:{h.pageProfile=$root.PageProfile.decode(t,t.uint32());break}case 9:{h.sessionStatusChanged=$root.SessionStatus.decode(t,t.uint32());break}case 10:{h.sessionEvent=$root.SessionEvent.decode(t,t.uint32());break}case 23:{h.navigation=$root.Navigation.decode(t,t.uint32());break}case 15:{h.pageNotFound=$root.PageNotFound.decode(t,t.uint32());break}case 19:{h.fileUrlsResponse=$root.FileURLsResponse.decode(t,t.uint32());break}case 21:{h.autoRerun=$root.AutoRerun.decode(t,t.uint32());break}case 22:{h.logo=$root.Logo.decode(t,t.uint32());break}case 24:{h.authRedirect=$root.AuthRedirect.decode(t,t.uint32());break}case 20:{h.parentMessage=$root.ParentMessage.decode(t,t.uint32());break}case 11:{h.refHash=t.string();break}case 25:{h.deferredFileResponse=$root.DeferredFileResponse.decode(t,t.uint32());break}case 17:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ForwardMsg)return t;let o=new $root.ForwardMsg;if(t.hash!=null&&(o.hash=String(t.hash)),t.metadata!=null){if(typeof t.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");o.metadata=$root.ForwardMsgMetadata.fromObject(t.metadata)}if(t.newSession!=null){if(typeof t.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");o.newSession=$root.NewSession.fromObject(t.newSession)}if(t.delta!=null){if(typeof t.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");o.delta=$root.Delta.fromObject(t.delta)}if(t.pageInfoChanged!=null){if(typeof t.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");o.pageInfoChanged=$root.PageInfo.fromObject(t.pageInfoChanged)}if(t.pageConfigChanged!=null){if(typeof t.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");o.pageConfigChanged=$root.PageConfig.fromObject(t.pageConfigChanged)}switch(t.scriptFinished){default:if(typeof t.scriptFinished=="number"){o.scriptFinished=t.scriptFinished;break}break;case"FINISHED_SUCCESSFULLY":case 0:o.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:o.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:o.scriptFinished=2;break;case"FINISHED_FRAGMENT_RUN_SUCCESSFULLY":case 3:o.scriptFinished=3;break}if(t.gitInfoChanged!=null){if(typeof t.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");o.gitInfoChanged=$root.GitInfo.fromObject(t.gitInfoChanged)}if(t.pageProfile!=null){if(typeof t.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");o.pageProfile=$root.PageProfile.fromObject(t.pageProfile)}if(t.sessionStatusChanged!=null){if(typeof t.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");o.sessionStatusChanged=$root.SessionStatus.fromObject(t.sessionStatusChanged)}if(t.sessionEvent!=null){if(typeof t.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");o.sessionEvent=$root.SessionEvent.fromObject(t.sessionEvent)}if(t.navigation!=null){if(typeof t.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");o.navigation=$root.Navigation.fromObject(t.navigation)}if(t.pageNotFound!=null){if(typeof t.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");o.pageNotFound=$root.PageNotFound.fromObject(t.pageNotFound)}if(t.fileUrlsResponse!=null){if(typeof t.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");o.fileUrlsResponse=$root.FileURLsResponse.fromObject(t.fileUrlsResponse)}if(t.autoRerun!=null){if(typeof t.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");o.autoRerun=$root.AutoRerun.fromObject(t.autoRerun)}if(t.logo!=null){if(typeof t.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");o.logo=$root.Logo.fromObject(t.logo)}if(t.authRedirect!=null){if(typeof t.authRedirect!="object")throw TypeError(".ForwardMsg.authRedirect: object expected");o.authRedirect=$root.AuthRedirect.fromObject(t.authRedirect)}if(t.parentMessage!=null){if(typeof t.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");o.parentMessage=$root.ParentMessage.fromObject(t.parentMessage)}if(t.refHash!=null&&(o.refHash=String(t.refHash)),t.deferredFileResponse!=null){if(typeof t.deferredFileResponse!="object")throw TypeError(".ForwardMsg.deferredFileResponse: object expected");o.deferredFileResponse=$root.DeferredFileResponse.fromObject(t.deferredFileResponse)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugLastBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.hash="",d.metadata=null,d.debugLastBackmsgId=""),t.hash!=null&&t.hasOwnProperty("hash")&&(d.hash=t.hash),t.metadata!=null&&t.hasOwnProperty("metadata")&&(d.metadata=$root.ForwardMsgMetadata.toObject(t.metadata,o)),t.newSession!=null&&t.hasOwnProperty("newSession")&&(d.newSession=$root.NewSession.toObject(t.newSession,o),o.oneofs&&(d.type="newSession")),t.delta!=null&&t.hasOwnProperty("delta")&&(d.delta=$root.Delta.toObject(t.delta,o),o.oneofs&&(d.type="delta")),t.scriptFinished!=null&&t.hasOwnProperty("scriptFinished")&&(d.scriptFinished=o.enums===String?$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]===void 0?t.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]:t.scriptFinished,o.oneofs&&(d.type="scriptFinished")),t.sessionStatusChanged!=null&&t.hasOwnProperty("sessionStatusChanged")&&(d.sessionStatusChanged=$root.SessionStatus.toObject(t.sessionStatusChanged,o),o.oneofs&&(d.type="sessionStatusChanged")),t.sessionEvent!=null&&t.hasOwnProperty("sessionEvent")&&(d.sessionEvent=$root.SessionEvent.toObject(t.sessionEvent,o),o.oneofs&&(d.type="sessionEvent")),t.refHash!=null&&t.hasOwnProperty("refHash")&&(d.refHash=t.refHash,o.oneofs&&(d.type="refHash")),t.pageInfoChanged!=null&&t.hasOwnProperty("pageInfoChanged")&&(d.pageInfoChanged=$root.PageInfo.toObject(t.pageInfoChanged,o),o.oneofs&&(d.type="pageInfoChanged")),t.pageConfigChanged!=null&&t.hasOwnProperty("pageConfigChanged")&&(d.pageConfigChanged=$root.PageConfig.toObject(t.pageConfigChanged,o),o.oneofs&&(d.type="pageConfigChanged")),t.gitInfoChanged!=null&&t.hasOwnProperty("gitInfoChanged")&&(d.gitInfoChanged=$root.GitInfo.toObject(t.gitInfoChanged,o),o.oneofs&&(d.type="gitInfoChanged")),t.pageNotFound!=null&&t.hasOwnProperty("pageNotFound")&&(d.pageNotFound=$root.PageNotFound.toObject(t.pageNotFound,o),o.oneofs&&(d.type="pageNotFound")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.pageProfile!=null&&t.hasOwnProperty("pageProfile")&&(d.pageProfile=$root.PageProfile.toObject(t.pageProfile,o),o.oneofs&&(d.type="pageProfile")),t.fileUrlsResponse!=null&&t.hasOwnProperty("fileUrlsResponse")&&(d.fileUrlsResponse=$root.FileURLsResponse.toObject(t.fileUrlsResponse,o),o.oneofs&&(d.type="fileUrlsResponse")),t.parentMessage!=null&&t.hasOwnProperty("parentMessage")&&(d.parentMessage=$root.ParentMessage.toObject(t.parentMessage,o),o.oneofs&&(d.type="parentMessage")),t.autoRerun!=null&&t.hasOwnProperty("autoRerun")&&(d.autoRerun=$root.AutoRerun.toObject(t.autoRerun,o),o.oneofs&&(d.type="autoRerun")),t.logo!=null&&t.hasOwnProperty("logo")&&(d.logo=$root.Logo.toObject(t.logo,o),o.oneofs&&(d.type="logo")),t.navigation!=null&&t.hasOwnProperty("navigation")&&(d.navigation=$root.Navigation.toObject(t.navigation,o),o.oneofs&&(d.type="navigation")),t.authRedirect!=null&&t.hasOwnProperty("authRedirect")&&(d.authRedirect=$root.AuthRedirect.toObject(t.authRedirect,o),o.oneofs&&(d.type="authRedirect")),t.deferredFileResponse!=null&&t.hasOwnProperty("deferredFileResponse")&&(d.deferredFileResponse=$root.DeferredFileResponse.toObject(t.deferredFileResponse,o),o.oneofs&&(d.type="deferredFileResponse")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ForwardMsg"},n.ScriptFinishedStatus=(function(){const e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,t[e[2]="FINISHED_EARLY_FOR_RERUN"]=2,t[e[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,t})(),n})();$root.DeferredFileResponse=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.url="",n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.url=e.string();break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileResponse)return e;let t=new $root.DeferredFileResponse;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.url!=null&&(t.url=String(e.url)),e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.url="",o.errorMsg=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileResponse"},n})();const ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function n(i){if(this.deltaPath=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.cacheable=!1,n.prototype.deltaPath=$util.emptyArray,n.prototype.activeScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cacheable!=null&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let o=0;o<e.deltaPath.length;++o)t.uint32(e.deltaPath[o]);t.ldelim()}return e.activeScriptHash!=null&&Object.hasOwnProperty.call(e,"activeScriptHash")&&t.uint32(34).string(e.activeScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgMetadata;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cacheable=e.bool();break}case 2:{if(p.deltaPath&&p.deltaPath.length||(p.deltaPath=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.deltaPath.push(e.uint32())}else p.deltaPath.push(e.uint32());break}case 4:{p.activeScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgMetadata)return e;let t=new $root.ForwardMsgMetadata;if(e.cacheable!=null&&(t.cacheable=!!e.cacheable),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let o=0;o<e.deltaPath.length;++o)t.deltaPath[o]=e.deltaPath[o]>>>0}return e.activeScriptHash!=null&&(t.activeScriptHash=String(e.activeScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.deltaPath=[]),t.defaults&&(o.cacheable=!1,o.activeScriptHash=""),e.cacheable!=null&&e.hasOwnProperty("cacheable")&&(o.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){o.deltaPath=[];for(let d=0;d<e.deltaPath.length;++d)o.deltaPath[d]=e.deltaPath[d]}return e.activeScriptHash!=null&&e.hasOwnProperty("activeScriptHash")&&(o.activeScriptHash=e.activeScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgMetadata"},n})(),ForwardMsgList=$root.ForwardMsgList=(()=>{function n(i){if(this.messages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.messages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.messages!=null&&e.messages.length)for(let o=0;o<e.messages.length;++o)$root.ForwardMsg.encode(e.messages[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.messages&&p.messages.length||(p.messages=[]),p.messages.push($root.ForwardMsg.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgList)return e;let t=new $root.ForwardMsgList;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".ForwardMsgList.messages: array expected");t.messages=[];for(let o=0;o<e.messages.length;++o){if(typeof e.messages[o]!="object")throw TypeError(".ForwardMsgList.messages: object expected");t.messages[o]=$root.ForwardMsg.fromObject(e.messages[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.messages=[]),e.messages&&e.messages.length){o.messages=[];for(let d=0;d<e.messages.length;++d)o.messages[d]=$root.ForwardMsg.toObject(e.messages[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgList"},n})(),GitInfo=$root.GitInfo=(()=>{function n(i){if(this.untrackedFiles=[],this.uncommittedFiles=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.repository="",n.prototype.branch="",n.prototype.module="",n.prototype.untrackedFiles=$util.emptyArray,n.prototype.uncommittedFiles=$util.emptyArray,n.prototype.state=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.repository!=null&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),e.module!=null&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let o=0;o<e.untrackedFiles.length;++o)t.uint32(34).string(e.untrackedFiles[o]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let o=0;o<e.uncommittedFiles.length;++o)t.uint32(42).string(e.uncommittedFiles[o]);return e.state!=null&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GitInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.repository=e.string();break}case 2:{p.branch=e.string();break}case 3:{p.module=e.string();break}case 4:{p.untrackedFiles&&p.untrackedFiles.length||(p.untrackedFiles=[]),p.untrackedFiles.push(e.string());break}case 5:{p.uncommittedFiles&&p.uncommittedFiles.length||(p.uncommittedFiles=[]),p.uncommittedFiles.push(e.string());break}case 6:{p.state=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GitInfo)return e;let t=new $root.GitInfo;if(e.repository!=null&&(t.repository=String(e.repository)),e.branch!=null&&(t.branch=String(e.branch)),e.module!=null&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let o=0;o<e.untrackedFiles.length;++o)t.untrackedFiles[o]=String(e.untrackedFiles[o])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let o=0;o<e.uncommittedFiles.length;++o)t.uncommittedFiles[o]=String(e.uncommittedFiles[o])}switch(e.state){default:if(typeof e.state=="number"){t.state=e.state;break}break;case"DEFAULT":case 0:t.state=0;break;case"HEAD_DETACHED":case 1:t.state=1;break;case"AHEAD_OF_REMOTE":case 2:t.state=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.untrackedFiles=[],o.uncommittedFiles=[]),t.defaults&&(o.repository="",o.branch="",o.module="",o.state=t.enums===String?"DEFAULT":0),e.repository!=null&&e.hasOwnProperty("repository")&&(o.repository=e.repository),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.module!=null&&e.hasOwnProperty("module")&&(o.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){o.untrackedFiles=[];for(let d=0;d<e.untrackedFiles.length;++d)o.untrackedFiles[d]=e.untrackedFiles[d]}if(e.uncommittedFiles&&e.uncommittedFiles.length){o.uncommittedFiles=[];for(let d=0;d<e.uncommittedFiles.length;++d)o.uncommittedFiles[d]=e.uncommittedFiles[d]}return e.state!=null&&e.hasOwnProperty("state")&&(o.state=t.enums===String?$root.GitInfo.GitStates[e.state]===void 0?e.state:$root.GitInfo.GitStates[e.state]:e.state),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GitInfo"},n.GitStates=(function(){const i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="HEAD_DETACHED"]=1,e[i[2]="AHEAD_OF_REMOTE"]=2,e})(),n})(),Logo=$root.Logo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.image="",n.prototype.link="",n.prototype.iconImage="",n.prototype.size="",n.prototype.imageType=0,n.prototype.iconImageType=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.image!=null&&Object.hasOwnProperty.call(e,"image")&&t.uint32(10).string(e.image),e.link!=null&&Object.hasOwnProperty.call(e,"link")&&t.uint32(18).string(e.link),e.iconImage!=null&&Object.hasOwnProperty.call(e,"iconImage")&&t.uint32(26).string(e.iconImage),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(34).string(e.size),e.imageType!=null&&Object.hasOwnProperty.call(e,"imageType")&&t.uint32(40).int32(e.imageType),e.iconImageType!=null&&Object.hasOwnProperty.call(e,"iconImageType")&&t.uint32(48).int32(e.iconImageType),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Logo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.image=e.string();break}case 2:{p.link=e.string();break}case 3:{p.iconImage=e.string();break}case 4:{p.size=e.string();break}case 5:{p.imageType=e.int32();break}case 6:{p.iconImageType=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Logo)return e;let t=new $root.Logo;switch(e.image!=null&&(t.image=String(e.image)),e.link!=null&&(t.link=String(e.link)),e.iconImage!=null&&(t.iconImage=String(e.iconImage)),e.size!=null&&(t.size=String(e.size)),e.imageType){default:if(typeof e.imageType=="number"){t.imageType=e.imageType;break}break;case"IMAGE":case 0:t.imageType=0;break;case"EMOJI":case 1:t.imageType=1;break;case"ICON":case 2:t.imageType=2;break}switch(e.iconImageType){default:if(typeof e.iconImageType=="number"){t.iconImageType=e.iconImageType;break}break;case"IMAGE":case 0:t.iconImageType=0;break;case"EMOJI":case 1:t.iconImageType=1;break;case"ICON":case 2:t.iconImageType=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.image="",o.link="",o.iconImage="",o.size="",o.imageType=t.enums===String?"IMAGE":0,o.iconImageType=t.enums===String?"IMAGE":0),e.image!=null&&e.hasOwnProperty("image")&&(o.image=e.image),e.link!=null&&e.hasOwnProperty("link")&&(o.link=e.link),e.iconImage!=null&&e.hasOwnProperty("iconImage")&&(o.iconImage=e.iconImage),e.size!=null&&e.hasOwnProperty("size")&&(o.size=e.size),e.imageType!=null&&e.hasOwnProperty("imageType")&&(o.imageType=t.enums===String?$root.Logo.ImageType[e.imageType]===void 0?e.imageType:$root.Logo.ImageType[e.imageType]:e.imageType),e.iconImageType!=null&&e.hasOwnProperty("iconImageType")&&(o.iconImageType=t.enums===String?$root.Logo.ImageType[e.iconImageType]===void 0?e.iconImageType:$root.Logo.ImageType[e.iconImageType]:e.iconImageType),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Logo"},n.ImageType=(function(){const i={},e=Object.create(i);return e[i[0]="IMAGE"]=0,e[i[1]="EMOJI"]=1,e[i[2]="ICON"]=2,e})(),n})(),Navigation=$root.Navigation=(()=>{function n(i){if(this.sections=[],this.appPages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.sections=$util.emptyArray,n.prototype.appPages=$util.emptyArray,n.prototype.position=0,n.prototype.pageScriptHash="",n.prototype.expanded=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.sections!=null&&e.sections.length)for(let o=0;o<e.sections.length;++o)t.uint32(10).string(e.sections[o]);if(e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(18).fork()).ldelim();return e.position!=null&&Object.hasOwnProperty.call(e,"position")&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(40).bool(e.expanded),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Navigation;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.sections&&p.sections.length||(p.sections=[]),p.sections.push(e.string());break}case 2:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 3:{p.position=e.int32();break}case 4:{p.pageScriptHash=e.string();break}case 5:{p.expanded=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Navigation)return e;let t=new $root.Navigation;if(e.sections){if(!Array.isArray(e.sections))throw TypeError(".Navigation.sections: array expected");t.sections=[];for(let o=0;o<e.sections.length;++o)t.sections[o]=String(e.sections[o])}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".Navigation.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".Navigation.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}switch(e.position){default:if(typeof e.position=="number"){t.position=e.position;break}break;case"HIDDEN":case 0:t.position=0;break;case"SIDEBAR":case 1:t.position=1;break;case"TOP":case 2:t.position=2;break}return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.expanded!=null&&(t.expanded=!!e.expanded),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.sections=[],o.appPages=[]),t.defaults&&(o.position=t.enums===String?"HIDDEN":0,o.pageScriptHash="",o.expanded=!1),e.sections&&e.sections.length){o.sections=[];for(let d=0;d<e.sections.length;++d)o.sections[d]=e.sections[d]}if(e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}return e.position!=null&&e.hasOwnProperty("position")&&(o.position=t.enums===String?$root.Navigation.Position[e.position]===void 0?e.position:$root.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.expanded!=null&&e.hasOwnProperty("expanded")&&(o.expanded=e.expanded),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Navigation"},n.Position=(function(){const i={},e=Object.create(i);return e[i[0]="HIDDEN"]=0,e[i[1]="SIDEBAR"]=1,e[i[2]="TOP"]=2,e})(),n})();$root.NewSession=(()=>{function n(i){if(this.appPages=[],this.fragmentIdsThisRun=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.initialize=null,n.prototype.scriptRunId="",n.prototype.name="",n.prototype.mainScriptPath="",n.prototype.config=null,n.prototype.customTheme=null,n.prototype.appPages=$util.emptyArray,n.prototype.pageScriptHash="",n.prototype.fragmentIdsThisRun=$util.emptyArray,n.prototype.mainScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.initialize!=null&&Object.hasOwnProperty.call(e,"initialize")&&$root.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),e.scriptRunId!=null&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&$root.Config.encode(e.config,t.uint32(50).fork()).ldelim(),e.customTheme!=null&&Object.hasOwnProperty.call(e,"customTheme")&&$root.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(66).fork()).ldelim();if(e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.uint32(82).string(e.fragmentIdsThisRun[o]);return e.mainScriptHash!=null&&Object.hasOwnProperty.call(e,"mainScriptHash")&&t.uint32(90).string(e.mainScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.NewSession;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.initialize=$root.Initialize.decode(e,e.uint32());break}case 2:{p.scriptRunId=e.string();break}case 3:{p.name=e.string();break}case 4:{p.mainScriptPath=e.string();break}case 6:{p.config=$root.Config.decode(e,e.uint32());break}case 7:{p.customTheme=$root.CustomThemeConfig.decode(e,e.uint32());break}case 8:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 9:{p.pageScriptHash=e.string();break}case 10:{p.fragmentIdsThisRun&&p.fragmentIdsThisRun.length||(p.fragmentIdsThisRun=[]),p.fragmentIdsThisRun.push(e.string());break}case 11:{p.mainScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.NewSession)return e;let t=new $root.NewSession;if(e.initialize!=null){if(typeof e.initialize!="object")throw TypeError(".NewSession.initialize: object expected");t.initialize=$root.Initialize.fromObject(e.initialize)}if(e.scriptRunId!=null&&(t.scriptRunId=String(e.scriptRunId)),e.name!=null&&(t.name=String(e.name)),e.mainScriptPath!=null&&(t.mainScriptPath=String(e.mainScriptPath)),e.config!=null){if(typeof e.config!="object")throw TypeError(".NewSession.config: object expected");t.config=$root.Config.fromObject(e.config)}if(e.customTheme!=null){if(typeof e.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");t.customTheme=$root.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".NewSession.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.fragmentIdsThisRun){if(!Array.isArray(e.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");t.fragmentIdsThisRun=[];for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.fragmentIdsThisRun[o]=String(e.fragmentIdsThisRun[o])}return e.mainScriptHash!=null&&(t.mainScriptHash=String(e.mainScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.appPages=[],o.fragmentIdsThisRun=[]),t.defaults&&(o.initialize=null,o.scriptRunId="",o.name="",o.mainScriptPath="",o.config=null,o.customTheme=null,o.pageScriptHash="",o.mainScriptHash=""),e.initialize!=null&&e.hasOwnProperty("initialize")&&(o.initialize=$root.Initialize.toObject(e.initialize,t)),e.scriptRunId!=null&&e.hasOwnProperty("scriptRunId")&&(o.scriptRunId=e.scriptRunId),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.mainScriptPath!=null&&e.hasOwnProperty("mainScriptPath")&&(o.mainScriptPath=e.mainScriptPath),e.config!=null&&e.hasOwnProperty("config")&&(o.config=$root.Config.toObject(e.config,t)),e.customTheme!=null&&e.hasOwnProperty("customTheme")&&(o.customTheme=$root.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}if(e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){o.fragmentIdsThisRun=[];for(let d=0;d<e.fragmentIdsThisRun.length;++d)o.fragmentIdsThisRun[d]=e.fragmentIdsThisRun[d]}return e.mainScriptHash!=null&&e.hasOwnProperty("mainScriptHash")&&(o.mainScriptHash=e.mainScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/NewSession"},n})();$root.Initialize=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.userInfo=null,n.prototype.environmentInfo=null,n.prototype.sessionStatus=null,n.prototype.sessionId="",n.prototype.isHello=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.userInfo!=null&&Object.hasOwnProperty.call(e,"userInfo")&&$root.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),e.environmentInfo!=null&&Object.hasOwnProperty.call(e,"environmentInfo")&&$root.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),e.sessionStatus!=null&&Object.hasOwnProperty.call(e,"sessionStatus")&&$root.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork()).ldelim(),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(56).bool(e.isHello),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Initialize;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.userInfo=$root.UserInfo.decode(e,e.uint32());break}case 3:{p.environmentInfo=$root.EnvironmentInfo.decode(e,e.uint32());break}case 4:{p.sessionStatus=$root.SessionStatus.decode(e,e.uint32());break}case 6:{p.sessionId=e.string();break}case 7:{p.isHello=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Initialize)return e;let t=new $root.Initialize;if(e.userInfo!=null){if(typeof e.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");t.userInfo=$root.UserInfo.fromObject(e.userInfo)}if(e.environmentInfo!=null){if(typeof e.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=$root.EnvironmentInfo.fromObject(e.environmentInfo)}if(e.sessionStatus!=null){if(typeof e.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");t.sessionStatus=$root.SessionStatus.fromObject(e.sessionStatus)}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.isHello!=null&&(t.isHello=!!e.isHello),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.userInfo=null,o.environmentInfo=null,o.sessionStatus=null,o.sessionId="",o.isHello=!1),e.userInfo!=null&&e.hasOwnProperty("userInfo")&&(o.userInfo=$root.UserInfo.toObject(e.userInfo,t)),e.environmentInfo!=null&&e.hasOwnProperty("environmentInfo")&&(o.environmentInfo=$root.EnvironmentInfo.toObject(e.environmentInfo,t)),e.sessionStatus!=null&&e.hasOwnProperty("sessionStatus")&&(o.sessionStatus=$root.SessionStatus.toObject(e.sessionStatus,t)),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Initialize"},n})();const Config=$root.Config=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.gatherUsageStats=!1,n.prototype.maxCachedMessageAge=0,n.prototype.allowRunOnSave=!1,n.prototype.hideTopBar=!1,n.prototype.hideSidebarNav=!1,n.prototype.toolbarMode=0,n.prototype.showErrorLinks=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.gatherUsageStats!=null&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),e.allowRunOnSave!=null&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&Object.hasOwnProperty.call(e,"toolbarMode")&&t.uint32(64).int32(e.toolbarMode),e.showErrorLinks!=null&&Object.hasOwnProperty.call(e,"showErrorLinks")&&t.uint32(72).int32(e.showErrorLinks),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Config;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.gatherUsageStats=e.bool();break}case 3:{p.maxCachedMessageAge=e.int32();break}case 5:{p.allowRunOnSave=e.bool();break}case 6:{p.hideTopBar=e.bool();break}case 7:{p.hideSidebarNav=e.bool();break}case 8:{p.toolbarMode=e.int32();break}case 9:{p.showErrorLinks=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Config)return e;let t=new $root.Config;switch(e.gatherUsageStats!=null&&(t.gatherUsageStats=!!e.gatherUsageStats),e.maxCachedMessageAge!=null&&(t.maxCachedMessageAge=e.maxCachedMessageAge|0),e.allowRunOnSave!=null&&(t.allowRunOnSave=!!e.allowRunOnSave),e.hideTopBar!=null&&(t.hideTopBar=!!e.hideTopBar),e.hideSidebarNav!=null&&(t.hideSidebarNav=!!e.hideSidebarNav),e.toolbarMode){default:if(typeof e.toolbarMode=="number"){t.toolbarMode=e.toolbarMode;break}break;case"AUTO":case 0:t.toolbarMode=0;break;case"DEVELOPER":case 1:t.toolbarMode=1;break;case"VIEWER":case 2:t.toolbarMode=2;break;case"MINIMAL":case 3:t.toolbarMode=3;break}switch(e.showErrorLinks){default:if(typeof e.showErrorLinks=="number"){t.showErrorLinks=e.showErrorLinks;break}break;case"SHOW_ERROR_LINKS_UNSPECIFIED":case 0:t.showErrorLinks=0;break;case"SHOW_ERROR_LINKS_AUTO":case 1:t.showErrorLinks=1;break;case"SHOW_ERROR_LINKS_TRUE":case 2:t.showErrorLinks=2;break;case"SHOW_ERROR_LINKS_FALSE":case 3:t.showErrorLinks=3;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.gatherUsageStats=!1,o.maxCachedMessageAge=0,o.allowRunOnSave=!1,o.hideTopBar=!1,o.hideSidebarNav=!1,o.toolbarMode=t.enums===String?"AUTO":0,o.showErrorLinks=t.enums===String?"SHOW_ERROR_LINKS_UNSPECIFIED":0),e.gatherUsageStats!=null&&e.hasOwnProperty("gatherUsageStats")&&(o.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&e.hasOwnProperty("maxCachedMessageAge")&&(o.maxCachedMessageAge=e.maxCachedMessageAge),e.allowRunOnSave!=null&&e.hasOwnProperty("allowRunOnSave")&&(o.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&e.hasOwnProperty("hideTopBar")&&(o.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&e.hasOwnProperty("hideSidebarNav")&&(o.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&e.hasOwnProperty("toolbarMode")&&(o.toolbarMode=t.enums===String?$root.Config.ToolbarMode[e.toolbarMode]===void 0?e.toolbarMode:$root.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),e.showErrorLinks!=null&&e.hasOwnProperty("showErrorLinks")&&(o.showErrorLinks=t.enums===String?$root.Config.ShowErrorLinks[e.showErrorLinks]===void 0?e.showErrorLinks:$root.Config.ShowErrorLinks[e.showErrorLinks]:e.showErrorLinks),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Config"},n.ToolbarMode=(function(){const i={},e=Object.create(i);return e[i[0]="AUTO"]=0,e[i[1]="DEVELOPER"]=1,e[i[2]="VIEWER"]=2,e[i[3]="MINIMAL"]=3,e})(),n.ShowErrorLinks=(function(){const i={},e=Object.create(i);return e[i[0]="SHOW_ERROR_LINKS_UNSPECIFIED"]=0,e[i[1]="SHOW_ERROR_LINKS_AUTO"]=1,e[i[2]="SHOW_ERROR_LINKS_TRUE"]=2,e[i[3]="SHOW_ERROR_LINKS_FALSE"]=3,e})(),n})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function n(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],this.chartDivergingColors=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.primaryColor="",n.prototype.secondaryBackgroundColor="",n.prototype.backgroundColor="",n.prototype.textColor="",n.prototype.font=0,n.prototype.base=0,n.prototype.widgetBackgroundColor="",n.prototype.widgetBorderColor="",n.prototype.radii=null,n.prototype.headingFont="",n.prototype.bodyFont="",n.prototype.codeFont="",n.prototype.fontFaces=$util.emptyArray,n.prototype.fontSources=$util.emptyArray,n.prototype.fontSizes=null,n.prototype.skeletonBackgroundColor="",n.prototype.baseRadius=null,n.prototype.buttonRadius=null,n.prototype.borderColor=null,n.prototype.dataframeBorderColor=null,n.prototype.showWidgetBorder=null,n.prototype.linkColor=null,n.prototype.linkUnderline=null,n.prototype.baseFontSize=null,n.prototype.baseFontWeight=null,n.prototype.codeFontWeight=null,n.prototype.codeFontSize=null,n.prototype.headingFontSizes=$util.emptyArray,n.prototype.headingFontWeights=$util.emptyArray,n.prototype.showSidebarBorder=null,n.prototype.codeTextColor=null,n.prototype.codeBackgroundColor=null,n.prototype.dataframeHeaderBackgroundColor=null,n.prototype.chartCategoricalColors=$util.emptyArray,n.prototype.chartSequentialColors=$util.emptyArray,n.prototype.chartDivergingColors=$util.emptyArray,n.prototype.redColor=null,n.prototype.orangeColor=null,n.prototype.yellowColor=null,n.prototype.blueColor=null,n.prototype.greenColor=null,n.prototype.violetColor=null,n.prototype.grayColor=null,n.prototype.redBackgroundColor=null,n.prototype.orangeBackgroundColor=null,n.prototype.yellowBackgroundColor=null,n.prototype.blueBackgroundColor=null,n.prototype.greenBackgroundColor=null,n.prototype.violetBackgroundColor=null,n.prototype.grayBackgroundColor=null,n.prototype.redTextColor=null,n.prototype.orangeTextColor=null,n.prototype.yellowTextColor=null,n.prototype.blueTextColor=null,n.prototype.greenTextColor=null,n.prototype.violetTextColor=null,n.prototype.grayTextColor=null,n.prototype.sidebar=null,n.prototype.light=null,n.prototype.dark=null;let i;return Object.defineProperty(n.prototype,"_baseRadius",{get:$util.oneOfGetter(i=["baseRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_buttonRadius",{get:$util.oneOfGetter(i=["buttonRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_borderColor",{get:$util.oneOfGetter(i=["borderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeBorderColor",{get:$util.oneOfGetter(i=["dataframeBorderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showWidgetBorder",{get:$util.oneOfGetter(i=["showWidgetBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkColor",{get:$util.oneOfGetter(i=["linkColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkUnderline",{get:$util.oneOfGetter(i=["linkUnderline"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontSize",{get:$util.oneOfGetter(i=["baseFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontWeight",{get:$util.oneOfGetter(i=["baseFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontWeight",{get:$util.oneOfGetter(i=["codeFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontSize",{get:$util.oneOfGetter(i=["codeFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showSidebarBorder",{get:$util.oneOfGetter(i=["showSidebarBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeTextColor",{get:$util.oneOfGetter(i=["codeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeBackgroundColor",{get:$util.oneOfGetter(i=["codeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeHeaderBackgroundColor",{get:$util.oneOfGetter(i=["dataframeHeaderBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redColor",{get:$util.oneOfGetter(i=["redColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeColor",{get:$util.oneOfGetter(i=["orangeColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowColor",{get:$util.oneOfGetter(i=["yellowColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueColor",{get:$util.oneOfGetter(i=["blueColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenColor",{get:$util.oneOfGetter(i=["greenColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetColor",{get:$util.oneOfGetter(i=["violetColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayColor",{get:$util.oneOfGetter(i=["grayColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redBackgroundColor",{get:$util.oneOfGetter(i=["redBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeBackgroundColor",{get:$util.oneOfGetter(i=["orangeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowBackgroundColor",{get:$util.oneOfGetter(i=["yellowBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueBackgroundColor",{get:$util.oneOfGetter(i=["blueBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenBackgroundColor",{get:$util.oneOfGetter(i=["greenBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetBackgroundColor",{get:$util.oneOfGetter(i=["violetBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayBackgroundColor",{get:$util.oneOfGetter(i=["grayBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redTextColor",{get:$util.oneOfGetter(i=["redTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeTextColor",{get:$util.oneOfGetter(i=["orangeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowTextColor",{get:$util.oneOfGetter(i=["yellowTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueTextColor",{get:$util.oneOfGetter(i=["blueTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenTextColor",{get:$util.oneOfGetter(i=["greenTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetTextColor",{get:$util.oneOfGetter(i=["violetTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayTextColor",{get:$util.oneOfGetter(i=["grayTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_sidebar",{get:$util.oneOfGetter(i=["sidebar"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_light",{get:$util.oneOfGetter(i=["light"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dark",{get:$util.oneOfGetter(i=["dark"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.primaryColor!=null&&Object.hasOwnProperty.call(t,"primaryColor")&&o.uint32(10).string(t.primaryColor),t.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(t,"secondaryBackgroundColor")&&o.uint32(18).string(t.secondaryBackgroundColor),t.backgroundColor!=null&&Object.hasOwnProperty.call(t,"backgroundColor")&&o.uint32(26).string(t.backgroundColor),t.textColor!=null&&Object.hasOwnProperty.call(t,"textColor")&&o.uint32(34).string(t.textColor),t.font!=null&&Object.hasOwnProperty.call(t,"font")&&o.uint32(40).int32(t.font),t.base!=null&&Object.hasOwnProperty.call(t,"base")&&o.uint32(48).int32(t.base),t.widgetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"widgetBackgroundColor")&&o.uint32(58).string(t.widgetBackgroundColor),t.widgetBorderColor!=null&&Object.hasOwnProperty.call(t,"widgetBorderColor")&&o.uint32(66).string(t.widgetBorderColor),t.radii!=null&&Object.hasOwnProperty.call(t,"radii")&&$root.Radii.encode(t.radii,o.uint32(74).fork()).ldelim(),t.headingFont!=null&&Object.hasOwnProperty.call(t,"headingFont")&&o.uint32(98).string(t.headingFont),t.bodyFont!=null&&Object.hasOwnProperty.call(t,"bodyFont")&&o.uint32(106).string(t.bodyFont),t.codeFont!=null&&Object.hasOwnProperty.call(t,"codeFont")&&o.uint32(114).string(t.codeFont),t.fontFaces!=null&&t.fontFaces.length)for(let d=0;d<t.fontFaces.length;++d)$root.FontFace.encode(t.fontFaces[d],o.uint32(122).fork()).ldelim();if(t.fontSizes!=null&&Object.hasOwnProperty.call(t,"fontSizes")&&$root.FontSizes.encode(t.fontSizes,o.uint32(130).fork()).ldelim(),t.skeletonBackgroundColor!=null&&Object.hasOwnProperty.call(t,"skeletonBackgroundColor")&&o.uint32(138).string(t.skeletonBackgroundColor),t.baseRadius!=null&&Object.hasOwnProperty.call(t,"baseRadius")&&o.uint32(146).string(t.baseRadius),t.borderColor!=null&&Object.hasOwnProperty.call(t,"borderColor")&&o.uint32(154).string(t.borderColor),t.showWidgetBorder!=null&&Object.hasOwnProperty.call(t,"showWidgetBorder")&&o.uint32(160).bool(t.showWidgetBorder),t.linkColor!=null&&Object.hasOwnProperty.call(t,"linkColor")&&o.uint32(170).string(t.linkColor),t.baseFontSize!=null&&Object.hasOwnProperty.call(t,"baseFontSize")&&o.uint32(176).int32(t.baseFontSize),t.showSidebarBorder!=null&&Object.hasOwnProperty.call(t,"showSidebarBorder")&&o.uint32(184).bool(t.showSidebarBorder),t.sidebar!=null&&Object.hasOwnProperty.call(t,"sidebar")&&$root.CustomThemeConfig.encode(t.sidebar,o.uint32(194).fork()).ldelim(),t.codeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"codeBackgroundColor")&&o.uint32(202).string(t.codeBackgroundColor),t.buttonRadius!=null&&Object.hasOwnProperty.call(t,"buttonRadius")&&o.uint32(210).string(t.buttonRadius),t.dataframeBorderColor!=null&&Object.hasOwnProperty.call(t,"dataframeBorderColor")&&o.uint32(218).string(t.dataframeBorderColor),t.codeFontSize!=null&&Object.hasOwnProperty.call(t,"codeFontSize")&&o.uint32(226).string(t.codeFontSize),t.linkUnderline!=null&&Object.hasOwnProperty.call(t,"linkUnderline")&&o.uint32(232).bool(t.linkUnderline),t.baseFontWeight!=null&&Object.hasOwnProperty.call(t,"baseFontWeight")&&o.uint32(240).int32(t.baseFontWeight),t.dataframeHeaderBackgroundColor!=null&&Object.hasOwnProperty.call(t,"dataframeHeaderBackgroundColor")&&o.uint32(250).string(t.dataframeHeaderBackgroundColor),t.codeFontWeight!=null&&Object.hasOwnProperty.call(t,"codeFontWeight")&&o.uint32(256).int32(t.codeFontWeight),t.chartCategoricalColors!=null&&t.chartCategoricalColors.length)for(let d=0;d<t.chartCategoricalColors.length;++d)o.uint32(266).string(t.chartCategoricalColors[d]);if(t.headingFontWeights!=null&&t.headingFontWeights.length){o.uint32(274).fork();for(let d=0;d<t.headingFontWeights.length;++d)o.int32(t.headingFontWeights[d]);o.ldelim()}if(t.headingFontSizes!=null&&t.headingFontSizes.length)for(let d=0;d<t.headingFontSizes.length;++d)o.uint32(282).string(t.headingFontSizes[d]);if(t.chartSequentialColors!=null&&t.chartSequentialColors.length)for(let d=0;d<t.chartSequentialColors.length;++d)o.uint32(290).string(t.chartSequentialColors[d]);if(t.fontSources!=null&&t.fontSources.length)for(let d=0;d<t.fontSources.length;++d)$root.FontSource.encode(t.fontSources[d],o.uint32(298).fork()).ldelim();if(t.redColor!=null&&Object.hasOwnProperty.call(t,"redColor")&&o.uint32(306).string(t.redColor),t.orangeColor!=null&&Object.hasOwnProperty.call(t,"orangeColor")&&o.uint32(314).string(t.orangeColor),t.yellowColor!=null&&Object.hasOwnProperty.call(t,"yellowColor")&&o.uint32(322).string(t.yellowColor),t.blueColor!=null&&Object.hasOwnProperty.call(t,"blueColor")&&o.uint32(330).string(t.blueColor),t.greenColor!=null&&Object.hasOwnProperty.call(t,"greenColor")&&o.uint32(338).string(t.greenColor),t.violetColor!=null&&Object.hasOwnProperty.call(t,"violetColor")&&o.uint32(346).string(t.violetColor),t.grayColor!=null&&Object.hasOwnProperty.call(t,"grayColor")&&o.uint32(354).string(t.grayColor),t.redBackgroundColor!=null&&Object.hasOwnProperty.call(t,"redBackgroundColor")&&o.uint32(362).string(t.redBackgroundColor),t.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"orangeBackgroundColor")&&o.uint32(370).string(t.orangeBackgroundColor),t.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(t,"yellowBackgroundColor")&&o.uint32(378).string(t.yellowBackgroundColor),t.blueBackgroundColor!=null&&Object.hasOwnProperty.call(t,"blueBackgroundColor")&&o.uint32(386).string(t.blueBackgroundColor),t.greenBackgroundColor!=null&&Object.hasOwnProperty.call(t,"greenBackgroundColor")&&o.uint32(394).string(t.greenBackgroundColor),t.violetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"violetBackgroundColor")&&o.uint32(402).string(t.violetBackgroundColor),t.grayBackgroundColor!=null&&Object.hasOwnProperty.call(t,"grayBackgroundColor")&&o.uint32(410).string(t.grayBackgroundColor),t.redTextColor!=null&&Object.hasOwnProperty.call(t,"redTextColor")&&o.uint32(418).string(t.redTextColor),t.orangeTextColor!=null&&Object.hasOwnProperty.call(t,"orangeTextColor")&&o.uint32(426).string(t.orangeTextColor),t.yellowTextColor!=null&&Object.hasOwnProperty.call(t,"yellowTextColor")&&o.uint32(434).string(t.yellowTextColor),t.blueTextColor!=null&&Object.hasOwnProperty.call(t,"blueTextColor")&&o.uint32(442).string(t.blueTextColor),t.greenTextColor!=null&&Object.hasOwnProperty.call(t,"greenTextColor")&&o.uint32(450).string(t.greenTextColor),t.violetTextColor!=null&&Object.hasOwnProperty.call(t,"violetTextColor")&&o.uint32(458).string(t.violetTextColor),t.grayTextColor!=null&&Object.hasOwnProperty.call(t,"grayTextColor")&&o.uint32(466).string(t.grayTextColor),t.codeTextColor!=null&&Object.hasOwnProperty.call(t,"codeTextColor")&&o.uint32(474).string(t.codeTextColor),t.light!=null&&Object.hasOwnProperty.call(t,"light")&&$root.CustomThemeConfig.encode(t.light,o.uint32(482).fork()).ldelim(),t.dark!=null&&Object.hasOwnProperty.call(t,"dark")&&$root.CustomThemeConfig.encode(t.dark,o.uint32(490).fork()).ldelim(),t.chartDivergingColors!=null&&t.chartDivergingColors.length)for(let d=0;d<t.chartDivergingColors.length;++d)o.uint32(498).string(t.chartDivergingColors[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.CustomThemeConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.primaryColor=t.string();break}case 2:{h.secondaryBackgroundColor=t.string();break}case 3:{h.backgroundColor=t.string();break}case 4:{h.textColor=t.string();break}case 5:{h.font=t.int32();break}case 6:{h.base=t.int32();break}case 7:{h.widgetBackgroundColor=t.string();break}case 8:{h.widgetBorderColor=t.string();break}case 9:{h.radii=$root.Radii.decode(t,t.uint32());break}case 12:{h.headingFont=t.string();break}case 13:{h.bodyFont=t.string();break}case 14:{h.codeFont=t.string();break}case 15:{h.fontFaces&&h.fontFaces.length||(h.fontFaces=[]),h.fontFaces.push($root.FontFace.decode(t,t.uint32()));break}case 37:{h.fontSources&&h.fontSources.length||(h.fontSources=[]),h.fontSources.push($root.FontSource.decode(t,t.uint32()));break}case 16:{h.fontSizes=$root.FontSizes.decode(t,t.uint32());break}case 17:{h.skeletonBackgroundColor=t.string();break}case 18:{h.baseRadius=t.string();break}case 26:{h.buttonRadius=t.string();break}case 19:{h.borderColor=t.string();break}case 27:{h.dataframeBorderColor=t.string();break}case 20:{h.showWidgetBorder=t.bool();break}case 21:{h.linkColor=t.string();break}case 29:{h.linkUnderline=t.bool();break}case 22:{h.baseFontSize=t.int32();break}case 30:{h.baseFontWeight=t.int32();break}case 32:{h.codeFontWeight=t.int32();break}case 28:{h.codeFontSize=t.string();break}case 35:{h.headingFontSizes&&h.headingFontSizes.length||(h.headingFontSizes=[]),h.headingFontSizes.push(t.string());break}case 34:{if(h.headingFontWeights&&h.headingFontWeights.length||(h.headingFontWeights=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.headingFontWeights.push(t.int32())}else h.headingFontWeights.push(t.int32());break}case 23:{h.showSidebarBorder=t.bool();break}case 59:{h.codeTextColor=t.string();break}case 25:{h.codeBackgroundColor=t.string();break}case 31:{h.dataframeHeaderBackgroundColor=t.string();break}case 33:{h.chartCategoricalColors&&h.chartCategoricalColors.length||(h.chartCategoricalColors=[]),h.chartCategoricalColors.push(t.string());break}case 36:{h.chartSequentialColors&&h.chartSequentialColors.length||(h.chartSequentialColors=[]),h.chartSequentialColors.push(t.string());break}case 62:{h.chartDivergingColors&&h.chartDivergingColors.length||(h.chartDivergingColors=[]),h.chartDivergingColors.push(t.string());break}case 38:{h.redColor=t.string();break}case 39:{h.orangeColor=t.string();break}case 40:{h.yellowColor=t.string();break}case 41:{h.blueColor=t.string();break}case 42:{h.greenColor=t.string();break}case 43:{h.violetColor=t.string();break}case 44:{h.grayColor=t.string();break}case 45:{h.redBackgroundColor=t.string();break}case 46:{h.orangeBackgroundColor=t.string();break}case 47:{h.yellowBackgroundColor=t.string();break}case 48:{h.blueBackgroundColor=t.string();break}case 49:{h.greenBackgroundColor=t.string();break}case 50:{h.violetBackgroundColor=t.string();break}case 51:{h.grayBackgroundColor=t.string();break}case 52:{h.redTextColor=t.string();break}case 53:{h.orangeTextColor=t.string();break}case 54:{h.yellowTextColor=t.string();break}case 55:{h.blueTextColor=t.string();break}case 56:{h.greenTextColor=t.string();break}case 57:{h.violetTextColor=t.string();break}case 58:{h.grayTextColor=t.string();break}case 24:{h.sidebar=$root.CustomThemeConfig.decode(t,t.uint32());break}case 60:{h.light=$root.CustomThemeConfig.decode(t,t.uint32());break}case 61:{h.dark=$root.CustomThemeConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.CustomThemeConfig)return t;let o=new $root.CustomThemeConfig;switch(t.primaryColor!=null&&(o.primaryColor=String(t.primaryColor)),t.secondaryBackgroundColor!=null&&(o.secondaryBackgroundColor=String(t.secondaryBackgroundColor)),t.backgroundColor!=null&&(o.backgroundColor=String(t.backgroundColor)),t.textColor!=null&&(o.textColor=String(t.textColor)),t.font){default:if(typeof t.font=="number"){o.font=t.font;break}break;case"SANS_SERIF":case 0:o.font=0;break;case"SERIF":case 1:o.font=1;break;case"MONOSPACE":case 2:o.font=2;break}switch(t.base){default:if(typeof t.base=="number"){o.base=t.base;break}break;case"LIGHT":case 0:o.base=0;break;case"DARK":case 1:o.base=1;break}if(t.widgetBackgroundColor!=null&&(o.widgetBackgroundColor=String(t.widgetBackgroundColor)),t.widgetBorderColor!=null&&(o.widgetBorderColor=String(t.widgetBorderColor)),t.radii!=null){if(typeof t.radii!="object")throw TypeError(".CustomThemeConfig.radii: object expected");o.radii=$root.Radii.fromObject(t.radii)}if(t.headingFont!=null&&(o.headingFont=String(t.headingFont)),t.bodyFont!=null&&(o.bodyFont=String(t.bodyFont)),t.codeFont!=null&&(o.codeFont=String(t.codeFont)),t.fontFaces){if(!Array.isArray(t.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");o.fontFaces=[];for(let d=0;d<t.fontFaces.length;++d){if(typeof t.fontFaces[d]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");o.fontFaces[d]=$root.FontFace.fromObject(t.fontFaces[d])}}if(t.fontSources){if(!Array.isArray(t.fontSources))throw TypeError(".CustomThemeConfig.fontSources: array expected");o.fontSources=[];for(let d=0;d<t.fontSources.length;++d){if(typeof t.fontSources[d]!="object")throw TypeError(".CustomThemeConfig.fontSources: object expected");o.fontSources[d]=$root.FontSource.fromObject(t.fontSources[d])}}if(t.fontSizes!=null){if(typeof t.fontSizes!="object")throw TypeError(".CustomThemeConfig.fontSizes: object expected");o.fontSizes=$root.FontSizes.fromObject(t.fontSizes)}if(t.skeletonBackgroundColor!=null&&(o.skeletonBackgroundColor=String(t.skeletonBackgroundColor)),t.baseRadius!=null&&(o.baseRadius=String(t.baseRadius)),t.buttonRadius!=null&&(o.buttonRadius=String(t.buttonRadius)),t.borderColor!=null&&(o.borderColor=String(t.borderColor)),t.dataframeBorderColor!=null&&(o.dataframeBorderColor=String(t.dataframeBorderColor)),t.showWidgetBorder!=null&&(o.showWidgetBorder=!!t.showWidgetBorder),t.linkColor!=null&&(o.linkColor=String(t.linkColor)),t.linkUnderline!=null&&(o.linkUnderline=!!t.linkUnderline),t.baseFontSize!=null&&(o.baseFontSize=t.baseFontSize|0),t.baseFontWeight!=null&&(o.baseFontWeight=t.baseFontWeight|0),t.codeFontWeight!=null&&(o.codeFontWeight=t.codeFontWeight|0),t.codeFontSize!=null&&(o.codeFontSize=String(t.codeFontSize)),t.headingFontSizes){if(!Array.isArray(t.headingFontSizes))throw TypeError(".CustomThemeConfig.headingFontSizes: array expected");o.headingFontSizes=[];for(let d=0;d<t.headingFontSizes.length;++d)o.headingFontSizes[d]=String(t.headingFontSizes[d])}if(t.headingFontWeights){if(!Array.isArray(t.headingFontWeights))throw TypeError(".CustomThemeConfig.headingFontWeights: array expected");o.headingFontWeights=[];for(let d=0;d<t.headingFontWeights.length;++d)o.headingFontWeights[d]=t.headingFontWeights[d]|0}if(t.showSidebarBorder!=null&&(o.showSidebarBorder=!!t.showSidebarBorder),t.codeTextColor!=null&&(o.codeTextColor=String(t.codeTextColor)),t.codeBackgroundColor!=null&&(o.codeBackgroundColor=String(t.codeBackgroundColor)),t.dataframeHeaderBackgroundColor!=null&&(o.dataframeHeaderBackgroundColor=String(t.dataframeHeaderBackgroundColor)),t.chartCategoricalColors){if(!Array.isArray(t.chartCategoricalColors))throw TypeError(".CustomThemeConfig.chartCategoricalColors: array expected");o.chartCategoricalColors=[];for(let d=0;d<t.chartCategoricalColors.length;++d)o.chartCategoricalColors[d]=String(t.chartCategoricalColors[d])}if(t.chartSequentialColors){if(!Array.isArray(t.chartSequentialColors))throw TypeError(".CustomThemeConfig.chartSequentialColors: array expected");o.chartSequentialColors=[];for(let d=0;d<t.chartSequentialColors.length;++d)o.chartSequentialColors[d]=String(t.chartSequentialColors[d])}if(t.chartDivergingColors){if(!Array.isArray(t.chartDivergingColors))throw TypeError(".CustomThemeConfig.chartDivergingColors: array expected");o.chartDivergingColors=[];for(let d=0;d<t.chartDivergingColors.length;++d)o.chartDivergingColors[d]=String(t.chartDivergingColors[d])}if(t.redColor!=null&&(o.redColor=String(t.redColor)),t.orangeColor!=null&&(o.orangeColor=String(t.orangeColor)),t.yellowColor!=null&&(o.yellowColor=String(t.yellowColor)),t.blueColor!=null&&(o.blueColor=String(t.blueColor)),t.greenColor!=null&&(o.greenColor=String(t.greenColor)),t.violetColor!=null&&(o.violetColor=String(t.violetColor)),t.grayColor!=null&&(o.grayColor=String(t.grayColor)),t.redBackgroundColor!=null&&(o.redBackgroundColor=String(t.redBackgroundColor)),t.orangeBackgroundColor!=null&&(o.orangeBackgroundColor=String(t.orangeBackgroundColor)),t.yellowBackgroundColor!=null&&(o.yellowBackgroundColor=String(t.yellowBackgroundColor)),t.blueBackgroundColor!=null&&(o.blueBackgroundColor=String(t.blueBackgroundColor)),t.greenBackgroundColor!=null&&(o.greenBackgroundColor=String(t.greenBackgroundColor)),t.violetBackgroundColor!=null&&(o.violetBackgroundColor=String(t.violetBackgroundColor)),t.grayBackgroundColor!=null&&(o.grayBackgroundColor=String(t.grayBackgroundColor)),t.redTextColor!=null&&(o.redTextColor=String(t.redTextColor)),t.orangeTextColor!=null&&(o.orangeTextColor=String(t.orangeTextColor)),t.yellowTextColor!=null&&(o.yellowTextColor=String(t.yellowTextColor)),t.blueTextColor!=null&&(o.blueTextColor=String(t.blueTextColor)),t.greenTextColor!=null&&(o.greenTextColor=String(t.greenTextColor)),t.violetTextColor!=null&&(o.violetTextColor=String(t.violetTextColor)),t.grayTextColor!=null&&(o.grayTextColor=String(t.grayTextColor)),t.sidebar!=null){if(typeof t.sidebar!="object")throw TypeError(".CustomThemeConfig.sidebar: object expected");o.sidebar=$root.CustomThemeConfig.fromObject(t.sidebar)}if(t.light!=null){if(typeof t.light!="object")throw TypeError(".CustomThemeConfig.light: object expected");o.light=$root.CustomThemeConfig.fromObject(t.light)}if(t.dark!=null){if(typeof t.dark!="object")throw TypeError(".CustomThemeConfig.dark: object expected");o.dark=$root.CustomThemeConfig.fromObject(t.dark)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fontFaces=[],d.chartCategoricalColors=[],d.headingFontWeights=[],d.headingFontSizes=[],d.chartSequentialColors=[],d.fontSources=[],d.chartDivergingColors=[]),o.defaults&&(d.primaryColor="",d.secondaryBackgroundColor="",d.backgroundColor="",d.textColor="",d.font=o.enums===String?"SANS_SERIF":0,d.base=o.enums===String?"LIGHT":0,d.widgetBackgroundColor="",d.widgetBorderColor="",d.radii=null,d.headingFont="",d.bodyFont="",d.codeFont="",d.fontSizes=null,d.skeletonBackgroundColor=""),t.primaryColor!=null&&t.hasOwnProperty("primaryColor")&&(d.primaryColor=t.primaryColor),t.secondaryBackgroundColor!=null&&t.hasOwnProperty("secondaryBackgroundColor")&&(d.secondaryBackgroundColor=t.secondaryBackgroundColor),t.backgroundColor!=null&&t.hasOwnProperty("backgroundColor")&&(d.backgroundColor=t.backgroundColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(d.textColor=t.textColor),t.font!=null&&t.hasOwnProperty("font")&&(d.font=o.enums===String?$root.CustomThemeConfig.FontFamily[t.font]===void 0?t.font:$root.CustomThemeConfig.FontFamily[t.font]:t.font),t.base!=null&&t.hasOwnProperty("base")&&(d.base=o.enums===String?$root.CustomThemeConfig.BaseTheme[t.base]===void 0?t.base:$root.CustomThemeConfig.BaseTheme[t.base]:t.base),t.widgetBackgroundColor!=null&&t.hasOwnProperty("widgetBackgroundColor")&&(d.widgetBackgroundColor=t.widgetBackgroundColor),t.widgetBorderColor!=null&&t.hasOwnProperty("widgetBorderColor")&&(d.widgetBorderColor=t.widgetBorderColor),t.radii!=null&&t.hasOwnProperty("radii")&&(d.radii=$root.Radii.toObject(t.radii,o)),t.headingFont!=null&&t.hasOwnProperty("headingFont")&&(d.headingFont=t.headingFont),t.bodyFont!=null&&t.hasOwnProperty("bodyFont")&&(d.bodyFont=t.bodyFont),t.codeFont!=null&&t.hasOwnProperty("codeFont")&&(d.codeFont=t.codeFont),t.fontFaces&&t.fontFaces.length){d.fontFaces=[];for(let p=0;p<t.fontFaces.length;++p)d.fontFaces[p]=$root.FontFace.toObject(t.fontFaces[p],o)}if(t.fontSizes!=null&&t.hasOwnProperty("fontSizes")&&(d.fontSizes=$root.FontSizes.toObject(t.fontSizes,o)),t.skeletonBackgroundColor!=null&&t.hasOwnProperty("skeletonBackgroundColor")&&(d.skeletonBackgroundColor=t.skeletonBackgroundColor),t.baseRadius!=null&&t.hasOwnProperty("baseRadius")&&(d.baseRadius=t.baseRadius,o.oneofs&&(d._baseRadius="baseRadius")),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(d.borderColor=t.borderColor,o.oneofs&&(d._borderColor="borderColor")),t.showWidgetBorder!=null&&t.hasOwnProperty("showWidgetBorder")&&(d.showWidgetBorder=t.showWidgetBorder,o.oneofs&&(d._showWidgetBorder="showWidgetBorder")),t.linkColor!=null&&t.hasOwnProperty("linkColor")&&(d.linkColor=t.linkColor,o.oneofs&&(d._linkColor="linkColor")),t.baseFontSize!=null&&t.hasOwnProperty("baseFontSize")&&(d.baseFontSize=t.baseFontSize,o.oneofs&&(d._baseFontSize="baseFontSize")),t.showSidebarBorder!=null&&t.hasOwnProperty("showSidebarBorder")&&(d.showSidebarBorder=t.showSidebarBorder,o.oneofs&&(d._showSidebarBorder="showSidebarBorder")),t.sidebar!=null&&t.hasOwnProperty("sidebar")&&(d.sidebar=$root.CustomThemeConfig.toObject(t.sidebar,o),o.oneofs&&(d._sidebar="sidebar")),t.codeBackgroundColor!=null&&t.hasOwnProperty("codeBackgroundColor")&&(d.codeBackgroundColor=t.codeBackgroundColor,o.oneofs&&(d._codeBackgroundColor="codeBackgroundColor")),t.buttonRadius!=null&&t.hasOwnProperty("buttonRadius")&&(d.buttonRadius=t.buttonRadius,o.oneofs&&(d._buttonRadius="buttonRadius")),t.dataframeBorderColor!=null&&t.hasOwnProperty("dataframeBorderColor")&&(d.dataframeBorderColor=t.dataframeBorderColor,o.oneofs&&(d._dataframeBorderColor="dataframeBorderColor")),t.codeFontSize!=null&&t.hasOwnProperty("codeFontSize")&&(d.codeFontSize=t.codeFontSize,o.oneofs&&(d._codeFontSize="codeFontSize")),t.linkUnderline!=null&&t.hasOwnProperty("linkUnderline")&&(d.linkUnderline=t.linkUnderline,o.oneofs&&(d._linkUnderline="linkUnderline")),t.baseFontWeight!=null&&t.hasOwnProperty("baseFontWeight")&&(d.baseFontWeight=t.baseFontWeight,o.oneofs&&(d._baseFontWeight="baseFontWeight")),t.dataframeHeaderBackgroundColor!=null&&t.hasOwnProperty("dataframeHeaderBackgroundColor")&&(d.dataframeHeaderBackgroundColor=t.dataframeHeaderBackgroundColor,o.oneofs&&(d._dataframeHeaderBackgroundColor="dataframeHeaderBackgroundColor")),t.codeFontWeight!=null&&t.hasOwnProperty("codeFontWeight")&&(d.codeFontWeight=t.codeFontWeight,o.oneofs&&(d._codeFontWeight="codeFontWeight")),t.chartCategoricalColors&&t.chartCategoricalColors.length){d.chartCategoricalColors=[];for(let p=0;p<t.chartCategoricalColors.length;++p)d.chartCategoricalColors[p]=t.chartCategoricalColors[p]}if(t.headingFontWeights&&t.headingFontWeights.length){d.headingFontWeights=[];for(let p=0;p<t.headingFontWeights.length;++p)d.headingFontWeights[p]=t.headingFontWeights[p]}if(t.headingFontSizes&&t.headingFontSizes.length){d.headingFontSizes=[];for(let p=0;p<t.headingFontSizes.length;++p)d.headingFontSizes[p]=t.headingFontSizes[p]}if(t.chartSequentialColors&&t.chartSequentialColors.length){d.chartSequentialColors=[];for(let p=0;p<t.chartSequentialColors.length;++p)d.chartSequentialColors[p]=t.chartSequentialColors[p]}if(t.fontSources&&t.fontSources.length){d.fontSources=[];for(let p=0;p<t.fontSources.length;++p)d.fontSources[p]=$root.FontSource.toObject(t.fontSources[p],o)}if(t.redColor!=null&&t.hasOwnProperty("redColor")&&(d.redColor=t.redColor,o.oneofs&&(d._redColor="redColor")),t.orangeColor!=null&&t.hasOwnProperty("orangeColor")&&(d.orangeColor=t.orangeColor,o.oneofs&&(d._orangeColor="orangeColor")),t.yellowColor!=null&&t.hasOwnProperty("yellowColor")&&(d.yellowColor=t.yellowColor,o.oneofs&&(d._yellowColor="yellowColor")),t.blueColor!=null&&t.hasOwnProperty("blueColor")&&(d.blueColor=t.blueColor,o.oneofs&&(d._blueColor="blueColor")),t.greenColor!=null&&t.hasOwnProperty("greenColor")&&(d.greenColor=t.greenColor,o.oneofs&&(d._greenColor="greenColor")),t.violetColor!=null&&t.hasOwnProperty("violetColor")&&(d.violetColor=t.violetColor,o.oneofs&&(d._violetColor="violetColor")),t.grayColor!=null&&t.hasOwnProperty("grayColor")&&(d.grayColor=t.grayColor,o.oneofs&&(d._grayColor="grayColor")),t.redBackgroundColor!=null&&t.hasOwnProperty("redBackgroundColor")&&(d.redBackgroundColor=t.redBackgroundColor,o.oneofs&&(d._redBackgroundColor="redBackgroundColor")),t.orangeBackgroundColor!=null&&t.hasOwnProperty("orangeBackgroundColor")&&(d.orangeBackgroundColor=t.orangeBackgroundColor,o.oneofs&&(d._orangeBackgroundColor="orangeBackgroundColor")),t.yellowBackgroundColor!=null&&t.hasOwnProperty("yellowBackgroundColor")&&(d.yellowBackgroundColor=t.yellowBackgroundColor,o.oneofs&&(d._yellowBackgroundColor="yellowBackgroundColor")),t.blueBackgroundColor!=null&&t.hasOwnProperty("blueBackgroundColor")&&(d.blueBackgroundColor=t.blueBackgroundColor,o.oneofs&&(d._blueBackgroundColor="blueBackgroundColor")),t.greenBackgroundColor!=null&&t.hasOwnProperty("greenBackgroundColor")&&(d.greenBackgroundColor=t.greenBackgroundColor,o.oneofs&&(d._greenBackgroundColor="greenBackgroundColor")),t.violetBackgroundColor!=null&&t.hasOwnProperty("violetBackgroundColor")&&(d.violetBackgroundColor=t.violetBackgroundColor,o.oneofs&&(d._violetBackgroundColor="violetBackgroundColor")),t.grayBackgroundColor!=null&&t.hasOwnProperty("grayBackgroundColor")&&(d.grayBackgroundColor=t.grayBackgroundColor,o.oneofs&&(d._grayBackgroundColor="grayBackgroundColor")),t.redTextColor!=null&&t.hasOwnProperty("redTextColor")&&(d.redTextColor=t.redTextColor,o.oneofs&&(d._redTextColor="redTextColor")),t.orangeTextColor!=null&&t.hasOwnProperty("orangeTextColor")&&(d.orangeTextColor=t.orangeTextColor,o.oneofs&&(d._orangeTextColor="orangeTextColor")),t.yellowTextColor!=null&&t.hasOwnProperty("yellowTextColor")&&(d.yellowTextColor=t.yellowTextColor,o.oneofs&&(d._yellowTextColor="yellowTextColor")),t.blueTextColor!=null&&t.hasOwnProperty("blueTextColor")&&(d.blueTextColor=t.blueTextColor,o.oneofs&&(d._blueTextColor="blueTextColor")),t.greenTextColor!=null&&t.hasOwnProperty("greenTextColor")&&(d.greenTextColor=t.greenTextColor,o.oneofs&&(d._greenTextColor="greenTextColor")),t.violetTextColor!=null&&t.hasOwnProperty("violetTextColor")&&(d.violetTextColor=t.violetTextColor,o.oneofs&&(d._violetTextColor="violetTextColor")),t.grayTextColor!=null&&t.hasOwnProperty("grayTextColor")&&(d.grayTextColor=t.grayTextColor,o.oneofs&&(d._grayTextColor="grayTextColor")),t.codeTextColor!=null&&t.hasOwnProperty("codeTextColor")&&(d.codeTextColor=t.codeTextColor,o.oneofs&&(d._codeTextColor="codeTextColor")),t.light!=null&&t.hasOwnProperty("light")&&(d.light=$root.CustomThemeConfig.toObject(t.light,o),o.oneofs&&(d._light="light")),t.dark!=null&&t.hasOwnProperty("dark")&&(d.dark=$root.CustomThemeConfig.toObject(t.dark,o),o.oneofs&&(d._dark="dark")),t.chartDivergingColors&&t.chartDivergingColors.length){d.chartDivergingColors=[];for(let p=0;p<t.chartDivergingColors.length;++p)d.chartDivergingColors[p]=t.chartDivergingColors[p]}return d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/CustomThemeConfig"},n.BaseTheme=(function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t})(),n.FontFamily=(function(){const e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t})(),n})();$root.FontFace=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.family="",n.prototype.weight=0,n.prototype.weightRange="",n.prototype.style="",n.prototype.unicodeRange="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),e.family!=null&&Object.hasOwnProperty.call(e,"family")&&t.uint32(18).string(e.family),e.weight!=null&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(24).int32(e.weight),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&t.uint32(34).string(e.style),e.weightRange!=null&&Object.hasOwnProperty.call(e,"weightRange")&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&Object.hasOwnProperty.call(e,"unicodeRange")&&t.uint32(50).string(e.unicodeRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontFace;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}case 2:{p.family=e.string();break}case 3:{p.weight=e.int32();break}case 5:{p.weightRange=e.string();break}case 4:{p.style=e.string();break}case 6:{p.unicodeRange=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontFace)return e;let t=new $root.FontFace;return e.url!=null&&(t.url=String(e.url)),e.family!=null&&(t.family=String(e.family)),e.weight!=null&&(t.weight=e.weight|0),e.weightRange!=null&&(t.weightRange=String(e.weightRange)),e.style!=null&&(t.style=String(e.style)),e.unicodeRange!=null&&(t.unicodeRange=String(e.unicodeRange)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url="",o.family="",o.weight=0,o.style="",o.weightRange="",o.unicodeRange=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.family!=null&&e.hasOwnProperty("family")&&(o.family=e.family),e.weight!=null&&e.hasOwnProperty("weight")&&(o.weight=e.weight),e.style!=null&&e.hasOwnProperty("style")&&(o.style=e.style),e.weightRange!=null&&e.hasOwnProperty("weightRange")&&(o.weightRange=e.weightRange),e.unicodeRange!=null&&e.hasOwnProperty("unicodeRange")&&(o.unicodeRange=e.unicodeRange),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontFace"},n})();$root.FontSource=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.configName="",n.prototype.sourceUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.configName!=null&&Object.hasOwnProperty.call(e,"configName")&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&Object.hasOwnProperty.call(e,"sourceUrl")&&t.uint32(18).string(e.sourceUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSource;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.configName=e.string();break}case 2:{p.sourceUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSource)return e;let t=new $root.FontSource;return e.configName!=null&&(t.configName=String(e.configName)),e.sourceUrl!=null&&(t.sourceUrl=String(e.sourceUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.configName="",o.sourceUrl=""),e.configName!=null&&e.hasOwnProperty("configName")&&(o.configName=e.configName),e.sourceUrl!=null&&e.hasOwnProperty("sourceUrl")&&(o.sourceUrl=e.sourceUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSource"},n})();$root.Radii=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.baseWidgetRadius=0,n.prototype.checkboxRadius=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.baseWidgetRadius!=null&&Object.hasOwnProperty.call(e,"baseWidgetRadius")&&t.uint32(8).int32(e.baseWidgetRadius),e.checkboxRadius!=null&&Object.hasOwnProperty.call(e,"checkboxRadius")&&t.uint32(16).int32(e.checkboxRadius),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Radii;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.baseWidgetRadius=e.int32();break}case 2:{p.checkboxRadius=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Radii)return e;let t=new $root.Radii;return e.baseWidgetRadius!=null&&(t.baseWidgetRadius=e.baseWidgetRadius|0),e.checkboxRadius!=null&&(t.checkboxRadius=e.checkboxRadius|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.baseWidgetRadius=0,o.checkboxRadius=0),e.baseWidgetRadius!=null&&e.hasOwnProperty("baseWidgetRadius")&&(o.baseWidgetRadius=e.baseWidgetRadius),e.checkboxRadius!=null&&e.hasOwnProperty("checkboxRadius")&&(o.checkboxRadius=e.checkboxRadius),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Radii"},n})();$root.FontSizes=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tinyFontSize=0,n.prototype.smallFontSize=0,n.prototype.baseFontSize=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tinyFontSize!=null&&Object.hasOwnProperty.call(e,"tinyFontSize")&&t.uint32(8).int32(e.tinyFontSize),e.smallFontSize!=null&&Object.hasOwnProperty.call(e,"smallFontSize")&&t.uint32(16).int32(e.smallFontSize),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,"baseFontSize")&&t.uint32(24).int32(e.baseFontSize),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSizes;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tinyFontSize=e.int32();break}case 2:{p.smallFontSize=e.int32();break}case 3:{p.baseFontSize=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSizes)return e;let t=new $root.FontSizes;return e.tinyFontSize!=null&&(t.tinyFontSize=e.tinyFontSize|0),e.smallFontSize!=null&&(t.smallFontSize=e.smallFontSize|0),e.baseFontSize!=null&&(t.baseFontSize=e.baseFontSize|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tinyFontSize=0,o.smallFontSize=0,o.baseFontSize=0),e.tinyFontSize!=null&&e.hasOwnProperty("tinyFontSize")&&(o.tinyFontSize=e.tinyFontSize),e.smallFontSize!=null&&e.hasOwnProperty("smallFontSize")&&(o.smallFontSize=e.smallFontSize),e.baseFontSize!=null&&e.hasOwnProperty("baseFontSize")&&(o.baseFontSize=e.baseFontSize),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSizes"},n})();$root.UserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.installationId="",n.prototype.installationIdV3="",n.prototype.installationIdV4="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.installationId!=null&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&Object.hasOwnProperty.call(e,"installationIdV4")&&t.uint32(50).string(e.installationIdV4),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.installationId=e.string();break}case 5:{p.installationIdV3=e.string();break}case 6:{p.installationIdV4=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UserInfo)return e;let t=new $root.UserInfo;return e.installationId!=null&&(t.installationId=String(e.installationId)),e.installationIdV3!=null&&(t.installationIdV3=String(e.installationIdV3)),e.installationIdV4!=null&&(t.installationIdV4=String(e.installationIdV4)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.installationId="",o.installationIdV3="",o.installationIdV4=""),e.installationId!=null&&e.hasOwnProperty("installationId")&&(o.installationId=e.installationId),e.installationIdV3!=null&&e.hasOwnProperty("installationIdV3")&&(o.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&e.hasOwnProperty("installationIdV4")&&(o.installationIdV4=e.installationIdV4),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UserInfo"},n})();$root.EnvironmentInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.streamlitVersion="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(32).bool(e.hasDisplay),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.EnvironmentInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.streamlitVersion=e.string();break}case 2:{p.pythonVersion=e.string();break}case 3:{p.serverOs=e.string();break}case 4:{p.hasDisplay=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.EnvironmentInfo)return e;let t=new $root.EnvironmentInfo;return e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.streamlitVersion="",o.pythonVersion="",o.serverOs="",o.hasDisplay=!1),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/EnvironmentInfo"},n})();$root.SessionStatus=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.runOnSave=!1,n.prototype.scriptIsRunning=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.runOnSave!=null&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SessionStatus;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.runOnSave=e.bool();break}case 2:{p.scriptIsRunning=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SessionStatus)return e;let t=new $root.SessionStatus;return e.runOnSave!=null&&(t.runOnSave=!!e.runOnSave),e.scriptIsRunning!=null&&(t.scriptIsRunning=!!e.scriptIsRunning),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.runOnSave=!1,o.scriptIsRunning=!1),e.runOnSave!=null&&e.hasOwnProperty("runOnSave")&&(o.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&e.hasOwnProperty("scriptIsRunning")&&(o.scriptIsRunning=e.scriptIsRunning),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SessionStatus"},n})();const PageConfig=$root.PageConfig=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.title="",n.prototype.favicon="",n.prototype.layout=0,n.prototype.initialSidebarState=0,n.prototype.menuItems=null,n.prototype.initialSidebarWidth=null;let i;return Object.defineProperty(n.prototype,"_initialSidebarWidth",{get:$util.oneOfGetter(i=["initialSidebarWidth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.title!=null&&Object.hasOwnProperty.call(t,"title")&&o.uint32(10).string(t.title),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&o.uint32(18).string(t.favicon),t.layout!=null&&Object.hasOwnProperty.call(t,"layout")&&o.uint32(24).int32(t.layout),t.initialSidebarState!=null&&Object.hasOwnProperty.call(t,"initialSidebarState")&&o.uint32(32).int32(t.initialSidebarState),t.menuItems!=null&&Object.hasOwnProperty.call(t,"menuItems")&&$root.PageConfig.MenuItems.encode(t.menuItems,o.uint32(42).fork()).ldelim(),t.initialSidebarWidth!=null&&Object.hasOwnProperty.call(t,"initialSidebarWidth")&&$root.PageConfig.SidebarWidthConfig.encode(t.initialSidebarWidth,o.uint32(50).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.title=t.string();break}case 2:{h.favicon=t.string();break}case 3:{h.layout=t.int32();break}case 4:{h.initialSidebarState=t.int32();break}case 5:{h.menuItems=$root.PageConfig.MenuItems.decode(t,t.uint32());break}case 6:{h.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageConfig)return t;let o=new $root.PageConfig;switch(t.title!=null&&(o.title=String(t.title)),t.favicon!=null&&(o.favicon=String(t.favicon)),t.layout){default:if(typeof t.layout=="number"){o.layout=t.layout;break}break;case"CENTERED":case 0:o.layout=0;break;case"WIDE":case 1:o.layout=1;break;case"LAYOUT_UNSET":case 2:o.layout=2;break}switch(t.initialSidebarState){default:if(typeof t.initialSidebarState=="number"){o.initialSidebarState=t.initialSidebarState;break}break;case"AUTO":case 0:o.initialSidebarState=0;break;case"EXPANDED":case 1:o.initialSidebarState=1;break;case"COLLAPSED":case 2:o.initialSidebarState=2;break;case"SIDEBAR_UNSET":case 3:o.initialSidebarState=3;break}if(t.menuItems!=null){if(typeof t.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");o.menuItems=$root.PageConfig.MenuItems.fromObject(t.menuItems)}if(t.initialSidebarWidth!=null){if(typeof t.initialSidebarWidth!="object")throw TypeError(".PageConfig.initialSidebarWidth: object expected");o.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.fromObject(t.initialSidebarWidth)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.title="",d.favicon="",d.layout=o.enums===String?"CENTERED":0,d.initialSidebarState=o.enums===String?"AUTO":0,d.menuItems=null),t.title!=null&&t.hasOwnProperty("title")&&(d.title=t.title),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=t.favicon),t.layout!=null&&t.hasOwnProperty("layout")&&(d.layout=o.enums===String?$root.PageConfig.Layout[t.layout]===void 0?t.layout:$root.PageConfig.Layout[t.layout]:t.layout),t.initialSidebarState!=null&&t.hasOwnProperty("initialSidebarState")&&(d.initialSidebarState=o.enums===String?$root.PageConfig.SidebarState[t.initialSidebarState]===void 0?t.initialSidebarState:$root.PageConfig.SidebarState[t.initialSidebarState]:t.initialSidebarState),t.menuItems!=null&&t.hasOwnProperty("menuItems")&&(d.menuItems=$root.PageConfig.MenuItems.toObject(t.menuItems,o)),t.initialSidebarWidth!=null&&t.hasOwnProperty("initialSidebarWidth")&&(d.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.toObject(t.initialSidebarWidth,o),o.oneofs&&(d._initialSidebarWidth="initialSidebarWidth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageConfig"},n.MenuItems=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.prototype.clearAboutMd=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.getHelpUrl!=null&&Object.hasOwnProperty.call(o,"getHelpUrl")&&d.uint32(10).string(o.getHelpUrl),o.hideGetHelp!=null&&Object.hasOwnProperty.call(o,"hideGetHelp")&&d.uint32(16).bool(o.hideGetHelp),o.reportABugUrl!=null&&Object.hasOwnProperty.call(o,"reportABugUrl")&&d.uint32(26).string(o.reportABugUrl),o.hideReportABug!=null&&Object.hasOwnProperty.call(o,"hideReportABug")&&d.uint32(32).bool(o.hideReportABug),o.aboutSectionMd!=null&&Object.hasOwnProperty.call(o,"aboutSectionMd")&&d.uint32(42).string(o.aboutSectionMd),o.clearAboutMd!=null&&Object.hasOwnProperty.call(o,"clearAboutMd")&&d.uint32(48).bool(o.clearAboutMd),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.PageConfig.MenuItems;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.getHelpUrl=o.string();break}case 2:{y.hideGetHelp=o.bool();break}case 3:{y.reportABugUrl=o.string();break}case 4:{y.hideReportABug=o.bool();break}case 5:{y.aboutSectionMd=o.string();break}case 6:{y.clearAboutMd=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.PageConfig.MenuItems)return o;let d=new $root.PageConfig.MenuItems;return o.getHelpUrl!=null&&(d.getHelpUrl=String(o.getHelpUrl)),o.hideGetHelp!=null&&(d.hideGetHelp=!!o.hideGetHelp),o.reportABugUrl!=null&&(d.reportABugUrl=String(o.reportABugUrl)),o.hideReportABug!=null&&(d.hideReportABug=!!o.hideReportABug),o.aboutSectionMd!=null&&(d.aboutSectionMd=String(o.aboutSectionMd)),o.clearAboutMd!=null&&(d.clearAboutMd=!!o.clearAboutMd),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.getHelpUrl="",p.hideGetHelp=!1,p.reportABugUrl="",p.hideReportABug=!1,p.aboutSectionMd="",p.clearAboutMd=!1),o.getHelpUrl!=null&&o.hasOwnProperty("getHelpUrl")&&(p.getHelpUrl=o.getHelpUrl),o.hideGetHelp!=null&&o.hasOwnProperty("hideGetHelp")&&(p.hideGetHelp=o.hideGetHelp),o.reportABugUrl!=null&&o.hasOwnProperty("reportABugUrl")&&(p.reportABugUrl=o.reportABugUrl),o.hideReportABug!=null&&o.hasOwnProperty("hideReportABug")&&(p.hideReportABug=o.hideReportABug),o.aboutSectionMd!=null&&o.hasOwnProperty("aboutSectionMd")&&(p.aboutSectionMd=o.aboutSectionMd),o.clearAboutMd!=null&&o.hasOwnProperty("clearAboutMd")&&(p.clearAboutMd=o.clearAboutMd),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/PageConfig.MenuItems"},e})(),n.Layout=(function(){const e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t[e[2]="LAYOUT_UNSET"]=2,t})(),n.SidebarState=(function(){const e={},t=Object.create(e);return t[e[0]="AUTO"]=0,t[e[1]="EXPANDED"]=1,t[e[2]="COLLAPSED"]=2,t[e[3]="SIDEBAR_UNSET"]=3,t})(),n.SidebarWidthConfig=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.pixelWidth=null;let t;return Object.defineProperty(e.prototype,"widthSpec",{get:$util.oneOfGetter(t=["pixelWidth"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.pixelWidth!=null&&Object.hasOwnProperty.call(d,"pixelWidth")&&p.uint32(8).uint32(d.pixelWidth),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.PageConfig.SidebarWidthConfig;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.pixelWidth=d.uint32();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.PageConfig.SidebarWidthConfig)return d;let p=new $root.PageConfig.SidebarWidthConfig;return d.pixelWidth!=null&&(p.pixelWidth=d.pixelWidth>>>0),p},e.toObject=function(d,p){p||(p={});let h={};return d.pixelWidth!=null&&d.hasOwnProperty("pixelWidth")&&(h.pixelWidth=d.pixelWidth,p.oneofs&&(h.widthSpec="pixelWidth")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/PageConfig.SidebarWidthConfig"},e})(),n})();$root.PageInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.queryString="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageInfo)return e;let t=new $root.PageInfo;return e.queryString!=null&&(t.queryString=String(e.queryString)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.queryString=""),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageInfo"},n})();const PageProfile=$root.PageProfile=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.serverMode="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(10).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(42).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(58).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(66).string(e.os),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(74).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(88).bool(e.isFragmentRun),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(98).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageProfile;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 2:{p.execTime=e.int64();break}case 3:{p.prepTime=e.int64();break}case 5:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 6:{p.uncaughtException=e.string();break}case 7:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 8:{p.os=e.string();break}case 9:{p.timezone=e.string();break}case 10:{p.headless=e.bool();break}case 11:{p.isFragmentRun=e.bool();break}case 12:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageProfile)return e;let t=new $root.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".PageProfile.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".PageProfile.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}return e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.execTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.longs===String?"0":0;o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.serverMode=""}if(e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageProfile"},n})();$root.Argument=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.k="",n.prototype.t="",n.prototype.m="",n.prototype.p=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.k!=null&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),e.t!=null&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),e.m!=null&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),e.p!=null&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Argument;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.k=e.string();break}case 2:{p.t=e.string();break}case 3:{p.m=e.string();break}case 5:{p.p=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Argument)return e;let t=new $root.Argument;return e.k!=null&&(t.k=String(e.k)),e.t!=null&&(t.t=String(e.t)),e.m!=null&&(t.m=String(e.m)),e.p!=null&&(t.p=e.p|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.k="",o.t="",o.m="",o.p=0),e.k!=null&&e.hasOwnProperty("k")&&(o.k=e.k),e.t!=null&&e.hasOwnProperty("t")&&(o.t=e.t),e.m!=null&&e.hasOwnProperty("m")&&(o.m=e.m),e.p!=null&&e.hasOwnProperty("p")&&(o.p=e.p),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Argument"},n})();$root.Command=(()=>{function n(i){if(this.args=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.args=$util.emptyArray,n.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let o=0;o<e.args.length;++o)$root.Argument.encode(e.args[o],t.uint32(18).fork()).ldelim();return e.time!=null&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Command;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 2:{p.args&&p.args.length||(p.args=[]),p.args.push($root.Argument.decode(e,e.uint32()));break}case 4:{p.time=e.int64();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Command)return e;let t=new $root.Command;if(e.name!=null&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let o=0;o<e.args.length;++o){if(typeof e.args[o]!="object")throw TypeError(".Command.args: object expected");t.args[o]=$root.Argument.fromObject(e.args[o])}}return e.time!=null&&($util.Long?(t.time=$util.Long.fromValue(e.time)).unsigned=!1:typeof e.time=="string"?t.time=parseInt(e.time,10):typeof e.time=="number"?t.time=e.time:typeof e.time=="object"&&(t.time=new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.args=[]),t.defaults)if(o.name="",$util.Long){let d=new $util.Long(0,0,!1);o.time=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.time=t.longs===String?"0":0;if(e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.args&&e.args.length){o.args=[];for(let d=0;d<e.args.length;++d)o.args[d]=$root.Argument.toObject(e.args[d],t)}return e.time!=null&&e.hasOwnProperty("time")&&(typeof e.time=="number"?o.time=t.longs===String?String(e.time):e.time:o.time=t.longs===String?$util.Long.prototype.toString.call(e.time):t.longs===Number?new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Command"},n})();$root.PageNotFound=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageName="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageNotFound;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageName=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageNotFound)return e;let t=new $root.PageNotFound;return e.pageName!=null&&(t.pageName=String(e.pageName)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageName=""),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageNotFound"},n})();$root.ParentMessage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.message="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ParentMessage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.message=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ParentMessage)return e;let t=new $root.ParentMessage;return e.message!=null&&(t.message=String(e.message)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.message=""),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ParentMessage"},n})();$root.SessionEvent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.scriptChangedOnDisk=null,n.prototype.scriptWasManuallyStopped=null,n.prototype.scriptCompilationException=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(t,"scriptChangedOnDisk")&&o.uint32(8).bool(t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(t,"scriptWasManuallyStopped")&&o.uint32(16).bool(t.scriptWasManuallyStopped),t.scriptCompilationException!=null&&Object.hasOwnProperty.call(t,"scriptCompilationException")&&$root.Exception.encode(t.scriptCompilationException,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SessionEvent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.scriptChangedOnDisk=t.bool();break}case 2:{h.scriptWasManuallyStopped=t.bool();break}case 3:{h.scriptCompilationException=$root.Exception.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SessionEvent)return t;let o=new $root.SessionEvent;if(t.scriptChangedOnDisk!=null&&(o.scriptChangedOnDisk=!!t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&(o.scriptWasManuallyStopped=!!t.scriptWasManuallyStopped),t.scriptCompilationException!=null){if(typeof t.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");o.scriptCompilationException=$root.Exception.fromObject(t.scriptCompilationException)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.scriptChangedOnDisk!=null&&t.hasOwnProperty("scriptChangedOnDisk")&&(d.scriptChangedOnDisk=t.scriptChangedOnDisk,o.oneofs&&(d.type="scriptChangedOnDisk")),t.scriptWasManuallyStopped!=null&&t.hasOwnProperty("scriptWasManuallyStopped")&&(d.scriptWasManuallyStopped=t.scriptWasManuallyStopped,o.oneofs&&(d.type="scriptWasManuallyStopped")),t.scriptCompilationException!=null&&t.hasOwnProperty("scriptCompilationException")&&(d.scriptCompilationException=$root.Exception.toObject(t.scriptCompilationException,o),o.oneofs&&(d.type="scriptCompilationException")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SessionEvent"},n})();const MetricsEvent=$root.MetricsEvent=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.event="",n.prototype.anonymousId="",n.prototype.machineIdV3="",n.prototype.machineIdV4="",n.prototype.reportHash="",n.prototype.dev=!1,n.prototype.source="",n.prototype.streamlitVersion="",n.prototype.isHello=!1,n.prototype.appId="",n.prototype.sessionId="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.prototype.isWebdriver=!1,n.prototype.hostedAt="",n.prototype.owner="",n.prototype.repo="",n.prototype.branch="",n.prototype.mainModule="",n.prototype.creatorId="",n.prototype.contextPageUrl="",n.prototype.contextPageTitle="",n.prototype.contextPagePath="",n.prototype.contextPageReferrer="",n.prototype.contextPageSearch="",n.prototype.contextLocale="",n.prototype.contextUserAgent="",n.prototype.label="",n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.numPages=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.pageScriptHash="",n.prototype.activeTheme="",n.prototype.totalLoadTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.browserInfo=null,n.prototype.serverMode="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.event!=null&&Object.hasOwnProperty.call(e,"event")&&t.uint32(10).string(e.event),e.anonymousId!=null&&Object.hasOwnProperty.call(e,"anonymousId")&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&Object.hasOwnProperty.call(e,"machineIdV3")&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&Object.hasOwnProperty.call(e,"reportHash")&&t.uint32(34).string(e.reportHash),e.dev!=null&&Object.hasOwnProperty.call(e,"dev")&&t.uint32(40).bool(e.dev),e.source!=null&&Object.hasOwnProperty.call(e,"source")&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&Object.hasOwnProperty.call(e,"hostedAt")&&t.uint32(74).string(e.hostedAt),e.owner!=null&&Object.hasOwnProperty.call(e,"owner")&&t.uint32(82).string(e.owner),e.repo!=null&&Object.hasOwnProperty.call(e,"repo")&&t.uint32(90).string(e.repo),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(98).string(e.branch),e.mainModule!=null&&Object.hasOwnProperty.call(e,"mainModule")&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&Object.hasOwnProperty.call(e,"creatorId")&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&Object.hasOwnProperty.call(e,"contextPageUrl")&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&Object.hasOwnProperty.call(e,"contextPageTitle")&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&Object.hasOwnProperty.call(e,"contextPagePath")&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&Object.hasOwnProperty.call(e,"contextPageReferrer")&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&Object.hasOwnProperty.call(e,"contextPageSearch")&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&Object.hasOwnProperty.call(e,"contextLocale")&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&Object.hasOwnProperty.call(e,"contextUserAgent")&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(186).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(210).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(226).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(234).string(e.os),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(242).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&Object.hasOwnProperty.call(e,"appId")&&t.uint32(266).string(e.appId),e.numPages!=null&&Object.hasOwnProperty.call(e,"numPages")&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&Object.hasOwnProperty.call(e,"activeTheme")&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&Object.hasOwnProperty.call(e,"totalLoadTime")&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&Object.hasOwnProperty.call(e,"browserInfo")&&$root.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork()).ldelim(),e.machineIdV4!=null&&Object.hasOwnProperty.call(e,"machineIdV4")&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&Object.hasOwnProperty.call(e,"isWebdriver")&&t.uint32(352).bool(e.isWebdriver),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(362).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MetricsEvent;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.event=e.string();break}case 2:{p.anonymousId=e.string();break}case 3:{p.machineIdV3=e.string();break}case 41:{p.machineIdV4=e.string();break}case 4:{p.reportHash=e.string();break}case 5:{p.dev=e.bool();break}case 6:{p.source=e.string();break}case 7:{p.streamlitVersion=e.string();break}case 8:{p.isHello=e.bool();break}case 33:{p.appId=e.string();break}case 35:{p.sessionId=e.string();break}case 36:{p.pythonVersion=e.string();break}case 42:{p.serverOs=e.string();break}case 43:{p.hasDisplay=e.bool();break}case 44:{p.isWebdriver=e.bool();break}case 9:{p.hostedAt=e.string();break}case 10:{p.owner=e.string();break}case 11:{p.repo=e.string();break}case 12:{p.branch=e.string();break}case 13:{p.mainModule=e.string();break}case 14:{p.creatorId=e.string();break}case 15:{p.contextPageUrl=e.string();break}case 16:{p.contextPageTitle=e.string();break}case 17:{p.contextPagePath=e.string();break}case 18:{p.contextPageReferrer=e.string();break}case 19:{p.contextPageSearch=e.string();break}case 20:{p.contextLocale=e.string();break}case 21:{p.contextUserAgent=e.string();break}case 22:{p.label=e.string();break}case 23:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 24:{p.execTime=e.int64();break}case 25:{p.prepTime=e.int64();break}case 26:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 27:{p.uncaughtException=e.string();break}case 28:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 29:{p.os=e.string();break}case 30:{p.timezone=e.string();break}case 31:{p.headless=e.bool();break}case 32:{p.isFragmentRun=e.bool();break}case 34:{p.numPages=e.int64();break}case 37:{p.pageScriptHash=e.string();break}case 38:{p.activeTheme=e.string();break}case 39:{p.totalLoadTime=e.int64();break}case 40:{p.browserInfo=$root.BrowserInfo.decode(e,e.uint32());break}case 45:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MetricsEvent)return e;let t=new $root.MetricsEvent;if(e.event!=null&&(t.event=String(e.event)),e.anonymousId!=null&&(t.anonymousId=String(e.anonymousId)),e.machineIdV3!=null&&(t.machineIdV3=String(e.machineIdV3)),e.machineIdV4!=null&&(t.machineIdV4=String(e.machineIdV4)),e.reportHash!=null&&(t.reportHash=String(e.reportHash)),e.dev!=null&&(t.dev=!!e.dev),e.source!=null&&(t.source=String(e.source)),e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.isHello!=null&&(t.isHello=!!e.isHello),e.appId!=null&&(t.appId=String(e.appId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),e.isWebdriver!=null&&(t.isWebdriver=!!e.isWebdriver),e.hostedAt!=null&&(t.hostedAt=String(e.hostedAt)),e.owner!=null&&(t.owner=String(e.owner)),e.repo!=null&&(t.repo=String(e.repo)),e.branch!=null&&(t.branch=String(e.branch)),e.mainModule!=null&&(t.mainModule=String(e.mainModule)),e.creatorId!=null&&(t.creatorId=String(e.creatorId)),e.contextPageUrl!=null&&(t.contextPageUrl=String(e.contextPageUrl)),e.contextPageTitle!=null&&(t.contextPageTitle=String(e.contextPageTitle)),e.contextPagePath!=null&&(t.contextPagePath=String(e.contextPagePath)),e.contextPageReferrer!=null&&(t.contextPageReferrer=String(e.contextPageReferrer)),e.contextPageSearch!=null&&(t.contextPageSearch=String(e.contextPageSearch)),e.contextLocale!=null&&(t.contextLocale=String(e.contextLocale)),e.contextUserAgent!=null&&(t.contextUserAgent=String(e.contextUserAgent)),e.label!=null&&(t.label=String(e.label)),e.commands){if(!Array.isArray(e.commands))throw TypeError(".MetricsEvent.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".MetricsEvent.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".MetricsEvent.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".MetricsEvent.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}if(e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.numPages!=null&&($util.Long?(t.numPages=$util.Long.fromValue(e.numPages)).unsigned=!1:typeof e.numPages=="string"?t.numPages=parseInt(e.numPages,10):typeof e.numPages=="number"?t.numPages=e.numPages:typeof e.numPages=="object"&&(t.numPages=new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.activeTheme!=null&&(t.activeTheme=String(e.activeTheme)),e.totalLoadTime!=null&&($util.Long?(t.totalLoadTime=$util.Long.fromValue(e.totalLoadTime)).unsigned=!1:typeof e.totalLoadTime=="string"?t.totalLoadTime=parseInt(e.totalLoadTime,10):typeof e.totalLoadTime=="number"?t.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime=="object"&&(t.totalLoadTime=new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(typeof e.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");t.browserInfo=$root.BrowserInfo.fromObject(e.browserInfo)}return e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.defaults){if(o.event="",o.anonymousId="",o.machineIdV3="",o.reportHash="",o.dev=!1,o.source="",o.streamlitVersion="",o.isHello=!1,o.hostedAt="",o.owner="",o.repo="",o.branch="",o.mainModule="",o.creatorId="",o.contextPageUrl="",o.contextPageTitle="",o.contextPagePath="",o.contextPageReferrer="",o.contextPageSearch="",o.contextLocale="",o.contextUserAgent="",o.label="",$util.Long){let d=new $util.Long(0,0,!1);o.execTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.longs===String?"0":0;if(o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.appId="",$util.Long){let d=new $util.Long(0,0,!1);o.numPages=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.numPages=t.longs===String?"0":0;if(o.sessionId="",o.pythonVersion="",o.pageScriptHash="",o.activeTheme="",$util.Long){let d=new $util.Long(0,0,!1);o.totalLoadTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.totalLoadTime=t.longs===String?"0":0;o.browserInfo=null,o.machineIdV4="",o.serverOs="",o.hasDisplay=!1,o.isWebdriver=!1,o.serverMode=""}if(e.event!=null&&e.hasOwnProperty("event")&&(o.event=e.event),e.anonymousId!=null&&e.hasOwnProperty("anonymousId")&&(o.anonymousId=e.anonymousId),e.machineIdV3!=null&&e.hasOwnProperty("machineIdV3")&&(o.machineIdV3=e.machineIdV3),e.reportHash!=null&&e.hasOwnProperty("reportHash")&&(o.reportHash=e.reportHash),e.dev!=null&&e.hasOwnProperty("dev")&&(o.dev=e.dev),e.source!=null&&e.hasOwnProperty("source")&&(o.source=e.source),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),e.hostedAt!=null&&e.hasOwnProperty("hostedAt")&&(o.hostedAt=e.hostedAt),e.owner!=null&&e.hasOwnProperty("owner")&&(o.owner=e.owner),e.repo!=null&&e.hasOwnProperty("repo")&&(o.repo=e.repo),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.mainModule!=null&&e.hasOwnProperty("mainModule")&&(o.mainModule=e.mainModule),e.creatorId!=null&&e.hasOwnProperty("creatorId")&&(o.creatorId=e.creatorId),e.contextPageUrl!=null&&e.hasOwnProperty("contextPageUrl")&&(o.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&e.hasOwnProperty("contextPageTitle")&&(o.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&e.hasOwnProperty("contextPagePath")&&(o.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&e.hasOwnProperty("contextPageReferrer")&&(o.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&e.hasOwnProperty("contextPageSearch")&&(o.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&e.hasOwnProperty("contextLocale")&&(o.contextLocale=e.contextLocale),e.contextUserAgent!=null&&e.hasOwnProperty("contextUserAgent")&&(o.contextUserAgent=e.contextUserAgent),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.appId!=null&&e.hasOwnProperty("appId")&&(o.appId=e.appId),e.numPages!=null&&e.hasOwnProperty("numPages")&&(typeof e.numPages=="number"?o.numPages=t.longs===String?String(e.numPages):e.numPages:o.numPages=t.longs===String?$util.Long.prototype.toString.call(e.numPages):t.longs===Number?new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&e.hasOwnProperty("activeTheme")&&(o.activeTheme=e.activeTheme),e.totalLoadTime!=null&&e.hasOwnProperty("totalLoadTime")&&(typeof e.totalLoadTime=="number"?o.totalLoadTime=t.longs===String?String(e.totalLoadTime):e.totalLoadTime:o.totalLoadTime=t.longs===String?$util.Long.prototype.toString.call(e.totalLoadTime):t.longs===Number?new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&e.hasOwnProperty("browserInfo")&&(o.browserInfo=$root.BrowserInfo.toObject(e.browserInfo,t)),e.machineIdV4!=null&&e.hasOwnProperty("machineIdV4")&&(o.machineIdV4=e.machineIdV4),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&e.hasOwnProperty("isWebdriver")&&(o.isWebdriver=e.isWebdriver),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MetricsEvent"},n})();$root.BrowserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.browserName="",n.prototype.browserVersion="",n.prototype.deviceType="",n.prototype.os="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.browserName!=null&&Object.hasOwnProperty.call(e,"browserName")&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&Object.hasOwnProperty.call(e,"browserVersion")&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&Object.hasOwnProperty.call(e,"deviceType")&&t.uint32(26).string(e.deviceType),e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(34).string(e.os),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.BrowserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.browserName=e.string();break}case 2:{p.browserVersion=e.string();break}case 3:{p.deviceType=e.string();break}case 4:{p.os=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.BrowserInfo)return e;let t=new $root.BrowserInfo;return e.browserName!=null&&(t.browserName=String(e.browserName)),e.browserVersion!=null&&(t.browserVersion=String(e.browserVersion)),e.deviceType!=null&&(t.deviceType=String(e.deviceType)),e.os!=null&&(t.os=String(e.os)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.browserName="",o.browserVersion="",o.deviceType="",o.os=""),e.browserName!=null&&e.hasOwnProperty("browserName")&&(o.browserName=e.browserName),e.browserVersion!=null&&e.hasOwnProperty("browserVersion")&&(o.browserVersion=e.browserVersion),e.deviceType!=null&&e.hasOwnProperty("deviceType")&&(o.deviceType=e.deviceType),e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BrowserInfo"},n})();$root.openmetrics=(()=>{const n={};return n.MetricSet=(function(){function i(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.metricFamilies=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.metricFamilies!=null&&t.metricFamilies.length)for(let d=0;d<t.metricFamilies.length;++d)$root.openmetrics.MetricFamily.encode(t.metricFamilies[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricSet;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.metricFamilies&&h.metricFamilies.length||(h.metricFamilies=[]),h.metricFamilies.push($root.openmetrics.MetricFamily.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricSet)return t;let o=new $root.openmetrics.MetricSet;if(t.metricFamilies){if(!Array.isArray(t.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");o.metricFamilies=[];for(let d=0;d<t.metricFamilies.length;++d){if(typeof t.metricFamilies[d]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");o.metricFamilies[d]=$root.openmetrics.MetricFamily.fromObject(t.metricFamilies[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metricFamilies=[]),t.metricFamilies&&t.metricFamilies.length){d.metricFamilies=[];for(let p=0;p<t.metricFamilies.length;++p)d.metricFamilies[p]=$root.openmetrics.MetricFamily.toObject(t.metricFamilies[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricSet"},i})(),n.MetricFamily=(function(){function i(e){if(this.metrics=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.type=0,i.prototype.unit="",i.prototype.help="",i.prototype.metrics=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(16).int32(t.type),t.unit!=null&&Object.hasOwnProperty.call(t,"unit")&&o.uint32(26).string(t.unit),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.metrics!=null&&t.metrics.length)for(let d=0;d<t.metrics.length;++d)$root.Metric.encode(t.metrics[d],o.uint32(42).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricFamily;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.int32();break}case 3:{h.unit=t.string();break}case 4:{h.help=t.string();break}case 5:{h.metrics&&h.metrics.length||(h.metrics=[]),h.metrics.push($root.Metric.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricFamily)return t;let o=new $root.openmetrics.MetricFamily;switch(t.name!=null&&(o.name=String(t.name)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"UNKNOWN":case 0:o.type=0;break;case"GAUGE":case 1:o.type=1;break;case"COUNTER":case 2:o.type=2;break;case"STATE_SET":case 3:o.type=3;break;case"INFO":case 4:o.type=4;break;case"HISTOGRAM":case 5:o.type=5;break;case"GAUGE_HISTOGRAM":case 6:o.type=6;break;case"SUMMARY":case 7:o.type=7;break}if(t.unit!=null&&(o.unit=String(t.unit)),t.help!=null&&(o.help=String(t.help)),t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");o.metrics=[];for(let d=0;d<t.metrics.length;++d){if(typeof t.metrics[d]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");o.metrics[d]=$root.Metric.fromObject(t.metrics[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metrics=[]),o.defaults&&(d.name="",d.type=o.enums===String?"UNKNOWN":0,d.unit="",d.help=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.openmetrics.MetricType[t.type]===void 0?t.type:$root.openmetrics.MetricType[t.type]:t.type),t.unit!=null&&t.hasOwnProperty("unit")&&(d.unit=t.unit),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.metrics&&t.metrics.length){d.metrics=[];for(let p=0;p<t.metrics.length;++p)d.metrics[p]=$root.Metric.toObject(t.metrics[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricFamily"},i})(),n.MetricType=(function(){const i={},e=Object.create(i);return e[i[0]="UNKNOWN"]=0,e[i[1]="GAUGE"]=1,e[i[2]="COUNTER"]=2,e[i[3]="STATE_SET"]=3,e[i[4]="INFO"]=4,e[i[5]="HISTOGRAM"]=5,e[i[6]="GAUGE_HISTOGRAM"]=6,e[i[7]="SUMMARY"]=7,e})(),n.Metric=(function(){function i(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.labels=$util.emptyArray,i.prototype.metricPoints=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.labels!=null&&t.labels.length)for(let d=0;d<t.labels.length;++d)$root.openmetrics.Label.encode(t.labels[d],o.uint32(10).fork()).ldelim();if(t.metricPoints!=null&&t.metricPoints.length)for(let d=0;d<t.metricPoints.length;++d)$root.openmetrics.MetricPoint.encode(t.metricPoints[d],o.uint32(18).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Metric;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.labels&&h.labels.length||(h.labels=[]),h.labels.push($root.openmetrics.Label.decode(t,t.uint32()));break}case 2:{h.metricPoints&&h.metricPoints.length||(h.metricPoints=[]),h.metricPoints.push($root.openmetrics.MetricPoint.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Metric)return t;let o=new $root.openmetrics.Metric;if(t.labels){if(!Array.isArray(t.labels))throw TypeError(".openmetrics.Metric.labels: array expected");o.labels=[];for(let d=0;d<t.labels.length;++d){if(typeof t.labels[d]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");o.labels[d]=$root.openmetrics.Label.fromObject(t.labels[d])}}if(t.metricPoints){if(!Array.isArray(t.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");o.metricPoints=[];for(let d=0;d<t.metricPoints.length;++d){if(typeof t.metricPoints[d]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");o.metricPoints[d]=$root.openmetrics.MetricPoint.fromObject(t.metricPoints[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.labels=[],d.metricPoints=[]),t.labels&&t.labels.length){d.labels=[];for(let p=0;p<t.labels.length;++p)d.labels[p]=$root.openmetrics.Label.toObject(t.labels[p],o)}if(t.metricPoints&&t.metricPoints.length){d.metricPoints=[];for(let p=0;p<t.metricPoints.length;++p)d.metricPoints[p]=$root.openmetrics.MetricPoint.toObject(t.metricPoints[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Metric"},i})(),n.Label=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.value="",i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(18).string(t.value),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Label;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.value=t.string();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Label)return t;let o=new $root.openmetrics.Label;return t.name!=null&&(o.name=String(t.name)),t.value!=null&&(o.value=String(t.value)),o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.value=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Label"},i})(),n.MetricPoint=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.unknownValue=null,i.prototype.gaugeValue=null,i.prototype.counterValue=null,i.prototype.histogramValue=null,i.prototype.stateSetValue=null,i.prototype.infoValue=null,i.prototype.summaryValue=null,i.prototype.timestamp=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.unknownValue!=null&&Object.hasOwnProperty.call(o,"unknownValue")&&$root.openmetrics.UnknownValue.encode(o.unknownValue,d.uint32(10).fork()).ldelim(),o.gaugeValue!=null&&Object.hasOwnProperty.call(o,"gaugeValue")&&$root.openmetrics.GaugeValue.encode(o.gaugeValue,d.uint32(18).fork()).ldelim(),o.counterValue!=null&&Object.hasOwnProperty.call(o,"counterValue")&&$root.openmetrics.CounterValue.encode(o.counterValue,d.uint32(26).fork()).ldelim(),o.histogramValue!=null&&Object.hasOwnProperty.call(o,"histogramValue")&&$root.openmetrics.HistogramValue.encode(o.histogramValue,d.uint32(34).fork()).ldelim(),o.stateSetValue!=null&&Object.hasOwnProperty.call(o,"stateSetValue")&&$root.openmetrics.StateSetValue.encode(o.stateSetValue,d.uint32(42).fork()).ldelim(),o.infoValue!=null&&Object.hasOwnProperty.call(o,"infoValue")&&$root.openmetrics.InfoValue.encode(o.infoValue,d.uint32(50).fork()).ldelim(),o.summaryValue!=null&&Object.hasOwnProperty.call(o,"summaryValue")&&$root.openmetrics.SummaryValue.encode(o.summaryValue,d.uint32(58).fork()).ldelim(),o.timestamp!=null&&Object.hasOwnProperty.call(o,"timestamp")&&$root.google.protobuf.Timestamp.encode(o.timestamp,d.uint32(66).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.MetricPoint;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.unknownValue=$root.openmetrics.UnknownValue.decode(o,o.uint32());break}case 2:{y.gaugeValue=$root.openmetrics.GaugeValue.decode(o,o.uint32());break}case 3:{y.counterValue=$root.openmetrics.CounterValue.decode(o,o.uint32());break}case 4:{y.histogramValue=$root.openmetrics.HistogramValue.decode(o,o.uint32());break}case 5:{y.stateSetValue=$root.openmetrics.StateSetValue.decode(o,o.uint32());break}case 6:{y.infoValue=$root.openmetrics.InfoValue.decode(o,o.uint32());break}case 7:{y.summaryValue=$root.openmetrics.SummaryValue.decode(o,o.uint32());break}case 8:{y.timestamp=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.MetricPoint)return o;let d=new $root.openmetrics.MetricPoint;if(o.unknownValue!=null){if(typeof o.unknownValue!="object")throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");d.unknownValue=$root.openmetrics.UnknownValue.fromObject(o.unknownValue)}if(o.gaugeValue!=null){if(typeof o.gaugeValue!="object")throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");d.gaugeValue=$root.openmetrics.GaugeValue.fromObject(o.gaugeValue)}if(o.counterValue!=null){if(typeof o.counterValue!="object")throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");d.counterValue=$root.openmetrics.CounterValue.fromObject(o.counterValue)}if(o.histogramValue!=null){if(typeof o.histogramValue!="object")throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");d.histogramValue=$root.openmetrics.HistogramValue.fromObject(o.histogramValue)}if(o.stateSetValue!=null){if(typeof o.stateSetValue!="object")throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");d.stateSetValue=$root.openmetrics.StateSetValue.fromObject(o.stateSetValue)}if(o.infoValue!=null){if(typeof o.infoValue!="object")throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");d.infoValue=$root.openmetrics.InfoValue.fromObject(o.infoValue)}if(o.summaryValue!=null){if(typeof o.summaryValue!="object")throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");d.summaryValue=$root.openmetrics.SummaryValue.fromObject(o.summaryValue)}if(o.timestamp!=null){if(typeof o.timestamp!="object")throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");d.timestamp=$root.google.protobuf.Timestamp.fromObject(o.timestamp)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.timestamp=null),o.unknownValue!=null&&o.hasOwnProperty("unknownValue")&&(p.unknownValue=$root.openmetrics.UnknownValue.toObject(o.unknownValue,d),d.oneofs&&(p.value="unknownValue")),o.gaugeValue!=null&&o.hasOwnProperty("gaugeValue")&&(p.gaugeValue=$root.openmetrics.GaugeValue.toObject(o.gaugeValue,d),d.oneofs&&(p.value="gaugeValue")),o.counterValue!=null&&o.hasOwnProperty("counterValue")&&(p.counterValue=$root.openmetrics.CounterValue.toObject(o.counterValue,d),d.oneofs&&(p.value="counterValue")),o.histogramValue!=null&&o.hasOwnProperty("histogramValue")&&(p.histogramValue=$root.openmetrics.HistogramValue.toObject(o.histogramValue,d),d.oneofs&&(p.value="histogramValue")),o.stateSetValue!=null&&o.hasOwnProperty("stateSetValue")&&(p.stateSetValue=$root.openmetrics.StateSetValue.toObject(o.stateSetValue,d),d.oneofs&&(p.value="stateSetValue")),o.infoValue!=null&&o.hasOwnProperty("infoValue")&&(p.infoValue=$root.openmetrics.InfoValue.toObject(o.infoValue,d),d.oneofs&&(p.value="infoValue")),o.summaryValue!=null&&o.hasOwnProperty("summaryValue")&&(p.summaryValue=$root.openmetrics.SummaryValue.toObject(o.summaryValue,d),d.oneofs&&(p.value="summaryValue")),o.timestamp!=null&&o.hasOwnProperty("timestamp")&&(p.timestamp=$root.google.protobuf.Timestamp.toObject(o.timestamp,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.MetricPoint"},i})(),n.UnknownValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.UnknownValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.UnknownValue)return o;let d=new $root.openmetrics.UnknownValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.UnknownValue"},i})(),n.GaugeValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.GaugeValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.GaugeValue)return o;let d=new $root.openmetrics.GaugeValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.GaugeValue"},i})(),n.CounterValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.created=null,i.prototype.exemplar=null;let e;return Object.defineProperty(i.prototype,"total",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).uint64(o.intValue),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(26).fork()).ldelim(),o.exemplar!=null&&Object.hasOwnProperty.call(o,"exemplar")&&$root.openmetrics.Exemplar.encode(o.exemplar,d.uint32(34).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.CounterValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.uint64();break}case 3:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 4:{y.exemplar=$root.openmetrics.Exemplar.decode(o,o.uint32());break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.CounterValue)return o;let d=new $root.openmetrics.CounterValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!0:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.CounterValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.exemplar!=null){if(typeof o.exemplar!="object")throw TypeError(".openmetrics.CounterValue.exemplar: object expected");d.exemplar=$root.openmetrics.Exemplar.fromObject(o.exemplar)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.created=null,p.exemplar=null),o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.total="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0):o.intValue,d.oneofs&&(p.total="intValue")),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.exemplar!=null&&o.hasOwnProperty("exemplar")&&(p.exemplar=$root.openmetrics.Exemplar.toObject(o.exemplar,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.CounterValue"},i})(),n.HistogramValue=(function(){function i(t){if(this.buckets=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.buckets=$util.emptyArray;let e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.buckets!=null&&o.buckets.length)for(let p=0;p<o.buckets.length;++p)$root.openmetrics.HistogramValue.Bucket.encode(o.buckets[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.HistogramValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.buckets&&y.buckets.length||(y.buckets=[]),y.buckets.push($root.openmetrics.HistogramValue.Bucket.decode(o,o.uint32()));break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.HistogramValue)return o;let d=new $root.openmetrics.HistogramValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.HistogramValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.buckets){if(!Array.isArray(o.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");d.buckets=[];for(let p=0;p<o.buckets.length;++p){if(typeof o.buckets[p]!="object")throw TypeError(".openmetrics.HistogramValue.buckets: object expected");d.buckets[p]=$root.openmetrics.HistogramValue.Bucket.fromObject(o.buckets[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.buckets=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.buckets&&o.buckets.length){p.buckets=[];for(let h=0;h<o.buckets.length;++h)p.buckets[h]=$root.openmetrics.HistogramValue.Bucket.toObject(o.buckets[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.HistogramValue"},i.Bucket=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return t.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,t.prototype.upperBound=0,t.prototype.exemplar=null,t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.count!=null&&Object.hasOwnProperty.call(d,"count")&&p.uint32(8).uint64(d.count),d.upperBound!=null&&Object.hasOwnProperty.call(d,"upperBound")&&p.uint32(17).double(d.upperBound),d.exemplar!=null&&Object.hasOwnProperty.call(d,"exemplar")&&$root.openmetrics.Exemplar.encode(d.exemplar,p.uint32(26).fork()).ldelim(),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.HistogramValue.Bucket;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.count=d.uint64();break}case 2:{$.upperBound=d.double();break}case 3:{$.exemplar=$root.openmetrics.Exemplar.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},t.fromObject=function(d){if(d instanceof $root.openmetrics.HistogramValue.Bucket)return d;let p=new $root.openmetrics.HistogramValue.Bucket;if(d.count!=null&&($util.Long?(p.count=$util.Long.fromValue(d.count)).unsigned=!0:typeof d.count=="string"?p.count=parseInt(d.count,10):typeof d.count=="number"?p.count=d.count:typeof d.count=="object"&&(p.count=new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0))),d.upperBound!=null&&(p.upperBound=Number(d.upperBound)),d.exemplar!=null){if(typeof d.exemplar!="object")throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");p.exemplar=$root.openmetrics.Exemplar.fromObject(d.exemplar)}return p},t.toObject=function(d,p){p||(p={});let h={};if(p.defaults){if($util.Long){let y=new $util.Long(0,0,!0);h.count=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.count=p.longs===String?"0":0;h.upperBound=0,h.exemplar=null}return d.count!=null&&d.hasOwnProperty("count")&&(typeof d.count=="number"?h.count=p.longs===String?String(d.count):d.count:h.count=p.longs===String?$util.Long.prototype.toString.call(d.count):p.longs===Number?new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0):d.count),d.upperBound!=null&&d.hasOwnProperty("upperBound")&&(h.upperBound=p.json&&!isFinite(d.upperBound)?String(d.upperBound):d.upperBound),d.exemplar!=null&&d.hasOwnProperty("exemplar")&&(h.exemplar=$root.openmetrics.Exemplar.toObject(d.exemplar,p)),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.HistogramValue.Bucket"},t})(),i})(),n.Exemplar=(function(){function i(e){if(this.label=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.value=0,i.prototype.timestamp=null,i.prototype.label=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(9).double(t.value),t.timestamp!=null&&Object.hasOwnProperty.call(t,"timestamp")&&$root.google.protobuf.Timestamp.encode(t.timestamp,o.uint32(18).fork()).ldelim(),t.label!=null&&t.label.length)for(let d=0;d<t.label.length;++d)$root.openmetrics.Label.encode(t.label[d],o.uint32(26).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Exemplar;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.value=t.double();break}case 2:{h.timestamp=$root.google.protobuf.Timestamp.decode(t,t.uint32());break}case 3:{h.label&&h.label.length||(h.label=[]),h.label.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Exemplar)return t;let o=new $root.openmetrics.Exemplar;if(t.value!=null&&(o.value=Number(t.value)),t.timestamp!=null){if(typeof t.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");o.timestamp=$root.google.protobuf.Timestamp.fromObject(t.timestamp)}if(t.label){if(!Array.isArray(t.label))throw TypeError(".openmetrics.Exemplar.label: array expected");o.label=[];for(let d=0;d<t.label.length;++d){if(typeof t.label[d]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");o.label[d]=$root.openmetrics.Label.fromObject(t.label[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.label=[]),o.defaults&&(d.value=0,d.timestamp=null),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(d.timestamp=$root.google.protobuf.Timestamp.toObject(t.timestamp,o)),t.label&&t.label.length){d.label=[];for(let p=0;p<t.label.length;++p)d.label[p]=$root.openmetrics.Label.toObject(t.label[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Exemplar"},i})(),n.StateSetValue=(function(){function i(e){if(this.states=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.states=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.states!=null&&t.states.length)for(let d=0;d<t.states.length;++d)$root.openmetrics.StateSetValue.State.encode(t.states[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.StateSetValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.states&&h.states.length||(h.states=[]),h.states.push($root.openmetrics.StateSetValue.State.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.StateSetValue)return t;let o=new $root.openmetrics.StateSetValue;if(t.states){if(!Array.isArray(t.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");o.states=[];for(let d=0;d<t.states.length;++d){if(typeof t.states[d]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");o.states[d]=$root.openmetrics.StateSetValue.State.fromObject(t.states[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.states=[]),t.states&&t.states.length){d.states=[];for(let p=0;p<t.states.length;++p)d.states[p]=$root.openmetrics.StateSetValue.State.toObject(t.states[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.StateSetValue"},i.State=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.enabled!=null&&Object.hasOwnProperty.call(o,"enabled")&&d.uint32(8).bool(o.enabled),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(18).string(o.name),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.StateSetValue.State;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.enabled=o.bool();break}case 2:{y.name=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.openmetrics.StateSetValue.State)return o;let d=new $root.openmetrics.StateSetValue.State;return o.enabled!=null&&(d.enabled=!!o.enabled),o.name!=null&&(d.name=String(o.name)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.enabled=!1,p.name=""),o.enabled!=null&&o.hasOwnProperty("enabled")&&(p.enabled=o.enabled),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.StateSetValue.State"},e})(),i})(),n.InfoValue=(function(){function i(e){if(this.info=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.info=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.info!=null&&t.info.length)for(let d=0;d<t.info.length;++d)$root.openmetrics.Label.encode(t.info[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.InfoValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.info&&h.info.length||(h.info=[]),h.info.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.InfoValue)return t;let o=new $root.openmetrics.InfoValue;if(t.info){if(!Array.isArray(t.info))throw TypeError(".openmetrics.InfoValue.info: array expected");o.info=[];for(let d=0;d<t.info.length;++d){if(typeof t.info[d]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");o.info[d]=$root.openmetrics.Label.fromObject(t.info[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.info=[]),t.info&&t.info.length){d.info=[];for(let p=0;p<t.info.length;++p)d.info[p]=$root.openmetrics.Label.toObject(t.info[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.InfoValue"},i})(),n.SummaryValue=(function(){function i(t){if(this.quantile=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.quantile=$util.emptyArray;let e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.quantile!=null&&o.quantile.length)for(let p=0;p<o.quantile.length;++p)$root.openmetrics.SummaryValue.Quantile.encode(o.quantile[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.SummaryValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.quantile&&y.quantile.length||(y.quantile=[]),y.quantile.push($root.openmetrics.SummaryValue.Quantile.decode(o,o.uint32()));break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.SummaryValue)return o;let d=new $root.openmetrics.SummaryValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.SummaryValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.quantile){if(!Array.isArray(o.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");d.quantile=[];for(let p=0;p<o.quantile.length;++p){if(typeof o.quantile[p]!="object")throw TypeError(".openmetrics.SummaryValue.quantile: object expected");d.quantile[p]=$root.openmetrics.SummaryValue.Quantile.fromObject(o.quantile[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.quantile=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.quantile&&o.quantile.length){p.quantile=[];for(let h=0;h<o.quantile.length;++h)p.quantile[h]=$root.openmetrics.SummaryValue.Quantile.toObject(o.quantile[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.SummaryValue"},i.Quantile=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return t.prototype.quantile=0,t.prototype.value=0,t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.quantile!=null&&Object.hasOwnProperty.call(d,"quantile")&&p.uint32(9).double(d.quantile),d.value!=null&&Object.hasOwnProperty.call(d,"value")&&p.uint32(17).double(d.value),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.SummaryValue.Quantile;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.quantile=d.double();break}case 2:{$.value=d.double();break}default:d.skipType(E&7);break}}return $},t.fromObject=function(d){if(d instanceof $root.openmetrics.SummaryValue.Quantile)return d;let p=new $root.openmetrics.SummaryValue.Quantile;return d.quantile!=null&&(p.quantile=Number(d.quantile)),d.value!=null&&(p.value=Number(d.value)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.quantile=0,h.value=0),d.quantile!=null&&d.hasOwnProperty("quantile")&&(h.quantile=p.json&&!isFinite(d.quantile)?String(d.quantile):d.quantile),d.value!=null&&d.hasOwnProperty("value")&&(h.value=p.json&&!isFinite(d.value)?String(d.value):d.value),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.SummaryValue.Quantile"},t})(),i})(),n})();$root.google=(()=>{const n={};return n.protobuf=(function(){const i={};return i.Timestamp=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.seconds!=null&&Object.hasOwnProperty.call(o,"seconds")&&d.uint32(8).int64(o.seconds),o.nanos!=null&&Object.hasOwnProperty.call(o,"nanos")&&d.uint32(16).int32(o.nanos),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.google.protobuf.Timestamp;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.seconds=o.int64();break}case 2:{y.nanos=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.google.protobuf.Timestamp)return o;let d=new $root.google.protobuf.Timestamp;return o.seconds!=null&&($util.Long?(d.seconds=$util.Long.fromValue(o.seconds)).unsigned=!1:typeof o.seconds=="string"?d.seconds=parseInt(o.seconds,10):typeof o.seconds=="number"?d.seconds=o.seconds:typeof o.seconds=="object"&&(d.seconds=new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber())),o.nanos!=null&&(d.nanos=o.nanos|0),d},e.toObject=function(o,d){d||(d={});let p={};if(d.defaults){if($util.Long){let h=new $util.Long(0,0,!1);p.seconds=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.seconds=d.longs===String?"0":0;p.nanos=0}return o.seconds!=null&&o.hasOwnProperty("seconds")&&(typeof o.seconds=="number"?p.seconds=d.longs===String?String(o.seconds):o.seconds:p.seconds=d.longs===String?$util.Long.prototype.toString.call(o.seconds):d.longs===Number?new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber():o.seconds),o.nanos!=null&&o.hasOwnProperty("nanos")&&(p.nanos=o.nanos),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/google.protobuf.Timestamp"},e})(),i})(),n})();$root.RootContainer=(()=>{const n={},i=Object.create(n);return i[n[0]="MAIN"]=0,i[n[1]="SIDEBAR"]=1,i[n[2]="EVENT"]=2,i[n[3]="BOTTOM"]=3,i})();function ensureError(n){return n instanceof Error?n:new Error(`${n}`)}const handlePreserveConsecutiveUppercase=(n,i)=>(n=n.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),e=>e.toLowerCase()),n.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(e,t,o)=>t+i+o.toLowerCase()));function decamelize$1(n,{separator:i="_",preserveConsecutiveUppercase:e=!1}={}){if(!(typeof n=="string"&&typeof i=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(n.length<2)return e?n:n.toLowerCase();const t=`$1${i}$2`,o=n.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),t);return e?handlePreserveConsecutiveUppercase(o,i):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),t).toLowerCase()}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$4=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$4.Symbol,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(n){var i=hasOwnProperty$f.call(n,symToStringTag$1),e=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var t=!0}catch{}var o=nativeObjectToString$1.call(n);return t&&(i?n[symToStringTag$1]=e:delete n[symToStringTag$1]),o}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,i){for(var e=-1,t=n==null?0:n.length,o=Array(t);++e<t;)o[e]=i(n[e],e,n);return o}var isArray$1=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(n){if(typeof n=="string")return n;if(isArray$1(n))return arrayMap(n,baseToString)+"";if(isSymbol(n))return symbolToString?symbolToString.call(n):"";var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}var reWhitespace=/\s/;function trimmedEndIndex(n){for(var i=n.length;i--&&reWhitespace.test(n.charAt(i)););return i}var reTrimStart=/^\s+/;function baseTrim(n){return n&&n.slice(0,trimmedEndIndex(n)+1).replace(reTrimStart,"")}function isObject$1(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(n){if(typeof n=="number")return n;if(isSymbol(n))return NAN;if(isObject$1(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=isObject$1(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var e=reIsBinary.test(n);return e||reIsOctal.test(n)?freeParseInt(n.slice(2),e?2:8):reIsBadHex.test(n)?NAN:+n}var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(n){if(!n)return n===0?n:0;if(n=toNumber(n),n===INFINITY||n===-INFINITY){var i=n<0?-1:1;return i*MAX_INTEGER}return n===n?n:0}function toInteger(n){var i=toFinite(n),e=i%1;return i===i?e?i-e:i:0}function identity(n){return n}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(n){if(!isObject$1(n))return!1;var i=baseGetTag(n);return i==funcTag$2||i==genTag$1||i==asyncTag||i==proxyTag}var coreJsData=root$4["__core-js_shared__"],maskSrcKey=(function(){var n=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(n){if(n!=null){try{return funcToString$2.call(n)}catch{}try{return n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$e=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(n){if(!isObject$1(n)||isMasked(n))return!1;var i=isFunction$3(n)?reIsNative:reIsHostCtor;return i.test(toSource(n))}function getValue$1(n,i){return n?.[i]}function getNative(n,i){var e=getValue$1(n,i);return baseIsNative(e)?e:void 0}var WeakMap$1=getNative(root$4,"WeakMap"),objectCreate=Object.create,baseCreate=(function(){function n(){}return function(i){if(!isObject$1(i))return{};if(objectCreate)return objectCreate(i);n.prototype=i;var e=new n;return n.prototype=void 0,e}})();function apply(n,i,e){switch(e.length){case 0:return n.call(i);case 1:return n.call(i,e[0]);case 2:return n.call(i,e[0],e[1]);case 3:return n.call(i,e[0],e[1],e[2])}return n.apply(i,e)}function copyArray(n,i){var e=-1,t=n.length;for(i||(i=Array(t));++e<t;)i[e]=n[e];return i}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var i=0,e=0;return function(){var t=nativeNow(),o=HOT_SPAN-(t-e);if(e=t,o>0){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty$1=(function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}})(),baseSetToString=defineProperty$1?function(n,i){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(i),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(n,i){for(var e=-1,t=n==null?0:n.length;++e<t&&i(n[e],e,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,i){var e=typeof n;return i=i??MAX_SAFE_INTEGER$1,!!i&&(e=="number"||e!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<i}function baseAssignValue(n,i,e){i=="__proto__"&&defineProperty$1?defineProperty$1(n,i,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[i]=e}function eq(n,i){return n===i||n!==n&&i!==i}var objectProto$e=Object.prototype,hasOwnProperty$d=objectProto$e.hasOwnProperty;function assignValue(n,i,e){var t=n[i];(!(hasOwnProperty$d.call(n,i)&&eq(t,e))||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}function copyObject(n,i,e,t){var o=!e;e||(e={});for(var d=-1,p=i.length;++d<p;){var h=i[d],y=void 0;y===void 0&&(y=n[h]),o?baseAssignValue(e,h,y):assignValue(e,h,y)}return e}var nativeMax$2=Math.max;function overRest(n,i,e){return i=nativeMax$2(i===void 0?n.length-1:i,0),function(){for(var t=arguments,o=-1,d=nativeMax$2(t.length-i,0),p=Array(d);++o<d;)p[o]=t[i+o];o=-1;for(var h=Array(i+1);++o<i;)h[o]=t[o];return h[i]=e(p),apply(n,this,h)}}function baseRest(n,i){return setToString(overRest(n,i,identity),n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike(n){return n!=null&&isLength(n.length)&&!isFunction$3(n)}function isIterateeCall(n,i,e){if(!isObject$1(e))return!1;var t=typeof i;return(t=="number"?isArrayLike(e)&&isIndex(i,e.length):t=="string"&&i in e)?eq(e[i],n):!1}function createAssigner(n){return baseRest(function(i,e){var t=-1,o=e.length,d=o>1?e[o-1]:void 0,p=o>2?e[2]:void 0;for(d=n.length>3&&typeof d=="function"?(o--,d):void 0,p&&isIterateeCall(e[0],e[1],p)&&(d=o<3?void 0:d,o=1),i=Object(i);++t<o;){var h=e[t];h&&n(i,h,t,d)}return i})}var objectProto$d=Object.prototype;function isPrototype(n){var i=n&&n.constructor,e=typeof i=="function"&&i.prototype||objectProto$d;return n===e}function baseTimes(n,i){for(var e=-1,t=Array(n);++e<n;)t[e]=i(e);return t}var argsTag$3="[object Arguments]";function baseIsArguments(n){return isObjectLike(n)&&baseGetTag(n)==argsTag$3}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments=baseIsArguments((function(){return arguments})())?baseIsArguments:function(n){return isObjectLike(n)&&hasOwnProperty$c.call(n,"callee")&&!propertyIsEnumerable$1.call(n,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$3=moduleExports$2?root$4.Buffer:void 0,nativeIsBuffer=Buffer$3?Buffer$3.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(n){return isObjectLike(n)&&isLength(n.length)&&!!typedArrayTags[baseGetTag(n)]}function baseUnary(n){return function(i){return n(i)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=(function(){try{var n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}})(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$b=Object.prototype,hasOwnProperty$b=objectProto$b.hasOwnProperty;function arrayLikeKeys(n,i){var e=isArray$1(n),t=!e&&isArguments(n),o=!e&&!t&&isBuffer(n),d=!e&&!t&&!o&&isTypedArray(n),p=e||t||o||d,h=p?baseTimes(n.length,String):[],y=h.length;for(var $ in n)(i||hasOwnProperty$b.call(n,$))&&!(p&&($=="length"||o&&($=="offset"||$=="parent")||d&&($=="buffer"||$=="byteLength"||$=="byteOffset")||isIndex($,y)))&&h.push($);return h}function overArg(n,i){return function(e){return n(i(e))}}var nativeKeys=overArg(Object.keys,Object),objectProto$a=Object.prototype,hasOwnProperty$a=objectProto$a.hasOwnProperty;function baseKeys(n){if(!isPrototype(n))return nativeKeys(n);var i=[];for(var e in Object(n))hasOwnProperty$a.call(n,e)&&e!="constructor"&&i.push(e);return i}function keys$1(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var i=[];if(n!=null)for(var e in Object(n))i.push(e);return i}var objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function baseKeysIn(n){if(!isObject$1(n))return nativeKeysIn(n);var i=isPrototype(n),e=[];for(var t in n)t=="constructor"&&(i||!hasOwnProperty$9.call(n,t))||e.push(t);return e}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(n,i){if(isArray$1(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||isSymbol(n)?!0:reIsPlainProp.test(n)||!reIsDeepProp.test(n)||i!=null&&n in Object(i)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashGet(n){var i=this.__data__;if(nativeCreate){var e=i[n];return e===HASH_UNDEFINED$2?void 0:e}return hasOwnProperty$8.call(i,n)?i[n]:void 0}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function hashHas(n){var i=this.__data__;return nativeCreate?i[n]!==void 0:hasOwnProperty$7.call(i,n)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(n,i){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=nativeCreate&&i===void 0?HASH_UNDEFINED$1:i,this}function Hash(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(n,i){for(var e=n.length;e--;)if(eq(n[e][0],i))return e;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(n){var i=this.__data__,e=assocIndexOf(i,n);if(e<0)return!1;var t=i.length-1;return e==t?i.pop():splice$1.call(i,e,1),--this.size,!0}function listCacheGet(n){var i=this.__data__,e=assocIndexOf(i,n);return e<0?void 0:i[e][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,i){var e=this.__data__,t=assocIndexOf(e,n);return t<0?(++this.size,e.push([n,i])):e[t][1]=i,this}function ListCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$2=getNative(root$4,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function getMapData(n,i){var e=n.__data__;return isKeyable(i)?e[typeof i=="string"?"string":"hash"]:e.map}function mapCacheDelete(n){var i=getMapData(this,n).delete(n);return this.size-=i?1:0,i}function mapCacheGet(n){return getMapData(this,n).get(n)}function mapCacheHas(n){return getMapData(this,n).has(n)}function mapCacheSet(n,i){var e=getMapData(this,n),t=e.size;return e.set(n,i),this.size+=e.size==t?0:1,this}function MapCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var e=function(){var t=arguments,o=i?i.apply(this,t):t[0],d=e.cache;if(d.has(o))return d.get(o);var p=n.apply(this,t);return e.cache=d.set(o,p)||d,p};return e.cache=new(memoize.Cache||MapCache),e}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var i=memoize(n,function(t){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),t}),e=i.cache;return i}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(rePropName,function(e,t,o,d){i.push(o?d.replace(reEscapeChar,"$1"):t||e)}),i});function toString$2(n){return n==null?"":baseToString(n)}function castPath(n,i){return isArray$1(n)?n:isKey(n,i)?[n]:stringToPath(toString$2(n))}function toKey(n){if(typeof n=="string"||isSymbol(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function baseGet(n,i){i=castPath(i,n);for(var e=0,t=i.length;n!=null&&e<t;)n=n[toKey(i[e++])];return e&&e==t?n:void 0}function get$1(n,i,e){var t=n==null?void 0:baseGet(n,i);return t===void 0?e:t}function arrayPush(n,i){for(var e=-1,t=i.length,o=n.length;++e<t;)n[o+e]=i[e];return n}var spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable(n){return isArray$1(n)||isArguments(n)||!!(spreadableSymbol&&n&&n[spreadableSymbol])}function baseFlatten(n,i,e,t,o){var d=-1,p=n.length;for(e||(e=isFlattenable),o||(o=[]);++d<p;){var h=n[d];e(h)?arrayPush(o,h):o[o.length]=h}return o}function flatten(n){var i=n==null?0:n.length;return i?baseFlatten(n):[]}function flatRest(n){return setToString(overRest(n,void 0,flatten),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$6.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var i=getPrototype(n);if(i===null)return!0;var e=hasOwnProperty$6.call(i,"constructor")&&i.constructor;return typeof e=="function"&&e instanceof e&&funcToString.call(e)==objectCtorString$1}const isPlainObject$3=Object.freeze(Object.defineProperty({__proto__:null,default:isPlainObject$2},Symbol.toStringTag,{value:"Module"}));var FUNC_ERROR_TEXT="Expected a function";function before(n,i){var e;if(typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(e=i.apply(this,arguments)),n<=1&&(i=void 0),e}}function baseSlice(n,i,e){var t=-1,o=n.length;i<0&&(i=-i>o?0:o+i),e=e>o?o:e,e<0&&(e+=o),o=i>e?0:e-i>>>0,i>>>=0;for(var d=Array(o);++t<o;)d[t]=n[t+i];return d}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var i=this.__data__,e=i.delete(n);return this.size=i.size,e}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE=200;function stackSet(n,i){var e=this.__data__;if(e instanceof ListCache){var t=e.__data__;if(!Map$2||t.length<LARGE_ARRAY_SIZE-1)return t.push([n,i]),this.size=++e.size,this;e=this.__data__=new MapCache(t)}return e.set(n,i),this.size=e.size,this}function Stack(n){var i=this.__data__=new ListCache(n);this.size=i.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(n,i){return n&©Object(i,keys$1(i),n)}function baseAssignIn(n,i){return n&©Object(i,keysIn(i),n)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$2=moduleExports?root$4.Buffer:void 0,allocUnsafe=Buffer$2?Buffer$2.allocUnsafe:void 0;function cloneBuffer(n,i){if(i)return n.slice();var e=n.length,t=allocUnsafe?allocUnsafe(e):new n.constructor(e);return n.copy(t),t}function arrayFilter(n,i){for(var e=-1,t=n==null?0:n.length,o=0,d=[];++e<t;){var p=n[e];i(p,e,n)&&(d[o++]=p)}return d}function stubArray(){return[]}var objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(n){return n==null?[]:(n=Object(n),arrayFilter(nativeGetSymbols$1(n),function(i){return propertyIsEnumerable.call(n,i)}))}:stubArray;function copySymbols(n,i){return copyObject(n,getSymbols(n),i)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(n){for(var i=[];n;)arrayPush(i,getSymbols(n)),n=getPrototype(n);return i}:stubArray;function copySymbolsIn(n,i){return copyObject(n,getSymbolsIn(n),i)}function baseGetAllKeys(n,i,e){var t=i(n);return isArray$1(n)?t:arrayPush(t,e(n))}function getAllKeys(n){return baseGetAllKeys(n,keys$1,getSymbols)}function getAllKeysIn(n){return baseGetAllKeys(n,keysIn,getSymbolsIn)}var DataView$1=getNative(root$4,"DataView"),Promise$1=getNative(root$4,"Promise"),Set$1=getNative(root$4,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(n){var i=baseGetTag(n),e=i==objectTag$2?n.constructor:void 0,t=e?toSource(e):"";if(t)switch(t){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return i});var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function initCloneArray(n){var i=n.length,e=new n.constructor(i);return i&&typeof n[0]=="string"&&hasOwnProperty$5.call(n,"index")&&(e.index=n.index,e.input=n.input),e}var Uint8Array$1=root$4.Uint8Array;function cloneArrayBuffer(n){var i=new n.constructor(n.byteLength);return new Uint8Array$1(i).set(new Uint8Array$1(n)),i}function cloneDataView(n,i){var e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var reFlags=/\w*$/;function cloneRegExp(n){var i=new n.constructor(n.source,reFlags.exec(n));return i.lastIndex=n.lastIndex,i}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,i){var e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",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$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(n,i,e){var t=n.constructor;switch(i){case arrayBufferTag$2:return cloneArrayBuffer(n);case boolTag$2:case dateTag$2:return new t(+n);case dataViewTag$2:return cloneDataView(n,e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(n,e);case mapTag$3:return new t;case numberTag$2:case stringTag$2:return new t(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new t;case symbolTag$2:return cloneSymbol(n)}}function initCloneObject(n){return typeof n.constructor=="function"&&!isPrototype(n)?baseCreate(getPrototype(n)):{}}var mapTag$2="[object Map]";function baseIsMap(n){return isObjectLike(n)&&getTag(n)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(n){return isObjectLike(n)&&getTag(n)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(n,i,e,t,o,d){var p,h=i&CLONE_DEEP_FLAG$2,y=i&CLONE_FLAT_FLAG$1,$=i&CLONE_SYMBOLS_FLAG$2;if(e&&(p=o?e(n,t,o,d):e(n)),p!==void 0)return p;if(!isObject$1(n))return n;var E=isArray$1(n);if(E){if(p=initCloneArray(n),!h)return copyArray(n,p)}else{var M=getTag(n),H=M==funcTag||M==genTag;if(isBuffer(n))return cloneBuffer(n,h);if(M==objectTag$1||M==argsTag$1||H&&!o){if(p=y||H?{}:initCloneObject(n),!h)return y?copySymbolsIn(n,baseAssignIn(p,n)):copySymbols(n,baseAssign(p,n))}else{if(!cloneableTags[M])return o?n:{};p=initCloneByTag(n,M,h)}}d||(d=new Stack);var Z=d.get(n);if(Z)return Z;d.set(n,p),isSet$1(n)?n.forEach(function(we){p.add(baseClone(we,i,e,we,n,d))}):isMap$1(n)&&n.forEach(function(we,Ce){p.set(Ce,baseClone(we,i,e,Ce,n,d))});var be=$?y?getAllKeysIn:getAllKeys:y?keysIn:keys$1,ye=E?void 0:be(n);return arrayEach(ye||n,function(we,Ce){ye&&(Ce=we,we=n[Ce]),assignValue(p,Ce,baseClone(we,i,e,Ce,n,d))}),p}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(n){return baseClone(n,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}const cloneDeep$1=Object.freeze(Object.defineProperty({__proto__:null,default:cloneDeep},Symbol.toStringTag,{value:"Module"}));var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(n){return this.__data__.set(n,HASH_UNDEFINED),this}function setCacheHas(n){return this.__data__.has(n)}function SetCache(n){var i=-1,e=n==null?0:n.length;for(this.__data__=new MapCache;++i<e;)this.add(n[i])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(n,i){for(var e=-1,t=n==null?0:n.length;++e<t;)if(i(n[e],e,n))return!0;return!1}function cacheHas(n,i){return n.has(i)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(n,i,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$5,h=n.length,y=i.length;if(h!=y&&!(p&&y>h))return!1;var $=d.get(n),E=d.get(i);if($&&E)return $==i&&E==n;var M=-1,H=!0,Z=e&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(d.set(n,i),d.set(i,n);++M<h;){var be=n[M],ye=i[M];if(t)var we=p?t(ye,be,M,i,n,d):t(be,ye,M,n,i,d);if(we!==void 0){if(we)continue;H=!1;break}if(Z){if(!arraySome(i,function(Ce,xe){if(!cacheHas(Z,xe)&&(be===Ce||o(be,Ce,e,t,d)))return Z.push(xe)})){H=!1;break}}else if(!(be===ye||o(be,ye,e,t,d))){H=!1;break}}return d.delete(n),d.delete(i),H}function mapToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t,o){e[++i]=[o,t]}),e}function setToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t){e[++i]=t}),e}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(n,i,e,t,o,d,p){switch(e){case dataViewTag:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case arrayBufferTag:return!(n.byteLength!=i.byteLength||!d(new Uint8Array$1(n),new Uint8Array$1(i)));case boolTag:case dateTag:case numberTag:return eq(+n,+i);case errorTag:return n.name==i.name&&n.message==i.message;case regexpTag:case stringTag:return n==i+"";case mapTag:var h=mapToArray;case setTag:var y=t&COMPARE_PARTIAL_FLAG$4;if(h||(h=setToArray),n.size!=i.size&&!y)return!1;var $=p.get(n);if($)return $==i;t|=COMPARE_UNORDERED_FLAG$2,p.set(n,i);var E=equalArrays(h(n),h(i),t,o,d,p);return p.delete(n),E;case symbolTag:if(symbolValueOf)return symbolValueOf.call(n)==symbolValueOf.call(i)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function equalObjects(n,i,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$3,h=getAllKeys(n),y=h.length,$=getAllKeys(i),E=$.length;if(y!=E&&!p)return!1;for(var M=y;M--;){var H=h[M];if(!(p?H in i:hasOwnProperty$4.call(i,H)))return!1}var Z=d.get(n),be=d.get(i);if(Z&&be)return Z==i&&be==n;var ye=!0;d.set(n,i),d.set(i,n);for(var we=p;++M<y;){H=h[M];var Ce=n[H],xe=i[H];if(t)var Ne=p?t(xe,Ce,H,i,n,d):t(Ce,xe,H,n,i,d);if(!(Ne===void 0?Ce===xe||o(Ce,xe,e,t,d):Ne)){ye=!1;break}we||(we=H=="constructor")}if(ye&&!we){var Fe=n.constructor,Le=i.constructor;Fe!=Le&&"constructor"in n&&"constructor"in i&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof Le=="function"&&Le instanceof Le)&&(ye=!1)}return d.delete(n),d.delete(i),ye}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseIsEqualDeep(n,i,e,t,o,d){var p=isArray$1(n),h=isArray$1(i),y=p?arrayTag:getTag(n),$=h?arrayTag:getTag(i);y=y==argsTag?objectTag:y,$=$==argsTag?objectTag:$;var E=y==objectTag,M=$==objectTag,H=y==$;if(H&&isBuffer(n)){if(!isBuffer(i))return!1;p=!0,E=!1}if(H&&!E)return d||(d=new Stack),p||isTypedArray(n)?equalArrays(n,i,e,t,o,d):equalByTag(n,i,y,e,t,o,d);if(!(e&COMPARE_PARTIAL_FLAG$2)){var Z=E&&hasOwnProperty$3.call(n,"__wrapped__"),be=M&&hasOwnProperty$3.call(i,"__wrapped__");if(Z||be){var ye=Z?n.value():n,we=be?i.value():i;return d||(d=new Stack),o(ye,we,e,t,d)}}return H?(d||(d=new Stack),equalObjects(n,i,e,t,o,d)):!1}function baseIsEqual(n,i,e,t,o){return n===i?!0:n==null||i==null||!isObjectLike(n)&&!isObjectLike(i)?n!==n&&i!==i:baseIsEqualDeep(n,i,e,t,baseIsEqual,o)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(n,i,e,t){var o=e.length,d=o;if(n==null)return!d;for(n=Object(n);o--;){var p=e[o];if(p[2]?p[1]!==n[p[0]]:!(p[0]in n))return!1}for(;++o<d;){p=e[o];var h=p[0],y=n[h],$=p[1];if(p[2]){if(y===void 0&&!(h in n))return!1}else{var E=new Stack,M;if(!(M===void 0?baseIsEqual($,y,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,t,E):M))return!1}}return!0}function isStrictComparable(n){return n===n&&!isObject$1(n)}function getMatchData(n){for(var i=keys$1(n),e=i.length;e--;){var t=i[e],o=n[t];i[e]=[t,o,isStrictComparable(o)]}return i}function matchesStrictComparable(n,i){return function(e){return e==null?!1:e[n]===i&&(i!==void 0||n in Object(e))}}function baseMatches(n){var i=getMatchData(n);return i.length==1&&i[0][2]?matchesStrictComparable(i[0][0],i[0][1]):function(e){return e===n||baseIsMatch(e,n,i)}}function baseHasIn(n,i){return n!=null&&i in Object(n)}function hasPath(n,i,e){i=castPath(i,n);for(var t=-1,o=i.length,d=!1;++t<o;){var p=toKey(i[t]);if(!(d=n!=null&&e(n,p)))break;n=n[p]}return d||++t!=o?d:(o=n==null?0:n.length,!!o&&isLength(o)&&isIndex(p,o)&&(isArray$1(n)||isArguments(n)))}function hasIn(n,i){return n!=null&&hasPath(n,i,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(n,i){return isKey(n)&&isStrictComparable(i)?matchesStrictComparable(toKey(n),i):function(e){var t=get$1(e,n);return t===void 0&&t===i?hasIn(e,n):baseIsEqual(i,t,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(n){return function(i){return i?.[n]}}function basePropertyDeep(n){return function(i){return baseGet(i,n)}}function property(n){return isKey(n)?baseProperty(toKey(n)):basePropertyDeep(n)}function baseIteratee(n){return typeof n=="function"?n:n==null?identity:typeof n=="object"?isArray$1(n)?baseMatchesProperty(n[0],n[1]):baseMatches(n):property(n)}function arrayAggregator(n,i,e,t){for(var o=-1,d=n==null?0:n.length;++o<d;){var p=n[o];i(t,p,e(p),n)}return t}function createBaseFor(n){return function(i,e,t){for(var o=-1,d=Object(i),p=t(i),h=p.length;h--;){var y=p[++o];if(e(d[y],y,d)===!1)break}return i}}var baseFor=createBaseFor();function baseForOwn(n,i){return n&&baseFor(n,i,keys$1)}function createBaseEach(n,i){return function(e,t){if(e==null)return e;if(!isArrayLike(e))return n(e,t);for(var o=e.length,d=-1,p=Object(e);++d<o&&t(p[d],d,p)!==!1;);return e}}var baseEach=createBaseEach(baseForOwn);function baseAggregator(n,i,e,t){return baseEach(n,function(o,d,p){i(t,o,e(o),p)}),t}function createAggregator(n,i){return function(e,t){var o=isArray$1(e)?arrayAggregator:baseAggregator,d=i?i():{};return o(e,n,baseIteratee(t),d)}}function assignMergeValue(n,i,e){(e!==void 0&&!eq(n[i],e)||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike(n)}function safeGet(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,i,e,t,o,d,p){var h=safeGet(n,e),y=safeGet(i,e),$=p.get(y);if($){assignMergeValue(n,e,$);return}var E=d?d(h,y,e+"",n,i,p):void 0,M=E===void 0;if(M){var H=isArray$1(y),Z=!H&&isBuffer(y),be=!H&&!Z&&isTypedArray(y);E=y,H||Z||be?isArray$1(h)?E=h:isArrayLikeObject(h)?E=copyArray(h):Z?(M=!1,E=cloneBuffer(y,!0)):be?(M=!1,E=cloneTypedArray(y,!0)):E=[]:isPlainObject$2(y)||isArguments(y)?(E=h,isArguments(h)?E=toPlainObject(h):(!isObject$1(h)||isFunction$3(h))&&(E=initCloneObject(y))):M=!1}M&&(p.set(y,E),o(E,y,t,d,p),p.delete(y)),assignMergeValue(n,e,E)}function baseMerge(n,i,e,t,o){n!==i&&baseFor(i,function(d,p){if(o||(o=new Stack),isObject$1(d))baseMergeDeep(n,i,p,e,baseMerge,t,o);else{var h=t?t(safeGet(n,p),d,p+"",n,i,o):void 0;h===void 0&&(h=d),assignMergeValue(n,p,h)}},keysIn)}var mergeWith=createAssigner(function(n,i,e,t){baseMerge(n,i,e,t)});function last(n){var i=n==null?0:n.length;return i?n[i-1]:void 0}function baseMap(n,i){var e=-1,t=isArrayLike(n)?Array(n.length):[];return baseEach(n,function(o,d,p){t[++e]=i(o,d,p)}),t}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty,groupBy=createAggregator(function(n,i,e){hasOwnProperty$2.call(n,e)?n[e].push(i):baseAssignValue(n,e,[i])});function parent(n,i){return i.length<2?n:baseGet(n,baseSlice(i,0,-1))}function isEqual$1(n,i){return baseIsEqual(n,i)}var merge$1=createAssigner(function(n,i,e){baseMerge(n,i,e)}),objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseUnset(n,i){i=castPath(i,n);var e=-1,t=i.length;if(!t)return!0;for(var o=n==null||typeof n!="object"&&typeof n!="function";++e<t;){var d=i[e];if(typeof d=="string"){if(d==="__proto__"&&!hasOwnProperty$1.call(n,"__proto__"))return!1;if(d==="constructor"&&e+1<t&&typeof i[e+1]=="string"&&i[e+1]==="prototype"){if(o&&e===0)continue;return!1}}}var p=parent(n,i);return p==null||delete p[toKey(last(i))]}function customOmitClone(n){return isPlainObject$2(n)?void 0:n}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(n,i){var e={};if(n==null)return e;var t=!1;i=arrayMap(i,function(d){return d=castPath(d,n),t||(t=d.length>1),d}),copyObject(n,getAllKeysIn(n),e),t&&(e=baseClone(e,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var o=i.length;o--;)baseUnset(e,i[o]);return e});function baseSet(n,i,e,t){if(!isObject$1(n))return n;i=castPath(i,n);for(var o=-1,d=i.length,p=d-1,h=n;h!=null&&++o<d;){var y=toKey(i[o]),$=e;if(y==="__proto__"||y==="constructor"||y==="prototype")return n;if(o!=p){var E=h[y];$=void 0,$===void 0&&($=isObject$1(E)?E:isIndex(i[o+1])?[]:{})}assignValue(h,y,$),h=h[y]}return n}function basePickBy(n,i,e){for(var t=-1,o=i.length,d={};++t<o;){var p=i[t],h=baseGet(n,p);e(h,p)&&baseSet(d,castPath(p,n),h)}return d}function once(n){return before(2,n)}function baseSortBy(n,i){var e=n.length;for(n.sort(i);e--;)n[e]=n[e].value;return n}function compareAscending(n,i){if(n!==i){var e=n!==void 0,t=n===null,o=n===n,d=isSymbol(n),p=i!==void 0,h=i===null,y=i===i,$=isSymbol(i);if(!h&&!$&&!d&&n>i||d&&p&&y&&!h&&!$||t&&p&&y||!e&&y||!o)return 1;if(!t&&!d&&!$&&n<i||$&&e&&o&&!t&&!d||h&&e&&o||!p&&o||!y)return-1}return 0}function compareMultiple(n,i,e){for(var t=-1,o=n.criteria,d=i.criteria,p=o.length,h=e.length;++t<p;){var y=compareAscending(o[t],d[t]);if(y){if(t>=h)return y;var $=e[t];return y*($=="desc"?-1:1)}}return n.index-i.index}function baseOrderBy(n,i,e){i.length?i=arrayMap(i,function(d){return isArray$1(d)?function(p){return baseGet(p,d.length===1?d[0]:d)}:d}):i=[identity];var t=-1;i=arrayMap(i,baseUnary(baseIteratee));var o=baseMap(n,function(d,p,h){var y=arrayMap(i,function($){return $(d)});return{criteria:y,index:++t,value:d}});return baseSortBy(o,function(d,p){return compareMultiple(d,p,e)})}function basePick(n,i){return basePickBy(n,i,function(e,t){return hasIn(n,t)})}var pick$2=flatRest(function(n,i){return n==null?{}:basePick(n,i)}),nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(n,i,e,t){for(var o=-1,d=nativeMax$1(nativeCeil((i-n)/(e||1)),0),p=Array(d);d--;)p[++o]=n,n+=e;return p}function createRange(n){return function(i,e,t){return t&&typeof t!="number"&&isIterateeCall(i,e,t)&&(e=t=void 0),i=toFinite(i),e===void 0?(e=i,i=0):e=toFinite(e),t=t===void 0?i<e?1:-1:toFinite(t),baseRange(i,e,t)}}var range=createRange(),sortBy=baseRest(function(n,i){if(n==null)return[];var e=i.length;return e>1&&isIterateeCall(n,i[0],i[1])?i=[]:e>2&&isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),baseOrderBy(n,baseFlatten(i),[])}),nativeMax=Math.max;function unzip(n){if(!(n&&n.length))return[];var i=0;return n=arrayFilter(n,function(e){if(isArrayLikeObject(e))return i=nativeMax(e.length,i),!0}),baseTimes(i,function(e){return arrayMap(n,baseProperty(e))})}var zip=baseRest(unzip),cuint={},uint32$1={exports:{}},uint32=uint32$1.exports,hasRequiredUint32;function requireUint32(){return hasRequiredUint32||(hasRequiredUint32=1,(function(n){(function(i){e(Math.pow(36,5)),e(Math.pow(16,7)),e(Math.pow(10,9)),e(Math.pow(2,30)),e(36),e(16),e(10),e(2);function e(p,h){if(!(this instanceof e))return new e(p,h);if(this._low=0,this._high=0,this.remainder=null,typeof h>"u")return o.call(this,p);if(typeof p=="string")return d.call(this,p,h);t.call(this,p,h)}function t(p,h){return this._low=p|0,this._high=h|0,this}e.prototype.fromBits=t;function o(p){return this._low=p&65535,this._high=p>>>16,this}e.prototype.fromNumber=o;function d(p,h){var y=parseInt(p,h||10);return this._low=y&65535,this._high=y>>>16,this}e.prototype.fromString=d,e.prototype.toNumber=function(){return this._high*65536+this._low},e.prototype.toString=function(p){return this.toNumber().toString(p||10)},e.prototype.add=function(p){var h=this._low+p._low,y=h>>>16;return y+=this._high+p._high,this._low=h&65535,this._high=y&65535,this},e.prototype.subtract=function(p){return this.add(p.clone().negate())},e.prototype.multiply=function(p){var h=this._high,y=this._low,$=p._high,E=p._low,M,H;return H=y*E,M=H>>>16,M+=h*E,M&=65535,M+=y*$,this._low=H&65535,this._high=M&65535,this},e.prototype.div=function(p){if(p._low==0&&p._high==0)throw Error("division by zero");if(p._high==0&&p._low==1)return this.remainder=new e(0),this;if(p.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(p))return this.remainder=new e(0),this._low=1,this._high=0,this;for(var h=p.clone(),y=-1;!this.lt(h);)h.shiftLeft(1,!0),y++;for(this.remainder=this.clone(),this._low=0,this._high=0;y>=0;y--)h.shiftRight(1),this.remainder.lt(h)||(this.remainder.subtract(h),y>=16?this._high|=1<<y-16:this._low|=1<<y);return this},e.prototype.negate=function(){var p=(~this._low&65535)+1;return this._low=p&65535,this._high=~this._high+(p>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(p){return this._low==p._low&&this._high==p._high},e.prototype.greaterThan=e.prototype.gt=function(p){return this._high>p._high?!0:this._high<p._high?!1:this._low>p._low},e.prototype.lessThan=e.prototype.lt=function(p){return this._high<p._high?!0:this._high>p._high?!1:this._low<p._low},e.prototype.or=function(p){return this._low|=p._low,this._high|=p._high,this},e.prototype.and=function(p){return this._low&=p._low,this._high&=p._high,this},e.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},e.prototype.xor=function(p){return this._low^=p._low,this._high^=p._high,this},e.prototype.shiftRight=e.prototype.shiftr=function(p){return p>16?(this._low=this._high>>p-16,this._high=0):p==16?(this._low=this._high,this._high=0):(this._low=this._low>>p|this._high<<16-p&65535,this._high>>=p),this},e.prototype.shiftLeft=e.prototype.shiftl=function(p,h){return p>16?(this._high=this._low<<p-16,this._low=0,h||(this._high&=65535)):p==16?(this._high=this._low,this._low=0):(this._high=this._high<<p|this._low>>16-p,this._low=this._low<<p&65535,h||(this._high&=65535)),this},e.prototype.rotateLeft=e.prototype.rotl=function(p){var h=this._high<<16|this._low;return h=h<<p|h>>>32-p,this._low=h&65535,this._high=h>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(p){var h=this._high<<16|this._low;return h=h>>>p|h<<32-p,this._low=h&65535,this._high=h>>>16,this},e.prototype.clone=function(){return new e(this._low,this._high)},n.exports?n.exports=e:i.UINT32=e})(uint32)})(uint32$1)),uint32$1.exports}var uint64$1={exports:{}},uint64=uint64$1.exports,hasRequiredUint64;function requireUint64(){return hasRequiredUint64||(hasRequiredUint64=1,(function(n){(function(i){var e={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},t={16:o(16),10:o(10),2:o(2)};function o(y,$,E,M){if(!(this instanceof o))return new o(y,$,E,M);if(this.remainder=null,typeof y=="string")return h.call(this,y,$);if(typeof $>"u")return p.call(this,y);d.apply(this,arguments)}function d(y,$,E,M){return typeof E>"u"?(this._a00=y&65535,this._a16=y>>>16,this._a32=$&65535,this._a48=$>>>16,this):(this._a00=y|0,this._a16=$|0,this._a32=E|0,this._a48=M|0,this)}o.prototype.fromBits=d;function p(y){return this._a00=y&65535,this._a16=y>>>16,this._a32=0,this._a48=0,this}o.prototype.fromNumber=p;function h(y,$){$=$||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var E=e[$]||new o(Math.pow($,5)),M=0,H=y.length;M<H;M+=5){var Z=Math.min(5,H-M),be=parseInt(y.slice(M,M+Z),$);this.multiply(Z<5?new o(Math.pow($,Z)):E).add(new o(be))}return this}o.prototype.fromString=h,o.prototype.toNumber=function(){return this._a16*65536+this._a00},o.prototype.toString=function(y){y=y||10;var $=t[y]||new o(y);if(!this.gt($))return this.toNumber().toString(y);for(var E=this.clone(),M=new Array(64),H=63;H>=0&&(E.div($),M[H]=E.remainder.toNumber().toString(y),!!E.gt($));H--);return M[H-1]=E.toNumber().toString(y),M.join("")},o.prototype.add=function(y){var $=this._a00+y._a00,E=$>>>16;E+=this._a16+y._a16;var M=E>>>16;M+=this._a32+y._a32;var H=M>>>16;return H+=this._a48+y._a48,this._a00=$&65535,this._a16=E&65535,this._a32=M&65535,this._a48=H&65535,this},o.prototype.subtract=function(y){return this.add(y.clone().negate())},o.prototype.multiply=function(y){var $=this._a00,E=this._a16,M=this._a32,H=this._a48,Z=y._a00,be=y._a16,ye=y._a32,we=y._a48,Ce=$*Z,xe=Ce>>>16;xe+=$*be;var Ne=xe>>>16;xe&=65535,xe+=E*Z,Ne+=xe>>>16,Ne+=$*ye;var Fe=Ne>>>16;return Ne&=65535,Ne+=E*be,Fe+=Ne>>>16,Ne&=65535,Ne+=M*Z,Fe+=Ne>>>16,Fe+=$*we,Fe&=65535,Fe+=E*ye,Fe&=65535,Fe+=M*be,Fe&=65535,Fe+=H*Z,this._a00=Ce&65535,this._a16=xe&65535,this._a32=Ne&65535,this._a48=Fe&65535,this},o.prototype.div=function(y){if(y._a16==0&&y._a32==0&&y._a48==0){if(y._a00==0)throw Error("division by zero");if(y._a00==1)return this.remainder=new o(0),this}if(y.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(y))return this.remainder=new o(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var $=y.clone(),E=-1;!this.lt($);)$.shiftLeft(1,!0),E++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;E>=0;E--)$.shiftRight(1),this.remainder.lt($)||(this.remainder.subtract($),E>=48?this._a48|=1<<E-48:E>=32?this._a32|=1<<E-32:E>=16?this._a16|=1<<E-16:this._a00|=1<<E);return this},o.prototype.negate=function(){var y=(~this._a00&65535)+1;return this._a00=y&65535,y=(~this._a16&65535)+(y>>>16),this._a16=y&65535,y=(~this._a32&65535)+(y>>>16),this._a32=y&65535,this._a48=~this._a48+(y>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(y){return this._a48==y._a48&&this._a00==y._a00&&this._a32==y._a32&&this._a16==y._a16},o.prototype.greaterThan=o.prototype.gt=function(y){return this._a48>y._a48?!0:this._a48<y._a48?!1:this._a32>y._a32?!0:this._a32<y._a32?!1:this._a16>y._a16?!0:this._a16<y._a16?!1:this._a00>y._a00},o.prototype.lessThan=o.prototype.lt=function(y){return this._a48<y._a48?!0:this._a48>y._a48?!1:this._a32<y._a32?!0:this._a32>y._a32?!1:this._a16<y._a16?!0:this._a16>y._a16?!1:this._a00<y._a00},o.prototype.or=function(y){return this._a00|=y._a00,this._a16|=y._a16,this._a32|=y._a32,this._a48|=y._a48,this},o.prototype.and=function(y){return this._a00&=y._a00,this._a16&=y._a16,this._a32&=y._a32,this._a48&=y._a48,this},o.prototype.xor=function(y){return this._a00^=y._a00,this._a16^=y._a16,this._a32^=y._a32,this._a48^=y._a48,this},o.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},o.prototype.shiftRight=o.prototype.shiftr=function(y){return y%=64,y>=48?(this._a00=this._a48>>y-48,this._a16=0,this._a32=0,this._a48=0):y>=32?(y-=32,this._a00=(this._a32>>y|this._a48<<16-y)&65535,this._a16=this._a48>>y&65535,this._a32=0,this._a48=0):y>=16?(y-=16,this._a00=(this._a16>>y|this._a32<<16-y)&65535,this._a16=(this._a32>>y|this._a48<<16-y)&65535,this._a32=this._a48>>y&65535,this._a48=0):(this._a00=(this._a00>>y|this._a16<<16-y)&65535,this._a16=(this._a16>>y|this._a32<<16-y)&65535,this._a32=(this._a32>>y|this._a48<<16-y)&65535,this._a48=this._a48>>y&65535),this},o.prototype.shiftLeft=o.prototype.shiftl=function(y,$){return y%=64,y>=48?(this._a48=this._a00<<y-48,this._a32=0,this._a16=0,this._a00=0):y>=32?(y-=32,this._a48=this._a16<<y|this._a00>>16-y,this._a32=this._a00<<y&65535,this._a16=0,this._a00=0):y>=16?(y-=16,this._a48=this._a32<<y|this._a16>>16-y,this._a32=(this._a16<<y|this._a00>>16-y)&65535,this._a16=this._a00<<y&65535,this._a00=0):(this._a48=this._a48<<y|this._a32>>16-y,this._a32=(this._a32<<y|this._a16>>16-y)&65535,this._a16=(this._a16<<y|this._a00>>16-y)&65535,this._a00=this._a00<<y&65535),$||(this._a48&=65535),this},o.prototype.rotateLeft=o.prototype.rotl=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E<<y|M>>>32-y,Z=M<<y|E>>>32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E>>>y|M<<32-y,Z=M>>>y|E<<32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>16,this},o.prototype.clone=function(){return new o(this._a00,this._a16,this._a32,this._a48)},n.exports?n.exports=o:i.UINT64=o})(uint64)})(uint64$1)),uint64$1.exports}var hasRequiredCuint;function requireCuint(){return hasRequiredCuint||(hasRequiredCuint=1,cuint.UINT32=requireUint32(),cuint.UINT64=requireUint64()),cuint}var xxhash$1,hasRequiredXxhash;function requireXxhash(){if(hasRequiredXxhash)return xxhash$1;hasRequiredXxhash=1;var n=requireCuint().UINT32;n.prototype.xxh_update=function($,E){var M=e._low,H=e._high,Z,be;be=$*M,Z=be>>>16,Z+=E*M,Z&=65535,Z+=$*H;var ye=this._low+(be&65535),we=ye>>>16;we+=this._high+(Z&65535);var Ce=we<<16|ye&65535;Ce=Ce<<13|Ce>>>19,ye=Ce&65535,we=Ce>>>16,M=i._low,H=i._high,be=ye*M,Z=be>>>16,Z+=we*M,Z&=65535,Z+=ye*H,this._low=be&65535,this._high=Z&65535};var i=n("2654435761"),e=n("2246822519"),t=n("3266489917"),o=n("668265263"),d=n("374761393");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+Z<16)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,16-this.memsize):M?this.memory.set($.subarray(0,16-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,16-this.memsize);var ye=0;E?(this.v1.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v2.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v3.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v4.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2))):(this.v1.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v2.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v3.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v4.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2])),H+=16-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-16){var we=be-16;do E?(this.v1.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v2.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v3.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v4.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2))):(this.v1.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v2.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v3.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v4.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2])),H+=4;while(H<=we)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=new n;for(this.total_len>=16?Z=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):Z=this.seed.clone().add(d),Z.add(ye.fromNumber(this.total_len));M<=H-4;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2]),Z.add(ye.multiply(t)).rotl(17).multiply(o),M+=4;for(;M<H;)ye.fromBits(E?$.charCodeAt(M++):$[M++],0),Z.add(ye.multiply(d)).rotl(11).multiply(i);return be=Z.clone().shiftRight(15),Z.xor(be).multiply(e),be=Z.clone().shiftRight(13),Z.xor(be).multiply(t),be=Z.clone().shiftRight(16),Z.xor(be),this.init(this.seed),Z},xxhash$1=h,xxhash$1}var xxhash64,hasRequiredXxhash64;function requireXxhash64(){if(hasRequiredXxhash64)return xxhash64;hasRequiredXxhash64=1;var n=requireCuint().UINT64,i=n("11400714785074694791"),e=n("14029467366897019727"),t=n("1609587929392839161"),o=n("9650029242287828579"),d=n("2870177450012600261");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+Z<32)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,32-this.memsize):M?this.memory.set($.subarray(0,32-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,32-this.memsize);var ye=0;if(E){var we;we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=32-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-32){var Ce=be-32;do{if(E){var we;we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=8}while(H<=Ce)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=new n;for(this.total_len>=32?(Z=this.v1.clone().rotl(1),Z.add(this.v2.clone().rotl(7)),Z.add(this.v3.clone().rotl(12)),Z.add(this.v4.clone().rotl(18)),Z.xor(this.v1.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v2.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v3.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v4.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o)):Z=this.seed.clone().add(d),Z.add(ye.fromNumber(this.total_len));M<=H-8;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),$.charCodeAt(M+5)<<8|$.charCodeAt(M+4),$.charCodeAt(M+7)<<8|$.charCodeAt(M+6)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],$[M+5]<<8|$[M+4],$[M+7]<<8|$[M+6]),ye.multiply(e).rotl(31).multiply(i),Z.xor(ye).rotl(27).multiply(i).add(o),M+=8;for(M+4<=H&&(E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),0,0):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],0,0),Z.xor(ye.multiply(i)).rotl(23).multiply(e).add(t),M+=4);M<H;)ye.fromBits(E?$.charCodeAt(M++):$[M++],0,0,0),Z.xor(ye.multiply(d)).rotl(11).multiply(i);return be=Z.clone().shiftRight(33),Z.xor(be).multiply(e),be=Z.clone().shiftRight(29),Z.xor(be).multiply(t),be=Z.clone().shiftRight(32),Z.xor(be),this.init(this.seed),Z},xxhash64=h,xxhash64}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={h32:requireXxhash(),h64:requireXxhash64()}),lib}var libExports=requireLib();const xxhash=getDefaultExportFromCjs(libExports),assertNever=n=>{throw new Error(`Reached a branch with non-exhaustive item: ${n}`)},GENERATED_ELEMENT_ID_PREFIX="$$ID";function debounce$2(n,i){let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout(()=>{i(...t),e=null},n)}}const EMBED_QUERY_PARAM_KEY="embed",EMBED_OPTIONS_QUERY_PARAM_KEY="embed_options",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_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=(function(n){return n[n.NONE=0]="NONE",n[n.V1=1]="V1",n[n.V2=2]="V2",n})({});function getEmbedUrlParams(n){const i=new Set;return new URLSearchParams(window.location.search).forEach((t,o)=>{o=o.toString().toLowerCase(),t=t.toString().toLowerCase(),o===n&&EMBED_QUERY_PARAM_VALUES.includes(t)&&i.add(t)}),i}function preserveEmbedQueryParams(){if(!isEmbed())return"";const n=new URLSearchParams(window.location.search).getAll(EMBED_OPTIONS_QUERY_PARAM_KEY),i=[];return i.push([EMBED_QUERY_PARAM_KEY,EMBED_TRUE]),n.forEach(e=>{i.push([EMBED_OPTIONS_QUERY_PARAM_KEY,e])}),new URLSearchParams(i).toString()}function getQueryString(n,i){return n!==void 0?i?n?`${i}&${n}`:i:n:i}function isEmbed(){return getEmbedUrlParams(EMBED_QUERY_PARAM_KEY).has(EMBED_TRUE)}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 getUrl(){let n;try{isInChildFrame()&&window.top?n=window.top.location.href:n=document.location.href}catch{n=document.location.href}const i=new URL(n);return i.search="",i.hash="",i.toString()}function getScreencastTimestamp(){const n=new Date,i=n.getFullYear(),e=String(n.getMonth()+1).padStart(2,"0"),t=String(n.getDate()).padStart(2,"0"),o=String(n.getHours()).padStart(2,"0"),d=String(n.getMinutes()).padStart(2,"0"),p=String(n.getSeconds()).padStart(2,"0");return`${i}-${e}-${t}-${o}-${d}-${p}`}function getTimezone$1(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function getTimezoneOffset(){return new Date().getTimezoneOffset()}function getLocaleLanguage(){return navigator.language}function getLoadingScreenType(){const n=getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY);return n.has(EMBED_HIDE_LOADING_SCREEN)?0:n.has(EMBED_SHOW_LOADING_SCREEN_V1)?1:2}function makeElementWithInfoText(n){return new Element$1({alert:{body:n,format:Alert.Format.INFO}})}function makeElementWithErrorText(n){return new Element$1({alert:{body:n,format:Alert.Format.ERROR}})}function makeAppSkeletonElement(){return new Element$1({skeleton:{style:Skeleton$1.SkeletonStyle.APP}})}function hashString(n){return xxhash.h32(n,3735928559).toString(16)}function requireNonNull(n){if(isNullOrUndefined$1(n))throw new Error("value is null");return n}function notUndefined(n){return n!==void 0}function isFromMac(){return/Mac/i.test(navigator.platform)}function isFromWindows(){return/^Win/i.test(navigator.platform)}function setCookie(n,i,e){const t=i?e:new Date,o=t?`expires=${t.toUTCString()};`:"";document.cookie=`${n}=${i};${o}path=/`}function isValidElementId(n){return n?n.startsWith(GENERATED_ELEMENT_ID_PREFIX)&&n.split("-").length>=3:!1}function getElementId(n){const i=get$1(n,[requireNonNull(n.type),"id"]);if(i&&isValidElementId(i))return i}function isValidFormId(n){return notNullOrUndefined(n)&&n.length>0}function isInForm(n){return isValidFormId(n.formId)}function getSelectPlaceholder(n,i,e,t=!1){let o=!1;return n!==""?{placeholder:n,shouldDisable:o}:(i.length===0?e?n=t?"Add options":"Add an option":(n="No options to select",o=!0):e?n=t?"Choose or add options":"Choose or add an option":n=t?"Choose options":"Choose an option",{placeholder:n,shouldDisable:o})}var LabelVisibilityOptions=(function(n){return n[n.Visible=0]="Visible",n[n.Hidden=1]="Hidden",n[n.Collapsed=2]="Collapsed",n})({});function labelVisibilityProtoValueToEnum(n){switch(n){case LabelVisibility.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibility.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibility.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}}var AcceptFileValue=(function(n){return n[n.None=0]="None",n[n.Single=1]="Single",n[n.Multiple=2]="Multiple",n[n.Directory=3]="Directory",n})({});function chatInputAcceptFileProtoValueToEnum(n){switch(n){case ChatInput$1.AcceptFile.NONE:return 0;case ChatInput$1.AcceptFile.SINGLE:return 1;case ChatInput$1.AcceptFile.MULTIPLE:return 2;case ChatInput$1.AcceptFile.DIRECTORY:return 3;default:return assertNever(n),0}}function findAnIFrameWithClassName(n,i){for(let e=0;e<n.length;e++){const t=n[e].contentDocument;if(t&&t.getElementsByClassName(i).length>0)return n[e]}return null}function canAccessIFrame(n){try{if(n.contentWindow===null)return!1;const e=(n.contentDocument||n.contentWindow.document).body.innerHTML;return e!==null&&e!==""}catch{return!1}}function getIFrameEnclosingApp(n){if(!isInChildFrame())return null;const i=getEmbeddingIdClassName(n),e='iframe[title="streamlitApp"]';let t=window.document.querySelectorAll(e),o=findAnIFrameWithClassName(t,i);if(o&&!canAccessIFrame(o))return null;if(o)return o;if(window.parent&&(t=window.parent.document.querySelectorAll(e)),o=findAnIFrameWithClassName(t,i),o&&!canAccessIFrame(o))return null;if(o)return o;let d=window.document.getElementsByTagName("iframe");return o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o||(window.parent&&(d=window.parent.document.getElementsByTagName("iframe")),o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o)}function generateUID$2(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function getEmbeddingIdClassName(n){return`stAppEmbeddingId-${n}`}function extractPageNameFromPathName(n,i){return decodeURIComponent(n.replace(i,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),""))}function keysToSnakeCase(n){return Object.keys(n).reduce((i,e)=>{const t=decamelize$1(e,{preserveConsecutiveUppercase:!0}).replace(".","_");let o=n[e];return o&&typeof o=="object"&&!Array.isArray(o)&&(o=keysToSnakeCase(o)),Array.isArray(o)&&(o=o.map(d=>d!==null&&typeof d=="object"?keysToSnakeCase(d):d)),i[t]=o,i},{})}const MAX_HASH_LENGTH=6;class DebugVisitor{constructor(i="",e=!0){this.prefix=i,this.isLast=e}visitBlockNode(i){const e=this.isLast?"└── ":"├── ",t=this.prefix+(this.isLast?" ":"│ ");let o=`${this.prefix}${e}BlockNode [${i.children.length} children]`;return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(o+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o+=`
|
|
18
|
+
`});return jsx$1(Global,{styles:[css(i)]})},FontSources=({fontSources:n})=>jsx$1(Helmet,{children:Object.entries(n).map(([i,e])=>jsx$1("link",{id:i,rel:"stylesheet",href:e},i))});typeof Promise.withResolvers>"u"&&(Promise.withResolvers=()=>{let n,i;const e=new Promise((t,o)=>{n=t,i=o});return{resolve:n,reject:i,promise:e}});function getCookie(n){const i=document.cookie.match(`\\b${n}=([^;]*)\\b`);return i?i[1]:void 0}function localStorageAvailable(){const n="testData";try{const{localStorage:i}=window;i.setItem(n,n),i.getItem(n),i.removeItem(n)}catch{return!1}return!0}function isValidAllowedOrigins(n){return Array.isArray(n)&&n.length>0&&n.every(i=>typeof i=="string"&&i.trim().length>0)}function deepClone(n){return typeof structuredClone=="function"?structuredClone(n):JSON.parse(JSON.stringify(n))}function deepFreeze(n){return Object.freeze(n),Array.isArray(n)?n.forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}):Object.values(n).forEach(i=>{i!==null&&typeof i=="object"&&!Object.isFrozen(i)&&deepFreeze(i)}),n}const capturedConfig=(()=>{const n=window.__streamlit;if(!n)return;const i=deepClone(n);return deepFreeze(i)})(),StreamlitConfig={get BACKEND_BASE_URL(){return capturedConfig?.BACKEND_BASE_URL},get HOST_CONFIG_BASE_URL(){return capturedConfig?.HOST_CONFIG_BASE_URL},get DOWNLOAD_ASSETS_BASE_URL(){return capturedConfig?.DOWNLOAD_ASSETS_BASE_URL},get MAIN_PAGE_BASE_URL(){return capturedConfig?.MAIN_PAGE_BASE_URL},get CUSTOM_COMPONENT_CLIENT_ID(){return capturedConfig?.CUSTOM_COMPONENT_CLIENT_ID},get LIGHT_THEME(){return capturedConfig?.LIGHT_THEME},get DARK_THEME(){return capturedConfig?.DARK_THEME},get ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION(){return capturedConfig?.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION},get HOST_CONFIG(){return capturedConfig?.HOST_CONFIG}};function notNullOrUndefined(n){return n!=null}function isNullOrUndefined$1(n){return n==null}const isLocalhost=()=>window.location.hostname==="localhost"||window.location.hostname==="127.0.0.1",NO_SCRIPT_RUN_ID="NO_SCRIPT_RUN_ID";var indexMinimal={},minimal$1={},aspromise,hasRequiredAspromise;function requireAspromise(){if(hasRequiredAspromise)return aspromise;hasRequiredAspromise=1,aspromise=n;function n(i,e){for(var t=new Array(arguments.length-1),o=0,d=2,p=!0;d<arguments.length;)t[o++]=arguments[d++];return new Promise(function(y,$){t[o]=function(M){if(p)if(p=!1,M)$(M);else{for(var H=new Array(arguments.length-1),Z=0;Z<H.length;)H[Z++]=arguments[Z];y.apply(null,H)}};try{i.apply(e||null,t)}catch(E){p&&(p=!1,$(E))}})}return aspromise}var base64={},hasRequiredBase64;function requireBase64(){return hasRequiredBase64||(hasRequiredBase64=1,(function(n){var i=n;i.length=function(h){var y=h.length;if(!y)return 0;for(var $=0;--y%4>1&&h.charAt(y)==="=";)++$;return Math.ceil(h.length*3)/4-$};for(var e=new Array(64),t=new Array(123),o=0;o<64;)t[e[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(h,y,$){for(var E=null,M=[],H=0,Z=0,be;y<$;){var ye=h[y++];switch(Z){case 0:M[H++]=e[ye>>2],be=(ye&3)<<4,Z=1;break;case 1:M[H++]=e[be|ye>>4],be=(ye&15)<<2,Z=2;break;case 2:M[H++]=e[be|ye>>6],M[H++]=e[ye&63],Z=0;break}H>8191&&((E||(E=[])).push(String.fromCharCode.apply(String,M)),H=0)}return Z&&(M[H++]=e[be],M[H++]=61,Z===1&&(M[H++]=61)),E?(H&&E.push(String.fromCharCode.apply(String,M.slice(0,H))),E.join("")):String.fromCharCode.apply(String,M.slice(0,H))};var d="invalid encoding";i.decode=function(h,y,$){for(var E=$,M=0,H,Z=0;Z<h.length;){var be=h.charCodeAt(Z++);if(be===61&&M>1)break;if((be=t[be])===void 0)throw Error(d);switch(M){case 0:H=be,M=1;break;case 1:y[$++]=H<<2|(be&48)>>4,H=be,M=2;break;case 2:y[$++]=(H&15)<<4|(be&60)>>2,H=be,M=3;break;case 3:y[$++]=(H&3)<<6|be,M=0;break}}if(M===1)throw Error(d);return $-E},i.test=function(h){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(h)}})(base64)),base64}var eventemitter,hasRequiredEventemitter;function requireEventemitter(){if(hasRequiredEventemitter)return eventemitter;hasRequiredEventemitter=1,eventemitter=n;function n(){this._listeners={}}return n.prototype.on=function(e,t,o){return(this._listeners[e]||(this._listeners[e]=[])).push({fn:t,ctx:o||this}),this},n.prototype.off=function(e,t){if(e===void 0)this._listeners={};else if(t===void 0)this._listeners[e]=[];else for(var o=this._listeners[e],d=0;d<o.length;)o[d].fn===t?o.splice(d,1):++d;return this},n.prototype.emit=function(e){var t=this._listeners[e];if(t){for(var o=[],d=1;d<arguments.length;)o.push(arguments[d++]);for(d=0;d<t.length;)t[d].fn.apply(t[d++].ctx,o)}return this},eventemitter}var float,hasRequiredFloat;function requireFloat(){if(hasRequiredFloat)return float;hasRequiredFloat=1,float=n(n);function n(d){return typeof Float32Array<"u"?(function(){var p=new Float32Array([-0]),h=new Uint8Array(p.buffer),y=h[3]===128;function $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3]}function E(Z,be,ye){p[0]=Z,be[ye]=h[3],be[ye+1]=h[2],be[ye+2]=h[1],be[ye+3]=h[0]}d.writeFloatLE=y?$:E,d.writeFloatBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],p[0]}function H(Z,be){return h[3]=Z[be],h[2]=Z[be+1],h[1]=Z[be+2],h[0]=Z[be+3],p[0]}d.readFloatLE=y?M:H,d.readFloatBE=y?H:M})():(function(){function p(y,$,E,M){var H=$<0?1:0;if(H&&($=-$),$===0)y(1/$>0?0:2147483648,E,M);else if(isNaN($))y(2143289344,E,M);else if($>34028234663852886e22)y((H<<31|2139095040)>>>0,E,M);else if($<11754943508222875e-54)y((H<<31|Math.round($/1401298464324817e-60))>>>0,E,M);else{var Z=Math.floor(Math.log($)/Math.LN2),be=Math.round($*Math.pow(2,-Z)*8388608)&8388607;y((H<<31|Z+127<<23|be)>>>0,E,M)}}d.writeFloatLE=p.bind(null,i),d.writeFloatBE=p.bind(null,e);function h(y,$,E){var M=y($,E),H=(M>>31)*2+1,Z=M>>>23&255,be=M&8388607;return Z===255?be?NaN:H*(1/0):Z===0?H*1401298464324817e-60*be:H*Math.pow(2,Z-150)*(be+8388608)}d.readFloatLE=h.bind(null,t),d.readFloatBE=h.bind(null,o)})(),typeof Float64Array<"u"?(function(){var p=new Float64Array([-0]),h=new Uint8Array(p.buffer),y=h[7]===128;function $(Z,be,ye){p[0]=Z,be[ye]=h[0],be[ye+1]=h[1],be[ye+2]=h[2],be[ye+3]=h[3],be[ye+4]=h[4],be[ye+5]=h[5],be[ye+6]=h[6],be[ye+7]=h[7]}function E(Z,be,ye){p[0]=Z,be[ye]=h[7],be[ye+1]=h[6],be[ye+2]=h[5],be[ye+3]=h[4],be[ye+4]=h[3],be[ye+5]=h[2],be[ye+6]=h[1],be[ye+7]=h[0]}d.writeDoubleLE=y?$:E,d.writeDoubleBE=y?E:$;function M(Z,be){return h[0]=Z[be],h[1]=Z[be+1],h[2]=Z[be+2],h[3]=Z[be+3],h[4]=Z[be+4],h[5]=Z[be+5],h[6]=Z[be+6],h[7]=Z[be+7],p[0]}function H(Z,be){return h[7]=Z[be],h[6]=Z[be+1],h[5]=Z[be+2],h[4]=Z[be+3],h[3]=Z[be+4],h[2]=Z[be+5],h[1]=Z[be+6],h[0]=Z[be+7],p[0]}d.readDoubleLE=y?M:H,d.readDoubleBE=y?H:M})():(function(){function p(y,$,E,M,H,Z){var be=M<0?1:0;if(be&&(M=-M),M===0)y(0,H,Z+$),y(1/M>0?0:2147483648,H,Z+E);else if(isNaN(M))y(0,H,Z+$),y(2146959360,H,Z+E);else if(M>17976931348623157e292)y(0,H,Z+$),y((be<<31|2146435072)>>>0,H,Z+E);else{var ye;if(M<22250738585072014e-324)ye=M/5e-324,y(ye>>>0,H,Z+$),y((be<<31|ye/4294967296)>>>0,H,Z+E);else{var we=Math.floor(Math.log(M)/Math.LN2);we===1024&&(we=1023),ye=M*Math.pow(2,-we),y(ye*4503599627370496>>>0,H,Z+$),y((be<<31|we+1023<<20|ye*1048576&1048575)>>>0,H,Z+E)}}}d.writeDoubleLE=p.bind(null,i,0,4),d.writeDoubleBE=p.bind(null,e,4,0);function h(y,$,E,M,H){var Z=y(M,H+$),be=y(M,H+E),ye=(be>>31)*2+1,we=be>>>20&2047,Ce=4294967296*(be&1048575)+Z;return we===2047?Ce?NaN:ye*(1/0):we===0?ye*5e-324*Ce:ye*Math.pow(2,we-1075)*(Ce+4503599627370496)}d.readDoubleLE=h.bind(null,t,0,4),d.readDoubleBE=h.bind(null,o,4,0)})(),d}function i(d,p,h){p[h]=d&255,p[h+1]=d>>>8&255,p[h+2]=d>>>16&255,p[h+3]=d>>>24}function e(d,p,h){p[h]=d>>>24,p[h+1]=d>>>16&255,p[h+2]=d>>>8&255,p[h+3]=d&255}function t(d,p){return(d[p]|d[p+1]<<8|d[p+2]<<16|d[p+3]<<24)>>>0}function o(d,p){return(d[p]<<24|d[p+1]<<16|d[p+2]<<8|d[p+3])>>>0}return float}var inquire_1,hasRequiredInquire;function requireInquire(){if(hasRequiredInquire)return inquire_1;hasRequiredInquire=1,inquire_1=inquire;function inquire(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(n){}return null}return inquire_1}var utf8={},hasRequiredUtf8;function requireUtf8(){return hasRequiredUtf8||(hasRequiredUtf8=1,(function(n){var i=n;i.length=function(t){for(var o=0,d=0,p=0;p<t.length;++p)d=t.charCodeAt(p),d<128?o+=1:d<2048?o+=2:(d&64512)===55296&&(t.charCodeAt(p+1)&64512)===56320?(++p,o+=4):o+=3;return o},i.read=function(t,o,d){var p=d-o;if(p<1)return"";for(var h=null,y=[],$=0,E;o<d;)E=t[o++],E<128?y[$++]=E:E>191&&E<224?y[$++]=(E&31)<<6|t[o++]&63:E>239&&E<365?(E=((E&7)<<18|(t[o++]&63)<<12|(t[o++]&63)<<6|t[o++]&63)-65536,y[$++]=55296+(E>>10),y[$++]=56320+(E&1023)):y[$++]=(E&15)<<12|(t[o++]&63)<<6|t[o++]&63,$>8191&&((h||(h=[])).push(String.fromCharCode.apply(String,y)),$=0);return h?($&&h.push(String.fromCharCode.apply(String,y.slice(0,$))),h.join("")):String.fromCharCode.apply(String,y.slice(0,$))},i.write=function(t,o,d){for(var p=d,h,y,$=0;$<t.length;++$)h=t.charCodeAt($),h<128?o[d++]=h:h<2048?(o[d++]=h>>6|192,o[d++]=h&63|128):(h&64512)===55296&&((y=t.charCodeAt($+1))&64512)===56320?(h=65536+((h&1023)<<10)+(y&1023),++$,o[d++]=h>>18|240,o[d++]=h>>12&63|128,o[d++]=h>>6&63|128,o[d++]=h&63|128):(o[d++]=h>>12|224,o[d++]=h>>6&63|128,o[d++]=h&63|128);return d-p}})(utf8)),utf8}var pool_1,hasRequiredPool;function requirePool(){if(hasRequiredPool)return pool_1;hasRequiredPool=1,pool_1=n;function n(i,e,t){var o=t||8192,d=o>>>1,p=null,h=o;return function($){if($<1||$>d)return i($);h+$>o&&(p=i(o),h=0);var E=e.call(p,h,h+=$);return h&7&&(h=(h|7)+1),E}}return pool_1}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var n=requireMinimal$1();function i(d,p){this.lo=d>>>0,this.hi=p>>>0}var e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(p){if(p===0)return e;var h=p<0;h&&(p=-p);var y=p>>>0,$=(p-y)/4294967296>>>0;return h&&($=~$>>>0,y=~y>>>0,++y>4294967295&&(y=0,++$>4294967295&&($=0))),new i(y,$)},i.from=function(p){if(typeof p=="number")return i.fromNumber(p);if(n.isString(p))if(n.Long)p=n.Long.fromString(p);else return i.fromNumber(parseInt(p,10));return p.low||p.high?new i(p.low>>>0,p.high>>>0):e},i.prototype.toNumber=function(p){if(!p&&this.hi>>>31){var h=~this.lo+1>>>0,y=~this.hi>>>0;return h||(y=y+1>>>0),-(h+y*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(p){return n.Long?new n.Long(this.lo|0,this.hi|0,!!p):{low:this.lo|0,high:this.hi|0,unsigned:!!p}};var o=String.prototype.charCodeAt;return i.fromHash=function(p){return p===t?e:new i((o.call(p,0)|o.call(p,1)<<8|o.call(p,2)<<16|o.call(p,3)<<24)>>>0,(o.call(p,4)|o.call(p,5)<<8|o.call(p,6)<<16|o.call(p,7)<<24)>>>0)},i.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)},i.prototype.zzEncode=function(){var p=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^p)>>>0,this.lo=(this.lo<<1^p)>>>0,this},i.prototype.zzDecode=function(){var p=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^p)>>>0,this.hi=(this.hi>>>1^p)>>>0,this},i.prototype.length=function(){var p=this.lo,h=(this.lo>>>28|this.hi<<4)>>>0,y=this.hi>>>24;return y===0?h===0?p<16384?p<128?1:2:p<2097152?3:4:h<16384?h<128?5:6:h<2097152?7:8:y<128?9:10},longbits}var hasRequiredMinimal$1;function requireMinimal$1(){return hasRequiredMinimal$1||(hasRequiredMinimal$1=1,(function(n){var i=n;i.asPromise=requireAspromise(),i.base64=requireBase64(),i.EventEmitter=requireEventemitter(),i.float=requireFloat(),i.inquire=requireInquire(),i.utf8=requireUtf8(),i.pool=requirePool(),i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||minimal$1,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(d){return typeof d=="number"&&isFinite(d)&&Math.floor(d)===d},i.isString=function(d){return typeof d=="string"||d instanceof String},i.isObject=function(d){return d&&typeof d=="object"},i.isset=i.isSet=function(d,p){var h=d[p];return h!=null&&d.hasOwnProperty(p)?typeof h!="object"||(Array.isArray(h)?h.length:Object.keys(h).length)>0:!1},i.Buffer=(function(){try{var o=i.inquire("buffer").Buffer;return o.prototype.utf8Write?o:null}catch{return null}})(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(d){return typeof d=="number"?i.Buffer?i._Buffer_allocUnsafe(d):new i.Array(d):i.Buffer?i._Buffer_from(d):typeof Uint8Array>"u"?d:new Uint8Array(d)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(d){return d?i.LongBits.from(d).toHash():i.LongBits.zeroHash},i.longFromHash=function(d,p){var h=i.LongBits.fromHash(d);return i.Long?i.Long.fromBits(h.lo,h.hi,p):h.toNumber(!!p)};function e(o,d,p){for(var h=Object.keys(d),y=0;y<h.length;++y)(o[h[y]]===void 0||!p)&&(o[h[y]]=d[h[y]]);return o}i.merge=e,i.lcFirst=function(d){return d.charAt(0).toLowerCase()+d.substring(1)};function t(o){function d(p,h){if(!(this instanceof d))return new d(p,h);Object.defineProperty(this,"message",{get:function(){return p}}),Error.captureStackTrace?Error.captureStackTrace(this,d):Object.defineProperty(this,"stack",{value:new Error().stack||""}),h&&e(this,h)}return d.prototype=Object.create(Error.prototype,{constructor:{value:d,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return o},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),d}i.newError=t,i.ProtocolError=t("ProtocolError"),i.oneOfGetter=function(d){for(var p={},h=0;h<d.length;++h)p[d[h]]=1;return function(){for(var y=Object.keys(this),$=y.length-1;$>-1;--$)if(p[y[$]]===1&&this[y[$]]!==void 0&&this[y[$]]!==null)return y[$]}},i.oneOfSetter=function(d){return function(p){for(var h=0;h<d.length;++h)d[h]!==p&&delete this[d[h]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var o=i.Buffer;if(!o){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=o.from!==Uint8Array.from&&o.from||function(p,h){return new o(p,h)},i._Buffer_allocUnsafe=o.allocUnsafe||function(p){return new o(p)}}})(minimal$1)),minimal$1}var writer,hasRequiredWriter;function requireWriter(){if(hasRequiredWriter)return writer;hasRequiredWriter=1,writer=y;var n=requireMinimal$1(),i,e=n.LongBits,t=n.base64,o=n.utf8;function d(we,Ce,xe){this.fn=we,this.len=Ce,this.next=void 0,this.val=xe}function p(){}function h(we){this.head=we.head,this.tail=we.tail,this.len=we.len,this.next=we.states}function y(){this.len=0,this.head=new d(p,0,0),this.tail=this.head,this.states=null}var $=function(){return n.Buffer?function(){return(y.create=function(){return new i})()}:function(){return new y}};y.create=$(),y.alloc=function(Ce){return new n.Array(Ce)},n.Array!==Array&&(y.alloc=n.pool(y.alloc,n.Array.prototype.subarray)),y.prototype._push=function(Ce,xe,Ne){return this.tail=this.tail.next=new d(Ce,xe,Ne),this.len+=xe,this};function E(we,Ce,xe){Ce[xe]=we&255}function M(we,Ce,xe){for(;we>127;)Ce[xe++]=we&127|128,we>>>=7;Ce[xe]=we}function H(we,Ce){this.len=we,this.next=void 0,this.val=Ce}H.prototype=Object.create(d.prototype),H.prototype.fn=M,y.prototype.uint32=function(Ce){return this.len+=(this.tail=this.tail.next=new H((Ce=Ce>>>0)<128?1:Ce<16384?2:Ce<2097152?3:Ce<268435456?4:5,Ce)).len,this},y.prototype.int32=function(Ce){return Ce<0?this._push(Z,10,e.fromNumber(Ce)):this.uint32(Ce)},y.prototype.sint32=function(Ce){return this.uint32((Ce<<1^Ce>>31)>>>0)};function Z(we,Ce,xe){for(;we.hi;)Ce[xe++]=we.lo&127|128,we.lo=(we.lo>>>7|we.hi<<25)>>>0,we.hi>>>=7;for(;we.lo>127;)Ce[xe++]=we.lo&127|128,we.lo=we.lo>>>7;Ce[xe++]=we.lo}y.prototype.uint64=function(Ce){var xe=e.from(Ce);return this._push(Z,xe.length(),xe)},y.prototype.int64=y.prototype.uint64,y.prototype.sint64=function(Ce){var xe=e.from(Ce).zzEncode();return this._push(Z,xe.length(),xe)},y.prototype.bool=function(Ce){return this._push(E,1,Ce?1:0)};function be(we,Ce,xe){Ce[xe]=we&255,Ce[xe+1]=we>>>8&255,Ce[xe+2]=we>>>16&255,Ce[xe+3]=we>>>24}y.prototype.fixed32=function(Ce){return this._push(be,4,Ce>>>0)},y.prototype.sfixed32=y.prototype.fixed32,y.prototype.fixed64=function(Ce){var xe=e.from(Ce);return this._push(be,4,xe.lo)._push(be,4,xe.hi)},y.prototype.sfixed64=y.prototype.fixed64,y.prototype.float=function(Ce){return this._push(n.float.writeFloatLE,4,Ce)},y.prototype.double=function(Ce){return this._push(n.float.writeDoubleLE,8,Ce)};var ye=n.Array.prototype.set?function(Ce,xe,Ne){xe.set(Ce,Ne)}:function(Ce,xe,Ne){for(var Fe=0;Fe<Ce.length;++Fe)xe[Ne+Fe]=Ce[Fe]};return y.prototype.bytes=function(Ce){var xe=Ce.length>>>0;if(!xe)return this._push(E,1,0);if(n.isString(Ce)){var Ne=y.alloc(xe=t.length(Ce));t.decode(Ce,Ne,0),Ce=Ne}return this.uint32(xe)._push(ye,xe,Ce)},y.prototype.string=function(Ce){var xe=o.length(Ce);return xe?this.uint32(xe)._push(o.write,xe,Ce):this._push(E,1,0)},y.prototype.fork=function(){return this.states=new h(this),this.head=this.tail=new d(p,0,0),this.len=0,this},y.prototype.reset=function(){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 d(p,0,0),this.len=0),this},y.prototype.ldelim=function(){var Ce=this.head,xe=this.tail,Ne=this.len;return this.reset().uint32(Ne),Ne&&(this.tail.next=Ce.next,this.tail=xe,this.len+=Ne),this},y.prototype.finish=function(){for(var Ce=this.head.next,xe=this.constructor.alloc(this.len),Ne=0;Ce;)Ce.fn(Ce.val,xe,Ne),Ne+=Ce.len,Ce=Ce.next;return xe},y._configure=function(we){i=we,y.create=$(),i._configure()},writer}var writer_buffer,hasRequiredWriter_buffer;function requireWriter_buffer(){if(hasRequiredWriter_buffer)return writer_buffer;hasRequiredWriter_buffer=1,writer_buffer=e;var n=requireWriter();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(){n.call(this)}e._configure=function(){e.alloc=i._Buffer_allocUnsafe,e.writeBytesBuffer=i.Buffer&&i.Buffer.prototype instanceof Uint8Array&&i.Buffer.prototype.set.name==="set"?function(d,p,h){p.set(d,h)}:function(d,p,h){if(d.copy)d.copy(p,h,0,d.length);else for(var y=0;y<d.length;)p[h++]=d[y++]}},e.prototype.bytes=function(d){i.isString(d)&&(d=i._Buffer_from(d,"base64"));var p=d.length>>>0;return this.uint32(p),p&&this._push(e.writeBytesBuffer,p,d),this};function t(o,d,p){o.length<40?i.utf8.write(o,d,p):d.utf8Write?d.utf8Write(o,p):d.write(o,p)}return e.prototype.string=function(d){var p=i.Buffer.byteLength(d);return this.uint32(p),p&&this._push(t,p,d),this},e._configure(),writer_buffer}var reader,hasRequiredReader;function requireReader(){if(hasRequiredReader)return reader;hasRequiredReader=1,reader=d;var n=requireMinimal$1(),i,e=n.LongBits,t=n.utf8;function o(M,H){return RangeError("index out of range: "+M.pos+" + "+(H||1)+" > "+M.len)}function d(M){this.buf=M,this.pos=0,this.len=M.length}var p=typeof Uint8Array<"u"?function(H){if(H instanceof Uint8Array||Array.isArray(H))return new d(H);throw Error("illegal buffer")}:function(H){if(Array.isArray(H))return new d(H);throw Error("illegal buffer")},h=function(){return n.Buffer?function(Z){return(d.create=function(ye){return n.Buffer.isBuffer(ye)?new i(ye):p(ye)})(Z)}:p};d.create=h(),d.prototype._slice=n.Array.prototype.subarray||n.Array.prototype.slice,d.prototype.uint32=(function(){var H=4294967295;return function(){if(H=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(H=(H|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(H=(H|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return H;if((this.pos+=5)>this.len)throw this.pos=this.len,o(this,10);return H}})(),d.prototype.int32=function(){return this.uint32()|0},d.prototype.sint32=function(){var H=this.uint32();return H>>>1^-(H&1)|0};function y(){var M=new e(0,0),H=0;if(this.len-this.pos>4){for(;H<4;++H)if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*7)>>>0,this.buf[this.pos++]<128)return M;if(M.lo=(M.lo|(this.buf[this.pos]&127)<<28)>>>0,M.hi=(M.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return M;H=0}else{for(;H<3;++H){if(this.pos>=this.len)throw o(this);if(M.lo=(M.lo|(this.buf[this.pos]&127)<<H*7)>>>0,this.buf[this.pos++]<128)return M}return M.lo=(M.lo|(this.buf[this.pos++]&127)<<H*7)>>>0,M}if(this.len-this.pos>4){for(;H<5;++H)if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}else for(;H<5;++H){if(this.pos>=this.len)throw o(this);if(M.hi=(M.hi|(this.buf[this.pos]&127)<<H*7+3)>>>0,this.buf[this.pos++]<128)return M}throw Error("invalid varint encoding")}d.prototype.bool=function(){return this.uint32()!==0};function $(M,H){return(M[H-4]|M[H-3]<<8|M[H-2]<<16|M[H-1]<<24)>>>0}d.prototype.fixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)},d.prototype.sfixed32=function(){if(this.pos+4>this.len)throw o(this,4);return $(this.buf,this.pos+=4)|0};function E(){if(this.pos+8>this.len)throw o(this,8);return new e($(this.buf,this.pos+=4),$(this.buf,this.pos+=4))}return d.prototype.float=function(){if(this.pos+4>this.len)throw o(this,4);var H=n.float.readFloatLE(this.buf,this.pos);return this.pos+=4,H},d.prototype.double=function(){if(this.pos+8>this.len)throw o(this,4);var H=n.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,H},d.prototype.bytes=function(){var H=this.uint32(),Z=this.pos,be=this.pos+H;if(be>this.len)throw o(this,H);if(this.pos+=H,Array.isArray(this.buf))return this.buf.slice(Z,be);if(Z===be){var ye=n.Buffer;return ye?ye.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,Z,be)},d.prototype.string=function(){var H=this.bytes();return t.read(H,0,H.length)},d.prototype.skip=function(H){if(typeof H=="number"){if(this.pos+H>this.len)throw o(this,H);this.pos+=H}else do if(this.pos>=this.len)throw o(this);while(this.buf[this.pos++]&128);return this},d.prototype.skipType=function(M){switch(M){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(M=this.uint32()&7)!==4;)this.skipType(M);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+M+" at offset "+this.pos)}return this},d._configure=function(M){i=M,d.create=h(),i._configure();var H=n.Long?"toLong":"toNumber";n.merge(d.prototype,{int64:function(){return y.call(this)[H](!1)},uint64:function(){return y.call(this)[H](!0)},sint64:function(){return y.call(this).zzDecode()[H](!1)},fixed64:function(){return E.call(this)[H](!0)},sfixed64:function(){return E.call(this)[H](!1)}})},reader}var reader_buffer,hasRequiredReader_buffer;function requireReader_buffer(){if(hasRequiredReader_buffer)return reader_buffer;hasRequiredReader_buffer=1,reader_buffer=e;var n=requireReader();(e.prototype=Object.create(n.prototype)).constructor=e;var i=requireMinimal$1();function e(t){n.call(this,t)}return e._configure=function(){i.Buffer&&(e.prototype._slice=i.Buffer.prototype.slice)},e.prototype.string=function(){var o=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+o,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+o,this.len))},e._configure(),reader_buffer}var rpc={},service$1,hasRequiredService$1;function requireService$1(){if(hasRequiredService$1)return service$1;hasRequiredService$1=1,service$1=i;var n=requireMinimal$1();(i.prototype=Object.create(n.EventEmitter.prototype)).constructor=i;function i(e,t,o){if(typeof e!="function")throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=e,this.requestDelimited=!!t,this.responseDelimited=!!o}return i.prototype.rpcCall=function e(t,o,d,p,h){if(!p)throw TypeError("request must be specified");var y=this;if(!h)return n.asPromise(e,y,t,o,d,p);if(!y.rpcImpl){setTimeout(function(){h(Error("already ended"))},0);return}try{return y.rpcImpl(t,o[y.requestDelimited?"encodeDelimited":"encode"](p).finish(),function(E,M){if(E)return y.emit("error",E,t),h(E);if(M===null){y.end(!0);return}if(!(M instanceof d))try{M=d[y.responseDelimited?"decodeDelimited":"decode"](M)}catch(H){return y.emit("error",H,t),h(H)}return y.emit("data",M,t),h(null,M)})}catch($){y.emit("error",$,t),setTimeout(function(){h($)},0);return}},i.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},service$1}var hasRequiredRpc;function requireRpc(){return hasRequiredRpc||(hasRequiredRpc=1,(function(n){var i=n;i.Service=requireService$1()})(rpc)),rpc}var roots,hasRequiredRoots;function requireRoots(){return hasRequiredRoots||(hasRequiredRoots=1,roots={}),roots}var hasRequiredIndexMinimal;function requireIndexMinimal(){return hasRequiredIndexMinimal||(hasRequiredIndexMinimal=1,(function(n){var i=n;i.build="minimal",i.Writer=requireWriter(),i.BufferWriter=requireWriter_buffer(),i.Reader=requireReader(),i.BufferReader=requireReader_buffer(),i.util=requireMinimal$1(),i.rpc=requireRpc(),i.roots=requireRoots(),i.configure=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(indexMinimal)),indexMinimal}var minimal,hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,minimal=requireIndexMinimal()),minimal}var minimalExports=requireMinimal();const $Reader=minimalExports.Reader,$Writer=minimalExports.Writer,$util=minimalExports.util,$root=minimalExports.roots.default||(minimalExports.roots.default={}),Alert=$root.Alert=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.format=0,n.prototype.icon="",n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(34).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Alert;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.format=e.int32();break}case 3:{p.icon=e.string();break}case 4:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Alert)return e;let t=new $root.Alert;switch(e.body!=null&&(t.body=String(e.body)),e.format){default:if(typeof e.format=="number"){t.format=e.format;break}break;case"UNUSED":case 0:t.format=0;break;case"ERROR":case 1:t.format=1;break;case"WARNING":case 2:t.format=2;break;case"INFO":case 3:t.format=3;break;case"SUCCESS":case 4:t.format=4;break}if(e.icon!=null&&(t.icon=String(e.icon)),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Alert.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.format=t.enums===String?"UNUSED":0,o.icon="",o.widthConfig=null),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.format!=null&&e.hasOwnProperty("format")&&(o.format=t.enums===String?$root.Alert.Format[e.format]===void 0?e.format:$root.Alert.Format[e.format]:e.format),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Alert"},n.Format=(function(){const i={},e=Object.create(i);return e[i[0]="UNUSED"]=0,e[i[1]="ERROR"]=1,e[i[2]="WARNING"]=2,e[i[3]="INFO"]=3,e[i[4]="SUCCESS"]=4,e})(),n})(),streamlit=$root.streamlit=(()=>{const n={};return n.WidthConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelWidth=null,i.prototype.remWidth=null;let e;return Object.defineProperty(i.prototype,"widthSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelWidth","remWidth"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelWidth!=null&&Object.hasOwnProperty.call(o,"pixelWidth")&&d.uint32(24).uint32(o.pixelWidth),o.remWidth!=null&&Object.hasOwnProperty.call(o,"remWidth")&&d.uint32(37).float(o.remWidth),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.WidthConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelWidth=o.uint32();break}case 4:{y.remWidth=o.float();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.WidthConfig)return o;let d=new $root.streamlit.WidthConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelWidth!=null&&(d.pixelWidth=o.pixelWidth>>>0),o.remWidth!=null&&(d.remWidth=Number(o.remWidth)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.widthSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.widthSpec="useContent")),o.pixelWidth!=null&&o.hasOwnProperty("pixelWidth")&&(p.pixelWidth=o.pixelWidth,d.oneofs&&(p.widthSpec="pixelWidth")),o.remWidth!=null&&o.hasOwnProperty("remWidth")&&(p.remWidth=d.json&&!isFinite(o.remWidth)?String(o.remWidth):o.remWidth,d.oneofs&&(p.widthSpec="remWidth")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.WidthConfig"},i})(),n.HeightConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.useStretch=null,i.prototype.useContent=null,i.prototype.pixelHeight=null,i.prototype.remHeight=null;let e;return Object.defineProperty(i.prototype,"heightSpec",{get:$util.oneOfGetter(e=["useStretch","useContent","pixelHeight","remHeight"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.useStretch!=null&&Object.hasOwnProperty.call(o,"useStretch")&&d.uint32(8).bool(o.useStretch),o.useContent!=null&&Object.hasOwnProperty.call(o,"useContent")&&d.uint32(16).bool(o.useContent),o.pixelHeight!=null&&Object.hasOwnProperty.call(o,"pixelHeight")&&d.uint32(24).uint32(o.pixelHeight),o.remHeight!=null&&Object.hasOwnProperty.call(o,"remHeight")&&d.uint32(37).float(o.remHeight),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.HeightConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.useStretch=o.bool();break}case 2:{y.useContent=o.bool();break}case 3:{y.pixelHeight=o.uint32();break}case 4:{y.remHeight=o.float();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.HeightConfig)return o;let d=new $root.streamlit.HeightConfig;return o.useStretch!=null&&(d.useStretch=!!o.useStretch),o.useContent!=null&&(d.useContent=!!o.useContent),o.pixelHeight!=null&&(d.pixelHeight=o.pixelHeight>>>0),o.remHeight!=null&&(d.remHeight=Number(o.remHeight)),d},i.toObject=function(o,d){d||(d={});let p={};return o.useStretch!=null&&o.hasOwnProperty("useStretch")&&(p.useStretch=o.useStretch,d.oneofs&&(p.heightSpec="useStretch")),o.useContent!=null&&o.hasOwnProperty("useContent")&&(p.useContent=o.useContent,d.oneofs&&(p.heightSpec="useContent")),o.pixelHeight!=null&&o.hasOwnProperty("pixelHeight")&&(p.pixelHeight=o.pixelHeight,d.oneofs&&(p.heightSpec="pixelHeight")),o.remHeight!=null&&o.hasOwnProperty("remHeight")&&(p.remHeight=d.json&&!isFinite(o.remHeight)?String(o.remHeight):o.remHeight,d.oneofs&&(p.heightSpec="remHeight")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.HeightConfig"},i})(),n.GapSize=(function(){const i={},e=Object.create(i);return e[i[0]="GAP_UNDEFINED"]=0,e[i[1]="SMALL"]=1,e[i[2]="MEDIUM"]=2,e[i[3]="LARGE"]=3,e[i[4]="NONE"]=4,e[i[5]="XXSMALL"]=5,e[i[6]="XSMALL"]=6,e[i[7]="XLARGE"]=7,e[i[8]="XXLARGE"]=8,e})(),n.GapConfig=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.gapSize=null;let e;return Object.defineProperty(i.prototype,"gapSpec",{get:$util.oneOfGetter(e=["gapSize"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.gapSize!=null&&Object.hasOwnProperty.call(o,"gapSize")&&d.uint32(8).int32(o.gapSize),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.streamlit.GapConfig;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gapSize=o.int32();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.streamlit.GapConfig)return o;let d=new $root.streamlit.GapConfig;switch(o.gapSize){default:if(typeof o.gapSize=="number"){d.gapSize=o.gapSize;break}break;case"GAP_UNDEFINED":case 0:d.gapSize=0;break;case"SMALL":case 1:d.gapSize=1;break;case"MEDIUM":case 2:d.gapSize=2;break;case"LARGE":case 3:d.gapSize=3;break;case"NONE":case 4:d.gapSize=4;break;case"XXSMALL":case 5:d.gapSize=5;break;case"XSMALL":case 6:d.gapSize=6;break;case"XLARGE":case 7:d.gapSize=7;break;case"XXLARGE":case 8:d.gapSize=8;break}return d},i.toObject=function(o,d){d||(d={});let p={};return o.gapSize!=null&&o.hasOwnProperty("gapSize")&&(p.gapSize=d.enums===String?$root.streamlit.GapSize[o.gapSize]===void 0?o.gapSize:$root.streamlit.GapSize[o.gapSize]:o.gapSize,d.oneofs&&(p.gapSpec="gapSize")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/streamlit.GapConfig"},i})(),n.ButtonLikeIconPosition=(function(){const i={},e=Object.create(i);return e[i[0]="LEFT"]=0,e[i[1]="RIGHT"]=1,e})(),n.TextAlignmentConfig=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.alignment=0,i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.alignment!=null&&Object.hasOwnProperty.call(t,"alignment")&&o.uint32(8).int32(t.alignment),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.streamlit.TextAlignmentConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.alignment=t.int32();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.streamlit.TextAlignmentConfig)return t;let o=new $root.streamlit.TextAlignmentConfig;switch(t.alignment){default:if(typeof t.alignment=="number"){o.alignment=t.alignment;break}break;case"UNSPECIFIED":case 0:o.alignment=0;break;case"LEFT":case 1:o.alignment=1;break;case"CENTER":case 2:o.alignment=2;break;case"RIGHT":case 3:o.alignment=3;break;case"JUSTIFY":case 4:o.alignment=4;break}return o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.alignment=o.enums===String?"UNSPECIFIED":0),t.alignment!=null&&t.hasOwnProperty("alignment")&&(d.alignment=o.enums===String?$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]===void 0?t.alignment:$root.streamlit.TextAlignmentConfig.Alignment[t.alignment]:t.alignment),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/streamlit.TextAlignmentConfig"},i.Alignment=(function(){const e={},t=Object.create(e);return t[e[0]="UNSPECIFIED"]=0,t[e[1]="LEFT"]=1,t[e[2]="CENTER"]=2,t[e[3]="RIGHT"]=3,t[e[4]="JUSTIFY"]=4,t})(),i})(),n})();$root.AppPage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.icon="",n.prototype.isDefault=!1,n.prototype.sectionHeader="",n.prototype.urlPathname="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),e.isDefault!=null&&Object.hasOwnProperty.call(e,"isDefault")&&t.uint32(32).bool(e.isDefault),e.sectionHeader!=null&&Object.hasOwnProperty.call(e,"sectionHeader")&&t.uint32(42).string(e.sectionHeader),e.urlPathname!=null&&Object.hasOwnProperty.call(e,"urlPathname")&&t.uint32(50).string(e.urlPathname),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AppPage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageScriptHash=e.string();break}case 2:{p.pageName=e.string();break}case 3:{p.icon=e.string();break}case 4:{p.isDefault=e.bool();break}case 5:{p.sectionHeader=e.string();break}case 6:{p.urlPathname=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AppPage)return e;let t=new $root.AppPage;return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.icon!=null&&(t.icon=String(e.icon)),e.isDefault!=null&&(t.isDefault=!!e.isDefault),e.sectionHeader!=null&&(t.sectionHeader=String(e.sectionHeader)),e.urlPathname!=null&&(t.urlPathname=String(e.urlPathname)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageScriptHash="",o.pageName="",o.icon="",o.isDefault=!1,o.sectionHeader="",o.urlPathname=""),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.isDefault!=null&&e.hasOwnProperty("isDefault")&&(o.isDefault=e.isDefault),e.sectionHeader!=null&&e.hasOwnProperty("sectionHeader")&&(o.sectionHeader=e.sectionHeader),e.urlPathname!=null&&e.hasOwnProperty("urlPathname")&&(o.urlPathname=e.urlPathname),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AppPage"},n})();$root.ArrowData=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.prototype.styler=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),e.styler!=null&&Object.hasOwnProperty.call(e,"styler")&&$root.ArrowData.PandasStyler.encode(e.styler,t.uint32(18).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowData;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}case 2:{p.styler=$root.ArrowData.PandasStyler.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowData)return e;let t=new $root.ArrowData;if(e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),e.styler!=null){if(typeof e.styler!="object")throw TypeError(".ArrowData.styler: object expected");t.styler=$root.ArrowData.PandasStyler.fromObject(e.styler)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data))),o.styler=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.styler!=null&&e.hasOwnProperty("styler")&&(o.styler=$root.ArrowData.PandasStyler.toObject(e.styler,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowData"},n.PandasStyler=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.uuid="",i.prototype.caption="",i.prototype.styles="",i.prototype.displayValues=$util.newBuffer([]),i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.uuid!=null&&Object.hasOwnProperty.call(t,"uuid")&&o.uint32(10).string(t.uuid),t.caption!=null&&Object.hasOwnProperty.call(t,"caption")&&o.uint32(18).string(t.caption),t.styles!=null&&Object.hasOwnProperty.call(t,"styles")&&o.uint32(26).string(t.styles),t.displayValues!=null&&Object.hasOwnProperty.call(t,"displayValues")&&o.uint32(34).bytes(t.displayValues),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ArrowData.PandasStyler;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.uuid=t.string();break}case 2:{h.caption=t.string();break}case 3:{h.styles=t.string();break}case 4:{h.displayValues=t.bytes();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.ArrowData.PandasStyler)return t;let o=new $root.ArrowData.PandasStyler;return t.uuid!=null&&(o.uuid=String(t.uuid)),t.caption!=null&&(o.caption=String(t.caption)),t.styles!=null&&(o.styles=String(t.styles)),t.displayValues!=null&&(typeof t.displayValues=="string"?$util.base64.decode(t.displayValues,o.displayValues=$util.newBuffer($util.base64.length(t.displayValues)),0):t.displayValues.length>=0&&(o.displayValues=t.displayValues)),o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.uuid="",d.caption="",d.styles="",o.bytes===String?d.displayValues="":(d.displayValues=[],o.bytes!==Array&&(d.displayValues=$util.newBuffer(d.displayValues)))),t.uuid!=null&&t.hasOwnProperty("uuid")&&(d.uuid=t.uuid),t.caption!=null&&t.hasOwnProperty("caption")&&(d.caption=t.caption),t.styles!=null&&t.hasOwnProperty("styles")&&(d.styles=t.styles),t.displayValues!=null&&t.hasOwnProperty("displayValues")&&(d.displayValues=o.bytes===String?$util.base64.encode(t.displayValues,0,t.displayValues.length):o.bytes===Array?Array.prototype.slice.call(t.displayValues):t.displayValues),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ArrowData.PandasStyler"},i})(),n})();$root.ArrowNamedDataSet=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.hasName=!1,n.prototype.data=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowData.encode(e.data,t.uint32(18).fork()).ldelim(),e.hasName!=null&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowNamedDataSet;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 3:{p.hasName=e.bool();break}case 2:{p.data=$root.ArrowData.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowNamedDataSet)return e;let t=new $root.ArrowNamedDataSet;if(e.name!=null&&(t.name=String(e.name)),e.hasName!=null&&(t.hasName=!!e.hasName),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=$root.ArrowData.fromObject(e.data)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.name="",o.data=null,o.hasName=!1),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.ArrowData.toObject(e.data,t)),e.hasName!=null&&e.hasOwnProperty("hasName")&&(o.hasName=e.hasName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowNamedDataSet"},n})();$root.ArrowVegaLiteChart=(()=>{function n(i){if(this.datasets=[],this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.data=null,n.prototype.datasets=$util.emptyArray,n.prototype.useContainerWidth=!1,n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowData.encode(e.data,t.uint32(18).fork()).ldelim(),e.datasets!=null&&e.datasets.length)for(let o=0;o<e.datasets.length;++o)$root.ArrowNamedDataSet.encode(e.datasets[o],t.uint32(34).fork()).ldelim();if(e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length)for(let o=0;o<e.selectionMode.length;++o)t.uint32(66).string(e.selectionMode[o]);return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowVegaLiteChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 2:{p.data=$root.ArrowData.decode(e,e.uint32());break}case 4:{p.datasets&&p.datasets.length||(p.datasets=[]),p.datasets.push($root.ArrowNamedDataSet.decode(e,e.uint32()));break}case 5:{p.useContainerWidth=e.bool();break}case 6:{p.theme=e.string();break}case 7:{p.id=e.string();break}case 8:{p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),p.selectionMode.push(e.string());break}case 9:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowVegaLiteChart)return e;let t=new $root.ArrowVegaLiteChart;if(e.spec!=null&&(t.spec=String(e.spec)),e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=$root.ArrowData.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let o=0;o<e.datasets.length;++o){if(typeof e.datasets[o]!="object")throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[o]=$root.ArrowNamedDataSet.fromObject(e.datasets[o])}}if(e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".ArrowVegaLiteChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)t.selectionMode[o]=String(e.selectionMode[o])}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.datasets=[],o.selectionMode=[]),t.defaults&&(o.spec="",o.data=null,o.useContainerWidth=!1,o.theme="",o.id="",o.formId=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.ArrowData.toObject(e.data,t)),e.datasets&&e.datasets.length){o.datasets=[];for(let d=0;d<e.datasets.length;++d)o.datasets[d]=$root.ArrowNamedDataSet.toObject(e.datasets[d],t)}if(e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.theme!=null&&e.hasOwnProperty("theme")&&(o.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowVegaLiteChart"},n})();$root.Audio=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(48).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(56).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&o.uint32(64).bool(t.autoplay),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(74).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(82).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Audio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 6:{h.endTime=t.int32();break}case 7:{h.loop=t.bool();break}case 8:{h.autoplay=t.bool();break}case 9:{h.id=t.string();break}case 10:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Audio)return t;let o=new $root.Audio;if(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Audio.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.startTime=0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Audio"},n})();$root.AudioInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.sampleRate=null;let i;return Object.defineProperty(n.prototype,"_sampleRate",{get:$util.oneOfGetter(i=["sampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(26).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(34).string(t.formId),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(40).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(50).fork()).ldelim(),t.sampleRate!=null&&Object.hasOwnProperty.call(t,"sampleRate")&&o.uint32(56).int32(t.sampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.AudioInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.help=t.string();break}case 4:{h.formId=t.string();break}case 5:{h.disabled=t.bool();break}case 6:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 7:{h.sampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.AudioInput)return t;let o=new $root.AudioInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".AudioInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.sampleRate!=null&&(o.sampleRate=t.sampleRate|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.sampleRate!=null&&t.hasOwnProperty("sampleRate")&&(d.sampleRate=t.sampleRate,o.oneofs&&(d._sampleRate="sampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/AudioInput"},n})();const LabelVisibility=$root.LabelVisibility=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LabelVisibility;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LabelVisibility)return e;let t=new $root.LabelVisibility;switch(e.value){default:if(typeof e.value=="number"){t.value=e.value;break}break;case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=t.enums===String?"VISIBLE":0),e.value!=null&&e.hasOwnProperty("value")&&(o.value=t.enums===String?$root.LabelVisibility.LabelVisibilityOptions[e.value]===void 0?e.value:$root.LabelVisibility.LabelVisibilityOptions[e.value]:e.value),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LabelVisibility"},n.LabelVisibilityOptions=(function(){const i={},e=Object.create(i);return e[i[0]="VISIBLE"]=0,e[i[1]="HIDDEN"]=1,e[i[2]="COLLAPSED"]=2,e})(),n})();$root.AuthRedirect=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AuthRedirect;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AuthRedirect)return e;let t=new $root.AuthRedirect;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AuthRedirect"},n})();$root.AutoRerun=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.interval=0,n.prototype.fragmentId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.interval!=null&&Object.hasOwnProperty.call(e,"interval")&&t.uint32(13).float(e.interval),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(18).string(e.fragmentId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.AutoRerun;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.interval=e.float();break}case 2:{p.fragmentId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.AutoRerun)return e;let t=new $root.AutoRerun;return e.interval!=null&&(t.interval=Number(e.interval)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.interval=0,o.fragmentId=""),e.interval!=null&&e.hasOwnProperty("interval")&&(o.interval=t.json&&!isFinite(e.interval)?String(e.interval):e.interval),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/AutoRerun"},n})();const BackMsg=$root.BackMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.clearCache=null,n.prototype.setRunOnSave=null,n.prototype.stopScript=null,n.prototype.rerunScript=null,n.prototype.loadGitInfo=null,n.prototype.debugDisconnectWebsocket=null,n.prototype.debugShutdownRuntime=null,n.prototype.fileUrlsRequest=null,n.prototype.appHeartbeat=null,n.prototype.deferredFileRequest=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["clearCache","setRunOnSave","stopScript","rerunScript","loadGitInfo","debugDisconnectWebsocket","debugShutdownRuntime","fileUrlsRequest","appHeartbeat","deferredFileRequest"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.clearCache!=null&&Object.hasOwnProperty.call(t,"clearCache")&&o.uint32(40).bool(t.clearCache),t.setRunOnSave!=null&&Object.hasOwnProperty.call(t,"setRunOnSave")&&o.uint32(48).bool(t.setRunOnSave),t.stopScript!=null&&Object.hasOwnProperty.call(t,"stopScript")&&o.uint32(56).bool(t.stopScript),t.rerunScript!=null&&Object.hasOwnProperty.call(t,"rerunScript")&&$root.ClientState.encode(t.rerunScript,o.uint32(90).fork()).ldelim(),t.loadGitInfo!=null&&Object.hasOwnProperty.call(t,"loadGitInfo")&&o.uint32(96).bool(t.loadGitInfo),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugLastBackmsgId")&&o.uint32(106).string(t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&Object.hasOwnProperty.call(t,"debugDisconnectWebsocket")&&o.uint32(112).bool(t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&Object.hasOwnProperty.call(t,"debugShutdownRuntime")&&o.uint32(120).bool(t.debugShutdownRuntime),t.fileUrlsRequest!=null&&Object.hasOwnProperty.call(t,"fileUrlsRequest")&&$root.FileURLsRequest.encode(t.fileUrlsRequest,o.uint32(130).fork()).ldelim(),t.appHeartbeat!=null&&Object.hasOwnProperty.call(t,"appHeartbeat")&&o.uint32(136).bool(t.appHeartbeat),t.deferredFileRequest!=null&&Object.hasOwnProperty.call(t,"deferredFileRequest")&&$root.DeferredFileRequest.encode(t.deferredFileRequest,o.uint32(146).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BackMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 5:{h.clearCache=t.bool();break}case 6:{h.setRunOnSave=t.bool();break}case 7:{h.stopScript=t.bool();break}case 11:{h.rerunScript=$root.ClientState.decode(t,t.uint32());break}case 12:{h.loadGitInfo=t.bool();break}case 14:{h.debugDisconnectWebsocket=t.bool();break}case 15:{h.debugShutdownRuntime=t.bool();break}case 16:{h.fileUrlsRequest=$root.FileURLsRequest.decode(t,t.uint32());break}case 17:{h.appHeartbeat=t.bool();break}case 18:{h.deferredFileRequest=$root.DeferredFileRequest.decode(t,t.uint32());break}case 13:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BackMsg)return t;let o=new $root.BackMsg;if(t.clearCache!=null&&(o.clearCache=!!t.clearCache),t.setRunOnSave!=null&&(o.setRunOnSave=!!t.setRunOnSave),t.stopScript!=null&&(o.stopScript=!!t.stopScript),t.rerunScript!=null){if(typeof t.rerunScript!="object")throw TypeError(".BackMsg.rerunScript: object expected");o.rerunScript=$root.ClientState.fromObject(t.rerunScript)}if(t.loadGitInfo!=null&&(o.loadGitInfo=!!t.loadGitInfo),t.debugDisconnectWebsocket!=null&&(o.debugDisconnectWebsocket=!!t.debugDisconnectWebsocket),t.debugShutdownRuntime!=null&&(o.debugShutdownRuntime=!!t.debugShutdownRuntime),t.fileUrlsRequest!=null){if(typeof t.fileUrlsRequest!="object")throw TypeError(".BackMsg.fileUrlsRequest: object expected");o.fileUrlsRequest=$root.FileURLsRequest.fromObject(t.fileUrlsRequest)}if(t.appHeartbeat!=null&&(o.appHeartbeat=!!t.appHeartbeat),t.deferredFileRequest!=null){if(typeof t.deferredFileRequest!="object")throw TypeError(".BackMsg.deferredFileRequest: object expected");o.deferredFileRequest=$root.DeferredFileRequest.fromObject(t.deferredFileRequest)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugLastBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.debugLastBackmsgId=""),t.clearCache!=null&&t.hasOwnProperty("clearCache")&&(d.clearCache=t.clearCache,o.oneofs&&(d.type="clearCache")),t.setRunOnSave!=null&&t.hasOwnProperty("setRunOnSave")&&(d.setRunOnSave=t.setRunOnSave,o.oneofs&&(d.type="setRunOnSave")),t.stopScript!=null&&t.hasOwnProperty("stopScript")&&(d.stopScript=t.stopScript,o.oneofs&&(d.type="stopScript")),t.rerunScript!=null&&t.hasOwnProperty("rerunScript")&&(d.rerunScript=$root.ClientState.toObject(t.rerunScript,o),o.oneofs&&(d.type="rerunScript")),t.loadGitInfo!=null&&t.hasOwnProperty("loadGitInfo")&&(d.loadGitInfo=t.loadGitInfo,o.oneofs&&(d.type="loadGitInfo")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.debugDisconnectWebsocket!=null&&t.hasOwnProperty("debugDisconnectWebsocket")&&(d.debugDisconnectWebsocket=t.debugDisconnectWebsocket,o.oneofs&&(d.type="debugDisconnectWebsocket")),t.debugShutdownRuntime!=null&&t.hasOwnProperty("debugShutdownRuntime")&&(d.debugShutdownRuntime=t.debugShutdownRuntime,o.oneofs&&(d.type="debugShutdownRuntime")),t.fileUrlsRequest!=null&&t.hasOwnProperty("fileUrlsRequest")&&(d.fileUrlsRequest=$root.FileURLsRequest.toObject(t.fileUrlsRequest,o),o.oneofs&&(d.type="fileUrlsRequest")),t.appHeartbeat!=null&&t.hasOwnProperty("appHeartbeat")&&(d.appHeartbeat=t.appHeartbeat,o.oneofs&&(d.type="appHeartbeat")),t.deferredFileRequest!=null&&t.hasOwnProperty("deferredFileRequest")&&(d.deferredFileRequest=$root.DeferredFileRequest.toObject(t.deferredFileRequest,o),o.oneofs&&(d.type="deferredFileRequest")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BackMsg"},n})();$root.DeferredFileRequest=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(18).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileRequest)return e;let t=new $root.DeferredFileRequest;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.sessionId=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileRequest"},n})();$root.ContextInfo=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.timezone=null,n.prototype.timezoneOffset=null,n.prototype.locale=null,n.prototype.url=null,n.prototype.isEmbedded=null,n.prototype.colorScheme=null;let i;return Object.defineProperty(n.prototype,"_timezone",{get:$util.oneOfGetter(i=["timezone"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_timezoneOffset",{get:$util.oneOfGetter(i=["timezoneOffset"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_locale",{get:$util.oneOfGetter(i=["locale"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_url",{get:$util.oneOfGetter(i=["url"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_isEmbedded",{get:$util.oneOfGetter(i=["isEmbedded"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_colorScheme",{get:$util.oneOfGetter(i=["colorScheme"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.timezone!=null&&Object.hasOwnProperty.call(t,"timezone")&&o.uint32(10).string(t.timezone),t.timezoneOffset!=null&&Object.hasOwnProperty.call(t,"timezoneOffset")&&o.uint32(16).int32(t.timezoneOffset),t.locale!=null&&Object.hasOwnProperty.call(t,"locale")&&o.uint32(26).string(t.locale),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(34).string(t.url),t.isEmbedded!=null&&Object.hasOwnProperty.call(t,"isEmbedded")&&o.uint32(40).bool(t.isEmbedded),t.colorScheme!=null&&Object.hasOwnProperty.call(t,"colorScheme")&&o.uint32(50).string(t.colorScheme),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ContextInfo;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.timezone=t.string();break}case 2:{h.timezoneOffset=t.int32();break}case 3:{h.locale=t.string();break}case 4:{h.url=t.string();break}case 5:{h.isEmbedded=t.bool();break}case 6:{h.colorScheme=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ContextInfo)return t;let o=new $root.ContextInfo;return t.timezone!=null&&(o.timezone=String(t.timezone)),t.timezoneOffset!=null&&(o.timezoneOffset=t.timezoneOffset|0),t.locale!=null&&(o.locale=String(t.locale)),t.url!=null&&(o.url=String(t.url)),t.isEmbedded!=null&&(o.isEmbedded=!!t.isEmbedded),t.colorScheme!=null&&(o.colorScheme=String(t.colorScheme)),o},n.toObject=function(t,o){o||(o={});let d={};return t.timezone!=null&&t.hasOwnProperty("timezone")&&(d.timezone=t.timezone,o.oneofs&&(d._timezone="timezone")),t.timezoneOffset!=null&&t.hasOwnProperty("timezoneOffset")&&(d.timezoneOffset=t.timezoneOffset,o.oneofs&&(d._timezoneOffset="timezoneOffset")),t.locale!=null&&t.hasOwnProperty("locale")&&(d.locale=t.locale,o.oneofs&&(d._locale="locale")),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url,o.oneofs&&(d._url="url")),t.isEmbedded!=null&&t.hasOwnProperty("isEmbedded")&&(d.isEmbedded=t.isEmbedded,o.oneofs&&(d._isEmbedded="isEmbedded")),t.colorScheme!=null&&t.hasOwnProperty("colorScheme")&&(d.colorScheme=t.colorScheme,o.oneofs&&(d._colorScheme="colorScheme")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ContextInfo"},n})();$root.ClientState=(()=>{function n(i){if(this.cachedMessageHashes=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.queryString="",n.prototype.widgetStates=null,n.prototype.pageScriptHash="",n.prototype.pageName="",n.prototype.fragmentId="",n.prototype.isAutoRerun=!1,n.prototype.cachedMessageHashes=$util.emptyArray,n.prototype.contextInfo=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),e.widgetStates!=null&&Object.hasOwnProperty.call(e,"widgetStates")&&$root.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),e.fragmentId!=null&&Object.hasOwnProperty.call(e,"fragmentId")&&t.uint32(42).string(e.fragmentId),e.isAutoRerun!=null&&Object.hasOwnProperty.call(e,"isAutoRerun")&&t.uint32(48).bool(e.isAutoRerun),e.cachedMessageHashes!=null&&e.cachedMessageHashes.length)for(let o=0;o<e.cachedMessageHashes.length;++o)t.uint32(58).string(e.cachedMessageHashes[o]);return e.contextInfo!=null&&Object.hasOwnProperty.call(e,"contextInfo")&&$root.ContextInfo.encode(e.contextInfo,t.uint32(66).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ClientState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}case 2:{p.widgetStates=$root.WidgetStates.decode(e,e.uint32());break}case 3:{p.pageScriptHash=e.string();break}case 4:{p.pageName=e.string();break}case 5:{p.fragmentId=e.string();break}case 6:{p.isAutoRerun=e.bool();break}case 7:{p.cachedMessageHashes&&p.cachedMessageHashes.length||(p.cachedMessageHashes=[]),p.cachedMessageHashes.push(e.string());break}case 8:{p.contextInfo=$root.ContextInfo.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ClientState)return e;let t=new $root.ClientState;if(e.queryString!=null&&(t.queryString=String(e.queryString)),e.widgetStates!=null){if(typeof e.widgetStates!="object")throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=$root.WidgetStates.fromObject(e.widgetStates)}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.pageName!=null&&(t.pageName=String(e.pageName)),e.fragmentId!=null&&(t.fragmentId=String(e.fragmentId)),e.isAutoRerun!=null&&(t.isAutoRerun=!!e.isAutoRerun),e.cachedMessageHashes){if(!Array.isArray(e.cachedMessageHashes))throw TypeError(".ClientState.cachedMessageHashes: array expected");t.cachedMessageHashes=[];for(let o=0;o<e.cachedMessageHashes.length;++o)t.cachedMessageHashes[o]=String(e.cachedMessageHashes[o])}if(e.contextInfo!=null){if(typeof e.contextInfo!="object")throw TypeError(".ClientState.contextInfo: object expected");t.contextInfo=$root.ContextInfo.fromObject(e.contextInfo)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.cachedMessageHashes=[]),t.defaults&&(o.queryString="",o.widgetStates=null,o.pageScriptHash="",o.pageName="",o.fragmentId="",o.isAutoRerun=!1,o.contextInfo=null),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),e.widgetStates!=null&&e.hasOwnProperty("widgetStates")&&(o.widgetStates=$root.WidgetStates.toObject(e.widgetStates,t)),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),e.fragmentId!=null&&e.hasOwnProperty("fragmentId")&&(o.fragmentId=e.fragmentId),e.isAutoRerun!=null&&e.hasOwnProperty("isAutoRerun")&&(o.isAutoRerun=e.isAutoRerun),e.cachedMessageHashes&&e.cachedMessageHashes.length){o.cachedMessageHashes=[];for(let d=0;d<e.cachedMessageHashes.length;++d)o.cachedMessageHashes[d]=e.cachedMessageHashes[d]}return e.contextInfo!=null&&e.hasOwnProperty("contextInfo")&&(o.contextInfo=$root.ContextInfo.toObject(e.contextInfo,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ClientState"},n})();const WidgetStates=$root.WidgetStates=(()=>{function n(i){if(this.widgets=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.widgets=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.widgets!=null&&e.widgets.length)for(let o=0;o<e.widgets.length;++o)$root.WidgetState.encode(e.widgets[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.WidgetStates;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.widgets&&p.widgets.length||(p.widgets=[]),p.widgets.push($root.WidgetState.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.WidgetStates)return e;let t=new $root.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let o=0;o<e.widgets.length;++o){if(typeof e.widgets[o]!="object")throw TypeError(".WidgetStates.widgets: object expected");t.widgets[o]=$root.WidgetState.fromObject(e.widgets[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.widgets=[]),e.widgets&&e.widgets.length){o.widgets=[];for(let d=0;d<e.widgets.length;++d)o.widgets[d]=$root.WidgetState.toObject(e.widgets[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/WidgetStates"},n})(),WidgetState=$root.WidgetState=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.triggerValue=null,n.prototype.boolValue=null,n.prototype.doubleValue=null,n.prototype.intValue=null,n.prototype.stringValue=null,n.prototype.doubleArrayValue=null,n.prototype.intArrayValue=null,n.prototype.stringArrayValue=null,n.prototype.jsonValue=null,n.prototype.arrowValue=null,n.prototype.bytesValue=null,n.prototype.fileUploaderStateValue=null,n.prototype.stringTriggerValue=null,n.prototype.chatInputValue=null,n.prototype.jsonTriggerValue=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue","stringTriggerValue","chatInputValue","jsonTriggerValue"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.triggerValue!=null&&Object.hasOwnProperty.call(t,"triggerValue")&&o.uint32(16).bool(t.triggerValue),t.boolValue!=null&&Object.hasOwnProperty.call(t,"boolValue")&&o.uint32(24).bool(t.boolValue),t.doubleValue!=null&&Object.hasOwnProperty.call(t,"doubleValue")&&o.uint32(33).double(t.doubleValue),t.intValue!=null&&Object.hasOwnProperty.call(t,"intValue")&&o.uint32(40).sint64(t.intValue),t.stringValue!=null&&Object.hasOwnProperty.call(t,"stringValue")&&o.uint32(50).string(t.stringValue),t.doubleArrayValue!=null&&Object.hasOwnProperty.call(t,"doubleArrayValue")&&$root.DoubleArray.encode(t.doubleArrayValue,o.uint32(58).fork()).ldelim(),t.intArrayValue!=null&&Object.hasOwnProperty.call(t,"intArrayValue")&&$root.SInt64Array.encode(t.intArrayValue,o.uint32(66).fork()).ldelim(),t.stringArrayValue!=null&&Object.hasOwnProperty.call(t,"stringArrayValue")&&$root.StringArray.encode(t.stringArrayValue,o.uint32(74).fork()).ldelim(),t.jsonValue!=null&&Object.hasOwnProperty.call(t,"jsonValue")&&o.uint32(82).string(t.jsonValue),t.arrowValue!=null&&Object.hasOwnProperty.call(t,"arrowValue")&&$root.ArrowTable.encode(t.arrowValue,o.uint32(90).fork()).ldelim(),t.bytesValue!=null&&Object.hasOwnProperty.call(t,"bytesValue")&&o.uint32(98).bytes(t.bytesValue),t.fileUploaderStateValue!=null&&Object.hasOwnProperty.call(t,"fileUploaderStateValue")&&$root.FileUploaderState.encode(t.fileUploaderStateValue,o.uint32(106).fork()).ldelim(),t.stringTriggerValue!=null&&Object.hasOwnProperty.call(t,"stringTriggerValue")&&$root.StringTriggerValue.encode(t.stringTriggerValue,o.uint32(114).fork()).ldelim(),t.chatInputValue!=null&&Object.hasOwnProperty.call(t,"chatInputValue")&&$root.ChatInputValue.encode(t.chatInputValue,o.uint32(122).fork()).ldelim(),t.jsonTriggerValue!=null&&Object.hasOwnProperty.call(t,"jsonTriggerValue")&&o.uint32(130).string(t.jsonTriggerValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.WidgetState;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.triggerValue=t.bool();break}case 3:{h.boolValue=t.bool();break}case 4:{h.doubleValue=t.double();break}case 5:{h.intValue=t.sint64();break}case 6:{h.stringValue=t.string();break}case 7:{h.doubleArrayValue=$root.DoubleArray.decode(t,t.uint32());break}case 8:{h.intArrayValue=$root.SInt64Array.decode(t,t.uint32());break}case 9:{h.stringArrayValue=$root.StringArray.decode(t,t.uint32());break}case 10:{h.jsonValue=t.string();break}case 11:{h.arrowValue=$root.ArrowTable.decode(t,t.uint32());break}case 12:{h.bytesValue=t.bytes();break}case 13:{h.fileUploaderStateValue=$root.FileUploaderState.decode(t,t.uint32());break}case 14:{h.stringTriggerValue=$root.StringTriggerValue.decode(t,t.uint32());break}case 15:{h.chatInputValue=$root.ChatInputValue.decode(t,t.uint32());break}case 16:{h.jsonTriggerValue=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.WidgetState)return t;let o=new $root.WidgetState;if(t.id!=null&&(o.id=String(t.id)),t.triggerValue!=null&&(o.triggerValue=!!t.triggerValue),t.boolValue!=null&&(o.boolValue=!!t.boolValue),t.doubleValue!=null&&(o.doubleValue=Number(t.doubleValue)),t.intValue!=null&&($util.Long?(o.intValue=$util.Long.fromValue(t.intValue)).unsigned=!1:typeof t.intValue=="string"?o.intValue=parseInt(t.intValue,10):typeof t.intValue=="number"?o.intValue=t.intValue:typeof t.intValue=="object"&&(o.intValue=new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber())),t.stringValue!=null&&(o.stringValue=String(t.stringValue)),t.doubleArrayValue!=null){if(typeof t.doubleArrayValue!="object")throw TypeError(".WidgetState.doubleArrayValue: object expected");o.doubleArrayValue=$root.DoubleArray.fromObject(t.doubleArrayValue)}if(t.intArrayValue!=null){if(typeof t.intArrayValue!="object")throw TypeError(".WidgetState.intArrayValue: object expected");o.intArrayValue=$root.SInt64Array.fromObject(t.intArrayValue)}if(t.stringArrayValue!=null){if(typeof t.stringArrayValue!="object")throw TypeError(".WidgetState.stringArrayValue: object expected");o.stringArrayValue=$root.StringArray.fromObject(t.stringArrayValue)}if(t.jsonValue!=null&&(o.jsonValue=String(t.jsonValue)),t.arrowValue!=null){if(typeof t.arrowValue!="object")throw TypeError(".WidgetState.arrowValue: object expected");o.arrowValue=$root.ArrowTable.fromObject(t.arrowValue)}if(t.bytesValue!=null&&(typeof t.bytesValue=="string"?$util.base64.decode(t.bytesValue,o.bytesValue=$util.newBuffer($util.base64.length(t.bytesValue)),0):t.bytesValue.length>=0&&(o.bytesValue=t.bytesValue)),t.fileUploaderStateValue!=null){if(typeof t.fileUploaderStateValue!="object")throw TypeError(".WidgetState.fileUploaderStateValue: object expected");o.fileUploaderStateValue=$root.FileUploaderState.fromObject(t.fileUploaderStateValue)}if(t.stringTriggerValue!=null){if(typeof t.stringTriggerValue!="object")throw TypeError(".WidgetState.stringTriggerValue: object expected");o.stringTriggerValue=$root.StringTriggerValue.fromObject(t.stringTriggerValue)}if(t.chatInputValue!=null){if(typeof t.chatInputValue!="object")throw TypeError(".WidgetState.chatInputValue: object expected");o.chatInputValue=$root.ChatInputValue.fromObject(t.chatInputValue)}return t.jsonTriggerValue!=null&&(o.jsonTriggerValue=String(t.jsonTriggerValue)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.triggerValue!=null&&t.hasOwnProperty("triggerValue")&&(d.triggerValue=t.triggerValue,o.oneofs&&(d.value="triggerValue")),t.boolValue!=null&&t.hasOwnProperty("boolValue")&&(d.boolValue=t.boolValue,o.oneofs&&(d.value="boolValue")),t.doubleValue!=null&&t.hasOwnProperty("doubleValue")&&(d.doubleValue=o.json&&!isFinite(t.doubleValue)?String(t.doubleValue):t.doubleValue,o.oneofs&&(d.value="doubleValue")),t.intValue!=null&&t.hasOwnProperty("intValue")&&(typeof t.intValue=="number"?d.intValue=o.longs===String?String(t.intValue):t.intValue:d.intValue=o.longs===String?$util.Long.prototype.toString.call(t.intValue):o.longs===Number?new $util.LongBits(t.intValue.low>>>0,t.intValue.high>>>0).toNumber():t.intValue,o.oneofs&&(d.value="intValue")),t.stringValue!=null&&t.hasOwnProperty("stringValue")&&(d.stringValue=t.stringValue,o.oneofs&&(d.value="stringValue")),t.doubleArrayValue!=null&&t.hasOwnProperty("doubleArrayValue")&&(d.doubleArrayValue=$root.DoubleArray.toObject(t.doubleArrayValue,o),o.oneofs&&(d.value="doubleArrayValue")),t.intArrayValue!=null&&t.hasOwnProperty("intArrayValue")&&(d.intArrayValue=$root.SInt64Array.toObject(t.intArrayValue,o),o.oneofs&&(d.value="intArrayValue")),t.stringArrayValue!=null&&t.hasOwnProperty("stringArrayValue")&&(d.stringArrayValue=$root.StringArray.toObject(t.stringArrayValue,o),o.oneofs&&(d.value="stringArrayValue")),t.jsonValue!=null&&t.hasOwnProperty("jsonValue")&&(d.jsonValue=t.jsonValue,o.oneofs&&(d.value="jsonValue")),t.arrowValue!=null&&t.hasOwnProperty("arrowValue")&&(d.arrowValue=$root.ArrowTable.toObject(t.arrowValue,o),o.oneofs&&(d.value="arrowValue")),t.bytesValue!=null&&t.hasOwnProperty("bytesValue")&&(d.bytesValue=o.bytes===String?$util.base64.encode(t.bytesValue,0,t.bytesValue.length):o.bytes===Array?Array.prototype.slice.call(t.bytesValue):t.bytesValue,o.oneofs&&(d.value="bytesValue")),t.fileUploaderStateValue!=null&&t.hasOwnProperty("fileUploaderStateValue")&&(d.fileUploaderStateValue=$root.FileUploaderState.toObject(t.fileUploaderStateValue,o),o.oneofs&&(d.value="fileUploaderStateValue")),t.stringTriggerValue!=null&&t.hasOwnProperty("stringTriggerValue")&&(d.stringTriggerValue=$root.StringTriggerValue.toObject(t.stringTriggerValue,o),o.oneofs&&(d.value="stringTriggerValue")),t.chatInputValue!=null&&t.hasOwnProperty("chatInputValue")&&(d.chatInputValue=$root.ChatInputValue.toObject(t.chatInputValue,o),o.oneofs&&(d.value="chatInputValue")),t.jsonTriggerValue!=null&&t.hasOwnProperty("jsonTriggerValue")&&(d.jsonTriggerValue=t.jsonTriggerValue,o.oneofs&&(d.value="jsonTriggerValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/WidgetState"},n})(),StringArray=$root.StringArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length)for(let o=0;o<e.data.length;++o)t.uint32(10).string(e.data[o]);return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.StringArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data&&p.data.length||(p.data=[]),p.data.push(e.string());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.StringArray)return e;let t=new $root.StringArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=String(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/StringArray"},n})(),DoubleArray=$root.DoubleArray=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.double(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DoubleArray;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.double())}else p.data.push(e.double());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DoubleArray)return e;let t=new $root.DoubleArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=Number(e.data[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=t.json&&!isFinite(e.data[d])?String(e.data[d]):e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DoubleArray"},n})();$root.Int32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int32())}else p.data.push(e.int32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int32Array)return e;let t=new $root.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]|0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int32Array"},n})();$root.Int64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.int64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Int64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.int64())}else p.data.push(e.int64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Int64Array)return e;let t=new $root.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Int64Array"},n})();const SInt64Array=$root.SInt64Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.sint64(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SInt64Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.sint64())}else p.data.push(e.sint64());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SInt64Array)return e;let t=new $root.SInt64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)$util.Long?(t.data[o]=$util.Long.fromValue(e.data[o])).unsigned=!1:typeof e.data[o]=="string"?t.data[o]=parseInt(e.data[o],10):typeof e.data[o]=="number"?t.data[o]=e.data[o]:typeof e.data[o]=="object"&&(t.data[o]=new $util.LongBits(e.data[o].low>>>0,e.data[o].high>>>0).toNumber())}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)typeof e.data[d]=="number"?o.data[d]=t.longs===String?String(e.data[d]):e.data[d]:o.data[d]=t.longs===String?$util.Long.prototype.toString.call(e.data[d]):t.longs===Number?new $util.LongBits(e.data[d].low>>>0,e.data[d].high>>>0).toNumber():e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SInt64Array"},n})();$root.UInt32Array=(()=>{function n(i){if(this.data=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.data!=null&&e.data.length){t.uint32(10).fork();for(let o=0;o<e.data.length;++o)t.uint32(e.data[o]);t.ldelim()}return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UInt32Array;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{if(p.data&&p.data.length||(p.data=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.data.push(e.uint32())}else p.data.push(e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UInt32Array)return e;let t=new $root.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let o=0;o<e.data.length;++o)t.data[o]=e.data[o]>>>0}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.data=[]),e.data&&e.data.length){o.data=[];for(let d=0;d<e.data.length;++d)o.data[d]=e.data[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UInt32Array"},n})();$root.StringTriggerValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.StringTriggerValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.StringTriggerValue)return t;let o=new $root.StringTriggerValue;return t.data!=null&&(o.data=String(t.data)),o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/StringTriggerValue"},n})();$root.FileURLsRequest=(()=>{function n(i){if(this.fileNames=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.requestId="",n.prototype.fileNames=$util.emptyArray,n.prototype.sessionId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.requestId!=null&&Object.hasOwnProperty.call(e,"requestId")&&t.uint32(10).string(e.requestId),e.fileNames!=null&&e.fileNames.length)for(let o=0;o<e.fileNames.length;++o)t.uint32(18).string(e.fileNames[o]);return e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(26).string(e.sessionId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsRequest;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.requestId=e.string();break}case 2:{p.fileNames&&p.fileNames.length||(p.fileNames=[]),p.fileNames.push(e.string());break}case 3:{p.sessionId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsRequest)return e;let t=new $root.FileURLsRequest;if(e.requestId!=null&&(t.requestId=String(e.requestId)),e.fileNames){if(!Array.isArray(e.fileNames))throw TypeError(".FileURLsRequest.fileNames: array expected");t.fileNames=[];for(let o=0;o<e.fileNames.length;++o)t.fileNames[o]=String(e.fileNames[o])}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileNames=[]),t.defaults&&(o.requestId="",o.sessionId=""),e.requestId!=null&&e.hasOwnProperty("requestId")&&(o.requestId=e.requestId),e.fileNames&&e.fileNames.length){o.fileNames=[];for(let d=0;d<e.fileNames.length;++d)o.fileNames[d]=e.fileNames[d]}return e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsRequest"},n})();$root.FileURLs=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.uploadUrl="",n.prototype.deleteUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.uploadUrl!=null&&Object.hasOwnProperty.call(e,"uploadUrl")&&t.uint32(18).string(e.uploadUrl),e.deleteUrl!=null&&Object.hasOwnProperty.call(e,"deleteUrl")&&t.uint32(26).string(e.deleteUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLs;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.uploadUrl=e.string();break}case 3:{p.deleteUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLs)return e;let t=new $root.FileURLs;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.uploadUrl!=null&&(t.uploadUrl=String(e.uploadUrl)),e.deleteUrl!=null&&(t.deleteUrl=String(e.deleteUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.uploadUrl="",o.deleteUrl=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.uploadUrl!=null&&e.hasOwnProperty("uploadUrl")&&(o.uploadUrl=e.uploadUrl),e.deleteUrl!=null&&e.hasOwnProperty("deleteUrl")&&(o.deleteUrl=e.deleteUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLs"},n})();$root.FileURLsResponse=(()=>{function n(i){if(this.fileUrls=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.responseId="",n.prototype.fileUrls=$util.emptyArray,n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.responseId!=null&&Object.hasOwnProperty.call(e,"responseId")&&t.uint32(10).string(e.responseId),e.fileUrls!=null&&e.fileUrls.length)for(let o=0;o<e.fileUrls.length;++o)$root.FileURLs.encode(e.fileUrls[o],t.uint32(18).fork()).ldelim();return e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileURLsResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.responseId=e.string();break}case 2:{p.fileUrls&&p.fileUrls.length||(p.fileUrls=[]),p.fileUrls.push($root.FileURLs.decode(e,e.uint32()));break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileURLsResponse)return e;let t=new $root.FileURLsResponse;if(e.responseId!=null&&(t.responseId=String(e.responseId)),e.fileUrls){if(!Array.isArray(e.fileUrls))throw TypeError(".FileURLsResponse.fileUrls: array expected");t.fileUrls=[];for(let o=0;o<e.fileUrls.length;++o){if(typeof e.fileUrls[o]!="object")throw TypeError(".FileURLsResponse.fileUrls: object expected");t.fileUrls[o]=$root.FileURLs.fromObject(e.fileUrls[o])}}return e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.fileUrls=[]),t.defaults&&(o.responseId="",o.errorMsg=""),e.responseId!=null&&e.hasOwnProperty("responseId")&&(o.responseId=e.responseId),e.fileUrls&&e.fileUrls.length){o.fileUrls=[];for(let d=0;d<e.fileUrls.length;++d)o.fileUrls[d]=$root.FileURLs.toObject(e.fileUrls[d],t)}return e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileURLsResponse"},n})();const UploadedFileInfo=$root.UploadedFileInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.size=$util.Long?$util.Long.fromBits(0,0,!0):0,n.prototype.fileId="",n.prototype.fileUrls=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint64(e.size),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(34).string(e.fileId),e.fileUrls!=null&&Object.hasOwnProperty.call(e,"fileUrls")&&$root.FileURLs.encode(e.fileUrls,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UploadedFileInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.name=e.string();break}case 3:{p.size=e.uint64();break}case 4:{p.fileId=e.string();break}case 5:{p.fileUrls=$root.FileURLs.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UploadedFileInfo)return e;let t=new $root.UploadedFileInfo;if(e.name!=null&&(t.name=String(e.name)),e.size!=null&&($util.Long?(t.size=$util.Long.fromValue(e.size)).unsigned=!0:typeof e.size=="string"?t.size=parseInt(e.size,10):typeof e.size=="number"?t.size=e.size:typeof e.size=="object"&&(t.size=new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0))),e.fileId!=null&&(t.fileId=String(e.fileId)),e.fileUrls!=null){if(typeof e.fileUrls!="object")throw TypeError(".UploadedFileInfo.fileUrls: object expected");t.fileUrls=$root.FileURLs.fromObject(e.fileUrls)}return t},n.toObject=function(e,t){t||(t={});let o={};if(t.defaults){if(o.name="",$util.Long){let d=new $util.Long(0,0,!0);o.size=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.size=t.longs===String?"0":0;o.fileId="",o.fileUrls=null}return e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.size!=null&&e.hasOwnProperty("size")&&(typeof e.size=="number"?o.size=t.longs===String?String(e.size):e.size:o.size=t.longs===String?$util.Long.prototype.toString.call(e.size):t.longs===Number?new $util.LongBits(e.size.low>>>0,e.size.high>>>0).toNumber(!0):e.size),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.fileUrls!=null&&e.hasOwnProperty("fileUrls")&&(o.fileUrls=$root.FileURLs.toObject(e.fileUrls,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UploadedFileInfo"},n})(),FileUploaderState=$root.FileUploaderState=(()=>{function n(i){if(this.uploadedFileInfo=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uploadedFileInfo=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.uploadedFileInfo!=null&&e.uploadedFileInfo.length)for(let o=0;o<e.uploadedFileInfo.length;++o)$root.UploadedFileInfo.encode(e.uploadedFileInfo[o],t.uint32(18).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploaderState;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.uploadedFileInfo&&p.uploadedFileInfo.length||(p.uploadedFileInfo=[]),p.uploadedFileInfo.push($root.UploadedFileInfo.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploaderState)return e;let t=new $root.FileUploaderState;if(e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let o=0;o<e.uploadedFileInfo.length;++o){if(typeof e.uploadedFileInfo[o]!="object")throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[o]=$root.UploadedFileInfo.fromObject(e.uploadedFileInfo[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.uploadedFileInfo=[]),e.uploadedFileInfo&&e.uploadedFileInfo.length){o.uploadedFileInfo=[];for(let d=0;d<e.uploadedFileInfo.length;++d)o.uploadedFileInfo[d]=$root.UploadedFileInfo.toObject(e.uploadedFileInfo[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploaderState"},n})(),ChatInputValue=$root.ChatInputValue=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.data=null,n.prototype.fileUploaderState=null,n.prototype.audioFileInfo=null;let i;return Object.defineProperty(n.prototype,"_data",{get:$util.oneOfGetter(i=["data"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_fileUploaderState",{get:$util.oneOfGetter(i=["fileUploaderState"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_audioFileInfo",{get:$util.oneOfGetter(i=["audioFileInfo"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.data!=null&&Object.hasOwnProperty.call(t,"data")&&o.uint32(10).string(t.data),t.fileUploaderState!=null&&Object.hasOwnProperty.call(t,"fileUploaderState")&&$root.FileUploaderState.encode(t.fileUploaderState,o.uint32(18).fork()).ldelim(),t.audioFileInfo!=null&&Object.hasOwnProperty.call(t,"audioFileInfo")&&$root.UploadedFileInfo.encode(t.audioFileInfo,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInputValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.data=t.string();break}case 2:{h.fileUploaderState=$root.FileUploaderState.decode(t,t.uint32());break}case 3:{h.audioFileInfo=$root.UploadedFileInfo.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInputValue)return t;let o=new $root.ChatInputValue;if(t.data!=null&&(o.data=String(t.data)),t.fileUploaderState!=null){if(typeof t.fileUploaderState!="object")throw TypeError(".ChatInputValue.fileUploaderState: object expected");o.fileUploaderState=$root.FileUploaderState.fromObject(t.fileUploaderState)}if(t.audioFileInfo!=null){if(typeof t.audioFileInfo!="object")throw TypeError(".ChatInputValue.audioFileInfo: object expected");o.audioFileInfo=$root.UploadedFileInfo.fromObject(t.audioFileInfo)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.data!=null&&t.hasOwnProperty("data")&&(d.data=t.data,o.oneofs&&(d._data="data")),t.fileUploaderState!=null&&t.hasOwnProperty("fileUploaderState")&&(d.fileUploaderState=$root.FileUploaderState.toObject(t.fileUploaderState,o),o.oneofs&&(d._fileUploaderState="fileUploaderState")),t.audioFileInfo!=null&&t.hasOwnProperty("audioFileInfo")&&(d.audioFileInfo=$root.UploadedFileInfo.toObject(t.audioFileInfo,o),o.oneofs&&(d._audioFileInfo="audioFileInfo")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInputValue"},n})();$root.ComponentInstance=(()=>{function n(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.jsonArgs="",n.prototype.specialArgs=$util.emptyArray,n.prototype.componentName="",n.prototype.url="",n.prototype.formId="",n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.jsonArgs!=null&&Object.hasOwnProperty.call(t,"jsonArgs")&&o.uint32(18).string(t.jsonArgs),t.specialArgs!=null&&t.specialArgs.length)for(let d=0;d<t.specialArgs.length;++d)$root.SpecialArg.encode(t.specialArgs[d],o.uint32(26).fork()).ldelim();return t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(34).string(t.componentName),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(42).string(t.url),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(56).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ComponentInstance;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.jsonArgs=t.string();break}case 3:{h.specialArgs&&h.specialArgs.length||(h.specialArgs=[]),h.specialArgs.push($root.SpecialArg.decode(t,t.uint32()));break}case 4:{h.componentName=t.string();break}case 5:{h.url=t.string();break}case 6:{h.formId=t.string();break}case 7:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ComponentInstance)return t;let o=new $root.ComponentInstance;if(t.id!=null&&(o.id=String(t.id)),t.jsonArgs!=null&&(o.jsonArgs=String(t.jsonArgs)),t.specialArgs){if(!Array.isArray(t.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");o.specialArgs=[];for(let d=0;d<t.specialArgs.length;++d){if(typeof t.specialArgs[d]!="object")throw TypeError(".ComponentInstance.specialArgs: object expected");o.specialArgs[d]=$root.SpecialArg.fromObject(t.specialArgs[d])}}return t.componentName!=null&&(o.componentName=String(t.componentName)),t.url!=null&&(o.url=String(t.url)),t.formId!=null&&(o.formId=String(t.formId)),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.specialArgs=[]),o.defaults&&(d.id="",d.jsonArgs="",d.componentName="",d.url="",d.formId=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.jsonArgs!=null&&t.hasOwnProperty("jsonArgs")&&(d.jsonArgs=t.jsonArgs),t.specialArgs&&t.specialArgs.length){d.specialArgs=[];for(let p=0;p<t.specialArgs.length;++p)d.specialArgs[p]=$root.SpecialArg.toObject(t.specialArgs[p],o)}return t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ComponentInstance"},n})();$root.SpecialArg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.key="",n.prototype.arrowDataframe=null,n.prototype.bytes=null;let i;return Object.defineProperty(n.prototype,"value",{get:$util.oneOfGetter(i=["arrowDataframe","bytes"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.key!=null&&Object.hasOwnProperty.call(t,"key")&&o.uint32(10).string(t.key),t.arrowDataframe!=null&&Object.hasOwnProperty.call(t,"arrowDataframe")&&$root.ArrowDataframe.encode(t.arrowDataframe,o.uint32(18).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(26).bytes(t.bytes),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SpecialArg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.key=t.string();break}case 2:{h.arrowDataframe=$root.ArrowDataframe.decode(t,t.uint32());break}case 3:{h.bytes=t.bytes();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SpecialArg)return t;let o=new $root.SpecialArg;if(t.key!=null&&(o.key=String(t.key)),t.arrowDataframe!=null){if(typeof t.arrowDataframe!="object")throw TypeError(".SpecialArg.arrowDataframe: object expected");o.arrowDataframe=$root.ArrowDataframe.fromObject(t.arrowDataframe)}return t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.key=""),t.key!=null&&t.hasOwnProperty("key")&&(d.key=t.key),t.arrowDataframe!=null&&t.hasOwnProperty("arrowDataframe")&&(d.arrowDataframe=$root.ArrowDataframe.toObject(t.arrowDataframe,o),o.oneofs&&(d.value="arrowDataframe")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.value="bytes")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SpecialArg"},n})();const ArrowDataframe=$root.ArrowDataframe=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=null,n.prototype.height=0,n.prototype.width=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&$root.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),e.height!=null&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),e.width!=null&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowDataframe;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=$root.ArrowTable.decode(e,e.uint32());break}case 2:{p.height=e.uint32();break}case 3:{p.width=e.uint32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowDataframe)return e;let t=new $root.ArrowDataframe;if(e.data!=null){if(typeof e.data!="object")throw TypeError(".ArrowDataframe.data: object expected");t.data=$root.ArrowTable.fromObject(e.data)}return e.height!=null&&(t.height=e.height>>>0),e.width!=null&&(t.width=e.width>>>0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.data=null,o.height=0,o.width=0),e.data!=null&&e.hasOwnProperty("data")&&(o.data=$root.ArrowTable.toObject(e.data,t)),e.height!=null&&e.hasOwnProperty("height")&&(o.height=e.height),e.width!=null&&e.hasOwnProperty("width")&&(o.width=e.width),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowDataframe"},n})();$root.ArrowTable=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.data=$util.newBuffer([]),n.prototype.index=$util.newBuffer([]),n.prototype.columns=$util.newBuffer([]),n.prototype.styler=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.data!=null&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),e.index!=null&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),e.columns!=null&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),e.styler!=null&&Object.hasOwnProperty.call(e,"styler")&&$root.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTable;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.data=e.bytes();break}case 2:{p.index=e.bytes();break}case 3:{p.columns=e.bytes();break}case 5:{p.styler=$root.ArrowTableStyler.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTable)return e;let t=new $root.ArrowTable;if(e.data!=null&&(typeof e.data=="string"?$util.base64.decode(e.data,t.data=$util.newBuffer($util.base64.length(e.data)),0):e.data.length>=0&&(t.data=e.data)),e.index!=null&&(typeof e.index=="string"?$util.base64.decode(e.index,t.index=$util.newBuffer($util.base64.length(e.index)),0):e.index.length>=0&&(t.index=e.index)),e.columns!=null&&(typeof e.columns=="string"?$util.base64.decode(e.columns,t.columns=$util.newBuffer($util.base64.length(e.columns)),0):e.columns.length>=0&&(t.columns=e.columns)),e.styler!=null){if(typeof e.styler!="object")throw TypeError(".ArrowTable.styler: object expected");t.styler=$root.ArrowTableStyler.fromObject(e.styler)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(t.bytes===String?o.data="":(o.data=[],t.bytes!==Array&&(o.data=$util.newBuffer(o.data))),t.bytes===String?o.index="":(o.index=[],t.bytes!==Array&&(o.index=$util.newBuffer(o.index))),t.bytes===String?o.columns="":(o.columns=[],t.bytes!==Array&&(o.columns=$util.newBuffer(o.columns))),o.styler=null),e.data!=null&&e.hasOwnProperty("data")&&(o.data=t.bytes===String?$util.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),e.index!=null&&e.hasOwnProperty("index")&&(o.index=t.bytes===String?$util.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),e.columns!=null&&e.hasOwnProperty("columns")&&(o.columns=t.bytes===String?$util.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),e.styler!=null&&e.hasOwnProperty("styler")&&(o.styler=$root.ArrowTableStyler.toObject(e.styler,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTable"},n})();$root.ArrowTableStyler=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.uuid="",n.prototype.caption="",n.prototype.styles="",n.prototype.displayValues=$util.newBuffer([]),n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.uuid!=null&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.styles!=null&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),e.displayValues!=null&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ArrowTableStyler;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.uuid=e.string();break}case 2:{p.caption=e.string();break}case 3:{p.styles=e.string();break}case 4:{p.displayValues=e.bytes();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ArrowTableStyler)return e;let t=new $root.ArrowTableStyler;return e.uuid!=null&&(t.uuid=String(e.uuid)),e.caption!=null&&(t.caption=String(e.caption)),e.styles!=null&&(t.styles=String(e.styles)),e.displayValues!=null&&(typeof e.displayValues=="string"?$util.base64.decode(e.displayValues,t.displayValues=$util.newBuffer($util.base64.length(e.displayValues)),0):e.displayValues.length>=0&&(t.displayValues=e.displayValues)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.uuid="",o.caption="",o.styles="",t.bytes===String?o.displayValues="":(o.displayValues=[],t.bytes!==Array&&(o.displayValues=$util.newBuffer(o.displayValues)))),e.uuid!=null&&e.hasOwnProperty("uuid")&&(o.uuid=e.uuid),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.styles!=null&&e.hasOwnProperty("styles")&&(o.styles=e.styles),e.displayValues!=null&&e.hasOwnProperty("displayValues")&&(o.displayValues=t.bytes===String?$util.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ArrowTableStyler"},n})();$root.Balloons=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Balloons;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Balloons)return e;let t=new $root.Balloons;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Balloons"},n})();$root.MixedData=(()=>{function n(i){if(this.arrowBlobs={},i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.arrowBlobs=$util.emptyObject,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.arrowBlobs!=null&&Object.hasOwnProperty.call(e,"arrowBlobs"))for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d)t.uint32(18).fork().uint32(10).string(o[d]),$root.ArrowData.encode(e.arrowBlobs[o[d]],t.uint32(18).fork()).ldelim().ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MixedData,h,y;for(;e.pos<d;){let $=e.uint32();if($===o)break;switch($>>>3){case 1:{p.json=e.string();break}case 2:{p.arrowBlobs===$util.emptyObject&&(p.arrowBlobs={});let E=e.uint32()+e.pos;for(h="",y=null;e.pos<E;){let M=e.uint32();switch(M>>>3){case 1:h=e.string();break;case 2:y=$root.ArrowData.decode(e,e.uint32());break;default:e.skipType(M&7);break}}p.arrowBlobs[h]=y;break}default:e.skipType($&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MixedData)return e;let t=new $root.MixedData;if(e.json!=null&&(t.json=String(e.json)),e.arrowBlobs){if(typeof e.arrowBlobs!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs={};for(let o=Object.keys(e.arrowBlobs),d=0;d<o.length;++d){if(typeof e.arrowBlobs[o[d]]!="object")throw TypeError(".MixedData.arrowBlobs: object expected");t.arrowBlobs[o[d]]=$root.ArrowData.fromObject(e.arrowBlobs[o[d]])}}return t},n.toObject=function(e,t){t||(t={});let o={};(t.objects||t.defaults)&&(o.arrowBlobs={}),t.defaults&&(o.json=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json);let d;if(e.arrowBlobs&&(d=Object.keys(e.arrowBlobs)).length){o.arrowBlobs={};for(let p=0;p<d.length;++p)o.arrowBlobs[d[p]]=$root.ArrowData.toObject(e.arrowBlobs[d[p]],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MixedData"},n})();$root.BidiComponent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.componentName="",n.prototype.jsContent=null,n.prototype.jsSourcePath=null,n.prototype.formId="",n.prototype.htmlContent=null,n.prototype.cssContent=null,n.prototype.cssSourcePath=null,n.prototype.isolateStyles=!1,n.prototype.json=null,n.prototype.arrowData=null,n.prototype.bytes=null,n.prototype.mixed=null;let i;return Object.defineProperty(n.prototype,"_jsContent",{get:$util.oneOfGetter(i=["jsContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_jsSourcePath",{get:$util.oneOfGetter(i=["jsSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_htmlContent",{get:$util.oneOfGetter(i=["htmlContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssContent",{get:$util.oneOfGetter(i=["cssContent"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_cssSourcePath",{get:$util.oneOfGetter(i=["cssSourcePath"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"data",{get:$util.oneOfGetter(i=["json","arrowData","bytes","mixed"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.componentName!=null&&Object.hasOwnProperty.call(t,"componentName")&&o.uint32(18).string(t.componentName),t.jsContent!=null&&Object.hasOwnProperty.call(t,"jsContent")&&o.uint32(26).string(t.jsContent),t.jsSourcePath!=null&&Object.hasOwnProperty.call(t,"jsSourcePath")&&o.uint32(34).string(t.jsSourcePath),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.htmlContent!=null&&Object.hasOwnProperty.call(t,"htmlContent")&&o.uint32(50).string(t.htmlContent),t.cssContent!=null&&Object.hasOwnProperty.call(t,"cssContent")&&o.uint32(58).string(t.cssContent),t.cssSourcePath!=null&&Object.hasOwnProperty.call(t,"cssSourcePath")&&o.uint32(66).string(t.cssSourcePath),t.isolateStyles!=null&&Object.hasOwnProperty.call(t,"isolateStyles")&&o.uint32(72).bool(t.isolateStyles),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&o.uint32(82).string(t.json),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,o.uint32(90).fork()).ldelim(),t.bytes!=null&&Object.hasOwnProperty.call(t,"bytes")&&o.uint32(98).bytes(t.bytes),t.mixed!=null&&Object.hasOwnProperty.call(t,"mixed")&&$root.MixedData.encode(t.mixed,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.BidiComponent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.componentName=t.string();break}case 3:{h.jsContent=t.string();break}case 4:{h.jsSourcePath=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.htmlContent=t.string();break}case 7:{h.cssContent=t.string();break}case 8:{h.cssSourcePath=t.string();break}case 9:{h.isolateStyles=t.bool();break}case 10:{h.json=t.string();break}case 11:{h.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 12:{h.bytes=t.bytes();break}case 13:{h.mixed=$root.MixedData.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.BidiComponent)return t;let o=new $root.BidiComponent;if(t.id!=null&&(o.id=String(t.id)),t.componentName!=null&&(o.componentName=String(t.componentName)),t.jsContent!=null&&(o.jsContent=String(t.jsContent)),t.jsSourcePath!=null&&(o.jsSourcePath=String(t.jsSourcePath)),t.formId!=null&&(o.formId=String(t.formId)),t.htmlContent!=null&&(o.htmlContent=String(t.htmlContent)),t.cssContent!=null&&(o.cssContent=String(t.cssContent)),t.cssSourcePath!=null&&(o.cssSourcePath=String(t.cssSourcePath)),t.isolateStyles!=null&&(o.isolateStyles=!!t.isolateStyles),t.json!=null&&(o.json=String(t.json)),t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".BidiComponent.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(t.arrowData)}if(t.bytes!=null&&(typeof t.bytes=="string"?$util.base64.decode(t.bytes,o.bytes=$util.newBuffer($util.base64.length(t.bytes)),0):t.bytes.length>=0&&(o.bytes=t.bytes)),t.mixed!=null){if(typeof t.mixed!="object")throw TypeError(".BidiComponent.mixed: object expected");o.mixed=$root.MixedData.fromObject(t.mixed)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.componentName="",d.formId="",d.isolateStyles=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.componentName!=null&&t.hasOwnProperty("componentName")&&(d.componentName=t.componentName),t.jsContent!=null&&t.hasOwnProperty("jsContent")&&(d.jsContent=t.jsContent,o.oneofs&&(d._jsContent="jsContent")),t.jsSourcePath!=null&&t.hasOwnProperty("jsSourcePath")&&(d.jsSourcePath=t.jsSourcePath,o.oneofs&&(d._jsSourcePath="jsSourcePath")),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.htmlContent!=null&&t.hasOwnProperty("htmlContent")&&(d.htmlContent=t.htmlContent,o.oneofs&&(d._htmlContent="htmlContent")),t.cssContent!=null&&t.hasOwnProperty("cssContent")&&(d.cssContent=t.cssContent,o.oneofs&&(d._cssContent="cssContent")),t.cssSourcePath!=null&&t.hasOwnProperty("cssSourcePath")&&(d.cssSourcePath=t.cssSourcePath,o.oneofs&&(d._cssSourcePath="cssSourcePath")),t.isolateStyles!=null&&t.hasOwnProperty("isolateStyles")&&(d.isolateStyles=t.isolateStyles),t.json!=null&&t.hasOwnProperty("json")&&(d.json=t.json,o.oneofs&&(d.data="json")),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(t.arrowData,o),o.oneofs&&(d.data="arrowData")),t.bytes!=null&&t.hasOwnProperty("bytes")&&(d.bytes=o.bytes===String?$util.base64.encode(t.bytes,0,t.bytes.length):o.bytes===Array?Array.prototype.slice.call(t.bytes):t.bytes,o.oneofs&&(d.data="bytes")),t.mixed!=null&&t.hasOwnProperty("mixed")&&(d.mixed=$root.MixedData.toObject(t.mixed,o),o.oneofs&&(d.data="mixed")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/BidiComponent"},n})();const Block$1=$root.Block=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.vertical=null,n.prototype.horizontal=null,n.prototype.column=null,n.prototype.expandable=null,n.prototype.form=null,n.prototype.tabContainer=null,n.prototype.tab=null,n.prototype.chatMessage=null,n.prototype.popover=null,n.prototype.dialog=null,n.prototype.flexContainer=null,n.prototype.allowEmpty=!1,n.prototype.id=null,n.prototype.heightConfig=null,n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["vertical","horizontal","column","expandable","form","tabContainer","tab","chatMessage","popover","dialog","flexContainer"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_id",{get:$util.oneOfGetter(i=["id"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.vertical!=null&&Object.hasOwnProperty.call(t,"vertical")&&$root.Block.Vertical.encode(t.vertical,o.uint32(10).fork()).ldelim(),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&$root.Block.Horizontal.encode(t.horizontal,o.uint32(18).fork()).ldelim(),t.column!=null&&Object.hasOwnProperty.call(t,"column")&&$root.Block.Column.encode(t.column,o.uint32(26).fork()).ldelim(),t.expandable!=null&&Object.hasOwnProperty.call(t,"expandable")&&$root.Block.Expandable.encode(t.expandable,o.uint32(34).fork()).ldelim(),t.form!=null&&Object.hasOwnProperty.call(t,"form")&&$root.Block.Form.encode(t.form,o.uint32(42).fork()).ldelim(),t.tabContainer!=null&&Object.hasOwnProperty.call(t,"tabContainer")&&$root.Block.TabContainer.encode(t.tabContainer,o.uint32(50).fork()).ldelim(),t.tab!=null&&Object.hasOwnProperty.call(t,"tab")&&$root.Block.Tab.encode(t.tab,o.uint32(58).fork()).ldelim(),t.allowEmpty!=null&&Object.hasOwnProperty.call(t,"allowEmpty")&&o.uint32(64).bool(t.allowEmpty),t.chatMessage!=null&&Object.hasOwnProperty.call(t,"chatMessage")&&$root.Block.ChatMessage.encode(t.chatMessage,o.uint32(74).fork()).ldelim(),t.popover!=null&&Object.hasOwnProperty.call(t,"popover")&&$root.Block.Popover.encode(t.popover,o.uint32(82).fork()).ldelim(),t.dialog!=null&&Object.hasOwnProperty.call(t,"dialog")&&$root.Block.Dialog.encode(t.dialog,o.uint32(90).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.flexContainer!=null&&Object.hasOwnProperty.call(t,"flexContainer")&&$root.Block.FlexContainer.encode(t.flexContainer,o.uint32(106).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(114).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(122).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Block;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.vertical=$root.Block.Vertical.decode(t,t.uint32());break}case 2:{h.horizontal=$root.Block.Horizontal.decode(t,t.uint32());break}case 3:{h.column=$root.Block.Column.decode(t,t.uint32());break}case 4:{h.expandable=$root.Block.Expandable.decode(t,t.uint32());break}case 5:{h.form=$root.Block.Form.decode(t,t.uint32());break}case 6:{h.tabContainer=$root.Block.TabContainer.decode(t,t.uint32());break}case 7:{h.tab=$root.Block.Tab.decode(t,t.uint32());break}case 9:{h.chatMessage=$root.Block.ChatMessage.decode(t,t.uint32());break}case 10:{h.popover=$root.Block.Popover.decode(t,t.uint32());break}case 11:{h.dialog=$root.Block.Dialog.decode(t,t.uint32());break}case 13:{h.flexContainer=$root.Block.FlexContainer.decode(t,t.uint32());break}case 8:{h.allowEmpty=t.bool();break}case 12:{h.id=t.string();break}case 14:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 15:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Block)return t;let o=new $root.Block;if(t.vertical!=null){if(typeof t.vertical!="object")throw TypeError(".Block.vertical: object expected");o.vertical=$root.Block.Vertical.fromObject(t.vertical)}if(t.horizontal!=null){if(typeof t.horizontal!="object")throw TypeError(".Block.horizontal: object expected");o.horizontal=$root.Block.Horizontal.fromObject(t.horizontal)}if(t.column!=null){if(typeof t.column!="object")throw TypeError(".Block.column: object expected");o.column=$root.Block.Column.fromObject(t.column)}if(t.expandable!=null){if(typeof t.expandable!="object")throw TypeError(".Block.expandable: object expected");o.expandable=$root.Block.Expandable.fromObject(t.expandable)}if(t.form!=null){if(typeof t.form!="object")throw TypeError(".Block.form: object expected");o.form=$root.Block.Form.fromObject(t.form)}if(t.tabContainer!=null){if(typeof t.tabContainer!="object")throw TypeError(".Block.tabContainer: object expected");o.tabContainer=$root.Block.TabContainer.fromObject(t.tabContainer)}if(t.tab!=null){if(typeof t.tab!="object")throw TypeError(".Block.tab: object expected");o.tab=$root.Block.Tab.fromObject(t.tab)}if(t.chatMessage!=null){if(typeof t.chatMessage!="object")throw TypeError(".Block.chatMessage: object expected");o.chatMessage=$root.Block.ChatMessage.fromObject(t.chatMessage)}if(t.popover!=null){if(typeof t.popover!="object")throw TypeError(".Block.popover: object expected");o.popover=$root.Block.Popover.fromObject(t.popover)}if(t.dialog!=null){if(typeof t.dialog!="object")throw TypeError(".Block.dialog: object expected");o.dialog=$root.Block.Dialog.fromObject(t.dialog)}if(t.flexContainer!=null){if(typeof t.flexContainer!="object")throw TypeError(".Block.flexContainer: object expected");o.flexContainer=$root.Block.FlexContainer.fromObject(t.flexContainer)}if(t.allowEmpty!=null&&(o.allowEmpty=!!t.allowEmpty),t.id!=null&&(o.id=String(t.id)),t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Block.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Block.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.allowEmpty=!1),t.vertical!=null&&t.hasOwnProperty("vertical")&&(d.vertical=$root.Block.Vertical.toObject(t.vertical,o),o.oneofs&&(d.type="vertical")),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=$root.Block.Horizontal.toObject(t.horizontal,o),o.oneofs&&(d.type="horizontal")),t.column!=null&&t.hasOwnProperty("column")&&(d.column=$root.Block.Column.toObject(t.column,o),o.oneofs&&(d.type="column")),t.expandable!=null&&t.hasOwnProperty("expandable")&&(d.expandable=$root.Block.Expandable.toObject(t.expandable,o),o.oneofs&&(d.type="expandable")),t.form!=null&&t.hasOwnProperty("form")&&(d.form=$root.Block.Form.toObject(t.form,o),o.oneofs&&(d.type="form")),t.tabContainer!=null&&t.hasOwnProperty("tabContainer")&&(d.tabContainer=$root.Block.TabContainer.toObject(t.tabContainer,o),o.oneofs&&(d.type="tabContainer")),t.tab!=null&&t.hasOwnProperty("tab")&&(d.tab=$root.Block.Tab.toObject(t.tab,o),o.oneofs&&(d.type="tab")),t.allowEmpty!=null&&t.hasOwnProperty("allowEmpty")&&(d.allowEmpty=t.allowEmpty),t.chatMessage!=null&&t.hasOwnProperty("chatMessage")&&(d.chatMessage=$root.Block.ChatMessage.toObject(t.chatMessage,o),o.oneofs&&(d.type="chatMessage")),t.popover!=null&&t.hasOwnProperty("popover")&&(d.popover=$root.Block.Popover.toObject(t.popover,o),o.oneofs&&(d.type="popover")),t.dialog!=null&&t.hasOwnProperty("dialog")&&(d.dialog=$root.Block.Dialog.toObject(t.dialog,o),o.oneofs&&(d.type="dialog")),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id,o.oneofs&&(d._id="id")),t.flexContainer!=null&&t.hasOwnProperty("flexContainer")&&(d.flexContainer=$root.Block.FlexContainer.toObject(t.flexContainer,o),o.oneofs&&(d.type="flexContainer")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Block"},n.Vertical=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Vertical;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.border=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Vertical)return o;let d=new $root.Block.Vertical;return o.border!=null&&(d.border=!!o.border),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Vertical"},e})(),n.Horizontal=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.gap="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.gap!=null&&Object.hasOwnProperty.call(o,"gap")&&d.uint32(10).string(o.gap),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Horizontal;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.gap=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Horizontal)return o;let d=new $root.Block.Horizontal;return o.gap!=null&&(d.gap=String(o.gap)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.gap=""),o.gap!=null&&o.hasOwnProperty("gap")&&(p.gap=o.gap),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Horizontal"},e})(),n.FlexContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.border=!1,e.prototype.gapConfig=null,e.prototype.scale=0,e.prototype.direction=0,e.prototype.wrap=!1,e.prototype.justify=0,e.prototype.align=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(8).bool(o.border),o.gapConfig!=null&&Object.hasOwnProperty.call(o,"gapConfig")&&$root.streamlit.GapConfig.encode(o.gapConfig,d.uint32(18).fork()).ldelim(),o.scale!=null&&Object.hasOwnProperty.call(o,"scale")&&d.uint32(29).float(o.scale),o.direction!=null&&Object.hasOwnProperty.call(o,"direction")&&d.uint32(32).int32(o.direction),o.wrap!=null&&Object.hasOwnProperty.call(o,"wrap")&&d.uint32(40).bool(o.wrap),o.justify!=null&&Object.hasOwnProperty.call(o,"justify")&&d.uint32(56).int32(o.justify),o.align!=null&&Object.hasOwnProperty.call(o,"align")&&d.uint32(64).int32(o.align),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.FlexContainer;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.border=o.bool();break}case 2:{y.gapConfig=$root.streamlit.GapConfig.decode(o,o.uint32());break}case 3:{y.scale=o.float();break}case 4:{y.direction=o.int32();break}case 5:{y.wrap=o.bool();break}case 7:{y.justify=o.int32();break}case 8:{y.align=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.FlexContainer)return o;let d=new $root.Block.FlexContainer;if(o.border!=null&&(d.border=!!o.border),o.gapConfig!=null){if(typeof o.gapConfig!="object")throw TypeError(".Block.FlexContainer.gapConfig: object expected");d.gapConfig=$root.streamlit.GapConfig.fromObject(o.gapConfig)}switch(o.scale!=null&&(d.scale=Number(o.scale)),o.direction){default:if(typeof o.direction=="number"){d.direction=o.direction;break}break;case"DIRECTION_UNDEFINED":case 0:d.direction=0;break;case"VERTICAL":case 1:d.direction=1;break;case"HORIZONTAL":case 2:d.direction=2;break}switch(o.wrap!=null&&(d.wrap=!!o.wrap),o.justify){default:if(typeof o.justify=="number"){d.justify=o.justify;break}break;case"JUSTIFY_UNDEFINED":case 0:d.justify=0;break;case"JUSTIFY_START":case 1:d.justify=1;break;case"JUSTIFY_END":case 2:d.justify=2;break;case"JUSTIFY_CENTER":case 3:d.justify=3;break;case"SPACE_BETWEEN":case 4:d.justify=4;break}switch(o.align){default:if(typeof o.align=="number"){d.align=o.align;break}break;case"ALIGN_UNDEFINED":case 0:d.align=0;break;case"ALIGN_START":case 1:d.align=1;break;case"ALIGN_END":case 2:d.align=2;break;case"ALIGN_CENTER":case 3:d.align=3;break;case"STRETCH":case 4:d.align=4;break}return d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.border=!1,p.gapConfig=null,p.scale=0,p.direction=d.enums===String?"DIRECTION_UNDEFINED":0,p.wrap=!1,p.justify=d.enums===String?"JUSTIFY_UNDEFINED":0,p.align=d.enums===String?"ALIGN_UNDEFINED":0),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.gapConfig!=null&&o.hasOwnProperty("gapConfig")&&(p.gapConfig=$root.streamlit.GapConfig.toObject(o.gapConfig,d)),o.scale!=null&&o.hasOwnProperty("scale")&&(p.scale=d.json&&!isFinite(o.scale)?String(o.scale):o.scale),o.direction!=null&&o.hasOwnProperty("direction")&&(p.direction=d.enums===String?$root.Block.FlexContainer.Direction[o.direction]===void 0?o.direction:$root.Block.FlexContainer.Direction[o.direction]:o.direction),o.wrap!=null&&o.hasOwnProperty("wrap")&&(p.wrap=o.wrap),o.justify!=null&&o.hasOwnProperty("justify")&&(p.justify=d.enums===String?$root.Block.FlexContainer.Justify[o.justify]===void 0?o.justify:$root.Block.FlexContainer.Justify[o.justify]:o.justify),o.align!=null&&o.hasOwnProperty("align")&&(p.align=d.enums===String?$root.Block.FlexContainer.Align[o.align]===void 0?o.align:$root.Block.FlexContainer.Align[o.align]:o.align),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.FlexContainer"},e.Direction=(function(){const t={},o=Object.create(t);return o[t[0]="DIRECTION_UNDEFINED"]=0,o[t[1]="VERTICAL"]=1,o[t[2]="HORIZONTAL"]=2,o})(),e.Justify=(function(){const t={},o=Object.create(t);return o[t[0]="JUSTIFY_UNDEFINED"]=0,o[t[1]="JUSTIFY_START"]=1,o[t[2]="JUSTIFY_END"]=2,o[t[3]="JUSTIFY_CENTER"]=3,o[t[4]="SPACE_BETWEEN"]=4,o})(),e.Align=(function(){const t={},o=Object.create(t);return o[t[0]="ALIGN_UNDEFINED"]=0,o[t[1]="ALIGN_START"]=1,o[t[2]="ALIGN_END"]=2,o[t[3]="ALIGN_CENTER"]=3,o[t[4]="STRETCH"]=4,o})(),e})(),n.Column=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.weight=0,e.prototype.verticalAlignment=0,e.prototype.showBorder=!1,e.prototype.gapConfig=null;let t;return Object.defineProperty(e.prototype,"_gapConfig",{get:$util.oneOfGetter(t=["gapConfig"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.weight!=null&&Object.hasOwnProperty.call(d,"weight")&&p.uint32(9).double(d.weight),d.verticalAlignment!=null&&Object.hasOwnProperty.call(d,"verticalAlignment")&&p.uint32(24).int32(d.verticalAlignment),d.showBorder!=null&&Object.hasOwnProperty.call(d,"showBorder")&&p.uint32(32).bool(d.showBorder),d.gapConfig!=null&&Object.hasOwnProperty.call(d,"gapConfig")&&$root.streamlit.GapConfig.encode(d.gapConfig,p.uint32(42).fork()).ldelim(),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Column;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.weight=d.double();break}case 3:{$.verticalAlignment=d.int32();break}case 4:{$.showBorder=d.bool();break}case 5:{$.gapConfig=$root.streamlit.GapConfig.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Column)return d;let p=new $root.Block.Column;switch(d.weight!=null&&(p.weight=Number(d.weight)),d.verticalAlignment){default:if(typeof d.verticalAlignment=="number"){p.verticalAlignment=d.verticalAlignment;break}break;case"TOP":case 0:p.verticalAlignment=0;break;case"CENTER":case 1:p.verticalAlignment=1;break;case"BOTTOM":case 2:p.verticalAlignment=2;break}if(d.showBorder!=null&&(p.showBorder=!!d.showBorder),d.gapConfig!=null){if(typeof d.gapConfig!="object")throw TypeError(".Block.Column.gapConfig: object expected");p.gapConfig=$root.streamlit.GapConfig.fromObject(d.gapConfig)}return p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.weight=0,h.verticalAlignment=p.enums===String?"TOP":0,h.showBorder=!1),d.weight!=null&&d.hasOwnProperty("weight")&&(h.weight=p.json&&!isFinite(d.weight)?String(d.weight):d.weight),d.verticalAlignment!=null&&d.hasOwnProperty("verticalAlignment")&&(h.verticalAlignment=p.enums===String?$root.Block.Column.VerticalAlignment[d.verticalAlignment]===void 0?d.verticalAlignment:$root.Block.Column.VerticalAlignment[d.verticalAlignment]:d.verticalAlignment),d.showBorder!=null&&d.hasOwnProperty("showBorder")&&(h.showBorder=d.showBorder),d.gapConfig!=null&&d.hasOwnProperty("gapConfig")&&(h.gapConfig=$root.streamlit.GapConfig.toObject(d.gapConfig,p),p.oneofs&&(h._gapConfig="gapConfig")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Column"},e.VerticalAlignment=(function(){const o={},d=Object.create(o);return d[o[0]="TOP"]=0,d[o[1]="CENTER"]=1,d[o[2]="BOTTOM"]=2,d})(),e})(),n.Expandable=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.label="",e.prototype.expanded=null,e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_expanded",{get:$util.oneOfGetter(t=["expanded"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.label!=null&&Object.hasOwnProperty.call(d,"label")&&p.uint32(10).string(d.label),d.expanded!=null&&Object.hasOwnProperty.call(d,"expanded")&&p.uint32(16).bool(d.expanded),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(26).string(d.icon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Expandable;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.label=d.string();break}case 2:{$.expanded=d.bool();break}case 3:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Expandable)return d;let p=new $root.Block.Expandable;return d.label!=null&&(p.label=String(d.label)),d.expanded!=null&&(p.expanded=!!d.expanded),d.icon!=null&&(p.icon=String(d.icon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.label="",h.icon=""),d.label!=null&&d.hasOwnProperty("label")&&(h.label=d.label),d.expanded!=null&&d.hasOwnProperty("expanded")&&(h.expanded=d.expanded,p.oneofs&&(h._expanded="expanded")),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Expandable"},e})(),n.Dialog=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.title="",e.prototype.dismissible=!1,e.prototype.width=0,e.prototype.isOpen=null,e.prototype.id="",e.prototype.icon="";let t;return Object.defineProperty(e.prototype,"_isOpen",{get:$util.oneOfGetter(t=["isOpen"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.title!=null&&Object.hasOwnProperty.call(d,"title")&&p.uint32(10).string(d.title),d.dismissible!=null&&Object.hasOwnProperty.call(d,"dismissible")&&p.uint32(16).bool(d.dismissible),d.width!=null&&Object.hasOwnProperty.call(d,"width")&&p.uint32(24).int32(d.width),d.isOpen!=null&&Object.hasOwnProperty.call(d,"isOpen")&&p.uint32(32).bool(d.isOpen),d.id!=null&&Object.hasOwnProperty.call(d,"id")&&p.uint32(42).string(d.id),d.icon!=null&&Object.hasOwnProperty.call(d,"icon")&&p.uint32(50).string(d.icon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.Block.Dialog;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.title=d.string();break}case 2:{$.dismissible=d.bool();break}case 3:{$.width=d.int32();break}case 4:{$.isOpen=d.bool();break}case 5:{$.id=d.string();break}case 6:{$.icon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.Block.Dialog)return d;let p=new $root.Block.Dialog;switch(d.title!=null&&(p.title=String(d.title)),d.dismissible!=null&&(p.dismissible=!!d.dismissible),d.width){default:if(typeof d.width=="number"){p.width=d.width;break}break;case"SMALL":case 0:p.width=0;break;case"LARGE":case 1:p.width=1;break;case"MEDIUM":case 2:p.width=2;break}return d.isOpen!=null&&(p.isOpen=!!d.isOpen),d.id!=null&&(p.id=String(d.id)),d.icon!=null&&(p.icon=String(d.icon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.title="",h.dismissible=!1,h.width=p.enums===String?"SMALL":0,h.id="",h.icon=""),d.title!=null&&d.hasOwnProperty("title")&&(h.title=d.title),d.dismissible!=null&&d.hasOwnProperty("dismissible")&&(h.dismissible=d.dismissible),d.width!=null&&d.hasOwnProperty("width")&&(h.width=p.enums===String?$root.Block.Dialog.DialogWidth[d.width]===void 0?d.width:$root.Block.Dialog.DialogWidth[d.width]:d.width),d.isOpen!=null&&d.hasOwnProperty("isOpen")&&(h.isOpen=d.isOpen,p.oneofs&&(h._isOpen="isOpen")),d.id!=null&&d.hasOwnProperty("id")&&(h.id=d.id),d.icon!=null&&d.hasOwnProperty("icon")&&(h.icon=d.icon),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/Block.Dialog"},e.DialogWidth=(function(){const o={},d=Object.create(o);return d[o[0]="SMALL"]=0,d[o[1]="LARGE"]=1,d[o[2]="MEDIUM"]=2,d})(),e})(),n.Form=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.prototype.border=!1,e.prototype.enterToSubmit=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.formId!=null&&Object.hasOwnProperty.call(o,"formId")&&d.uint32(10).string(o.formId),o.clearOnSubmit!=null&&Object.hasOwnProperty.call(o,"clearOnSubmit")&&d.uint32(16).bool(o.clearOnSubmit),o.border!=null&&Object.hasOwnProperty.call(o,"border")&&d.uint32(24).bool(o.border),o.enterToSubmit!=null&&Object.hasOwnProperty.call(o,"enterToSubmit")&&d.uint32(32).bool(o.enterToSubmit),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Form;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.formId=o.string();break}case 2:{y.clearOnSubmit=o.bool();break}case 3:{y.border=o.bool();break}case 4:{y.enterToSubmit=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Form)return o;let d=new $root.Block.Form;return o.formId!=null&&(d.formId=String(o.formId)),o.clearOnSubmit!=null&&(d.clearOnSubmit=!!o.clearOnSubmit),o.border!=null&&(d.border=!!o.border),o.enterToSubmit!=null&&(d.enterToSubmit=!!o.enterToSubmit),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.formId="",p.clearOnSubmit=!1,p.border=!1,p.enterToSubmit=!1),o.formId!=null&&o.hasOwnProperty("formId")&&(p.formId=o.formId),o.clearOnSubmit!=null&&o.hasOwnProperty("clearOnSubmit")&&(p.clearOnSubmit=o.clearOnSubmit),o.border!=null&&o.hasOwnProperty("border")&&(p.border=o.border),o.enterToSubmit!=null&&o.hasOwnProperty("enterToSubmit")&&(p.enterToSubmit=o.enterToSubmit),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Form"},e})(),n.TabContainer=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.defaultTabIndex=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.defaultTabIndex!=null&&Object.hasOwnProperty.call(o,"defaultTabIndex")&&d.uint32(8).int32(o.defaultTabIndex),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.TabContainer;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.defaultTabIndex=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.TabContainer)return o;let d=new $root.Block.TabContainer;return o.defaultTabIndex!=null&&(d.defaultTabIndex=o.defaultTabIndex|0),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.defaultTabIndex=0),o.defaultTabIndex!=null&&o.hasOwnProperty("defaultTabIndex")&&(p.defaultTabIndex=o.defaultTabIndex),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.TabContainer"},e})(),n.Tab=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Tab;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Tab)return o;let d=new $root.Block.Tab;return o.label!=null&&(d.label=String(o.label)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Tab"},e})(),n.Popover=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.label="",e.prototype.help="",e.prototype.disabled=!1,e.prototype.icon="",e.prototype.type="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.label!=null&&Object.hasOwnProperty.call(o,"label")&&d.uint32(10).string(o.label),o.help!=null&&Object.hasOwnProperty.call(o,"help")&&d.uint32(26).string(o.help),o.disabled!=null&&Object.hasOwnProperty.call(o,"disabled")&&d.uint32(32).bool(o.disabled),o.icon!=null&&Object.hasOwnProperty.call(o,"icon")&&d.uint32(42).string(o.icon),o.type!=null&&Object.hasOwnProperty.call(o,"type")&&d.uint32(50).string(o.type),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.Popover;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.label=o.string();break}case 3:{y.help=o.string();break}case 4:{y.disabled=o.bool();break}case 5:{y.icon=o.string();break}case 6:{y.type=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.Popover)return o;let d=new $root.Block.Popover;return o.label!=null&&(d.label=String(o.label)),o.help!=null&&(d.help=String(o.help)),o.disabled!=null&&(d.disabled=!!o.disabled),o.icon!=null&&(d.icon=String(o.icon)),o.type!=null&&(d.type=String(o.type)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.label="",p.help="",p.disabled=!1,p.icon="",p.type=""),o.label!=null&&o.hasOwnProperty("label")&&(p.label=o.label),o.help!=null&&o.hasOwnProperty("help")&&(p.help=o.help),o.disabled!=null&&o.hasOwnProperty("disabled")&&(p.disabled=o.disabled),o.icon!=null&&o.hasOwnProperty("icon")&&(p.icon=o.icon),o.type!=null&&o.hasOwnProperty("type")&&(p.type=o.type),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.Popover"},e})(),n.ChatMessage=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.name="",e.prototype.avatar="",e.prototype.avatarType=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(10).string(o.name),o.avatar!=null&&Object.hasOwnProperty.call(o,"avatar")&&d.uint32(18).string(o.avatar),o.avatarType!=null&&Object.hasOwnProperty.call(o,"avatarType")&&d.uint32(24).int32(o.avatarType),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.Block.ChatMessage;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.name=o.string();break}case 2:{y.avatar=o.string();break}case 3:{y.avatarType=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.Block.ChatMessage)return o;let d=new $root.Block.ChatMessage;switch(o.name!=null&&(d.name=String(o.name)),o.avatar!=null&&(d.avatar=String(o.avatar)),o.avatarType){default:if(typeof o.avatarType=="number"){d.avatarType=o.avatarType;break}break;case"IMAGE":case 0:d.avatarType=0;break;case"EMOJI":case 1:d.avatarType=1;break;case"ICON":case 2:d.avatarType=2;break}return d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.name="",p.avatar="",p.avatarType=d.enums===String?"IMAGE":0),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),o.avatar!=null&&o.hasOwnProperty("avatar")&&(p.avatar=o.avatar),o.avatarType!=null&&o.hasOwnProperty("avatarType")&&(p.avatarType=d.enums===String?$root.Block.ChatMessage.AvatarType[o.avatarType]===void 0?o.avatarType:$root.Block.ChatMessage.AvatarType[o.avatarType]:o.avatarType),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/Block.ChatMessage"},e.AvatarType=(function(){const t={},o=Object.create(t);return o[t[0]="IMAGE"]=0,o[t[1]="EMOJI"]=1,o[t[2]="ICON"]=2,o})(),e})(),n})();$root.Button=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.isFormSubmitter=!1,n.prototype.type="",n.prototype.disabled=!1,n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.isFormSubmitter!=null&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(58).string(e.type),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Button;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.isFormSubmitter=e.bool();break}case 7:{p.type=e.string();break}case 8:{p.disabled=e.bool();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Button)return e;let t=new $root.Button;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.isFormSubmitter!=null&&(t.isFormSubmitter=!!e.isFormSubmitter),e.type!=null&&(t.type=String(e.type)),e.disabled!=null&&(t.disabled=!!e.disabled),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.isFormSubmitter=!1,o.type="",o.disabled=!1,o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.isFormSubmitter!=null&&e.hasOwnProperty("isFormSubmitter")&&(o.isFormSubmitter=e.isFormSubmitter),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Button"},n})();const ButtonGroup$1=$root.ButtonGroup=(()=>{function n(e){if(this.options=[],this.default=[],this.rawValues=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.options=$util.emptyArray,n.prototype.default=$util.emptyArray,n.prototype.disabled=!1,n.prototype.clickMode=0,n.prototype.formId="",n.prototype.setValue=!1,n.prototype.style=0,n.prototype.label="",n.prototype.labelVisibility=null,n.prototype.help=null,n.prototype.rawValues=$util.emptyArray;let i;return Object.defineProperty(n.prototype,"_help",{get:$util.oneOfGetter(i=["help"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)$root.ButtonGroup.Option.encode(t.options[d],o.uint32(18).fork()).ldelim();if(t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.uint32(t.default[d]);o.ldelim()}if(t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.clickMode!=null&&Object.hasOwnProperty.call(t,"clickMode")&&o.uint32(40).int32(t.clickMode),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(80).int32(t.style),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(90).string(t.label),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(106).string(t.help),t.rawValues!=null&&t.rawValues.length)for(let d=0;d<t.rawValues.length;++d)o.uint32(114).string(t.rawValues[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ButtonGroup;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.options&&h.options.length||(h.options=[]),h.options.push($root.ButtonGroup.Option.decode(t,t.uint32()));break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.uint32())}else h.default.push(t.uint32());break}case 4:{h.disabled=t.bool();break}case 5:{h.clickMode=t.int32();break}case 6:{h.formId=t.string();break}case 8:{h.setValue=t.bool();break}case 10:{h.style=t.int32();break}case 11:{h.label=t.string();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 13:{h.help=t.string();break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(t.string());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ButtonGroup)return t;let o=new $root.ButtonGroup;if(t.id!=null&&(o.id=String(t.id)),t.options){if(!Array.isArray(t.options))throw TypeError(".ButtonGroup.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d){if(typeof t.options[d]!="object")throw TypeError(".ButtonGroup.options: object expected");o.options[d]=$root.ButtonGroup.Option.fromObject(t.options[d])}}if(t.default){if(!Array.isArray(t.default))throw TypeError(".ButtonGroup.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]>>>0}switch(t.disabled!=null&&(o.disabled=!!t.disabled),t.clickMode){default:if(typeof t.clickMode=="number"){o.clickMode=t.clickMode;break}break;case"SINGLE_SELECT":case 0:o.clickMode=0;break;case"MULTI_SELECT":case 1:o.clickMode=1;break}switch(t.formId!=null&&(o.formId=String(t.formId)),t.setValue!=null&&(o.setValue=!!t.setValue),t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"SEGMENTED_CONTROL":case 0:o.style=0;break;case"PILLS":case 1:o.style=1;break}if(t.label!=null&&(o.label=String(t.label)),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".ButtonGroup.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}if(t.help!=null&&(o.help=String(t.help)),t.rawValues){if(!Array.isArray(t.rawValues))throw TypeError(".ButtonGroup.rawValues: array expected");o.rawValues=[];for(let d=0;d<t.rawValues.length;++d)o.rawValues[d]=String(t.rawValues[d])}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.default=[],d.rawValues=[]),o.defaults&&(d.id="",d.disabled=!1,d.clickMode=o.enums===String?"SINGLE_SELECT":0,d.formId="",d.setValue=!1,d.style=o.enums===String?"SEGMENTED_CONTROL":0,d.label="",d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=$root.ButtonGroup.Option.toObject(t.options[p],o)}if(t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.clickMode!=null&&t.hasOwnProperty("clickMode")&&(d.clickMode=o.enums===String?$root.ButtonGroup.ClickMode[t.clickMode]===void 0?t.clickMode:$root.ButtonGroup.ClickMode[t.clickMode]:t.clickMode),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.ButtonGroup.Style[t.style]===void 0?t.style:$root.ButtonGroup.Style[t.style]:t.style),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help,o.oneofs&&(d._help="help")),t.rawValues&&t.rawValues.length){d.rawValues=[];for(let p=0;p<t.rawValues.length;++p)d.rawValues[p]=t.rawValues[p]}return d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ButtonGroup"},n.ClickMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_SELECT"]=0,t[e[1]="MULTI_SELECT"]=1,t})(),n.Option=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.content="",e.prototype.contentIcon=null;let t;return Object.defineProperty(e.prototype,"_contentIcon",{get:$util.oneOfGetter(t=["contentIcon"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.content!=null&&Object.hasOwnProperty.call(d,"content")&&p.uint32(10).string(d.content),d.contentIcon!=null&&Object.hasOwnProperty.call(d,"contentIcon")&&p.uint32(26).string(d.contentIcon),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.ButtonGroup.Option;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.content=d.string();break}case 3:{$.contentIcon=d.string();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.ButtonGroup.Option)return d;let p=new $root.ButtonGroup.Option;return d.content!=null&&(p.content=String(d.content)),d.contentIcon!=null&&(p.contentIcon=String(d.contentIcon)),p},e.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.content=""),d.content!=null&&d.hasOwnProperty("content")&&(h.content=d.content),d.contentIcon!=null&&d.hasOwnProperty("contentIcon")&&(h.contentIcon=d.contentIcon,p.oneofs&&(h._contentIcon="contentIcon")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/ButtonGroup.Option"},e})(),n.Style=(function(){const e={},t=Object.create(e);return t[e[0]="SEGMENTED_CONTROL"]=0,t[e[1]="PILLS"]=1,t})(),n})();$root.CameraInput=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.CameraInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.help=e.string();break}case 4:{p.formId=e.string();break}case 5:{p.disabled=e.bool();break}case 6:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.CameraInput)return e;let t=new $root.CameraInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/CameraInput"},n})();const ChatInput$1=$root.ChatInput=(()=>{function n(e){if(this.fileType=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.placeholder="",n.prototype.maxChars=0,n.prototype.disabled=!1,n.prototype.value="",n.prototype.setValue=!1,n.prototype.default="",n.prototype.acceptFile=0,n.prototype.fileType=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.acceptAudio=!1,n.prototype.audioSampleRate=null;let i;return Object.defineProperty(n.prototype,"_audioSampleRate",{get:$util.oneOfGetter(i=["audioSampleRate"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(18).string(t.placeholder),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(24).uint32(t.maxChars),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(42).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(48).bool(t.setValue),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(58).string(t.default),t.acceptFile!=null&&Object.hasOwnProperty.call(t,"acceptFile")&&o.uint32(72).int32(t.acceptFile),t.fileType!=null&&t.fileType.length)for(let d=0;d<t.fileType.length;++d)o.uint32(82).string(t.fileType[d]);return t.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(t,"maxUploadSizeMb")&&o.uint32(88).int32(t.maxUploadSizeMb),t.acceptAudio!=null&&Object.hasOwnProperty.call(t,"acceptAudio")&&o.uint32(96).bool(t.acceptAudio),t.audioSampleRate!=null&&Object.hasOwnProperty.call(t,"audioSampleRate")&&o.uint32(104).int32(t.audioSampleRate),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ChatInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.placeholder=t.string();break}case 3:{h.maxChars=t.uint32();break}case 4:{h.disabled=t.bool();break}case 5:{h.value=t.string();break}case 6:{h.setValue=t.bool();break}case 7:{h.default=t.string();break}case 9:{h.acceptFile=t.int32();break}case 10:{h.fileType&&h.fileType.length||(h.fileType=[]),h.fileType.push(t.string());break}case 11:{h.maxUploadSizeMb=t.int32();break}case 12:{h.acceptAudio=t.bool();break}case 13:{h.audioSampleRate=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ChatInput)return t;let o=new $root.ChatInput;switch(t.id!=null&&(o.id=String(t.id)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.disabled!=null&&(o.disabled=!!t.disabled),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.default!=null&&(o.default=String(t.default)),t.acceptFile){default:if(typeof t.acceptFile=="number"){o.acceptFile=t.acceptFile;break}break;case"NONE":case 0:o.acceptFile=0;break;case"SINGLE":case 1:o.acceptFile=1;break;case"MULTIPLE":case 2:o.acceptFile=2;break;case"DIRECTORY":case 3:o.acceptFile=3;break}if(t.fileType){if(!Array.isArray(t.fileType))throw TypeError(".ChatInput.fileType: array expected");o.fileType=[];for(let d=0;d<t.fileType.length;++d)o.fileType[d]=String(t.fileType[d])}return t.maxUploadSizeMb!=null&&(o.maxUploadSizeMb=t.maxUploadSizeMb|0),t.acceptAudio!=null&&(o.acceptAudio=!!t.acceptAudio),t.audioSampleRate!=null&&(o.audioSampleRate=t.audioSampleRate|0),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fileType=[]),o.defaults&&(d.id="",d.placeholder="",d.maxChars=0,d.disabled=!1,d.value="",d.setValue=!1,d.default="",d.acceptFile=o.enums===String?"NONE":0,d.maxUploadSizeMb=0,d.acceptAudio=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.acceptFile!=null&&t.hasOwnProperty("acceptFile")&&(d.acceptFile=o.enums===String?$root.ChatInput.AcceptFile[t.acceptFile]===void 0?t.acceptFile:$root.ChatInput.AcceptFile[t.acceptFile]:t.acceptFile),t.fileType&&t.fileType.length){d.fileType=[];for(let p=0;p<t.fileType.length;++p)d.fileType[p]=t.fileType[p]}return t.maxUploadSizeMb!=null&&t.hasOwnProperty("maxUploadSizeMb")&&(d.maxUploadSizeMb=t.maxUploadSizeMb),t.acceptAudio!=null&&t.hasOwnProperty("acceptAudio")&&(d.acceptAudio=t.acceptAudio),t.audioSampleRate!=null&&t.hasOwnProperty("audioSampleRate")&&(d.audioSampleRate=t.audioSampleRate,o.oneofs&&(d._audioSampleRate="audioSampleRate")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ChatInput"},n.AcceptFile=(function(){const e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="SINGLE"]=1,t[e[2]="MULTIPLE"]=2,t[e[3]="DIRECTORY"]=3,t})(),n})(),Checkbox$1=$root.Checkbox=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=!1,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(80).int32(e.type),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Checkbox;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.bool();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.bool();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 10:{p.type=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Checkbox)return e;let t=new $root.Checkbox;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=!!e.default),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=!!e.value),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Checkbox.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"DEFAULT":case 0:t.type=0;break;case"TOGGLE":case 1:t.type=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default=!1,o.help="",o.formId="",o.value=!1,o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"DEFAULT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Checkbox.StyleType[e.type]===void 0?e.type:$root.Checkbox.StyleType[e.type]:e.type),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Checkbox"},n.StyleType=(function(){const i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="TOGGLE"]=1,e})(),n})();$root.Code=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.codeText="",n.prototype.language="",n.prototype.showLineNumbers=!1,n.prototype.wrapLines=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.codeText!=null&&Object.hasOwnProperty.call(e,"codeText")&&t.uint32(10).string(e.codeText),e.language!=null&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),e.showLineNumbers!=null&&Object.hasOwnProperty.call(e,"showLineNumbers")&&t.uint32(24).bool(e.showLineNumbers),e.wrapLines!=null&&Object.hasOwnProperty.call(e,"wrapLines")&&t.uint32(32).bool(e.wrapLines),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Code;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.codeText=e.string();break}case 2:{p.language=e.string();break}case 3:{p.showLineNumbers=e.bool();break}case 4:{p.wrapLines=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Code)return e;let t=new $root.Code;return e.codeText!=null&&(t.codeText=String(e.codeText)),e.language!=null&&(t.language=String(e.language)),e.showLineNumbers!=null&&(t.showLineNumbers=!!e.showLineNumbers),e.wrapLines!=null&&(t.wrapLines=!!e.wrapLines),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.codeText="",o.language="",o.showLineNumbers=!1,o.wrapLines=!1),e.codeText!=null&&e.hasOwnProperty("codeText")&&(o.codeText=e.codeText),e.language!=null&&e.hasOwnProperty("language")&&(o.language=e.language),e.showLineNumbers!=null&&e.hasOwnProperty("showLineNumbers")&&(o.showLineNumbers=e.showLineNumbers),e.wrapLines!=null&&e.hasOwnProperty("wrapLines")&&(o.wrapLines=e.wrapLines),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Code"},n})();$root.ColorPicker=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default="",n.prototype.help="",n.prototype.formId="",n.prototype.value="",n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ColorPicker;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default=e.string();break}case 4:{p.help=e.string();break}case 5:{p.formId=e.string();break}case 6:{p.value=e.string();break}case 7:{p.setValue=e.bool();break}case 8:{p.disabled=e.bool();break}case 9:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ColorPicker)return e;let t=new $root.ColorPicker;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default!=null&&(t.default=String(e.default)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value!=null&&(t.value=String(e.value)),e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.default="",o.help="",o.formId="",o.value="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default!=null&&e.hasOwnProperty("default")&&(o.default=e.default),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ColorPicker"},n})();const Dataframe=$root.Dataframe=(()=>{function n(e){if(this.columnOrder=[],this.selectionMode=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.arrowData=null,n.prototype.id="",n.prototype.columns="",n.prototype.editingMode=0,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.columnOrder=$util.emptyArray,n.prototype.selectionMode=$util.emptyArray,n.prototype.rowHeight=null,n.prototype.placeholder=null;let i;return Object.defineProperty(n.prototype,"_rowHeight",{get:$util.oneOfGetter(i=["rowHeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_placeholder",{get:$util.oneOfGetter(i=["placeholder"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.arrowData!=null&&Object.hasOwnProperty.call(t,"arrowData")&&$root.ArrowData.encode(t.arrowData,o.uint32(10).fork()).ldelim(),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(18).string(t.id),t.columns!=null&&Object.hasOwnProperty.call(t,"columns")&&o.uint32(26).string(t.columns),t.editingMode!=null&&Object.hasOwnProperty.call(t,"editingMode")&&o.uint32(32).int32(t.editingMode),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(40).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.columnOrder!=null&&t.columnOrder.length)for(let d=0;d<t.columnOrder.length;++d)o.uint32(58).string(t.columnOrder[d]);if(t.selectionMode!=null&&t.selectionMode.length){o.uint32(66).fork();for(let d=0;d<t.selectionMode.length;++d)o.int32(t.selectionMode[d]);o.ldelim()}return t.rowHeight!=null&&Object.hasOwnProperty.call(t,"rowHeight")&&o.uint32(72).uint32(t.rowHeight),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(82).string(t.placeholder),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Dataframe;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.arrowData=$root.ArrowData.decode(t,t.uint32());break}case 2:{h.id=t.string();break}case 3:{h.columns=t.string();break}case 4:{h.editingMode=t.int32();break}case 5:{h.disabled=t.bool();break}case 6:{h.formId=t.string();break}case 7:{h.columnOrder&&h.columnOrder.length||(h.columnOrder=[]),h.columnOrder.push(t.string());break}case 8:{if(h.selectionMode&&h.selectionMode.length||(h.selectionMode=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.selectionMode.push(t.int32())}else h.selectionMode.push(t.int32());break}case 9:{h.rowHeight=t.uint32();break}case 10:{h.placeholder=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Dataframe)return t;let o=new $root.Dataframe;if(t.arrowData!=null){if(typeof t.arrowData!="object")throw TypeError(".Dataframe.arrowData: object expected");o.arrowData=$root.ArrowData.fromObject(t.arrowData)}switch(t.id!=null&&(o.id=String(t.id)),t.columns!=null&&(o.columns=String(t.columns)),t.editingMode){default:if(typeof t.editingMode=="number"){o.editingMode=t.editingMode;break}break;case"READ_ONLY":case 0:o.editingMode=0;break;case"FIXED":case 1:o.editingMode=1;break;case"DYNAMIC":case 2:o.editingMode=2;break;case"ADD_ONLY":case 3:o.editingMode=3;break;case"DELETE_ONLY":case 4:o.editingMode=4;break}if(t.disabled!=null&&(o.disabled=!!t.disabled),t.formId!=null&&(o.formId=String(t.formId)),t.columnOrder){if(!Array.isArray(t.columnOrder))throw TypeError(".Dataframe.columnOrder: array expected");o.columnOrder=[];for(let d=0;d<t.columnOrder.length;++d)o.columnOrder[d]=String(t.columnOrder[d])}if(t.selectionMode){if(!Array.isArray(t.selectionMode))throw TypeError(".Dataframe.selectionMode: array expected");o.selectionMode=[];for(let d=0;d<t.selectionMode.length;++d)switch(t.selectionMode[d]){default:if(typeof t.selectionMode[d]=="number"){o.selectionMode[d]=t.selectionMode[d];break}case"SINGLE_ROW":case 0:o.selectionMode[d]=0;break;case"MULTI_ROW":case 1:o.selectionMode[d]=1;break;case"SINGLE_COLUMN":case 2:o.selectionMode[d]=2;break;case"MULTI_COLUMN":case 3:o.selectionMode[d]=3;break;case"SINGLE_CELL":case 4:o.selectionMode[d]=4;break;case"MULTI_CELL":case 5:o.selectionMode[d]=5;break}}return t.rowHeight!=null&&(o.rowHeight=t.rowHeight>>>0),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.columnOrder=[],d.selectionMode=[]),o.defaults&&(d.arrowData=null,d.id="",d.columns="",d.editingMode=o.enums===String?"READ_ONLY":0,d.disabled=!1,d.formId=""),t.arrowData!=null&&t.hasOwnProperty("arrowData")&&(d.arrowData=$root.ArrowData.toObject(t.arrowData,o)),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.columns!=null&&t.hasOwnProperty("columns")&&(d.columns=t.columns),t.editingMode!=null&&t.hasOwnProperty("editingMode")&&(d.editingMode=o.enums===String?$root.Dataframe.EditingMode[t.editingMode]===void 0?t.editingMode:$root.Dataframe.EditingMode[t.editingMode]:t.editingMode),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.columnOrder&&t.columnOrder.length){d.columnOrder=[];for(let p=0;p<t.columnOrder.length;++p)d.columnOrder[p]=t.columnOrder[p]}if(t.selectionMode&&t.selectionMode.length){d.selectionMode=[];for(let p=0;p<t.selectionMode.length;++p)d.selectionMode[p]=o.enums===String?$root.Dataframe.SelectionMode[t.selectionMode[p]]===void 0?t.selectionMode[p]:$root.Dataframe.SelectionMode[t.selectionMode[p]]:t.selectionMode[p]}return t.rowHeight!=null&&t.hasOwnProperty("rowHeight")&&(d.rowHeight=t.rowHeight,o.oneofs&&(d._rowHeight="rowHeight")),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder,o.oneofs&&(d._placeholder="placeholder")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Dataframe"},n.EditingMode=(function(){const e={},t=Object.create(e);return t[e[0]="READ_ONLY"]=0,t[e[1]="FIXED"]=1,t[e[2]="DYNAMIC"]=2,t[e[3]="ADD_ONLY"]=3,t[e[4]="DELETE_ONLY"]=4,t})(),n.SelectionMode=(function(){const e={},t=Object.create(e);return t[e[0]="SINGLE_ROW"]=0,t[e[1]="MULTI_ROW"]=1,t[e[2]="SINGLE_COLUMN"]=2,t[e[3]="MULTI_COLUMN"]=3,t[e[4]="SINGLE_CELL"]=4,t[e[5]="MULTI_CELL"]=5,t})(),n})();$root.DateInput=(()=>{function n(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.isRange=!1,n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(74).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(106).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.isRange=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 10:{p.setValue=e.bool();break}case 11:{p.disabled=e.bool();break}case 12:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 13:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateInput)return e;let t=new $root.DateInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.isRange!=null&&(t.isRange=!!e.isRange),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults&&(o.id="",o.label="",o.min="",o.max="",o.isRange=!1,o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format=""),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateInput"},n})();$root.DateTimeInput=(()=>{function n(i){if(this.default=[],this.value=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.min="",n.prototype.max="",n.prototype.help="",n.prototype.formId="",n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.format="",n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.isRange=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.default!=null&&e.default.length)for(let o=0;o<e.default.length;++o)t.uint32(26).string(e.default[o]);if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),e.value!=null&&e.value.length)for(let o=0;o<e.value.length;++o)t.uint32(66).string(e.value[o]);return e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(80).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(98).string(e.format),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(104).int64(e.step),e.isRange!=null&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(112).bool(e.isRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DateTimeInput;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.default&&p.default.length||(p.default=[]),p.default.push(e.string());break}case 4:{p.min=e.string();break}case 5:{p.max=e.string();break}case 6:{p.help=e.string();break}case 7:{p.formId=e.string();break}case 8:{p.value&&p.value.length||(p.value=[]),p.value.push(e.string());break}case 9:{p.setValue=e.bool();break}case 10:{p.disabled=e.bool();break}case 11:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 12:{p.format=e.string();break}case 13:{p.step=e.int64();break}case 14:{p.isRange=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DateTimeInput)return e;let t=new $root.DateTimeInput;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateTimeInput.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=String(e.default[o])}if(e.min!=null&&(t.min=String(e.min)),e.max!=null&&(t.max=String(e.max)),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateTimeInput.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=String(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".DateTimeInput.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.format!=null&&(t.format=String(e.format)),e.step!=null&&($util.Long?(t.step=$util.Long.fromValue(e.step)).unsigned=!1:typeof e.step=="string"?t.step=parseInt(e.step,10):typeof e.step=="number"?t.step=e.step:typeof e.step=="object"&&(t.step=new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber())),e.isRange!=null&&(t.isRange=!!e.isRange),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[]),t.defaults){if(o.id="",o.label="",o.min="",o.max="",o.help="",o.formId="",o.setValue=!1,o.disabled=!1,o.labelVisibility=null,o.format="",$util.Long){let d=new $util.Long(0,0,!1);o.step=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.step=t.longs===String?"0":0;o.isRange=!1}if(e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=e.max),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=e.value[d]}return e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.step!=null&&e.hasOwnProperty("step")&&(typeof e.step=="number"?o.step=t.longs===String?String(e.step):e.step:o.step=t.longs===String?$util.Long.prototype.toString.call(e.step):t.longs===Number?new $util.LongBits(e.step.low>>>0,e.step.high>>>0).toNumber():e.step),e.isRange!=null&&e.hasOwnProperty("isRange")&&(o.isRange=e.isRange),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DateTimeInput"},n})();const DeckGlJsonChart$1=$root.DeckGlJsonChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.json="",n.prototype.tooltip="",n.prototype.id="",n.prototype.mapboxToken="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.json!=null&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),e.tooltip!=null&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(42).string(e.id),e.mapboxToken!=null&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(50).string(e.mapboxToken),e.selectionMode!=null&&e.selectionMode.length){t.uint32(74).fork();for(let o=0;o<e.selectionMode.length;++o)t.int32(e.selectionMode[o]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(82).string(e.formId),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeckGlJsonChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.json=e.string();break}case 2:{p.tooltip=e.string();break}case 5:{p.id=e.string();break}case 6:{p.mapboxToken=e.string();break}case 9:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.selectionMode.push(e.int32())}else p.selectionMode.push(e.int32());break}case 10:{p.formId=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeckGlJsonChart)return e;let t=new $root.DeckGlJsonChart;if(e.json!=null&&(t.json=String(e.json)),e.tooltip!=null&&(t.tooltip=String(e.tooltip)),e.id!=null&&(t.id=String(e.id)),e.mapboxToken!=null&&(t.mapboxToken=String(e.mapboxToken)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".DeckGlJsonChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)switch(e.selectionMode[o]){default:if(typeof e.selectionMode[o]=="number"){t.selectionMode[o]=e.selectionMode[o];break}case"SINGLE_OBJECT":case 0:t.selectionMode[o]=0;break;case"MULTI_OBJECT":case 1:t.selectionMode[o]=1;break}}return e.formId!=null&&(t.formId=String(e.formId)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.selectionMode=[]),t.defaults&&(o.json="",o.tooltip="",o.id="",o.mapboxToken="",o.formId=""),e.json!=null&&e.hasOwnProperty("json")&&(o.json=e.json),e.tooltip!=null&&e.hasOwnProperty("tooltip")&&(o.tooltip=e.tooltip),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.mapboxToken!=null&&e.hasOwnProperty("mapboxToken")&&(o.mapboxToken=e.mapboxToken),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=t.enums===String?$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]===void 0?e.selectionMode[d]:$root.DeckGlJsonChart.SelectionMode[e.selectionMode[d]]:e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeckGlJsonChart"},n.SelectionMode=(function(){const i={},e=Object.create(i);return e[i[0]="SINGLE_OBJECT"]=0,e[i[1]="MULTI_OBJECT"]=1,e})(),n})();$root.Delta=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.newElement=null,n.prototype.addBlock=null,n.prototype.newTransient=null,n.prototype.arrowAddRows=null,n.prototype.fragmentId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newElement","addBlock","newTransient","arrowAddRows"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.newElement!=null&&Object.hasOwnProperty.call(t,"newElement")&&$root.Element.encode(t.newElement,o.uint32(26).fork()).ldelim(),t.addBlock!=null&&Object.hasOwnProperty.call(t,"addBlock")&&$root.Block.encode(t.addBlock,o.uint32(50).fork()).ldelim(),t.arrowAddRows!=null&&Object.hasOwnProperty.call(t,"arrowAddRows")&&$root.ArrowNamedDataSet.encode(t.arrowAddRows,o.uint32(58).fork()).ldelim(),t.fragmentId!=null&&Object.hasOwnProperty.call(t,"fragmentId")&&o.uint32(66).string(t.fragmentId),t.newTransient!=null&&Object.hasOwnProperty.call(t,"newTransient")&&$root.Transient.encode(t.newTransient,o.uint32(74).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Delta;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 3:{h.newElement=$root.Element.decode(t,t.uint32());break}case 6:{h.addBlock=$root.Block.decode(t,t.uint32());break}case 9:{h.newTransient=$root.Transient.decode(t,t.uint32());break}case 7:{h.arrowAddRows=$root.ArrowNamedDataSet.decode(t,t.uint32());break}case 8:{h.fragmentId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Delta)return t;let o=new $root.Delta;if(t.newElement!=null){if(typeof t.newElement!="object")throw TypeError(".Delta.newElement: object expected");o.newElement=$root.Element.fromObject(t.newElement)}if(t.addBlock!=null){if(typeof t.addBlock!="object")throw TypeError(".Delta.addBlock: object expected");o.addBlock=$root.Block.fromObject(t.addBlock)}if(t.newTransient!=null){if(typeof t.newTransient!="object")throw TypeError(".Delta.newTransient: object expected");o.newTransient=$root.Transient.fromObject(t.newTransient)}if(t.arrowAddRows!=null){if(typeof t.arrowAddRows!="object")throw TypeError(".Delta.arrowAddRows: object expected");o.arrowAddRows=$root.ArrowNamedDataSet.fromObject(t.arrowAddRows)}return t.fragmentId!=null&&(o.fragmentId=String(t.fragmentId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.fragmentId=""),t.newElement!=null&&t.hasOwnProperty("newElement")&&(d.newElement=$root.Element.toObject(t.newElement,o),o.oneofs&&(d.type="newElement")),t.addBlock!=null&&t.hasOwnProperty("addBlock")&&(d.addBlock=$root.Block.toObject(t.addBlock,o),o.oneofs&&(d.type="addBlock")),t.arrowAddRows!=null&&t.hasOwnProperty("arrowAddRows")&&(d.arrowAddRows=$root.ArrowNamedDataSet.toObject(t.arrowAddRows,o),o.oneofs&&(d.type="arrowAddRows")),t.fragmentId!=null&&t.hasOwnProperty("fragmentId")&&(d.fragmentId=t.fragmentId),t.newTransient!=null&&t.hasOwnProperty("newTransient")&&(d.newTransient=$root.Transient.toObject(t.newTransient,o),o.oneofs&&(d.type="newTransient")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Delta"},n})();const Element$1=$root.Element=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.heightConfig=null,n.prototype.widthConfig=null,n.prototype.textAlignmentConfig=null,n.prototype.alert=null,n.prototype.dataframe=null,n.prototype.table=null,n.prototype.arrowVegaLiteChart=null,n.prototype.audio=null,n.prototype.audioInput=null,n.prototype.balloons=null,n.prototype.bidiComponent=null,n.prototype.button=null,n.prototype.buttonGroup=null,n.prototype.downloadButton=null,n.prototype.cameraInput=null,n.prototype.chatInput=null,n.prototype.checkbox=null,n.prototype.colorPicker=null,n.prototype.componentInstance=null,n.prototype.dateInput=null,n.prototype.deckGlJsonChart=null,n.prototype.docString=null,n.prototype.empty=null,n.prototype.exception=null,n.prototype.favicon=null,n.prototype.feedback=null,n.prototype.fileUploader=null,n.prototype.graphvizChart=null,n.prototype.html=null,n.prototype.iframe=null,n.prototype.imgs=null,n.prototype.json=null,n.prototype.linkButton=null,n.prototype.markdown=null,n.prototype.metric=null,n.prototype.multiselect=null,n.prototype.numberInput=null,n.prototype.pageLink=null,n.prototype.plotlyChart=null,n.prototype.progress=null,n.prototype.radio=null,n.prototype.selectbox=null,n.prototype.skeleton=null,n.prototype.slider=null,n.prototype.snow=null,n.prototype.space=null,n.prototype.spinner=null,n.prototype.text=null,n.prototype.textArea=null,n.prototype.textInput=null,n.prototype.timeInput=null,n.prototype.dateTimeInput=null,n.prototype.toast=null,n.prototype.video=null,n.prototype.heading=null,n.prototype.code=null;let i;return Object.defineProperty(n.prototype,"_heightConfig",{get:$util.oneOfGetter(i=["heightConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_textAlignmentConfig",{get:$util.oneOfGetter(i=["textAlignmentConfig"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["alert","dataframe","table","arrowVegaLiteChart","audio","audioInput","balloons","bidiComponent","button","buttonGroup","downloadButton","cameraInput","chatInput","checkbox","colorPicker","componentInstance","dateInput","deckGlJsonChart","docString","empty","exception","favicon","feedback","fileUploader","graphvizChart","html","iframe","imgs","json","linkButton","markdown","metric","multiselect","numberInput","pageLink","plotlyChart","progress","radio","selectbox","skeleton","slider","snow","space","spinner","text","textArea","textInput","timeInput","dateTimeInput","toast","video","heading","code"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.text!=null&&Object.hasOwnProperty.call(t,"text")&&$root.Text.encode(t.text,o.uint32(10).fork()).ldelim(),t.empty!=null&&Object.hasOwnProperty.call(t,"empty")&&$root.Empty.encode(t.empty,o.uint32(18).fork()).ldelim(),t.progress!=null&&Object.hasOwnProperty.call(t,"progress")&&$root.Progress.encode(t.progress,o.uint32(42).fork()).ldelim(),t.imgs!=null&&Object.hasOwnProperty.call(t,"imgs")&&$root.ImageList.encode(t.imgs,o.uint32(50).fork()).ldelim(),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&$root.DocString.encode(t.docString,o.uint32(58).fork()).ldelim(),t.exception!=null&&Object.hasOwnProperty.call(t,"exception")&&$root.Exception.encode(t.exception,o.uint32(66).fork()).ldelim(),t.balloons!=null&&Object.hasOwnProperty.call(t,"balloons")&&$root.Balloons.encode(t.balloons,o.uint32(98).fork()).ldelim(),t.audio!=null&&Object.hasOwnProperty.call(t,"audio")&&$root.Audio.encode(t.audio,o.uint32(106).fork()).ldelim(),t.video!=null&&Object.hasOwnProperty.call(t,"video")&&$root.Video.encode(t.video,o.uint32(114).fork()).ldelim(),t.plotlyChart!=null&&Object.hasOwnProperty.call(t,"plotlyChart")&&$root.PlotlyChart.encode(t.plotlyChart,o.uint32(130).fork()).ldelim(),t.graphvizChart!=null&&Object.hasOwnProperty.call(t,"graphvizChart")&&$root.GraphVizChart.encode(t.graphvizChart,o.uint32(146).fork()).ldelim(),t.button!=null&&Object.hasOwnProperty.call(t,"button")&&$root.Button.encode(t.button,o.uint32(154).fork()).ldelim(),t.checkbox!=null&&Object.hasOwnProperty.call(t,"checkbox")&&$root.Checkbox.encode(t.checkbox,o.uint32(162).fork()).ldelim(),t.slider!=null&&Object.hasOwnProperty.call(t,"slider")&&$root.Slider.encode(t.slider,o.uint32(170).fork()).ldelim(),t.textArea!=null&&Object.hasOwnProperty.call(t,"textArea")&&$root.TextArea.encode(t.textArea,o.uint32(178).fork()).ldelim(),t.radio!=null&&Object.hasOwnProperty.call(t,"radio")&&$root.Radio.encode(t.radio,o.uint32(186).fork()).ldelim(),t.textInput!=null&&Object.hasOwnProperty.call(t,"textInput")&&$root.TextInput.encode(t.textInput,o.uint32(194).fork()).ldelim(),t.selectbox!=null&&Object.hasOwnProperty.call(t,"selectbox")&&$root.Selectbox.encode(t.selectbox,o.uint32(202).fork()).ldelim(),t.timeInput!=null&&Object.hasOwnProperty.call(t,"timeInput")&&$root.TimeInput.encode(t.timeInput,o.uint32(210).fork()).ldelim(),t.dateInput!=null&&Object.hasOwnProperty.call(t,"dateInput")&&$root.DateInput.encode(t.dateInput,o.uint32(218).fork()).ldelim(),t.multiselect!=null&&Object.hasOwnProperty.call(t,"multiselect")&&$root.MultiSelect.encode(t.multiselect,o.uint32(226).fork()).ldelim(),t.markdown!=null&&Object.hasOwnProperty.call(t,"markdown")&&$root.Markdown.encode(t.markdown,o.uint32(234).fork()).ldelim(),t.alert!=null&&Object.hasOwnProperty.call(t,"alert")&&$root.Alert.encode(t.alert,o.uint32(242).fork()).ldelim(),t.json!=null&&Object.hasOwnProperty.call(t,"json")&&$root.Json.encode(t.json,o.uint32(250).fork()).ldelim(),t.numberInput!=null&&Object.hasOwnProperty.call(t,"numberInput")&&$root.NumberInput.encode(t.numberInput,o.uint32(258).fork()).ldelim(),t.fileUploader!=null&&Object.hasOwnProperty.call(t,"fileUploader")&&$root.FileUploader.encode(t.fileUploader,o.uint32(266).fork()).ldelim(),t.deckGlJsonChart!=null&&Object.hasOwnProperty.call(t,"deckGlJsonChart")&&$root.DeckGlJsonChart.encode(t.deckGlJsonChart,o.uint32(274).fork()).ldelim(),t.colorPicker!=null&&Object.hasOwnProperty.call(t,"colorPicker")&&$root.ColorPicker.encode(t.colorPicker,o.uint32(282).fork()).ldelim(),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&$root.Favicon.encode(t.favicon,o.uint32(290).fork()).ldelim(),t.componentInstance!=null&&Object.hasOwnProperty.call(t,"componentInstance")&&$root.ComponentInstance.encode(t.componentInstance,o.uint32(298).fork()).ldelim(),t.iframe!=null&&Object.hasOwnProperty.call(t,"iframe")&&$root.IFrame.encode(t.iframe,o.uint32(306).fork()).ldelim(),t.table!=null&&Object.hasOwnProperty.call(t,"table")&&$root.Table.encode(t.table,o.uint32(314).fork()).ldelim(),t.dataframe!=null&&Object.hasOwnProperty.call(t,"dataframe")&&$root.Dataframe.encode(t.dataframe,o.uint32(322).fork()).ldelim(),t.arrowVegaLiteChart!=null&&Object.hasOwnProperty.call(t,"arrowVegaLiteChart")&&$root.ArrowVegaLiteChart.encode(t.arrowVegaLiteChart,o.uint32(330).fork()).ldelim(),t.metric!=null&&Object.hasOwnProperty.call(t,"metric")&&$root.Metric.encode(t.metric,o.uint32(338).fork()).ldelim(),t.downloadButton!=null&&Object.hasOwnProperty.call(t,"downloadButton")&&$root.DownloadButton.encode(t.downloadButton,o.uint32(346).fork()).ldelim(),t.spinner!=null&&Object.hasOwnProperty.call(t,"spinner")&&$root.Spinner.encode(t.spinner,o.uint32(354).fork()).ldelim(),t.cameraInput!=null&&Object.hasOwnProperty.call(t,"cameraInput")&&$root.CameraInput.encode(t.cameraInput,o.uint32(362).fork()).ldelim(),t.snow!=null&&Object.hasOwnProperty.call(t,"snow")&&$root.Snow.encode(t.snow,o.uint32(370).fork()).ldelim(),t.heading!=null&&Object.hasOwnProperty.call(t,"heading")&&$root.Heading.encode(t.heading,o.uint32(378).fork()).ldelim(),t.code!=null&&Object.hasOwnProperty.call(t,"code")&&$root.Code.encode(t.code,o.uint32(386).fork()).ldelim(),t.chatInput!=null&&Object.hasOwnProperty.call(t,"chatInput")&&$root.ChatInput.encode(t.chatInput,o.uint32(394).fork()).ldelim(),t.toast!=null&&Object.hasOwnProperty.call(t,"toast")&&$root.Toast.encode(t.toast,o.uint32(402).fork()).ldelim(),t.linkButton!=null&&Object.hasOwnProperty.call(t,"linkButton")&&$root.LinkButton.encode(t.linkButton,o.uint32(410).fork()).ldelim(),t.skeleton!=null&&Object.hasOwnProperty.call(t,"skeleton")&&$root.Skeleton.encode(t.skeleton,o.uint32(418).fork()).ldelim(),t.pageLink!=null&&Object.hasOwnProperty.call(t,"pageLink")&&$root.PageLink.encode(t.pageLink,o.uint32(426).fork()).ldelim(),t.html!=null&&Object.hasOwnProperty.call(t,"html")&&$root.Html.encode(t.html,o.uint32(434).fork()).ldelim(),t.buttonGroup!=null&&Object.hasOwnProperty.call(t,"buttonGroup")&&$root.ButtonGroup.encode(t.buttonGroup,o.uint32(442).fork()).ldelim(),t.audioInput!=null&&Object.hasOwnProperty.call(t,"audioInput")&&$root.AudioInput.encode(t.audioInput,o.uint32(450).fork()).ldelim(),t.heightConfig!=null&&Object.hasOwnProperty.call(t,"heightConfig")&&$root.streamlit.HeightConfig.encode(t.heightConfig,o.uint32(458).fork()).ldelim(),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(466).fork()).ldelim(),t.bidiComponent!=null&&Object.hasOwnProperty.call(t,"bidiComponent")&&$root.BidiComponent.encode(t.bidiComponent,o.uint32(474).fork()).ldelim(),t.space!=null&&Object.hasOwnProperty.call(t,"space")&&$root.Space.encode(t.space,o.uint32(482).fork()).ldelim(),t.textAlignmentConfig!=null&&Object.hasOwnProperty.call(t,"textAlignmentConfig")&&$root.streamlit.TextAlignmentConfig.encode(t.textAlignmentConfig,o.uint32(490).fork()).ldelim(),t.dateTimeInput!=null&&Object.hasOwnProperty.call(t,"dateTimeInput")&&$root.DateTimeInput.encode(t.dateTimeInput,o.uint32(498).fork()).ldelim(),t.feedback!=null&&Object.hasOwnProperty.call(t,"feedback")&&$root.Feedback.encode(t.feedback,o.uint32(506).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Element;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 57:{h.heightConfig=$root.streamlit.HeightConfig.decode(t,t.uint32());break}case 58:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}case 61:{h.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.decode(t,t.uint32());break}case 30:{h.alert=$root.Alert.decode(t,t.uint32());break}case 40:{h.dataframe=$root.Dataframe.decode(t,t.uint32());break}case 39:{h.table=$root.Table.decode(t,t.uint32());break}case 41:{h.arrowVegaLiteChart=$root.ArrowVegaLiteChart.decode(t,t.uint32());break}case 13:{h.audio=$root.Audio.decode(t,t.uint32());break}case 56:{h.audioInput=$root.AudioInput.decode(t,t.uint32());break}case 12:{h.balloons=$root.Balloons.decode(t,t.uint32());break}case 59:{h.bidiComponent=$root.BidiComponent.decode(t,t.uint32());break}case 19:{h.button=$root.Button.decode(t,t.uint32());break}case 55:{h.buttonGroup=$root.ButtonGroup.decode(t,t.uint32());break}case 43:{h.downloadButton=$root.DownloadButton.decode(t,t.uint32());break}case 45:{h.cameraInput=$root.CameraInput.decode(t,t.uint32());break}case 49:{h.chatInput=$root.ChatInput.decode(t,t.uint32());break}case 20:{h.checkbox=$root.Checkbox.decode(t,t.uint32());break}case 35:{h.colorPicker=$root.ColorPicker.decode(t,t.uint32());break}case 37:{h.componentInstance=$root.ComponentInstance.decode(t,t.uint32());break}case 27:{h.dateInput=$root.DateInput.decode(t,t.uint32());break}case 34:{h.deckGlJsonChart=$root.DeckGlJsonChart.decode(t,t.uint32());break}case 7:{h.docString=$root.DocString.decode(t,t.uint32());break}case 2:{h.empty=$root.Empty.decode(t,t.uint32());break}case 8:{h.exception=$root.Exception.decode(t,t.uint32());break}case 36:{h.favicon=$root.Favicon.decode(t,t.uint32());break}case 63:{h.feedback=$root.Feedback.decode(t,t.uint32());break}case 33:{h.fileUploader=$root.FileUploader.decode(t,t.uint32());break}case 18:{h.graphvizChart=$root.GraphVizChart.decode(t,t.uint32());break}case 54:{h.html=$root.Html.decode(t,t.uint32());break}case 38:{h.iframe=$root.IFrame.decode(t,t.uint32());break}case 6:{h.imgs=$root.ImageList.decode(t,t.uint32());break}case 31:{h.json=$root.Json.decode(t,t.uint32());break}case 51:{h.linkButton=$root.LinkButton.decode(t,t.uint32());break}case 29:{h.markdown=$root.Markdown.decode(t,t.uint32());break}case 42:{h.metric=$root.Metric.decode(t,t.uint32());break}case 28:{h.multiselect=$root.MultiSelect.decode(t,t.uint32());break}case 32:{h.numberInput=$root.NumberInput.decode(t,t.uint32());break}case 53:{h.pageLink=$root.PageLink.decode(t,t.uint32());break}case 16:{h.plotlyChart=$root.PlotlyChart.decode(t,t.uint32());break}case 5:{h.progress=$root.Progress.decode(t,t.uint32());break}case 23:{h.radio=$root.Radio.decode(t,t.uint32());break}case 25:{h.selectbox=$root.Selectbox.decode(t,t.uint32());break}case 52:{h.skeleton=$root.Skeleton.decode(t,t.uint32());break}case 21:{h.slider=$root.Slider.decode(t,t.uint32());break}case 46:{h.snow=$root.Snow.decode(t,t.uint32());break}case 60:{h.space=$root.Space.decode(t,t.uint32());break}case 44:{h.spinner=$root.Spinner.decode(t,t.uint32());break}case 1:{h.text=$root.Text.decode(t,t.uint32());break}case 22:{h.textArea=$root.TextArea.decode(t,t.uint32());break}case 24:{h.textInput=$root.TextInput.decode(t,t.uint32());break}case 26:{h.timeInput=$root.TimeInput.decode(t,t.uint32());break}case 62:{h.dateTimeInput=$root.DateTimeInput.decode(t,t.uint32());break}case 50:{h.toast=$root.Toast.decode(t,t.uint32());break}case 14:{h.video=$root.Video.decode(t,t.uint32());break}case 47:{h.heading=$root.Heading.decode(t,t.uint32());break}case 48:{h.code=$root.Code.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Element)return t;let o=new $root.Element;if(t.heightConfig!=null){if(typeof t.heightConfig!="object")throw TypeError(".Element.heightConfig: object expected");o.heightConfig=$root.streamlit.HeightConfig.fromObject(t.heightConfig)}if(t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Element.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}if(t.textAlignmentConfig!=null){if(typeof t.textAlignmentConfig!="object")throw TypeError(".Element.textAlignmentConfig: object expected");o.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.fromObject(t.textAlignmentConfig)}if(t.alert!=null){if(typeof t.alert!="object")throw TypeError(".Element.alert: object expected");o.alert=$root.Alert.fromObject(t.alert)}if(t.dataframe!=null){if(typeof t.dataframe!="object")throw TypeError(".Element.dataframe: object expected");o.dataframe=$root.Dataframe.fromObject(t.dataframe)}if(t.table!=null){if(typeof t.table!="object")throw TypeError(".Element.table: object expected");o.table=$root.Table.fromObject(t.table)}if(t.arrowVegaLiteChart!=null){if(typeof t.arrowVegaLiteChart!="object")throw TypeError(".Element.arrowVegaLiteChart: object expected");o.arrowVegaLiteChart=$root.ArrowVegaLiteChart.fromObject(t.arrowVegaLiteChart)}if(t.audio!=null){if(typeof t.audio!="object")throw TypeError(".Element.audio: object expected");o.audio=$root.Audio.fromObject(t.audio)}if(t.audioInput!=null){if(typeof t.audioInput!="object")throw TypeError(".Element.audioInput: object expected");o.audioInput=$root.AudioInput.fromObject(t.audioInput)}if(t.balloons!=null){if(typeof t.balloons!="object")throw TypeError(".Element.balloons: object expected");o.balloons=$root.Balloons.fromObject(t.balloons)}if(t.bidiComponent!=null){if(typeof t.bidiComponent!="object")throw TypeError(".Element.bidiComponent: object expected");o.bidiComponent=$root.BidiComponent.fromObject(t.bidiComponent)}if(t.button!=null){if(typeof t.button!="object")throw TypeError(".Element.button: object expected");o.button=$root.Button.fromObject(t.button)}if(t.buttonGroup!=null){if(typeof t.buttonGroup!="object")throw TypeError(".Element.buttonGroup: object expected");o.buttonGroup=$root.ButtonGroup.fromObject(t.buttonGroup)}if(t.downloadButton!=null){if(typeof t.downloadButton!="object")throw TypeError(".Element.downloadButton: object expected");o.downloadButton=$root.DownloadButton.fromObject(t.downloadButton)}if(t.cameraInput!=null){if(typeof t.cameraInput!="object")throw TypeError(".Element.cameraInput: object expected");o.cameraInput=$root.CameraInput.fromObject(t.cameraInput)}if(t.chatInput!=null){if(typeof t.chatInput!="object")throw TypeError(".Element.chatInput: object expected");o.chatInput=$root.ChatInput.fromObject(t.chatInput)}if(t.checkbox!=null){if(typeof t.checkbox!="object")throw TypeError(".Element.checkbox: object expected");o.checkbox=$root.Checkbox.fromObject(t.checkbox)}if(t.colorPicker!=null){if(typeof t.colorPicker!="object")throw TypeError(".Element.colorPicker: object expected");o.colorPicker=$root.ColorPicker.fromObject(t.colorPicker)}if(t.componentInstance!=null){if(typeof t.componentInstance!="object")throw TypeError(".Element.componentInstance: object expected");o.componentInstance=$root.ComponentInstance.fromObject(t.componentInstance)}if(t.dateInput!=null){if(typeof t.dateInput!="object")throw TypeError(".Element.dateInput: object expected");o.dateInput=$root.DateInput.fromObject(t.dateInput)}if(t.deckGlJsonChart!=null){if(typeof t.deckGlJsonChart!="object")throw TypeError(".Element.deckGlJsonChart: object expected");o.deckGlJsonChart=$root.DeckGlJsonChart.fromObject(t.deckGlJsonChart)}if(t.docString!=null){if(typeof t.docString!="object")throw TypeError(".Element.docString: object expected");o.docString=$root.DocString.fromObject(t.docString)}if(t.empty!=null){if(typeof t.empty!="object")throw TypeError(".Element.empty: object expected");o.empty=$root.Empty.fromObject(t.empty)}if(t.exception!=null){if(typeof t.exception!="object")throw TypeError(".Element.exception: object expected");o.exception=$root.Exception.fromObject(t.exception)}if(t.favicon!=null){if(typeof t.favicon!="object")throw TypeError(".Element.favicon: object expected");o.favicon=$root.Favicon.fromObject(t.favicon)}if(t.feedback!=null){if(typeof t.feedback!="object")throw TypeError(".Element.feedback: object expected");o.feedback=$root.Feedback.fromObject(t.feedback)}if(t.fileUploader!=null){if(typeof t.fileUploader!="object")throw TypeError(".Element.fileUploader: object expected");o.fileUploader=$root.FileUploader.fromObject(t.fileUploader)}if(t.graphvizChart!=null){if(typeof t.graphvizChart!="object")throw TypeError(".Element.graphvizChart: object expected");o.graphvizChart=$root.GraphVizChart.fromObject(t.graphvizChart)}if(t.html!=null){if(typeof t.html!="object")throw TypeError(".Element.html: object expected");o.html=$root.Html.fromObject(t.html)}if(t.iframe!=null){if(typeof t.iframe!="object")throw TypeError(".Element.iframe: object expected");o.iframe=$root.IFrame.fromObject(t.iframe)}if(t.imgs!=null){if(typeof t.imgs!="object")throw TypeError(".Element.imgs: object expected");o.imgs=$root.ImageList.fromObject(t.imgs)}if(t.json!=null){if(typeof t.json!="object")throw TypeError(".Element.json: object expected");o.json=$root.Json.fromObject(t.json)}if(t.linkButton!=null){if(typeof t.linkButton!="object")throw TypeError(".Element.linkButton: object expected");o.linkButton=$root.LinkButton.fromObject(t.linkButton)}if(t.markdown!=null){if(typeof t.markdown!="object")throw TypeError(".Element.markdown: object expected");o.markdown=$root.Markdown.fromObject(t.markdown)}if(t.metric!=null){if(typeof t.metric!="object")throw TypeError(".Element.metric: object expected");o.metric=$root.Metric.fromObject(t.metric)}if(t.multiselect!=null){if(typeof t.multiselect!="object")throw TypeError(".Element.multiselect: object expected");o.multiselect=$root.MultiSelect.fromObject(t.multiselect)}if(t.numberInput!=null){if(typeof t.numberInput!="object")throw TypeError(".Element.numberInput: object expected");o.numberInput=$root.NumberInput.fromObject(t.numberInput)}if(t.pageLink!=null){if(typeof t.pageLink!="object")throw TypeError(".Element.pageLink: object expected");o.pageLink=$root.PageLink.fromObject(t.pageLink)}if(t.plotlyChart!=null){if(typeof t.plotlyChart!="object")throw TypeError(".Element.plotlyChart: object expected");o.plotlyChart=$root.PlotlyChart.fromObject(t.plotlyChart)}if(t.progress!=null){if(typeof t.progress!="object")throw TypeError(".Element.progress: object expected");o.progress=$root.Progress.fromObject(t.progress)}if(t.radio!=null){if(typeof t.radio!="object")throw TypeError(".Element.radio: object expected");o.radio=$root.Radio.fromObject(t.radio)}if(t.selectbox!=null){if(typeof t.selectbox!="object")throw TypeError(".Element.selectbox: object expected");o.selectbox=$root.Selectbox.fromObject(t.selectbox)}if(t.skeleton!=null){if(typeof t.skeleton!="object")throw TypeError(".Element.skeleton: object expected");o.skeleton=$root.Skeleton.fromObject(t.skeleton)}if(t.slider!=null){if(typeof t.slider!="object")throw TypeError(".Element.slider: object expected");o.slider=$root.Slider.fromObject(t.slider)}if(t.snow!=null){if(typeof t.snow!="object")throw TypeError(".Element.snow: object expected");o.snow=$root.Snow.fromObject(t.snow)}if(t.space!=null){if(typeof t.space!="object")throw TypeError(".Element.space: object expected");o.space=$root.Space.fromObject(t.space)}if(t.spinner!=null){if(typeof t.spinner!="object")throw TypeError(".Element.spinner: object expected");o.spinner=$root.Spinner.fromObject(t.spinner)}if(t.text!=null){if(typeof t.text!="object")throw TypeError(".Element.text: object expected");o.text=$root.Text.fromObject(t.text)}if(t.textArea!=null){if(typeof t.textArea!="object")throw TypeError(".Element.textArea: object expected");o.textArea=$root.TextArea.fromObject(t.textArea)}if(t.textInput!=null){if(typeof t.textInput!="object")throw TypeError(".Element.textInput: object expected");o.textInput=$root.TextInput.fromObject(t.textInput)}if(t.timeInput!=null){if(typeof t.timeInput!="object")throw TypeError(".Element.timeInput: object expected");o.timeInput=$root.TimeInput.fromObject(t.timeInput)}if(t.dateTimeInput!=null){if(typeof t.dateTimeInput!="object")throw TypeError(".Element.dateTimeInput: object expected");o.dateTimeInput=$root.DateTimeInput.fromObject(t.dateTimeInput)}if(t.toast!=null){if(typeof t.toast!="object")throw TypeError(".Element.toast: object expected");o.toast=$root.Toast.fromObject(t.toast)}if(t.video!=null){if(typeof t.video!="object")throw TypeError(".Element.video: object expected");o.video=$root.Video.fromObject(t.video)}if(t.heading!=null){if(typeof t.heading!="object")throw TypeError(".Element.heading: object expected");o.heading=$root.Heading.fromObject(t.heading)}if(t.code!=null){if(typeof t.code!="object")throw TypeError(".Element.code: object expected");o.code=$root.Code.fromObject(t.code)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.text!=null&&t.hasOwnProperty("text")&&(d.text=$root.Text.toObject(t.text,o),o.oneofs&&(d.type="text")),t.empty!=null&&t.hasOwnProperty("empty")&&(d.empty=$root.Empty.toObject(t.empty,o),o.oneofs&&(d.type="empty")),t.progress!=null&&t.hasOwnProperty("progress")&&(d.progress=$root.Progress.toObject(t.progress,o),o.oneofs&&(d.type="progress")),t.imgs!=null&&t.hasOwnProperty("imgs")&&(d.imgs=$root.ImageList.toObject(t.imgs,o),o.oneofs&&(d.type="imgs")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=$root.DocString.toObject(t.docString,o),o.oneofs&&(d.type="docString")),t.exception!=null&&t.hasOwnProperty("exception")&&(d.exception=$root.Exception.toObject(t.exception,o),o.oneofs&&(d.type="exception")),t.balloons!=null&&t.hasOwnProperty("balloons")&&(d.balloons=$root.Balloons.toObject(t.balloons,o),o.oneofs&&(d.type="balloons")),t.audio!=null&&t.hasOwnProperty("audio")&&(d.audio=$root.Audio.toObject(t.audio,o),o.oneofs&&(d.type="audio")),t.video!=null&&t.hasOwnProperty("video")&&(d.video=$root.Video.toObject(t.video,o),o.oneofs&&(d.type="video")),t.plotlyChart!=null&&t.hasOwnProperty("plotlyChart")&&(d.plotlyChart=$root.PlotlyChart.toObject(t.plotlyChart,o),o.oneofs&&(d.type="plotlyChart")),t.graphvizChart!=null&&t.hasOwnProperty("graphvizChart")&&(d.graphvizChart=$root.GraphVizChart.toObject(t.graphvizChart,o),o.oneofs&&(d.type="graphvizChart")),t.button!=null&&t.hasOwnProperty("button")&&(d.button=$root.Button.toObject(t.button,o),o.oneofs&&(d.type="button")),t.checkbox!=null&&t.hasOwnProperty("checkbox")&&(d.checkbox=$root.Checkbox.toObject(t.checkbox,o),o.oneofs&&(d.type="checkbox")),t.slider!=null&&t.hasOwnProperty("slider")&&(d.slider=$root.Slider.toObject(t.slider,o),o.oneofs&&(d.type="slider")),t.textArea!=null&&t.hasOwnProperty("textArea")&&(d.textArea=$root.TextArea.toObject(t.textArea,o),o.oneofs&&(d.type="textArea")),t.radio!=null&&t.hasOwnProperty("radio")&&(d.radio=$root.Radio.toObject(t.radio,o),o.oneofs&&(d.type="radio")),t.textInput!=null&&t.hasOwnProperty("textInput")&&(d.textInput=$root.TextInput.toObject(t.textInput,o),o.oneofs&&(d.type="textInput")),t.selectbox!=null&&t.hasOwnProperty("selectbox")&&(d.selectbox=$root.Selectbox.toObject(t.selectbox,o),o.oneofs&&(d.type="selectbox")),t.timeInput!=null&&t.hasOwnProperty("timeInput")&&(d.timeInput=$root.TimeInput.toObject(t.timeInput,o),o.oneofs&&(d.type="timeInput")),t.dateInput!=null&&t.hasOwnProperty("dateInput")&&(d.dateInput=$root.DateInput.toObject(t.dateInput,o),o.oneofs&&(d.type="dateInput")),t.multiselect!=null&&t.hasOwnProperty("multiselect")&&(d.multiselect=$root.MultiSelect.toObject(t.multiselect,o),o.oneofs&&(d.type="multiselect")),t.markdown!=null&&t.hasOwnProperty("markdown")&&(d.markdown=$root.Markdown.toObject(t.markdown,o),o.oneofs&&(d.type="markdown")),t.alert!=null&&t.hasOwnProperty("alert")&&(d.alert=$root.Alert.toObject(t.alert,o),o.oneofs&&(d.type="alert")),t.json!=null&&t.hasOwnProperty("json")&&(d.json=$root.Json.toObject(t.json,o),o.oneofs&&(d.type="json")),t.numberInput!=null&&t.hasOwnProperty("numberInput")&&(d.numberInput=$root.NumberInput.toObject(t.numberInput,o),o.oneofs&&(d.type="numberInput")),t.fileUploader!=null&&t.hasOwnProperty("fileUploader")&&(d.fileUploader=$root.FileUploader.toObject(t.fileUploader,o),o.oneofs&&(d.type="fileUploader")),t.deckGlJsonChart!=null&&t.hasOwnProperty("deckGlJsonChart")&&(d.deckGlJsonChart=$root.DeckGlJsonChart.toObject(t.deckGlJsonChart,o),o.oneofs&&(d.type="deckGlJsonChart")),t.colorPicker!=null&&t.hasOwnProperty("colorPicker")&&(d.colorPicker=$root.ColorPicker.toObject(t.colorPicker,o),o.oneofs&&(d.type="colorPicker")),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=$root.Favicon.toObject(t.favicon,o),o.oneofs&&(d.type="favicon")),t.componentInstance!=null&&t.hasOwnProperty("componentInstance")&&(d.componentInstance=$root.ComponentInstance.toObject(t.componentInstance,o),o.oneofs&&(d.type="componentInstance")),t.iframe!=null&&t.hasOwnProperty("iframe")&&(d.iframe=$root.IFrame.toObject(t.iframe,o),o.oneofs&&(d.type="iframe")),t.table!=null&&t.hasOwnProperty("table")&&(d.table=$root.Table.toObject(t.table,o),o.oneofs&&(d.type="table")),t.dataframe!=null&&t.hasOwnProperty("dataframe")&&(d.dataframe=$root.Dataframe.toObject(t.dataframe,o),o.oneofs&&(d.type="dataframe")),t.arrowVegaLiteChart!=null&&t.hasOwnProperty("arrowVegaLiteChart")&&(d.arrowVegaLiteChart=$root.ArrowVegaLiteChart.toObject(t.arrowVegaLiteChart,o),o.oneofs&&(d.type="arrowVegaLiteChart")),t.metric!=null&&t.hasOwnProperty("metric")&&(d.metric=$root.Metric.toObject(t.metric,o),o.oneofs&&(d.type="metric")),t.downloadButton!=null&&t.hasOwnProperty("downloadButton")&&(d.downloadButton=$root.DownloadButton.toObject(t.downloadButton,o),o.oneofs&&(d.type="downloadButton")),t.spinner!=null&&t.hasOwnProperty("spinner")&&(d.spinner=$root.Spinner.toObject(t.spinner,o),o.oneofs&&(d.type="spinner")),t.cameraInput!=null&&t.hasOwnProperty("cameraInput")&&(d.cameraInput=$root.CameraInput.toObject(t.cameraInput,o),o.oneofs&&(d.type="cameraInput")),t.snow!=null&&t.hasOwnProperty("snow")&&(d.snow=$root.Snow.toObject(t.snow,o),o.oneofs&&(d.type="snow")),t.heading!=null&&t.hasOwnProperty("heading")&&(d.heading=$root.Heading.toObject(t.heading,o),o.oneofs&&(d.type="heading")),t.code!=null&&t.hasOwnProperty("code")&&(d.code=$root.Code.toObject(t.code,o),o.oneofs&&(d.type="code")),t.chatInput!=null&&t.hasOwnProperty("chatInput")&&(d.chatInput=$root.ChatInput.toObject(t.chatInput,o),o.oneofs&&(d.type="chatInput")),t.toast!=null&&t.hasOwnProperty("toast")&&(d.toast=$root.Toast.toObject(t.toast,o),o.oneofs&&(d.type="toast")),t.linkButton!=null&&t.hasOwnProperty("linkButton")&&(d.linkButton=$root.LinkButton.toObject(t.linkButton,o),o.oneofs&&(d.type="linkButton")),t.skeleton!=null&&t.hasOwnProperty("skeleton")&&(d.skeleton=$root.Skeleton.toObject(t.skeleton,o),o.oneofs&&(d.type="skeleton")),t.pageLink!=null&&t.hasOwnProperty("pageLink")&&(d.pageLink=$root.PageLink.toObject(t.pageLink,o),o.oneofs&&(d.type="pageLink")),t.html!=null&&t.hasOwnProperty("html")&&(d.html=$root.Html.toObject(t.html,o),o.oneofs&&(d.type="html")),t.buttonGroup!=null&&t.hasOwnProperty("buttonGroup")&&(d.buttonGroup=$root.ButtonGroup.toObject(t.buttonGroup,o),o.oneofs&&(d.type="buttonGroup")),t.audioInput!=null&&t.hasOwnProperty("audioInput")&&(d.audioInput=$root.AudioInput.toObject(t.audioInput,o),o.oneofs&&(d.type="audioInput")),t.heightConfig!=null&&t.hasOwnProperty("heightConfig")&&(d.heightConfig=$root.streamlit.HeightConfig.toObject(t.heightConfig,o),o.oneofs&&(d._heightConfig="heightConfig")),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),t.bidiComponent!=null&&t.hasOwnProperty("bidiComponent")&&(d.bidiComponent=$root.BidiComponent.toObject(t.bidiComponent,o),o.oneofs&&(d.type="bidiComponent")),t.space!=null&&t.hasOwnProperty("space")&&(d.space=$root.Space.toObject(t.space,o),o.oneofs&&(d.type="space")),t.textAlignmentConfig!=null&&t.hasOwnProperty("textAlignmentConfig")&&(d.textAlignmentConfig=$root.streamlit.TextAlignmentConfig.toObject(t.textAlignmentConfig,o),o.oneofs&&(d._textAlignmentConfig="textAlignmentConfig")),t.dateTimeInput!=null&&t.hasOwnProperty("dateTimeInput")&&(d.dateTimeInput=$root.DateTimeInput.toObject(t.dateTimeInput,o),o.oneofs&&(d.type="dateTimeInput")),t.feedback!=null&&t.hasOwnProperty("feedback")&&(d.feedback=$root.Feedback.toObject(t.feedback,o),o.oneofs&&(d.type="feedback")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Element"},n})(),Table$1=$root.Table=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.arrowData=null,n.prototype.borderMode=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.arrowData!=null&&Object.hasOwnProperty.call(e,"arrowData")&&$root.ArrowData.encode(e.arrowData,t.uint32(10).fork()).ldelim(),e.borderMode!=null&&Object.hasOwnProperty.call(e,"borderMode")&&t.uint32(16).int32(e.borderMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Table;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.arrowData=$root.ArrowData.decode(e,e.uint32());break}case 2:{p.borderMode=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Table)return e;let t=new $root.Table;if(e.arrowData!=null){if(typeof e.arrowData!="object")throw TypeError(".Table.arrowData: object expected");t.arrowData=$root.ArrowData.fromObject(e.arrowData)}switch(e.borderMode){default:if(typeof e.borderMode=="number"){t.borderMode=e.borderMode;break}break;case"ALL":case 0:t.borderMode=0;break;case"NONE":case 1:t.borderMode=1;break;case"HORIZONTAL":case 2:t.borderMode=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.arrowData=null,o.borderMode=t.enums===String?"ALL":0),e.arrowData!=null&&e.hasOwnProperty("arrowData")&&(o.arrowData=$root.ArrowData.toObject(e.arrowData,t)),e.borderMode!=null&&e.hasOwnProperty("borderMode")&&(o.borderMode=t.enums===String?$root.Table.BorderMode[e.borderMode]===void 0?e.borderMode:$root.Table.BorderMode[e.borderMode]:e.borderMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Table"},n.BorderMode=(function(){const i={},e=Object.create(i);return e[i[0]="ALL"]=0,e[i[1]="NONE"]=1,e[i[2]="HORIZONTAL"]=2,e})(),n})();$root.DownloadButton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=!1,n.prototype.help="",n.prototype.formId="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.ignoreRerun=!1,n.prototype.deferredFileId=null,n.prototype.shortcut="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_deferredFileId",{get:$util.oneOfGetter(i=["deferredFileId"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).bool(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(64).bool(t.useContainerWidth),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(74).string(t.type),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(82).string(t.icon),t.ignoreRerun!=null&&Object.hasOwnProperty.call(t,"ignoreRerun")&&o.uint32(88).bool(t.ignoreRerun),t.deferredFileId!=null&&Object.hasOwnProperty.call(t,"deferredFileId")&&o.uint32(98).string(t.deferredFileId),t.shortcut!=null&&Object.hasOwnProperty.call(t,"shortcut")&&o.uint32(106).string(t.shortcut),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(112).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.DownloadButton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.bool();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.url=t.string();break}case 7:{h.disabled=t.bool();break}case 8:{h.useContainerWidth=t.bool();break}case 9:{h.type=t.string();break}case 10:{h.icon=t.string();break}case 11:{h.ignoreRerun=t.bool();break}case 12:{h.deferredFileId=t.string();break}case 13:{h.shortcut=t.string();break}case 14:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.DownloadButton)return t;let o=new $root.DownloadButton;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=!!t.default),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.url!=null&&(o.url=String(t.url)),t.disabled!=null&&(o.disabled=!!t.disabled),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.type!=null&&(o.type=String(t.type)),t.icon!=null&&(o.icon=String(t.icon)),t.ignoreRerun!=null&&(o.ignoreRerun=!!t.ignoreRerun),t.deferredFileId!=null&&(o.deferredFileId=String(t.deferredFileId)),t.shortcut!=null&&(o.shortcut=String(t.shortcut)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.default=!1,d.help="",d.formId="",d.url="",d.disabled=!1,d.useContainerWidth=!1,d.type="",d.icon="",d.ignoreRerun=!1,d.shortcut="",d.iconPosition=o.enums===String?"LEFT":0),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.ignoreRerun!=null&&t.hasOwnProperty("ignoreRerun")&&(d.ignoreRerun=t.ignoreRerun),t.deferredFileId!=null&&t.hasOwnProperty("deferredFileId")&&(d.deferredFileId=t.deferredFileId,o.oneofs&&(d._deferredFileId="deferredFileId")),t.shortcut!=null&&t.hasOwnProperty("shortcut")&&(d.shortcut=t.shortcut),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/DownloadButton"},n})();$root.DocString=(()=>{function n(i){if(this.members=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.docString="",n.prototype.type="",n.prototype.name="",n.prototype.value="",n.prototype.members=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.docString!=null&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(50).string(e.name),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(58).string(e.value),e.members!=null&&e.members.length)for(let o=0;o<e.members.length;++o)$root.Member.encode(e.members[o],t.uint32(66).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DocString;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.docString=e.string();break}case 4:{p.type=e.string();break}case 6:{p.name=e.string();break}case 7:{p.value=e.string();break}case 8:{p.members&&p.members.length||(p.members=[]),p.members.push($root.Member.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DocString)return e;let t=new $root.DocString;if(e.docString!=null&&(t.docString=String(e.docString)),e.type!=null&&(t.type=String(e.type)),e.name!=null&&(t.name=String(e.name)),e.value!=null&&(t.value=String(e.value)),e.members){if(!Array.isArray(e.members))throw TypeError(".DocString.members: array expected");t.members=[];for(let o=0;o<e.members.length;++o){if(typeof e.members[o]!="object")throw TypeError(".DocString.members: object expected");t.members[o]=$root.Member.fromObject(e.members[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.members=[]),t.defaults&&(o.docString="",o.type="",o.name="",o.value=""),e.docString!=null&&e.hasOwnProperty("docString")&&(o.docString=e.docString),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.members&&e.members.length){o.members=[];for(let d=0;d<e.members.length;++d)o.members[d]=$root.Member.toObject(e.members[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DocString"},n})();$root.Member=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.name="",n.prototype.type="",n.prototype.value=null,n.prototype.docString=null;let i;return Object.defineProperty(n.prototype,"contents",{get:$util.oneOfGetter(i=["value","docString"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(18).string(t.type),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(26).string(t.value),t.docString!=null&&Object.hasOwnProperty.call(t,"docString")&&o.uint32(34).string(t.docString),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Member;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.string();break}case 3:{h.value=t.string();break}case 4:{h.docString=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Member)return t;let o=new $root.Member;return t.name!=null&&(o.name=String(t.name)),t.type!=null&&(o.type=String(t.type)),t.value!=null&&(o.value=String(t.value)),t.docString!=null&&(o.docString=String(t.docString)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.type=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=t.type),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d.contents="value")),t.docString!=null&&t.hasOwnProperty("docString")&&(d.docString=t.docString,o.oneofs&&(d.contents="docString")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Member"},n})();$root.Empty=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Empty;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Empty?e:new $root.Empty},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Empty"},n})();$root.Exception=(()=>{function n(i){if(this.stackTrace=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.type="",n.prototype.message="",n.prototype.messageIsMarkdown=!1,n.prototype.stackTrace=$util.emptyArray,n.prototype.isWarning=!1,n.prototype.widthConfig=null,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),e.stackTrace!=null&&e.stackTrace.length)for(let o=0;o<e.stackTrace.length;++o)t.uint32(26).string(e.stackTrace[o]);return e.messageIsMarkdown!=null&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),e.isWarning!=null&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),e.widthConfig!=null&&Object.hasOwnProperty.call(e,"widthConfig")&&$root.streamlit.WidthConfig.encode(e.widthConfig,t.uint32(50).fork()).ldelim(),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Exception;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.type=e.string();break}case 2:{p.message=e.string();break}case 4:{p.messageIsMarkdown=e.bool();break}case 3:{p.stackTrace&&p.stackTrace.length||(p.stackTrace=[]),p.stackTrace.push(e.string());break}case 5:{p.isWarning=e.bool();break}case 6:{p.widthConfig=$root.streamlit.WidthConfig.decode(e,e.uint32());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Exception)return e;let t=new $root.Exception;if(e.type!=null&&(t.type=String(e.type)),e.message!=null&&(t.message=String(e.message)),e.messageIsMarkdown!=null&&(t.messageIsMarkdown=!!e.messageIsMarkdown),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let o=0;o<e.stackTrace.length;++o)t.stackTrace[o]=String(e.stackTrace[o])}if(e.isWarning!=null&&(t.isWarning=!!e.isWarning),e.widthConfig!=null){if(typeof e.widthConfig!="object")throw TypeError(".Exception.widthConfig: object expected");t.widthConfig=$root.streamlit.WidthConfig.fromObject(e.widthConfig)}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.stackTrace=[]),t.defaults&&(o.type="",o.message="",o.messageIsMarkdown=!1,o.isWarning=!1,o.widthConfig=null),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),e.stackTrace&&e.stackTrace.length){o.stackTrace=[];for(let d=0;d<e.stackTrace.length;++d)o.stackTrace[d]=e.stackTrace[d]}return e.messageIsMarkdown!=null&&e.hasOwnProperty("messageIsMarkdown")&&(o.messageIsMarkdown=e.messageIsMarkdown),e.isWarning!=null&&e.hasOwnProperty("isWarning")&&(o.isWarning=e.isWarning),e.widthConfig!=null&&e.hasOwnProperty("widthConfig")&&(o.widthConfig=$root.streamlit.WidthConfig.toObject(e.widthConfig,t)),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Exception"},n})();$root.Favicon=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Favicon;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Favicon)return e;let t=new $root.Favicon;return e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Favicon"},n})();const Feedback$1=$root.Feedback=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.type=0,n.prototype.default=null,n.prototype.disabled=!1,n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(16).int32(t.type),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).uint32(t.default),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(32).bool(t.disabled),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(48).uint32(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(56).bool(t.setValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Feedback;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.type=t.int32();break}case 3:{h.default=t.uint32();break}case 4:{h.disabled=t.bool();break}case 5:{h.formId=t.string();break}case 6:{h.value=t.uint32();break}case 7:{h.setValue=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Feedback)return t;let o=new $root.Feedback;switch(t.id!=null&&(o.id=String(t.id)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"THUMBS":case 0:o.type=0;break;case"FACES":case 1:o.type=1;break;case"STARS":case 2:o.type=2;break}return t.default!=null&&(o.default=t.default>>>0),t.disabled!=null&&(o.disabled=!!t.disabled),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=t.value>>>0),t.setValue!=null&&(o.setValue=!!t.setValue),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.type=o.enums===String?"THUMBS":0,d.disabled=!1,d.formId="",d.setValue=!1),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Feedback.FeedbackType[t.type]===void 0?t.type:$root.Feedback.FeedbackType[t.type]:t.type),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Feedback"},n.FeedbackType=(function(){const e={},t=Object.create(e);return t[e[0]="THUMBS"]=0,t[e[1]="FACES"]=1,t[e[2]="STARS"]=2,t})(),n})();$root.FileUploader=(()=>{function n(i){if(this.type=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.type=$util.emptyArray,n.prototype.maxUploadSizeMb=0,n.prototype.multipleFiles=!1,n.prototype.help="",n.prototype.formId="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.acceptDirectory=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.type!=null&&e.type.length)for(let o=0;o<e.type.length;++o)t.uint32(26).string(e.type[o]);return e.maxUploadSizeMb!=null&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),e.multipleFiles!=null&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),e.acceptDirectory!=null&&Object.hasOwnProperty.call(e,"acceptDirectory")&&t.uint32(88).bool(e.acceptDirectory),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FileUploader;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 3:{p.type&&p.type.length||(p.type=[]),p.type.push(e.string());break}case 4:{p.maxUploadSizeMb=e.int32();break}case 6:{p.multipleFiles=e.bool();break}case 7:{p.help=e.string();break}case 8:{p.formId=e.string();break}case 9:{p.disabled=e.bool();break}case 10:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 11:{p.acceptDirectory=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FileUploader)return e;let t=new $root.FileUploader;if(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let o=0;o<e.type.length;++o)t.type[o]=String(e.type[o])}if(e.maxUploadSizeMb!=null&&(t.maxUploadSizeMb=e.maxUploadSizeMb|0),e.multipleFiles!=null&&(t.multipleFiles=!!e.multipleFiles),e.help!=null&&(t.help=String(e.help)),e.formId!=null&&(t.formId=String(e.formId)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}return e.acceptDirectory!=null&&(t.acceptDirectory=!!e.acceptDirectory),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.type=[]),t.defaults&&(o.id="",o.label="",o.maxUploadSizeMb=0,o.multipleFiles=!1,o.help="",o.formId="",o.disabled=!1,o.labelVisibility=null,o.acceptDirectory=!1),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.type&&e.type.length){o.type=[];for(let d=0;d<e.type.length;++d)o.type[d]=e.type[d]}return e.maxUploadSizeMb!=null&&e.hasOwnProperty("maxUploadSizeMb")&&(o.maxUploadSizeMb=e.maxUploadSizeMb),e.multipleFiles!=null&&e.hasOwnProperty("multipleFiles")&&(o.multipleFiles=e.multipleFiles),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.acceptDirectory!=null&&e.hasOwnProperty("acceptDirectory")&&(o.acceptDirectory=e.acceptDirectory),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FileUploader"},n})();$root.GraphVizChart=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.spec="",n.prototype.elementId="",n.prototype.engine="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),e.elementId!=null&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),e.engine!=null&&Object.hasOwnProperty.call(e,"engine")&&t.uint32(50).string(e.engine),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GraphVizChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.spec=e.string();break}case 5:{p.elementId=e.string();break}case 6:{p.engine=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GraphVizChart)return e;let t=new $root.GraphVizChart;return e.spec!=null&&(t.spec=String(e.spec)),e.elementId!=null&&(t.elementId=String(e.elementId)),e.engine!=null&&(t.engine=String(e.engine)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.spec="",o.elementId="",o.engine=""),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.elementId!=null&&e.hasOwnProperty("elementId")&&(o.elementId=e.elementId),e.engine!=null&&e.hasOwnProperty("engine")&&(o.engine=e.engine),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GraphVizChart"},n})();$root.Html=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.unsafeAllowJavascript=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.unsafeAllowJavascript!=null&&Object.hasOwnProperty.call(e,"unsafeAllowJavascript")&&t.uint32(16).bool(e.unsafeAllowJavascript),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Html;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.unsafeAllowJavascript=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Html)return e;let t=new $root.Html;return e.body!=null&&(t.body=String(e.body)),e.unsafeAllowJavascript!=null&&(t.unsafeAllowJavascript=!!e.unsafeAllowJavascript),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.unsafeAllowJavascript=!1),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.unsafeAllowJavascript!=null&&e.hasOwnProperty("unsafeAllowJavascript")&&(o.unsafeAllowJavascript=e.unsafeAllowJavascript),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Html"},n})();$root.IFrame=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.src=null,n.prototype.srcdoc=null,n.prototype.scrolling=!1,n.prototype.tabIndex=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["src","srcdoc"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_tabIndex",{get:$util.oneOfGetter(i=["tabIndex"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.src!=null&&Object.hasOwnProperty.call(t,"src")&&o.uint32(10).string(t.src),t.srcdoc!=null&&Object.hasOwnProperty.call(t,"srcdoc")&&o.uint32(18).string(t.srcdoc),t.scrolling!=null&&Object.hasOwnProperty.call(t,"scrolling")&&o.uint32(56).bool(t.scrolling),t.tabIndex!=null&&Object.hasOwnProperty.call(t,"tabIndex")&&o.uint32(64).int32(t.tabIndex),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.IFrame;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.src=t.string();break}case 2:{h.srcdoc=t.string();break}case 7:{h.scrolling=t.bool();break}case 8:{h.tabIndex=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.IFrame)return t;let o=new $root.IFrame;return t.src!=null&&(o.src=String(t.src)),t.srcdoc!=null&&(o.srcdoc=String(t.srcdoc)),t.scrolling!=null&&(o.scrolling=!!t.scrolling),t.tabIndex!=null&&(o.tabIndex=t.tabIndex|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.scrolling=!1),t.src!=null&&t.hasOwnProperty("src")&&(d.src=t.src,o.oneofs&&(d.type="src")),t.srcdoc!=null&&t.hasOwnProperty("srcdoc")&&(d.srcdoc=t.srcdoc,o.oneofs&&(d.type="srcdoc")),t.scrolling!=null&&t.hasOwnProperty("scrolling")&&(d.scrolling=t.scrolling),t.tabIndex!=null&&t.hasOwnProperty("tabIndex")&&(d.tabIndex=t.tabIndex,o.oneofs&&(d._tabIndex="tabIndex")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/IFrame"},n})();$root.Image=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.caption="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.caption!=null&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Image;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 3:{p.url=e.string();break}case 2:{p.caption=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Image)return e;let t=new $root.Image;return e.url!=null&&(t.url=String(e.url)),e.caption!=null&&(t.caption=String(e.caption)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.caption="",o.url=""),e.caption!=null&&e.hasOwnProperty("caption")&&(o.caption=e.caption),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Image"},n})();$root.ImageList=(()=>{function n(i){if(this.imgs=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.imgs=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.imgs!=null&&e.imgs.length)for(let o=0;o<e.imgs.length;++o)$root.Image.encode(e.imgs[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ImageList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.imgs&&p.imgs.length||(p.imgs=[]),p.imgs.push($root.Image.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ImageList)return e;let t=new $root.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let o=0;o<e.imgs.length;++o){if(typeof e.imgs[o]!="object")throw TypeError(".ImageList.imgs: object expected");t.imgs[o]=$root.Image.fromObject(e.imgs[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.imgs=[]),e.imgs&&e.imgs.length){o.imgs=[];for(let d=0;d<e.imgs.length;++d)o.imgs[d]=$root.Image.toObject(e.imgs[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ImageList"},n})();$root.Json=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.body="",n.prototype.expanded=!1,n.prototype.maxExpandDepth=null;let i;return Object.defineProperty(n.prototype,"_maxExpandDepth",{get:$util.oneOfGetter(i=["maxExpandDepth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.expanded!=null&&Object.hasOwnProperty.call(t,"expanded")&&o.uint32(16).bool(t.expanded),t.maxExpandDepth!=null&&Object.hasOwnProperty.call(t,"maxExpandDepth")&&o.uint32(24).int32(t.maxExpandDepth),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Json;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.expanded=t.bool();break}case 3:{h.maxExpandDepth=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Json)return t;let o=new $root.Json;return t.body!=null&&(o.body=String(t.body)),t.expanded!=null&&(o.expanded=!!t.expanded),t.maxExpandDepth!=null&&(o.maxExpandDepth=t.maxExpandDepth|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.expanded=!1),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.expanded!=null&&t.hasOwnProperty("expanded")&&(d.expanded=t.expanded),t.maxExpandDepth!=null&&t.hasOwnProperty("maxExpandDepth")&&(d.maxExpandDepth=t.maxExpandDepth,o.oneofs&&(d._maxExpandDepth="maxExpandDepth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Json"},n})();$root.LinkButton=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.label="",n.prototype.help="",n.prototype.url="",n.prototype.disabled=!1,n.prototype.useContainerWidth=!1,n.prototype.type="",n.prototype.icon="",n.prototype.shortcut="",n.prototype.iconPosition=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),e.useContainerWidth!=null&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(64).bool(e.useContainerWidth),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(74).string(e.type),e.icon!=null&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(82).string(e.icon),e.shortcut!=null&&Object.hasOwnProperty.call(e,"shortcut")&&t.uint32(90).string(e.shortcut),e.iconPosition!=null&&Object.hasOwnProperty.call(e,"iconPosition")&&t.uint32(96).int32(e.iconPosition),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.LinkButton;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.label=e.string();break}case 4:{p.help=e.string();break}case 6:{p.url=e.string();break}case 7:{p.disabled=e.bool();break}case 8:{p.useContainerWidth=e.bool();break}case 9:{p.type=e.string();break}case 10:{p.icon=e.string();break}case 11:{p.shortcut=e.string();break}case 12:{p.iconPosition=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.LinkButton)return e;let t=new $root.LinkButton;switch(e.id!=null&&(t.id=String(e.id)),e.label!=null&&(t.label=String(e.label)),e.help!=null&&(t.help=String(e.help)),e.url!=null&&(t.url=String(e.url)),e.disabled!=null&&(t.disabled=!!e.disabled),e.useContainerWidth!=null&&(t.useContainerWidth=!!e.useContainerWidth),e.type!=null&&(t.type=String(e.type)),e.icon!=null&&(t.icon=String(e.icon)),e.shortcut!=null&&(t.shortcut=String(e.shortcut)),e.iconPosition){default:if(typeof e.iconPosition=="number"){t.iconPosition=e.iconPosition;break}break;case"LEFT":case 0:t.iconPosition=0;break;case"RIGHT":case 1:t.iconPosition=1;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.id="",o.label="",o.help="",o.url="",o.disabled=!1,o.useContainerWidth=!1,o.type="",o.icon="",o.shortcut="",o.iconPosition=t.enums===String?"LEFT":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.useContainerWidth!=null&&e.hasOwnProperty("useContainerWidth")&&(o.useContainerWidth=e.useContainerWidth),e.type!=null&&e.hasOwnProperty("type")&&(o.type=e.type),e.icon!=null&&e.hasOwnProperty("icon")&&(o.icon=e.icon),e.shortcut!=null&&e.hasOwnProperty("shortcut")&&(o.shortcut=e.shortcut),e.iconPosition!=null&&e.hasOwnProperty("iconPosition")&&(o.iconPosition=t.enums===String?$root.streamlit.ButtonLikeIconPosition[e.iconPosition]===void 0?e.iconPosition:$root.streamlit.ButtonLikeIconPosition[e.iconPosition]:e.iconPosition),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/LinkButton"},n})();const NumberInput$1=$root.NumberInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.formId="",n.prototype.format="",n.prototype.hasMin=!1,n.prototype.hasMax=!1,n.prototype.dataType=0,n.prototype.default=null,n.prototype.step=0,n.prototype.min=0,n.prototype.max=0,n.prototype.help="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.icon="";let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(26).string(t.formId),t.format!=null&&Object.hasOwnProperty.call(t,"format")&&o.uint32(66).string(t.format),t.hasMin!=null&&Object.hasOwnProperty.call(t,"hasMin")&&o.uint32(88).bool(t.hasMin),t.hasMax!=null&&Object.hasOwnProperty.call(t,"hasMax")&&o.uint32(96).bool(t.hasMax),t.dataType!=null&&Object.hasOwnProperty.call(t,"dataType")&&o.uint32(104).int32(t.dataType),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(113).double(t.default),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(121).double(t.step),t.min!=null&&Object.hasOwnProperty.call(t,"min")&&o.uint32(129).double(t.min),t.max!=null&&Object.hasOwnProperty.call(t,"max")&&o.uint32(137).double(t.max),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(146).string(t.help),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(153).double(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(160).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(168).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(178).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(186).string(t.placeholder),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(194).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.NumberInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.formId=t.string();break}case 8:{h.format=t.string();break}case 11:{h.hasMin=t.bool();break}case 12:{h.hasMax=t.bool();break}case 13:{h.dataType=t.int32();break}case 14:{h.default=t.double();break}case 15:{h.step=t.double();break}case 16:{h.min=t.double();break}case 17:{h.max=t.double();break}case 18:{h.help=t.string();break}case 19:{h.value=t.double();break}case 20:{h.setValue=t.bool();break}case 21:{h.disabled=t.bool();break}case 22:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 23:{h.placeholder=t.string();break}case 24:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.NumberInput)return t;let o=new $root.NumberInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.formId!=null&&(o.formId=String(t.formId)),t.format!=null&&(o.format=String(t.format)),t.hasMin!=null&&(o.hasMin=!!t.hasMin),t.hasMax!=null&&(o.hasMax=!!t.hasMax),t.dataType){default:if(typeof t.dataType=="number"){o.dataType=t.dataType;break}break;case"INT":case 0:o.dataType=0;break;case"FLOAT":case 1:o.dataType=1;break}if(t.default!=null&&(o.default=Number(t.default)),t.step!=null&&(o.step=Number(t.step)),t.min!=null&&(o.min=Number(t.min)),t.max!=null&&(o.max=Number(t.max)),t.help!=null&&(o.help=String(t.help)),t.value!=null&&(o.value=Number(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".NumberInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.formId="",d.format="",d.hasMin=!1,d.hasMax=!1,d.dataType=o.enums===String?"INT":0,d.step=0,d.min=0,d.max=0,d.help="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder="",d.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.format!=null&&t.hasOwnProperty("format")&&(d.format=t.format),t.hasMin!=null&&t.hasOwnProperty("hasMin")&&(d.hasMin=t.hasMin),t.hasMax!=null&&t.hasOwnProperty("hasMax")&&(d.hasMax=t.hasMax),t.dataType!=null&&t.hasOwnProperty("dataType")&&(d.dataType=o.enums===String?$root.NumberInput.DataType[t.dataType]===void 0?t.dataType:$root.NumberInput.DataType[t.dataType]:t.dataType),t.default!=null&&t.hasOwnProperty("default")&&(d.default=o.json&&!isFinite(t.default)?String(t.default):t.default,o.oneofs&&(d._default="default")),t.step!=null&&t.hasOwnProperty("step")&&(d.step=o.json&&!isFinite(t.step)?String(t.step):t.step),t.min!=null&&t.hasOwnProperty("min")&&(d.min=o.json&&!isFinite(t.min)?String(t.min):t.min),t.max!=null&&t.hasOwnProperty("max")&&(d.max=o.json&&!isFinite(t.max)?String(t.max):t.max),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/NumberInput"},n.DataType=(function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t})(),n})(),Markdown$3=$root.Markdown=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.allowHtml=!1,n.prototype.elementType=0,n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.allowHtml!=null&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),e.elementType!=null&&Object.hasOwnProperty.call(e,"elementType")&&t.uint32(32).int32(e.elementType),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Markdown;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.allowHtml=e.bool();break}case 4:{p.elementType=e.int32();break}case 5:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Markdown)return e;let t=new $root.Markdown;switch(e.body!=null&&(t.body=String(e.body)),e.allowHtml!=null&&(t.allowHtml=!!e.allowHtml),e.elementType){default:if(typeof e.elementType=="number"){t.elementType=e.elementType;break}break;case"UNSPECIFIED":case 0:t.elementType=0;break;case"NATIVE":case 1:t.elementType=1;break;case"CAPTION":case 2:t.elementType=2;break;case"CODE":case 3:t.elementType=3;break;case"LATEX":case 4:t.elementType=4;break;case"DIVIDER":case 5:t.elementType=5;break}return e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.allowHtml=!1,o.elementType=t.enums===String?"UNSPECIFIED":0,o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.allowHtml!=null&&e.hasOwnProperty("allowHtml")&&(o.allowHtml=e.allowHtml),e.elementType!=null&&e.hasOwnProperty("elementType")&&(o.elementType=t.enums===String?$root.Markdown.Type[e.elementType]===void 0?e.elementType:$root.Markdown.Type[e.elementType]:e.elementType),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Markdown"},n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="NATIVE"]=1,e[i[2]="CAPTION"]=2,e[i[3]="CODE"]=3,e[i[4]="LATEX"]=4,e[i[5]="DIVIDER"]=5,e})(),n})(),Metric$1=$root.Metric=(()=>{function n(i){if(this.chartData=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.label="",n.prototype.body="",n.prototype.delta="",n.prototype.direction=0,n.prototype.color=0,n.prototype.help="",n.prototype.labelVisibility=null,n.prototype.showBorder=!1,n.prototype.chartData=$util.emptyArray,n.prototype.chartType=0,n.prototype.format="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),e.delta!=null&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),e.direction!=null&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),e.color!=null&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(58).fork()).ldelim(),e.showBorder!=null&&Object.hasOwnProperty.call(e,"showBorder")&&t.uint32(64).bool(e.showBorder),e.chartData!=null&&e.chartData.length){t.uint32(74).fork();for(let o=0;o<e.chartData.length;++o)t.double(e.chartData[o]);t.ldelim()}return e.chartType!=null&&Object.hasOwnProperty.call(e,"chartType")&&t.uint32(80).int32(e.chartType),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(90).string(e.format),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Metric;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.body=e.string();break}case 3:{p.delta=e.string();break}case 4:{p.direction=e.int32();break}case 5:{p.color=e.int32();break}case 6:{p.help=e.string();break}case 7:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 8:{p.showBorder=e.bool();break}case 9:{if(p.chartData&&p.chartData.length||(p.chartData=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.chartData.push(e.double())}else p.chartData.push(e.double());break}case 10:{p.chartType=e.int32();break}case 11:{p.format=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Metric)return e;let t=new $root.Metric;switch(e.label!=null&&(t.label=String(e.label)),e.body!=null&&(t.body=String(e.body)),e.delta!=null&&(t.delta=String(e.delta)),e.direction){default:if(typeof e.direction=="number"){t.direction=e.direction;break}break;case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2;break}switch(e.color){default:if(typeof e.color=="number"){t.color=e.color;break}break;case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2;break;case"ORANGE":case 3:t.color=3;break;case"YELLOW":case 4:t.color=4;break;case"BLUE":case 5:t.color=5;break;case"VIOLET":case 6:t.color=6;break;case"PRIMARY":case 7:t.color=7;break}if(e.help!=null&&(t.help=String(e.help)),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Metric.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}if(e.showBorder!=null&&(t.showBorder=!!e.showBorder),e.chartData){if(!Array.isArray(e.chartData))throw TypeError(".Metric.chartData: array expected");t.chartData=[];for(let o=0;o<e.chartData.length;++o)t.chartData[o]=Number(e.chartData[o])}switch(e.chartType){default:if(typeof e.chartType=="number"){t.chartType=e.chartType;break}break;case"LINE":case 0:t.chartType=0;break;case"BAR":case 1:t.chartType=1;break;case"AREA":case 2:t.chartType=2;break}return e.format!=null&&(t.format=String(e.format)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.chartData=[]),t.defaults&&(o.label="",o.body="",o.delta="",o.direction=t.enums===String?"DOWN":0,o.color=t.enums===String?"RED":0,o.help="",o.labelVisibility=null,o.showBorder=!1,o.chartType=t.enums===String?"LINE":0,o.format=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.delta!=null&&e.hasOwnProperty("delta")&&(o.delta=e.delta),e.direction!=null&&e.hasOwnProperty("direction")&&(o.direction=t.enums===String?$root.Metric.MetricDirection[e.direction]===void 0?e.direction:$root.Metric.MetricDirection[e.direction]:e.direction),e.color!=null&&e.hasOwnProperty("color")&&(o.color=t.enums===String?$root.Metric.MetricColor[e.color]===void 0?e.color:$root.Metric.MetricColor[e.color]:e.color),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.showBorder!=null&&e.hasOwnProperty("showBorder")&&(o.showBorder=e.showBorder),e.chartData&&e.chartData.length){o.chartData=[];for(let d=0;d<e.chartData.length;++d)o.chartData[d]=t.json&&!isFinite(e.chartData[d])?String(e.chartData[d]):e.chartData[d]}return e.chartType!=null&&e.hasOwnProperty("chartType")&&(o.chartType=t.enums===String?$root.Metric.ChartType[e.chartType]===void 0?e.chartType:$root.Metric.ChartType[e.chartType]:e.chartType),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Metric"},n.MetricDirection=(function(){const i={},e=Object.create(i);return e[i[0]="DOWN"]=0,e[i[1]="UP"]=1,e[i[2]="NONE"]=2,e})(),n.MetricColor=(function(){const i={},e=Object.create(i);return e[i[0]="RED"]=0,e[i[1]="GREEN"]=1,e[i[2]="GRAY"]=2,e[i[3]="ORANGE"]=3,e[i[4]="YELLOW"]=4,e[i[5]="BLUE"]=5,e[i[6]="VIOLET"]=6,e[i[7]="PRIMARY"]=7,e})(),n.ChartType=(function(){const i={},e=Object.create(i);return e[i[0]="LINE"]=0,e[i[1]="BAR"]=1,e[i[2]="AREA"]=2,e})(),n})();$root.MultiSelect=(()=>{function n(e){if(this.default=[],this.options=[],this.rawValues=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=$util.emptyArray,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValues=$util.emptyArray,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.maxSelections=0,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let i;return Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&t.default.length){o.uint32(26).fork();for(let d=0;d<t.default.length;++d)o.int32(t.default[d]);o.ldelim()}if(t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.maxSelections!=null&&Object.hasOwnProperty.call(t,"maxSelections")&&o.uint32(88).int32(t.maxSelections),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(98).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(104).bool(t.acceptNewOptions),t.rawValues!=null&&t.rawValues.length)for(let d=0;d<t.rawValues.length;++d)o.uint32(114).string(t.rawValues[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.MultiSelect;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{if(h.default&&h.default.length||(h.default=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.default.push(t.int32())}else h.default.push(t.int32());break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 14:{h.rawValues&&h.rawValues.length||(h.rawValues=[]),h.rawValues.push(t.string());break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 11:{h.maxSelections=t.int32();break}case 12:{h.placeholder=t.string();break}case 13:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.MultiSelect)return t;let o=new $root.MultiSelect;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default){if(!Array.isArray(t.default))throw TypeError(".MultiSelect.default: array expected");o.default=[];for(let d=0;d<t.default.length;++d)o.default[d]=t.default[d]|0}if(t.options){if(!Array.isArray(t.options))throw TypeError(".MultiSelect.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValues){if(!Array.isArray(t.rawValues))throw TypeError(".MultiSelect.rawValues: array expected");o.rawValues=[];for(let d=0;d<t.rawValues.length;++d)o.rawValues[d]=String(t.rawValues[d])}if(t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".MultiSelect.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.maxSelections!=null&&(o.maxSelections=t.maxSelections|0),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.default=[],d.options=[],d.rawValues=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.maxSelections=0,d.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default&&t.default.length){d.default=[];for(let p=0;p<t.default.length;++p)d.default[p]=t.default[p]}if(t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.maxSelections!=null&&t.hasOwnProperty("maxSelections")&&(d.maxSelections=t.maxSelections),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValues&&t.rawValues.length){d.rawValues=[];for(let p=0;p<t.rawValues.length;++p)d.rawValues[p]=t.rawValues[p]}return d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/MultiSelect"},n})();$root.PageLink=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.page="",n.prototype.label="",n.prototype.icon="",n.prototype.pageScriptHash="",n.prototype.help="",n.prototype.useContainerWidth=null,n.prototype.disabled=!1,n.prototype.external=!1,n.prototype.queryString="",n.prototype.iconPosition=0;let i;return Object.defineProperty(n.prototype,"_useContainerWidth",{get:$util.oneOfGetter(i=["useContainerWidth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.page!=null&&Object.hasOwnProperty.call(t,"page")&&o.uint32(10).string(t.page),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(26).string(t.icon),t.pageScriptHash!=null&&Object.hasOwnProperty.call(t,"pageScriptHash")&&o.uint32(34).string(t.pageScriptHash),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.useContainerWidth!=null&&Object.hasOwnProperty.call(t,"useContainerWidth")&&o.uint32(48).bool(t.useContainerWidth),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(56).bool(t.disabled),t.external!=null&&Object.hasOwnProperty.call(t,"external")&&o.uint32(64).bool(t.external),t.queryString!=null&&Object.hasOwnProperty.call(t,"queryString")&&o.uint32(74).string(t.queryString),t.iconPosition!=null&&Object.hasOwnProperty.call(t,"iconPosition")&&o.uint32(80).int32(t.iconPosition),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageLink;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.page=t.string();break}case 2:{h.label=t.string();break}case 3:{h.icon=t.string();break}case 4:{h.pageScriptHash=t.string();break}case 5:{h.help=t.string();break}case 6:{h.useContainerWidth=t.bool();break}case 7:{h.disabled=t.bool();break}case 8:{h.external=t.bool();break}case 9:{h.queryString=t.string();break}case 10:{h.iconPosition=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageLink)return t;let o=new $root.PageLink;switch(t.page!=null&&(o.page=String(t.page)),t.label!=null&&(o.label=String(t.label)),t.icon!=null&&(o.icon=String(t.icon)),t.pageScriptHash!=null&&(o.pageScriptHash=String(t.pageScriptHash)),t.help!=null&&(o.help=String(t.help)),t.useContainerWidth!=null&&(o.useContainerWidth=!!t.useContainerWidth),t.disabled!=null&&(o.disabled=!!t.disabled),t.external!=null&&(o.external=!!t.external),t.queryString!=null&&(o.queryString=String(t.queryString)),t.iconPosition){default:if(typeof t.iconPosition=="number"){o.iconPosition=t.iconPosition;break}break;case"LEFT":case 0:o.iconPosition=0;break;case"RIGHT":case 1:o.iconPosition=1;break}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.page="",d.label="",d.icon="",d.pageScriptHash="",d.help="",d.disabled=!1,d.external=!1,d.queryString="",d.iconPosition=o.enums===String?"LEFT":0),t.page!=null&&t.hasOwnProperty("page")&&(d.page=t.page),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.pageScriptHash!=null&&t.hasOwnProperty("pageScriptHash")&&(d.pageScriptHash=t.pageScriptHash),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.useContainerWidth!=null&&t.hasOwnProperty("useContainerWidth")&&(d.useContainerWidth=t.useContainerWidth,o.oneofs&&(d._useContainerWidth="useContainerWidth")),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.external!=null&&t.hasOwnProperty("external")&&(d.external=t.external),t.queryString!=null&&t.hasOwnProperty("queryString")&&(d.queryString=t.queryString),t.iconPosition!=null&&t.hasOwnProperty("iconPosition")&&(d.iconPosition=o.enums===String?$root.streamlit.ButtonLikeIconPosition[t.iconPosition]===void 0?t.iconPosition:$root.streamlit.ButtonLikeIconPosition[t.iconPosition]:t.iconPosition),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageLink"},n})();const PlotlyChart$1=$root.PlotlyChart=(()=>{function n(i){if(this.selectionMode=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.theme="",n.prototype.id="",n.prototype.selectionMode=$util.emptyArray,n.prototype.formId="",n.prototype.spec="",n.prototype.config="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.theme!=null&&Object.hasOwnProperty.call(e,"theme")&&t.uint32(50).string(e.theme),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(58).string(e.id),e.selectionMode!=null&&e.selectionMode.length){t.uint32(66).fork();for(let o=0;o<e.selectionMode.length;++o)t.int32(e.selectionMode[o]);t.ldelim()}return e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(74).string(e.formId),e.spec!=null&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(82).string(e.spec),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&t.uint32(90).string(e.config),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PlotlyChart;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 6:{p.theme=e.string();break}case 7:{p.id=e.string();break}case 8:{if(p.selectionMode&&p.selectionMode.length||(p.selectionMode=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.selectionMode.push(e.int32())}else p.selectionMode.push(e.int32());break}case 9:{p.formId=e.string();break}case 10:{p.spec=e.string();break}case 11:{p.config=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PlotlyChart)return e;let t=new $root.PlotlyChart;if(e.theme!=null&&(t.theme=String(e.theme)),e.id!=null&&(t.id=String(e.id)),e.selectionMode){if(!Array.isArray(e.selectionMode))throw TypeError(".PlotlyChart.selectionMode: array expected");t.selectionMode=[];for(let o=0;o<e.selectionMode.length;++o)switch(e.selectionMode[o]){default:if(typeof e.selectionMode[o]=="number"){t.selectionMode[o]=e.selectionMode[o];break}case"POINTS":case 0:t.selectionMode[o]=0;break;case"BOX":case 1:t.selectionMode[o]=1;break;case"LASSO":case 2:t.selectionMode[o]=2;break}}return e.formId!=null&&(t.formId=String(e.formId)),e.spec!=null&&(t.spec=String(e.spec)),e.config!=null&&(t.config=String(e.config)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.selectionMode=[]),t.defaults&&(o.theme="",o.id="",o.formId="",o.spec="",o.config=""),e.theme!=null&&e.hasOwnProperty("theme")&&(o.theme=e.theme),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.selectionMode&&e.selectionMode.length){o.selectionMode=[];for(let d=0;d<e.selectionMode.length;++d)o.selectionMode[d]=t.enums===String?$root.PlotlyChart.SelectionMode[e.selectionMode[d]]===void 0?e.selectionMode[d]:$root.PlotlyChart.SelectionMode[e.selectionMode[d]]:e.selectionMode[d]}return e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.spec!=null&&e.hasOwnProperty("spec")&&(o.spec=e.spec),e.config!=null&&e.hasOwnProperty("config")&&(o.config=e.config),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PlotlyChart"},n.SelectionMode=(function(){const i={},e=Object.create(i);return e[i[0]="POINTS"]=0,e[i[1]="BOX"]=1,e[i[2]="LASSO"]=2,e})(),n})();$root.Progress=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.value=0,n.prototype.text="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.value!=null&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(18).string(e.text),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Progress;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.value=e.uint32();break}case 2:{p.text=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Progress)return e;let t=new $root.Progress;return e.value!=null&&(t.value=e.value>>>0),e.text!=null&&(t.text=String(e.text)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.value=0,o.text=""),e.value!=null&&e.hasOwnProperty("value")&&(o.value=e.value),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Progress"},n})();$root.Snow=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.show=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.show!=null&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Snow;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.show=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Snow)return e;let t=new $root.Snow;return e.show!=null&&(t.show=!!e.show),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.show=!1),e.show!=null&&e.hasOwnProperty("show")&&(o.show=e.show),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Snow"},n})();$root.Spinner=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.text="",n.prototype.cache=!1,n.prototype.showTime=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.text!=null&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),e.cache!=null&&Object.hasOwnProperty.call(e,"cache")&&t.uint32(16).bool(e.cache),e.showTime!=null&&Object.hasOwnProperty.call(e,"showTime")&&t.uint32(24).bool(e.showTime),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Spinner;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.text=e.string();break}case 2:{p.cache=e.bool();break}case 3:{p.showTime=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Spinner)return e;let t=new $root.Spinner;return e.text!=null&&(t.text=String(e.text)),e.cache!=null&&(t.cache=!!e.cache),e.showTime!=null&&(t.showTime=!!e.showTime),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.text="",o.cache=!1,o.showTime=!1),e.text!=null&&e.hasOwnProperty("text")&&(o.text=e.text),e.cache!=null&&e.hasOwnProperty("cache")&&(o.cache=e.cache),e.showTime!=null&&e.hasOwnProperty("showTime")&&(o.showTime=e.showTime),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Spinner"},n})();$root.Radio=(()=>{function n(e){if(this.options=[],this.captions=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.horizontal=!1,n.prototype.labelVisibility=null,n.prototype.captions=$util.emptyArray;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);if(t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.horizontal!=null&&Object.hasOwnProperty.call(t,"horizontal")&&o.uint32(80).bool(t.horizontal),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(90).fork()).ldelim(),t.captions!=null&&t.captions.length)for(let d=0;d<t.captions.length;++d)o.uint32(98).string(t.captions[d]);return t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&o.uint32(106).string(t.rawValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Radio;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 13:{h.rawValue=t.string();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.horizontal=t.bool();break}case 11:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 12:{h.captions&&h.captions.length||(h.captions=[]),h.captions.push(t.string());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Radio)return t;let o=new $root.Radio;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Radio.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValue!=null&&(o.rawValue=String(t.rawValue)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.horizontal!=null&&(o.horizontal=!!t.horizontal),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Radio.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}if(t.captions){if(!Array.isArray(t.captions))throw TypeError(".Radio.captions: array expected");o.captions=[];for(let d=0;d<t.captions.length;++d)o.captions[d]=String(t.captions[d])}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[],d.captions=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.horizontal=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}if(t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.horizontal!=null&&t.hasOwnProperty("horizontal")&&(d.horizontal=t.horizontal),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.captions&&t.captions.length){d.captions=[];for(let p=0;p<t.captions.length;++p)d.captions[p]=t.captions[p]}return t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(d.rawValue=t.rawValue,o.oneofs&&(d._rawValue="rawValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Radio"},n})();$root.Selectbox=(()=>{function n(e){if(this.options=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.formId="",n.prototype.rawValue=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.placeholder="",n.prototype.acceptNewOptions=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_rawValue",{get:$util.oneOfGetter(i=["rawValue"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_acceptNewOptions",{get:$util.oneOfGetter(i=["acceptNewOptions"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(24).int32(t.default),t.options!=null&&t.options.length)for(let d=0;d<t.options.length;++d)o.uint32(34).string(t.options[d]);return t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(42).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(50).string(t.formId),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(64).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(72).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(82).fork()).ldelim(),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.acceptNewOptions!=null&&Object.hasOwnProperty.call(t,"acceptNewOptions")&&o.uint32(96).bool(t.acceptNewOptions),t.rawValue!=null&&Object.hasOwnProperty.call(t,"rawValue")&&o.uint32(106).string(t.rawValue),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Selectbox;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.int32();break}case 4:{h.options&&h.options.length||(h.options=[]),h.options.push(t.string());break}case 5:{h.help=t.string();break}case 6:{h.formId=t.string();break}case 13:{h.rawValue=t.string();break}case 8:{h.setValue=t.bool();break}case 9:{h.disabled=t.bool();break}case 10:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 11:{h.placeholder=t.string();break}case 12:{h.acceptNewOptions=t.bool();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Selectbox)return t;let o=new $root.Selectbox;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=t.default|0),t.options){if(!Array.isArray(t.options))throw TypeError(".Selectbox.options: array expected");o.options=[];for(let d=0;d<t.options.length;++d)o.options[d]=String(t.options[d])}if(t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.rawValue!=null&&(o.rawValue=String(t.rawValue)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".Selectbox.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.acceptNewOptions!=null&&(o.acceptNewOptions=!!t.acceptNewOptions),o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.options=[]),o.defaults&&(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,d.placeholder=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.options&&t.options.length){d.options=[];for(let p=0;p<t.options.length;++p)d.options[p]=t.options[p]}return t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.acceptNewOptions!=null&&t.hasOwnProperty("acceptNewOptions")&&(d.acceptNewOptions=t.acceptNewOptions,o.oneofs&&(d._acceptNewOptions="acceptNewOptions")),t.rawValue!=null&&t.hasOwnProperty("rawValue")&&(d.rawValue=t.rawValue,o.oneofs&&(d._rawValue="rawValue")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Selectbox"},n})();const Skeleton$1=$root.Skeleton=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.style=0,n.prototype.height=null;let i;return Object.defineProperty(n.prototype,"_height",{get:$util.oneOfGetter(i=["height"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.style!=null&&Object.hasOwnProperty.call(t,"style")&&o.uint32(8).int32(t.style),t.height!=null&&Object.hasOwnProperty.call(t,"height")&&o.uint32(16).int32(t.height),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Skeleton;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.style=t.int32();break}case 2:{h.height=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Skeleton)return t;let o=new $root.Skeleton;switch(t.style){default:if(typeof t.style=="number"){o.style=t.style;break}break;case"ELEMENT":case 0:o.style=0;break;case"APP":case 1:o.style=1;break}return t.height!=null&&(o.height=t.height|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.style=o.enums===String?"ELEMENT":0),t.style!=null&&t.hasOwnProperty("style")&&(d.style=o.enums===String?$root.Skeleton.SkeletonStyle[t.style]===void 0?t.style:$root.Skeleton.SkeletonStyle[t.style]:t.style),t.height!=null&&t.hasOwnProperty("height")&&(d.height=t.height,o.oneofs&&(d._height="height")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Skeleton"},n.SkeletonStyle=(function(){const e={},t=Object.create(e);return t[e[0]="ELEMENT"]=0,t[e[1]="APP"]=1,t})(),n})(),Slider$1=$root.Slider=(()=>{function n(i){if(this.default=[],this.value=[],this.options=[],this.rawValue=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.id="",n.prototype.formId="",n.prototype.label="",n.prototype.format="",n.prototype.dataType=0,n.prototype.default=$util.emptyArray,n.prototype.min=0,n.prototype.max=0,n.prototype.step=0,n.prototype.value=$util.emptyArray,n.prototype.setValue=!1,n.prototype.options=$util.emptyArray,n.prototype.help="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.type=0,n.prototype.rawValue=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.id!=null&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),e.formId!=null&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),e.format!=null&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),e.dataType!=null&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),e.default!=null&&e.default.length){t.uint32(50).fork();for(let o=0;o<e.default.length;++o)t.double(e.default[o]);t.ldelim()}if(e.min!=null&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),e.max!=null&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),e.step!=null&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),e.value!=null&&e.value.length){t.uint32(82).fork();for(let o=0;o<e.value.length;++o)t.double(e.value[o]);t.ldelim()}if(e.setValue!=null&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),e.options!=null&&e.options.length)for(let o=0;o<e.options.length;++o)t.uint32(106).string(e.options[o]);if(e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),e.disabled!=null&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),e.labelVisibility!=null&&Object.hasOwnProperty.call(e,"labelVisibility")&&$root.LabelVisibility.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),e.type!=null&&Object.hasOwnProperty.call(e,"type")&&t.uint32(136).int32(e.type),e.rawValue!=null&&e.rawValue.length)for(let o=0;o<e.rawValue.length;++o)t.uint32(146).string(e.rawValue[o]);return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Slider;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.id=e.string();break}case 2:{p.formId=e.string();break}case 3:{p.label=e.string();break}case 4:{p.format=e.string();break}case 5:{p.dataType=e.int32();break}case 6:{if(p.default&&p.default.length||(p.default=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.default.push(e.double())}else p.default.push(e.double());break}case 7:{p.min=e.double();break}case 8:{p.max=e.double();break}case 9:{p.step=e.double();break}case 10:{if(p.value&&p.value.length||(p.value=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.value.push(e.double())}else p.value.push(e.double());break}case 11:{p.setValue=e.bool();break}case 13:{p.options&&p.options.length||(p.options=[]),p.options.push(e.string());break}case 14:{p.help=e.string();break}case 15:{p.disabled=e.bool();break}case 16:{p.labelVisibility=$root.LabelVisibility.decode(e,e.uint32());break}case 17:{p.type=e.int32();break}case 18:{p.rawValue&&p.rawValue.length||(p.rawValue=[]),p.rawValue.push(e.string());break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Slider)return e;let t=new $root.Slider;switch(e.id!=null&&(t.id=String(e.id)),e.formId!=null&&(t.formId=String(e.formId)),e.label!=null&&(t.label=String(e.label)),e.format!=null&&(t.format=String(e.format)),e.dataType){default:if(typeof e.dataType=="number"){t.dataType=e.dataType;break}break;case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1;break;case"DATETIME":case 2:t.dataType=2;break;case"DATE":case 3:t.dataType=3;break;case"TIME":case 4:t.dataType=4;break}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let o=0;o<e.default.length;++o)t.default[o]=Number(e.default[o])}if(e.min!=null&&(t.min=Number(e.min)),e.max!=null&&(t.max=Number(e.max)),e.step!=null&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let o=0;o<e.value.length;++o)t.value[o]=Number(e.value[o])}if(e.setValue!=null&&(t.setValue=!!e.setValue),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let o=0;o<e.options.length;++o)t.options[o]=String(e.options[o])}if(e.help!=null&&(t.help=String(e.help)),e.disabled!=null&&(t.disabled=!!e.disabled),e.labelVisibility!=null){if(typeof e.labelVisibility!="object")throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=$root.LabelVisibility.fromObject(e.labelVisibility)}switch(e.type){default:if(typeof e.type=="number"){t.type=e.type;break}break;case"UNSPECIFIED":case 0:t.type=0;break;case"SLIDER":case 1:t.type=1;break;case"SELECT_SLIDER":case 2:t.type=2;break}if(e.rawValue){if(!Array.isArray(e.rawValue))throw TypeError(".Slider.rawValue: array expected");t.rawValue=[];for(let o=0;o<e.rawValue.length;++o)t.rawValue[o]=String(e.rawValue[o])}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.default=[],o.value=[],o.options=[],o.rawValue=[]),t.defaults&&(o.id="",o.formId="",o.label="",o.format="",o.dataType=t.enums===String?"INT":0,o.min=0,o.max=0,o.step=0,o.setValue=!1,o.help="",o.disabled=!1,o.labelVisibility=null,o.type=t.enums===String?"UNSPECIFIED":0),e.id!=null&&e.hasOwnProperty("id")&&(o.id=e.id),e.formId!=null&&e.hasOwnProperty("formId")&&(o.formId=e.formId),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.format!=null&&e.hasOwnProperty("format")&&(o.format=e.format),e.dataType!=null&&e.hasOwnProperty("dataType")&&(o.dataType=t.enums===String?$root.Slider.DataType[e.dataType]===void 0?e.dataType:$root.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){o.default=[];for(let d=0;d<e.default.length;++d)o.default[d]=t.json&&!isFinite(e.default[d])?String(e.default[d]):e.default[d]}if(e.min!=null&&e.hasOwnProperty("min")&&(o.min=t.json&&!isFinite(e.min)?String(e.min):e.min),e.max!=null&&e.hasOwnProperty("max")&&(o.max=t.json&&!isFinite(e.max)?String(e.max):e.max),e.step!=null&&e.hasOwnProperty("step")&&(o.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){o.value=[];for(let d=0;d<e.value.length;++d)o.value[d]=t.json&&!isFinite(e.value[d])?String(e.value[d]):e.value[d]}if(e.setValue!=null&&e.hasOwnProperty("setValue")&&(o.setValue=e.setValue),e.options&&e.options.length){o.options=[];for(let d=0;d<e.options.length;++d)o.options[d]=e.options[d]}if(e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.disabled!=null&&e.hasOwnProperty("disabled")&&(o.disabled=e.disabled),e.labelVisibility!=null&&e.hasOwnProperty("labelVisibility")&&(o.labelVisibility=$root.LabelVisibility.toObject(e.labelVisibility,t)),e.type!=null&&e.hasOwnProperty("type")&&(o.type=t.enums===String?$root.Slider.Type[e.type]===void 0?e.type:$root.Slider.Type[e.type]:e.type),e.rawValue&&e.rawValue.length){o.rawValue=[];for(let d=0;d<e.rawValue.length;++d)o.rawValue[d]=e.rawValue[d]}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Slider"},n.DataType=(function(){const i={},e=Object.create(i);return e[i[0]="INT"]=0,e[i[1]="FLOAT"]=1,e[i[2]="DATETIME"]=2,e[i[3]="DATE"]=3,e[i[4]="TIME"]=4,e})(),n.Type=(function(){const i={},e=Object.create(i);return e[i[0]="UNSPECIFIED"]=0,e[i[1]="SLIDER"]=1,e[i[2]="SELECT_SLIDER"]=2,e})(),n})();$root.Space=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Space;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){default:e.skipType(h&7);break}}return p},n.fromObject=function(e){return e instanceof $root.Space?e:new $root.Space},n.toObject=function(){return{}},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Space"},n})();$root.Text=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.body="",n.prototype.help="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(18).string(e.help),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Text;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.body=e.string();break}case 2:{p.help=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Text)return e;let t=new $root.Text;return e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.body="",o.help=""),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Text"},n})();$root.TextArea=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(82).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(88).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(98).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextArea;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.placeholder=t.string();break}case 11:{h.disabled=t.bool();break}case 12:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextArea)return t;let o=new $root.TextArea;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextArea.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.placeholder="",d.disabled=!1,d.labelVisibility=null),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextArea"},n})();const TextInput$1=$root.TextInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.type=0,n.prototype.maxChars=0,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.autocomplete="",n.prototype.placeholder="",n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.icon="";let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(32).int32(t.type),t.maxChars!=null&&Object.hasOwnProperty.call(t,"maxChars")&&o.uint32(40).uint32(t.maxChars),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(50).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(58).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(66).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(72).bool(t.setValue),t.autocomplete!=null&&Object.hasOwnProperty.call(t,"autocomplete")&&o.uint32(82).string(t.autocomplete),t.placeholder!=null&&Object.hasOwnProperty.call(t,"placeholder")&&o.uint32(90).string(t.placeholder),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(96).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(106).fork()).ldelim(),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(114).string(t.icon),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TextInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.type=t.int32();break}case 5:{h.maxChars=t.uint32();break}case 6:{h.help=t.string();break}case 7:{h.formId=t.string();break}case 8:{h.value=t.string();break}case 9:{h.setValue=t.bool();break}case 10:{h.autocomplete=t.string();break}case 11:{h.placeholder=t.string();break}case 12:{h.disabled=t.bool();break}case 13:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 14:{h.icon=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TextInput)return t;let o=new $root.TextInput;switch(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"DEFAULT":case 0:o.type=0;break;case"PASSWORD":case 1:o.type=1;break}if(t.maxChars!=null&&(o.maxChars=t.maxChars>>>0),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.autocomplete!=null&&(o.autocomplete=String(t.autocomplete)),t.placeholder!=null&&(o.placeholder=String(t.placeholder)),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TextInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.icon!=null&&(o.icon=String(t.icon)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.id="",d.label="",d.type=o.enums===String?"DEFAULT":0,d.maxChars=0,d.help="",d.formId="",d.setValue=!1,d.autocomplete="",d.placeholder="",d.disabled=!1,d.labelVisibility=null,d.icon=""),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.TextInput.Type[t.type]===void 0?t.type:$root.TextInput.Type[t.type]:t.type),t.maxChars!=null&&t.hasOwnProperty("maxChars")&&(d.maxChars=t.maxChars),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.autocomplete!=null&&t.hasOwnProperty("autocomplete")&&(d.autocomplete=t.autocomplete),t.placeholder!=null&&t.hasOwnProperty("placeholder")&&(d.placeholder=t.placeholder),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TextInput"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t})(),n})();$root.TimeInput=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.id="",n.prototype.label="",n.prototype.default=null,n.prototype.help="",n.prototype.formId="",n.prototype.value=null,n.prototype.setValue=!1,n.prototype.disabled=!1,n.prototype.labelVisibility=null,n.prototype.step=$util.Long?$util.Long.fromBits(0,0,!1):0;let i;return Object.defineProperty(n.prototype,"_default",{get:$util.oneOfGetter(i=["default"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_value",{get:$util.oneOfGetter(i=["value"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(10).string(t.id),t.label!=null&&Object.hasOwnProperty.call(t,"label")&&o.uint32(18).string(t.label),t.default!=null&&Object.hasOwnProperty.call(t,"default")&&o.uint32(26).string(t.default),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.formId!=null&&Object.hasOwnProperty.call(t,"formId")&&o.uint32(42).string(t.formId),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(50).string(t.value),t.setValue!=null&&Object.hasOwnProperty.call(t,"setValue")&&o.uint32(56).bool(t.setValue),t.disabled!=null&&Object.hasOwnProperty.call(t,"disabled")&&o.uint32(64).bool(t.disabled),t.labelVisibility!=null&&Object.hasOwnProperty.call(t,"labelVisibility")&&$root.LabelVisibility.encode(t.labelVisibility,o.uint32(74).fork()).ldelim(),t.step!=null&&Object.hasOwnProperty.call(t,"step")&&o.uint32(80).int64(t.step),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.TimeInput;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.id=t.string();break}case 2:{h.label=t.string();break}case 3:{h.default=t.string();break}case 4:{h.help=t.string();break}case 5:{h.formId=t.string();break}case 6:{h.value=t.string();break}case 7:{h.setValue=t.bool();break}case 8:{h.disabled=t.bool();break}case 9:{h.labelVisibility=$root.LabelVisibility.decode(t,t.uint32());break}case 10:{h.step=t.int64();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.TimeInput)return t;let o=new $root.TimeInput;if(t.id!=null&&(o.id=String(t.id)),t.label!=null&&(o.label=String(t.label)),t.default!=null&&(o.default=String(t.default)),t.help!=null&&(o.help=String(t.help)),t.formId!=null&&(o.formId=String(t.formId)),t.value!=null&&(o.value=String(t.value)),t.setValue!=null&&(o.setValue=!!t.setValue),t.disabled!=null&&(o.disabled=!!t.disabled),t.labelVisibility!=null){if(typeof t.labelVisibility!="object")throw TypeError(".TimeInput.labelVisibility: object expected");o.labelVisibility=$root.LabelVisibility.fromObject(t.labelVisibility)}return t.step!=null&&($util.Long?(o.step=$util.Long.fromValue(t.step)).unsigned=!1:typeof t.step=="string"?o.step=parseInt(t.step,10):typeof t.step=="number"?o.step=t.step:typeof t.step=="object"&&(o.step=new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber())),o},n.toObject=function(t,o){o||(o={});let d={};if(o.defaults)if(d.id="",d.label="",d.help="",d.formId="",d.setValue=!1,d.disabled=!1,d.labelVisibility=null,$util.Long){let p=new $util.Long(0,0,!1);d.step=o.longs===String?p.toString():o.longs===Number?p.toNumber():p}else d.step=o.longs===String?"0":0;return t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.label!=null&&t.hasOwnProperty("label")&&(d.label=t.label),t.default!=null&&t.hasOwnProperty("default")&&(d.default=t.default,o.oneofs&&(d._default="default")),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.formId!=null&&t.hasOwnProperty("formId")&&(d.formId=t.formId),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value,o.oneofs&&(d._value="value")),t.setValue!=null&&t.hasOwnProperty("setValue")&&(d.setValue=t.setValue),t.disabled!=null&&t.hasOwnProperty("disabled")&&(d.disabled=t.disabled),t.labelVisibility!=null&&t.hasOwnProperty("labelVisibility")&&(d.labelVisibility=$root.LabelVisibility.toObject(t.labelVisibility,o)),t.step!=null&&t.hasOwnProperty("step")&&(typeof t.step=="number"?d.step=o.longs===String?String(t.step):t.step:d.step=o.longs===String?$util.Long.prototype.toString.call(t.step):o.longs===Number?new $util.LongBits(t.step.low>>>0,t.step.high>>>0).toNumber():t.step),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/TimeInput"},n})();$root.Toast=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.body="",n.prototype.icon="",n.prototype.duration=null;let i;return Object.defineProperty(n.prototype,"_duration",{get:$util.oneOfGetter(i=["duration"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.body!=null&&Object.hasOwnProperty.call(t,"body")&&o.uint32(10).string(t.body),t.icon!=null&&Object.hasOwnProperty.call(t,"icon")&&o.uint32(18).string(t.icon),t.duration!=null&&Object.hasOwnProperty.call(t,"duration")&&o.uint32(24).int32(t.duration),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Toast;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.body=t.string();break}case 2:{h.icon=t.string();break}case 3:{h.duration=t.int32();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Toast)return t;let o=new $root.Toast;return t.body!=null&&(o.body=String(t.body)),t.icon!=null&&(o.icon=String(t.icon)),t.duration!=null&&(o.duration=t.duration|0),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.body="",d.icon=""),t.body!=null&&t.hasOwnProperty("body")&&(d.body=t.body),t.icon!=null&&t.hasOwnProperty("icon")&&(d.icon=t.icon),t.duration!=null&&t.hasOwnProperty("duration")&&(d.duration=t.duration,o.oneofs&&(d._duration="duration")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Toast"},n})();$root.SubtitleTrack=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.label="",n.prototype.url="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SubtitleTrack;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.label=e.string();break}case 2:{p.url=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SubtitleTrack)return e;let t=new $root.SubtitleTrack;return e.label!=null&&(t.label=String(e.label)),e.url!=null&&(t.url=String(e.url)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.label="",o.url=""),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SubtitleTrack"},n})();const Video$1=$root.Video=(()=>{function n(e){if(this.subtitles=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.url="",n.prototype.startTime=0,n.prototype.type=0,n.prototype.subtitles=$util.emptyArray,n.prototype.endTime=0,n.prototype.loop=!1,n.prototype.autoplay=!1,n.prototype.muted=!1,n.prototype.id="",n.prototype.widthConfig=null;let i;return Object.defineProperty(n.prototype,"_widthConfig",{get:$util.oneOfGetter(i=["widthConfig"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.startTime!=null&&Object.hasOwnProperty.call(t,"startTime")&&o.uint32(24).int32(t.startTime),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(40).int32(t.type),t.url!=null&&Object.hasOwnProperty.call(t,"url")&&o.uint32(50).string(t.url),t.subtitles!=null&&t.subtitles.length)for(let d=0;d<t.subtitles.length;++d)$root.SubtitleTrack.encode(t.subtitles[d],o.uint32(58).fork()).ldelim();return t.endTime!=null&&Object.hasOwnProperty.call(t,"endTime")&&o.uint32(64).int32(t.endTime),t.loop!=null&&Object.hasOwnProperty.call(t,"loop")&&o.uint32(72).bool(t.loop),t.autoplay!=null&&Object.hasOwnProperty.call(t,"autoplay")&&o.uint32(80).bool(t.autoplay),t.muted!=null&&Object.hasOwnProperty.call(t,"muted")&&o.uint32(88).bool(t.muted),t.id!=null&&Object.hasOwnProperty.call(t,"id")&&o.uint32(98).string(t.id),t.widthConfig!=null&&Object.hasOwnProperty.call(t,"widthConfig")&&$root.streamlit.WidthConfig.encode(t.widthConfig,o.uint32(106).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.Video;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 6:{h.url=t.string();break}case 3:{h.startTime=t.int32();break}case 5:{h.type=t.int32();break}case 7:{h.subtitles&&h.subtitles.length||(h.subtitles=[]),h.subtitles.push($root.SubtitleTrack.decode(t,t.uint32()));break}case 8:{h.endTime=t.int32();break}case 9:{h.loop=t.bool();break}case 10:{h.autoplay=t.bool();break}case 11:{h.muted=t.bool();break}case 12:{h.id=t.string();break}case 13:{h.widthConfig=$root.streamlit.WidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.Video)return t;let o=new $root.Video;switch(t.url!=null&&(o.url=String(t.url)),t.startTime!=null&&(o.startTime=t.startTime|0),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"UNUSED":case 0:o.type=0;break;case"NATIVE":case 1:o.type=1;break;case"YOUTUBE_IFRAME":case 2:o.type=2;break}if(t.subtitles){if(!Array.isArray(t.subtitles))throw TypeError(".Video.subtitles: array expected");o.subtitles=[];for(let d=0;d<t.subtitles.length;++d){if(typeof t.subtitles[d]!="object")throw TypeError(".Video.subtitles: object expected");o.subtitles[d]=$root.SubtitleTrack.fromObject(t.subtitles[d])}}if(t.endTime!=null&&(o.endTime=t.endTime|0),t.loop!=null&&(o.loop=!!t.loop),t.autoplay!=null&&(o.autoplay=!!t.autoplay),t.muted!=null&&(o.muted=!!t.muted),t.id!=null&&(o.id=String(t.id)),t.widthConfig!=null){if(typeof t.widthConfig!="object")throw TypeError(".Video.widthConfig: object expected");o.widthConfig=$root.streamlit.WidthConfig.fromObject(t.widthConfig)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.subtitles=[]),o.defaults&&(d.startTime=0,d.type=o.enums===String?"UNUSED":0,d.url="",d.endTime=0,d.loop=!1,d.autoplay=!1,d.muted=!1,d.id=""),t.startTime!=null&&t.hasOwnProperty("startTime")&&(d.startTime=t.startTime),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.Video.Type[t.type]===void 0?t.type:$root.Video.Type[t.type]:t.type),t.url!=null&&t.hasOwnProperty("url")&&(d.url=t.url),t.subtitles&&t.subtitles.length){d.subtitles=[];for(let p=0;p<t.subtitles.length;++p)d.subtitles[p]=$root.SubtitleTrack.toObject(t.subtitles[p],o)}return t.endTime!=null&&t.hasOwnProperty("endTime")&&(d.endTime=t.endTime),t.loop!=null&&t.hasOwnProperty("loop")&&(d.loop=t.loop),t.autoplay!=null&&t.hasOwnProperty("autoplay")&&(d.autoplay=t.autoplay),t.muted!=null&&t.hasOwnProperty("muted")&&(d.muted=t.muted),t.id!=null&&t.hasOwnProperty("id")&&(d.id=t.id),t.widthConfig!=null&&t.hasOwnProperty("widthConfig")&&(d.widthConfig=$root.streamlit.WidthConfig.toObject(t.widthConfig,o),o.oneofs&&(d._widthConfig="widthConfig")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/Video"},n.Type=(function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t})(),n})();$root.Heading=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tag="",n.prototype.anchor="",n.prototype.body="",n.prototype.help="",n.prototype.hideAnchor=!1,n.prototype.divider="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tag!=null&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),e.anchor!=null&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),e.body!=null&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),e.help!=null&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),e.hideAnchor!=null&&Object.hasOwnProperty.call(e,"hideAnchor")&&t.uint32(40).bool(e.hideAnchor),e.divider!=null&&Object.hasOwnProperty.call(e,"divider")&&t.uint32(50).string(e.divider),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Heading;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tag=e.string();break}case 2:{p.anchor=e.string();break}case 3:{p.body=e.string();break}case 4:{p.help=e.string();break}case 5:{p.hideAnchor=e.bool();break}case 6:{p.divider=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Heading)return e;let t=new $root.Heading;return e.tag!=null&&(t.tag=String(e.tag)),e.anchor!=null&&(t.anchor=String(e.anchor)),e.body!=null&&(t.body=String(e.body)),e.help!=null&&(t.help=String(e.help)),e.hideAnchor!=null&&(t.hideAnchor=!!e.hideAnchor),e.divider!=null&&(t.divider=String(e.divider)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tag="",o.anchor="",o.body="",o.help="",o.hideAnchor=!1,o.divider=""),e.tag!=null&&e.hasOwnProperty("tag")&&(o.tag=e.tag),e.anchor!=null&&e.hasOwnProperty("anchor")&&(o.anchor=e.anchor),e.body!=null&&e.hasOwnProperty("body")&&(o.body=e.body),e.help!=null&&e.hasOwnProperty("help")&&(o.help=e.help),e.hideAnchor!=null&&e.hasOwnProperty("hideAnchor")&&(o.hideAnchor=e.hideAnchor),e.divider!=null&&e.hasOwnProperty("divider")&&(o.divider=e.divider),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Heading"},n})();$root.Transient=(()=>{function n(i){if(this.elements=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.elements=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.elements!=null&&e.elements.length)for(let o=0;o<e.elements.length;++o)$root.Element.encode(e.elements[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Transient;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.elements&&p.elements.length||(p.elements=[]),p.elements.push($root.Element.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Transient)return e;let t=new $root.Transient;if(e.elements){if(!Array.isArray(e.elements))throw TypeError(".Transient.elements: array expected");t.elements=[];for(let o=0;o<e.elements.length;++o){if(typeof e.elements[o]!="object")throw TypeError(".Transient.elements: object expected");t.elements[o]=$root.Element.fromObject(e.elements[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.elements=[]),e.elements&&e.elements.length){o.elements=[];for(let d=0;d<e.elements.length;++d)o.elements[d]=$root.Element.toObject(e.elements[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Transient"},n})();const ForwardMsg=$root.ForwardMsg=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.hash="",n.prototype.metadata=null,n.prototype.newSession=null,n.prototype.delta=null,n.prototype.pageInfoChanged=null,n.prototype.pageConfigChanged=null,n.prototype.scriptFinished=null,n.prototype.gitInfoChanged=null,n.prototype.pageProfile=null,n.prototype.sessionStatusChanged=null,n.prototype.sessionEvent=null,n.prototype.navigation=null,n.prototype.pageNotFound=null,n.prototype.fileUrlsResponse=null,n.prototype.autoRerun=null,n.prototype.logo=null,n.prototype.authRedirect=null,n.prototype.parentMessage=null,n.prototype.refHash=null,n.prototype.deferredFileResponse=null,n.prototype.debugLastBackmsgId="";let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStatusChanged","sessionEvent","navigation","pageNotFound","fileUrlsResponse","autoRerun","logo","authRedirect","parentMessage","refHash","deferredFileResponse"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.hash!=null&&Object.hasOwnProperty.call(t,"hash")&&o.uint32(10).string(t.hash),t.metadata!=null&&Object.hasOwnProperty.call(t,"metadata")&&$root.ForwardMsgMetadata.encode(t.metadata,o.uint32(18).fork()).ldelim(),t.newSession!=null&&Object.hasOwnProperty.call(t,"newSession")&&$root.NewSession.encode(t.newSession,o.uint32(34).fork()).ldelim(),t.delta!=null&&Object.hasOwnProperty.call(t,"delta")&&$root.Delta.encode(t.delta,o.uint32(42).fork()).ldelim(),t.scriptFinished!=null&&Object.hasOwnProperty.call(t,"scriptFinished")&&o.uint32(48).int32(t.scriptFinished),t.sessionStatusChanged!=null&&Object.hasOwnProperty.call(t,"sessionStatusChanged")&&$root.SessionStatus.encode(t.sessionStatusChanged,o.uint32(74).fork()).ldelim(),t.sessionEvent!=null&&Object.hasOwnProperty.call(t,"sessionEvent")&&$root.SessionEvent.encode(t.sessionEvent,o.uint32(82).fork()).ldelim(),t.refHash!=null&&Object.hasOwnProperty.call(t,"refHash")&&o.uint32(90).string(t.refHash),t.pageInfoChanged!=null&&Object.hasOwnProperty.call(t,"pageInfoChanged")&&$root.PageInfo.encode(t.pageInfoChanged,o.uint32(98).fork()).ldelim(),t.pageConfigChanged!=null&&Object.hasOwnProperty.call(t,"pageConfigChanged")&&$root.PageConfig.encode(t.pageConfigChanged,o.uint32(106).fork()).ldelim(),t.gitInfoChanged!=null&&Object.hasOwnProperty.call(t,"gitInfoChanged")&&$root.GitInfo.encode(t.gitInfoChanged,o.uint32(114).fork()).ldelim(),t.pageNotFound!=null&&Object.hasOwnProperty.call(t,"pageNotFound")&&$root.PageNotFound.encode(t.pageNotFound,o.uint32(122).fork()).ldelim(),t.debugLastBackmsgId!=null&&Object.hasOwnProperty.call(t,"debugLastBackmsgId")&&o.uint32(138).string(t.debugLastBackmsgId),t.pageProfile!=null&&Object.hasOwnProperty.call(t,"pageProfile")&&$root.PageProfile.encode(t.pageProfile,o.uint32(146).fork()).ldelim(),t.fileUrlsResponse!=null&&Object.hasOwnProperty.call(t,"fileUrlsResponse")&&$root.FileURLsResponse.encode(t.fileUrlsResponse,o.uint32(154).fork()).ldelim(),t.parentMessage!=null&&Object.hasOwnProperty.call(t,"parentMessage")&&$root.ParentMessage.encode(t.parentMessage,o.uint32(162).fork()).ldelim(),t.autoRerun!=null&&Object.hasOwnProperty.call(t,"autoRerun")&&$root.AutoRerun.encode(t.autoRerun,o.uint32(170).fork()).ldelim(),t.logo!=null&&Object.hasOwnProperty.call(t,"logo")&&$root.Logo.encode(t.logo,o.uint32(178).fork()).ldelim(),t.navigation!=null&&Object.hasOwnProperty.call(t,"navigation")&&$root.Navigation.encode(t.navigation,o.uint32(186).fork()).ldelim(),t.authRedirect!=null&&Object.hasOwnProperty.call(t,"authRedirect")&&$root.AuthRedirect.encode(t.authRedirect,o.uint32(194).fork()).ldelim(),t.deferredFileResponse!=null&&Object.hasOwnProperty.call(t,"deferredFileResponse")&&$root.DeferredFileResponse.encode(t.deferredFileResponse,o.uint32(202).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.ForwardMsg;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.hash=t.string();break}case 2:{h.metadata=$root.ForwardMsgMetadata.decode(t,t.uint32());break}case 4:{h.newSession=$root.NewSession.decode(t,t.uint32());break}case 5:{h.delta=$root.Delta.decode(t,t.uint32());break}case 12:{h.pageInfoChanged=$root.PageInfo.decode(t,t.uint32());break}case 13:{h.pageConfigChanged=$root.PageConfig.decode(t,t.uint32());break}case 6:{h.scriptFinished=t.int32();break}case 14:{h.gitInfoChanged=$root.GitInfo.decode(t,t.uint32());break}case 18:{h.pageProfile=$root.PageProfile.decode(t,t.uint32());break}case 9:{h.sessionStatusChanged=$root.SessionStatus.decode(t,t.uint32());break}case 10:{h.sessionEvent=$root.SessionEvent.decode(t,t.uint32());break}case 23:{h.navigation=$root.Navigation.decode(t,t.uint32());break}case 15:{h.pageNotFound=$root.PageNotFound.decode(t,t.uint32());break}case 19:{h.fileUrlsResponse=$root.FileURLsResponse.decode(t,t.uint32());break}case 21:{h.autoRerun=$root.AutoRerun.decode(t,t.uint32());break}case 22:{h.logo=$root.Logo.decode(t,t.uint32());break}case 24:{h.authRedirect=$root.AuthRedirect.decode(t,t.uint32());break}case 20:{h.parentMessage=$root.ParentMessage.decode(t,t.uint32());break}case 11:{h.refHash=t.string();break}case 25:{h.deferredFileResponse=$root.DeferredFileResponse.decode(t,t.uint32());break}case 17:{h.debugLastBackmsgId=t.string();break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.ForwardMsg)return t;let o=new $root.ForwardMsg;if(t.hash!=null&&(o.hash=String(t.hash)),t.metadata!=null){if(typeof t.metadata!="object")throw TypeError(".ForwardMsg.metadata: object expected");o.metadata=$root.ForwardMsgMetadata.fromObject(t.metadata)}if(t.newSession!=null){if(typeof t.newSession!="object")throw TypeError(".ForwardMsg.newSession: object expected");o.newSession=$root.NewSession.fromObject(t.newSession)}if(t.delta!=null){if(typeof t.delta!="object")throw TypeError(".ForwardMsg.delta: object expected");o.delta=$root.Delta.fromObject(t.delta)}if(t.pageInfoChanged!=null){if(typeof t.pageInfoChanged!="object")throw TypeError(".ForwardMsg.pageInfoChanged: object expected");o.pageInfoChanged=$root.PageInfo.fromObject(t.pageInfoChanged)}if(t.pageConfigChanged!=null){if(typeof t.pageConfigChanged!="object")throw TypeError(".ForwardMsg.pageConfigChanged: object expected");o.pageConfigChanged=$root.PageConfig.fromObject(t.pageConfigChanged)}switch(t.scriptFinished){default:if(typeof t.scriptFinished=="number"){o.scriptFinished=t.scriptFinished;break}break;case"FINISHED_SUCCESSFULLY":case 0:o.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:o.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:o.scriptFinished=2;break;case"FINISHED_FRAGMENT_RUN_SUCCESSFULLY":case 3:o.scriptFinished=3;break}if(t.gitInfoChanged!=null){if(typeof t.gitInfoChanged!="object")throw TypeError(".ForwardMsg.gitInfoChanged: object expected");o.gitInfoChanged=$root.GitInfo.fromObject(t.gitInfoChanged)}if(t.pageProfile!=null){if(typeof t.pageProfile!="object")throw TypeError(".ForwardMsg.pageProfile: object expected");o.pageProfile=$root.PageProfile.fromObject(t.pageProfile)}if(t.sessionStatusChanged!=null){if(typeof t.sessionStatusChanged!="object")throw TypeError(".ForwardMsg.sessionStatusChanged: object expected");o.sessionStatusChanged=$root.SessionStatus.fromObject(t.sessionStatusChanged)}if(t.sessionEvent!=null){if(typeof t.sessionEvent!="object")throw TypeError(".ForwardMsg.sessionEvent: object expected");o.sessionEvent=$root.SessionEvent.fromObject(t.sessionEvent)}if(t.navigation!=null){if(typeof t.navigation!="object")throw TypeError(".ForwardMsg.navigation: object expected");o.navigation=$root.Navigation.fromObject(t.navigation)}if(t.pageNotFound!=null){if(typeof t.pageNotFound!="object")throw TypeError(".ForwardMsg.pageNotFound: object expected");o.pageNotFound=$root.PageNotFound.fromObject(t.pageNotFound)}if(t.fileUrlsResponse!=null){if(typeof t.fileUrlsResponse!="object")throw TypeError(".ForwardMsg.fileUrlsResponse: object expected");o.fileUrlsResponse=$root.FileURLsResponse.fromObject(t.fileUrlsResponse)}if(t.autoRerun!=null){if(typeof t.autoRerun!="object")throw TypeError(".ForwardMsg.autoRerun: object expected");o.autoRerun=$root.AutoRerun.fromObject(t.autoRerun)}if(t.logo!=null){if(typeof t.logo!="object")throw TypeError(".ForwardMsg.logo: object expected");o.logo=$root.Logo.fromObject(t.logo)}if(t.authRedirect!=null){if(typeof t.authRedirect!="object")throw TypeError(".ForwardMsg.authRedirect: object expected");o.authRedirect=$root.AuthRedirect.fromObject(t.authRedirect)}if(t.parentMessage!=null){if(typeof t.parentMessage!="object")throw TypeError(".ForwardMsg.parentMessage: object expected");o.parentMessage=$root.ParentMessage.fromObject(t.parentMessage)}if(t.refHash!=null&&(o.refHash=String(t.refHash)),t.deferredFileResponse!=null){if(typeof t.deferredFileResponse!="object")throw TypeError(".ForwardMsg.deferredFileResponse: object expected");o.deferredFileResponse=$root.DeferredFileResponse.fromObject(t.deferredFileResponse)}return t.debugLastBackmsgId!=null&&(o.debugLastBackmsgId=String(t.debugLastBackmsgId)),o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.hash="",d.metadata=null,d.debugLastBackmsgId=""),t.hash!=null&&t.hasOwnProperty("hash")&&(d.hash=t.hash),t.metadata!=null&&t.hasOwnProperty("metadata")&&(d.metadata=$root.ForwardMsgMetadata.toObject(t.metadata,o)),t.newSession!=null&&t.hasOwnProperty("newSession")&&(d.newSession=$root.NewSession.toObject(t.newSession,o),o.oneofs&&(d.type="newSession")),t.delta!=null&&t.hasOwnProperty("delta")&&(d.delta=$root.Delta.toObject(t.delta,o),o.oneofs&&(d.type="delta")),t.scriptFinished!=null&&t.hasOwnProperty("scriptFinished")&&(d.scriptFinished=o.enums===String?$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]===void 0?t.scriptFinished:$root.ForwardMsg.ScriptFinishedStatus[t.scriptFinished]:t.scriptFinished,o.oneofs&&(d.type="scriptFinished")),t.sessionStatusChanged!=null&&t.hasOwnProperty("sessionStatusChanged")&&(d.sessionStatusChanged=$root.SessionStatus.toObject(t.sessionStatusChanged,o),o.oneofs&&(d.type="sessionStatusChanged")),t.sessionEvent!=null&&t.hasOwnProperty("sessionEvent")&&(d.sessionEvent=$root.SessionEvent.toObject(t.sessionEvent,o),o.oneofs&&(d.type="sessionEvent")),t.refHash!=null&&t.hasOwnProperty("refHash")&&(d.refHash=t.refHash,o.oneofs&&(d.type="refHash")),t.pageInfoChanged!=null&&t.hasOwnProperty("pageInfoChanged")&&(d.pageInfoChanged=$root.PageInfo.toObject(t.pageInfoChanged,o),o.oneofs&&(d.type="pageInfoChanged")),t.pageConfigChanged!=null&&t.hasOwnProperty("pageConfigChanged")&&(d.pageConfigChanged=$root.PageConfig.toObject(t.pageConfigChanged,o),o.oneofs&&(d.type="pageConfigChanged")),t.gitInfoChanged!=null&&t.hasOwnProperty("gitInfoChanged")&&(d.gitInfoChanged=$root.GitInfo.toObject(t.gitInfoChanged,o),o.oneofs&&(d.type="gitInfoChanged")),t.pageNotFound!=null&&t.hasOwnProperty("pageNotFound")&&(d.pageNotFound=$root.PageNotFound.toObject(t.pageNotFound,o),o.oneofs&&(d.type="pageNotFound")),t.debugLastBackmsgId!=null&&t.hasOwnProperty("debugLastBackmsgId")&&(d.debugLastBackmsgId=t.debugLastBackmsgId),t.pageProfile!=null&&t.hasOwnProperty("pageProfile")&&(d.pageProfile=$root.PageProfile.toObject(t.pageProfile,o),o.oneofs&&(d.type="pageProfile")),t.fileUrlsResponse!=null&&t.hasOwnProperty("fileUrlsResponse")&&(d.fileUrlsResponse=$root.FileURLsResponse.toObject(t.fileUrlsResponse,o),o.oneofs&&(d.type="fileUrlsResponse")),t.parentMessage!=null&&t.hasOwnProperty("parentMessage")&&(d.parentMessage=$root.ParentMessage.toObject(t.parentMessage,o),o.oneofs&&(d.type="parentMessage")),t.autoRerun!=null&&t.hasOwnProperty("autoRerun")&&(d.autoRerun=$root.AutoRerun.toObject(t.autoRerun,o),o.oneofs&&(d.type="autoRerun")),t.logo!=null&&t.hasOwnProperty("logo")&&(d.logo=$root.Logo.toObject(t.logo,o),o.oneofs&&(d.type="logo")),t.navigation!=null&&t.hasOwnProperty("navigation")&&(d.navigation=$root.Navigation.toObject(t.navigation,o),o.oneofs&&(d.type="navigation")),t.authRedirect!=null&&t.hasOwnProperty("authRedirect")&&(d.authRedirect=$root.AuthRedirect.toObject(t.authRedirect,o),o.oneofs&&(d.type="authRedirect")),t.deferredFileResponse!=null&&t.hasOwnProperty("deferredFileResponse")&&(d.deferredFileResponse=$root.DeferredFileResponse.toObject(t.deferredFileResponse,o),o.oneofs&&(d.type="deferredFileResponse")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/ForwardMsg"},n.ScriptFinishedStatus=(function(){const e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,t[e[2]="FINISHED_EARLY_FOR_RERUN"]=2,t[e[3]="FINISHED_FRAGMENT_RUN_SUCCESSFULLY"]=3,t})(),n})();$root.DeferredFileResponse=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.fileId="",n.prototype.url="",n.prototype.errorMsg="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.fileId!=null&&Object.hasOwnProperty.call(e,"fileId")&&t.uint32(10).string(e.fileId),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),e.errorMsg!=null&&Object.hasOwnProperty.call(e,"errorMsg")&&t.uint32(26).string(e.errorMsg),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.DeferredFileResponse;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.fileId=e.string();break}case 2:{p.url=e.string();break}case 3:{p.errorMsg=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.DeferredFileResponse)return e;let t=new $root.DeferredFileResponse;return e.fileId!=null&&(t.fileId=String(e.fileId)),e.url!=null&&(t.url=String(e.url)),e.errorMsg!=null&&(t.errorMsg=String(e.errorMsg)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.fileId="",o.url="",o.errorMsg=""),e.fileId!=null&&e.hasOwnProperty("fileId")&&(o.fileId=e.fileId),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.errorMsg!=null&&e.hasOwnProperty("errorMsg")&&(o.errorMsg=e.errorMsg),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/DeferredFileResponse"},n})();const ForwardMsgMetadata=$root.ForwardMsgMetadata=(()=>{function n(i){if(this.deltaPath=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.cacheable=!1,n.prototype.deltaPath=$util.emptyArray,n.prototype.activeScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.cacheable!=null&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),e.deltaPath!=null&&e.deltaPath.length){t.uint32(18).fork();for(let o=0;o<e.deltaPath.length;++o)t.uint32(e.deltaPath[o]);t.ldelim()}return e.activeScriptHash!=null&&Object.hasOwnProperty.call(e,"activeScriptHash")&&t.uint32(34).string(e.activeScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgMetadata;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.cacheable=e.bool();break}case 2:{if(p.deltaPath&&p.deltaPath.length||(p.deltaPath=[]),(h&7)===2){let y=e.uint32()+e.pos;for(;e.pos<y;)p.deltaPath.push(e.uint32())}else p.deltaPath.push(e.uint32());break}case 4:{p.activeScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgMetadata)return e;let t=new $root.ForwardMsgMetadata;if(e.cacheable!=null&&(t.cacheable=!!e.cacheable),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let o=0;o<e.deltaPath.length;++o)t.deltaPath[o]=e.deltaPath[o]>>>0}return e.activeScriptHash!=null&&(t.activeScriptHash=String(e.activeScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.deltaPath=[]),t.defaults&&(o.cacheable=!1,o.activeScriptHash=""),e.cacheable!=null&&e.hasOwnProperty("cacheable")&&(o.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){o.deltaPath=[];for(let d=0;d<e.deltaPath.length;++d)o.deltaPath[d]=e.deltaPath[d]}return e.activeScriptHash!=null&&e.hasOwnProperty("activeScriptHash")&&(o.activeScriptHash=e.activeScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgMetadata"},n})(),ForwardMsgList=$root.ForwardMsgList=(()=>{function n(i){if(this.messages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.messages=$util.emptyArray,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.messages!=null&&e.messages.length)for(let o=0;o<e.messages.length;++o)$root.ForwardMsg.encode(e.messages[o],t.uint32(10).fork()).ldelim();return t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ForwardMsgList;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.messages&&p.messages.length||(p.messages=[]),p.messages.push($root.ForwardMsg.decode(e,e.uint32()));break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ForwardMsgList)return e;let t=new $root.ForwardMsgList;if(e.messages){if(!Array.isArray(e.messages))throw TypeError(".ForwardMsgList.messages: array expected");t.messages=[];for(let o=0;o<e.messages.length;++o){if(typeof e.messages[o]!="object")throw TypeError(".ForwardMsgList.messages: object expected");t.messages[o]=$root.ForwardMsg.fromObject(e.messages[o])}}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.messages=[]),e.messages&&e.messages.length){o.messages=[];for(let d=0;d<e.messages.length;++d)o.messages[d]=$root.ForwardMsg.toObject(e.messages[d],t)}return o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ForwardMsgList"},n})(),GitInfo=$root.GitInfo=(()=>{function n(i){if(this.untrackedFiles=[],this.uncommittedFiles=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.repository="",n.prototype.branch="",n.prototype.module="",n.prototype.untrackedFiles=$util.emptyArray,n.prototype.uncommittedFiles=$util.emptyArray,n.prototype.state=0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.repository!=null&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),e.module!=null&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),e.untrackedFiles!=null&&e.untrackedFiles.length)for(let o=0;o<e.untrackedFiles.length;++o)t.uint32(34).string(e.untrackedFiles[o]);if(e.uncommittedFiles!=null&&e.uncommittedFiles.length)for(let o=0;o<e.uncommittedFiles.length;++o)t.uint32(42).string(e.uncommittedFiles[o]);return e.state!=null&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.GitInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.repository=e.string();break}case 2:{p.branch=e.string();break}case 3:{p.module=e.string();break}case 4:{p.untrackedFiles&&p.untrackedFiles.length||(p.untrackedFiles=[]),p.untrackedFiles.push(e.string());break}case 5:{p.uncommittedFiles&&p.uncommittedFiles.length||(p.uncommittedFiles=[]),p.uncommittedFiles.push(e.string());break}case 6:{p.state=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.GitInfo)return e;let t=new $root.GitInfo;if(e.repository!=null&&(t.repository=String(e.repository)),e.branch!=null&&(t.branch=String(e.branch)),e.module!=null&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let o=0;o<e.untrackedFiles.length;++o)t.untrackedFiles[o]=String(e.untrackedFiles[o])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let o=0;o<e.uncommittedFiles.length;++o)t.uncommittedFiles[o]=String(e.uncommittedFiles[o])}switch(e.state){default:if(typeof e.state=="number"){t.state=e.state;break}break;case"DEFAULT":case 0:t.state=0;break;case"HEAD_DETACHED":case 1:t.state=1;break;case"AHEAD_OF_REMOTE":case 2:t.state=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.untrackedFiles=[],o.uncommittedFiles=[]),t.defaults&&(o.repository="",o.branch="",o.module="",o.state=t.enums===String?"DEFAULT":0),e.repository!=null&&e.hasOwnProperty("repository")&&(o.repository=e.repository),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.module!=null&&e.hasOwnProperty("module")&&(o.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){o.untrackedFiles=[];for(let d=0;d<e.untrackedFiles.length;++d)o.untrackedFiles[d]=e.untrackedFiles[d]}if(e.uncommittedFiles&&e.uncommittedFiles.length){o.uncommittedFiles=[];for(let d=0;d<e.uncommittedFiles.length;++d)o.uncommittedFiles[d]=e.uncommittedFiles[d]}return e.state!=null&&e.hasOwnProperty("state")&&(o.state=t.enums===String?$root.GitInfo.GitStates[e.state]===void 0?e.state:$root.GitInfo.GitStates[e.state]:e.state),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/GitInfo"},n.GitStates=(function(){const i={},e=Object.create(i);return e[i[0]="DEFAULT"]=0,e[i[1]="HEAD_DETACHED"]=1,e[i[2]="AHEAD_OF_REMOTE"]=2,e})(),n})(),Logo=$root.Logo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.image="",n.prototype.link="",n.prototype.iconImage="",n.prototype.size="",n.prototype.imageType=0,n.prototype.iconImageType=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.image!=null&&Object.hasOwnProperty.call(e,"image")&&t.uint32(10).string(e.image),e.link!=null&&Object.hasOwnProperty.call(e,"link")&&t.uint32(18).string(e.link),e.iconImage!=null&&Object.hasOwnProperty.call(e,"iconImage")&&t.uint32(26).string(e.iconImage),e.size!=null&&Object.hasOwnProperty.call(e,"size")&&t.uint32(34).string(e.size),e.imageType!=null&&Object.hasOwnProperty.call(e,"imageType")&&t.uint32(40).int32(e.imageType),e.iconImageType!=null&&Object.hasOwnProperty.call(e,"iconImageType")&&t.uint32(48).int32(e.iconImageType),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Logo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.image=e.string();break}case 2:{p.link=e.string();break}case 3:{p.iconImage=e.string();break}case 4:{p.size=e.string();break}case 5:{p.imageType=e.int32();break}case 6:{p.iconImageType=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Logo)return e;let t=new $root.Logo;switch(e.image!=null&&(t.image=String(e.image)),e.link!=null&&(t.link=String(e.link)),e.iconImage!=null&&(t.iconImage=String(e.iconImage)),e.size!=null&&(t.size=String(e.size)),e.imageType){default:if(typeof e.imageType=="number"){t.imageType=e.imageType;break}break;case"IMAGE":case 0:t.imageType=0;break;case"EMOJI":case 1:t.imageType=1;break;case"ICON":case 2:t.imageType=2;break}switch(e.iconImageType){default:if(typeof e.iconImageType=="number"){t.iconImageType=e.iconImageType;break}break;case"IMAGE":case 0:t.iconImageType=0;break;case"EMOJI":case 1:t.iconImageType=1;break;case"ICON":case 2:t.iconImageType=2;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.image="",o.link="",o.iconImage="",o.size="",o.imageType=t.enums===String?"IMAGE":0,o.iconImageType=t.enums===String?"IMAGE":0),e.image!=null&&e.hasOwnProperty("image")&&(o.image=e.image),e.link!=null&&e.hasOwnProperty("link")&&(o.link=e.link),e.iconImage!=null&&e.hasOwnProperty("iconImage")&&(o.iconImage=e.iconImage),e.size!=null&&e.hasOwnProperty("size")&&(o.size=e.size),e.imageType!=null&&e.hasOwnProperty("imageType")&&(o.imageType=t.enums===String?$root.Logo.ImageType[e.imageType]===void 0?e.imageType:$root.Logo.ImageType[e.imageType]:e.imageType),e.iconImageType!=null&&e.hasOwnProperty("iconImageType")&&(o.iconImageType=t.enums===String?$root.Logo.ImageType[e.iconImageType]===void 0?e.iconImageType:$root.Logo.ImageType[e.iconImageType]:e.iconImageType),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Logo"},n.ImageType=(function(){const i={},e=Object.create(i);return e[i[0]="IMAGE"]=0,e[i[1]="EMOJI"]=1,e[i[2]="ICON"]=2,e})(),n})(),Navigation=$root.Navigation=(()=>{function n(i){if(this.sections=[],this.appPages=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.sections=$util.emptyArray,n.prototype.appPages=$util.emptyArray,n.prototype.position=0,n.prototype.pageScriptHash="",n.prototype.expanded=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.sections!=null&&e.sections.length)for(let o=0;o<e.sections.length;++o)t.uint32(10).string(e.sections[o]);if(e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(18).fork()).ldelim();return e.position!=null&&Object.hasOwnProperty.call(e,"position")&&t.uint32(24).int32(e.position),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(34).string(e.pageScriptHash),e.expanded!=null&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(40).bool(e.expanded),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Navigation;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.sections&&p.sections.length||(p.sections=[]),p.sections.push(e.string());break}case 2:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 3:{p.position=e.int32();break}case 4:{p.pageScriptHash=e.string();break}case 5:{p.expanded=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Navigation)return e;let t=new $root.Navigation;if(e.sections){if(!Array.isArray(e.sections))throw TypeError(".Navigation.sections: array expected");t.sections=[];for(let o=0;o<e.sections.length;++o)t.sections[o]=String(e.sections[o])}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".Navigation.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".Navigation.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}switch(e.position){default:if(typeof e.position=="number"){t.position=e.position;break}break;case"HIDDEN":case 0:t.position=0;break;case"SIDEBAR":case 1:t.position=1;break;case"TOP":case 2:t.position=2;break}return e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.expanded!=null&&(t.expanded=!!e.expanded),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.sections=[],o.appPages=[]),t.defaults&&(o.position=t.enums===String?"HIDDEN":0,o.pageScriptHash="",o.expanded=!1),e.sections&&e.sections.length){o.sections=[];for(let d=0;d<e.sections.length;++d)o.sections[d]=e.sections[d]}if(e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}return e.position!=null&&e.hasOwnProperty("position")&&(o.position=t.enums===String?$root.Navigation.Position[e.position]===void 0?e.position:$root.Navigation.Position[e.position]:e.position),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.expanded!=null&&e.hasOwnProperty("expanded")&&(o.expanded=e.expanded),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Navigation"},n.Position=(function(){const i={},e=Object.create(i);return e[i[0]="HIDDEN"]=0,e[i[1]="SIDEBAR"]=1,e[i[2]="TOP"]=2,e})(),n})();$root.NewSession=(()=>{function n(i){if(this.appPages=[],this.fragmentIdsThisRun=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.initialize=null,n.prototype.scriptRunId="",n.prototype.name="",n.prototype.mainScriptPath="",n.prototype.config=null,n.prototype.customTheme=null,n.prototype.appPages=$util.emptyArray,n.prototype.pageScriptHash="",n.prototype.fragmentIdsThisRun=$util.emptyArray,n.prototype.mainScriptHash="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.initialize!=null&&Object.hasOwnProperty.call(e,"initialize")&&$root.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),e.scriptRunId!=null&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),e.mainScriptPath!=null&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),e.config!=null&&Object.hasOwnProperty.call(e,"config")&&$root.Config.encode(e.config,t.uint32(50).fork()).ldelim(),e.customTheme!=null&&Object.hasOwnProperty.call(e,"customTheme")&&$root.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),e.appPages!=null&&e.appPages.length)for(let o=0;o<e.appPages.length;++o)$root.AppPage.encode(e.appPages[o],t.uint32(66).fork()).ldelim();if(e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),e.fragmentIdsThisRun!=null&&e.fragmentIdsThisRun.length)for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.uint32(82).string(e.fragmentIdsThisRun[o]);return e.mainScriptHash!=null&&Object.hasOwnProperty.call(e,"mainScriptHash")&&t.uint32(90).string(e.mainScriptHash),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.NewSession;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.initialize=$root.Initialize.decode(e,e.uint32());break}case 2:{p.scriptRunId=e.string();break}case 3:{p.name=e.string();break}case 4:{p.mainScriptPath=e.string();break}case 6:{p.config=$root.Config.decode(e,e.uint32());break}case 7:{p.customTheme=$root.CustomThemeConfig.decode(e,e.uint32());break}case 8:{p.appPages&&p.appPages.length||(p.appPages=[]),p.appPages.push($root.AppPage.decode(e,e.uint32()));break}case 9:{p.pageScriptHash=e.string();break}case 10:{p.fragmentIdsThisRun&&p.fragmentIdsThisRun.length||(p.fragmentIdsThisRun=[]),p.fragmentIdsThisRun.push(e.string());break}case 11:{p.mainScriptHash=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.NewSession)return e;let t=new $root.NewSession;if(e.initialize!=null){if(typeof e.initialize!="object")throw TypeError(".NewSession.initialize: object expected");t.initialize=$root.Initialize.fromObject(e.initialize)}if(e.scriptRunId!=null&&(t.scriptRunId=String(e.scriptRunId)),e.name!=null&&(t.name=String(e.name)),e.mainScriptPath!=null&&(t.mainScriptPath=String(e.mainScriptPath)),e.config!=null){if(typeof e.config!="object")throw TypeError(".NewSession.config: object expected");t.config=$root.Config.fromObject(e.config)}if(e.customTheme!=null){if(typeof e.customTheme!="object")throw TypeError(".NewSession.customTheme: object expected");t.customTheme=$root.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let o=0;o<e.appPages.length;++o){if(typeof e.appPages[o]!="object")throw TypeError(".NewSession.appPages: object expected");t.appPages[o]=$root.AppPage.fromObject(e.appPages[o])}}if(e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.fragmentIdsThisRun){if(!Array.isArray(e.fragmentIdsThisRun))throw TypeError(".NewSession.fragmentIdsThisRun: array expected");t.fragmentIdsThisRun=[];for(let o=0;o<e.fragmentIdsThisRun.length;++o)t.fragmentIdsThisRun[o]=String(e.fragmentIdsThisRun[o])}return e.mainScriptHash!=null&&(t.mainScriptHash=String(e.mainScriptHash)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.appPages=[],o.fragmentIdsThisRun=[]),t.defaults&&(o.initialize=null,o.scriptRunId="",o.name="",o.mainScriptPath="",o.config=null,o.customTheme=null,o.pageScriptHash="",o.mainScriptHash=""),e.initialize!=null&&e.hasOwnProperty("initialize")&&(o.initialize=$root.Initialize.toObject(e.initialize,t)),e.scriptRunId!=null&&e.hasOwnProperty("scriptRunId")&&(o.scriptRunId=e.scriptRunId),e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.mainScriptPath!=null&&e.hasOwnProperty("mainScriptPath")&&(o.mainScriptPath=e.mainScriptPath),e.config!=null&&e.hasOwnProperty("config")&&(o.config=$root.Config.toObject(e.config,t)),e.customTheme!=null&&e.hasOwnProperty("customTheme")&&(o.customTheme=$root.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){o.appPages=[];for(let d=0;d<e.appPages.length;++d)o.appPages[d]=$root.AppPage.toObject(e.appPages[d],t)}if(e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.fragmentIdsThisRun&&e.fragmentIdsThisRun.length){o.fragmentIdsThisRun=[];for(let d=0;d<e.fragmentIdsThisRun.length;++d)o.fragmentIdsThisRun[d]=e.fragmentIdsThisRun[d]}return e.mainScriptHash!=null&&e.hasOwnProperty("mainScriptHash")&&(o.mainScriptHash=e.mainScriptHash),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/NewSession"},n})();$root.Initialize=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.userInfo=null,n.prototype.environmentInfo=null,n.prototype.sessionStatus=null,n.prototype.sessionId="",n.prototype.isHello=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.userInfo!=null&&Object.hasOwnProperty.call(e,"userInfo")&&$root.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),e.environmentInfo!=null&&Object.hasOwnProperty.call(e,"environmentInfo")&&$root.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),e.sessionStatus!=null&&Object.hasOwnProperty.call(e,"sessionStatus")&&$root.SessionStatus.encode(e.sessionStatus,t.uint32(34).fork()).ldelim(),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(56).bool(e.isHello),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Initialize;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.userInfo=$root.UserInfo.decode(e,e.uint32());break}case 3:{p.environmentInfo=$root.EnvironmentInfo.decode(e,e.uint32());break}case 4:{p.sessionStatus=$root.SessionStatus.decode(e,e.uint32());break}case 6:{p.sessionId=e.string();break}case 7:{p.isHello=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Initialize)return e;let t=new $root.Initialize;if(e.userInfo!=null){if(typeof e.userInfo!="object")throw TypeError(".Initialize.userInfo: object expected");t.userInfo=$root.UserInfo.fromObject(e.userInfo)}if(e.environmentInfo!=null){if(typeof e.environmentInfo!="object")throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=$root.EnvironmentInfo.fromObject(e.environmentInfo)}if(e.sessionStatus!=null){if(typeof e.sessionStatus!="object")throw TypeError(".Initialize.sessionStatus: object expected");t.sessionStatus=$root.SessionStatus.fromObject(e.sessionStatus)}return e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.isHello!=null&&(t.isHello=!!e.isHello),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.userInfo=null,o.environmentInfo=null,o.sessionStatus=null,o.sessionId="",o.isHello=!1),e.userInfo!=null&&e.hasOwnProperty("userInfo")&&(o.userInfo=$root.UserInfo.toObject(e.userInfo,t)),e.environmentInfo!=null&&e.hasOwnProperty("environmentInfo")&&(o.environmentInfo=$root.EnvironmentInfo.toObject(e.environmentInfo,t)),e.sessionStatus!=null&&e.hasOwnProperty("sessionStatus")&&(o.sessionStatus=$root.SessionStatus.toObject(e.sessionStatus,t)),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Initialize"},n})();const Config=$root.Config=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.gatherUsageStats=!1,n.prototype.maxCachedMessageAge=0,n.prototype.allowRunOnSave=!1,n.prototype.hideTopBar=!1,n.prototype.hideSidebarNav=!1,n.prototype.toolbarMode=0,n.prototype.showErrorLinks=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.gatherUsageStats!=null&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),e.maxCachedMessageAge!=null&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),e.allowRunOnSave!=null&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),e.hideTopBar!=null&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),e.hideSidebarNav!=null&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),e.toolbarMode!=null&&Object.hasOwnProperty.call(e,"toolbarMode")&&t.uint32(64).int32(e.toolbarMode),e.showErrorLinks!=null&&Object.hasOwnProperty.call(e,"showErrorLinks")&&t.uint32(72).int32(e.showErrorLinks),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Config;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 2:{p.gatherUsageStats=e.bool();break}case 3:{p.maxCachedMessageAge=e.int32();break}case 5:{p.allowRunOnSave=e.bool();break}case 6:{p.hideTopBar=e.bool();break}case 7:{p.hideSidebarNav=e.bool();break}case 8:{p.toolbarMode=e.int32();break}case 9:{p.showErrorLinks=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Config)return e;let t=new $root.Config;switch(e.gatherUsageStats!=null&&(t.gatherUsageStats=!!e.gatherUsageStats),e.maxCachedMessageAge!=null&&(t.maxCachedMessageAge=e.maxCachedMessageAge|0),e.allowRunOnSave!=null&&(t.allowRunOnSave=!!e.allowRunOnSave),e.hideTopBar!=null&&(t.hideTopBar=!!e.hideTopBar),e.hideSidebarNav!=null&&(t.hideSidebarNav=!!e.hideSidebarNav),e.toolbarMode){default:if(typeof e.toolbarMode=="number"){t.toolbarMode=e.toolbarMode;break}break;case"AUTO":case 0:t.toolbarMode=0;break;case"DEVELOPER":case 1:t.toolbarMode=1;break;case"VIEWER":case 2:t.toolbarMode=2;break;case"MINIMAL":case 3:t.toolbarMode=3;break}switch(e.showErrorLinks){default:if(typeof e.showErrorLinks=="number"){t.showErrorLinks=e.showErrorLinks;break}break;case"SHOW_ERROR_LINKS_UNSPECIFIED":case 0:t.showErrorLinks=0;break;case"SHOW_ERROR_LINKS_AUTO":case 1:t.showErrorLinks=1;break;case"SHOW_ERROR_LINKS_TRUE":case 2:t.showErrorLinks=2;break;case"SHOW_ERROR_LINKS_FALSE":case 3:t.showErrorLinks=3;break}return t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.gatherUsageStats=!1,o.maxCachedMessageAge=0,o.allowRunOnSave=!1,o.hideTopBar=!1,o.hideSidebarNav=!1,o.toolbarMode=t.enums===String?"AUTO":0,o.showErrorLinks=t.enums===String?"SHOW_ERROR_LINKS_UNSPECIFIED":0),e.gatherUsageStats!=null&&e.hasOwnProperty("gatherUsageStats")&&(o.gatherUsageStats=e.gatherUsageStats),e.maxCachedMessageAge!=null&&e.hasOwnProperty("maxCachedMessageAge")&&(o.maxCachedMessageAge=e.maxCachedMessageAge),e.allowRunOnSave!=null&&e.hasOwnProperty("allowRunOnSave")&&(o.allowRunOnSave=e.allowRunOnSave),e.hideTopBar!=null&&e.hasOwnProperty("hideTopBar")&&(o.hideTopBar=e.hideTopBar),e.hideSidebarNav!=null&&e.hasOwnProperty("hideSidebarNav")&&(o.hideSidebarNav=e.hideSidebarNav),e.toolbarMode!=null&&e.hasOwnProperty("toolbarMode")&&(o.toolbarMode=t.enums===String?$root.Config.ToolbarMode[e.toolbarMode]===void 0?e.toolbarMode:$root.Config.ToolbarMode[e.toolbarMode]:e.toolbarMode),e.showErrorLinks!=null&&e.hasOwnProperty("showErrorLinks")&&(o.showErrorLinks=t.enums===String?$root.Config.ShowErrorLinks[e.showErrorLinks]===void 0?e.showErrorLinks:$root.Config.ShowErrorLinks[e.showErrorLinks]:e.showErrorLinks),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Config"},n.ToolbarMode=(function(){const i={},e=Object.create(i);return e[i[0]="AUTO"]=0,e[i[1]="DEVELOPER"]=1,e[i[2]="VIEWER"]=2,e[i[3]="MINIMAL"]=3,e})(),n.ShowErrorLinks=(function(){const i={},e=Object.create(i);return e[i[0]="SHOW_ERROR_LINKS_UNSPECIFIED"]=0,e[i[1]="SHOW_ERROR_LINKS_AUTO"]=1,e[i[2]="SHOW_ERROR_LINKS_TRUE"]=2,e[i[3]="SHOW_ERROR_LINKS_FALSE"]=3,e})(),n})(),CustomThemeConfig=$root.CustomThemeConfig=(()=>{function n(e){if(this.fontFaces=[],this.fontSources=[],this.headingFontSizes=[],this.headingFontWeights=[],this.chartCategoricalColors=[],this.chartSequentialColors=[],this.chartDivergingColors=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.primaryColor="",n.prototype.secondaryBackgroundColor="",n.prototype.backgroundColor="",n.prototype.textColor="",n.prototype.font=0,n.prototype.base=0,n.prototype.widgetBackgroundColor="",n.prototype.widgetBorderColor="",n.prototype.radii=null,n.prototype.headingFont="",n.prototype.bodyFont="",n.prototype.codeFont="",n.prototype.fontFaces=$util.emptyArray,n.prototype.fontSources=$util.emptyArray,n.prototype.fontSizes=null,n.prototype.skeletonBackgroundColor="",n.prototype.baseRadius=null,n.prototype.buttonRadius=null,n.prototype.borderColor=null,n.prototype.dataframeBorderColor=null,n.prototype.showWidgetBorder=null,n.prototype.linkColor=null,n.prototype.linkUnderline=null,n.prototype.baseFontSize=null,n.prototype.baseFontWeight=null,n.prototype.codeFontWeight=null,n.prototype.codeFontSize=null,n.prototype.headingFontSizes=$util.emptyArray,n.prototype.headingFontWeights=$util.emptyArray,n.prototype.showSidebarBorder=null,n.prototype.codeTextColor=null,n.prototype.codeBackgroundColor=null,n.prototype.dataframeHeaderBackgroundColor=null,n.prototype.chartCategoricalColors=$util.emptyArray,n.prototype.chartSequentialColors=$util.emptyArray,n.prototype.chartDivergingColors=$util.emptyArray,n.prototype.redColor=null,n.prototype.orangeColor=null,n.prototype.yellowColor=null,n.prototype.blueColor=null,n.prototype.greenColor=null,n.prototype.violetColor=null,n.prototype.grayColor=null,n.prototype.redBackgroundColor=null,n.prototype.orangeBackgroundColor=null,n.prototype.yellowBackgroundColor=null,n.prototype.blueBackgroundColor=null,n.prototype.greenBackgroundColor=null,n.prototype.violetBackgroundColor=null,n.prototype.grayBackgroundColor=null,n.prototype.redTextColor=null,n.prototype.orangeTextColor=null,n.prototype.yellowTextColor=null,n.prototype.blueTextColor=null,n.prototype.greenTextColor=null,n.prototype.violetTextColor=null,n.prototype.grayTextColor=null,n.prototype.sidebar=null,n.prototype.light=null,n.prototype.dark=null;let i;return Object.defineProperty(n.prototype,"_baseRadius",{get:$util.oneOfGetter(i=["baseRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_buttonRadius",{get:$util.oneOfGetter(i=["buttonRadius"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_borderColor",{get:$util.oneOfGetter(i=["borderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeBorderColor",{get:$util.oneOfGetter(i=["dataframeBorderColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showWidgetBorder",{get:$util.oneOfGetter(i=["showWidgetBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkColor",{get:$util.oneOfGetter(i=["linkColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_linkUnderline",{get:$util.oneOfGetter(i=["linkUnderline"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontSize",{get:$util.oneOfGetter(i=["baseFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_baseFontWeight",{get:$util.oneOfGetter(i=["baseFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontWeight",{get:$util.oneOfGetter(i=["codeFontWeight"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeFontSize",{get:$util.oneOfGetter(i=["codeFontSize"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_showSidebarBorder",{get:$util.oneOfGetter(i=["showSidebarBorder"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeTextColor",{get:$util.oneOfGetter(i=["codeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_codeBackgroundColor",{get:$util.oneOfGetter(i=["codeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dataframeHeaderBackgroundColor",{get:$util.oneOfGetter(i=["dataframeHeaderBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redColor",{get:$util.oneOfGetter(i=["redColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeColor",{get:$util.oneOfGetter(i=["orangeColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowColor",{get:$util.oneOfGetter(i=["yellowColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueColor",{get:$util.oneOfGetter(i=["blueColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenColor",{get:$util.oneOfGetter(i=["greenColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetColor",{get:$util.oneOfGetter(i=["violetColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayColor",{get:$util.oneOfGetter(i=["grayColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redBackgroundColor",{get:$util.oneOfGetter(i=["redBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeBackgroundColor",{get:$util.oneOfGetter(i=["orangeBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowBackgroundColor",{get:$util.oneOfGetter(i=["yellowBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueBackgroundColor",{get:$util.oneOfGetter(i=["blueBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenBackgroundColor",{get:$util.oneOfGetter(i=["greenBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetBackgroundColor",{get:$util.oneOfGetter(i=["violetBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayBackgroundColor",{get:$util.oneOfGetter(i=["grayBackgroundColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_redTextColor",{get:$util.oneOfGetter(i=["redTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_orangeTextColor",{get:$util.oneOfGetter(i=["orangeTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_yellowTextColor",{get:$util.oneOfGetter(i=["yellowTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_blueTextColor",{get:$util.oneOfGetter(i=["blueTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_greenTextColor",{get:$util.oneOfGetter(i=["greenTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_violetTextColor",{get:$util.oneOfGetter(i=["violetTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_grayTextColor",{get:$util.oneOfGetter(i=["grayTextColor"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_sidebar",{get:$util.oneOfGetter(i=["sidebar"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_light",{get:$util.oneOfGetter(i=["light"]),set:$util.oneOfSetter(i)}),Object.defineProperty(n.prototype,"_dark",{get:$util.oneOfGetter(i=["dark"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){if(o||(o=$Writer.create()),t.primaryColor!=null&&Object.hasOwnProperty.call(t,"primaryColor")&&o.uint32(10).string(t.primaryColor),t.secondaryBackgroundColor!=null&&Object.hasOwnProperty.call(t,"secondaryBackgroundColor")&&o.uint32(18).string(t.secondaryBackgroundColor),t.backgroundColor!=null&&Object.hasOwnProperty.call(t,"backgroundColor")&&o.uint32(26).string(t.backgroundColor),t.textColor!=null&&Object.hasOwnProperty.call(t,"textColor")&&o.uint32(34).string(t.textColor),t.font!=null&&Object.hasOwnProperty.call(t,"font")&&o.uint32(40).int32(t.font),t.base!=null&&Object.hasOwnProperty.call(t,"base")&&o.uint32(48).int32(t.base),t.widgetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"widgetBackgroundColor")&&o.uint32(58).string(t.widgetBackgroundColor),t.widgetBorderColor!=null&&Object.hasOwnProperty.call(t,"widgetBorderColor")&&o.uint32(66).string(t.widgetBorderColor),t.radii!=null&&Object.hasOwnProperty.call(t,"radii")&&$root.Radii.encode(t.radii,o.uint32(74).fork()).ldelim(),t.headingFont!=null&&Object.hasOwnProperty.call(t,"headingFont")&&o.uint32(98).string(t.headingFont),t.bodyFont!=null&&Object.hasOwnProperty.call(t,"bodyFont")&&o.uint32(106).string(t.bodyFont),t.codeFont!=null&&Object.hasOwnProperty.call(t,"codeFont")&&o.uint32(114).string(t.codeFont),t.fontFaces!=null&&t.fontFaces.length)for(let d=0;d<t.fontFaces.length;++d)$root.FontFace.encode(t.fontFaces[d],o.uint32(122).fork()).ldelim();if(t.fontSizes!=null&&Object.hasOwnProperty.call(t,"fontSizes")&&$root.FontSizes.encode(t.fontSizes,o.uint32(130).fork()).ldelim(),t.skeletonBackgroundColor!=null&&Object.hasOwnProperty.call(t,"skeletonBackgroundColor")&&o.uint32(138).string(t.skeletonBackgroundColor),t.baseRadius!=null&&Object.hasOwnProperty.call(t,"baseRadius")&&o.uint32(146).string(t.baseRadius),t.borderColor!=null&&Object.hasOwnProperty.call(t,"borderColor")&&o.uint32(154).string(t.borderColor),t.showWidgetBorder!=null&&Object.hasOwnProperty.call(t,"showWidgetBorder")&&o.uint32(160).bool(t.showWidgetBorder),t.linkColor!=null&&Object.hasOwnProperty.call(t,"linkColor")&&o.uint32(170).string(t.linkColor),t.baseFontSize!=null&&Object.hasOwnProperty.call(t,"baseFontSize")&&o.uint32(176).int32(t.baseFontSize),t.showSidebarBorder!=null&&Object.hasOwnProperty.call(t,"showSidebarBorder")&&o.uint32(184).bool(t.showSidebarBorder),t.sidebar!=null&&Object.hasOwnProperty.call(t,"sidebar")&&$root.CustomThemeConfig.encode(t.sidebar,o.uint32(194).fork()).ldelim(),t.codeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"codeBackgroundColor")&&o.uint32(202).string(t.codeBackgroundColor),t.buttonRadius!=null&&Object.hasOwnProperty.call(t,"buttonRadius")&&o.uint32(210).string(t.buttonRadius),t.dataframeBorderColor!=null&&Object.hasOwnProperty.call(t,"dataframeBorderColor")&&o.uint32(218).string(t.dataframeBorderColor),t.codeFontSize!=null&&Object.hasOwnProperty.call(t,"codeFontSize")&&o.uint32(226).string(t.codeFontSize),t.linkUnderline!=null&&Object.hasOwnProperty.call(t,"linkUnderline")&&o.uint32(232).bool(t.linkUnderline),t.baseFontWeight!=null&&Object.hasOwnProperty.call(t,"baseFontWeight")&&o.uint32(240).int32(t.baseFontWeight),t.dataframeHeaderBackgroundColor!=null&&Object.hasOwnProperty.call(t,"dataframeHeaderBackgroundColor")&&o.uint32(250).string(t.dataframeHeaderBackgroundColor),t.codeFontWeight!=null&&Object.hasOwnProperty.call(t,"codeFontWeight")&&o.uint32(256).int32(t.codeFontWeight),t.chartCategoricalColors!=null&&t.chartCategoricalColors.length)for(let d=0;d<t.chartCategoricalColors.length;++d)o.uint32(266).string(t.chartCategoricalColors[d]);if(t.headingFontWeights!=null&&t.headingFontWeights.length){o.uint32(274).fork();for(let d=0;d<t.headingFontWeights.length;++d)o.int32(t.headingFontWeights[d]);o.ldelim()}if(t.headingFontSizes!=null&&t.headingFontSizes.length)for(let d=0;d<t.headingFontSizes.length;++d)o.uint32(282).string(t.headingFontSizes[d]);if(t.chartSequentialColors!=null&&t.chartSequentialColors.length)for(let d=0;d<t.chartSequentialColors.length;++d)o.uint32(290).string(t.chartSequentialColors[d]);if(t.fontSources!=null&&t.fontSources.length)for(let d=0;d<t.fontSources.length;++d)$root.FontSource.encode(t.fontSources[d],o.uint32(298).fork()).ldelim();if(t.redColor!=null&&Object.hasOwnProperty.call(t,"redColor")&&o.uint32(306).string(t.redColor),t.orangeColor!=null&&Object.hasOwnProperty.call(t,"orangeColor")&&o.uint32(314).string(t.orangeColor),t.yellowColor!=null&&Object.hasOwnProperty.call(t,"yellowColor")&&o.uint32(322).string(t.yellowColor),t.blueColor!=null&&Object.hasOwnProperty.call(t,"blueColor")&&o.uint32(330).string(t.blueColor),t.greenColor!=null&&Object.hasOwnProperty.call(t,"greenColor")&&o.uint32(338).string(t.greenColor),t.violetColor!=null&&Object.hasOwnProperty.call(t,"violetColor")&&o.uint32(346).string(t.violetColor),t.grayColor!=null&&Object.hasOwnProperty.call(t,"grayColor")&&o.uint32(354).string(t.grayColor),t.redBackgroundColor!=null&&Object.hasOwnProperty.call(t,"redBackgroundColor")&&o.uint32(362).string(t.redBackgroundColor),t.orangeBackgroundColor!=null&&Object.hasOwnProperty.call(t,"orangeBackgroundColor")&&o.uint32(370).string(t.orangeBackgroundColor),t.yellowBackgroundColor!=null&&Object.hasOwnProperty.call(t,"yellowBackgroundColor")&&o.uint32(378).string(t.yellowBackgroundColor),t.blueBackgroundColor!=null&&Object.hasOwnProperty.call(t,"blueBackgroundColor")&&o.uint32(386).string(t.blueBackgroundColor),t.greenBackgroundColor!=null&&Object.hasOwnProperty.call(t,"greenBackgroundColor")&&o.uint32(394).string(t.greenBackgroundColor),t.violetBackgroundColor!=null&&Object.hasOwnProperty.call(t,"violetBackgroundColor")&&o.uint32(402).string(t.violetBackgroundColor),t.grayBackgroundColor!=null&&Object.hasOwnProperty.call(t,"grayBackgroundColor")&&o.uint32(410).string(t.grayBackgroundColor),t.redTextColor!=null&&Object.hasOwnProperty.call(t,"redTextColor")&&o.uint32(418).string(t.redTextColor),t.orangeTextColor!=null&&Object.hasOwnProperty.call(t,"orangeTextColor")&&o.uint32(426).string(t.orangeTextColor),t.yellowTextColor!=null&&Object.hasOwnProperty.call(t,"yellowTextColor")&&o.uint32(434).string(t.yellowTextColor),t.blueTextColor!=null&&Object.hasOwnProperty.call(t,"blueTextColor")&&o.uint32(442).string(t.blueTextColor),t.greenTextColor!=null&&Object.hasOwnProperty.call(t,"greenTextColor")&&o.uint32(450).string(t.greenTextColor),t.violetTextColor!=null&&Object.hasOwnProperty.call(t,"violetTextColor")&&o.uint32(458).string(t.violetTextColor),t.grayTextColor!=null&&Object.hasOwnProperty.call(t,"grayTextColor")&&o.uint32(466).string(t.grayTextColor),t.codeTextColor!=null&&Object.hasOwnProperty.call(t,"codeTextColor")&&o.uint32(474).string(t.codeTextColor),t.light!=null&&Object.hasOwnProperty.call(t,"light")&&$root.CustomThemeConfig.encode(t.light,o.uint32(482).fork()).ldelim(),t.dark!=null&&Object.hasOwnProperty.call(t,"dark")&&$root.CustomThemeConfig.encode(t.dark,o.uint32(490).fork()).ldelim(),t.chartDivergingColors!=null&&t.chartDivergingColors.length)for(let d=0;d<t.chartDivergingColors.length;++d)o.uint32(498).string(t.chartDivergingColors[d]);return o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.CustomThemeConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.primaryColor=t.string();break}case 2:{h.secondaryBackgroundColor=t.string();break}case 3:{h.backgroundColor=t.string();break}case 4:{h.textColor=t.string();break}case 5:{h.font=t.int32();break}case 6:{h.base=t.int32();break}case 7:{h.widgetBackgroundColor=t.string();break}case 8:{h.widgetBorderColor=t.string();break}case 9:{h.radii=$root.Radii.decode(t,t.uint32());break}case 12:{h.headingFont=t.string();break}case 13:{h.bodyFont=t.string();break}case 14:{h.codeFont=t.string();break}case 15:{h.fontFaces&&h.fontFaces.length||(h.fontFaces=[]),h.fontFaces.push($root.FontFace.decode(t,t.uint32()));break}case 37:{h.fontSources&&h.fontSources.length||(h.fontSources=[]),h.fontSources.push($root.FontSource.decode(t,t.uint32()));break}case 16:{h.fontSizes=$root.FontSizes.decode(t,t.uint32());break}case 17:{h.skeletonBackgroundColor=t.string();break}case 18:{h.baseRadius=t.string();break}case 26:{h.buttonRadius=t.string();break}case 19:{h.borderColor=t.string();break}case 27:{h.dataframeBorderColor=t.string();break}case 20:{h.showWidgetBorder=t.bool();break}case 21:{h.linkColor=t.string();break}case 29:{h.linkUnderline=t.bool();break}case 22:{h.baseFontSize=t.int32();break}case 30:{h.baseFontWeight=t.int32();break}case 32:{h.codeFontWeight=t.int32();break}case 28:{h.codeFontSize=t.string();break}case 35:{h.headingFontSizes&&h.headingFontSizes.length||(h.headingFontSizes=[]),h.headingFontSizes.push(t.string());break}case 34:{if(h.headingFontWeights&&h.headingFontWeights.length||(h.headingFontWeights=[]),(y&7)===2){let $=t.uint32()+t.pos;for(;t.pos<$;)h.headingFontWeights.push(t.int32())}else h.headingFontWeights.push(t.int32());break}case 23:{h.showSidebarBorder=t.bool();break}case 59:{h.codeTextColor=t.string();break}case 25:{h.codeBackgroundColor=t.string();break}case 31:{h.dataframeHeaderBackgroundColor=t.string();break}case 33:{h.chartCategoricalColors&&h.chartCategoricalColors.length||(h.chartCategoricalColors=[]),h.chartCategoricalColors.push(t.string());break}case 36:{h.chartSequentialColors&&h.chartSequentialColors.length||(h.chartSequentialColors=[]),h.chartSequentialColors.push(t.string());break}case 62:{h.chartDivergingColors&&h.chartDivergingColors.length||(h.chartDivergingColors=[]),h.chartDivergingColors.push(t.string());break}case 38:{h.redColor=t.string();break}case 39:{h.orangeColor=t.string();break}case 40:{h.yellowColor=t.string();break}case 41:{h.blueColor=t.string();break}case 42:{h.greenColor=t.string();break}case 43:{h.violetColor=t.string();break}case 44:{h.grayColor=t.string();break}case 45:{h.redBackgroundColor=t.string();break}case 46:{h.orangeBackgroundColor=t.string();break}case 47:{h.yellowBackgroundColor=t.string();break}case 48:{h.blueBackgroundColor=t.string();break}case 49:{h.greenBackgroundColor=t.string();break}case 50:{h.violetBackgroundColor=t.string();break}case 51:{h.grayBackgroundColor=t.string();break}case 52:{h.redTextColor=t.string();break}case 53:{h.orangeTextColor=t.string();break}case 54:{h.yellowTextColor=t.string();break}case 55:{h.blueTextColor=t.string();break}case 56:{h.greenTextColor=t.string();break}case 57:{h.violetTextColor=t.string();break}case 58:{h.grayTextColor=t.string();break}case 24:{h.sidebar=$root.CustomThemeConfig.decode(t,t.uint32());break}case 60:{h.light=$root.CustomThemeConfig.decode(t,t.uint32());break}case 61:{h.dark=$root.CustomThemeConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.CustomThemeConfig)return t;let o=new $root.CustomThemeConfig;switch(t.primaryColor!=null&&(o.primaryColor=String(t.primaryColor)),t.secondaryBackgroundColor!=null&&(o.secondaryBackgroundColor=String(t.secondaryBackgroundColor)),t.backgroundColor!=null&&(o.backgroundColor=String(t.backgroundColor)),t.textColor!=null&&(o.textColor=String(t.textColor)),t.font){default:if(typeof t.font=="number"){o.font=t.font;break}break;case"SANS_SERIF":case 0:o.font=0;break;case"SERIF":case 1:o.font=1;break;case"MONOSPACE":case 2:o.font=2;break}switch(t.base){default:if(typeof t.base=="number"){o.base=t.base;break}break;case"LIGHT":case 0:o.base=0;break;case"DARK":case 1:o.base=1;break}if(t.widgetBackgroundColor!=null&&(o.widgetBackgroundColor=String(t.widgetBackgroundColor)),t.widgetBorderColor!=null&&(o.widgetBorderColor=String(t.widgetBorderColor)),t.radii!=null){if(typeof t.radii!="object")throw TypeError(".CustomThemeConfig.radii: object expected");o.radii=$root.Radii.fromObject(t.radii)}if(t.headingFont!=null&&(o.headingFont=String(t.headingFont)),t.bodyFont!=null&&(o.bodyFont=String(t.bodyFont)),t.codeFont!=null&&(o.codeFont=String(t.codeFont)),t.fontFaces){if(!Array.isArray(t.fontFaces))throw TypeError(".CustomThemeConfig.fontFaces: array expected");o.fontFaces=[];for(let d=0;d<t.fontFaces.length;++d){if(typeof t.fontFaces[d]!="object")throw TypeError(".CustomThemeConfig.fontFaces: object expected");o.fontFaces[d]=$root.FontFace.fromObject(t.fontFaces[d])}}if(t.fontSources){if(!Array.isArray(t.fontSources))throw TypeError(".CustomThemeConfig.fontSources: array expected");o.fontSources=[];for(let d=0;d<t.fontSources.length;++d){if(typeof t.fontSources[d]!="object")throw TypeError(".CustomThemeConfig.fontSources: object expected");o.fontSources[d]=$root.FontSource.fromObject(t.fontSources[d])}}if(t.fontSizes!=null){if(typeof t.fontSizes!="object")throw TypeError(".CustomThemeConfig.fontSizes: object expected");o.fontSizes=$root.FontSizes.fromObject(t.fontSizes)}if(t.skeletonBackgroundColor!=null&&(o.skeletonBackgroundColor=String(t.skeletonBackgroundColor)),t.baseRadius!=null&&(o.baseRadius=String(t.baseRadius)),t.buttonRadius!=null&&(o.buttonRadius=String(t.buttonRadius)),t.borderColor!=null&&(o.borderColor=String(t.borderColor)),t.dataframeBorderColor!=null&&(o.dataframeBorderColor=String(t.dataframeBorderColor)),t.showWidgetBorder!=null&&(o.showWidgetBorder=!!t.showWidgetBorder),t.linkColor!=null&&(o.linkColor=String(t.linkColor)),t.linkUnderline!=null&&(o.linkUnderline=!!t.linkUnderline),t.baseFontSize!=null&&(o.baseFontSize=t.baseFontSize|0),t.baseFontWeight!=null&&(o.baseFontWeight=t.baseFontWeight|0),t.codeFontWeight!=null&&(o.codeFontWeight=t.codeFontWeight|0),t.codeFontSize!=null&&(o.codeFontSize=String(t.codeFontSize)),t.headingFontSizes){if(!Array.isArray(t.headingFontSizes))throw TypeError(".CustomThemeConfig.headingFontSizes: array expected");o.headingFontSizes=[];for(let d=0;d<t.headingFontSizes.length;++d)o.headingFontSizes[d]=String(t.headingFontSizes[d])}if(t.headingFontWeights){if(!Array.isArray(t.headingFontWeights))throw TypeError(".CustomThemeConfig.headingFontWeights: array expected");o.headingFontWeights=[];for(let d=0;d<t.headingFontWeights.length;++d)o.headingFontWeights[d]=t.headingFontWeights[d]|0}if(t.showSidebarBorder!=null&&(o.showSidebarBorder=!!t.showSidebarBorder),t.codeTextColor!=null&&(o.codeTextColor=String(t.codeTextColor)),t.codeBackgroundColor!=null&&(o.codeBackgroundColor=String(t.codeBackgroundColor)),t.dataframeHeaderBackgroundColor!=null&&(o.dataframeHeaderBackgroundColor=String(t.dataframeHeaderBackgroundColor)),t.chartCategoricalColors){if(!Array.isArray(t.chartCategoricalColors))throw TypeError(".CustomThemeConfig.chartCategoricalColors: array expected");o.chartCategoricalColors=[];for(let d=0;d<t.chartCategoricalColors.length;++d)o.chartCategoricalColors[d]=String(t.chartCategoricalColors[d])}if(t.chartSequentialColors){if(!Array.isArray(t.chartSequentialColors))throw TypeError(".CustomThemeConfig.chartSequentialColors: array expected");o.chartSequentialColors=[];for(let d=0;d<t.chartSequentialColors.length;++d)o.chartSequentialColors[d]=String(t.chartSequentialColors[d])}if(t.chartDivergingColors){if(!Array.isArray(t.chartDivergingColors))throw TypeError(".CustomThemeConfig.chartDivergingColors: array expected");o.chartDivergingColors=[];for(let d=0;d<t.chartDivergingColors.length;++d)o.chartDivergingColors[d]=String(t.chartDivergingColors[d])}if(t.redColor!=null&&(o.redColor=String(t.redColor)),t.orangeColor!=null&&(o.orangeColor=String(t.orangeColor)),t.yellowColor!=null&&(o.yellowColor=String(t.yellowColor)),t.blueColor!=null&&(o.blueColor=String(t.blueColor)),t.greenColor!=null&&(o.greenColor=String(t.greenColor)),t.violetColor!=null&&(o.violetColor=String(t.violetColor)),t.grayColor!=null&&(o.grayColor=String(t.grayColor)),t.redBackgroundColor!=null&&(o.redBackgroundColor=String(t.redBackgroundColor)),t.orangeBackgroundColor!=null&&(o.orangeBackgroundColor=String(t.orangeBackgroundColor)),t.yellowBackgroundColor!=null&&(o.yellowBackgroundColor=String(t.yellowBackgroundColor)),t.blueBackgroundColor!=null&&(o.blueBackgroundColor=String(t.blueBackgroundColor)),t.greenBackgroundColor!=null&&(o.greenBackgroundColor=String(t.greenBackgroundColor)),t.violetBackgroundColor!=null&&(o.violetBackgroundColor=String(t.violetBackgroundColor)),t.grayBackgroundColor!=null&&(o.grayBackgroundColor=String(t.grayBackgroundColor)),t.redTextColor!=null&&(o.redTextColor=String(t.redTextColor)),t.orangeTextColor!=null&&(o.orangeTextColor=String(t.orangeTextColor)),t.yellowTextColor!=null&&(o.yellowTextColor=String(t.yellowTextColor)),t.blueTextColor!=null&&(o.blueTextColor=String(t.blueTextColor)),t.greenTextColor!=null&&(o.greenTextColor=String(t.greenTextColor)),t.violetTextColor!=null&&(o.violetTextColor=String(t.violetTextColor)),t.grayTextColor!=null&&(o.grayTextColor=String(t.grayTextColor)),t.sidebar!=null){if(typeof t.sidebar!="object")throw TypeError(".CustomThemeConfig.sidebar: object expected");o.sidebar=$root.CustomThemeConfig.fromObject(t.sidebar)}if(t.light!=null){if(typeof t.light!="object")throw TypeError(".CustomThemeConfig.light: object expected");o.light=$root.CustomThemeConfig.fromObject(t.light)}if(t.dark!=null){if(typeof t.dark!="object")throw TypeError(".CustomThemeConfig.dark: object expected");o.dark=$root.CustomThemeConfig.fromObject(t.dark)}return o},n.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.fontFaces=[],d.chartCategoricalColors=[],d.headingFontWeights=[],d.headingFontSizes=[],d.chartSequentialColors=[],d.fontSources=[],d.chartDivergingColors=[]),o.defaults&&(d.primaryColor="",d.secondaryBackgroundColor="",d.backgroundColor="",d.textColor="",d.font=o.enums===String?"SANS_SERIF":0,d.base=o.enums===String?"LIGHT":0,d.widgetBackgroundColor="",d.widgetBorderColor="",d.radii=null,d.headingFont="",d.bodyFont="",d.codeFont="",d.fontSizes=null,d.skeletonBackgroundColor=""),t.primaryColor!=null&&t.hasOwnProperty("primaryColor")&&(d.primaryColor=t.primaryColor),t.secondaryBackgroundColor!=null&&t.hasOwnProperty("secondaryBackgroundColor")&&(d.secondaryBackgroundColor=t.secondaryBackgroundColor),t.backgroundColor!=null&&t.hasOwnProperty("backgroundColor")&&(d.backgroundColor=t.backgroundColor),t.textColor!=null&&t.hasOwnProperty("textColor")&&(d.textColor=t.textColor),t.font!=null&&t.hasOwnProperty("font")&&(d.font=o.enums===String?$root.CustomThemeConfig.FontFamily[t.font]===void 0?t.font:$root.CustomThemeConfig.FontFamily[t.font]:t.font),t.base!=null&&t.hasOwnProperty("base")&&(d.base=o.enums===String?$root.CustomThemeConfig.BaseTheme[t.base]===void 0?t.base:$root.CustomThemeConfig.BaseTheme[t.base]:t.base),t.widgetBackgroundColor!=null&&t.hasOwnProperty("widgetBackgroundColor")&&(d.widgetBackgroundColor=t.widgetBackgroundColor),t.widgetBorderColor!=null&&t.hasOwnProperty("widgetBorderColor")&&(d.widgetBorderColor=t.widgetBorderColor),t.radii!=null&&t.hasOwnProperty("radii")&&(d.radii=$root.Radii.toObject(t.radii,o)),t.headingFont!=null&&t.hasOwnProperty("headingFont")&&(d.headingFont=t.headingFont),t.bodyFont!=null&&t.hasOwnProperty("bodyFont")&&(d.bodyFont=t.bodyFont),t.codeFont!=null&&t.hasOwnProperty("codeFont")&&(d.codeFont=t.codeFont),t.fontFaces&&t.fontFaces.length){d.fontFaces=[];for(let p=0;p<t.fontFaces.length;++p)d.fontFaces[p]=$root.FontFace.toObject(t.fontFaces[p],o)}if(t.fontSizes!=null&&t.hasOwnProperty("fontSizes")&&(d.fontSizes=$root.FontSizes.toObject(t.fontSizes,o)),t.skeletonBackgroundColor!=null&&t.hasOwnProperty("skeletonBackgroundColor")&&(d.skeletonBackgroundColor=t.skeletonBackgroundColor),t.baseRadius!=null&&t.hasOwnProperty("baseRadius")&&(d.baseRadius=t.baseRadius,o.oneofs&&(d._baseRadius="baseRadius")),t.borderColor!=null&&t.hasOwnProperty("borderColor")&&(d.borderColor=t.borderColor,o.oneofs&&(d._borderColor="borderColor")),t.showWidgetBorder!=null&&t.hasOwnProperty("showWidgetBorder")&&(d.showWidgetBorder=t.showWidgetBorder,o.oneofs&&(d._showWidgetBorder="showWidgetBorder")),t.linkColor!=null&&t.hasOwnProperty("linkColor")&&(d.linkColor=t.linkColor,o.oneofs&&(d._linkColor="linkColor")),t.baseFontSize!=null&&t.hasOwnProperty("baseFontSize")&&(d.baseFontSize=t.baseFontSize,o.oneofs&&(d._baseFontSize="baseFontSize")),t.showSidebarBorder!=null&&t.hasOwnProperty("showSidebarBorder")&&(d.showSidebarBorder=t.showSidebarBorder,o.oneofs&&(d._showSidebarBorder="showSidebarBorder")),t.sidebar!=null&&t.hasOwnProperty("sidebar")&&(d.sidebar=$root.CustomThemeConfig.toObject(t.sidebar,o),o.oneofs&&(d._sidebar="sidebar")),t.codeBackgroundColor!=null&&t.hasOwnProperty("codeBackgroundColor")&&(d.codeBackgroundColor=t.codeBackgroundColor,o.oneofs&&(d._codeBackgroundColor="codeBackgroundColor")),t.buttonRadius!=null&&t.hasOwnProperty("buttonRadius")&&(d.buttonRadius=t.buttonRadius,o.oneofs&&(d._buttonRadius="buttonRadius")),t.dataframeBorderColor!=null&&t.hasOwnProperty("dataframeBorderColor")&&(d.dataframeBorderColor=t.dataframeBorderColor,o.oneofs&&(d._dataframeBorderColor="dataframeBorderColor")),t.codeFontSize!=null&&t.hasOwnProperty("codeFontSize")&&(d.codeFontSize=t.codeFontSize,o.oneofs&&(d._codeFontSize="codeFontSize")),t.linkUnderline!=null&&t.hasOwnProperty("linkUnderline")&&(d.linkUnderline=t.linkUnderline,o.oneofs&&(d._linkUnderline="linkUnderline")),t.baseFontWeight!=null&&t.hasOwnProperty("baseFontWeight")&&(d.baseFontWeight=t.baseFontWeight,o.oneofs&&(d._baseFontWeight="baseFontWeight")),t.dataframeHeaderBackgroundColor!=null&&t.hasOwnProperty("dataframeHeaderBackgroundColor")&&(d.dataframeHeaderBackgroundColor=t.dataframeHeaderBackgroundColor,o.oneofs&&(d._dataframeHeaderBackgroundColor="dataframeHeaderBackgroundColor")),t.codeFontWeight!=null&&t.hasOwnProperty("codeFontWeight")&&(d.codeFontWeight=t.codeFontWeight,o.oneofs&&(d._codeFontWeight="codeFontWeight")),t.chartCategoricalColors&&t.chartCategoricalColors.length){d.chartCategoricalColors=[];for(let p=0;p<t.chartCategoricalColors.length;++p)d.chartCategoricalColors[p]=t.chartCategoricalColors[p]}if(t.headingFontWeights&&t.headingFontWeights.length){d.headingFontWeights=[];for(let p=0;p<t.headingFontWeights.length;++p)d.headingFontWeights[p]=t.headingFontWeights[p]}if(t.headingFontSizes&&t.headingFontSizes.length){d.headingFontSizes=[];for(let p=0;p<t.headingFontSizes.length;++p)d.headingFontSizes[p]=t.headingFontSizes[p]}if(t.chartSequentialColors&&t.chartSequentialColors.length){d.chartSequentialColors=[];for(let p=0;p<t.chartSequentialColors.length;++p)d.chartSequentialColors[p]=t.chartSequentialColors[p]}if(t.fontSources&&t.fontSources.length){d.fontSources=[];for(let p=0;p<t.fontSources.length;++p)d.fontSources[p]=$root.FontSource.toObject(t.fontSources[p],o)}if(t.redColor!=null&&t.hasOwnProperty("redColor")&&(d.redColor=t.redColor,o.oneofs&&(d._redColor="redColor")),t.orangeColor!=null&&t.hasOwnProperty("orangeColor")&&(d.orangeColor=t.orangeColor,o.oneofs&&(d._orangeColor="orangeColor")),t.yellowColor!=null&&t.hasOwnProperty("yellowColor")&&(d.yellowColor=t.yellowColor,o.oneofs&&(d._yellowColor="yellowColor")),t.blueColor!=null&&t.hasOwnProperty("blueColor")&&(d.blueColor=t.blueColor,o.oneofs&&(d._blueColor="blueColor")),t.greenColor!=null&&t.hasOwnProperty("greenColor")&&(d.greenColor=t.greenColor,o.oneofs&&(d._greenColor="greenColor")),t.violetColor!=null&&t.hasOwnProperty("violetColor")&&(d.violetColor=t.violetColor,o.oneofs&&(d._violetColor="violetColor")),t.grayColor!=null&&t.hasOwnProperty("grayColor")&&(d.grayColor=t.grayColor,o.oneofs&&(d._grayColor="grayColor")),t.redBackgroundColor!=null&&t.hasOwnProperty("redBackgroundColor")&&(d.redBackgroundColor=t.redBackgroundColor,o.oneofs&&(d._redBackgroundColor="redBackgroundColor")),t.orangeBackgroundColor!=null&&t.hasOwnProperty("orangeBackgroundColor")&&(d.orangeBackgroundColor=t.orangeBackgroundColor,o.oneofs&&(d._orangeBackgroundColor="orangeBackgroundColor")),t.yellowBackgroundColor!=null&&t.hasOwnProperty("yellowBackgroundColor")&&(d.yellowBackgroundColor=t.yellowBackgroundColor,o.oneofs&&(d._yellowBackgroundColor="yellowBackgroundColor")),t.blueBackgroundColor!=null&&t.hasOwnProperty("blueBackgroundColor")&&(d.blueBackgroundColor=t.blueBackgroundColor,o.oneofs&&(d._blueBackgroundColor="blueBackgroundColor")),t.greenBackgroundColor!=null&&t.hasOwnProperty("greenBackgroundColor")&&(d.greenBackgroundColor=t.greenBackgroundColor,o.oneofs&&(d._greenBackgroundColor="greenBackgroundColor")),t.violetBackgroundColor!=null&&t.hasOwnProperty("violetBackgroundColor")&&(d.violetBackgroundColor=t.violetBackgroundColor,o.oneofs&&(d._violetBackgroundColor="violetBackgroundColor")),t.grayBackgroundColor!=null&&t.hasOwnProperty("grayBackgroundColor")&&(d.grayBackgroundColor=t.grayBackgroundColor,o.oneofs&&(d._grayBackgroundColor="grayBackgroundColor")),t.redTextColor!=null&&t.hasOwnProperty("redTextColor")&&(d.redTextColor=t.redTextColor,o.oneofs&&(d._redTextColor="redTextColor")),t.orangeTextColor!=null&&t.hasOwnProperty("orangeTextColor")&&(d.orangeTextColor=t.orangeTextColor,o.oneofs&&(d._orangeTextColor="orangeTextColor")),t.yellowTextColor!=null&&t.hasOwnProperty("yellowTextColor")&&(d.yellowTextColor=t.yellowTextColor,o.oneofs&&(d._yellowTextColor="yellowTextColor")),t.blueTextColor!=null&&t.hasOwnProperty("blueTextColor")&&(d.blueTextColor=t.blueTextColor,o.oneofs&&(d._blueTextColor="blueTextColor")),t.greenTextColor!=null&&t.hasOwnProperty("greenTextColor")&&(d.greenTextColor=t.greenTextColor,o.oneofs&&(d._greenTextColor="greenTextColor")),t.violetTextColor!=null&&t.hasOwnProperty("violetTextColor")&&(d.violetTextColor=t.violetTextColor,o.oneofs&&(d._violetTextColor="violetTextColor")),t.grayTextColor!=null&&t.hasOwnProperty("grayTextColor")&&(d.grayTextColor=t.grayTextColor,o.oneofs&&(d._grayTextColor="grayTextColor")),t.codeTextColor!=null&&t.hasOwnProperty("codeTextColor")&&(d.codeTextColor=t.codeTextColor,o.oneofs&&(d._codeTextColor="codeTextColor")),t.light!=null&&t.hasOwnProperty("light")&&(d.light=$root.CustomThemeConfig.toObject(t.light,o),o.oneofs&&(d._light="light")),t.dark!=null&&t.hasOwnProperty("dark")&&(d.dark=$root.CustomThemeConfig.toObject(t.dark,o),o.oneofs&&(d._dark="dark")),t.chartDivergingColors&&t.chartDivergingColors.length){d.chartDivergingColors=[];for(let p=0;p<t.chartDivergingColors.length;++p)d.chartDivergingColors[p]=t.chartDivergingColors[p]}return d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/CustomThemeConfig"},n.BaseTheme=(function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t})(),n.FontFamily=(function(){const e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t})(),n})();$root.FontFace=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.url="",n.prototype.family="",n.prototype.weight=0,n.prototype.weightRange="",n.prototype.style="",n.prototype.unicodeRange="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.url!=null&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),e.family!=null&&Object.hasOwnProperty.call(e,"family")&&t.uint32(18).string(e.family),e.weight!=null&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(24).int32(e.weight),e.style!=null&&Object.hasOwnProperty.call(e,"style")&&t.uint32(34).string(e.style),e.weightRange!=null&&Object.hasOwnProperty.call(e,"weightRange")&&t.uint32(42).string(e.weightRange),e.unicodeRange!=null&&Object.hasOwnProperty.call(e,"unicodeRange")&&t.uint32(50).string(e.unicodeRange),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontFace;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.url=e.string();break}case 2:{p.family=e.string();break}case 3:{p.weight=e.int32();break}case 5:{p.weightRange=e.string();break}case 4:{p.style=e.string();break}case 6:{p.unicodeRange=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontFace)return e;let t=new $root.FontFace;return e.url!=null&&(t.url=String(e.url)),e.family!=null&&(t.family=String(e.family)),e.weight!=null&&(t.weight=e.weight|0),e.weightRange!=null&&(t.weightRange=String(e.weightRange)),e.style!=null&&(t.style=String(e.style)),e.unicodeRange!=null&&(t.unicodeRange=String(e.unicodeRange)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.url="",o.family="",o.weight=0,o.style="",o.weightRange="",o.unicodeRange=""),e.url!=null&&e.hasOwnProperty("url")&&(o.url=e.url),e.family!=null&&e.hasOwnProperty("family")&&(o.family=e.family),e.weight!=null&&e.hasOwnProperty("weight")&&(o.weight=e.weight),e.style!=null&&e.hasOwnProperty("style")&&(o.style=e.style),e.weightRange!=null&&e.hasOwnProperty("weightRange")&&(o.weightRange=e.weightRange),e.unicodeRange!=null&&e.hasOwnProperty("unicodeRange")&&(o.unicodeRange=e.unicodeRange),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontFace"},n})();$root.FontSource=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.configName="",n.prototype.sourceUrl="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.configName!=null&&Object.hasOwnProperty.call(e,"configName")&&t.uint32(10).string(e.configName),e.sourceUrl!=null&&Object.hasOwnProperty.call(e,"sourceUrl")&&t.uint32(18).string(e.sourceUrl),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSource;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.configName=e.string();break}case 2:{p.sourceUrl=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSource)return e;let t=new $root.FontSource;return e.configName!=null&&(t.configName=String(e.configName)),e.sourceUrl!=null&&(t.sourceUrl=String(e.sourceUrl)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.configName="",o.sourceUrl=""),e.configName!=null&&e.hasOwnProperty("configName")&&(o.configName=e.configName),e.sourceUrl!=null&&e.hasOwnProperty("sourceUrl")&&(o.sourceUrl=e.sourceUrl),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSource"},n})();$root.Radii=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.baseWidgetRadius=0,n.prototype.checkboxRadius=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.baseWidgetRadius!=null&&Object.hasOwnProperty.call(e,"baseWidgetRadius")&&t.uint32(8).int32(e.baseWidgetRadius),e.checkboxRadius!=null&&Object.hasOwnProperty.call(e,"checkboxRadius")&&t.uint32(16).int32(e.checkboxRadius),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Radii;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.baseWidgetRadius=e.int32();break}case 2:{p.checkboxRadius=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Radii)return e;let t=new $root.Radii;return e.baseWidgetRadius!=null&&(t.baseWidgetRadius=e.baseWidgetRadius|0),e.checkboxRadius!=null&&(t.checkboxRadius=e.checkboxRadius|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.baseWidgetRadius=0,o.checkboxRadius=0),e.baseWidgetRadius!=null&&e.hasOwnProperty("baseWidgetRadius")&&(o.baseWidgetRadius=e.baseWidgetRadius),e.checkboxRadius!=null&&e.hasOwnProperty("checkboxRadius")&&(o.checkboxRadius=e.checkboxRadius),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Radii"},n})();$root.FontSizes=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.tinyFontSize=0,n.prototype.smallFontSize=0,n.prototype.baseFontSize=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.tinyFontSize!=null&&Object.hasOwnProperty.call(e,"tinyFontSize")&&t.uint32(8).int32(e.tinyFontSize),e.smallFontSize!=null&&Object.hasOwnProperty.call(e,"smallFontSize")&&t.uint32(16).int32(e.smallFontSize),e.baseFontSize!=null&&Object.hasOwnProperty.call(e,"baseFontSize")&&t.uint32(24).int32(e.baseFontSize),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.FontSizes;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.tinyFontSize=e.int32();break}case 2:{p.smallFontSize=e.int32();break}case 3:{p.baseFontSize=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.FontSizes)return e;let t=new $root.FontSizes;return e.tinyFontSize!=null&&(t.tinyFontSize=e.tinyFontSize|0),e.smallFontSize!=null&&(t.smallFontSize=e.smallFontSize|0),e.baseFontSize!=null&&(t.baseFontSize=e.baseFontSize|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.tinyFontSize=0,o.smallFontSize=0,o.baseFontSize=0),e.tinyFontSize!=null&&e.hasOwnProperty("tinyFontSize")&&(o.tinyFontSize=e.tinyFontSize),e.smallFontSize!=null&&e.hasOwnProperty("smallFontSize")&&(o.smallFontSize=e.smallFontSize),e.baseFontSize!=null&&e.hasOwnProperty("baseFontSize")&&(o.baseFontSize=e.baseFontSize),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/FontSizes"},n})();$root.UserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.installationId="",n.prototype.installationIdV3="",n.prototype.installationIdV4="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.installationId!=null&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),e.installationIdV3!=null&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),e.installationIdV4!=null&&Object.hasOwnProperty.call(e,"installationIdV4")&&t.uint32(50).string(e.installationIdV4),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.UserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.installationId=e.string();break}case 5:{p.installationIdV3=e.string();break}case 6:{p.installationIdV4=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.UserInfo)return e;let t=new $root.UserInfo;return e.installationId!=null&&(t.installationId=String(e.installationId)),e.installationIdV3!=null&&(t.installationIdV3=String(e.installationIdV3)),e.installationIdV4!=null&&(t.installationIdV4=String(e.installationIdV4)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.installationId="",o.installationIdV3="",o.installationIdV4=""),e.installationId!=null&&e.hasOwnProperty("installationId")&&(o.installationId=e.installationId),e.installationIdV3!=null&&e.hasOwnProperty("installationIdV3")&&(o.installationIdV3=e.installationIdV3),e.installationIdV4!=null&&e.hasOwnProperty("installationIdV4")&&(o.installationIdV4=e.installationIdV4),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/UserInfo"},n})();$root.EnvironmentInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.streamlitVersion="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(26).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(32).bool(e.hasDisplay),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.EnvironmentInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.streamlitVersion=e.string();break}case 2:{p.pythonVersion=e.string();break}case 3:{p.serverOs=e.string();break}case 4:{p.hasDisplay=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.EnvironmentInfo)return e;let t=new $root.EnvironmentInfo;return e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.streamlitVersion="",o.pythonVersion="",o.serverOs="",o.hasDisplay=!1),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/EnvironmentInfo"},n})();$root.SessionStatus=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.runOnSave=!1,n.prototype.scriptIsRunning=!1,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.runOnSave!=null&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),e.scriptIsRunning!=null&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.SessionStatus;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.runOnSave=e.bool();break}case 2:{p.scriptIsRunning=e.bool();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.SessionStatus)return e;let t=new $root.SessionStatus;return e.runOnSave!=null&&(t.runOnSave=!!e.runOnSave),e.scriptIsRunning!=null&&(t.scriptIsRunning=!!e.scriptIsRunning),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.runOnSave=!1,o.scriptIsRunning=!1),e.runOnSave!=null&&e.hasOwnProperty("runOnSave")&&(o.runOnSave=e.runOnSave),e.scriptIsRunning!=null&&e.hasOwnProperty("scriptIsRunning")&&(o.scriptIsRunning=e.scriptIsRunning),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/SessionStatus"},n})();const PageConfig=$root.PageConfig=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.title="",n.prototype.favicon="",n.prototype.layout=0,n.prototype.initialSidebarState=0,n.prototype.menuItems=null,n.prototype.initialSidebarWidth=null;let i;return Object.defineProperty(n.prototype,"_initialSidebarWidth",{get:$util.oneOfGetter(i=["initialSidebarWidth"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.title!=null&&Object.hasOwnProperty.call(t,"title")&&o.uint32(10).string(t.title),t.favicon!=null&&Object.hasOwnProperty.call(t,"favicon")&&o.uint32(18).string(t.favicon),t.layout!=null&&Object.hasOwnProperty.call(t,"layout")&&o.uint32(24).int32(t.layout),t.initialSidebarState!=null&&Object.hasOwnProperty.call(t,"initialSidebarState")&&o.uint32(32).int32(t.initialSidebarState),t.menuItems!=null&&Object.hasOwnProperty.call(t,"menuItems")&&$root.PageConfig.MenuItems.encode(t.menuItems,o.uint32(42).fork()).ldelim(),t.initialSidebarWidth!=null&&Object.hasOwnProperty.call(t,"initialSidebarWidth")&&$root.PageConfig.SidebarWidthConfig.encode(t.initialSidebarWidth,o.uint32(50).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.PageConfig;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.title=t.string();break}case 2:{h.favicon=t.string();break}case 3:{h.layout=t.int32();break}case 4:{h.initialSidebarState=t.int32();break}case 5:{h.menuItems=$root.PageConfig.MenuItems.decode(t,t.uint32());break}case 6:{h.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.PageConfig)return t;let o=new $root.PageConfig;switch(t.title!=null&&(o.title=String(t.title)),t.favicon!=null&&(o.favicon=String(t.favicon)),t.layout){default:if(typeof t.layout=="number"){o.layout=t.layout;break}break;case"CENTERED":case 0:o.layout=0;break;case"WIDE":case 1:o.layout=1;break;case"LAYOUT_UNSET":case 2:o.layout=2;break}switch(t.initialSidebarState){default:if(typeof t.initialSidebarState=="number"){o.initialSidebarState=t.initialSidebarState;break}break;case"AUTO":case 0:o.initialSidebarState=0;break;case"EXPANDED":case 1:o.initialSidebarState=1;break;case"COLLAPSED":case 2:o.initialSidebarState=2;break;case"SIDEBAR_UNSET":case 3:o.initialSidebarState=3;break}if(t.menuItems!=null){if(typeof t.menuItems!="object")throw TypeError(".PageConfig.menuItems: object expected");o.menuItems=$root.PageConfig.MenuItems.fromObject(t.menuItems)}if(t.initialSidebarWidth!=null){if(typeof t.initialSidebarWidth!="object")throw TypeError(".PageConfig.initialSidebarWidth: object expected");o.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.fromObject(t.initialSidebarWidth)}return o},n.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.title="",d.favicon="",d.layout=o.enums===String?"CENTERED":0,d.initialSidebarState=o.enums===String?"AUTO":0,d.menuItems=null),t.title!=null&&t.hasOwnProperty("title")&&(d.title=t.title),t.favicon!=null&&t.hasOwnProperty("favicon")&&(d.favicon=t.favicon),t.layout!=null&&t.hasOwnProperty("layout")&&(d.layout=o.enums===String?$root.PageConfig.Layout[t.layout]===void 0?t.layout:$root.PageConfig.Layout[t.layout]:t.layout),t.initialSidebarState!=null&&t.hasOwnProperty("initialSidebarState")&&(d.initialSidebarState=o.enums===String?$root.PageConfig.SidebarState[t.initialSidebarState]===void 0?t.initialSidebarState:$root.PageConfig.SidebarState[t.initialSidebarState]:t.initialSidebarState),t.menuItems!=null&&t.hasOwnProperty("menuItems")&&(d.menuItems=$root.PageConfig.MenuItems.toObject(t.menuItems,o)),t.initialSidebarWidth!=null&&t.hasOwnProperty("initialSidebarWidth")&&(d.initialSidebarWidth=$root.PageConfig.SidebarWidthConfig.toObject(t.initialSidebarWidth,o),o.oneofs&&(d._initialSidebarWidth="initialSidebarWidth")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/PageConfig"},n.MenuItems=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.prototype.clearAboutMd=!1,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.getHelpUrl!=null&&Object.hasOwnProperty.call(o,"getHelpUrl")&&d.uint32(10).string(o.getHelpUrl),o.hideGetHelp!=null&&Object.hasOwnProperty.call(o,"hideGetHelp")&&d.uint32(16).bool(o.hideGetHelp),o.reportABugUrl!=null&&Object.hasOwnProperty.call(o,"reportABugUrl")&&d.uint32(26).string(o.reportABugUrl),o.hideReportABug!=null&&Object.hasOwnProperty.call(o,"hideReportABug")&&d.uint32(32).bool(o.hideReportABug),o.aboutSectionMd!=null&&Object.hasOwnProperty.call(o,"aboutSectionMd")&&d.uint32(42).string(o.aboutSectionMd),o.clearAboutMd!=null&&Object.hasOwnProperty.call(o,"clearAboutMd")&&d.uint32(48).bool(o.clearAboutMd),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.PageConfig.MenuItems;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.getHelpUrl=o.string();break}case 2:{y.hideGetHelp=o.bool();break}case 3:{y.reportABugUrl=o.string();break}case 4:{y.hideReportABug=o.bool();break}case 5:{y.aboutSectionMd=o.string();break}case 6:{y.clearAboutMd=o.bool();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.PageConfig.MenuItems)return o;let d=new $root.PageConfig.MenuItems;return o.getHelpUrl!=null&&(d.getHelpUrl=String(o.getHelpUrl)),o.hideGetHelp!=null&&(d.hideGetHelp=!!o.hideGetHelp),o.reportABugUrl!=null&&(d.reportABugUrl=String(o.reportABugUrl)),o.hideReportABug!=null&&(d.hideReportABug=!!o.hideReportABug),o.aboutSectionMd!=null&&(d.aboutSectionMd=String(o.aboutSectionMd)),o.clearAboutMd!=null&&(d.clearAboutMd=!!o.clearAboutMd),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.getHelpUrl="",p.hideGetHelp=!1,p.reportABugUrl="",p.hideReportABug=!1,p.aboutSectionMd="",p.clearAboutMd=!1),o.getHelpUrl!=null&&o.hasOwnProperty("getHelpUrl")&&(p.getHelpUrl=o.getHelpUrl),o.hideGetHelp!=null&&o.hasOwnProperty("hideGetHelp")&&(p.hideGetHelp=o.hideGetHelp),o.reportABugUrl!=null&&o.hasOwnProperty("reportABugUrl")&&(p.reportABugUrl=o.reportABugUrl),o.hideReportABug!=null&&o.hasOwnProperty("hideReportABug")&&(p.hideReportABug=o.hideReportABug),o.aboutSectionMd!=null&&o.hasOwnProperty("aboutSectionMd")&&(p.aboutSectionMd=o.aboutSectionMd),o.clearAboutMd!=null&&o.hasOwnProperty("clearAboutMd")&&(p.clearAboutMd=o.clearAboutMd),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/PageConfig.MenuItems"},e})(),n.Layout=(function(){const e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t[e[2]="LAYOUT_UNSET"]=2,t})(),n.SidebarState=(function(){const e={},t=Object.create(e);return t[e[0]="AUTO"]=0,t[e[1]="EXPANDED"]=1,t[e[2]="COLLAPSED"]=2,t[e[3]="SIDEBAR_UNSET"]=3,t})(),n.SidebarWidthConfig=(function(){function e(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}e.prototype.pixelWidth=null;let t;return Object.defineProperty(e.prototype,"widthSpec",{get:$util.oneOfGetter(t=["pixelWidth"]),set:$util.oneOfSetter(t)}),e.create=function(d){return new e(d)},e.encode=function(d,p){return p||(p=$Writer.create()),d.pixelWidth!=null&&Object.hasOwnProperty.call(d,"pixelWidth")&&p.uint32(8).uint32(d.pixelWidth),p},e.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.PageConfig.SidebarWidthConfig;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.pixelWidth=d.uint32();break}default:d.skipType(E&7);break}}return $},e.fromObject=function(d){if(d instanceof $root.PageConfig.SidebarWidthConfig)return d;let p=new $root.PageConfig.SidebarWidthConfig;return d.pixelWidth!=null&&(p.pixelWidth=d.pixelWidth>>>0),p},e.toObject=function(d,p){p||(p={});let h={};return d.pixelWidth!=null&&d.hasOwnProperty("pixelWidth")&&(h.pixelWidth=d.pixelWidth,p.oneofs&&(h.widthSpec="pixelWidth")),h},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/PageConfig.SidebarWidthConfig"},e})(),n})();$root.PageInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.queryString="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.queryString!=null&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.queryString=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageInfo)return e;let t=new $root.PageInfo;return e.queryString!=null&&(t.queryString=String(e.queryString)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.queryString=""),e.queryString!=null&&e.hasOwnProperty("queryString")&&(o.queryString=e.queryString),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageInfo"},n})();const PageProfile=$root.PageProfile=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.serverMode="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(10).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(42).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(58).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(66).string(e.os),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(74).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(80).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(88).bool(e.isFragmentRun),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(98).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageProfile;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 2:{p.execTime=e.int64();break}case 3:{p.prepTime=e.int64();break}case 5:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 6:{p.uncaughtException=e.string();break}case 7:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 8:{p.os=e.string();break}case 9:{p.timezone=e.string();break}case 10:{p.headless=e.bool();break}case 11:{p.isFragmentRun=e.bool();break}case 12:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageProfile)return e;let t=new $root.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".PageProfile.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".PageProfile.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}return e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.defaults){if($util.Long){let d=new $util.Long(0,0,!1);o.execTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.longs===String?"0":0;o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.serverMode=""}if(e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageProfile"},n})();$root.Argument=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.k="",n.prototype.t="",n.prototype.m="",n.prototype.p=0,n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.k!=null&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),e.t!=null&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),e.m!=null&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),e.p!=null&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Argument;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.k=e.string();break}case 2:{p.t=e.string();break}case 3:{p.m=e.string();break}case 5:{p.p=e.int32();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Argument)return e;let t=new $root.Argument;return e.k!=null&&(t.k=String(e.k)),e.t!=null&&(t.t=String(e.t)),e.m!=null&&(t.m=String(e.m)),e.p!=null&&(t.p=e.p|0),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.k="",o.t="",o.m="",o.p=0),e.k!=null&&e.hasOwnProperty("k")&&(o.k=e.k),e.t!=null&&e.hasOwnProperty("t")&&(o.t=e.t),e.m!=null&&e.hasOwnProperty("m")&&(o.m=e.m),e.p!=null&&e.hasOwnProperty("p")&&(o.p=e.p),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Argument"},n})();$root.Command=(()=>{function n(i){if(this.args=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.name="",n.prototype.args=$util.emptyArray,n.prototype.time=$util.Long?$util.Long.fromBits(0,0,!1):0,n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.name!=null&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),e.args!=null&&e.args.length)for(let o=0;o<e.args.length;++o)$root.Argument.encode(e.args[o],t.uint32(18).fork()).ldelim();return e.time!=null&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.Command;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.name=e.string();break}case 2:{p.args&&p.args.length||(p.args=[]),p.args.push($root.Argument.decode(e,e.uint32()));break}case 4:{p.time=e.int64();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.Command)return e;let t=new $root.Command;if(e.name!=null&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let o=0;o<e.args.length;++o){if(typeof e.args[o]!="object")throw TypeError(".Command.args: object expected");t.args[o]=$root.Argument.fromObject(e.args[o])}}return e.time!=null&&($util.Long?(t.time=$util.Long.fromValue(e.time)).unsigned=!1:typeof e.time=="string"?t.time=parseInt(e.time,10):typeof e.time=="number"?t.time=e.time:typeof e.time=="object"&&(t.time=new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber())),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.args=[]),t.defaults)if(o.name="",$util.Long){let d=new $util.Long(0,0,!1);o.time=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.time=t.longs===String?"0":0;if(e.name!=null&&e.hasOwnProperty("name")&&(o.name=e.name),e.args&&e.args.length){o.args=[];for(let d=0;d<e.args.length;++d)o.args[d]=$root.Argument.toObject(e.args[d],t)}return e.time!=null&&e.hasOwnProperty("time")&&(typeof e.time=="number"?o.time=t.longs===String?String(e.time):e.time:o.time=t.longs===String?$util.Long.prototype.toString.call(e.time):t.longs===Number?new $util.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/Command"},n})();$root.PageNotFound=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.pageName="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.pageName!=null&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.PageNotFound;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.pageName=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.PageNotFound)return e;let t=new $root.PageNotFound;return e.pageName!=null&&(t.pageName=String(e.pageName)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.pageName=""),e.pageName!=null&&e.hasOwnProperty("pageName")&&(o.pageName=e.pageName),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/PageNotFound"},n})();$root.ParentMessage=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.message="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.message!=null&&Object.hasOwnProperty.call(e,"message")&&t.uint32(10).string(e.message),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.ParentMessage;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.message=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.ParentMessage)return e;let t=new $root.ParentMessage;return e.message!=null&&(t.message=String(e.message)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.message=""),e.message!=null&&e.hasOwnProperty("message")&&(o.message=e.message),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/ParentMessage"},n})();$root.SessionEvent=(()=>{function n(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}n.prototype.scriptChangedOnDisk=null,n.prototype.scriptWasManuallyStopped=null,n.prototype.scriptCompilationException=null;let i;return Object.defineProperty(n.prototype,"type",{get:$util.oneOfGetter(i=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:$util.oneOfSetter(i)}),n.create=function(t){return new n(t)},n.encode=function(t,o){return o||(o=$Writer.create()),t.scriptChangedOnDisk!=null&&Object.hasOwnProperty.call(t,"scriptChangedOnDisk")&&o.uint32(8).bool(t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&Object.hasOwnProperty.call(t,"scriptWasManuallyStopped")&&o.uint32(16).bool(t.scriptWasManuallyStopped),t.scriptCompilationException!=null&&Object.hasOwnProperty.call(t,"scriptCompilationException")&&$root.Exception.encode(t.scriptCompilationException,o.uint32(26).fork()).ldelim(),o},n.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.SessionEvent;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.scriptChangedOnDisk=t.bool();break}case 2:{h.scriptWasManuallyStopped=t.bool();break}case 3:{h.scriptCompilationException=$root.Exception.decode(t,t.uint32());break}default:t.skipType(y&7);break}}return h},n.fromObject=function(t){if(t instanceof $root.SessionEvent)return t;let o=new $root.SessionEvent;if(t.scriptChangedOnDisk!=null&&(o.scriptChangedOnDisk=!!t.scriptChangedOnDisk),t.scriptWasManuallyStopped!=null&&(o.scriptWasManuallyStopped=!!t.scriptWasManuallyStopped),t.scriptCompilationException!=null){if(typeof t.scriptCompilationException!="object")throw TypeError(".SessionEvent.scriptCompilationException: object expected");o.scriptCompilationException=$root.Exception.fromObject(t.scriptCompilationException)}return o},n.toObject=function(t,o){o||(o={});let d={};return t.scriptChangedOnDisk!=null&&t.hasOwnProperty("scriptChangedOnDisk")&&(d.scriptChangedOnDisk=t.scriptChangedOnDisk,o.oneofs&&(d.type="scriptChangedOnDisk")),t.scriptWasManuallyStopped!=null&&t.hasOwnProperty("scriptWasManuallyStopped")&&(d.scriptWasManuallyStopped=t.scriptWasManuallyStopped,o.oneofs&&(d.type="scriptWasManuallyStopped")),t.scriptCompilationException!=null&&t.hasOwnProperty("scriptCompilationException")&&(d.scriptCompilationException=$root.Exception.toObject(t.scriptCompilationException,o),o.oneofs&&(d.type="scriptCompilationException")),d},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/SessionEvent"},n})();const MetricsEvent=$root.MetricsEvent=(()=>{function n(i){if(this.commands=[],this.config=[],this.attributions=[],i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.event="",n.prototype.anonymousId="",n.prototype.machineIdV3="",n.prototype.machineIdV4="",n.prototype.reportHash="",n.prototype.dev=!1,n.prototype.source="",n.prototype.streamlitVersion="",n.prototype.isHello=!1,n.prototype.appId="",n.prototype.sessionId="",n.prototype.pythonVersion="",n.prototype.serverOs="",n.prototype.hasDisplay=!1,n.prototype.isWebdriver=!1,n.prototype.hostedAt="",n.prototype.owner="",n.prototype.repo="",n.prototype.branch="",n.prototype.mainModule="",n.prototype.creatorId="",n.prototype.contextPageUrl="",n.prototype.contextPageTitle="",n.prototype.contextPagePath="",n.prototype.contextPageReferrer="",n.prototype.contextPageSearch="",n.prototype.contextLocale="",n.prototype.contextUserAgent="",n.prototype.label="",n.prototype.commands=$util.emptyArray,n.prototype.execTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.prepTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.config=$util.emptyArray,n.prototype.uncaughtException="",n.prototype.attributions=$util.emptyArray,n.prototype.os="",n.prototype.timezone="",n.prototype.headless=!1,n.prototype.isFragmentRun=!1,n.prototype.numPages=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.pageScriptHash="",n.prototype.activeTheme="",n.prototype.totalLoadTime=$util.Long?$util.Long.fromBits(0,0,!1):0,n.prototype.browserInfo=null,n.prototype.serverMode="",n.create=function(e){return new n(e)},n.encode=function(e,t){if(t||(t=$Writer.create()),e.event!=null&&Object.hasOwnProperty.call(e,"event")&&t.uint32(10).string(e.event),e.anonymousId!=null&&Object.hasOwnProperty.call(e,"anonymousId")&&t.uint32(18).string(e.anonymousId),e.machineIdV3!=null&&Object.hasOwnProperty.call(e,"machineIdV3")&&t.uint32(26).string(e.machineIdV3),e.reportHash!=null&&Object.hasOwnProperty.call(e,"reportHash")&&t.uint32(34).string(e.reportHash),e.dev!=null&&Object.hasOwnProperty.call(e,"dev")&&t.uint32(40).bool(e.dev),e.source!=null&&Object.hasOwnProperty.call(e,"source")&&t.uint32(50).string(e.source),e.streamlitVersion!=null&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(58).string(e.streamlitVersion),e.isHello!=null&&Object.hasOwnProperty.call(e,"isHello")&&t.uint32(64).bool(e.isHello),e.hostedAt!=null&&Object.hasOwnProperty.call(e,"hostedAt")&&t.uint32(74).string(e.hostedAt),e.owner!=null&&Object.hasOwnProperty.call(e,"owner")&&t.uint32(82).string(e.owner),e.repo!=null&&Object.hasOwnProperty.call(e,"repo")&&t.uint32(90).string(e.repo),e.branch!=null&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(98).string(e.branch),e.mainModule!=null&&Object.hasOwnProperty.call(e,"mainModule")&&t.uint32(106).string(e.mainModule),e.creatorId!=null&&Object.hasOwnProperty.call(e,"creatorId")&&t.uint32(114).string(e.creatorId),e.contextPageUrl!=null&&Object.hasOwnProperty.call(e,"contextPageUrl")&&t.uint32(122).string(e.contextPageUrl),e.contextPageTitle!=null&&Object.hasOwnProperty.call(e,"contextPageTitle")&&t.uint32(130).string(e.contextPageTitle),e.contextPagePath!=null&&Object.hasOwnProperty.call(e,"contextPagePath")&&t.uint32(138).string(e.contextPagePath),e.contextPageReferrer!=null&&Object.hasOwnProperty.call(e,"contextPageReferrer")&&t.uint32(146).string(e.contextPageReferrer),e.contextPageSearch!=null&&Object.hasOwnProperty.call(e,"contextPageSearch")&&t.uint32(154).string(e.contextPageSearch),e.contextLocale!=null&&Object.hasOwnProperty.call(e,"contextLocale")&&t.uint32(162).string(e.contextLocale),e.contextUserAgent!=null&&Object.hasOwnProperty.call(e,"contextUserAgent")&&t.uint32(170).string(e.contextUserAgent),e.label!=null&&Object.hasOwnProperty.call(e,"label")&&t.uint32(178).string(e.label),e.commands!=null&&e.commands.length)for(let o=0;o<e.commands.length;++o)$root.Command.encode(e.commands[o],t.uint32(186).fork()).ldelim();if(e.execTime!=null&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(192).int64(e.execTime),e.prepTime!=null&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(200).int64(e.prepTime),e.config!=null&&e.config.length)for(let o=0;o<e.config.length;++o)t.uint32(210).string(e.config[o]);if(e.uncaughtException!=null&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(218).string(e.uncaughtException),e.attributions!=null&&e.attributions.length)for(let o=0;o<e.attributions.length;++o)t.uint32(226).string(e.attributions[o]);return e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(234).string(e.os),e.timezone!=null&&Object.hasOwnProperty.call(e,"timezone")&&t.uint32(242).string(e.timezone),e.headless!=null&&Object.hasOwnProperty.call(e,"headless")&&t.uint32(248).bool(e.headless),e.isFragmentRun!=null&&Object.hasOwnProperty.call(e,"isFragmentRun")&&t.uint32(256).bool(e.isFragmentRun),e.appId!=null&&Object.hasOwnProperty.call(e,"appId")&&t.uint32(266).string(e.appId),e.numPages!=null&&Object.hasOwnProperty.call(e,"numPages")&&t.uint32(272).int64(e.numPages),e.sessionId!=null&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(282).string(e.sessionId),e.pythonVersion!=null&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(290).string(e.pythonVersion),e.pageScriptHash!=null&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(298).string(e.pageScriptHash),e.activeTheme!=null&&Object.hasOwnProperty.call(e,"activeTheme")&&t.uint32(306).string(e.activeTheme),e.totalLoadTime!=null&&Object.hasOwnProperty.call(e,"totalLoadTime")&&t.uint32(312).int64(e.totalLoadTime),e.browserInfo!=null&&Object.hasOwnProperty.call(e,"browserInfo")&&$root.BrowserInfo.encode(e.browserInfo,t.uint32(322).fork()).ldelim(),e.machineIdV4!=null&&Object.hasOwnProperty.call(e,"machineIdV4")&&t.uint32(330).string(e.machineIdV4),e.serverOs!=null&&Object.hasOwnProperty.call(e,"serverOs")&&t.uint32(338).string(e.serverOs),e.hasDisplay!=null&&Object.hasOwnProperty.call(e,"hasDisplay")&&t.uint32(344).bool(e.hasDisplay),e.isWebdriver!=null&&Object.hasOwnProperty.call(e,"isWebdriver")&&t.uint32(352).bool(e.isWebdriver),e.serverMode!=null&&Object.hasOwnProperty.call(e,"serverMode")&&t.uint32(362).string(e.serverMode),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.MetricsEvent;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.event=e.string();break}case 2:{p.anonymousId=e.string();break}case 3:{p.machineIdV3=e.string();break}case 41:{p.machineIdV4=e.string();break}case 4:{p.reportHash=e.string();break}case 5:{p.dev=e.bool();break}case 6:{p.source=e.string();break}case 7:{p.streamlitVersion=e.string();break}case 8:{p.isHello=e.bool();break}case 33:{p.appId=e.string();break}case 35:{p.sessionId=e.string();break}case 36:{p.pythonVersion=e.string();break}case 42:{p.serverOs=e.string();break}case 43:{p.hasDisplay=e.bool();break}case 44:{p.isWebdriver=e.bool();break}case 9:{p.hostedAt=e.string();break}case 10:{p.owner=e.string();break}case 11:{p.repo=e.string();break}case 12:{p.branch=e.string();break}case 13:{p.mainModule=e.string();break}case 14:{p.creatorId=e.string();break}case 15:{p.contextPageUrl=e.string();break}case 16:{p.contextPageTitle=e.string();break}case 17:{p.contextPagePath=e.string();break}case 18:{p.contextPageReferrer=e.string();break}case 19:{p.contextPageSearch=e.string();break}case 20:{p.contextLocale=e.string();break}case 21:{p.contextUserAgent=e.string();break}case 22:{p.label=e.string();break}case 23:{p.commands&&p.commands.length||(p.commands=[]),p.commands.push($root.Command.decode(e,e.uint32()));break}case 24:{p.execTime=e.int64();break}case 25:{p.prepTime=e.int64();break}case 26:{p.config&&p.config.length||(p.config=[]),p.config.push(e.string());break}case 27:{p.uncaughtException=e.string();break}case 28:{p.attributions&&p.attributions.length||(p.attributions=[]),p.attributions.push(e.string());break}case 29:{p.os=e.string();break}case 30:{p.timezone=e.string();break}case 31:{p.headless=e.bool();break}case 32:{p.isFragmentRun=e.bool();break}case 34:{p.numPages=e.int64();break}case 37:{p.pageScriptHash=e.string();break}case 38:{p.activeTheme=e.string();break}case 39:{p.totalLoadTime=e.int64();break}case 40:{p.browserInfo=$root.BrowserInfo.decode(e,e.uint32());break}case 45:{p.serverMode=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.MetricsEvent)return e;let t=new $root.MetricsEvent;if(e.event!=null&&(t.event=String(e.event)),e.anonymousId!=null&&(t.anonymousId=String(e.anonymousId)),e.machineIdV3!=null&&(t.machineIdV3=String(e.machineIdV3)),e.machineIdV4!=null&&(t.machineIdV4=String(e.machineIdV4)),e.reportHash!=null&&(t.reportHash=String(e.reportHash)),e.dev!=null&&(t.dev=!!e.dev),e.source!=null&&(t.source=String(e.source)),e.streamlitVersion!=null&&(t.streamlitVersion=String(e.streamlitVersion)),e.isHello!=null&&(t.isHello=!!e.isHello),e.appId!=null&&(t.appId=String(e.appId)),e.sessionId!=null&&(t.sessionId=String(e.sessionId)),e.pythonVersion!=null&&(t.pythonVersion=String(e.pythonVersion)),e.serverOs!=null&&(t.serverOs=String(e.serverOs)),e.hasDisplay!=null&&(t.hasDisplay=!!e.hasDisplay),e.isWebdriver!=null&&(t.isWebdriver=!!e.isWebdriver),e.hostedAt!=null&&(t.hostedAt=String(e.hostedAt)),e.owner!=null&&(t.owner=String(e.owner)),e.repo!=null&&(t.repo=String(e.repo)),e.branch!=null&&(t.branch=String(e.branch)),e.mainModule!=null&&(t.mainModule=String(e.mainModule)),e.creatorId!=null&&(t.creatorId=String(e.creatorId)),e.contextPageUrl!=null&&(t.contextPageUrl=String(e.contextPageUrl)),e.contextPageTitle!=null&&(t.contextPageTitle=String(e.contextPageTitle)),e.contextPagePath!=null&&(t.contextPagePath=String(e.contextPagePath)),e.contextPageReferrer!=null&&(t.contextPageReferrer=String(e.contextPageReferrer)),e.contextPageSearch!=null&&(t.contextPageSearch=String(e.contextPageSearch)),e.contextLocale!=null&&(t.contextLocale=String(e.contextLocale)),e.contextUserAgent!=null&&(t.contextUserAgent=String(e.contextUserAgent)),e.label!=null&&(t.label=String(e.label)),e.commands){if(!Array.isArray(e.commands))throw TypeError(".MetricsEvent.commands: array expected");t.commands=[];for(let o=0;o<e.commands.length;++o){if(typeof e.commands[o]!="object")throw TypeError(".MetricsEvent.commands: object expected");t.commands[o]=$root.Command.fromObject(e.commands[o])}}if(e.execTime!=null&&($util.Long?(t.execTime=$util.Long.fromValue(e.execTime)).unsigned=!1:typeof e.execTime=="string"?t.execTime=parseInt(e.execTime,10):typeof e.execTime=="number"?t.execTime=e.execTime:typeof e.execTime=="object"&&(t.execTime=new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),e.prepTime!=null&&($util.Long?(t.prepTime=$util.Long.fromValue(e.prepTime)).unsigned=!1:typeof e.prepTime=="string"?t.prepTime=parseInt(e.prepTime,10):typeof e.prepTime=="number"?t.prepTime=e.prepTime:typeof e.prepTime=="object"&&(t.prepTime=new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber())),e.config){if(!Array.isArray(e.config))throw TypeError(".MetricsEvent.config: array expected");t.config=[];for(let o=0;o<e.config.length;++o)t.config[o]=String(e.config[o])}if(e.uncaughtException!=null&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".MetricsEvent.attributions: array expected");t.attributions=[];for(let o=0;o<e.attributions.length;++o)t.attributions[o]=String(e.attributions[o])}if(e.os!=null&&(t.os=String(e.os)),e.timezone!=null&&(t.timezone=String(e.timezone)),e.headless!=null&&(t.headless=!!e.headless),e.isFragmentRun!=null&&(t.isFragmentRun=!!e.isFragmentRun),e.numPages!=null&&($util.Long?(t.numPages=$util.Long.fromValue(e.numPages)).unsigned=!1:typeof e.numPages=="string"?t.numPages=parseInt(e.numPages,10):typeof e.numPages=="number"?t.numPages=e.numPages:typeof e.numPages=="object"&&(t.numPages=new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber())),e.pageScriptHash!=null&&(t.pageScriptHash=String(e.pageScriptHash)),e.activeTheme!=null&&(t.activeTheme=String(e.activeTheme)),e.totalLoadTime!=null&&($util.Long?(t.totalLoadTime=$util.Long.fromValue(e.totalLoadTime)).unsigned=!1:typeof e.totalLoadTime=="string"?t.totalLoadTime=parseInt(e.totalLoadTime,10):typeof e.totalLoadTime=="number"?t.totalLoadTime=e.totalLoadTime:typeof e.totalLoadTime=="object"&&(t.totalLoadTime=new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber())),e.browserInfo!=null){if(typeof e.browserInfo!="object")throw TypeError(".MetricsEvent.browserInfo: object expected");t.browserInfo=$root.BrowserInfo.fromObject(e.browserInfo)}return e.serverMode!=null&&(t.serverMode=String(e.serverMode)),t},n.toObject=function(e,t){t||(t={});let o={};if((t.arrays||t.defaults)&&(o.commands=[],o.config=[],o.attributions=[]),t.defaults){if(o.event="",o.anonymousId="",o.machineIdV3="",o.reportHash="",o.dev=!1,o.source="",o.streamlitVersion="",o.isHello=!1,o.hostedAt="",o.owner="",o.repo="",o.branch="",o.mainModule="",o.creatorId="",o.contextPageUrl="",o.contextPageTitle="",o.contextPagePath="",o.contextPageReferrer="",o.contextPageSearch="",o.contextLocale="",o.contextUserAgent="",o.label="",$util.Long){let d=new $util.Long(0,0,!1);o.execTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.execTime=t.longs===String?"0":0;if($util.Long){let d=new $util.Long(0,0,!1);o.prepTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.prepTime=t.longs===String?"0":0;if(o.uncaughtException="",o.os="",o.timezone="",o.headless=!1,o.isFragmentRun=!1,o.appId="",$util.Long){let d=new $util.Long(0,0,!1);o.numPages=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.numPages=t.longs===String?"0":0;if(o.sessionId="",o.pythonVersion="",o.pageScriptHash="",o.activeTheme="",$util.Long){let d=new $util.Long(0,0,!1);o.totalLoadTime=t.longs===String?d.toString():t.longs===Number?d.toNumber():d}else o.totalLoadTime=t.longs===String?"0":0;o.browserInfo=null,o.machineIdV4="",o.serverOs="",o.hasDisplay=!1,o.isWebdriver=!1,o.serverMode=""}if(e.event!=null&&e.hasOwnProperty("event")&&(o.event=e.event),e.anonymousId!=null&&e.hasOwnProperty("anonymousId")&&(o.anonymousId=e.anonymousId),e.machineIdV3!=null&&e.hasOwnProperty("machineIdV3")&&(o.machineIdV3=e.machineIdV3),e.reportHash!=null&&e.hasOwnProperty("reportHash")&&(o.reportHash=e.reportHash),e.dev!=null&&e.hasOwnProperty("dev")&&(o.dev=e.dev),e.source!=null&&e.hasOwnProperty("source")&&(o.source=e.source),e.streamlitVersion!=null&&e.hasOwnProperty("streamlitVersion")&&(o.streamlitVersion=e.streamlitVersion),e.isHello!=null&&e.hasOwnProperty("isHello")&&(o.isHello=e.isHello),e.hostedAt!=null&&e.hasOwnProperty("hostedAt")&&(o.hostedAt=e.hostedAt),e.owner!=null&&e.hasOwnProperty("owner")&&(o.owner=e.owner),e.repo!=null&&e.hasOwnProperty("repo")&&(o.repo=e.repo),e.branch!=null&&e.hasOwnProperty("branch")&&(o.branch=e.branch),e.mainModule!=null&&e.hasOwnProperty("mainModule")&&(o.mainModule=e.mainModule),e.creatorId!=null&&e.hasOwnProperty("creatorId")&&(o.creatorId=e.creatorId),e.contextPageUrl!=null&&e.hasOwnProperty("contextPageUrl")&&(o.contextPageUrl=e.contextPageUrl),e.contextPageTitle!=null&&e.hasOwnProperty("contextPageTitle")&&(o.contextPageTitle=e.contextPageTitle),e.contextPagePath!=null&&e.hasOwnProperty("contextPagePath")&&(o.contextPagePath=e.contextPagePath),e.contextPageReferrer!=null&&e.hasOwnProperty("contextPageReferrer")&&(o.contextPageReferrer=e.contextPageReferrer),e.contextPageSearch!=null&&e.hasOwnProperty("contextPageSearch")&&(o.contextPageSearch=e.contextPageSearch),e.contextLocale!=null&&e.hasOwnProperty("contextLocale")&&(o.contextLocale=e.contextLocale),e.contextUserAgent!=null&&e.hasOwnProperty("contextUserAgent")&&(o.contextUserAgent=e.contextUserAgent),e.label!=null&&e.hasOwnProperty("label")&&(o.label=e.label),e.commands&&e.commands.length){o.commands=[];for(let d=0;d<e.commands.length;++d)o.commands[d]=$root.Command.toObject(e.commands[d],t)}if(e.execTime!=null&&e.hasOwnProperty("execTime")&&(typeof e.execTime=="number"?o.execTime=t.longs===String?String(e.execTime):e.execTime:o.execTime=t.longs===String?$util.Long.prototype.toString.call(e.execTime):t.longs===Number?new $util.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),e.prepTime!=null&&e.hasOwnProperty("prepTime")&&(typeof e.prepTime=="number"?o.prepTime=t.longs===String?String(e.prepTime):e.prepTime:o.prepTime=t.longs===String?$util.Long.prototype.toString.call(e.prepTime):t.longs===Number?new $util.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){o.config=[];for(let d=0;d<e.config.length;++d)o.config[d]=e.config[d]}if(e.uncaughtException!=null&&e.hasOwnProperty("uncaughtException")&&(o.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){o.attributions=[];for(let d=0;d<e.attributions.length;++d)o.attributions[d]=e.attributions[d]}return e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),e.timezone!=null&&e.hasOwnProperty("timezone")&&(o.timezone=e.timezone),e.headless!=null&&e.hasOwnProperty("headless")&&(o.headless=e.headless),e.isFragmentRun!=null&&e.hasOwnProperty("isFragmentRun")&&(o.isFragmentRun=e.isFragmentRun),e.appId!=null&&e.hasOwnProperty("appId")&&(o.appId=e.appId),e.numPages!=null&&e.hasOwnProperty("numPages")&&(typeof e.numPages=="number"?o.numPages=t.longs===String?String(e.numPages):e.numPages:o.numPages=t.longs===String?$util.Long.prototype.toString.call(e.numPages):t.longs===Number?new $util.LongBits(e.numPages.low>>>0,e.numPages.high>>>0).toNumber():e.numPages),e.sessionId!=null&&e.hasOwnProperty("sessionId")&&(o.sessionId=e.sessionId),e.pythonVersion!=null&&e.hasOwnProperty("pythonVersion")&&(o.pythonVersion=e.pythonVersion),e.pageScriptHash!=null&&e.hasOwnProperty("pageScriptHash")&&(o.pageScriptHash=e.pageScriptHash),e.activeTheme!=null&&e.hasOwnProperty("activeTheme")&&(o.activeTheme=e.activeTheme),e.totalLoadTime!=null&&e.hasOwnProperty("totalLoadTime")&&(typeof e.totalLoadTime=="number"?o.totalLoadTime=t.longs===String?String(e.totalLoadTime):e.totalLoadTime:o.totalLoadTime=t.longs===String?$util.Long.prototype.toString.call(e.totalLoadTime):t.longs===Number?new $util.LongBits(e.totalLoadTime.low>>>0,e.totalLoadTime.high>>>0).toNumber():e.totalLoadTime),e.browserInfo!=null&&e.hasOwnProperty("browserInfo")&&(o.browserInfo=$root.BrowserInfo.toObject(e.browserInfo,t)),e.machineIdV4!=null&&e.hasOwnProperty("machineIdV4")&&(o.machineIdV4=e.machineIdV4),e.serverOs!=null&&e.hasOwnProperty("serverOs")&&(o.serverOs=e.serverOs),e.hasDisplay!=null&&e.hasOwnProperty("hasDisplay")&&(o.hasDisplay=e.hasDisplay),e.isWebdriver!=null&&e.hasOwnProperty("isWebdriver")&&(o.isWebdriver=e.isWebdriver),e.serverMode!=null&&e.hasOwnProperty("serverMode")&&(o.serverMode=e.serverMode),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/MetricsEvent"},n})();$root.BrowserInfo=(()=>{function n(i){if(i)for(let e=Object.keys(i),t=0;t<e.length;++t)i[e[t]]!=null&&(this[e[t]]=i[e[t]])}return n.prototype.browserName="",n.prototype.browserVersion="",n.prototype.deviceType="",n.prototype.os="",n.create=function(e){return new n(e)},n.encode=function(e,t){return t||(t=$Writer.create()),e.browserName!=null&&Object.hasOwnProperty.call(e,"browserName")&&t.uint32(10).string(e.browserName),e.browserVersion!=null&&Object.hasOwnProperty.call(e,"browserVersion")&&t.uint32(18).string(e.browserVersion),e.deviceType!=null&&Object.hasOwnProperty.call(e,"deviceType")&&t.uint32(26).string(e.deviceType),e.os!=null&&Object.hasOwnProperty.call(e,"os")&&t.uint32(34).string(e.os),t},n.decode=function(e,t,o){e instanceof $Reader||(e=$Reader.create(e));let d=t===void 0?e.len:e.pos+t,p=new $root.BrowserInfo;for(;e.pos<d;){let h=e.uint32();if(h===o)break;switch(h>>>3){case 1:{p.browserName=e.string();break}case 2:{p.browserVersion=e.string();break}case 3:{p.deviceType=e.string();break}case 4:{p.os=e.string();break}default:e.skipType(h&7);break}}return p},n.fromObject=function(e){if(e instanceof $root.BrowserInfo)return e;let t=new $root.BrowserInfo;return e.browserName!=null&&(t.browserName=String(e.browserName)),e.browserVersion!=null&&(t.browserVersion=String(e.browserVersion)),e.deviceType!=null&&(t.deviceType=String(e.deviceType)),e.os!=null&&(t.os=String(e.os)),t},n.toObject=function(e,t){t||(t={});let o={};return t.defaults&&(o.browserName="",o.browserVersion="",o.deviceType="",o.os=""),e.browserName!=null&&e.hasOwnProperty("browserName")&&(o.browserName=e.browserName),e.browserVersion!=null&&e.hasOwnProperty("browserVersion")&&(o.browserVersion=e.browserVersion),e.deviceType!=null&&e.hasOwnProperty("deviceType")&&(o.deviceType=e.deviceType),e.os!=null&&e.hasOwnProperty("os")&&(o.os=e.os),o},n.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},n.getTypeUrl=function(e){return e===void 0&&(e="type.googleapis.com"),e+"/BrowserInfo"},n})();$root.openmetrics=(()=>{const n={};return n.MetricSet=(function(){function i(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.metricFamilies=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.metricFamilies!=null&&t.metricFamilies.length)for(let d=0;d<t.metricFamilies.length;++d)$root.openmetrics.MetricFamily.encode(t.metricFamilies[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricSet;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.metricFamilies&&h.metricFamilies.length||(h.metricFamilies=[]),h.metricFamilies.push($root.openmetrics.MetricFamily.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricSet)return t;let o=new $root.openmetrics.MetricSet;if(t.metricFamilies){if(!Array.isArray(t.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");o.metricFamilies=[];for(let d=0;d<t.metricFamilies.length;++d){if(typeof t.metricFamilies[d]!="object")throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");o.metricFamilies[d]=$root.openmetrics.MetricFamily.fromObject(t.metricFamilies[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metricFamilies=[]),t.metricFamilies&&t.metricFamilies.length){d.metricFamilies=[];for(let p=0;p<t.metricFamilies.length;++p)d.metricFamilies[p]=$root.openmetrics.MetricFamily.toObject(t.metricFamilies[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricSet"},i})(),n.MetricFamily=(function(){function i(e){if(this.metrics=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.type=0,i.prototype.unit="",i.prototype.help="",i.prototype.metrics=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.type!=null&&Object.hasOwnProperty.call(t,"type")&&o.uint32(16).int32(t.type),t.unit!=null&&Object.hasOwnProperty.call(t,"unit")&&o.uint32(26).string(t.unit),t.help!=null&&Object.hasOwnProperty.call(t,"help")&&o.uint32(34).string(t.help),t.metrics!=null&&t.metrics.length)for(let d=0;d<t.metrics.length;++d)$root.Metric.encode(t.metrics[d],o.uint32(42).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.MetricFamily;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.type=t.int32();break}case 3:{h.unit=t.string();break}case 4:{h.help=t.string();break}case 5:{h.metrics&&h.metrics.length||(h.metrics=[]),h.metrics.push($root.Metric.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.MetricFamily)return t;let o=new $root.openmetrics.MetricFamily;switch(t.name!=null&&(o.name=String(t.name)),t.type){default:if(typeof t.type=="number"){o.type=t.type;break}break;case"UNKNOWN":case 0:o.type=0;break;case"GAUGE":case 1:o.type=1;break;case"COUNTER":case 2:o.type=2;break;case"STATE_SET":case 3:o.type=3;break;case"INFO":case 4:o.type=4;break;case"HISTOGRAM":case 5:o.type=5;break;case"GAUGE_HISTOGRAM":case 6:o.type=6;break;case"SUMMARY":case 7:o.type=7;break}if(t.unit!=null&&(o.unit=String(t.unit)),t.help!=null&&(o.help=String(t.help)),t.metrics){if(!Array.isArray(t.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");o.metrics=[];for(let d=0;d<t.metrics.length;++d){if(typeof t.metrics[d]!="object")throw TypeError(".openmetrics.MetricFamily.metrics: object expected");o.metrics[d]=$root.Metric.fromObject(t.metrics[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.metrics=[]),o.defaults&&(d.name="",d.type=o.enums===String?"UNKNOWN":0,d.unit="",d.help=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.type!=null&&t.hasOwnProperty("type")&&(d.type=o.enums===String?$root.openmetrics.MetricType[t.type]===void 0?t.type:$root.openmetrics.MetricType[t.type]:t.type),t.unit!=null&&t.hasOwnProperty("unit")&&(d.unit=t.unit),t.help!=null&&t.hasOwnProperty("help")&&(d.help=t.help),t.metrics&&t.metrics.length){d.metrics=[];for(let p=0;p<t.metrics.length;++p)d.metrics[p]=$root.Metric.toObject(t.metrics[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.MetricFamily"},i})(),n.MetricType=(function(){const i={},e=Object.create(i);return e[i[0]="UNKNOWN"]=0,e[i[1]="GAUGE"]=1,e[i[2]="COUNTER"]=2,e[i[3]="STATE_SET"]=3,e[i[4]="INFO"]=4,e[i[5]="HISTOGRAM"]=5,e[i[6]="GAUGE_HISTOGRAM"]=6,e[i[7]="SUMMARY"]=7,e})(),n.Metric=(function(){function i(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.labels=$util.emptyArray,i.prototype.metricPoints=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.labels!=null&&t.labels.length)for(let d=0;d<t.labels.length;++d)$root.openmetrics.Label.encode(t.labels[d],o.uint32(10).fork()).ldelim();if(t.metricPoints!=null&&t.metricPoints.length)for(let d=0;d<t.metricPoints.length;++d)$root.openmetrics.MetricPoint.encode(t.metricPoints[d],o.uint32(18).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Metric;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.labels&&h.labels.length||(h.labels=[]),h.labels.push($root.openmetrics.Label.decode(t,t.uint32()));break}case 2:{h.metricPoints&&h.metricPoints.length||(h.metricPoints=[]),h.metricPoints.push($root.openmetrics.MetricPoint.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Metric)return t;let o=new $root.openmetrics.Metric;if(t.labels){if(!Array.isArray(t.labels))throw TypeError(".openmetrics.Metric.labels: array expected");o.labels=[];for(let d=0;d<t.labels.length;++d){if(typeof t.labels[d]!="object")throw TypeError(".openmetrics.Metric.labels: object expected");o.labels[d]=$root.openmetrics.Label.fromObject(t.labels[d])}}if(t.metricPoints){if(!Array.isArray(t.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");o.metricPoints=[];for(let d=0;d<t.metricPoints.length;++d){if(typeof t.metricPoints[d]!="object")throw TypeError(".openmetrics.Metric.metricPoints: object expected");o.metricPoints[d]=$root.openmetrics.MetricPoint.fromObject(t.metricPoints[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.labels=[],d.metricPoints=[]),t.labels&&t.labels.length){d.labels=[];for(let p=0;p<t.labels.length;++p)d.labels[p]=$root.openmetrics.Label.toObject(t.labels[p],o)}if(t.metricPoints&&t.metricPoints.length){d.metricPoints=[];for(let p=0;p<t.metricPoints.length;++p)d.metricPoints[p]=$root.openmetrics.MetricPoint.toObject(t.metricPoints[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Metric"},i})(),n.Label=(function(){function i(e){if(e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.name="",i.prototype.value="",i.create=function(t){return new i(t)},i.encode=function(t,o){return o||(o=$Writer.create()),t.name!=null&&Object.hasOwnProperty.call(t,"name")&&o.uint32(10).string(t.name),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(18).string(t.value),o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Label;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.name=t.string();break}case 2:{h.value=t.string();break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Label)return t;let o=new $root.openmetrics.Label;return t.name!=null&&(o.name=String(t.name)),t.value!=null&&(o.value=String(t.value)),o},i.toObject=function(t,o){o||(o={});let d={};return o.defaults&&(d.name="",d.value=""),t.name!=null&&t.hasOwnProperty("name")&&(d.name=t.name),t.value!=null&&t.hasOwnProperty("value")&&(d.value=t.value),d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Label"},i})(),n.MetricPoint=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.unknownValue=null,i.prototype.gaugeValue=null,i.prototype.counterValue=null,i.prototype.histogramValue=null,i.prototype.stateSetValue=null,i.prototype.infoValue=null,i.prototype.summaryValue=null,i.prototype.timestamp=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.unknownValue!=null&&Object.hasOwnProperty.call(o,"unknownValue")&&$root.openmetrics.UnknownValue.encode(o.unknownValue,d.uint32(10).fork()).ldelim(),o.gaugeValue!=null&&Object.hasOwnProperty.call(o,"gaugeValue")&&$root.openmetrics.GaugeValue.encode(o.gaugeValue,d.uint32(18).fork()).ldelim(),o.counterValue!=null&&Object.hasOwnProperty.call(o,"counterValue")&&$root.openmetrics.CounterValue.encode(o.counterValue,d.uint32(26).fork()).ldelim(),o.histogramValue!=null&&Object.hasOwnProperty.call(o,"histogramValue")&&$root.openmetrics.HistogramValue.encode(o.histogramValue,d.uint32(34).fork()).ldelim(),o.stateSetValue!=null&&Object.hasOwnProperty.call(o,"stateSetValue")&&$root.openmetrics.StateSetValue.encode(o.stateSetValue,d.uint32(42).fork()).ldelim(),o.infoValue!=null&&Object.hasOwnProperty.call(o,"infoValue")&&$root.openmetrics.InfoValue.encode(o.infoValue,d.uint32(50).fork()).ldelim(),o.summaryValue!=null&&Object.hasOwnProperty.call(o,"summaryValue")&&$root.openmetrics.SummaryValue.encode(o.summaryValue,d.uint32(58).fork()).ldelim(),o.timestamp!=null&&Object.hasOwnProperty.call(o,"timestamp")&&$root.google.protobuf.Timestamp.encode(o.timestamp,d.uint32(66).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.MetricPoint;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.unknownValue=$root.openmetrics.UnknownValue.decode(o,o.uint32());break}case 2:{y.gaugeValue=$root.openmetrics.GaugeValue.decode(o,o.uint32());break}case 3:{y.counterValue=$root.openmetrics.CounterValue.decode(o,o.uint32());break}case 4:{y.histogramValue=$root.openmetrics.HistogramValue.decode(o,o.uint32());break}case 5:{y.stateSetValue=$root.openmetrics.StateSetValue.decode(o,o.uint32());break}case 6:{y.infoValue=$root.openmetrics.InfoValue.decode(o,o.uint32());break}case 7:{y.summaryValue=$root.openmetrics.SummaryValue.decode(o,o.uint32());break}case 8:{y.timestamp=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.MetricPoint)return o;let d=new $root.openmetrics.MetricPoint;if(o.unknownValue!=null){if(typeof o.unknownValue!="object")throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");d.unknownValue=$root.openmetrics.UnknownValue.fromObject(o.unknownValue)}if(o.gaugeValue!=null){if(typeof o.gaugeValue!="object")throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");d.gaugeValue=$root.openmetrics.GaugeValue.fromObject(o.gaugeValue)}if(o.counterValue!=null){if(typeof o.counterValue!="object")throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");d.counterValue=$root.openmetrics.CounterValue.fromObject(o.counterValue)}if(o.histogramValue!=null){if(typeof o.histogramValue!="object")throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");d.histogramValue=$root.openmetrics.HistogramValue.fromObject(o.histogramValue)}if(o.stateSetValue!=null){if(typeof o.stateSetValue!="object")throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");d.stateSetValue=$root.openmetrics.StateSetValue.fromObject(o.stateSetValue)}if(o.infoValue!=null){if(typeof o.infoValue!="object")throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");d.infoValue=$root.openmetrics.InfoValue.fromObject(o.infoValue)}if(o.summaryValue!=null){if(typeof o.summaryValue!="object")throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");d.summaryValue=$root.openmetrics.SummaryValue.fromObject(o.summaryValue)}if(o.timestamp!=null){if(typeof o.timestamp!="object")throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");d.timestamp=$root.google.protobuf.Timestamp.fromObject(o.timestamp)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.timestamp=null),o.unknownValue!=null&&o.hasOwnProperty("unknownValue")&&(p.unknownValue=$root.openmetrics.UnknownValue.toObject(o.unknownValue,d),d.oneofs&&(p.value="unknownValue")),o.gaugeValue!=null&&o.hasOwnProperty("gaugeValue")&&(p.gaugeValue=$root.openmetrics.GaugeValue.toObject(o.gaugeValue,d),d.oneofs&&(p.value="gaugeValue")),o.counterValue!=null&&o.hasOwnProperty("counterValue")&&(p.counterValue=$root.openmetrics.CounterValue.toObject(o.counterValue,d),d.oneofs&&(p.value="counterValue")),o.histogramValue!=null&&o.hasOwnProperty("histogramValue")&&(p.histogramValue=$root.openmetrics.HistogramValue.toObject(o.histogramValue,d),d.oneofs&&(p.value="histogramValue")),o.stateSetValue!=null&&o.hasOwnProperty("stateSetValue")&&(p.stateSetValue=$root.openmetrics.StateSetValue.toObject(o.stateSetValue,d),d.oneofs&&(p.value="stateSetValue")),o.infoValue!=null&&o.hasOwnProperty("infoValue")&&(p.infoValue=$root.openmetrics.InfoValue.toObject(o.infoValue,d),d.oneofs&&(p.value="infoValue")),o.summaryValue!=null&&o.hasOwnProperty("summaryValue")&&(p.summaryValue=$root.openmetrics.SummaryValue.toObject(o.summaryValue,d),d.oneofs&&(p.value="summaryValue")),o.timestamp!=null&&o.hasOwnProperty("timestamp")&&(p.timestamp=$root.google.protobuf.Timestamp.toObject(o.timestamp,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.MetricPoint"},i})(),n.UnknownValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.UnknownValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.UnknownValue)return o;let d=new $root.openmetrics.UnknownValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.UnknownValue"},i})(),n.GaugeValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null;let e;return Object.defineProperty(i.prototype,"value",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.GaugeValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.GaugeValue)return o;let d=new $root.openmetrics.GaugeValue;return o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),d},i.toObject=function(o,d){d||(d={});let p={};return o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.value="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.value="intValue")),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.GaugeValue"},i})(),n.CounterValue=(function(){function i(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.created=null,i.prototype.exemplar=null;let e;return Object.defineProperty(i.prototype,"total",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){return d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).uint64(o.intValue),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(26).fork()).ldelim(),o.exemplar!=null&&Object.hasOwnProperty.call(o,"exemplar")&&$root.openmetrics.Exemplar.encode(o.exemplar,d.uint32(34).fork()).ldelim(),d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.CounterValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.uint64();break}case 3:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 4:{y.exemplar=$root.openmetrics.Exemplar.decode(o,o.uint32());break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.CounterValue)return o;let d=new $root.openmetrics.CounterValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!0:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.CounterValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.exemplar!=null){if(typeof o.exemplar!="object")throw TypeError(".openmetrics.CounterValue.exemplar: object expected");d.exemplar=$root.openmetrics.Exemplar.fromObject(o.exemplar)}return d},i.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.created=null,p.exemplar=null),o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.total="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber(!0):o.intValue,d.oneofs&&(p.total="intValue")),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.exemplar!=null&&o.hasOwnProperty("exemplar")&&(p.exemplar=$root.openmetrics.Exemplar.toObject(o.exemplar,d)),p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.CounterValue"},i})(),n.HistogramValue=(function(){function i(t){if(this.buckets=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.buckets=$util.emptyArray;let e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.buckets!=null&&o.buckets.length)for(let p=0;p<o.buckets.length;++p)$root.openmetrics.HistogramValue.Bucket.encode(o.buckets[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.HistogramValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.buckets&&y.buckets.length||(y.buckets=[]),y.buckets.push($root.openmetrics.HistogramValue.Bucket.decode(o,o.uint32()));break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.HistogramValue)return o;let d=new $root.openmetrics.HistogramValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.HistogramValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.buckets){if(!Array.isArray(o.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");d.buckets=[];for(let p=0;p<o.buckets.length;++p){if(typeof o.buckets[p]!="object")throw TypeError(".openmetrics.HistogramValue.buckets: object expected");d.buckets[p]=$root.openmetrics.HistogramValue.Bucket.fromObject(o.buckets[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.buckets=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.buckets&&o.buckets.length){p.buckets=[];for(let h=0;h<o.buckets.length;++h)p.buckets[h]=$root.openmetrics.HistogramValue.Bucket.toObject(o.buckets[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.HistogramValue"},i.Bucket=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return t.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,t.prototype.upperBound=0,t.prototype.exemplar=null,t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.count!=null&&Object.hasOwnProperty.call(d,"count")&&p.uint32(8).uint64(d.count),d.upperBound!=null&&Object.hasOwnProperty.call(d,"upperBound")&&p.uint32(17).double(d.upperBound),d.exemplar!=null&&Object.hasOwnProperty.call(d,"exemplar")&&$root.openmetrics.Exemplar.encode(d.exemplar,p.uint32(26).fork()).ldelim(),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.HistogramValue.Bucket;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.count=d.uint64();break}case 2:{$.upperBound=d.double();break}case 3:{$.exemplar=$root.openmetrics.Exemplar.decode(d,d.uint32());break}default:d.skipType(E&7);break}}return $},t.fromObject=function(d){if(d instanceof $root.openmetrics.HistogramValue.Bucket)return d;let p=new $root.openmetrics.HistogramValue.Bucket;if(d.count!=null&&($util.Long?(p.count=$util.Long.fromValue(d.count)).unsigned=!0:typeof d.count=="string"?p.count=parseInt(d.count,10):typeof d.count=="number"?p.count=d.count:typeof d.count=="object"&&(p.count=new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0))),d.upperBound!=null&&(p.upperBound=Number(d.upperBound)),d.exemplar!=null){if(typeof d.exemplar!="object")throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");p.exemplar=$root.openmetrics.Exemplar.fromObject(d.exemplar)}return p},t.toObject=function(d,p){p||(p={});let h={};if(p.defaults){if($util.Long){let y=new $util.Long(0,0,!0);h.count=p.longs===String?y.toString():p.longs===Number?y.toNumber():y}else h.count=p.longs===String?"0":0;h.upperBound=0,h.exemplar=null}return d.count!=null&&d.hasOwnProperty("count")&&(typeof d.count=="number"?h.count=p.longs===String?String(d.count):d.count:h.count=p.longs===String?$util.Long.prototype.toString.call(d.count):p.longs===Number?new $util.LongBits(d.count.low>>>0,d.count.high>>>0).toNumber(!0):d.count),d.upperBound!=null&&d.hasOwnProperty("upperBound")&&(h.upperBound=p.json&&!isFinite(d.upperBound)?String(d.upperBound):d.upperBound),d.exemplar!=null&&d.hasOwnProperty("exemplar")&&(h.exemplar=$root.openmetrics.Exemplar.toObject(d.exemplar,p)),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.HistogramValue.Bucket"},t})(),i})(),n.Exemplar=(function(){function i(e){if(this.label=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.value=0,i.prototype.timestamp=null,i.prototype.label=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.value!=null&&Object.hasOwnProperty.call(t,"value")&&o.uint32(9).double(t.value),t.timestamp!=null&&Object.hasOwnProperty.call(t,"timestamp")&&$root.google.protobuf.Timestamp.encode(t.timestamp,o.uint32(18).fork()).ldelim(),t.label!=null&&t.label.length)for(let d=0;d<t.label.length;++d)$root.openmetrics.Label.encode(t.label[d],o.uint32(26).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.Exemplar;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.value=t.double();break}case 2:{h.timestamp=$root.google.protobuf.Timestamp.decode(t,t.uint32());break}case 3:{h.label&&h.label.length||(h.label=[]),h.label.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.Exemplar)return t;let o=new $root.openmetrics.Exemplar;if(t.value!=null&&(o.value=Number(t.value)),t.timestamp!=null){if(typeof t.timestamp!="object")throw TypeError(".openmetrics.Exemplar.timestamp: object expected");o.timestamp=$root.google.protobuf.Timestamp.fromObject(t.timestamp)}if(t.label){if(!Array.isArray(t.label))throw TypeError(".openmetrics.Exemplar.label: array expected");o.label=[];for(let d=0;d<t.label.length;++d){if(typeof t.label[d]!="object")throw TypeError(".openmetrics.Exemplar.label: object expected");o.label[d]=$root.openmetrics.Label.fromObject(t.label[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.label=[]),o.defaults&&(d.value=0,d.timestamp=null),t.value!=null&&t.hasOwnProperty("value")&&(d.value=o.json&&!isFinite(t.value)?String(t.value):t.value),t.timestamp!=null&&t.hasOwnProperty("timestamp")&&(d.timestamp=$root.google.protobuf.Timestamp.toObject(t.timestamp,o)),t.label&&t.label.length){d.label=[];for(let p=0;p<t.label.length;++p)d.label[p]=$root.openmetrics.Label.toObject(t.label[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.Exemplar"},i})(),n.StateSetValue=(function(){function i(e){if(this.states=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.states=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.states!=null&&t.states.length)for(let d=0;d<t.states.length;++d)$root.openmetrics.StateSetValue.State.encode(t.states[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.StateSetValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.states&&h.states.length||(h.states=[]),h.states.push($root.openmetrics.StateSetValue.State.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.StateSetValue)return t;let o=new $root.openmetrics.StateSetValue;if(t.states){if(!Array.isArray(t.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");o.states=[];for(let d=0;d<t.states.length;++d){if(typeof t.states[d]!="object")throw TypeError(".openmetrics.StateSetValue.states: object expected");o.states[d]=$root.openmetrics.StateSetValue.State.fromObject(t.states[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.states=[]),t.states&&t.states.length){d.states=[];for(let p=0;p<t.states.length;++p)d.states[p]=$root.openmetrics.StateSetValue.State.toObject(t.states[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.StateSetValue"},i.State=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.enabled!=null&&Object.hasOwnProperty.call(o,"enabled")&&d.uint32(8).bool(o.enabled),o.name!=null&&Object.hasOwnProperty.call(o,"name")&&d.uint32(18).string(o.name),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.StateSetValue.State;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.enabled=o.bool();break}case 2:{y.name=o.string();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.openmetrics.StateSetValue.State)return o;let d=new $root.openmetrics.StateSetValue.State;return o.enabled!=null&&(d.enabled=!!o.enabled),o.name!=null&&(d.name=String(o.name)),d},e.toObject=function(o,d){d||(d={});let p={};return d.defaults&&(p.enabled=!1,p.name=""),o.enabled!=null&&o.hasOwnProperty("enabled")&&(p.enabled=o.enabled),o.name!=null&&o.hasOwnProperty("name")&&(p.name=o.name),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.StateSetValue.State"},e})(),i})(),n.InfoValue=(function(){function i(e){if(this.info=[],e)for(let t=Object.keys(e),o=0;o<t.length;++o)e[t[o]]!=null&&(this[t[o]]=e[t[o]])}return i.prototype.info=$util.emptyArray,i.create=function(t){return new i(t)},i.encode=function(t,o){if(o||(o=$Writer.create()),t.info!=null&&t.info.length)for(let d=0;d<t.info.length;++d)$root.openmetrics.Label.encode(t.info[d],o.uint32(10).fork()).ldelim();return o},i.decode=function(t,o,d){t instanceof $Reader||(t=$Reader.create(t));let p=o===void 0?t.len:t.pos+o,h=new $root.openmetrics.InfoValue;for(;t.pos<p;){let y=t.uint32();if(y===d)break;switch(y>>>3){case 1:{h.info&&h.info.length||(h.info=[]),h.info.push($root.openmetrics.Label.decode(t,t.uint32()));break}default:t.skipType(y&7);break}}return h},i.fromObject=function(t){if(t instanceof $root.openmetrics.InfoValue)return t;let o=new $root.openmetrics.InfoValue;if(t.info){if(!Array.isArray(t.info))throw TypeError(".openmetrics.InfoValue.info: array expected");o.info=[];for(let d=0;d<t.info.length;++d){if(typeof t.info[d]!="object")throw TypeError(".openmetrics.InfoValue.info: object expected");o.info[d]=$root.openmetrics.Label.fromObject(t.info[d])}}return o},i.toObject=function(t,o){o||(o={});let d={};if((o.arrays||o.defaults)&&(d.info=[]),t.info&&t.info.length){d.info=[];for(let p=0;p<t.info.length;++p)d.info[p]=$root.openmetrics.Label.toObject(t.info[p],o)}return d},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/openmetrics.InfoValue"},i})(),n.SummaryValue=(function(){function i(t){if(this.quantile=[],t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}i.prototype.doubleValue=null,i.prototype.intValue=null,i.prototype.count=$util.Long?$util.Long.fromBits(0,0,!0):0,i.prototype.created=null,i.prototype.quantile=$util.emptyArray;let e;return Object.defineProperty(i.prototype,"sum",{get:$util.oneOfGetter(e=["doubleValue","intValue"]),set:$util.oneOfSetter(e)}),i.create=function(o){return new i(o)},i.encode=function(o,d){if(d||(d=$Writer.create()),o.doubleValue!=null&&Object.hasOwnProperty.call(o,"doubleValue")&&d.uint32(9).double(o.doubleValue),o.intValue!=null&&Object.hasOwnProperty.call(o,"intValue")&&d.uint32(16).int64(o.intValue),o.count!=null&&Object.hasOwnProperty.call(o,"count")&&d.uint32(24).uint64(o.count),o.created!=null&&Object.hasOwnProperty.call(o,"created")&&$root.google.protobuf.Timestamp.encode(o.created,d.uint32(34).fork()).ldelim(),o.quantile!=null&&o.quantile.length)for(let p=0;p<o.quantile.length;++p)$root.openmetrics.SummaryValue.Quantile.encode(o.quantile[p],d.uint32(42).fork()).ldelim();return d},i.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.openmetrics.SummaryValue;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.doubleValue=o.double();break}case 2:{y.intValue=o.int64();break}case 3:{y.count=o.uint64();break}case 4:{y.created=$root.google.protobuf.Timestamp.decode(o,o.uint32());break}case 5:{y.quantile&&y.quantile.length||(y.quantile=[]),y.quantile.push($root.openmetrics.SummaryValue.Quantile.decode(o,o.uint32()));break}default:o.skipType($&7);break}}return y},i.fromObject=function(o){if(o instanceof $root.openmetrics.SummaryValue)return o;let d=new $root.openmetrics.SummaryValue;if(o.doubleValue!=null&&(d.doubleValue=Number(o.doubleValue)),o.intValue!=null&&($util.Long?(d.intValue=$util.Long.fromValue(o.intValue)).unsigned=!1:typeof o.intValue=="string"?d.intValue=parseInt(o.intValue,10):typeof o.intValue=="number"?d.intValue=o.intValue:typeof o.intValue=="object"&&(d.intValue=new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber())),o.count!=null&&($util.Long?(d.count=$util.Long.fromValue(o.count)).unsigned=!0:typeof o.count=="string"?d.count=parseInt(o.count,10):typeof o.count=="number"?d.count=o.count:typeof o.count=="object"&&(d.count=new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0))),o.created!=null){if(typeof o.created!="object")throw TypeError(".openmetrics.SummaryValue.created: object expected");d.created=$root.google.protobuf.Timestamp.fromObject(o.created)}if(o.quantile){if(!Array.isArray(o.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");d.quantile=[];for(let p=0;p<o.quantile.length;++p){if(typeof o.quantile[p]!="object")throw TypeError(".openmetrics.SummaryValue.quantile: object expected");d.quantile[p]=$root.openmetrics.SummaryValue.Quantile.fromObject(o.quantile[p])}}return d},i.toObject=function(o,d){d||(d={});let p={};if((d.arrays||d.defaults)&&(p.quantile=[]),d.defaults){if($util.Long){let h=new $util.Long(0,0,!0);p.count=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.count=d.longs===String?"0":0;p.created=null}if(o.doubleValue!=null&&o.hasOwnProperty("doubleValue")&&(p.doubleValue=d.json&&!isFinite(o.doubleValue)?String(o.doubleValue):o.doubleValue,d.oneofs&&(p.sum="doubleValue")),o.intValue!=null&&o.hasOwnProperty("intValue")&&(typeof o.intValue=="number"?p.intValue=d.longs===String?String(o.intValue):o.intValue:p.intValue=d.longs===String?$util.Long.prototype.toString.call(o.intValue):d.longs===Number?new $util.LongBits(o.intValue.low>>>0,o.intValue.high>>>0).toNumber():o.intValue,d.oneofs&&(p.sum="intValue")),o.count!=null&&o.hasOwnProperty("count")&&(typeof o.count=="number"?p.count=d.longs===String?String(o.count):o.count:p.count=d.longs===String?$util.Long.prototype.toString.call(o.count):d.longs===Number?new $util.LongBits(o.count.low>>>0,o.count.high>>>0).toNumber(!0):o.count),o.created!=null&&o.hasOwnProperty("created")&&(p.created=$root.google.protobuf.Timestamp.toObject(o.created,d)),o.quantile&&o.quantile.length){p.quantile=[];for(let h=0;h<o.quantile.length;++h)p.quantile[h]=$root.openmetrics.SummaryValue.Quantile.toObject(o.quantile[h],d)}return p},i.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},i.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/openmetrics.SummaryValue"},i.Quantile=(function(){function t(o){if(o)for(let d=Object.keys(o),p=0;p<d.length;++p)o[d[p]]!=null&&(this[d[p]]=o[d[p]])}return t.prototype.quantile=0,t.prototype.value=0,t.create=function(d){return new t(d)},t.encode=function(d,p){return p||(p=$Writer.create()),d.quantile!=null&&Object.hasOwnProperty.call(d,"quantile")&&p.uint32(9).double(d.quantile),d.value!=null&&Object.hasOwnProperty.call(d,"value")&&p.uint32(17).double(d.value),p},t.decode=function(d,p,h){d instanceof $Reader||(d=$Reader.create(d));let y=p===void 0?d.len:d.pos+p,$=new $root.openmetrics.SummaryValue.Quantile;for(;d.pos<y;){let E=d.uint32();if(E===h)break;switch(E>>>3){case 1:{$.quantile=d.double();break}case 2:{$.value=d.double();break}default:d.skipType(E&7);break}}return $},t.fromObject=function(d){if(d instanceof $root.openmetrics.SummaryValue.Quantile)return d;let p=new $root.openmetrics.SummaryValue.Quantile;return d.quantile!=null&&(p.quantile=Number(d.quantile)),d.value!=null&&(p.value=Number(d.value)),p},t.toObject=function(d,p){p||(p={});let h={};return p.defaults&&(h.quantile=0,h.value=0),d.quantile!=null&&d.hasOwnProperty("quantile")&&(h.quantile=p.json&&!isFinite(d.quantile)?String(d.quantile):d.quantile),d.value!=null&&d.hasOwnProperty("value")&&(h.value=p.json&&!isFinite(d.value)?String(d.value):d.value),h},t.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},t.getTypeUrl=function(d){return d===void 0&&(d="type.googleapis.com"),d+"/openmetrics.SummaryValue.Quantile"},t})(),i})(),n})();$root.google=(()=>{const n={};return n.protobuf=(function(){const i={};return i.Timestamp=(function(){function e(t){if(t)for(let o=Object.keys(t),d=0;d<o.length;++d)t[o[d]]!=null&&(this[o[d]]=t[o[d]])}return e.prototype.seconds=$util.Long?$util.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(o){return new e(o)},e.encode=function(o,d){return d||(d=$Writer.create()),o.seconds!=null&&Object.hasOwnProperty.call(o,"seconds")&&d.uint32(8).int64(o.seconds),o.nanos!=null&&Object.hasOwnProperty.call(o,"nanos")&&d.uint32(16).int32(o.nanos),d},e.decode=function(o,d,p){o instanceof $Reader||(o=$Reader.create(o));let h=d===void 0?o.len:o.pos+d,y=new $root.google.protobuf.Timestamp;for(;o.pos<h;){let $=o.uint32();if($===p)break;switch($>>>3){case 1:{y.seconds=o.int64();break}case 2:{y.nanos=o.int32();break}default:o.skipType($&7);break}}return y},e.fromObject=function(o){if(o instanceof $root.google.protobuf.Timestamp)return o;let d=new $root.google.protobuf.Timestamp;return o.seconds!=null&&($util.Long?(d.seconds=$util.Long.fromValue(o.seconds)).unsigned=!1:typeof o.seconds=="string"?d.seconds=parseInt(o.seconds,10):typeof o.seconds=="number"?d.seconds=o.seconds:typeof o.seconds=="object"&&(d.seconds=new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber())),o.nanos!=null&&(d.nanos=o.nanos|0),d},e.toObject=function(o,d){d||(d={});let p={};if(d.defaults){if($util.Long){let h=new $util.Long(0,0,!1);p.seconds=d.longs===String?h.toString():d.longs===Number?h.toNumber():h}else p.seconds=d.longs===String?"0":0;p.nanos=0}return o.seconds!=null&&o.hasOwnProperty("seconds")&&(typeof o.seconds=="number"?p.seconds=d.longs===String?String(o.seconds):o.seconds:p.seconds=d.longs===String?$util.Long.prototype.toString.call(o.seconds):d.longs===Number?new $util.LongBits(o.seconds.low>>>0,o.seconds.high>>>0).toNumber():o.seconds),o.nanos!=null&&o.hasOwnProperty("nanos")&&(p.nanos=o.nanos),p},e.prototype.toJSON=function(){return this.constructor.toObject(this,minimalExports.util.toJSONOptions)},e.getTypeUrl=function(o){return o===void 0&&(o="type.googleapis.com"),o+"/google.protobuf.Timestamp"},e})(),i})(),n})();$root.RootContainer=(()=>{const n={},i=Object.create(n);return i[n[0]="MAIN"]=0,i[n[1]="SIDEBAR"]=1,i[n[2]="EVENT"]=2,i[n[3]="BOTTOM"]=3,i})();function ensureError(n){return n instanceof Error?n:new Error(`${n}`)}const handlePreserveConsecutiveUppercase=(n,i)=>(n=n.replace(new RegExp("((?<![\\p{Uppercase_Letter}\\d])[\\p{Uppercase_Letter}\\d](?![\\p{Uppercase_Letter}\\d]))","gu"),e=>e.toLowerCase()),n.replace(new RegExp("(?<!\\p{Uppercase_Letter})(\\p{Uppercase_Letter}+)(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),(e,t,o)=>t+i+o.toLowerCase()));function decamelize$1(n,{separator:i="_",preserveConsecutiveUppercase:e=!1}={}){if(!(typeof n=="string"&&typeof i=="string"))throw new TypeError("The `text` and `separator` arguments should be of type `string`");if(n.length<2)return e?n:n.toLowerCase();const t=`$1${i}$2`,o=n.replace(new RegExp("([\\p{Lowercase_Letter}\\d])(\\p{Uppercase_Letter})","gu"),t);return e?handlePreserveConsecutiveUppercase(o,i):o.replace(new RegExp("(\\p{Uppercase_Letter})(\\p{Uppercase_Letter}\\p{Lowercase_Letter}+)","gu"),t).toLowerCase()}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$4=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root$4.Symbol,objectProto$h=Object.prototype,hasOwnProperty$f=objectProto$h.hasOwnProperty,nativeObjectToString$1=objectProto$h.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(n){var i=hasOwnProperty$f.call(n,symToStringTag$1),e=n[symToStringTag$1];try{n[symToStringTag$1]=void 0;var t=!0}catch{}var o=nativeObjectToString$1.call(n);return t&&(i?n[symToStringTag$1]=e:delete n[symToStringTag$1]),o}var objectProto$g=Object.prototype,nativeObjectToString=objectProto$g.toString;function objectToString(n){return nativeObjectToString.call(n)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(n){return n==null?n===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(n)?getRawTag(n):objectToString(n)}function isObjectLike(n){return n!=null&&typeof n=="object"}var symbolTag$3="[object Symbol]";function isSymbol(n){return typeof n=="symbol"||isObjectLike(n)&&baseGetTag(n)==symbolTag$3}function arrayMap(n,i){for(var e=-1,t=n==null?0:n.length,o=Array(t);++e<t;)o[e]=i(n[e],e,n);return o}var isArray$1=Array.isArray,symbolProto$2=Symbol$1?Symbol$1.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString(n){if(typeof n=="string")return n;if(isArray$1(n))return arrayMap(n,baseToString)+"";if(isSymbol(n))return symbolToString?symbolToString.call(n):"";var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}var reWhitespace=/\s/;function trimmedEndIndex(n){for(var i=n.length;i--&&reWhitespace.test(n.charAt(i)););return i}var reTrimStart=/^\s+/;function baseTrim(n){return n&&n.slice(0,trimmedEndIndex(n)+1).replace(reTrimStart,"")}function isObject$1(n){var i=typeof n;return n!=null&&(i=="object"||i=="function")}var NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber(n){if(typeof n=="number")return n;if(isSymbol(n))return NAN;if(isObject$1(n)){var i=typeof n.valueOf=="function"?n.valueOf():n;n=isObject$1(i)?i+"":i}if(typeof n!="string")return n===0?n:+n;n=baseTrim(n);var e=reIsBinary.test(n);return e||reIsOctal.test(n)?freeParseInt(n.slice(2),e?2:8):reIsBadHex.test(n)?NAN:+n}var INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(n){if(!n)return n===0?n:0;if(n=toNumber(n),n===INFINITY||n===-INFINITY){var i=n<0?-1:1;return i*MAX_INTEGER}return n===n?n:0}function toInteger(n){var i=toFinite(n),e=i%1;return i===i?e?i-e:i:0}function identity(n){return n}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3(n){if(!isObject$1(n))return!1;var i=baseGetTag(n);return i==funcTag$2||i==genTag$1||i==asyncTag||i==proxyTag}var coreJsData=root$4["__core-js_shared__"],maskSrcKey=(function(){var n=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function isMasked(n){return!!maskSrcKey&&maskSrcKey in n}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(n){if(n!=null){try{return funcToString$2.call(n)}catch{}try{return n+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$f=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$e=objectProto$f.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$e).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(n){if(!isObject$1(n)||isMasked(n))return!1;var i=isFunction$3(n)?reIsNative:reIsHostCtor;return i.test(toSource(n))}function getValue$1(n,i){return n?.[i]}function getNative(n,i){var e=getValue$1(n,i);return baseIsNative(e)?e:void 0}var WeakMap$1=getNative(root$4,"WeakMap"),objectCreate=Object.create,baseCreate=(function(){function n(){}return function(i){if(!isObject$1(i))return{};if(objectCreate)return objectCreate(i);n.prototype=i;var e=new n;return n.prototype=void 0,e}})();function apply(n,i,e){switch(e.length){case 0:return n.call(i);case 1:return n.call(i,e[0]);case 2:return n.call(i,e[0],e[1]);case 3:return n.call(i,e[0],e[1],e[2])}return n.apply(i,e)}function copyArray(n,i){var e=-1,t=n.length;for(i||(i=Array(t));++e<t;)i[e]=n[e];return i}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut(n){var i=0,e=0;return function(){var t=nativeNow(),o=HOT_SPAN-(t-e);if(e=t,o>0){if(++i>=HOT_COUNT)return arguments[0]}else i=0;return n.apply(void 0,arguments)}}function constant(n){return function(){return n}}var defineProperty$1=(function(){try{var n=getNative(Object,"defineProperty");return n({},"",{}),n}catch{}})(),baseSetToString=defineProperty$1?function(n,i){return defineProperty$1(n,"toString",{configurable:!0,enumerable:!1,value:constant(i),writable:!0})}:identity,setToString=shortOut(baseSetToString);function arrayEach(n,i){for(var e=-1,t=n==null?0:n.length;++e<t&&i(n[e],e,n)!==!1;);return n}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(n,i){var e=typeof n;return i=i??MAX_SAFE_INTEGER$1,!!i&&(e=="number"||e!="symbol"&&reIsUint.test(n))&&n>-1&&n%1==0&&n<i}function baseAssignValue(n,i,e){i=="__proto__"&&defineProperty$1?defineProperty$1(n,i,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[i]=e}function eq(n,i){return n===i||n!==n&&i!==i}var objectProto$e=Object.prototype,hasOwnProperty$d=objectProto$e.hasOwnProperty;function assignValue(n,i,e){var t=n[i];(!(hasOwnProperty$d.call(n,i)&&eq(t,e))||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}function copyObject(n,i,e,t){var o=!e;e||(e={});for(var d=-1,p=i.length;++d<p;){var h=i[d],y=void 0;y===void 0&&(y=n[h]),o?baseAssignValue(e,h,y):assignValue(e,h,y)}return e}var nativeMax$2=Math.max;function overRest(n,i,e){return i=nativeMax$2(i===void 0?n.length-1:i,0),function(){for(var t=arguments,o=-1,d=nativeMax$2(t.length-i,0),p=Array(d);++o<d;)p[o]=t[i+o];o=-1;for(var h=Array(i+1);++o<i;)h[o]=t[o];return h[i]=e(p),apply(n,this,h)}}function baseRest(n,i){return setToString(overRest(n,i,identity),n+"")}var MAX_SAFE_INTEGER=9007199254740991;function isLength(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=MAX_SAFE_INTEGER}function isArrayLike(n){return n!=null&&isLength(n.length)&&!isFunction$3(n)}function isIterateeCall(n,i,e){if(!isObject$1(e))return!1;var t=typeof i;return(t=="number"?isArrayLike(e)&&isIndex(i,e.length):t=="string"&&i in e)?eq(e[i],n):!1}function createAssigner(n){return baseRest(function(i,e){var t=-1,o=e.length,d=o>1?e[o-1]:void 0,p=o>2?e[2]:void 0;for(d=n.length>3&&typeof d=="function"?(o--,d):void 0,p&&isIterateeCall(e[0],e[1],p)&&(d=o<3?void 0:d,o=1),i=Object(i);++t<o;){var h=e[t];h&&n(i,h,t,d)}return i})}var objectProto$d=Object.prototype;function isPrototype(n){var i=n&&n.constructor,e=typeof i=="function"&&i.prototype||objectProto$d;return n===e}function baseTimes(n,i){for(var e=-1,t=Array(n);++e<n;)t[e]=i(e);return t}var argsTag$3="[object Arguments]";function baseIsArguments(n){return isObjectLike(n)&&baseGetTag(n)==argsTag$3}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty,propertyIsEnumerable$1=objectProto$c.propertyIsEnumerable,isArguments=baseIsArguments((function(){return arguments})())?baseIsArguments:function(n){return isObjectLike(n)&&hasOwnProperty$c.call(n,"callee")&&!propertyIsEnumerable$1.call(n,"callee")};function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$3=moduleExports$2?root$4.Buffer:void 0,nativeIsBuffer=Buffer$3?Buffer$3.isBuffer:void 0,isBuffer=nativeIsBuffer||stubFalse,argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray(n){return isObjectLike(n)&&isLength(n.length)&&!!typedArrayTags[baseGetTag(n)]}function baseUnary(n){return function(i){return n(i)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal.process,nodeUtil=(function(){try{var n=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return n||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}})(),nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,objectProto$b=Object.prototype,hasOwnProperty$b=objectProto$b.hasOwnProperty;function arrayLikeKeys(n,i){var e=isArray$1(n),t=!e&&isArguments(n),o=!e&&!t&&isBuffer(n),d=!e&&!t&&!o&&isTypedArray(n),p=e||t||o||d,h=p?baseTimes(n.length,String):[],y=h.length;for(var $ in n)(i||hasOwnProperty$b.call(n,$))&&!(p&&($=="length"||o&&($=="offset"||$=="parent")||d&&($=="buffer"||$=="byteLength"||$=="byteOffset")||isIndex($,y)))&&h.push($);return h}function overArg(n,i){return function(e){return n(i(e))}}var nativeKeys=overArg(Object.keys,Object),objectProto$a=Object.prototype,hasOwnProperty$a=objectProto$a.hasOwnProperty;function baseKeys(n){if(!isPrototype(n))return nativeKeys(n);var i=[];for(var e in Object(n))hasOwnProperty$a.call(n,e)&&e!="constructor"&&i.push(e);return i}function keys$1(n){return isArrayLike(n)?arrayLikeKeys(n):baseKeys(n)}function nativeKeysIn(n){var i=[];if(n!=null)for(var e in Object(n))i.push(e);return i}var objectProto$9=Object.prototype,hasOwnProperty$9=objectProto$9.hasOwnProperty;function baseKeysIn(n){if(!isObject$1(n))return nativeKeysIn(n);var i=isPrototype(n),e=[];for(var t in n)t=="constructor"&&(i||!hasOwnProperty$9.call(n,t))||e.push(t);return e}function keysIn(n){return isArrayLike(n)?arrayLikeKeys(n,!0):baseKeysIn(n)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(n,i){if(isArray$1(n))return!1;var e=typeof n;return e=="number"||e=="symbol"||e=="boolean"||n==null||isSymbol(n)?!0:reIsPlainProp.test(n)||!reIsDeepProp.test(n)||i!=null&&n in Object(i)}var nativeCreate=getNative(Object,"create");function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{},this.size=0}function hashDelete(n){var i=this.has(n)&&delete this.__data__[n];return this.size-=i?1:0,i}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$8=objectProto$8.hasOwnProperty;function hashGet(n){var i=this.__data__;if(nativeCreate){var e=i[n];return e===HASH_UNDEFINED$2?void 0:e}return hasOwnProperty$8.call(i,n)?i[n]:void 0}var objectProto$7=Object.prototype,hasOwnProperty$7=objectProto$7.hasOwnProperty;function hashHas(n){var i=this.__data__;return nativeCreate?i[n]!==void 0:hasOwnProperty$7.call(i,n)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet(n,i){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=nativeCreate&&i===void 0?HASH_UNDEFINED$1:i,this}function Hash(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf(n,i){for(var e=n.length;e--;)if(eq(n[e][0],i))return e;return-1}var arrayProto=Array.prototype,splice$1=arrayProto.splice;function listCacheDelete(n){var i=this.__data__,e=assocIndexOf(i,n);if(e<0)return!1;var t=i.length-1;return e==t?i.pop():splice$1.call(i,e,1),--this.size,!0}function listCacheGet(n){var i=this.__data__,e=assocIndexOf(i,n);return e<0?void 0:i[e][1]}function listCacheHas(n){return assocIndexOf(this.__data__,n)>-1}function listCacheSet(n,i){var e=this.__data__,t=assocIndexOf(e,n);return t<0?(++this.size,e.push([n,i])):e[t][1]=i,this}function ListCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;var Map$2=getNative(root$4,"Map");function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable(n){var i=typeof n;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?n!=="__proto__":n===null}function getMapData(n,i){var e=n.__data__;return isKeyable(i)?e[typeof i=="string"?"string":"hash"]:e.map}function mapCacheDelete(n){var i=getMapData(this,n).delete(n);return this.size-=i?1:0,i}function mapCacheGet(n){return getMapData(this,n).get(n)}function mapCacheHas(n){return getMapData(this,n).has(n)}function mapCacheSet(n,i){var e=getMapData(this,n),t=e.size;return e.set(n,i),this.size+=e.size==t?0:1,this}function MapCache(n){var i=-1,e=n==null?0:n.length;for(this.clear();++i<e;){var t=n[i];this.set(t[0],t[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$1="Expected a function";function memoize(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT$1);var e=function(){var t=arguments,o=i?i.apply(this,t):t[0],d=e.cache;if(d.has(o))return d.get(o);var p=n.apply(this,t);return e.cache=d.set(o,p)||d,p};return e.cache=new(memoize.Cache||MapCache),e}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(n){var i=memoize(n,function(t){return e.size===MAX_MEMOIZE_SIZE&&e.clear(),t}),e=i.cache;return i}var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=memoizeCapped(function(n){var i=[];return n.charCodeAt(0)===46&&i.push(""),n.replace(rePropName,function(e,t,o,d){i.push(o?d.replace(reEscapeChar,"$1"):t||e)}),i});function toString$2(n){return n==null?"":baseToString(n)}function castPath(n,i){return isArray$1(n)?n:isKey(n,i)?[n]:stringToPath(toString$2(n))}function toKey(n){if(typeof n=="string"||isSymbol(n))return n;var i=n+"";return i=="0"&&1/n==-1/0?"-0":i}function baseGet(n,i){i=castPath(i,n);for(var e=0,t=i.length;n!=null&&e<t;)n=n[toKey(i[e++])];return e&&e==t?n:void 0}function get$1(n,i,e){var t=n==null?void 0:baseGet(n,i);return t===void 0?e:t}function arrayPush(n,i){for(var e=-1,t=i.length,o=n.length;++e<t;)n[o+e]=i[e];return n}var spreadableSymbol=Symbol$1?Symbol$1.isConcatSpreadable:void 0;function isFlattenable(n){return isArray$1(n)||isArguments(n)||!!(spreadableSymbol&&n&&n[spreadableSymbol])}function baseFlatten(n,i,e,t,o){var d=-1,p=n.length;for(e||(e=isFlattenable),o||(o=[]);++d<p;){var h=n[d];e(h)?arrayPush(o,h):o[o.length]=h}return o}function flatten(n){var i=n==null?0:n.length;return i?baseFlatten(n):[]}function flatRest(n){return setToString(overRest(n,void 0,flatten),n+"")}var getPrototype=overArg(Object.getPrototypeOf,Object),objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$6=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$6=objectProto$6.hasOwnProperty,objectCtorString$1=funcToString.call(Object);function isPlainObject$2(n){if(!isObjectLike(n)||baseGetTag(n)!=objectTag$3)return!1;var i=getPrototype(n);if(i===null)return!0;var e=hasOwnProperty$6.call(i,"constructor")&&i.constructor;return typeof e=="function"&&e instanceof e&&funcToString.call(e)==objectCtorString$1}const isPlainObject$3=Object.freeze(Object.defineProperty({__proto__:null,default:isPlainObject$2},Symbol.toStringTag,{value:"Module"}));var FUNC_ERROR_TEXT="Expected a function";function before(n,i){var e;if(typeof i!="function")throw new TypeError(FUNC_ERROR_TEXT);return n=toInteger(n),function(){return--n>0&&(e=i.apply(this,arguments)),n<=1&&(i=void 0),e}}function baseSlice(n,i,e){var t=-1,o=n.length;i<0&&(i=-i>o?0:o+i),e=e>o?o:e,e<0&&(e+=o),o=i>e?0:e-i>>>0,i>>>=0;for(var d=Array(o);++t<o;)d[t]=n[t+i];return d}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(n){var i=this.__data__,e=i.delete(n);return this.size=i.size,e}function stackGet(n){return this.__data__.get(n)}function stackHas(n){return this.__data__.has(n)}var LARGE_ARRAY_SIZE=200;function stackSet(n,i){var e=this.__data__;if(e instanceof ListCache){var t=e.__data__;if(!Map$2||t.length<LARGE_ARRAY_SIZE-1)return t.push([n,i]),this.size=++e.size,this;e=this.__data__=new MapCache(t)}return e.set(n,i),this.size=e.size,this}function Stack(n){var i=this.__data__=new ListCache(n);this.size=i.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign(n,i){return n&©Object(i,keys$1(i),n)}function baseAssignIn(n,i){return n&©Object(i,keysIn(i),n)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$2=moduleExports?root$4.Buffer:void 0,allocUnsafe=Buffer$2?Buffer$2.allocUnsafe:void 0;function cloneBuffer(n,i){if(i)return n.slice();var e=n.length,t=allocUnsafe?allocUnsafe(e):new n.constructor(e);return n.copy(t),t}function arrayFilter(n,i){for(var e=-1,t=n==null?0:n.length,o=0,d=[];++e<t;){var p=n[e];i(p,e,n)&&(d[o++]=p)}return d}function stubArray(){return[]}var objectProto$5=Object.prototype,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function(n){return n==null?[]:(n=Object(n),arrayFilter(nativeGetSymbols$1(n),function(i){return propertyIsEnumerable.call(n,i)}))}:stubArray;function copySymbols(n,i){return copyObject(n,getSymbols(n),i)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function(n){for(var i=[];n;)arrayPush(i,getSymbols(n)),n=getPrototype(n);return i}:stubArray;function copySymbolsIn(n,i){return copyObject(n,getSymbolsIn(n),i)}function baseGetAllKeys(n,i,e){var t=i(n);return isArray$1(n)?t:arrayPush(t,e(n))}function getAllKeys(n){return baseGetAllKeys(n,keys$1,getSymbols)}function getAllKeysIn(n){return baseGetAllKeys(n,keysIn,getSymbolsIn)}var DataView$1=getNative(root$4,"DataView"),Promise$1=getNative(root$4,"Promise"),Set$1=getNative(root$4,"Set"),mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$1),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag=baseGetTag;(DataView$1&&getTag(new DataView$1(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$1&&getTag(Promise$1.resolve())!=promiseTag||Set$1&&getTag(new Set$1)!=setTag$4||WeakMap$1&&getTag(new WeakMap$1)!=weakMapTag$1)&&(getTag=function(n){var i=baseGetTag(n),e=i==objectTag$2?n.constructor:void 0,t=e?toSource(e):"";if(t)switch(t){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return i});var objectProto$4=Object.prototype,hasOwnProperty$5=objectProto$4.hasOwnProperty;function initCloneArray(n){var i=n.length,e=new n.constructor(i);return i&&typeof n[0]=="string"&&hasOwnProperty$5.call(n,"index")&&(e.index=n.index,e.input=n.input),e}var Uint8Array$1=root$4.Uint8Array;function cloneArrayBuffer(n){var i=new n.constructor(n.byteLength);return new Uint8Array$1(i).set(new Uint8Array$1(n)),i}function cloneDataView(n,i){var e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}var reFlags=/\w*$/;function cloneRegExp(n){var i=new n.constructor(n.source,reFlags.exec(n));return i.lastIndex=n.lastIndex,i}var symbolProto$1=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol(n){return symbolValueOf$1?Object(symbolValueOf$1.call(n)):{}}function cloneTypedArray(n,i){var e=i?cloneArrayBuffer(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",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$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag(n,i,e){var t=n.constructor;switch(i){case arrayBufferTag$2:return cloneArrayBuffer(n);case boolTag$2:case dateTag$2:return new t(+n);case dataViewTag$2:return cloneDataView(n,e);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray(n,e);case mapTag$3:return new t;case numberTag$2:case stringTag$2:return new t(n);case regexpTag$2:return cloneRegExp(n);case setTag$3:return new t;case symbolTag$2:return cloneSymbol(n)}}function initCloneObject(n){return typeof n.constructor=="function"&&!isPrototype(n)?baseCreate(getPrototype(n)):{}}var mapTag$2="[object Map]";function baseIsMap(n){return isObjectLike(n)&&getTag(n)==mapTag$2}var nodeIsMap=nodeUtil&&nodeUtil.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap,setTag$2="[object Set]";function baseIsSet(n){return isObjectLike(n)&&getTag(n)==setTag$2}var nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,CLONE_DEEP_FLAG$2=1,CLONE_FLAT_FLAG$1=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone(n,i,e,t,o,d){var p,h=i&CLONE_DEEP_FLAG$2,y=i&CLONE_FLAT_FLAG$1,$=i&CLONE_SYMBOLS_FLAG$2;if(e&&(p=o?e(n,t,o,d):e(n)),p!==void 0)return p;if(!isObject$1(n))return n;var E=isArray$1(n);if(E){if(p=initCloneArray(n),!h)return copyArray(n,p)}else{var M=getTag(n),H=M==funcTag||M==genTag;if(isBuffer(n))return cloneBuffer(n,h);if(M==objectTag$1||M==argsTag$1||H&&!o){if(p=y||H?{}:initCloneObject(n),!h)return y?copySymbolsIn(n,baseAssignIn(p,n)):copySymbols(n,baseAssign(p,n))}else{if(!cloneableTags[M])return o?n:{};p=initCloneByTag(n,M,h)}}d||(d=new Stack);var Z=d.get(n);if(Z)return Z;d.set(n,p),isSet$1(n)?n.forEach(function(we){p.add(baseClone(we,i,e,we,n,d))}):isMap$1(n)&&n.forEach(function(we,Ce){p.set(Ce,baseClone(we,i,e,Ce,n,d))});var be=$?y?getAllKeysIn:getAllKeys:y?keysIn:keys$1,ye=E?void 0:be(n);return arrayEach(ye||n,function(we,Ce){ye&&(Ce=we,we=n[Ce]),assignValue(p,Ce,baseClone(we,i,e,Ce,n,d))}),p}var CLONE_DEEP_FLAG$1=1,CLONE_SYMBOLS_FLAG$1=4;function cloneDeep(n){return baseClone(n,CLONE_DEEP_FLAG$1|CLONE_SYMBOLS_FLAG$1)}const cloneDeep$1=Object.freeze(Object.defineProperty({__proto__:null,default:cloneDeep},Symbol.toStringTag,{value:"Module"}));var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(n){return this.__data__.set(n,HASH_UNDEFINED),this}function setCacheHas(n){return this.__data__.has(n)}function SetCache(n){var i=-1,e=n==null?0:n.length;for(this.__data__=new MapCache;++i<e;)this.add(n[i])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(n,i){for(var e=-1,t=n==null?0:n.length;++e<t;)if(i(n[e],e,n))return!0;return!1}function cacheHas(n,i){return n.has(i)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(n,i,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$5,h=n.length,y=i.length;if(h!=y&&!(p&&y>h))return!1;var $=d.get(n),E=d.get(i);if($&&E)return $==i&&E==n;var M=-1,H=!0,Z=e&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(d.set(n,i),d.set(i,n);++M<h;){var be=n[M],ye=i[M];if(t)var we=p?t(ye,be,M,i,n,d):t(be,ye,M,n,i,d);if(we!==void 0){if(we)continue;H=!1;break}if(Z){if(!arraySome(i,function(Ce,xe){if(!cacheHas(Z,xe)&&(be===Ce||o(be,Ce,e,t,d)))return Z.push(xe)})){H=!1;break}}else if(!(be===ye||o(be,ye,e,t,d))){H=!1;break}}return d.delete(n),d.delete(i),H}function mapToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t,o){e[++i]=[o,t]}),e}function setToArray(n){var i=-1,e=Array(n.size);return n.forEach(function(t){e[++i]=t}),e}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag(n,i,e,t,o,d,p){switch(e){case dataViewTag:if(n.byteLength!=i.byteLength||n.byteOffset!=i.byteOffset)return!1;n=n.buffer,i=i.buffer;case arrayBufferTag:return!(n.byteLength!=i.byteLength||!d(new Uint8Array$1(n),new Uint8Array$1(i)));case boolTag:case dateTag:case numberTag:return eq(+n,+i);case errorTag:return n.name==i.name&&n.message==i.message;case regexpTag:case stringTag:return n==i+"";case mapTag:var h=mapToArray;case setTag:var y=t&COMPARE_PARTIAL_FLAG$4;if(h||(h=setToArray),n.size!=i.size&&!y)return!1;var $=p.get(n);if($)return $==i;t|=COMPARE_UNORDERED_FLAG$2,p.set(n,i);var E=equalArrays(h(n),h(i),t,o,d,p);return p.delete(n),E;case symbolTag:if(symbolValueOf)return symbolValueOf.call(n)==symbolValueOf.call(i)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$3=Object.prototype,hasOwnProperty$4=objectProto$3.hasOwnProperty;function equalObjects(n,i,e,t,o,d){var p=e&COMPARE_PARTIAL_FLAG$3,h=getAllKeys(n),y=h.length,$=getAllKeys(i),E=$.length;if(y!=E&&!p)return!1;for(var M=y;M--;){var H=h[M];if(!(p?H in i:hasOwnProperty$4.call(i,H)))return!1}var Z=d.get(n),be=d.get(i);if(Z&&be)return Z==i&&be==n;var ye=!0;d.set(n,i),d.set(i,n);for(var we=p;++M<y;){H=h[M];var Ce=n[H],xe=i[H];if(t)var Ne=p?t(xe,Ce,H,i,n,d):t(Ce,xe,H,n,i,d);if(!(Ne===void 0?Ce===xe||o(Ce,xe,e,t,d):Ne)){ye=!1;break}we||(we=H=="constructor")}if(ye&&!we){var Fe=n.constructor,Le=i.constructor;Fe!=Le&&"constructor"in n&&"constructor"in i&&!(typeof Fe=="function"&&Fe instanceof Fe&&typeof Le=="function"&&Le instanceof Le)&&(ye=!1)}return d.delete(n),d.delete(i),ye}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseIsEqualDeep(n,i,e,t,o,d){var p=isArray$1(n),h=isArray$1(i),y=p?arrayTag:getTag(n),$=h?arrayTag:getTag(i);y=y==argsTag?objectTag:y,$=$==argsTag?objectTag:$;var E=y==objectTag,M=$==objectTag,H=y==$;if(H&&isBuffer(n)){if(!isBuffer(i))return!1;p=!0,E=!1}if(H&&!E)return d||(d=new Stack),p||isTypedArray(n)?equalArrays(n,i,e,t,o,d):equalByTag(n,i,y,e,t,o,d);if(!(e&COMPARE_PARTIAL_FLAG$2)){var Z=E&&hasOwnProperty$3.call(n,"__wrapped__"),be=M&&hasOwnProperty$3.call(i,"__wrapped__");if(Z||be){var ye=Z?n.value():n,we=be?i.value():i;return d||(d=new Stack),o(ye,we,e,t,d)}}return H?(d||(d=new Stack),equalObjects(n,i,e,t,o,d)):!1}function baseIsEqual(n,i,e,t,o){return n===i?!0:n==null||i==null||!isObjectLike(n)&&!isObjectLike(i)?n!==n&&i!==i:baseIsEqualDeep(n,i,e,t,baseIsEqual,o)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(n,i,e,t){var o=e.length,d=o;if(n==null)return!d;for(n=Object(n);o--;){var p=e[o];if(p[2]?p[1]!==n[p[0]]:!(p[0]in n))return!1}for(;++o<d;){p=e[o];var h=p[0],y=n[h],$=p[1];if(p[2]){if(y===void 0&&!(h in n))return!1}else{var E=new Stack,M;if(!(M===void 0?baseIsEqual($,y,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,t,E):M))return!1}}return!0}function isStrictComparable(n){return n===n&&!isObject$1(n)}function getMatchData(n){for(var i=keys$1(n),e=i.length;e--;){var t=i[e],o=n[t];i[e]=[t,o,isStrictComparable(o)]}return i}function matchesStrictComparable(n,i){return function(e){return e==null?!1:e[n]===i&&(i!==void 0||n in Object(e))}}function baseMatches(n){var i=getMatchData(n);return i.length==1&&i[0][2]?matchesStrictComparable(i[0][0],i[0][1]):function(e){return e===n||baseIsMatch(e,n,i)}}function baseHasIn(n,i){return n!=null&&i in Object(n)}function hasPath(n,i,e){i=castPath(i,n);for(var t=-1,o=i.length,d=!1;++t<o;){var p=toKey(i[t]);if(!(d=n!=null&&e(n,p)))break;n=n[p]}return d||++t!=o?d:(o=n==null?0:n.length,!!o&&isLength(o)&&isIndex(p,o)&&(isArray$1(n)||isArguments(n)))}function hasIn(n,i){return n!=null&&hasPath(n,i,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(n,i){return isKey(n)&&isStrictComparable(i)?matchesStrictComparable(toKey(n),i):function(e){var t=get$1(e,n);return t===void 0&&t===i?hasIn(e,n):baseIsEqual(i,t,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(n){return function(i){return i?.[n]}}function basePropertyDeep(n){return function(i){return baseGet(i,n)}}function property(n){return isKey(n)?baseProperty(toKey(n)):basePropertyDeep(n)}function baseIteratee(n){return typeof n=="function"?n:n==null?identity:typeof n=="object"?isArray$1(n)?baseMatchesProperty(n[0],n[1]):baseMatches(n):property(n)}function arrayAggregator(n,i,e,t){for(var o=-1,d=n==null?0:n.length;++o<d;){var p=n[o];i(t,p,e(p),n)}return t}function createBaseFor(n){return function(i,e,t){for(var o=-1,d=Object(i),p=t(i),h=p.length;h--;){var y=p[++o];if(e(d[y],y,d)===!1)break}return i}}var baseFor=createBaseFor();function baseForOwn(n,i){return n&&baseFor(n,i,keys$1)}function createBaseEach(n,i){return function(e,t){if(e==null)return e;if(!isArrayLike(e))return n(e,t);for(var o=e.length,d=-1,p=Object(e);++d<o&&t(p[d],d,p)!==!1;);return e}}var baseEach=createBaseEach(baseForOwn);function baseAggregator(n,i,e,t){return baseEach(n,function(o,d,p){i(t,o,e(o),p)}),t}function createAggregator(n,i){return function(e,t){var o=isArray$1(e)?arrayAggregator:baseAggregator,d=i?i():{};return o(e,n,baseIteratee(t),d)}}function assignMergeValue(n,i,e){(e!==void 0&&!eq(n[i],e)||e===void 0&&!(i in n))&&baseAssignValue(n,i,e)}function isArrayLikeObject(n){return isObjectLike(n)&&isArrayLike(n)}function safeGet(n,i){if(!(i==="constructor"&&typeof n[i]=="function")&&i!="__proto__")return n[i]}function toPlainObject(n){return copyObject(n,keysIn(n))}function baseMergeDeep(n,i,e,t,o,d,p){var h=safeGet(n,e),y=safeGet(i,e),$=p.get(y);if($){assignMergeValue(n,e,$);return}var E=d?d(h,y,e+"",n,i,p):void 0,M=E===void 0;if(M){var H=isArray$1(y),Z=!H&&isBuffer(y),be=!H&&!Z&&isTypedArray(y);E=y,H||Z||be?isArray$1(h)?E=h:isArrayLikeObject(h)?E=copyArray(h):Z?(M=!1,E=cloneBuffer(y,!0)):be?(M=!1,E=cloneTypedArray(y,!0)):E=[]:isPlainObject$2(y)||isArguments(y)?(E=h,isArguments(h)?E=toPlainObject(h):(!isObject$1(h)||isFunction$3(h))&&(E=initCloneObject(y))):M=!1}M&&(p.set(y,E),o(E,y,t,d,p),p.delete(y)),assignMergeValue(n,e,E)}function baseMerge(n,i,e,t,o){n!==i&&baseFor(i,function(d,p){if(o||(o=new Stack),isObject$1(d))baseMergeDeep(n,i,p,e,baseMerge,t,o);else{var h=t?t(safeGet(n,p),d,p+"",n,i,o):void 0;h===void 0&&(h=d),assignMergeValue(n,p,h)}},keysIn)}var mergeWith=createAssigner(function(n,i,e,t){baseMerge(n,i,e,t)});function last(n){var i=n==null?0:n.length;return i?n[i-1]:void 0}function baseMap(n,i){var e=-1,t=isArrayLike(n)?Array(n.length):[];return baseEach(n,function(o,d,p){t[++e]=i(o,d,p)}),t}var objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty,groupBy=createAggregator(function(n,i,e){hasOwnProperty$2.call(n,e)?n[e].push(i):baseAssignValue(n,e,[i])});function parent(n,i){return i.length<2?n:baseGet(n,baseSlice(i,0,-1))}function isEqual$1(n,i){return baseIsEqual(n,i)}var merge$1=createAssigner(function(n,i,e){baseMerge(n,i,e)}),objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseUnset(n,i){i=castPath(i,n);var e=-1,t=i.length;if(!t)return!0;for(var o=n==null||typeof n!="object"&&typeof n!="function";++e<t;){var d=i[e];if(typeof d=="string"){if(d==="__proto__"&&!hasOwnProperty$1.call(n,"__proto__"))return!1;if(d==="constructor"&&e+1<t&&typeof i[e+1]=="string"&&i[e+1]==="prototype"){if(o&&e===0)continue;return!1}}}var p=parent(n,i);return p==null||delete p[toKey(last(i))]}function customOmitClone(n){return isPlainObject$2(n)?void 0:n}var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4,omit=flatRest(function(n,i){var e={};if(n==null)return e;var t=!1;i=arrayMap(i,function(d){return d=castPath(d,n),t||(t=d.length>1),d}),copyObject(n,getAllKeysIn(n),e),t&&(e=baseClone(e,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG,customOmitClone));for(var o=i.length;o--;)baseUnset(e,i[o]);return e});function baseSet(n,i,e,t){if(!isObject$1(n))return n;i=castPath(i,n);for(var o=-1,d=i.length,p=d-1,h=n;h!=null&&++o<d;){var y=toKey(i[o]),$=e;if(y==="__proto__"||y==="constructor"||y==="prototype")return n;if(o!=p){var E=h[y];$=void 0,$===void 0&&($=isObject$1(E)?E:isIndex(i[o+1])?[]:{})}assignValue(h,y,$),h=h[y]}return n}function basePickBy(n,i,e){for(var t=-1,o=i.length,d={};++t<o;){var p=i[t],h=baseGet(n,p);e(h,p)&&baseSet(d,castPath(p,n),h)}return d}function once(n){return before(2,n)}function baseSortBy(n,i){var e=n.length;for(n.sort(i);e--;)n[e]=n[e].value;return n}function compareAscending(n,i){if(n!==i){var e=n!==void 0,t=n===null,o=n===n,d=isSymbol(n),p=i!==void 0,h=i===null,y=i===i,$=isSymbol(i);if(!h&&!$&&!d&&n>i||d&&p&&y&&!h&&!$||t&&p&&y||!e&&y||!o)return 1;if(!t&&!d&&!$&&n<i||$&&e&&o&&!t&&!d||h&&e&&o||!p&&o||!y)return-1}return 0}function compareMultiple(n,i,e){for(var t=-1,o=n.criteria,d=i.criteria,p=o.length,h=e.length;++t<p;){var y=compareAscending(o[t],d[t]);if(y){if(t>=h)return y;var $=e[t];return y*($=="desc"?-1:1)}}return n.index-i.index}function baseOrderBy(n,i,e){i.length?i=arrayMap(i,function(d){return isArray$1(d)?function(p){return baseGet(p,d.length===1?d[0]:d)}:d}):i=[identity];var t=-1;i=arrayMap(i,baseUnary(baseIteratee));var o=baseMap(n,function(d,p,h){var y=arrayMap(i,function($){return $(d)});return{criteria:y,index:++t,value:d}});return baseSortBy(o,function(d,p){return compareMultiple(d,p,e)})}function basePick(n,i){return basePickBy(n,i,function(e,t){return hasIn(n,t)})}var pick$2=flatRest(function(n,i){return n==null?{}:basePick(n,i)}),nativeCeil=Math.ceil,nativeMax$1=Math.max;function baseRange(n,i,e,t){for(var o=-1,d=nativeMax$1(nativeCeil((i-n)/(e||1)),0),p=Array(d);d--;)p[++o]=n,n+=e;return p}function createRange(n){return function(i,e,t){return t&&typeof t!="number"&&isIterateeCall(i,e,t)&&(e=t=void 0),i=toFinite(i),e===void 0?(e=i,i=0):e=toFinite(e),t=t===void 0?i<e?1:-1:toFinite(t),baseRange(i,e,t)}}var range=createRange(),sortBy=baseRest(function(n,i){if(n==null)return[];var e=i.length;return e>1&&isIterateeCall(n,i[0],i[1])?i=[]:e>2&&isIterateeCall(i[0],i[1],i[2])&&(i=[i[0]]),baseOrderBy(n,baseFlatten(i),[])}),nativeMax=Math.max;function unzip(n){if(!(n&&n.length))return[];var i=0;return n=arrayFilter(n,function(e){if(isArrayLikeObject(e))return i=nativeMax(e.length,i),!0}),baseTimes(i,function(e){return arrayMap(n,baseProperty(e))})}var zip=baseRest(unzip),cuint={},uint32$1={exports:{}},uint32=uint32$1.exports,hasRequiredUint32;function requireUint32(){return hasRequiredUint32||(hasRequiredUint32=1,(function(n){(function(i){e(Math.pow(36,5)),e(Math.pow(16,7)),e(Math.pow(10,9)),e(Math.pow(2,30)),e(36),e(16),e(10),e(2);function e(p,h){if(!(this instanceof e))return new e(p,h);if(this._low=0,this._high=0,this.remainder=null,typeof h>"u")return o.call(this,p);if(typeof p=="string")return d.call(this,p,h);t.call(this,p,h)}function t(p,h){return this._low=p|0,this._high=h|0,this}e.prototype.fromBits=t;function o(p){return this._low=p&65535,this._high=p>>>16,this}e.prototype.fromNumber=o;function d(p,h){var y=parseInt(p,h||10);return this._low=y&65535,this._high=y>>>16,this}e.prototype.fromString=d,e.prototype.toNumber=function(){return this._high*65536+this._low},e.prototype.toString=function(p){return this.toNumber().toString(p||10)},e.prototype.add=function(p){var h=this._low+p._low,y=h>>>16;return y+=this._high+p._high,this._low=h&65535,this._high=y&65535,this},e.prototype.subtract=function(p){return this.add(p.clone().negate())},e.prototype.multiply=function(p){var h=this._high,y=this._low,$=p._high,E=p._low,M,H;return H=y*E,M=H>>>16,M+=h*E,M&=65535,M+=y*$,this._low=H&65535,this._high=M&65535,this},e.prototype.div=function(p){if(p._low==0&&p._high==0)throw Error("division by zero");if(p._high==0&&p._low==1)return this.remainder=new e(0),this;if(p.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(p))return this.remainder=new e(0),this._low=1,this._high=0,this;for(var h=p.clone(),y=-1;!this.lt(h);)h.shiftLeft(1,!0),y++;for(this.remainder=this.clone(),this._low=0,this._high=0;y>=0;y--)h.shiftRight(1),this.remainder.lt(h)||(this.remainder.subtract(h),y>=16?this._high|=1<<y-16:this._low|=1<<y);return this},e.prototype.negate=function(){var p=(~this._low&65535)+1;return this._low=p&65535,this._high=~this._high+(p>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(p){return this._low==p._low&&this._high==p._high},e.prototype.greaterThan=e.prototype.gt=function(p){return this._high>p._high?!0:this._high<p._high?!1:this._low>p._low},e.prototype.lessThan=e.prototype.lt=function(p){return this._high<p._high?!0:this._high>p._high?!1:this._low<p._low},e.prototype.or=function(p){return this._low|=p._low,this._high|=p._high,this},e.prototype.and=function(p){return this._low&=p._low,this._high&=p._high,this},e.prototype.not=function(){return this._low=~this._low&65535,this._high=~this._high&65535,this},e.prototype.xor=function(p){return this._low^=p._low,this._high^=p._high,this},e.prototype.shiftRight=e.prototype.shiftr=function(p){return p>16?(this._low=this._high>>p-16,this._high=0):p==16?(this._low=this._high,this._high=0):(this._low=this._low>>p|this._high<<16-p&65535,this._high>>=p),this},e.prototype.shiftLeft=e.prototype.shiftl=function(p,h){return p>16?(this._high=this._low<<p-16,this._low=0,h||(this._high&=65535)):p==16?(this._high=this._low,this._low=0):(this._high=this._high<<p|this._low>>16-p,this._low=this._low<<p&65535,h||(this._high&=65535)),this},e.prototype.rotateLeft=e.prototype.rotl=function(p){var h=this._high<<16|this._low;return h=h<<p|h>>>32-p,this._low=h&65535,this._high=h>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(p){var h=this._high<<16|this._low;return h=h>>>p|h<<32-p,this._low=h&65535,this._high=h>>>16,this},e.prototype.clone=function(){return new e(this._low,this._high)},n.exports?n.exports=e:i.UINT32=e})(uint32)})(uint32$1)),uint32$1.exports}var uint64$1={exports:{}},uint64=uint64$1.exports,hasRequiredUint64;function requireUint64(){return hasRequiredUint64||(hasRequiredUint64=1,(function(n){(function(i){var e={16:o(Math.pow(16,5)),10:o(Math.pow(10,5)),2:o(Math.pow(2,5))},t={16:o(16),10:o(10),2:o(2)};function o(y,$,E,M){if(!(this instanceof o))return new o(y,$,E,M);if(this.remainder=null,typeof y=="string")return h.call(this,y,$);if(typeof $>"u")return p.call(this,y);d.apply(this,arguments)}function d(y,$,E,M){return typeof E>"u"?(this._a00=y&65535,this._a16=y>>>16,this._a32=$&65535,this._a48=$>>>16,this):(this._a00=y|0,this._a16=$|0,this._a32=E|0,this._a48=M|0,this)}o.prototype.fromBits=d;function p(y){return this._a00=y&65535,this._a16=y>>>16,this._a32=0,this._a48=0,this}o.prototype.fromNumber=p;function h(y,$){$=$||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var E=e[$]||new o(Math.pow($,5)),M=0,H=y.length;M<H;M+=5){var Z=Math.min(5,H-M),be=parseInt(y.slice(M,M+Z),$);this.multiply(Z<5?new o(Math.pow($,Z)):E).add(new o(be))}return this}o.prototype.fromString=h,o.prototype.toNumber=function(){return this._a16*65536+this._a00},o.prototype.toString=function(y){y=y||10;var $=t[y]||new o(y);if(!this.gt($))return this.toNumber().toString(y);for(var E=this.clone(),M=new Array(64),H=63;H>=0&&(E.div($),M[H]=E.remainder.toNumber().toString(y),!!E.gt($));H--);return M[H-1]=E.toNumber().toString(y),M.join("")},o.prototype.add=function(y){var $=this._a00+y._a00,E=$>>>16;E+=this._a16+y._a16;var M=E>>>16;M+=this._a32+y._a32;var H=M>>>16;return H+=this._a48+y._a48,this._a00=$&65535,this._a16=E&65535,this._a32=M&65535,this._a48=H&65535,this},o.prototype.subtract=function(y){return this.add(y.clone().negate())},o.prototype.multiply=function(y){var $=this._a00,E=this._a16,M=this._a32,H=this._a48,Z=y._a00,be=y._a16,ye=y._a32,we=y._a48,Ce=$*Z,xe=Ce>>>16;xe+=$*be;var Ne=xe>>>16;xe&=65535,xe+=E*Z,Ne+=xe>>>16,Ne+=$*ye;var Fe=Ne>>>16;return Ne&=65535,Ne+=E*be,Fe+=Ne>>>16,Ne&=65535,Ne+=M*Z,Fe+=Ne>>>16,Fe+=$*we,Fe&=65535,Fe+=E*ye,Fe&=65535,Fe+=M*be,Fe&=65535,Fe+=H*Z,this._a00=Ce&65535,this._a16=xe&65535,this._a32=Ne&65535,this._a48=Fe&65535,this},o.prototype.div=function(y){if(y._a16==0&&y._a32==0&&y._a48==0){if(y._a00==0)throw Error("division by zero");if(y._a00==1)return this.remainder=new o(0),this}if(y.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(y))return this.remainder=new o(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var $=y.clone(),E=-1;!this.lt($);)$.shiftLeft(1,!0),E++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;E>=0;E--)$.shiftRight(1),this.remainder.lt($)||(this.remainder.subtract($),E>=48?this._a48|=1<<E-48:E>=32?this._a32|=1<<E-32:E>=16?this._a16|=1<<E-16:this._a00|=1<<E);return this},o.prototype.negate=function(){var y=(~this._a00&65535)+1;return this._a00=y&65535,y=(~this._a16&65535)+(y>>>16),this._a16=y&65535,y=(~this._a32&65535)+(y>>>16),this._a32=y&65535,this._a48=~this._a48+(y>>>16)&65535,this},o.prototype.equals=o.prototype.eq=function(y){return this._a48==y._a48&&this._a00==y._a00&&this._a32==y._a32&&this._a16==y._a16},o.prototype.greaterThan=o.prototype.gt=function(y){return this._a48>y._a48?!0:this._a48<y._a48?!1:this._a32>y._a32?!0:this._a32<y._a32?!1:this._a16>y._a16?!0:this._a16<y._a16?!1:this._a00>y._a00},o.prototype.lessThan=o.prototype.lt=function(y){return this._a48<y._a48?!0:this._a48>y._a48?!1:this._a32<y._a32?!0:this._a32>y._a32?!1:this._a16<y._a16?!0:this._a16>y._a16?!1:this._a00<y._a00},o.prototype.or=function(y){return this._a00|=y._a00,this._a16|=y._a16,this._a32|=y._a32,this._a48|=y._a48,this},o.prototype.and=function(y){return this._a00&=y._a00,this._a16&=y._a16,this._a32&=y._a32,this._a48&=y._a48,this},o.prototype.xor=function(y){return this._a00^=y._a00,this._a16^=y._a16,this._a32^=y._a32,this._a48^=y._a48,this},o.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},o.prototype.shiftRight=o.prototype.shiftr=function(y){return y%=64,y>=48?(this._a00=this._a48>>y-48,this._a16=0,this._a32=0,this._a48=0):y>=32?(y-=32,this._a00=(this._a32>>y|this._a48<<16-y)&65535,this._a16=this._a48>>y&65535,this._a32=0,this._a48=0):y>=16?(y-=16,this._a00=(this._a16>>y|this._a32<<16-y)&65535,this._a16=(this._a32>>y|this._a48<<16-y)&65535,this._a32=this._a48>>y&65535,this._a48=0):(this._a00=(this._a00>>y|this._a16<<16-y)&65535,this._a16=(this._a16>>y|this._a32<<16-y)&65535,this._a32=(this._a32>>y|this._a48<<16-y)&65535,this._a48=this._a48>>y&65535),this},o.prototype.shiftLeft=o.prototype.shiftl=function(y,$){return y%=64,y>=48?(this._a48=this._a00<<y-48,this._a32=0,this._a16=0,this._a00=0):y>=32?(y-=32,this._a48=this._a16<<y|this._a00>>16-y,this._a32=this._a00<<y&65535,this._a16=0,this._a00=0):y>=16?(y-=16,this._a48=this._a32<<y|this._a16>>16-y,this._a32=(this._a16<<y|this._a00>>16-y)&65535,this._a16=this._a00<<y&65535,this._a00=0):(this._a48=this._a48<<y|this._a32>>16-y,this._a32=(this._a32<<y|this._a16>>16-y)&65535,this._a16=(this._a16<<y|this._a00>>16-y)&65535,this._a00=this._a00<<y&65535),$||(this._a48&=65535),this},o.prototype.rotateLeft=o.prototype.rotl=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E<<y|M>>>32-y,Z=M<<y|E>>>32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>16,this},o.prototype.rotateRight=o.prototype.rotr=function(y){if(y%=64,y==0)return this;if(y>=32){var $=this._a00;if(this._a00=this._a32,this._a32=$,$=this._a48,this._a48=this._a16,this._a16=$,y==32)return this;y-=32}var E=this._a48<<16|this._a32,M=this._a16<<16|this._a00,H=E>>>y|M<<32-y,Z=M>>>y|E<<32-y;return this._a00=Z&65535,this._a16=Z>>>16,this._a32=H&65535,this._a48=H>>>16,this},o.prototype.clone=function(){return new o(this._a00,this._a16,this._a32,this._a48)},n.exports?n.exports=o:i.UINT64=o})(uint64)})(uint64$1)),uint64$1.exports}var hasRequiredCuint;function requireCuint(){return hasRequiredCuint||(hasRequiredCuint=1,cuint.UINT32=requireUint32(),cuint.UINT64=requireUint64()),cuint}var xxhash$1,hasRequiredXxhash;function requireXxhash(){if(hasRequiredXxhash)return xxhash$1;hasRequiredXxhash=1;var n=requireCuint().UINT32;n.prototype.xxh_update=function($,E){var M=e._low,H=e._high,Z,be;be=$*M,Z=be>>>16,Z+=E*M,Z&=65535,Z+=$*H;var ye=this._low+(be&65535),we=ye>>>16;we+=this._high+(Z&65535);var Ce=we<<16|ye&65535;Ce=Ce<<13|Ce>>>19,ye=Ce&65535,we=Ce>>>16,M=i._low,H=i._high,be=ye*M,Z=be>>>16,Z+=we*M,Z&=65535,Z+=ye*H,this._low=be&65535,this._high=Z&65535};var i=n("2654435761"),e=n("2246822519"),t=n("3266489917"),o=n("668265263"),d=n("374761393");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(16):this.memory=new Buffer(16)),this.memsize+Z<16)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,16-this.memsize):M?this.memory.set($.subarray(0,16-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,16-this.memsize);var ye=0;E?(this.v1.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v2.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v3.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2)),ye+=4,this.v4.xxh_update(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2))):(this.v1.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v2.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v3.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2]),ye+=4,this.v4.xxh_update(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2])),H+=16-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-16){var we=be-16;do E?(this.v1.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v2.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v3.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2)),H+=4,this.v4.xxh_update($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2))):(this.v1.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v2.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v3.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2]),H+=4,this.v4.xxh_update($[H+1]<<8|$[H],$[H+3]<<8|$[H+2])),H+=4;while(H<=we)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=new n;for(this.total_len>=16?Z=this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):Z=this.seed.clone().add(d),Z.add(ye.fromNumber(this.total_len));M<=H-4;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2]),Z.add(ye.multiply(t)).rotl(17).multiply(o),M+=4;for(;M<H;)ye.fromBits(E?$.charCodeAt(M++):$[M++],0),Z.add(ye.multiply(d)).rotl(11).multiply(i);return be=Z.clone().shiftRight(15),Z.xor(be).multiply(e),be=Z.clone().shiftRight(13),Z.xor(be).multiply(t),be=Z.clone().shiftRight(16),Z.xor(be),this.init(this.seed),Z},xxhash$1=h,xxhash$1}var xxhash64,hasRequiredXxhash64;function requireXxhash64(){if(hasRequiredXxhash64)return xxhash64;hasRequiredXxhash64=1;var n=requireCuint().UINT64,i=n("11400714785074694791"),e=n("14029467366897019727"),t=n("1609587929392839161"),o=n("9650029242287828579"),d=n("2870177450012600261");function p($){for(var E=[],M=0,H=$.length;M<H;M++){var Z=$.charCodeAt(M);Z<128?E.push(Z):Z<2048?E.push(192|Z>>6,128|Z&63):Z<55296||Z>=57344?E.push(224|Z>>12,128|Z>>6&63,128|Z&63):(M++,Z=65536+((Z&1023)<<10|$.charCodeAt(M)&1023),E.push(240|Z>>18,128|Z>>12&63,128|Z>>6&63,128|Z&63))}return new Uint8Array(E)}function h(){if(arguments.length==2)return new h(arguments[1]).update(arguments[0]).digest();if(!(this instanceof h))return new h(arguments[0]);y.call(this,arguments[0])}function y($){return this.seed=$ instanceof n?$.clone():n($),this.v1=this.seed.clone().add(i).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(i),this.total_len=0,this.memsize=0,this.memory=null,this}return h.prototype.init=y,h.prototype.update=function($){var E=typeof $=="string",M;E&&($=p($),E=!1,M=!0),typeof ArrayBuffer<"u"&&$ instanceof ArrayBuffer&&(M=!0,$=new Uint8Array($));var H=0,Z=$.length,be=H+Z;if(Z==0)return this;if(this.total_len+=Z,this.memsize==0&&(E?this.memory="":M?this.memory=new Uint8Array(32):this.memory=new Buffer(32)),this.memsize+Z<32)return E?this.memory+=$:M?this.memory.set($.subarray(0,Z),this.memsize):$.copy(this.memory,this.memsize,0,Z),this.memsize+=Z,this;if(this.memsize>0){E?this.memory+=$.slice(0,32-this.memsize):M?this.memory.set($.subarray(0,32-this.memsize),this.memsize):$.copy(this.memory,this.memsize,0,32-this.memsize);var ye=0;if(E){var we;we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory.charCodeAt(ye+1)<<8|this.memory.charCodeAt(ye),this.memory.charCodeAt(ye+3)<<8|this.memory.charCodeAt(ye+2),this.memory.charCodeAt(ye+5)<<8|this.memory.charCodeAt(ye+4),this.memory.charCodeAt(ye+7)<<8|this.memory.charCodeAt(ye+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),ye+=8,we=n(this.memory[ye+1]<<8|this.memory[ye],this.memory[ye+3]<<8|this.memory[ye+2],this.memory[ye+5]<<8|this.memory[ye+4],this.memory[ye+7]<<8|this.memory[ye+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=32-this.memsize,this.memsize=0,E&&(this.memory="")}if(H<=be-32){var Ce=be-32;do{if(E){var we;we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($.charCodeAt(H+1)<<8|$.charCodeAt(H),$.charCodeAt(H+3)<<8|$.charCodeAt(H+2),$.charCodeAt(H+5)<<8|$.charCodeAt(H+4),$.charCodeAt(H+7)<<8|$.charCodeAt(H+6)),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}else{var we;we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v1.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v2.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v3.add(we.multiply(e)).rotl(31).multiply(i),H+=8,we=n($[H+1]<<8|$[H],$[H+3]<<8|$[H+2],$[H+5]<<8|$[H+4],$[H+7]<<8|$[H+6]),this.v4.add(we.multiply(e)).rotl(31).multiply(i)}H+=8}while(H<=Ce)}return H<be&&(E?this.memory+=$.slice(H):M?this.memory.set($.subarray(H,be),this.memsize):$.copy(this.memory,this.memsize,H,be),this.memsize=be-H),this},h.prototype.digest=function(){var $=this.memory,E=typeof $=="string",M=0,H=this.memsize,Z,be,ye=new n;for(this.total_len>=32?(Z=this.v1.clone().rotl(1),Z.add(this.v2.clone().rotl(7)),Z.add(this.v3.clone().rotl(12)),Z.add(this.v4.clone().rotl(18)),Z.xor(this.v1.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v2.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v3.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o),Z.xor(this.v4.multiply(e).rotl(31).multiply(i)),Z.multiply(i).add(o)):Z=this.seed.clone().add(d),Z.add(ye.fromNumber(this.total_len));M<=H-8;)E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),$.charCodeAt(M+5)<<8|$.charCodeAt(M+4),$.charCodeAt(M+7)<<8|$.charCodeAt(M+6)):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],$[M+5]<<8|$[M+4],$[M+7]<<8|$[M+6]),ye.multiply(e).rotl(31).multiply(i),Z.xor(ye).rotl(27).multiply(i).add(o),M+=8;for(M+4<=H&&(E?ye.fromBits($.charCodeAt(M+1)<<8|$.charCodeAt(M),$.charCodeAt(M+3)<<8|$.charCodeAt(M+2),0,0):ye.fromBits($[M+1]<<8|$[M],$[M+3]<<8|$[M+2],0,0),Z.xor(ye.multiply(i)).rotl(23).multiply(e).add(t),M+=4);M<H;)ye.fromBits(E?$.charCodeAt(M++):$[M++],0,0,0),Z.xor(ye.multiply(d)).rotl(11).multiply(i);return be=Z.clone().shiftRight(33),Z.xor(be).multiply(e),be=Z.clone().shiftRight(29),Z.xor(be).multiply(t),be=Z.clone().shiftRight(32),Z.xor(be),this.init(this.seed),Z},xxhash64=h,xxhash64}var lib,hasRequiredLib;function requireLib(){return hasRequiredLib||(hasRequiredLib=1,lib={h32:requireXxhash(),h64:requireXxhash64()}),lib}var libExports=requireLib();const xxhash=getDefaultExportFromCjs(libExports),assertNever=n=>{throw new Error(`Reached a branch with non-exhaustive item: ${n}`)},GENERATED_ELEMENT_ID_PREFIX="$$ID";function debounce$2(n,i){let e;return(...t)=>{e&&clearTimeout(e),e=setTimeout(()=>{i(...t),e=null},n)}}const EMBED_QUERY_PARAM_KEY="embed",EMBED_OPTIONS_QUERY_PARAM_KEY="embed_options",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_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=(function(n){return n[n.NONE=0]="NONE",n[n.V1=1]="V1",n[n.V2=2]="V2",n})({});function getEmbedUrlParams(n){const i=new Set;return new URLSearchParams(window.location.search).forEach((t,o)=>{o=o.toString().toLowerCase(),t=t.toString().toLowerCase(),o===n&&EMBED_QUERY_PARAM_VALUES.includes(t)&&i.add(t)}),i}function preserveEmbedQueryParams(){if(!isEmbed())return"";const n=new URLSearchParams(window.location.search).getAll(EMBED_OPTIONS_QUERY_PARAM_KEY),i=[];return i.push([EMBED_QUERY_PARAM_KEY,EMBED_TRUE]),n.forEach(e=>{i.push([EMBED_OPTIONS_QUERY_PARAM_KEY,e])}),new URLSearchParams(i).toString()}function getQueryString(n,i){return n!==void 0?i?n?`${i}&${n}`:i:n:i}function isEmbed(){return getEmbedUrlParams(EMBED_QUERY_PARAM_KEY).has(EMBED_TRUE)}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 getUrl(){let n;try{isInChildFrame()&&window.top?n=window.top.location.href:n=document.location.href}catch{n=document.location.href}const i=new URL(n);return i.search="",i.hash="",i.toString()}function getScreencastTimestamp(){const n=new Date,i=n.getFullYear(),e=String(n.getMonth()+1).padStart(2,"0"),t=String(n.getDate()).padStart(2,"0"),o=String(n.getHours()).padStart(2,"0"),d=String(n.getMinutes()).padStart(2,"0"),p=String(n.getSeconds()).padStart(2,"0");return`${i}-${e}-${t}-${o}-${d}-${p}`}function getTimezone$1(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function getTimezoneOffset(){return new Date().getTimezoneOffset()}function getLocaleLanguage(){return navigator.language}function getLoadingScreenType(){const n=getEmbedUrlParams(EMBED_OPTIONS_QUERY_PARAM_KEY);return n.has(EMBED_HIDE_LOADING_SCREEN)?0:n.has(EMBED_SHOW_LOADING_SCREEN_V1)?1:2}function makeElementWithInfoText(n){return new Element$1({alert:{body:n,format:Alert.Format.INFO}})}function makeElementWithErrorText(n){return new Element$1({alert:{body:n,format:Alert.Format.ERROR}})}function makeAppSkeletonElement(){return new Element$1({skeleton:{style:Skeleton$1.SkeletonStyle.APP}})}function hashString(n){return xxhash.h32(n,3735928559).toString(16)}function requireNonNull(n){if(isNullOrUndefined$1(n))throw new Error("value is null");return n}function notUndefined(n){return n!==void 0}function isFromMac(){return/Mac/i.test(navigator.platform)}function isFromWindows(){return/^Win/i.test(navigator.platform)}function setCookie(n,i,e){const t=i?e:new Date,o=t?`expires=${t.toUTCString()};`:"";document.cookie=`${n}=${i};${o}path=/`}function isValidElementId(n){return n?n.startsWith(GENERATED_ELEMENT_ID_PREFIX)&&n.split("-").length>=3:!1}function getElementId(n){const i=get$1(n,[requireNonNull(n.type),"id"]);if(i&&isValidElementId(i))return i}function isValidFormId(n){return notNullOrUndefined(n)&&n.length>0}function isInForm(n){return isValidFormId(n.formId)}function getSelectPlaceholder(n,i,e,t=!1){let o=!1;return n!==""?{placeholder:n,shouldDisable:o}:(i.length===0?e?n=t?"Add options":"Add an option":(n="No options to select",o=!0):e?n=t?"Choose or add options":"Choose or add an option":n=t?"Choose options":"Choose an option",{placeholder:n,shouldDisable:o})}var LabelVisibilityOptions=(function(n){return n[n.Visible=0]="Visible",n[n.Hidden=1]="Hidden",n[n.Collapsed=2]="Collapsed",n})({});function labelVisibilityProtoValueToEnum(n){switch(n){case LabelVisibility.LabelVisibilityOptions.VISIBLE:return 0;case LabelVisibility.LabelVisibilityOptions.HIDDEN:return 1;case LabelVisibility.LabelVisibilityOptions.COLLAPSED:return 2;default:return 0}}var AcceptFileValue=(function(n){return n[n.None=0]="None",n[n.Single=1]="Single",n[n.Multiple=2]="Multiple",n[n.Directory=3]="Directory",n})({});function chatInputAcceptFileProtoValueToEnum(n){switch(n){case ChatInput$1.AcceptFile.NONE:return 0;case ChatInput$1.AcceptFile.SINGLE:return 1;case ChatInput$1.AcceptFile.MULTIPLE:return 2;case ChatInput$1.AcceptFile.DIRECTORY:return 3;default:return assertNever(n),0}}function findAnIFrameWithClassName(n,i){for(let e=0;e<n.length;e++){const t=n[e].contentDocument;if(t&&t.getElementsByClassName(i).length>0)return n[e]}return null}function canAccessIFrame(n){try{if(n.contentWindow===null)return!1;const e=(n.contentDocument||n.contentWindow.document).body.innerHTML;return e!==null&&e!==""}catch{return!1}}function getIFrameEnclosingApp(n){if(!isInChildFrame())return null;const i=getEmbeddingIdClassName(n),e='iframe[title="streamlitApp"]';let t=window.document.querySelectorAll(e),o=findAnIFrameWithClassName(t,i);if(o&&!canAccessIFrame(o))return null;if(o)return o;if(window.parent&&(t=window.parent.document.querySelectorAll(e)),o=findAnIFrameWithClassName(t,i),o&&!canAccessIFrame(o))return null;if(o)return o;let d=window.document.getElementsByTagName("iframe");return o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o||(window.parent&&(d=window.parent.document.getElementsByTagName("iframe")),o=findAnIFrameWithClassName(d,i),o&&!canAccessIFrame(o)?null:o)}function generateUID$2(){return Math.floor(Date.now()/1e3).toString(36)+Math.random().toString(36).slice(-6)}function getEmbeddingIdClassName(n){return`stAppEmbeddingId-${n}`}function extractPageNameFromPathName(n,i){return decodeURIComponent(n.replace(i,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),""))}function keysToSnakeCase(n){return Object.keys(n).reduce((i,e)=>{const t=decamelize$1(e,{preserveConsecutiveUppercase:!0}).replace(".","_");let o=n[e];return o&&typeof o=="object"&&!Array.isArray(o)&&(o=keysToSnakeCase(o)),Array.isArray(o)&&(o=o.map(d=>d!==null&&typeof d=="object"?keysToSnakeCase(d):d)),i[t]=o,i},{})}const MAX_HASH_LENGTH=6;class DebugVisitor{constructor(i="",e=!0){this.prefix=i,this.isLast=e}visitBlockNode(i){const e=this.isLast?"└── ":"├── ",t=this.prefix+(this.isLast?" ":"│ ");let o=`${this.prefix}${e}BlockNode [${i.children.length} children]`;return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(o+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o+=`
|
|
19
19
|
`,i.children.forEach((d,p)=>{const h=p===i.children.length-1,y=new DebugVisitor(t,h);o+=d.accept(y)}),o}visitElementNode(i){const e=this.isLast?"└── ":"├── ";let t=`${this.prefix}${e}ElementNode [${i.element.type}]`;if(i.element.type==="text"&&i.element.text?.body){const o=i.element.text.body.length>30?`${i.element.text.body.slice(0,30)}...`:i.element.text.body;t+=` "${o}"`}return i.scriptRunId!==NO_SCRIPT_RUN_ID&&(t+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),i.fragmentId&&(t+=` (fragment: ${i.fragmentId.substring(0,MAX_HASH_LENGTH)})`),t+=` (activeScriptHash: ${i.activeScriptHash.substring(0,MAX_HASH_LENGTH)})`,t+=`
|
|
20
20
|
`,t}visitTransientNode(i){const e=this.isLast?"└── ":"├── ",t=this.prefix+(this.isLast?" ":"│ ");let o=`${this.prefix}${e}TransientNode [${i.transientNodes.length} transient]`;if(i.scriptRunId!==NO_SCRIPT_RUN_ID&&(o+=` (run: ${i.scriptRunId.substring(0,MAX_HASH_LENGTH)})`),o+=`
|
|
21
21
|
`,i.anchor){o+=`${t}├── anchor:
|
|
@@ -42,7 +42,7 @@ index signature as the original data.
|
|
|
42
42
|
|
|
43
43
|
In this case, \`add_rows()\` received \`${JSON.stringify(e)}\`
|
|
44
44
|
but was expecting \`${JSON.stringify(t)}\`.
|
|
45
|
-
`)}return n.map(e=>{if(isRangeIndexType(e)&&e.pandasType){const{stop:t,step:o}=e.pandasType.metadata,{start:d,stop:p,step:h}=i[0].pandasType?.metadata,y=(p-d)/h,$=t+y*o;return{...e,pandasType:{...e.pandasType,metadata:{...e.pandasType.metadata,stop:$}}}}return e})}function concatDataTypes(n,i){return n.length===0?i:n}function concat(n,i,e,t,o,d,p,h){const y=concatIndexes(e,i,p,d),$=concatData(t,n,h,o),{indexTypes:E,dataTypes:M}=concatTypes(i,n,d,o);return{index:y,data:$,indexTypes:E,dataTypes:M}}function isPandasRangeIndex(n){return typeof n=="object"&&n.kind==="range"}function parsePandasSchema(n){const i=n.schema.metadata.get("pandas");if(!isNullOrUndefined$1(i))return JSON.parse(i)}function parsePandasIndexData(n,i){return i?i.index_columns.map(e=>{if(isPandasRangeIndex(e)){const{start:o,stop:d,step:p}=e;return range(o,d,p)}const t=n.getChild(e);return t instanceof Vector&&t.type instanceof Null?null:t}).filter(e=>e!==null):[]}function parseHeaderName(n,i){if(i===1)return[n];try{return JSON.parse(n.trim().replace(/^\(/,"[").replace(/\)$/,"]").replace(/'/g,'"'))}catch{return[...Array(i-1).fill(""),n]}}function parseColumnNames(n,i,e){const t=i.concat(n);return unzip(t.map(o=>o.arrowField.name.startsWith("__index_level_")?"":o.arrowField.name).map(o=>parseHeaderName(o,e?.column_indexes.length??1)))}function parseData(n,i){const e=n.numRows,t=i.length;if(e===0||t===0)return n.select([]);const o=i.map(d=>d.arrowField.name);return n.select(o)}function parsePandasIndexColumnTypes(n,i,e){return i?i.index_columns.map(o=>{if(isPandasRangeIndex(o)){const p=o.name||"";return{type:DataFrameCellType.INDEX,arrowField:new Field(p,new Int_(!0,64),!0),pandasType:{field_name:p,name:p,pandas_type:PandasRangeIndexType,numpy_type:PandasRangeIndexType,metadata:o}}}const d=n.fields.find(p=>p.name===o);if(!d)throw new Error(`Index field ${o} not found in arrow schema`);return{type:DataFrameCellType.INDEX,arrowField:d,pandasType:i.columns.find(p=>p.field_name===o),categoricalOptions:e[d.name]}}):[]}function parseDataColumnTypes(n,i,e){return n.fields.filter(d=>i?!i.index_columns.includes(d.name):!0).map(d=>({type:DataFrameCellType.DATA,arrowField:d,pandasType:i?.columns.find(p=>p.field_name===d.name),categoricalOptions:e[d.name]}))}function parseCategoricalOptionsForColumns(n){const i={};return n.schema.fields.forEach((e,t)=>{if(e.type instanceof Dictionary){const o=n.getChildAt(t)?.data[0]?.dictionary;notNullOrUndefined(o)&&(i[e.name]=convertVectorToList(o))}}),i}function parseArrowIpcBytes(n){const i=tableFromIPC(n),e=i.schema,t=parsePandasSchema(i),o=parseCategoricalOptionsForColumns(i),d=parsePandasIndexColumnTypes(e,t,o),p=parseDataColumnTypes(e,t,o),h=parseData(i,p),y=parsePandasIndexData(i,t),$=parseColumnNames(p,d,t);return{pandasIndexData:y,data:h,columnNames:$,pandasIndexColumnTypes:d,dataColumnTypes:p}}var _a;_a=DRAFTABLE;class Quiver{constructor(i){this[_a]=!0;const{pandasIndexData:e,columnNames:t,data:o,dataColumnTypes:d,pandasIndexColumnTypes:p}=parseArrowIpcBytes(i.data),h=i.styler?parseStyler(i.styler):void 0;this._pandasIndexData=e,this._columnNames=t,this._data=o,this._dataColumnTypes=d,this._pandasIndexColumnTypes=p,this._styler=h,this._num_bytes=i.data?.length??0,this._columnTypes=this._pandasIndexColumnTypes.concat(this._dataColumnTypes)}get columnNames(){return this._columnNames}get columnTypes(){return this._columnTypes}get styler(){return this._styler}get dimensions(){const i=this._pandasIndexColumnTypes.length||0,e=this._columnNames.length||1,t=this._data.numRows||0,o=this._dataColumnTypes.length||0,d=e+t,p=i+o;return{numHeaderRows:e,numIndexColumns:i,numDataRows:t,numDataColumns:o,numRows:d,numColumns:p}}get hash(){const i=[this.dimensions.numColumns,this.dimensions.numDataColumns,this.dimensions.numDataRows,this.dimensions.numIndexColumns,this.dimensions.numHeaderRows,this.dimensions.numRows,this._num_bytes,this._columnNames];return hashString(i.join("-"))}getCell(i,e){const{numIndexColumns:t,numDataRows:o,numColumns:d}=this.dimensions;if(i<0||i>=o)throw new Error(`Row index is out of range: ${i}`);if(e<0||e>=d)throw new Error(`Column index is out of range: ${e}`);if(e<t){const E=this._pandasIndexColumnTypes[e],M=this.getIndexValue(i,e);return{type:DataFrameCellType.INDEX,content:M,contentType:E,field:E.arrowField}}const h=e-t,y=this._dataColumnTypes[h],$=this.getDataValue(i,h);return{type:DataFrameCellType.DATA,content:$,contentType:y,field:y.arrowField}}getIndexValue(i,e){const t=this._pandasIndexData[e];return t instanceof Vector?t.get(i):t[i]}getDataValue(i,e){return this._data.getChildAt(e)?.get(i)}addRows(i){if(this.styler||i.styler)throw new Error("\nUnsupported operation. `add_rows()` does not support Pandas Styler objects.\n\nIf you do not need the Styler's styles, try passing the `.data` attribute of\nthe Styler object instead to concatenate just the underlying dataframe.\n\nFor example:\n```\nst.add_rows(my_styler.data)\n```\n");if(i.dimensions.numDataRows===0)return produce(this,p=>p);if(this.dimensions.numDataRows===0)return produce(i,p=>p);const{index:e,data:t,indexTypes:o,dataTypes:d}=concat(this._dataColumnTypes,this._pandasIndexColumnTypes,this._pandasIndexData,this._data,i._dataColumnTypes,i._pandasIndexColumnTypes,i._pandasIndexData,i._data);return produce(this,p=>{p._pandasIndexData=e,p._data=t,p._pandasIndexColumnTypes=o,p._dataColumnTypes=d,p._columnTypes=o.concat(d)})}}function parseStyler(n){return{uuid:n.uuid,caption:n.caption,cssStyles:n.styles,cssId:n.uuid?`T_${n.uuid}`:void 0,displayValues:new Quiver({data:n.displayValues})}}class ElementNode{constructor(i,e,t,o,d){this.element=i,this.metadata=e,this.scriptRunId=t,this.activeScriptHash=o,this.fragmentId=d}get quiverElement(){if(this.lazyQuiverElement!==void 0)return this.lazyQuiverElement;if(this.element.type!=="arrowTable"&&this.element.type!=="arrowDataFrame")throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const i=new Quiver(this.element[this.element.type]);return this.lazyQuiverElement=i,i}get vegaLiteChartElement(){if(this.lazyVegaLiteChartElement!==void 0)return this.lazyVegaLiteChartElement;if(this.element.type!=="arrowVegaLiteChart")throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const i=this.element.arrowVegaLiteChart,e=i.data?new Quiver(i.data):null,t=i.datasets.length>0?wrapDatasets(i.datasets):[],o={data:e,spec:i.spec,datasets:t,useContainerWidth:i.useContainerWidth,vegaLiteTheme:i.theme,id:i.id,selectionMode:i.selectionMode,formId:i.formId};return this.lazyVegaLiteChartElement=o,o}arrowAddRows(i,e){const t=this.element.type,o=new ElementNode(this.element,this.metadata,e,this.activeScriptHash,this.fragmentId);switch(t){case"arrowTable":case"arrowDataFrame":{o.lazyQuiverElement=ElementNode.quiverAddRowsHelper(this.quiverElement,i);break}case"arrowVegaLiteChart":{o.lazyVegaLiteChartElement=ElementNode.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,i);break}default:throw new Error(`elementType '${this.element.type}' is not a valid arrowAddRows target!`)}return o}static quiverAddRowsHelper(i,e){if(e.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const t=new Quiver(e.data);return i.addRows(t)}static vegaLiteChartAddRowsHelper(i,e){const t=e.hasName?e.name:null,o=new Quiver(e.data);return produce(i,d=>{const p=getNamedDataSet(d.datasets,t);p?p.data=p.data.addRows(o):d.data=d.data?d.data.addRows(o):o})}accept(i){return i.visitElementNode(this)}debug(){return this.accept(new DebugVisitor)}replaceTransientNodeWithSelf(i){if(i.scriptRunId!==this.scriptRunId)return this;if(i.transientNodes.length===0)return this;const e=i.updateTransientNodes(t=>t.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return e.length===0?this:new TransientNode(this.scriptRunId,this,e,i.deltaMsgReceivedAt)}}function getNamedDataSet(n,i){return n.length===1?n[0]:n.find(e=>e.hasName&&e.name===i)}function wrapDatasets(n){return n.map(i=>({hasName:i.hasName,name:i.name,data:new Quiver(i.data)}))}class ClearTransientNodesVisitor{constructor(i){this.fragmentIdsThisRun=i??[]}visitBlockNode(i){if(this.fragmentIdsThisRun.length>0&&i.fragmentId&&!this.fragmentIdsThisRun.includes(i.fragmentId))return i;const e=[];let t=!1;return i.children.forEach(o=>{const d=o.accept(this);d!==o&&(t=!0),d!==void 0&&e.push(d)}),t?new BlockNode(i.activeScriptHash,e,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitElementNode(i){return i}visitTransientNode(i){return i.anchor}}class ElementsSetVisitor{constructor(){this.elements=new Set}visitElementNode(i){return this.elements.add(i.element),this.elements}visitBlockNode(i){for(const e of i.children)e.accept(this);return this.elements}visitTransientNode(i){return i.transientNodes.forEach(e=>{e.accept(this)}),i.anchor?.accept(this),this.elements}static collectElements(i){const e=new ElementsSetVisitor;return i.accept(e),e.elements}}class FilterMainScriptElementsVisitor{constructor(i){this.mainScriptHash=i}visitElementNode(i){if(i.activeScriptHash===this.mainScriptHash)return i}visitBlockNode(i){if(i.activeScriptHash!==this.mainScriptHash)return;let e=!1;const t=[];for(const o of i.children){const d=o.accept(this);d!==o&&(e=!0),d!==void 0&&t.push(d)}return e?new BlockNode(i.activeScriptHash,t,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitTransientNode(i){const e=i.anchor?.accept(this),t=i.updateTransientNodes(o=>o.accept(this));if(!(!e&&t.length===0))return t.length===0?e:new TransientNode(i.scriptRunId,e,t,i.deltaMsgReceivedAt)}static filterNode(i,e){const t=new FilterMainScriptElementsVisitor(e);return i.accept(t)}}class GetNodeByDeltaPathVisitor{constructor(i){this.deltaPath=i}visitElementNode(i){}visitBlockNode(i){if(this.deltaPath.length===0)return;const[e,...t]=this.deltaPath;if(e<0||e>=i.children.length)return;if(t.length===0)return i.children[e];const o=new GetNodeByDeltaPathVisitor(t);return i.children[e].accept(o)}visitTransientNode(i){return this.deltaPath.length===0?i.anchor:i.anchor?.accept(this)}static getNodeAtPath(i,e){const t=new GetNodeByDeltaPathVisitor(e);return i.accept(t)}}class SetNodeByDeltaPathVisitor{constructor(i,e,t){this.deltaPath=i,this.nodeToSet=e,this.scriptRunId=t}visitElementNode(i){if(this.deltaPath.length>0)throw new Error("'setIn' cannot be called on an ElementNode");return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet}visitTransientNode(i){if(this.deltaPath.length===0)return this.nodeToSet.replaceTransientNodeWithSelf(i);if(i.anchor){const e=i.anchor.accept(this);return new TransientNode(i.scriptRunId,e,i.transientNodes,i.deltaMsgReceivedAt)}throw new Error("TransientNode has no anchor to set node at")}visitBlockNode(i){if(this.deltaPath.length===0)return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet;const[e,...t]=this.deltaPath;if(e<0||e>i.children.length)throw new Error(`Bad delta path index ${e} (should be between [0, ${i.children.length}])`);let o=[];const d=new SetNodeByDeltaPathVisitor(t,this.nodeToSet,this.scriptRunId);if(i.children[e]){let p=0;for(;p<i.children.length;){const h=i.children[p];if(p!==e){o.push(h),p++;continue}const y=h.accept(d);!(h instanceof TransientNode)&&y instanceof TransientNode&&y.anchor!==h?(o.push(y),o.push(h)):o.push(y),p++}}else{if(t.length>0)throw new Error("Cannot set a node at a delta path");o=i.children.slice(),o[e]=this.nodeToSet}return new BlockNode(i.activeScriptHash,o,i.deltaBlock,this.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt)}static setNodeAtPath(i,e,t,o){const d=new SetNodeByDeltaPathVisitor(e,t,o);return i.accept(d)}}class AppRoot{static empty(i="",e=!0,t,o){const d=[];let p;switch(getLoadingScreenType()){case LoadingScreenType.NONE:break;case LoadingScreenType.V1:e&&(p=makeElementWithInfoText("Please wait..."));break;default:p=makeAppSkeletonElement();break}p&&d.push(new ElementNode(p,ForwardMsgMetadata.create({}),NO_SCRIPT_RUN_ID,i));const h=new BlockNode(i,d,new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),y=t||new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),$=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),E=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),M=o?{logo:o,activeScriptHash:i,scriptRunId:NO_SCRIPT_RUN_ID}:null;return new AppRoot(i,new BlockNode(i,[h,y,$,E]),M)}constructor(i,e,t=null){if(this.mainScriptHash=i,this.root=e,this.appLogo=t,this.root.children.length!==4||isNullOrUndefined$1(this.main)||isNullOrUndefined$1(this.sidebar)||isNullOrUndefined$1(this.event)||isNullOrUndefined$1(this.bottom))throw new Error(`Invalid root node children! ${e}`)}get main(){const[i]=this.root.children;return i}get sidebar(){const[,i]=this.root.children;return i}get event(){const[,,i]=this.root.children;return i}get bottom(){const[,,,i]=this.root.children;return i}get logo(){return this.appLogo?.logo??null}appRootWithLogo(i,e){return new AppRoot(this.mainScriptHash,this.root,{logo:i,...e})}applyDelta(i,e,t){const{deltaPath:o,activeScriptHash:d}=t;switch(e.type){case"newElement":{const p=e.newElement;return this.addElement(o,i,p,t,d,e.fragmentId)}case"addBlock":{const p=Date.now();return this.addBlock(o,e.addBlock,i,d,e.fragmentId,p)}case"newTransient":{const p=e.newTransient;return this.addTransient(o,i,p,t,d,e.fragmentId)}case"arrowAddRows":try{return this.arrowAddRows(o,e.arrowAddRows,i)}catch(p){const h=makeElementWithErrorText(ensureError(p).message);return this.addElement(o,i,h,t,d)}default:throw new Error(`Unrecognized deltaType: '${e.type}'`)}}ensureBlockNode(i,e=this.mainScriptHash){return i??new BlockNode(e)}filterMainScriptElements(i){const e=this.main.scriptRunId,t=new FilterMainScriptElementsVisitor(i),o=this.root.children.map(p=>this.ensureBlockNode(p.accept(t),i)),d=this.appLogo?.activeScriptHash===i?this.appLogo:null;return new AppRoot(i,new BlockNode(i,o,new Block$1({allowEmpty:!0}),e),d)}clearStaleNodes(i,e){const t=new ClearStaleNodeVisitor(i,e),o=this.root.children.map(h=>this.ensureBlockNode(h.accept(t))),p=e&&e.length>0||this.appLogo?.scriptRunId===i?this.appLogo:null;return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,o,new Block$1({allowEmpty:!0}),i),p)}clearTransientNodes(i){const e=new ClearTransientNodesVisitor(i),t=this.root.children.map(o=>this.ensureBlockNode(o.accept(e)));return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,t,new Block$1({allowEmpty:!0}),this.main.scriptRunId),this.appLogo)}getElements(){const i=new ElementsSetVisitor;return this.main.accept(i),this.sidebar.accept(i),this.event.accept(i),this.bottom.accept(i),i.elements}addElement(i,e,t,o,d,p){const h=new ElementNode(t,o,e,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,h,e),this.appLogo)}addBlock(i,e,t,o,d,p){const h=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);let y=[];h instanceof BlockNode&&h.deltaBlock.type===e.type&&(e.dialog&&h.deltaBlock.dialog&&e.id!==h.deltaBlock.id||(y=h.children));const $=new BlockNode(o,y,e,t,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,$,t),this.appLogo)}addTransient(i,e,t,o,d,p,h){const y=new TransientNode(e,void 0,t.elements.map($=>new ElementNode($,o,e,d,p)),h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,y,e),this.appLogo)}arrowAddRows(i,e,t){const o=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);if(isNullOrUndefined$1(o)||!(o instanceof ElementNode))throw new Error(`Can't arrowAddRows: invalid deltaPath: ${i}`);const d=o.arrowAddRows(e,t);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,d,t),this.appLogo)}getChildName(i){switch(i){case this.main:return"main";case this.sidebar:return"sidebar";case this.event:return"event";case this.bottom:return"bottom";default:return"unknown"}}debug(){let i=`AppRoot
|
|
45
|
+
`)}return n.map(e=>{if(isRangeIndexType(e)&&e.pandasType){const{stop:t,step:o}=e.pandasType.metadata,{start:d,stop:p,step:h}=i[0].pandasType?.metadata,y=(p-d)/h,$=t+y*o;return{...e,pandasType:{...e.pandasType,metadata:{...e.pandasType.metadata,stop:$}}}}return e})}function concatDataTypes(n,i){return n.length===0?i:n}function concat(n,i,e,t,o,d,p,h){const y=concatIndexes(e,i,p,d),$=concatData(t,n,h,o),{indexTypes:E,dataTypes:M}=concatTypes(i,n,d,o);return{index:y,data:$,indexTypes:E,dataTypes:M}}function isPandasRangeIndex(n){return typeof n=="object"&&n.kind==="range"}function parsePandasSchema(n){const i=n.schema.metadata.get("pandas");if(!isNullOrUndefined$1(i))return JSON.parse(i)}function parsePandasIndexData(n,i){return i?i.index_columns.map(e=>{if(isPandasRangeIndex(e)){const{start:o,stop:d,step:p}=e;return range(o,d,p)}const t=n.getChild(e);return t instanceof Vector&&t.type instanceof Null?null:t}).filter(e=>e!==null):[]}function parseHeaderName(n,i){if(i===1)return[n];try{return JSON.parse(n.trim().replace(/^\(/,"[").replace(/\)$/,"]").replace(/'/g,'"'))}catch{return[...Array(i-1).fill(""),n]}}function parseColumnNames(n,i,e){const t=i.concat(n);return unzip(t.map(o=>o.arrowField.name.startsWith("__index_level_")?"":o.arrowField.name).map(o=>parseHeaderName(o,e?.column_indexes.length??1)))}function parseData(n,i){const e=n.numRows,t=i.length;if(e===0||t===0)return n.select([]);const o=i.map(d=>d.arrowField.name);return n.select(o)}function parsePandasIndexColumnTypes(n,i,e){return i?i.index_columns.map(o=>{if(isPandasRangeIndex(o)){const p=o.name||"";return{type:DataFrameCellType.INDEX,arrowField:new Field(p,new Int_(!0,64),!0),pandasType:{field_name:p,name:p,pandas_type:PandasRangeIndexType,numpy_type:PandasRangeIndexType,metadata:o}}}const d=n.fields.find(p=>p.name===o);if(!d)throw new Error(`Index field ${o} not found in arrow schema`);return{type:DataFrameCellType.INDEX,arrowField:d,pandasType:i.columns.find(p=>p.field_name===o),categoricalOptions:e[d.name]}}):[]}function parseDataColumnTypes(n,i,e){return n.fields.filter(d=>i?!i.index_columns.includes(d.name):!0).map(d=>({type:DataFrameCellType.DATA,arrowField:d,pandasType:i?.columns.find(p=>p.field_name===d.name),categoricalOptions:e[d.name]}))}function parseCategoricalOptionsForColumns(n){const i={};return n.schema.fields.forEach((e,t)=>{if(e.type instanceof Dictionary){const o=n.getChildAt(t)?.data[0]?.dictionary;notNullOrUndefined(o)&&(i[e.name]=convertVectorToList(o))}}),i}function parseArrowIpcBytes(n){const i=tableFromIPC(n),e=i.schema,t=parsePandasSchema(i),o=parseCategoricalOptionsForColumns(i),d=parsePandasIndexColumnTypes(e,t,o),p=parseDataColumnTypes(e,t,o),h=parseData(i,p),y=parsePandasIndexData(i,t),$=parseColumnNames(p,d,t);return{pandasIndexData:y,data:h,columnNames:$,pandasIndexColumnTypes:d,dataColumnTypes:p}}var _a;_a=DRAFTABLE;class Quiver{constructor(i){this[_a]=!0;const{pandasIndexData:e,columnNames:t,data:o,dataColumnTypes:d,pandasIndexColumnTypes:p}=parseArrowIpcBytes(i.data),h=i.styler?parseStyler(i.styler):void 0;this._pandasIndexData=e,this._columnNames=t,this._data=o,this._dataColumnTypes=d,this._pandasIndexColumnTypes=p,this._styler=h,this._num_bytes=i.data?.length??0,this._columnTypes=this._pandasIndexColumnTypes.concat(this._dataColumnTypes)}get columnNames(){return this._columnNames}get columnTypes(){return this._columnTypes}get styler(){return this._styler}get dimensions(){const i=this._pandasIndexColumnTypes.length||0,e=this._columnNames.length||1,t=this._data.numRows||0,o=this._dataColumnTypes.length||0,d=e+t,p=i+o;return{numHeaderRows:e,numIndexColumns:i,numDataRows:t,numDataColumns:o,numRows:d,numColumns:p}}get hash(){const i=[this.dimensions.numColumns,this.dimensions.numDataColumns,this.dimensions.numDataRows,this.dimensions.numIndexColumns,this.dimensions.numHeaderRows,this.dimensions.numRows,this._num_bytes,this._columnNames];return hashString(i.join("-"))}getCell(i,e){const{numIndexColumns:t,numDataRows:o,numColumns:d}=this.dimensions;if(i<0||i>=o)throw new Error(`Row index is out of range: ${i}`);if(e<0||e>=d)throw new Error(`Column index is out of range: ${e}`);if(e<t){const E=this._pandasIndexColumnTypes[e],M=this.getIndexValue(i,e);return{type:DataFrameCellType.INDEX,content:M,contentType:E,field:E.arrowField}}const h=e-t,y=this._dataColumnTypes[h],$=this.getDataValue(i,h);return{type:DataFrameCellType.DATA,content:$,contentType:y,field:y.arrowField}}getIndexValue(i,e){const t=this._pandasIndexData[e];return t instanceof Vector?t.get(i):t[i]}getDataValue(i,e){return this._data.getChildAt(e)?.get(i)}addRows(i){if(this.styler||i.styler)throw new Error("\nUnsupported operation. `add_rows()` does not support Pandas Styler objects.\n\nIf you do not need the Styler's styles, try passing the `.data` attribute of\nthe Styler object instead to concatenate just the underlying dataframe.\n\nFor example:\n```\nst.add_rows(my_styler.data)\n```\n");if(i.dimensions.numDataRows===0)return produce(this,p=>p);if(this.dimensions.numDataRows===0)return produce(i,p=>p);const{index:e,data:t,indexTypes:o,dataTypes:d}=concat(this._dataColumnTypes,this._pandasIndexColumnTypes,this._pandasIndexData,this._data,i._dataColumnTypes,i._pandasIndexColumnTypes,i._pandasIndexData,i._data);return produce(this,p=>{p._pandasIndexData=e,p._data=t,p._pandasIndexColumnTypes=o,p._dataColumnTypes=d,p._columnTypes=o.concat(d)})}}function parseStyler(n){return{uuid:n.uuid,caption:n.caption,cssStyles:n.styles,cssId:n.uuid?`T_${n.uuid}`:void 0,displayValues:new Quiver({data:n.displayValues})}}class ElementNode{constructor(i,e,t,o,d){this.element=i,this.metadata=e,this.scriptRunId=t,this.activeScriptHash=o,this.fragmentId=d}get quiverElement(){if(this.lazyQuiverElement!==void 0)return this.lazyQuiverElement;if(this.element.type!=="table"&&this.element.type!=="dataframe")throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const i=this.element.type==="table"?this.element.table?.arrowData:this.element.dataframe?.arrowData,e=new Quiver(i);return this.lazyQuiverElement=e,e}get vegaLiteChartElement(){if(this.lazyVegaLiteChartElement!==void 0)return this.lazyVegaLiteChartElement;if(this.element.type!=="arrowVegaLiteChart")throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const i=this.element.arrowVegaLiteChart,e=i.data?new Quiver(i.data):null,t=i.datasets.length>0?wrapDatasets(i.datasets):[],o={data:e,spec:i.spec,datasets:t,useContainerWidth:i.useContainerWidth,vegaLiteTheme:i.theme,id:i.id,selectionMode:i.selectionMode,formId:i.formId};return this.lazyVegaLiteChartElement=o,o}arrowAddRows(i,e){const t=this.element.type,o=new ElementNode(this.element,this.metadata,e,this.activeScriptHash,this.fragmentId);switch(t){case"table":case"dataframe":{o.lazyQuiverElement=ElementNode.quiverAddRowsHelper(this.quiverElement,i);break}case"arrowVegaLiteChart":{o.lazyVegaLiteChartElement=ElementNode.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,i);break}default:throw new Error(`elementType '${this.element.type}' is not a valid arrowAddRows target!`)}return o}static quiverAddRowsHelper(i,e){if(e.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const t=new Quiver(e.data);return i.addRows(t)}static vegaLiteChartAddRowsHelper(i,e){const t=e.hasName?e.name:null,o=new Quiver(e.data);return produce(i,d=>{const p=getNamedDataSet(d.datasets,t);p?p.data=p.data.addRows(o):d.data=d.data?d.data.addRows(o):o})}accept(i){return i.visitElementNode(this)}debug(){return this.accept(new DebugVisitor)}replaceTransientNodeWithSelf(i){if(i.scriptRunId!==this.scriptRunId)return this;if(i.transientNodes.length===0)return this;const e=i.updateTransientNodes(t=>t.accept(new ClearStaleNodeVisitor(this.scriptRunId)));return e.length===0?this:new TransientNode(this.scriptRunId,this,e,i.deltaMsgReceivedAt)}}function getNamedDataSet(n,i){return n.length===1?n[0]:n.find(e=>e.hasName&&e.name===i)}function wrapDatasets(n){return n.map(i=>({hasName:i.hasName,name:i.name,data:new Quiver(i.data)}))}class ClearTransientNodesVisitor{constructor(i){this.fragmentIdsThisRun=i??[]}visitBlockNode(i){if(this.fragmentIdsThisRun.length>0&&i.fragmentId&&!this.fragmentIdsThisRun.includes(i.fragmentId))return i;const e=[];let t=!1;return i.children.forEach(o=>{const d=o.accept(this);d!==o&&(t=!0),d!==void 0&&e.push(d)}),t?new BlockNode(i.activeScriptHash,e,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitElementNode(i){return i}visitTransientNode(i){return i.anchor}}class ElementsSetVisitor{constructor(){this.elements=new Set}visitElementNode(i){return this.elements.add(i.element),this.elements}visitBlockNode(i){for(const e of i.children)e.accept(this);return this.elements}visitTransientNode(i){return i.transientNodes.forEach(e=>{e.accept(this)}),i.anchor?.accept(this),this.elements}static collectElements(i){const e=new ElementsSetVisitor;return i.accept(e),e.elements}}class FilterMainScriptElementsVisitor{constructor(i){this.mainScriptHash=i}visitElementNode(i){if(i.activeScriptHash===this.mainScriptHash)return i}visitBlockNode(i){if(i.activeScriptHash!==this.mainScriptHash)return;let e=!1;const t=[];for(const o of i.children){const d=o.accept(this);d!==o&&(e=!0),d!==void 0&&t.push(d)}return e?new BlockNode(i.activeScriptHash,t,i.deltaBlock,i.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt):i}visitTransientNode(i){const e=i.anchor?.accept(this),t=i.updateTransientNodes(o=>o.accept(this));if(!(!e&&t.length===0))return t.length===0?e:new TransientNode(i.scriptRunId,e,t,i.deltaMsgReceivedAt)}static filterNode(i,e){const t=new FilterMainScriptElementsVisitor(e);return i.accept(t)}}class GetNodeByDeltaPathVisitor{constructor(i){this.deltaPath=i}visitElementNode(i){}visitBlockNode(i){if(this.deltaPath.length===0)return;const[e,...t]=this.deltaPath;if(e<0||e>=i.children.length)return;if(t.length===0)return i.children[e];const o=new GetNodeByDeltaPathVisitor(t);return i.children[e].accept(o)}visitTransientNode(i){return this.deltaPath.length===0?i.anchor:i.anchor?.accept(this)}static getNodeAtPath(i,e){const t=new GetNodeByDeltaPathVisitor(e);return i.accept(t)}}class SetNodeByDeltaPathVisitor{constructor(i,e,t){this.deltaPath=i,this.nodeToSet=e,this.scriptRunId=t}visitElementNode(i){if(this.deltaPath.length>0)throw new Error("'setIn' cannot be called on an ElementNode");return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet}visitTransientNode(i){if(this.deltaPath.length===0)return this.nodeToSet.replaceTransientNodeWithSelf(i);if(i.anchor){const e=i.anchor.accept(this);return new TransientNode(i.scriptRunId,e,i.transientNodes,i.deltaMsgReceivedAt)}throw new Error("TransientNode has no anchor to set node at")}visitBlockNode(i){if(this.deltaPath.length===0)return this.nodeToSet instanceof TransientNode&&!this.nodeToSet.anchor?new TransientNode(this.nodeToSet.scriptRunId,i,this.nodeToSet.transientNodes,this.nodeToSet.deltaMsgReceivedAt):this.nodeToSet;const[e,...t]=this.deltaPath;if(e<0||e>i.children.length)throw new Error(`Bad delta path index ${e} (should be between [0, ${i.children.length}])`);let o=[];const d=new SetNodeByDeltaPathVisitor(t,this.nodeToSet,this.scriptRunId);if(i.children[e]){let p=0;for(;p<i.children.length;){const h=i.children[p];if(p!==e){o.push(h),p++;continue}const y=h.accept(d);!(h instanceof TransientNode)&&y instanceof TransientNode&&y.anchor!==h?(o.push(y),o.push(h)):o.push(y),p++}}else{if(t.length>0)throw new Error("Cannot set a node at a delta path");o=i.children.slice(),o[e]=this.nodeToSet}return new BlockNode(i.activeScriptHash,o,i.deltaBlock,this.scriptRunId,i.fragmentId,i.deltaMsgReceivedAt)}static setNodeAtPath(i,e,t,o){const d=new SetNodeByDeltaPathVisitor(e,t,o);return i.accept(d)}}class AppRoot{static empty(i="",e=!0,t,o){const d=[];let p;switch(getLoadingScreenType()){case LoadingScreenType.NONE:break;case LoadingScreenType.V1:e&&(p=makeElementWithInfoText("Please wait..."));break;default:p=makeAppSkeletonElement();break}p&&d.push(new ElementNode(p,ForwardMsgMetadata.create({}),NO_SCRIPT_RUN_ID,i));const h=new BlockNode(i,d,new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),y=t||new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),$=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),E=new BlockNode(i,[],new Block$1({allowEmpty:!0}),NO_SCRIPT_RUN_ID),M=o?{logo:o,activeScriptHash:i,scriptRunId:NO_SCRIPT_RUN_ID}:null;return new AppRoot(i,new BlockNode(i,[h,y,$,E]),M)}constructor(i,e,t=null){if(this.mainScriptHash=i,this.root=e,this.appLogo=t,this.root.children.length!==4||isNullOrUndefined$1(this.main)||isNullOrUndefined$1(this.sidebar)||isNullOrUndefined$1(this.event)||isNullOrUndefined$1(this.bottom))throw new Error(`Invalid root node children! ${e}`)}get main(){const[i]=this.root.children;return i}get sidebar(){const[,i]=this.root.children;return i}get event(){const[,,i]=this.root.children;return i}get bottom(){const[,,,i]=this.root.children;return i}get logo(){return this.appLogo?.logo??null}appRootWithLogo(i,e){return new AppRoot(this.mainScriptHash,this.root,{logo:i,...e})}applyDelta(i,e,t){const{deltaPath:o,activeScriptHash:d}=t;switch(e.type){case"newElement":{const p=e.newElement;return this.addElement(o,i,p,t,d,e.fragmentId)}case"addBlock":{const p=Date.now();return this.addBlock(o,e.addBlock,i,d,e.fragmentId,p)}case"newTransient":{const p=e.newTransient;return this.addTransient(o,i,p,t,d,e.fragmentId)}case"arrowAddRows":try{return this.arrowAddRows(o,e.arrowAddRows,i)}catch(p){const h=makeElementWithErrorText(ensureError(p).message);return this.addElement(o,i,h,t,d)}default:throw new Error(`Unrecognized deltaType: '${e.type}'`)}}ensureBlockNode(i,e=this.mainScriptHash){return i??new BlockNode(e)}filterMainScriptElements(i){const e=this.main.scriptRunId,t=new FilterMainScriptElementsVisitor(i),o=this.root.children.map(p=>this.ensureBlockNode(p.accept(t),i)),d=this.appLogo?.activeScriptHash===i?this.appLogo:null;return new AppRoot(i,new BlockNode(i,o,new Block$1({allowEmpty:!0}),e),d)}clearStaleNodes(i,e){const t=new ClearStaleNodeVisitor(i,e),o=this.root.children.map(h=>this.ensureBlockNode(h.accept(t))),p=e&&e.length>0||this.appLogo?.scriptRunId===i?this.appLogo:null;return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,o,new Block$1({allowEmpty:!0}),i),p)}clearTransientNodes(i){const e=new ClearTransientNodesVisitor(i),t=this.root.children.map(o=>this.ensureBlockNode(o.accept(e)));return new AppRoot(this.mainScriptHash,new BlockNode(this.mainScriptHash,t,new Block$1({allowEmpty:!0}),this.main.scriptRunId),this.appLogo)}getElements(){const i=new ElementsSetVisitor;return this.main.accept(i),this.sidebar.accept(i),this.event.accept(i),this.bottom.accept(i),i.elements}addElement(i,e,t,o,d,p){const h=new ElementNode(t,o,e,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,h,e),this.appLogo)}addBlock(i,e,t,o,d,p){const h=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);let y=[];h instanceof BlockNode&&h.deltaBlock.type===e.type&&(e.dialog&&h.deltaBlock.dialog&&e.id!==h.deltaBlock.id||(y=h.children));const $=new BlockNode(o,y,e,t,d,p);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,$,t),this.appLogo)}addTransient(i,e,t,o,d,p,h){const y=new TransientNode(e,void 0,t.elements.map($=>new ElementNode($,o,e,d,p)),h);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,y,e),this.appLogo)}arrowAddRows(i,e,t){const o=GetNodeByDeltaPathVisitor.getNodeAtPath(this.root,i);if(isNullOrUndefined$1(o)||!(o instanceof ElementNode))throw new Error(`Can't arrowAddRows: invalid deltaPath: ${i}`);const d=o.arrowAddRows(e,t);return new AppRoot(this.mainScriptHash,SetNodeByDeltaPathVisitor.setNodeAtPath(this.root,i,d,t),this.appLogo)}getChildName(i){switch(i){case this.main:return"main";case this.sidebar:return"sidebar";case this.event:return"event";case this.bottom:return"bottom";default:return"unknown"}}debug(){let i=`AppRoot
|
|
46
46
|
`;return this.root.children.forEach((e,t)=>{const o=t===this.root.children.length-1,d=this.getChildName(e),p=o?"└── ":"├── ",h=o?" ":"│ ";i+=`${p}${d}:
|
|
47
47
|
`;const y=new DebugVisitor(h,!0);i+=e.accept(y)}),i}}var classnames={exports:{}};var hasRequiredClassnames;function requireClassnames(){return hasRequiredClassnames||(hasRequiredClassnames=1,(function(n){(function(){var i={}.hasOwnProperty;function e(){for(var d="",p=0;p<arguments.length;p++){var h=arguments[p];h&&(d=o(d,t(h)))}return d}function t(d){if(typeof d=="string"||typeof d=="number")return d;if(typeof d!="object")return"";if(Array.isArray(d))return e.apply(null,d);if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]"))return d.toString();var p="";for(var h in d)i.call(d,h)&&d[h]&&(p=o(p,h));return p}function o(d,p){return p?d?d+" "+p:d+p:d}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(classnames)),classnames.exports}var classnamesExports=requireClassnames();const classNames=getDefaultExportFromCjs(classnamesExports);var Direction=(function(n){return n.HORIZONTAL="row",n.VERTICAL="column",n})({});function getDirectionOfBlock(n){return n.flexContainer?n.flexContainer.direction==Block$1.FlexContainer.Direction.HORIZONTAL?"row":"column":n.vertical?"column":n.horizontal?"row":"column"}function shouldWidthStretch(n){return!!(n?.useStretch||n?.pixelWidth)}function shouldHeightStretch(n){return!!(n?.useStretch||n?.pixelHeight)}const alignmentMap={[streamlit.TextAlignmentConfig.Alignment.LEFT]:"left",[streamlit.TextAlignmentConfig.Alignment.CENTER]:"center",[streamlit.TextAlignmentConfig.Alignment.RIGHT]:"right",[streamlit.TextAlignmentConfig.Alignment.JUSTIFY]:"justify",[streamlit.TextAlignmentConfig.Alignment.UNSPECIFIED]:"left"};function getTextAlignmentStyle(n){if(n?.alignment)return alignmentMap[n.alignment]||"left"}const FlexContext=reactExports.createContext(null);FlexContext.displayName="FlexContext";const FlexContextProvider=({children:n,direction:i,isRoot:e,parentWidth:t,hasContentWidth:o=!1,hasFixedWidth:d=!1,parentContext:p=null})=>{const h=reactExports.useMemo(()=>{const y=i===Direction.HORIZONTAL;let $;return o?$=!0:d?$=!1:$=p?.isInContentWidthContainer??!1,{direction:i,isInHorizontalLayout:y,isInRoot:e??!1,parentWidth:t,isInContentWidthContainer:$}},[i,e,t,o,d,p]);return jsx$1(FlexContext.Provider,{value:h,children:n})};function guard(n,i,e){return Math.min(Math.max(n,e),i)}class ColorError extends Error{constructor(i){super(`Failed to parse color: "${i}"`)}}var ColorError$1=ColorError;function parseToRgba(n){if(typeof n!="string")throw new ColorError$1(n);if(n.trim().toLowerCase()==="transparent")return[0,0,0,0];let i=n.trim();i=namedColorRegex.test(n)?nameToHex(n):n;const e=reducedHexRegex.exec(i);if(e){const p=Array.from(e).slice(1);return[...p.slice(0,3).map(h=>parseInt(r$1(h,2),16)),parseInt(r$1(p[3]||"f",2),16)/255]}const t=hexRegex.exec(i);if(t){const p=Array.from(t).slice(1);return[...p.slice(0,3).map(h=>parseInt(h,16)),parseInt(p[3]||"ff",16)/255]}const o=rgbaRegex.exec(i);if(o){const p=Array.from(o).slice(1);return[...p.slice(0,3).map(h=>parseInt(h,10)),parseFloat(p[3]||"1")]}const d=hslaRegex.exec(i);if(d){const[p,h,y,$]=Array.from(d).slice(1).map(parseFloat);if(guard(0,100,h)!==h)throw new ColorError$1(n);if(guard(0,100,y)!==y)throw new ColorError$1(n);return[...hslToRgb(p,h,y),Number.isNaN($)?1:$]}throw new ColorError$1(n)}function hash(n){let i=5381,e=n.length;for(;e;)i=i*33^n.charCodeAt(--e);return(i>>>0)%2341}const colorToInt=n=>parseInt(n.replace(/_/g,""),36),compressedColorMap="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((n,i)=>{const e=colorToInt(i.substring(0,3)),t=colorToInt(i.substring(3)).toString(16);let o="";for(let d=0;d<6-t.length;d++)o+="0";return n[e]=`${o}${t}`,n},{});function nameToHex(n){const i=n.toLowerCase().trim(),e=compressedColorMap[hash(i)];if(!e)throw new ColorError$1(n);return`#${e}`}const r$1=(n,i)=>Array.from(Array(i)).map(()=>n).join(""),reducedHexRegex=new RegExp(`^#${r$1("([a-f0-9])",3)}([a-f0-9])?$`,"i"),hexRegex=new RegExp(`^#${r$1("([a-f0-9]{2})",3)}([a-f0-9]{2})?$`,"i"),rgbaRegex=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${r$1(",\\s*(\\d+)\\s*",2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,"i"),hslaRegex=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,namedColorRegex=/^[a-z]+$/i,roundColor=n=>Math.round(n*255),hslToRgb=(n,i,e)=>{let t=e/100;if(i===0)return[t,t,t].map(roundColor);const o=(n%360+360)%360/60,d=(1-Math.abs(2*t-1))*(i/100),p=d*(1-Math.abs(o%2-1));let h=0,y=0,$=0;o>=0&&o<1?(h=d,y=p):o>=1&&o<2?(h=p,y=d):o>=2&&o<3?(y=d,$=p):o>=3&&o<4?(y=p,$=d):o>=4&&o<5?(h=p,$=d):o>=5&&o<6&&(h=d,$=p);const E=t-d/2,M=h+E,H=y+E,Z=$+E;return[M,H,Z].map(roundColor)};function parseToHsla(n){const[i,e,t,o]=parseToRgba(n).map((M,H)=>H===3?M:M/255),d=Math.max(i,e,t),p=Math.min(i,e,t),h=(d+p)/2;if(d===p)return[0,0,h,o];const y=d-p,$=h>.5?y/(2-d-p):y/(d+p);return[60*(i===d?(e-t)/y+(e<t?6:0):e===d?(t-i)/y+2:(i-e)/y+4),$,h,o]}function hsla(n,i,e,t){return`hsla(${(n%360).toFixed()}, ${guard(0,100,i*100).toFixed()}%, ${guard(0,100,e*100).toFixed()}%, ${parseFloat(guard(0,1,t).toFixed(3))})`}function darken(n,i){const[e,t,o,d]=parseToHsla(n);return hsla(e,t,o-i,d)}function getLuminance(n){if(n==="transparent")return 0;function i(d){const p=d/255;return p<=.04045?p/12.92:Math.pow((p+.055)/1.055,2.4)}const[e,t,o]=parseToRgba(n);return .2126*i(e)+.7152*i(t)+.0722*i(o)}function rgba$1(n,i,e,t){return`rgba(${guard(0,255,n).toFixed()}, ${guard(0,255,i).toFixed()}, ${guard(0,255,e).toFixed()}, ${parseFloat(guard(0,1,t).toFixed(3))})`}function mix$1(n,i,e){const t=(Le,Me)=>Me===3?Le:Le/255,[o,d,p,h]=parseToRgba(n).map(t),[y,$,E,M]=parseToRgba(i).map(t),H=M-h,Z=e*2-1,ye=((Z*H===-1?Z:Z+H/(1+Z*H))+1)/2,we=1-ye,Ce=(o*we+y*ye)*255,xe=(d*we+$*ye)*255,Ne=(p*we+E*ye)*255,Fe=M*e+h*(1-e);return rgba$1(Ce,xe,Ne,Fe)}function lighten(n,i){return darken(n,-i)}function transparentize(n,i){const[e,t,o,d]=parseToRgba(n);return rgba$1(e,t,o,d-i)}function toHex(n){const[i,e,t,o]=parseToRgba(n);let d=p=>{const h=guard(0,255,p).toString(16);return h.length===1?`0${h}`:h};return`#${d(i)}${d(e)}${d(t)}${o<1?d(Math.round(o*255)):""}`}var colors$3={white:"#FFFFFF",gray50:"#F6F6F6",gray100:"#EEEEEE",gray200:"#E2E2E2",gray300:"#CBCBCB",gray400:"#AFAFAF",gray500:"#6B6B6B",gray600:"#545454",gray700:"#333333",gray800:"#1F1F1F",gray900:"#141414",black:"#000000",platinum400:"#8EA3AD",red50:"#FFEFED",red100:"#FED7D2",red200:"#F1998E",red300:"#E85C4A",red400:"#E11900",red500:"#AB1300",red600:"#870F00",red700:"#5A0A00",orange200:"#FABDA5",orange300:"#FA9269",orange400:"#FF6937",orange500:"#C14F29",orange600:"#9A3F21",orange700:"#672A16",yellow50:"#FFFAF0",yellow100:"#FFF2D9",yellow200:"#FFE3AC",yellow300:"#FFCF70",yellow400:"#FFC043",yellow500:"#BC8B2C",yellow600:"#996F00",yellow700:"#674D1B",green50:"#E6F2ED",green100:"#ADDEC9",green200:"#66D19E",green300:"#06C167",green400:"#048848",green500:"#03703C",green600:"#03582F",green700:"#10462D",blue50:"#EFF3FE",blue100:"#D4E2FC",blue200:"#A0BFF8",blue300:"#5B91F5",blue400:"#276EF1",blue500:"#1E54B7",blue600:"#174291",blue700:"#102C60",cobalt400:"#0E1FC1",purple200:"#C1B4E2",purple300:"#957FCE",purple400:"#7356BF",purple500:"#574191",purple600:"#453473",purple700:"#2E224C",brown200:"#D2BBB0",brown300:"#B18977",brown400:"#99644C",brown500:"#744C3A",brown600:"#5C3C2E",brown700:"#3D281E"},lightColorTokens={primaryA:colors$3.black,primaryB:colors$3.white,primary:colors$3.black,primary50:colors$3.gray50,primary100:colors$3.gray100,primary200:colors$3.gray200,primary300:colors$3.gray300,primary400:colors$3.gray400,primary500:colors$3.gray500,primary600:colors$3.gray600,primary700:colors$3.gray700,accent:colors$3.blue400,accent50:colors$3.blue50,accent100:colors$3.blue100,accent200:colors$3.blue200,accent300:colors$3.blue300,accent400:colors$3.blue400,accent500:colors$3.blue500,accent600:colors$3.blue600,accent700:colors$3.blue700,negative:colors$3.red400,negative50:colors$3.red50,negative100:colors$3.red100,negative200:colors$3.red200,negative300:colors$3.red300,negative400:colors$3.red400,negative500:colors$3.red500,negative600:colors$3.red600,negative700:colors$3.red700,warning:colors$3.yellow400,warning50:colors$3.yellow50,warning100:colors$3.yellow100,warning200:colors$3.yellow200,warning300:colors$3.yellow300,warning400:colors$3.yellow400,warning500:colors$3.yellow500,warning600:colors$3.yellow600,warning700:colors$3.yellow700,positive:colors$3.green500,positive50:colors$3.green50,positive100:colors$3.green100,positive200:colors$3.green200,positive300:colors$3.green300,positive400:colors$3.green400,positive500:colors$3.green500,positive600:colors$3.green600,positive700:colors$3.green700,white:colors$3.white,black:colors$3.black,mono100:colors$3.white,mono200:colors$3.gray50,mono300:colors$3.gray100,mono400:colors$3.gray200,mono500:colors$3.gray300,mono600:colors$3.gray400,mono700:colors$3.gray500,mono800:colors$3.gray600,mono900:colors$3.gray700,mono1000:colors$3.black,ratingInactiveFill:colors$3.gray100,ratingStroke:colors$3.gray300};function hexToRgb(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"1",e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;n=n.replace(e,function(o,d,p,h){return d+d+p+p+h+h});var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return t?"rgba(".concat(parseInt(t[1],16),", ").concat(parseInt(t[2],16),", ").concat(parseInt(t[3],16),", ").concat(i,")"):null}var ellipsisText={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordWrap:"normal"};function expandBorderStyles(n){return{borderTopWidth:n.borderWidth,borderTopStyle:n.borderStyle,borderTopColor:n.borderColor,borderBottomWidth:n.borderWidth,borderBottomStyle:n.borderStyle,borderBottomColor:n.borderColor,borderLeftWidth:n.borderWidth,borderLeftStyle:n.borderStyle,borderLeftColor:n.borderColor,borderRightWidth:n.borderWidth,borderRightStyle:n.borderStyle,borderRightColor:n.borderColor}}function ownKeys$x(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$w(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$x(Object(e),!0).forEach(function(t){_defineProperty$D(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$x(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$D(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}const getSemanticColorTokens=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens,i={backgroundPrimary:n.primaryB,backgroundSecondary:colors$3.gray50,backgroundTertiary:colors$3.gray100,backgroundInversePrimary:n.primaryA,backgroundInverseSecondary:colors$3.gray800,contentPrimary:n.primaryA,contentSecondary:colors$3.gray600,contentTertiary:colors$3.gray500,contentInversePrimary:n.primaryB,contentInverseSecondary:colors$3.gray300,contentInverseTertiary:colors$3.gray400,borderOpaque:colors$3.gray200,borderTransparent:hexToRgb(n.primaryA,"0.08"),borderSelected:n.primaryA,borderInverseOpaque:colors$3.gray700,borderInverseTransparent:hexToRgb(n.primaryB,"0.2"),borderInverseSelected:n.primaryB},e={backgroundStateDisabled:colors$3.gray50,backgroundOverlayDark:hexToRgb(colors$3.black,"0.3"),backgroundOverlayLight:hexToRgb(colors$3.black,"0.08"),backgroundOverlayArt:hexToRgb(colors$3.black,"0.00"),backgroundAccent:n.accent,backgroundNegative:n.negative,backgroundWarning:n.warning,backgroundPositive:colors$3.green400,backgroundLightAccent:colors$3.blue50,backgroundLightNegative:colors$3.red50,backgroundLightWarning:colors$3.yellow50,backgroundLightPositive:colors$3.green50,backgroundAlwaysDark:colors$3.black,backgroundAlwaysLight:colors$3.white,contentStateDisabled:colors$3.gray400,contentAccent:n.accent,contentOnColor:colors$3.white,contentOnColorInverse:colors$3.black,contentNegative:n.negative,contentWarning:colors$3.yellow600,contentPositive:colors$3.green400,borderStateDisabled:colors$3.gray50,borderAccent:colors$3.blue400,borderAccentLight:colors$3.blue200,borderNegative:colors$3.red200,borderWarning:colors$3.yellow200,borderPositive:colors$3.green200,safety:colors$3.blue400,eatsGreen400:colors$3.green400,freightBlue400:colors$3.cobalt400,jumpRed400:colors$3.red400,rewardsTier1:colors$3.blue400,rewardsTier2:colors$3.yellow400,rewardsTier3:colors$3.platinum400,rewardsTier4:colors$3.black,membership:colors$3.yellow600};return _objectSpread$w(_objectSpread$w({},i),e)});var tagHoverBackground="rgba(0, 0, 0, 0.08)";const getComponentColorTokens=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:lightColorTokens;return{bannerActionLowInfo:n.accent100,bannerActionLowNegative:n.negative100,bannerActionLowPositive:n.positive100,bannerActionLowWarning:n.warning200,bannerActionHighInfo:n.accent500,bannerActionHighNegative:n.negative500,bannerActionHighPositive:n.positive500,bannerActionHighWarning:n.warning200,buttonPrimaryFill:n.primary,buttonPrimaryText:n.white,buttonPrimaryHover:n.primary700,buttonPrimaryActive:n.primary600,buttonPrimarySelectedFill:n.primary600,buttonPrimarySelectedText:n.white,buttonPrimarySpinnerForeground:n.accent,buttonPrimarySpinnerBackground:n.primaryB,buttonSecondaryFill:n.primary100,buttonSecondaryText:n.primary,buttonSecondaryHover:n.primary200,buttonSecondaryActive:n.primary300,buttonSecondarySelectedFill:n.primary300,buttonSecondarySelectedText:n.primary,buttonSecondarySpinnerForeground:n.accent,buttonSecondarySpinnerBackground:n.primaryB,buttonTertiaryFill:"transparent",buttonTertiaryText:n.primary,buttonTertiaryHover:n.primary50,buttonTertiaryActive:n.primary100,buttonTertiarySelectedFill:n.primary100,buttonTertiarySelectedText:n.primary,buttonTertiaryDisabledActiveFill:n.primary50,buttonTertiaryDisabledActiveText:n.mono600,buttonTertiarySpinnerForeground:n.accent,buttonTertiarySpinnerBackground:n.primary100,buttonDisabledFill:n.mono200,buttonDisabledText:n.mono600,buttonDisabledActiveFill:n.mono700,buttonDisabledActiveText:n.mono100,buttonDisabledSpinnerForeground:n.mono600,buttonDisabledSpinnerBackground:n.mono400,breadcrumbsText:n.black,breadcrumbsSeparatorFill:n.mono700,calendarBackground:n.mono100,calendarForeground:n.mono1000,calendarForegroundDisabled:n.mono500,calendarHeaderBackground:n.white,calendarHeaderForeground:n.primary,calendarHeaderBackgroundActive:n.primary700,calendarHeaderForegroundDisabled:n.primary500,calendarDayForegroundPseudoSelected:n.mono1000,calendarDayBackgroundPseudoSelectedHighlighted:n.primary200,calendarDayForegroundPseudoSelectedHighlighted:n.mono1000,calendarDayBackgroundSelected:n.primary,calendarDayForegroundSelected:n.white,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelectedHighlighted:n.white,comboboxListItemFocus:n.mono200,comboboxListItemHover:n.mono300,fileUploaderBackgroundColor:n.mono200,fileUploaderBackgroundColorActive:n.primary50,fileUploaderBorderColorActive:n.primary,fileUploaderBorderColorDefault:n.mono500,fileUploaderMessageColor:n.mono800,linkText:n.primary,linkVisited:n.primary700,linkHover:n.primary600,linkActive:n.primary500,listHeaderFill:n.white,listBodyFill:n.white,progressStepsCompletedText:n.white,progressStepsCompletedFill:n.primary,progressStepsActiveText:n.white,progressStepsActiveFill:n.primary,toggleFill:n.white,toggleFillChecked:n.primary,toggleFillDisabled:n.mono600,toggleTrackFill:n.mono400,toggleTrackFillDisabled:n.mono300,tickFill:n.mono100,tickFillHover:n.mono200,tickFillActive:n.mono300,tickFillSelected:n.primary,tickFillSelectedHover:n.primary700,tickFillSelectedHoverActive:n.primary600,tickFillError:n.negative50,tickFillErrorHover:n.negative100,tickFillErrorHoverActive:n.negative200,tickFillErrorSelected:n.negative400,tickFillErrorSelectedHover:n.negative500,tickFillErrorSelectedHoverActive:n.negative600,tickFillDisabled:n.mono600,tickBorder:n.mono700,tickBorderError:n.negative400,tickMarkFill:n.white,tickMarkFillError:n.white,tickMarkFillDisabled:n.mono100,sliderTrackFill:"transparent",sliderHandleFill:n.primaryA,sliderHandleFillDisabled:n.primary400,sliderHandleInnerFill:n.primaryA,sliderTrackFillHover:n.mono500,sliderTrackFillActive:n.mono600,sliderTrackFillDisabled:n.mono300,sliderHandleInnerFillDisabled:n.mono400,sliderHandleInnerFillSelectedHover:n.primary,sliderHandleInnerFillSelectedActive:n.primary500,inputBorder:n.mono300,inputFill:n.mono300,inputFillError:n.negative50,inputFillDisabled:n.mono200,inputFillActive:n.mono200,inputFillPositive:n.positive50,inputTextDisabled:n.mono600,inputBorderError:n.negative200,inputBorderPositive:n.positive200,inputEnhancerFill:n.mono300,inputEnhancerFillDisabled:n.mono300,inputEnhancerTextDisabled:n.mono600,inputPlaceholder:n.mono700,inputPlaceholderDisabled:n.mono600,menuFill:n.mono100,menuFillHover:n.mono200,menuFontDefault:n.mono800,menuFontDisabled:n.mono500,menuFontHighlighted:n.mono1000,menuFontSelected:n.mono1000,modalCloseColor:n.mono1000,modalCloseColorHover:n.mono800,modalCloseColorFocus:n.mono800,tabBarFill:n.mono200,tabColor:n.mono800,notificationInfoBackground:n.accent50,notificationInfoText:n.primaryA,notificationPositiveBackground:n.positive50,notificationPositiveText:n.primaryA,notificationWarningBackground:n.warning50,notificationWarningText:n.primaryA,notificationNegativeBackground:n.negative50,notificationNegativeText:n.primaryA,tagFontDisabledRampUnit:"100",tagSolidFontRampUnit:"0",tagSolidRampUnit:"400",tagOutlinedFontRampUnit:"400",tagOutlinedRampUnit:"200",tagSolidHoverRampUnit:"50",tagSolidActiveRampUnit:"100",tagSolidDisabledRampUnit:"50",tagSolidFontHoverRampUnit:"500",tagLightRampUnit:"50",tagLightHoverRampUnit:"100",tagLightActiveRampUnit:"100",tagLightFontRampUnit:"500",tagLightFontHoverRampUnit:"500",tagOutlinedHoverRampUnit:"50",tagOutlinedActiveRampUnit:"0",tagOutlinedFontHoverRampUnit:"400",tagNeutralFontDisabled:n.mono600,tagNeutralOutlinedDisabled:n.mono400,tagNeutralSolidFont:n.white,tagNeutralSolidBackground:n.black,tagNeutralOutlinedBackground:n.mono600,tagNeutralOutlinedFont:n.black,tagNeutralSolidHover:n.mono300,tagNeutralSolidActive:n.mono400,tagNeutralSolidDisabled:n.mono200,tagNeutralSolidFontHover:n.mono900,tagNeutralLightBackground:n.mono300,tagNeutralLightHover:n.mono300,tagNeutralLightActive:n.mono400,tagNeutralLightDisabled:n.mono200,tagNeutralLightFont:n.mono900,tagNeutralLightFontHover:n.mono900,tagNeutralOutlinedActive:n.mono900,tagNeutralOutlinedFontHover:n.mono800,tagNeutralOutlinedHover:tagHoverBackground,tagPrimaryFontDisabled:n.primary400,tagPrimaryOutlinedDisabled:n.primary200,tagPrimarySolidFont:n.white,tagPrimarySolidBackground:n.primary,tagPrimaryOutlinedFontHover:n.primary,tagPrimaryOutlinedFont:n.primary,tagPrimarySolidHover:n.primary100,tagPrimarySolidActive:n.primary200,tagPrimarySolidDisabled:n.primary50,tagPrimarySolidFontHover:n.primary700,tagPrimaryLightBackground:n.primary50,tagPrimaryLightHover:n.primary100,tagPrimaryLightActive:n.primary100,tagPrimaryLightDisabled:n.primary50,tagPrimaryLightFont:n.primary500,tagPrimaryLightFontHover:n.primary500,tagPrimaryOutlinedActive:n.primary600,tagPrimaryOutlinedHover:tagHoverBackground,tagPrimaryOutlinedBackground:n.primary400,tagAccentFontDisabled:n.accent200,tagAccentOutlinedDisabled:n.accent200,tagAccentSolidFont:n.white,tagAccentSolidBackground:n.accent400,tagAccentOutlinedBackground:n.accent200,tagAccentOutlinedFont:n.accent400,tagAccentSolidHover:n.accent50,tagAccentSolidActive:n.accent100,tagAccentSolidDisabled:n.accent50,tagAccentSolidFontHover:n.accent500,tagAccentLightBackground:n.accent50,tagAccentLightHover:n.accent100,tagAccentLightActive:n.accent100,tagAccentLightDisabled:n.accent50,tagAccentLightFont:n.accent500,tagAccentLightFontHover:n.accent500,tagAccentOutlinedActive:n.accent600,tagAccentOutlinedFontHover:n.accent400,tagAccentOutlinedHover:tagHoverBackground,tagPositiveFontDisabled:n.positive200,tagPositiveOutlinedDisabled:n.positive200,tagPositiveSolidFont:n.white,tagPositiveSolidBackground:n.positive400,tagPositiveOutlinedBackground:n.positive200,tagPositiveOutlinedFont:n.positive400,tagPositiveSolidHover:n.positive50,tagPositiveSolidActive:n.positive100,tagPositiveSolidDisabled:n.positive50,tagPositiveSolidFontHover:n.positive500,tagPositiveLightBackground:n.positive50,tagPositiveLightHover:n.positive100,tagPositiveLightActive:n.positive100,tagPositiveLightDisabled:n.positive50,tagPositiveLightFont:n.positive500,tagPositiveLightFontHover:n.positive500,tagPositiveOutlinedActive:n.positive600,tagPositiveOutlinedFontHover:n.positive400,tagPositiveOutlinedHover:tagHoverBackground,tagWarningFontDisabled:n.warning300,tagWarningOutlinedDisabled:n.warning300,tagWarningSolidFont:n.warning700,tagWarningSolidBackground:n.warning400,tagWarningOutlinedBackground:n.warning300,tagWarningOutlinedFont:n.warning600,tagWarningSolidHover:n.warning50,tagWarningSolidActive:n.warning100,tagWarningSolidDisabled:n.warning50,tagWarningSolidFontHover:n.warning500,tagWarningLightBackground:n.warning50,tagWarningLightHover:n.warning100,tagWarningLightActive:n.warning100,tagWarningLightDisabled:n.warning50,tagWarningLightFont:n.warning500,tagWarningLightFontHover:n.warning500,tagWarningOutlinedActive:n.warning600,tagWarningOutlinedFontHover:n.warning600,tagWarningOutlinedHover:tagHoverBackground,tagNegativeFontDisabled:n.negative200,tagNegativeOutlinedDisabled:n.negative200,tagNegativeSolidFont:n.white,tagNegativeSolidBackground:n.negative400,tagNegativeOutlinedBackground:n.negative200,tagNegativeOutlinedFont:n.negative400,tagNegativeSolidHover:n.negative50,tagNegativeSolidActive:n.negative100,tagNegativeSolidDisabled:n.negative50,tagNegativeSolidFontHover:n.negative500,tagNegativeLightBackground:n.negative50,tagNegativeLightHover:n.negative100,tagNegativeLightActive:n.negative100,tagNegativeLightDisabled:n.negative50,tagNegativeLightFont:n.negative500,tagNegativeLightFontHover:n.negative500,tagNegativeOutlinedActive:n.negative600,tagNegativeOutlinedFontHover:n.negative400,tagNegativeOutlinedHover:tagHoverBackground,tableHeadBackgroundColor:n.mono100,tableBackground:n.mono100,tableStripedBackground:n.mono200,tableFilter:n.mono600,tableFilterHeading:n.mono700,tableFilterBackground:n.mono100,tableFilterFooterBackground:n.mono200,toastText:n.white,toastPrimaryText:n.white,toastInfoBackground:n.accent400,toastInfoText:n.white,toastPositiveBackground:n.positive400,toastPositiveText:n.white,toastWarningBackground:n.warning400,toastWarningText:n.black,toastNegativeBackground:n.negative400,toastNegativeText:n.white,spinnerTrackFill:n.mono900,progressbarTrackFill:n.mono900,tooltipBackground:n.mono900,tooltipText:n.mono100}});var borders={border100:{borderColor:"hsla(0, 0%, 0%, 0.04)",borderStyle:"solid",borderWidth:"1px"},border200:{borderColor:"hsla(0, 0%, 0%, 0.08)",borderStyle:"solid",borderWidth:"1px"},border300:{borderColor:"hsla(0, 0%, 0%, 0.12)",borderStyle:"solid",borderWidth:"1px"},border400:{borderColor:"hsla(0, 0%, 0%, 0.16)",borderStyle:"solid",borderWidth:"1px"},border500:{borderColor:"hsla(0, 0%, 0%, 0.2)",borderStyle:"solid",borderWidth:"1px"},border600:{borderColor:"hsla(0, 0%, 0%, 0.24)",borderStyle:"solid",borderWidth:"1px"},radius100:"2px",radius200:"4px",radius300:"8px",radius400:"12px",radius500:"16px",useRoundedCorners:!0,buttonBorderRadiusMini:"4px",buttonBorderRadius:"8px",checkboxBorderRadius:"0px",inputBorderRadiusMini:"4px",inputBorderRadius:"8px",popoverBorderRadius:"8px",surfaceBorderRadius:"0px",tagBorderRadius:"24px"},lighting={shadow400:"0 1px 4px hsla(0, 0%, 0%, 0.16)",shadow500:"0 2px 8px hsla(0, 0%, 0%, 0.16)",shadow600:"0 4px 16px hsla(0, 0%, 0%, 0.16)",shadow700:"0 8px 24px hsla(0, 0%, 0%, 0.16)",overlay0:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0)",overlay100:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.04)",overlay200:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.08)",overlay300:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.12)",overlay400:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.16)",overlay500:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.2)",overlay600:"inset 0 0 0 1000px hsla(0, 0%, 0%, 0.24)",shallowAbove:"0px -4px 16px rgba(0, 0, 0, 0.12)",shallowBelow:"0px 4px 16px rgba(0, 0, 0, 0.12)",deepAbove:"0px -16px 48px rgba(0, 0, 0, 0.22)",deepBelow:"0px 16px 48px rgba(0, 0, 0, 0.22)"};function ownKeys$w(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$v(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$w(Object(e),!0).forEach(function(t){_defineProperty$C(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$w(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$C(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var defaultFontTokens={primaryFontFamily:'system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif'},monoFontFamily='"Lucida Console", Monaco, monospace';const getTypography=(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:defaultFontTokens,i={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:"normal",lineHeight:"20px"},e={fontFamily:n.primaryFontFamily,fontSize:"12px",fontWeight:500,lineHeight:"16px"},t={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:"normal",lineHeight:"20px"},o={fontFamily:n.primaryFontFamily,fontSize:"14px",fontWeight:500,lineHeight:"16px"},d={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:"normal",lineHeight:"24px"},p={fontFamily:n.primaryFontFamily,fontSize:"16px",fontWeight:500,lineHeight:"20px"},h={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:"normal",lineHeight:"28px"},y={fontFamily:n.primaryFontFamily,fontSize:"18px",fontWeight:500,lineHeight:"24px"},$={fontFamily:n.primaryFontFamily,fontSize:"20px",fontWeight:700,lineHeight:"28px"},E={fontFamily:n.primaryFontFamily,fontSize:"24px",fontWeight:700,lineHeight:"32px"},M={fontFamily:n.primaryFontFamily,fontSize:"28px",fontWeight:700,lineHeight:"36px"},H={fontFamily:n.primaryFontFamily,fontSize:"32px",fontWeight:700,lineHeight:"40px"},Z={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},be={fontFamily:n.primaryFontFamily,fontSize:"40px",fontWeight:700,lineHeight:"52px"},ye={fontFamily:n.primaryFontFamily,fontSize:"36px",fontWeight:700,lineHeight:"44px"},we={fontFamily:n.primaryFontFamily,fontSize:"44px",fontWeight:700,lineHeight:"52px"},Ce={fontFamily:n.primaryFontFamily,fontSize:"52px",fontWeight:700,lineHeight:"64px"},xe={fontFamily:n.primaryFontFamily,fontSize:"96px",fontWeight:700,lineHeight:"112px"};return{font100:i,font150:e,font200:t,font250:o,font300:d,font350:p,font400:h,font450:y,font550:$,font650:E,font750:M,font850:H,font950:Z,font1050:be,font1150:ye,font1250:we,font1350:Ce,font1450:xe,ParagraphXSmall:i,ParagraphSmall:t,ParagraphMedium:d,ParagraphLarge:h,LabelXSmall:e,LabelSmall:o,LabelMedium:p,LabelLarge:y,HeadingXSmall:$,HeadingSmall:E,HeadingMedium:M,HeadingLarge:H,HeadingXLarge:Z,HeadingXXLarge:be,DisplayXSmall:ye,DisplaySmall:we,DisplayMedium:Ce,DisplayLarge:xe,MonoParagraphXSmall:_objectSpread$v(_objectSpread$v({},i),{},{fontFamily:monoFontFamily}),MonoParagraphSmall:_objectSpread$v(_objectSpread$v({},t),{},{fontFamily:monoFontFamily}),MonoParagraphMedium:_objectSpread$v(_objectSpread$v({},d),{},{fontFamily:monoFontFamily}),MonoParagraphLarge:_objectSpread$v(_objectSpread$v({},h),{},{fontFamily:monoFontFamily}),MonoLabelXSmall:_objectSpread$v(_objectSpread$v({},e),{},{fontFamily:monoFontFamily}),MonoLabelSmall:_objectSpread$v(_objectSpread$v({},o),{},{fontFamily:monoFontFamily}),MonoLabelMedium:_objectSpread$v(_objectSpread$v({},p),{},{fontFamily:monoFontFamily}),MonoLabelLarge:_objectSpread$v(_objectSpread$v({},y),{},{fontFamily:monoFontFamily}),MonoHeadingXSmall:_objectSpread$v(_objectSpread$v({},$),{},{fontFamily:monoFontFamily}),MonoHeadingSmall:_objectSpread$v(_objectSpread$v({},E),{},{fontFamily:monoFontFamily}),MonoHeadingMedium:_objectSpread$v(_objectSpread$v({},M),{},{fontFamily:monoFontFamily}),MonoHeadingLarge:_objectSpread$v(_objectSpread$v({},H),{},{fontFamily:monoFontFamily}),MonoHeadingXLarge:_objectSpread$v(_objectSpread$v({},Z),{},{fontFamily:monoFontFamily}),MonoHeadingXXLarge:_objectSpread$v(_objectSpread$v({},be),{},{fontFamily:monoFontFamily}),MonoDisplayXSmall:_objectSpread$v(_objectSpread$v({},ye),{},{fontFamily:monoFontFamily}),MonoDisplaySmall:_objectSpread$v(_objectSpread$v({},we),{},{fontFamily:monoFontFamily}),MonoDisplayMedium:_objectSpread$v(_objectSpread$v({},Ce),{},{fontFamily:monoFontFamily}),MonoDisplayLarge:_objectSpread$v(_objectSpread$v({},xe),{},{fontFamily:monoFontFamily})}});var animation={timing100:"100ms",timing200:"200ms",timing300:"300ms",timing400:"400ms",timing500:"500ms",timing600:"600ms",timing700:"700ms",timing800:"800ms",timing900:"900ms",timing1000:"1000ms",easeInCurve:"cubic-bezier(.8, .2, .6, 1)",easeOutCurve:"cubic-bezier(.2, .8, .4, 1)",easeInOutCurve:"cubic-bezier(0.4, 0, 0.2, 1)",easeInQuinticCurve:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",easeOutQuinticCurve:"cubic-bezier(0.23, 1, 0.32, 1)",easeInOutQuinticCurve:"cubic-bezier(0.86, 0, 0.07, 1)",linearCurve:"cubic-bezier(0, 0, 1, 1)"},breakpoints$1={small:320,medium:600,large:1136},grid={columns:[4,8,12],gutters:[16,36,36],margins:[16,36,64],gaps:0,unit:"px",maxWidth:1280},getMediaQuery=function n(i){return"@media screen and (min-width: ".concat(i,"px)")},mediaQuery={small:getMediaQuery(breakpoints$1.small),medium:getMediaQuery(breakpoints$1.medium),large:getMediaQuery(breakpoints$1.large)},sizing={scale0:"2px",scale100:"4px",scale200:"6px",scale300:"8px",scale400:"10px",scale500:"12px",scale550:"14px",scale600:"16px",scale650:"18px",scale700:"20px",scale750:"22px",scale800:"24px",scale850:"28px",scale900:"32px",scale950:"36px",scale1000:"40px",scale1200:"48px",scale1400:"56px",scale1600:"64px",scale2400:"96px",scale3200:"128px",scale4800:"192px"};function ownKeys$v(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$u(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$v(Object(e),!0).forEach(function(t){_defineProperty$B(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$v(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$B(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var LightTheme={name:"light-theme",colors:_objectSpread$u(_objectSpread$u(_objectSpread$u({},lightColorTokens),getComponentColorTokens()),getSemanticColorTokens()),animation,breakpoints:breakpoints$1,borders,direction:"auto",grid,lighting,mediaQuery,sizing,typography:getTypography(),zIndex:{modal:2e3}};function _typeof$j(n){"@babel/helpers - typeof";return _typeof$j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$j(n)}function deepMerge(n){n=n||{};for(var i=arguments.length<=1?0:arguments.length-1,e,t,o=0;o<i;o++){e=(o+1<1||arguments.length<=o+1?void 0:arguments[o+1])||{};for(var d in e)_typeof$j(e[d])!==void 0&&(t=e[d],isCloneable(t)?n[d]=deepMerge(n[d]||Array.isArray(t)&&[]||{},t):n[d]=t)}return n}function isCloneable(n){return Array.isArray(n)||{}.toString.call(n)=="[object Object]"}var darkColorTokens={primaryA:colors$3.gray200,primaryB:colors$3.gray900,primary:colors$3.white,primary50:colors$3.gray50,primary100:colors$3.gray100,primary200:colors$3.gray200,primary300:colors$3.gray300,primary400:colors$3.gray400,primary500:colors$3.gray500,primary600:colors$3.gray600,primary700:colors$3.gray700,accent:colors$3.blue400,accent50:colors$3.blue50,accent100:colors$3.blue100,accent200:colors$3.blue200,accent300:colors$3.blue300,accent400:colors$3.blue400,accent500:colors$3.blue500,accent600:colors$3.blue600,accent700:colors$3.blue700,negative:colors$3.red500,negative50:colors$3.red50,negative100:colors$3.red100,negative200:colors$3.red200,negative300:colors$3.red300,negative400:colors$3.red400,negative500:colors$3.red500,negative600:colors$3.red600,negative700:colors$3.red700,warning:colors$3.yellow500,warning50:colors$3.yellow50,warning100:colors$3.yellow100,warning200:colors$3.yellow200,warning300:colors$3.yellow300,warning400:colors$3.yellow400,warning500:colors$3.yellow500,warning600:colors$3.yellow600,warning700:colors$3.yellow700,positive:colors$3.green400,positive50:colors$3.green50,positive100:colors$3.green100,positive200:colors$3.green200,positive300:colors$3.green300,positive400:colors$3.green400,positive500:colors$3.green500,positive600:colors$3.green600,positive700:colors$3.green700,white:colors$3.white,black:colors$3.black,mono100:colors$3.gray300,mono200:colors$3.gray400,mono300:colors$3.gray500,mono400:colors$3.gray600,mono500:colors$3.gray700,mono600:"#292929",mono700:"#1F1F1F",mono800:"#141414",mono900:"#111111",mono1000:colors$3.black,ratingInactiveFill:colors$3.gray500,ratingStroke:colors$3.gray700},_excluded$q=["primaryFontFamily"];function ownKeys$u(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$t(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$u(Object(e),!0).forEach(function(t){_defineProperty$A(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$u(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$A(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _objectWithoutProperties$r(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$r(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$r(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function createLightTheme(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0,e=n.primaryFontFamily,t=_objectWithoutProperties$r(n,_excluded$q),o=_objectSpread$t(_objectSpread$t({},lightColorTokens),t),d={animation,borders,breakpoints:breakpoints$1,colors:_objectSpread$t(_objectSpread$t(_objectSpread$t({},o),getComponentColorTokens(o)),getSemanticColorTokens(o)),direction:"auto",grid,lighting,mediaQuery,sizing,typography:e?getTypography({primaryFontFamily:e}):getTypography(),zIndex:{modal:2e3}};return deepMerge(d,i)}function ownKeys$t(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$s(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$t(Object(e),!0).forEach(function(t){_defineProperty$z(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$t(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$z(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var primitives$1=_objectSpread$s(_objectSpread$s({},darkColorTokens),defaultFontTokens);function ownKeys$s(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$r(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$s(Object(e),!0).forEach(function(t){_defineProperty$y(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$s(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$y(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var primitives=_objectSpread$r(_objectSpread$r({},lightColorTokens),defaultFontTokens),ThemeContext$1=reactExports.createContext(LightTheme),ThemeProvider$1=function n(i){var e=i.theme,t=i.children;return reactExports.createElement(ThemeContext$1.Provider,{value:e},t)};function ownKeys$r(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$q(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$r(Object(e),!0).forEach(function(t){_defineProperty$x(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$r(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$x(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _slicedToArray$m(n,i){return _arrayWithHoles$m(n)||_iterableToArrayLimit$m(n,i)||_unsupportedIterableToArray$m(n,i)||_nonIterableRest$m()}function _nonIterableRest$m(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
48
48
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$m(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$m(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$m(n,i)}}function _arrayLikeToArray$m(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$m(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$m(n){if(Array.isArray(n))return n}function _extends$y(){return _extends$y=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$y.apply(this,arguments)}var wrapper=function n(i){return reactExports.forwardRef(function(e,t){return reactExports.createElement(ThemeContext$1.Consumer,null,function(o){return reactExports.createElement(i,_extends$y({ref:t},e,{$theme:o}))})})};function createThemedStyled(){return createStyled$1({wrapper,getInitialStyle,driver})}var styled$1=createThemedStyled();function createThemedWithStyle(){return withStyle$1}var withStyle=createThemedWithStyle();function createThemedUseStyletron(){return function(){var n=reactExports.useContext(ThemeContext$1),i=useStyletron$1(),e=_slicedToArray$m(i,1),t=e[0];return[t,n]}}var useStyletron=createThemedUseStyletron();function withWrapper(n,i){return withWrapper$1(n,function(e){return reactExports.forwardRef(function(t,o){return reactExports.createElement(ThemeContext$1.Consumer,null,function(d){return i(e)(_objectSpread$q(_objectSpread$q({ref:o},t),{},{$theme:d}))})})})}var locale$b={collapse:"Collapse",expand:"Expand"},locale$a={ariaLabel:"Breadcrumbs navigation"},locale$9={ariaLabel:"Select a date.",ariaLabelRange:"Select a date range.",ariaLabelCalendar:"Calendar.",ariaRoleDescriptionCalendarMonth:"Calendar month",previousMonth:"Previous month.",nextMonth:"Next month.",pastWeek:"Past Week",pastMonth:"Past Month",pastThreeMonths:"Past 3 Months",pastSixMonths:"Past 6 Months",pastYear:"Past Year",pastTwoYears:"Past 2 Years",screenReaderMessageInput:"Press the down arrow key to interact with the calendar and select a date. Press the escape button to close the calendar.",selectedDate:"Selected date is ${date}.",selectedDateRange:"Selected date range is from ${startDate} to ${endDate}.",selectSecondDatePrompt:"Select the second date.",quickSelectLabel:"Choose a date range",quickSelectAriaLabel:"Choose a date range",quickSelectPlaceholder:"None",timeSelectEndLabel:"End time",timeSelectStartLabel:"Start time",timePickerAriaLabel12Hour:"Select a time, 12-hour format.",timePickerAriaLabel24Hour:"Select a time, 24-hour format.",timezonePickerAriaLabel:"Select a timezone.",selectedStartDateLabel:"Selected start date.",selectedEndDateLabel:"Selected end date.",dateNotAvailableLabel:"Not available.",dateAvailableLabel:"It's available.",selectedLabel:"Selected.",chooseLabel:"Choose"},locale$8={emptyState:"No rows match the filter criteria defined. Please remove one or more filters to view more data.",loadingState:"Loading rows.",searchAriaLabel:"Search by text",filterAdd:"Add Filter",filterExclude:"Exclude",filterApply:"Apply",filterExcludeRange:"Exclude range",filterExcludeValue:"Exclude value",filterAppliedTo:"filter applied to",optionsLabel:"Select column to filter by",optionsSearch:"Search for a column to filter by...",optionsEmpty:"No columns available.",categoricalFilterSelectAll:"Select All",categoricalFilterSelectClear:"Clear",categoricalFilterEmpty:"No categories found",datetimeFilterRange:"Range",datetimeFilterRangeDatetime:"Date, Time",datetimeFilterRangeDate:"Date",datetimeFilterRangeTime:"Time",datetimeFilterCategorical:"Categorical",datetimeFilterCategoricalWeekday:"Weekday",datetimeFilterCategoricalMonth:"Month",datetimeFilterCategoricalQuarter:"Quarter",datetimeFilterCategoricalHalf:"Half",datetimeFilterCategoricalFirstHalf:"H1",datetimeFilterCategoricalSecondHalf:"H2",datetimeFilterCategoricalYear:"Year",numericalFilterRange:"Range",numericalFilterSingleValue:"Single Value",booleanFilterTrue:"true",booleanFilterFalse:"false",booleanColumnTrueShort:"T",booleanColumnFalseShort:"F",selectRow:"Select row",selectAllRows:"Select all rows"},locale$7={ariaLabel:"button group"},locale$6={dropFilesToUpload:"Drop files here to upload...",or:"",browseFiles:"Browse files",retry:"Retry Upload",cancel:"Cancel"},locale$5={noResultsMsg:"No results",parentMenuItemAriaLabel:"You are currently at an item that opens a nested listbox. Press right arrow to enter that element and left arrow to return."},locale$4={close:"Close"},locale$3={close:"Close"},locale$2={prev:"Prev",next:"Next",preposition:"of"},locale$1={noResultsMsg:"No results found",placeholder:"Select...",create:"Create"},locale={close:"Close"},en_US={accordion:locale$b,breadcrumbs:locale$a,datepicker:locale$9,datatable:locale$8,buttongroup:locale$7,fileuploader:locale$6,menu:locale$5,modal:locale$4,drawer:locale$3,pagination:locale$2,select:locale$1,toast:locale},LocaleContext=reactExports.createContext(en_US),generateUID$1=function(){var n=1,i=new WeakMap,e=function(t,o){return typeof t=="number"||typeof t=="string"?o?"idx-".concat(o):"val-".concat(t):i.has(t)?"uid"+i.get(t):(i.set(t,n++),e(t))};return e},createSource=function(n){return n===void 0&&(n=""),{value:1,prefix:n,uid:generateUID$1()}},counter=createSource(),source=reactExports.createContext(createSource()),getId=function(n){return n.value++},getPrefix=function(n){return n?n.prefix:""},__extends$1=(function(){var n=function(i,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(t[d]=o[d])},n(i,e)};return function(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(i,e);function t(){this.constructor=i}i.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}})(),prefixId=function(n,i,e){var t=i+n;return String(e?e(t):t)},UID=(function(n){__extends$1(i,n);function i(){var e=n!==null&&n.apply(this,arguments)||this;return e.state={quartz:e.props.idSource||counter,prefix:getPrefix(e.props.idSource),id:getId(e.props.idSource||counter)},e.uid=function(t){return prefixId(e.state.id+"-"+e.state.quartz.uid(t),e.state.prefix,e.props.name)},e}return i.prototype.render=function(){var e=this.props,t=e.children,o=e.name,d=this.state,p=d.id,h=d.prefix;return t(prefixId(p,h,o),this.uid)},i})(reactExports.Component),generateUID=function(n){var i=n||counter,e=getPrefix(i),t=getId(i),o=e+t,d=function(p){return o+i.uid(p)};return{uid:o,gen:d}},useUIDState=function(){var n=reactExports.useContext(source),i=reactExports.useState(function(){return generateUID(n)})[0];return i},useUID=function(){var n=useUIDState().uid;return n},useUIDSeed=function(){var n=useUIDState().gen;return n},UIDReset=function(n){var i=n.children,e=n.prefix,t=e===void 0?"":e,o=reactExports.useState(function(){return createSource(t)})[0];return reactExports.createElement(source.Provider,{value:o},i)},UIDConsumer=function(n){var i=n.name,e=n.children;return reactExports.createElement(source.Consumer,null,function(t){return reactExports.createElement(UID,{name:i,idSource:t,children:e})})},reactIsExports$1=requireReactIs$1();function _extends$x(){return _extends$x=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$x.apply(this,arguments)}function ownKeys$q(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$p(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$q(Object(e),!0).forEach(function(t){_defineProperty$w(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$q(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$w(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _typeof$i(n){"@babel/helpers - typeof";return _typeof$i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$i(n)}function getOverride(n){return reactIsExports$1.isValidElementType(n)?n:n&&_typeof$i(n)==="object"?n.component:n}function getOverrideProps(n){return n&&_typeof$i(n)==="object"?_typeof$i(n.props)==="object"?_objectSpread$p(_objectSpread$p({},n.props),{},{$style:n.style}):{$style:n.style}:{}}function toObjectOverride(n){return reactIsExports$1.isValidElementType(n)?{component:n}:n||{}}function getOverrides(n,i){var e=getOverride(n)||i;if(n&&_typeof$i(n)==="object"&&typeof n.props=="function"){var t=reactExports.forwardRef(function(d,p){var h=n.props(d),y=getOverrideProps(_objectSpread$p(_objectSpread$p({},n),{},{props:h}));return reactExports.createElement(e,_extends$x({ref:p},y))});return t.displayName=e.displayName,[t,{}]}var o=getOverrideProps(n);return[e,o]}function mergeOverrides(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=Object.assign({},n,i),t=Object.keys(e);return t.reduce(function(o,d){return o[d]=mergeOverride(toObjectOverride(n[d]),toObjectOverride(i[d])),o},{})}function mergeOverride(n,i){var e=_objectSpread$p(_objectSpread$p({},n),i);return n.props&&i.props&&(e.props=mergeConfigurationOverrides(n.props,i.props)),n.style&&i.style&&(e.style=mergeConfigurationOverrides(n.style,i.style)),e}function mergeConfigurationOverrides(n,i){return _typeof$i(n)==="object"&&_typeof$i(i)==="object"?deepMerge({},n,i):function(){return deepMerge({},typeof n=="function"?n.apply(void 0,arguments):n,typeof i=="function"?i.apply(void 0,arguments):i)}}var initialized=!1,hadKeyboardEvent=!0,inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(n){var i=n.type,e=n.tagName;return!!(e==="INPUT"&&inputTypesWhitelist[i]&&!n.readOnly||e==="TEXTAREA"&&!n.readOnly||n.isContentEditable)}function handleKeyDown(n){n.metaKey||n.altKey||n.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState}function prepare(n){n.addEventListener("keydown",handleKeyDown,!0),n.addEventListener("mousedown",handlePointerDown,!0),n.addEventListener("pointerdown",handlePointerDown,!0),n.addEventListener("touchstart",handlePointerDown,!0),n.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(n){try{return n.target.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(n.target)}function initFocusVisible(n){!initialized&&n!=null&&(initialized=!0,prepare(n.ownerDocument))}var forkFocus=function n(i,e){return function(t){typeof i.onFocus=="function"&&i.onFocus(t),e(t)}},forkBlur=function n(i,e){return function(t){typeof i.onBlur=="function"&&i.onBlur(t),e(t)}};function _typeof$h(n){"@babel/helpers - typeof";return _typeof$h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$h(n)}function _extends$w(){return _extends$w=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$w.apply(this,arguments)}function _slicedToArray$l(n,i){return _arrayWithHoles$l(n)||_iterableToArrayLimit$l(n,i)||_unsupportedIterableToArray$l(n,i)||_nonIterableRest$l()}function _nonIterableRest$l(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -93,7 +93,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
93
93
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$f(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$f(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$f(n,i)}}function _iterableToArray$2(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$2(n){if(Array.isArray(n))return _arrayLikeToArray$f(n)}function _arrayLikeToArray$f(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function ownKeys$e(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$d(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$e(Object(e),!0).forEach(function(t){_defineProperty$f(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$e(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _classCallCheck$7(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$7(n,i,e){return i&&_defineProperties$7(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$7(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$6(n,i)}function _setPrototypeOf$6(n,i){return _setPrototypeOf$6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$6(n,i)}function _createSuper$7(n){var i=_isNativeReflectConstruct$7();return function(){var t=_getPrototypeOf$7(n),o;if(i){var d=_getPrototypeOf$7(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$7(this,o)}}function _possibleConstructorReturn$7(n,i){if(i&&(_typeof$7(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$7(n)}function _assertThisInitialized$7(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$7(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$7(n){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$7(n)}function _defineProperty$f(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var toasterRef,ToasterContainer=(function(n){_inherits$7(e,n);var i=_createSuper$7(e);function e(t){var o;return _classCallCheck$7(this,e),o=i.call(this,t),_defineProperty$f(_assertThisInitialized$7(o),"state",{isMounted:!1,toasts:[]}),_defineProperty$f(_assertThisInitialized$7(o),"dismissHandlers",{}),_defineProperty$f(_assertThisInitialized$7(o),"toastId",0),_defineProperty$f(_assertThisInitialized$7(o),"getToastProps",function(d){var p=o.props,h=p.autoFocus,y=p.autoHideDuration,$=p.closeable,E=d.key||"toast-".concat(o.toastId++);return _objectSpread$d(_objectSpread$d({autoFocus:h,autoHideDuration:y,closeable:$},d),{},{key:E})}),_defineProperty$f(_assertThisInitialized$7(o),"show",function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(o.state.toasts.map(function(h){return h.key}).includes(d.key))return o.update(d.key,d),d.key;var p=o.getToastProps(d);return o.setState(function(h){var y=h.toasts;return{toasts:[].concat(_toConsumableArray$2(y),[p])}}),p.key}),_defineProperty$f(_assertThisInitialized$7(o),"update",function(d,p){o.setState(function(h){var y=h.toasts,$=y.map(function(E){if(E.key===d){var M=_objectSpread$d(_objectSpread$d(_objectSpread$d({},E),o.getToastProps(_objectSpread$d({autoHideDuration:E.autoHideDuration},p))),{},{key:d},o.props.resetAutoHideTimerOnUpdate?{__updated:(+E.__updated||0)+1}:{});return M}return E});return{toasts:$}})}),_defineProperty$f(_assertThisInitialized$7(o),"dismiss",function(d){o.dismissHandlers[d]&&o.dismissHandlers[d]()}),_defineProperty$f(_assertThisInitialized$7(o),"clearAll",function(){Object.keys(o.dismissHandlers).forEach(function(d){o.dismissHandlers[d]()})}),_defineProperty$f(_assertThisInitialized$7(o),"clear",function(d){d===void 0?o.clearAll():o.dismiss(d)}),_defineProperty$f(_assertThisInitialized$7(o),"internalOnClose",function(d){delete o.dismissHandlers[d],o.setState(function(p){var h=p.toasts;return{toasts:h.filter(function(y){return y.key!==d})}})}),_defineProperty$f(_assertThisInitialized$7(o),"getOnCloseHandler",function(d,p){return function(){o.internalOnClose(d),typeof p=="function"&&p()}}),_defineProperty$f(_assertThisInitialized$7(o),"renderToast",function(d){var p=d.onClose,h=d.children,y=d.key,$=_objectWithoutProperties$h(d,_excluded$k),E=o.props.overrides,M=E.ToastBody,H=E.ToastCloseIcon,Z=E.ToastInnerContainer,be=mergeOverrides({Body:Body$1,CloseIcon:CloseIconSvg,InnerContainer},{Body:M||{},CloseIcon:H||{},InnerContainer:Z||{}}),ye=mergeOverrides(be,d.overrides);return reactExports.createElement(Toast$1,_extends$j({},$,{overrides:ye,key:y,onClose:o.getOnCloseHandler(y,p)}),function(we){var Ce=we.dismiss;return o.dismissHandlers[y]=Ce,h})}),_defineProperty$f(_assertThisInitialized$7(o),"getSharedProps",function(){var d=o.props.placement;return{$placement:d}}),toasterRef=_assertThisInitialized$7(o),o}return _createClass$7(e,[{key:"componentDidMount",value:function(){this.setState({isMounted:!0})}},{key:"render",value:function(){for(var o=this.getSharedProps(),d=this.props.overrides.Root,p=getOverrides(d,Root$2),h=_slicedToArray$f(p,2),y=h[0],$=h[1],E=this.state.toasts.length,M=[],H=E-1;H>=0;H--)M.push(this.renderToast(this.state.toasts[H]));var Z=reactExports.createElement(y,_extends$j({"data-baseweb":"toaster"},o,$),M);return this.state.isMounted?reactExports.createElement(reactExports.Fragment,null,this.props.usePortal&&typeof document<"u"&&document.body?ReactDOM.createPortal(Z,document.body):Z,this.props.children):reactExports.createElement(reactExports.Fragment,null,this.props.children)}}]),e})(reactExports.Component);_defineProperty$f(ToasterContainer,"defaultProps",{autoFocus:!1,autoHideDuration:0,children:null,closeable:!0,overrides:{},placement:PLACEMENT.top,resetAutoHideTimerOnUpdate:!0,usePortal:!0});var toaster={getRef:function n(){return toasterRef},show:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=this.getRef();if(t)return t.show(_objectSpread$d(_objectSpread$d({},e),{},{children:i}))},info:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.info}))},positive:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.positive}))},warning:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.warning}))},negative:function n(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.show(i,_objectSpread$d(_objectSpread$d({},e),{},{kind:KIND$1.negative}))},update:function n(i,e){var t=this.getRef();t&&t.update(i,e)},clear:function n(i){var e=this.getRef();e&&e.clear(i)}};function _typeof$6(n){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},_typeof$6(n)}function _extends$i(){return _extends$i=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$i.apply(this,arguments)}function _classCallCheck$6(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(n,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(n,t.key,t)}}function _createClass$6(n,i,e){return i&&_defineProperties$6(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}function _inherits$6(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(i&&i.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),i&&_setPrototypeOf$5(n,i)}function _setPrototypeOf$5(n,i){return _setPrototypeOf$5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,o){return t.__proto__=o,t},_setPrototypeOf$5(n,i)}function _createSuper$6(n){var i=_isNativeReflectConstruct$6();return function(){var t=_getPrototypeOf$6(n),o;if(i){var d=_getPrototypeOf$6(this).constructor;o=Reflect.construct(t,arguments,d)}else o=t.apply(this,arguments);return _possibleConstructorReturn$6(this,o)}}function _possibleConstructorReturn$6(n,i){if(i&&(_typeof$6(i)==="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized$6(n)}function _assertThisInitialized$6(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function _isNativeReflectConstruct$6(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _getPrototypeOf$6(n){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_getPrototypeOf$6(n)}function _defineProperty$e(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var Notification=(function(n){_inherits$6(e,n);var i=_createSuper$6(e);function e(){return _classCallCheck$6(this,e),i.apply(this,arguments)}return _createClass$6(e,[{key:"render",value:function(){var o=mergeOverrides({Body:{style:function(p){var h=p.$theme;return{marginTop:h.sizing.scale600,marginRight:h.sizing.scale600,marginBottom:h.sizing.scale600,marginLeft:h.sizing.scale600}}}},this.props.overrides);return reactExports.createElement(Toast$1,_extends$i({"data-baseweb":"notification"},this.props,{overrides:o}))}}]),e})(reactExports.Component);_defineProperty$e(Notification,"defaultProps",{notificationType:TYPE$1.inline,closeable:!1});const StyledAlertContent$1=styled("div",{target:"e5p6yly0"})(({theme:n})=>({pre:{backgroundColor:n.colors.transparent,paddingTop:n.spacing.lg,paddingBottom:n.spacing.lg,paddingRight:n.spacing.lg,paddingLeft:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"pre, code":{backgroundColor:n.colors.transparent,color:"inherit"}},code:{backgroundColor:n.colors.transparent,padding:n.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}));var Kind=(function(n){return n.ERROR="error",n.INFO="info",n.SUCCESS="success",n.WARNING="warning",n})({});function getNotificationKind(n){switch(n){case"error":return KIND$1.negative;case"info":return KIND$1.info;case"success":return KIND$1.positive;case"warning":return KIND$1.warning;default:throw new Error(`Unexpected alert type: ${n}`)}}function AlertContainer({kind:n,width:i,children:e}){const t=useEmotionTheme(),o=n.charAt(0).toUpperCase()+n.slice(1);return jsx$1(Notification,{kind:getNotificationKind(n),overrides:{Body:{style:{fontWeight:t.fontWeights.normal,marginTop:t.spacing.none,marginBottom:t.spacing.none,marginLeft:t.spacing.none,marginRight:t.spacing.none,width:i?i.toString():void 0,border:0,borderTopRightRadius:t.radii.default,borderBottomRightRadius:t.radii.default,borderTopLeftRadius:t.radii.default,borderBottomLeftRadius:t.radii.default,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg},props:{"data-testid":"stAlertContainer",className:"stAlertContainer"}},InnerContainer:{style:{width:"100%",lineHeight:t.lineHeights.small}}},children:jsx$1(StyledAlertContent$1,{"data-testid":`stAlertContent${o}`,children:e})})}const StyledStackTrace=styled("pre",{target:"e1p6lu300"})(({theme:n})=>({whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:n.fontSizes.codeFontSize,fontFamily:n.genericFonts.codeFont,fontWeight:n.fontWeights.code,backgroundColor:n.colors.transparent,overflowX:"auto",margin:0,borderRadius:n.radii.default,padding:n.spacing.lg,border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),StyledErrorName=styled("strong",{target:"e1p6lu301"})(({theme:n})=>({fontWeight:n.fontWeights.codeBold}));function ErrorElement(n){const{name:i,message:e,stack:t,width:o}=n,d=t?t.split(`
|
|
94
94
|
`):[];d.shift();const p=d.map(h=>h.trim()).join(`
|
|
95
95
|
`);return jsxs(AlertContainer,{kind:Kind.ERROR,width:o,children:[jsxs(StyledErrorName,{children:[i,": "]}),e,t?jsx$1(StyledStackTrace,{"data-testid":"stErrorElementStack",children:jsx$1(StyledCode,{wrapLines:!1,children:p})}):null]})}const LOG$f=loglevelExports.getLogger("ErrorBoundary"),Ss=class Ss extends reactExports.PureComponent{constructor(){super(...arguments),this.state={error:null},this.componentDidCatch=i=>{LOG$f.error(`${i.name}: ${i.message}
|
|
96
|
-
${i.stack}`)}}render(){const{error:i}=this.state;return i?i.name==="ChunkLoadError"?jsx$1(ErrorElement,{width:this.props.width,name:"Network issue",message:jsxs("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",jsx$1("br",{}),"To fix this, simply reload this app by pressing"," ",jsx$1(StyledInlineCode,{children:"F5"}),","," ",jsx$1(StyledInlineCode,{children:"Ctrl+R"}),", or"," ",jsx$1(StyledInlineCode,{children:"Cmd+R"}),".",jsx$1("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",jsx$1("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):jsx$1(ErrorElement,{width:this.props.width,name:i.name,message:i.message,stack:i.stack}):this.props.children}};Ss.getDerivedStateFromError=i=>({error:i});let ErrorBoundary=Ss;function convertRemToEm(n){return n.replace(/rem$/,"em")}function sharedMarkdownStyle(n){return{a:{color:n.colors.link,textDecoration:n.linkUnderline?"underline":"none","&:focus":{outline:"none",boxShadow:n.shadows.focusRing,borderRadius:n.radii.default},"&:focus:not(:focus-visible)":{boxShadow:n.shadows.none},"&:focus-visible":{boxShadow:n.shadows.focusRing,borderRadius:n.radii.default}}}}function convertFontSizes(n,i,e){if(i){const t=roundFontSizeToNearestEighth(parseFloat(n)*.65),o=`${Math.max(t,.75)}rem`;return e?convertRemToEm(o):o}return e?convertRemToEm(n):n}function getMarkdownHeadingDefinitions(n,i,e){return{"h1, h2, h3, h4, h5, h6":{fontFamily:n.genericFonts.headingFont,lineHeight:n.lineHeights.headings,margin:0,color:"inherit"},h1:{fontSize:convertFontSizes(n.fontSizes.h1FontSize,i,e),fontWeight:n.fontWeights.h1FontWeight,padding:`${n.spacing.xl} 0 ${n.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:n.fontWeights.h1FontWeight},"h2, h3":{letterSpacing:"-0.005em"},h2:{fontSize:convertFontSizes(n.fontSizes.h2FontSize,i,e),fontWeight:n.fontWeights.h2FontWeight,padding:`${n.spacing.lg} 0 ${n.spacing.lg} 0`},h3:{fontSize:convertFontSizes(n.fontSizes.h3FontSize,i,e),fontWeight:n.fontWeights.h3FontWeight,padding:`${n.spacing.md} 0 ${n.spacing.lg} 0`},h4:{fontSize:convertFontSizes(n.fontSizes.h4FontSize,i,e),fontWeight:n.fontWeights.h4FontWeight,padding:`${n.spacing.sm} 0 ${n.spacing.lg} 0`},h5:{fontSize:convertFontSizes(n.fontSizes.h5FontSize,i,e),fontWeight:n.fontWeights.h5FontWeight,padding:`${n.spacing.xs} 0 ${n.spacing.lg} 0`},h6:{fontSize:convertFontSizes(n.fontSizes.h6FontSize,i,e),fontWeight:n.fontWeights.h6FontWeight,padding:`${n.spacing.twoXS} 0 ${n.spacing.lg} 0`}}}const StyledStreamlitMarkdown=styled("div",{target:"e1t8ru6f0"})(({theme:n,isCaption:i,isInDialog:e,isLabel:t,inheritFont:o,boldLabel:d,largerLabel:p,isToast:h})=>{const y=t&&!p||h||i;return{fontFamily:o?"inherit":n.genericFonts.bodyFont,fontSize:o?"inherit":y?n.fontSizes.sm:n.fontSizes.md,marginBottom:t?"":`-${n.spacing.lg}`,opacity:i?.6:void 0,color:"inherit",maxWidth:"100%",width:t?"":"100%",overflowWrap:"break-word",...sharedMarkdownStyle(n),...getMarkdownHeadingDefinitions(n,e,i),"&:has(.katex-display)":{overflowX:"hidden"},p:{wordBreak:"break-word",marginBottom:t?n.spacing.none:"",fontWeight:o?"inherit":d?n.fontWeights.bold:"",marginTop:n.spacing.none,marginLeft:n.spacing.none,marginRight:n.spacing.none},img:{maxWidth:"100%",maxHeight:t?"1em":void 0,verticalAlign:"middle",objectFit:"scale-down"},li:{margin:"0.2em 0 0.2em 1.15em",padding:"0 0 0 0.3em"},"li.task-list-item":{listStyleType:"none",padding:"0",marginLeft:"0","input[type='checkbox']":{verticalAlign:"middle",margin:"0 0.35em 0.1em 0"}},blockquote:{margin:"1em 0 1em 0",padding:"0 0 0 0.75em",borderLeft:`0.15em solid ${n.colors.borderColor}`,opacity:.6},"b, strong":{fontWeight:n.fontWeights.bold},"b code, strong code":{fontWeight:n.fontWeights.codeBold},hr:{margin:"2em 0",padding:0,color:"inherit",backgroundColor:"transparent",border:"none",borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:not([size])":{height:n.sizes.borderWidth}},table:{display:"table",borderCollapse:"collapse",marginBottom:n.spacing.lg},tr:{borderTop:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},th:{textAlign:"inherit"},"th, td":{padding:`${n.spacing.xs} ${n.spacing.md}`,border:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},"span.stMarkdownColoredBackground":{borderRadius:n.radii.md,padding:`${n.spacing.threeXS} ${n.spacing.twoXS}`,margin:n.spacing.none,boxDecorationBreak:"clone"},"span.stMarkdownBadge":{borderRadius:n.radii.md,padding:`0 ${n.spacing.twoXS}`,margin:`0 ${n.spacing.px}`,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",display:"inline-block",verticalAlign:"middle"},"p, ol, ul, dl, li":{fontSize:"inherit"},"& > ul, & > ol":{display:"block",width:"fit-content",textAlign:"left"},"li > ul, li > ol":{display:"block"},".katex-display":{overflowX:"auto",overflowY:"hidden"},".katex":{fontWeight:n.fontWeights.normal}}}),StyledLinkIcon=styled("a",{target:"e1t8ru6f1"})(({theme:n})=>({lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity 150ms ease-in-out",svg:{stroke:n.colors.fadedText60,strokeWidth:n.sizes.defaultStrokeWidth},"&:hover svg":{stroke:n.colors.bodyText},"&:focus-visible":{opacity:1,pointerEvents:"auto"}})),StyledHeadingWithActionElements=styled("div",{target:"e1t8ru6f2"})(({theme:n})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:n.sizes.headerHeight},...sharedMarkdownStyle(n),wordBreak:"break-word",textWrap:"pretty","&:hover, &:focus-within":{[StyledLinkIcon]:{opacity:1,pointerEvents:"auto"}}})),StyledHeadingActionElements=styled("span",{target:"e1t8ru6f3"})(({theme:n})=>({marginLeft:n.spacing.sm,display:"inline-flex",gap:n.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=styled("hr",{target:"e1t8ru6f4"})(({theme:n,rainbow:i,color:e})=>({height:`${n.spacing.threeXS} !important`,marginTop:n.spacing.sm,marginBottom:n.spacing.none,border:"none",borderRadius:n.radii.full,...i?{background:e}:{backgroundColor:e}})),StyledPreWrapper=styled("div",{target:"e1t8ru6f5"})(({theme:n})=>({marginBottom:n.spacing.lg})),StyledHelpIconWrapper=styled("span",{target:"e1t8ru6f6"})({display:"inline-block",verticalAlign:"middle",transform:"translateY(-0.1em)"}),LOAD_FAILED=Symbol("plugin_load_failed"),pluginCache={katex:null,raw:null,emoji:null},loadingPromises={katex:null,raw:null,emoji:null},loadKatexPlugin=()=>__vitePreload(()=>import("./index.Bh5BZaHG.js"),__vite__mapDeps([0,1,2]),import.meta.url),loadKatexStyles=once(()=>{__vitePreload(()=>Promise.resolve().then(()=>katex_min),void 0,import.meta.url)}),loadRehypeRaw=()=>__vitePreload(()=>import("./index.BuJPJSD7.js"),__vite__mapDeps([3,1,2]),import.meta.url),loadRemarkEmoji=()=>__vitePreload(()=>import("./index.kEL0HsUR.js"),__vite__mapDeps([4,5]),import.meta.url);function isLoadedPlugin(n){return n!==null&&n!==LOAD_FAILED}function extractPlugin(n,i){const e=[];let t=n,o=0;for(;t&&typeof t=="object"&&"default"in t&&o<5;){const d=t.default;if(e.push(d),d===t)break;t=d,o+=1}e.push(n);for(const d of e)if(typeof d=="function")return d;return console.warn(`[StreamlitMarkdown] Failed to load ${i} plugin`),LOAD_FAILED}function wrapRehypePlugin(n,i){return e=>{const t=n(e);return(o,d)=>{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function wrapRemarkPlugin(n,i){return e=>{const t=n(e);return(o,d)=>{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function useLazyPlugin(n){const{key:i,needed:e,load:t,pluginName:o,onBeforeLoad:d}=n,p=e?pluginCache[i]:null,[h,y]=reactExports.useState(null);return reactExports.useEffect(()=>{if(!e||p||h)return;const $=loadingPromises[i];if($){let H=!1;return $.then(Z=>{H||y(()=>Z)}),()=>{H=!0}}d?.();let E=!1;const M=t().then(H=>extractPlugin(H,o)).then(H=>(pluginCache[i]=H,E||y(()=>H),H)).catch(()=>{const H=LOAD_FAILED;return pluginCache[i]=H,E||y(()=>H),H}).finally(()=>{loadingPromises[i]=null});return loadingPromises[i]=M,()=>{E=!0}},[e,p,h,i,t,o,d]),e?p??h:null}const StreamlitSyntaxHighlighter$1=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.Cys9Bt18.js"),__vite__mapDeps([6,2]),import.meta.url));function containsEmojiShortcodes(n){return/:(?!material\/|streamlit:)[\w+-][\w_+-]*:/.test(n)}function containsMathSyntax(n){return new RegExp("\\$\\$[\\s\\S]+?\\$\\$|\\$(?!\\s)[^$\\n]+?(?<!\\s)\\$").test(n)}var Tags=(function(n){return n.H1="h1",n.H2="h2",n.H3="h3",n})({});function rehypeSetCodeInlineProperty(){return n=>{visit(n,"element",(i,e,t)=>{i.tagName==="code"&&(t?.type==="element"&&t.tagName==="pre"?i.properties={...i.properties,inline:!1}:i.properties={...i.properties,inline:!0})})}}function createAnchorFromText(n){if(!n)return"";const i=slugify(n);return i.length>0?i:xxhash.h32(n,43981).toString(16)}function transformLinkUri(n){return n}const scrollNodeIntoView=once(n=>{n.scrollIntoView(!0)}),HeaderActionElements=({elementId:n,help:i,hideAnchor:e})=>{const t=useEmotionTheme();return!i&&e?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[i&&jsx$1(InlineTooltipIcon,{content:i}),n&&!e&&jsx$1(StyledLinkIcon,{href:`#${n}`,"aria-label":"Link to heading",children:jsx$1(Link2,{size:convertRemToPx(t.iconSizes.base),"aria-hidden":"true"})})]})},HeadingWithActionElements=({tag:n,anchor:i,help:e,hideAnchor:t,children:o,tagProps:d})=>{const p=reactExports.useContext(IsSidebarContext),h=reactExports.useContext(IsDialogContext),[y,$]=reactExports.useState(i),E=reactExports.useCallback(Fe=>{if(Fe===null)return;const Le=i||createAnchorFromText(Fe.textContent);$(Le);const Me=window.location.hash.slice(1);Me&&Me===Le&&scrollNodeIntoView(Fe)},[i]),M=p||h,H=jsx$1(HeaderActionElements,{elementId:y,help:e,hideAnchor:t||M}),Z=reactExports.useId(),be=e||y&&!t&&!M?Z:void 0,ye=y?{id:y}:{},we=be?{"aria-labelledby":be}:{},Ce={...M?{}:{ref:E,...ye},...we},Ne=jsxs(n,{...d,...Ce,children:[be?jsx$1("span",{id:be,children:o}):o,H]});return M?Ne:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:Ne})},CustomHeading=({node:n,children:i,...e})=>{const t=e["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:n.tagName,anchor:t,tagProps:e,children:i})},CustomCodeTag=({inline:n,className:i,children:e,...t})=>{const o=/language-(\w+)/.exec(i||""),d=String(e??"").replace(/^\n/,"").replace(/\n$/,""),p=o?.[1]||"";return n?jsx$1(StyledInlineCode,{className:i,...omit(t,"node"),children:e}):jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(StreamlitSyntaxHighlighter$1,{language:p,showLineNumbers:!1,children:d})})})},CustomPreTag=({children:n})=>jsx$1(StyledPreWrapper,{"data-testid":"stMarkdownPre",children:n}),CustomMediaTag=({node:n,...i})=>{const e=useCrossOriginAttribute(i.src),t=n.tagName,o={...i,crossOrigin:e};return jsx$1(t,{...o})},HelpTextContext=reactExports.createContext(void 0);HelpTextContext.displayName="HelpTextContext";const CustomHelpIcon=({children:n})=>{const e=reactExports.useContext(HelpTextContext)||(typeof n=="string"?n:"");return jsx$1(StyledHelpIconWrapper,{children:jsx$1(InlineTooltipIcon,{content:e})})},BASE_RENDERERS={pre:CustomPreTag,code:CustomCodeTag,h1:CustomHeading,h2:CustomHeading,h3:CustomHeading,h4:CustomHeading,h5:CustomHeading,h6:CustomHeading,img:CustomMediaTag,video:CustomMediaTag,audio:CustomMediaTag,"streamlit-help-icon":CustomHelpIcon};function createColorMapping(n){const{red:i,orange:e,yellow:t,green:o,blue:d,violet:p,purple:h,gray:y,primary:$}=getMarkdownTextColors(n),{redbg:E,orangebg:M,yellowbg:H,greenbg:Z,bluebg:be,violetbg:ye,purplebg:we,graybg:Ce,primarybg:xe}=getThemeBackgroundColors(n);return new Map(Object.entries({red:`color: ${i}`,orange:`color: ${e}`,yellow:`color: ${t}`,blue:`color: ${d}`,green:`color: ${o}`,violet:`color: ${p}`,gray:`color: ${y}`,grey:`color: ${y}`,primary:`color: ${$}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right,
|
|
96
|
+
${i.stack}`)}}render(){const{error:i}=this.state;return i?i.name==="ChunkLoadError"?jsx$1(ErrorElement,{width:this.props.width,name:"Network issue",message:jsxs("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",jsx$1("br",{}),"To fix this, simply reload this app by pressing"," ",jsx$1(StyledInlineCode,{children:"F5"}),","," ",jsx$1(StyledInlineCode,{children:"Ctrl+R"}),", or"," ",jsx$1(StyledInlineCode,{children:"Cmd+R"}),".",jsx$1("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",jsx$1("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):jsx$1(ErrorElement,{width:this.props.width,name:i.name,message:i.message,stack:i.stack}):this.props.children}};Ss.getDerivedStateFromError=i=>({error:i});let ErrorBoundary=Ss;function convertRemToEm(n){return n.replace(/rem$/,"em")}function sharedMarkdownStyle(n){return{a:{color:n.colors.link,textDecoration:n.linkUnderline?"underline":"none","&:focus":{outline:"none",boxShadow:n.shadows.focusRing,borderRadius:n.radii.default},"&:focus:not(:focus-visible)":{boxShadow:n.shadows.none},"&:focus-visible":{boxShadow:n.shadows.focusRing,borderRadius:n.radii.default}}}}function convertFontSizes(n,i,e){if(i){const t=roundFontSizeToNearestEighth(parseFloat(n)*.65),o=`${Math.max(t,.75)}rem`;return e?convertRemToEm(o):o}return e?convertRemToEm(n):n}function getMarkdownHeadingDefinitions(n,i,e){return{"h1, h2, h3, h4, h5, h6":{fontFamily:n.genericFonts.headingFont,lineHeight:n.lineHeights.headings,margin:0,color:"inherit"},h1:{fontSize:convertFontSizes(n.fontSizes.h1FontSize,i,e),fontWeight:n.fontWeights.h1FontWeight,padding:`${n.spacing.xl} 0 ${n.spacing.lg} 0`},"h1 b, h1 strong":{fontWeight:n.fontWeights.h1FontWeight},"h2, h3":{letterSpacing:"-0.005em"},h2:{fontSize:convertFontSizes(n.fontSizes.h2FontSize,i,e),fontWeight:n.fontWeights.h2FontWeight,padding:`${n.spacing.lg} 0 ${n.spacing.lg} 0`},h3:{fontSize:convertFontSizes(n.fontSizes.h3FontSize,i,e),fontWeight:n.fontWeights.h3FontWeight,padding:`${n.spacing.md} 0 ${n.spacing.lg} 0`},h4:{fontSize:convertFontSizes(n.fontSizes.h4FontSize,i,e),fontWeight:n.fontWeights.h4FontWeight,padding:`${n.spacing.sm} 0 ${n.spacing.lg} 0`},h5:{fontSize:convertFontSizes(n.fontSizes.h5FontSize,i,e),fontWeight:n.fontWeights.h5FontWeight,padding:`${n.spacing.xs} 0 ${n.spacing.lg} 0`},h6:{fontSize:convertFontSizes(n.fontSizes.h6FontSize,i,e),fontWeight:n.fontWeights.h6FontWeight,padding:`${n.spacing.twoXS} 0 ${n.spacing.lg} 0`}}}const StyledStreamlitMarkdown=styled("div",{target:"e1t8ru6f0"})(({theme:n,isCaption:i,isInDialog:e,isLabel:t,inheritFont:o,boldLabel:d,largerLabel:p,isToast:h})=>{const y=t&&!p||h||i;return{fontFamily:o?"inherit":n.genericFonts.bodyFont,fontSize:o?"inherit":y?n.fontSizes.sm:n.fontSizes.md,marginBottom:t?"":`-${n.spacing.lg}`,opacity:i?.6:void 0,color:"inherit",maxWidth:"100%",width:t?"":"100%",overflowWrap:"break-word",...sharedMarkdownStyle(n),...getMarkdownHeadingDefinitions(n,e,i),"&:has(.katex-display)":{overflowX:"hidden"},p:{wordBreak:"break-word",marginBottom:t?n.spacing.none:"",fontWeight:o?"inherit":d?n.fontWeights.bold:"",marginTop:n.spacing.none,marginLeft:n.spacing.none,marginRight:n.spacing.none},img:{maxWidth:"100%",maxHeight:t?"1em":void 0,verticalAlign:"middle",objectFit:"scale-down"},li:{margin:"0.2em 0 0.2em 1.15em",padding:"0 0 0 0.3em"},"li.task-list-item":{listStyleType:"none",padding:"0",marginLeft:"0","input[type='checkbox']":{verticalAlign:"middle",margin:"0 0.35em 0.1em 0"}},blockquote:{margin:"1em 0 1em 0",padding:"0 0 0 0.75em",borderLeft:`0.15em solid ${n.colors.borderColor}`,opacity:.6},"b, strong":{fontWeight:n.fontWeights.bold},"b code, strong code":{fontWeight:n.fontWeights.codeBold},hr:{margin:"2em 0",padding:0,color:"inherit",backgroundColor:"transparent",border:"none",borderBottom:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,"&:not([size])":{height:n.sizes.borderWidth}},table:{display:"table",borderCollapse:"collapse",marginBottom:n.spacing.lg},tr:{borderTop:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},th:{textAlign:"inherit"},"th, td":{padding:`${n.spacing.xs} ${n.spacing.md}`,border:`${n.sizes.borderWidth} solid ${n.colors.dataframeBorderColor}`},"span.stMarkdownColoredBackground":{borderRadius:n.radii.md,padding:`${n.spacing.threeXS} ${n.spacing.twoXS}`,margin:n.spacing.none,boxDecorationBreak:"clone"},"span.stMarkdownBadge":{borderRadius:n.radii.md,padding:`0 ${n.spacing.twoXS}`,margin:`0 ${n.spacing.px}`,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",display:"inline-block",verticalAlign:"middle"},"p, ol, ul, dl, li":{fontSize:"inherit"},"& > ul, & > ol":{display:"block",width:"fit-content",textAlign:"left"},"li > ul, li > ol":{display:"block"},".katex-display":{overflowX:"auto",overflowY:"hidden"},".katex":{fontWeight:n.fontWeights.normal}}}),StyledLinkIcon=styled("a",{target:"e1t8ru6f1"})(({theme:n})=>({lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity 150ms ease-in-out",svg:{stroke:n.colors.fadedText60,strokeWidth:n.sizes.defaultStrokeWidth},"&:hover svg":{stroke:n.colors.bodyText},"&:focus-visible":{opacity:1,pointerEvents:"auto"}})),StyledHeadingWithActionElements=styled("div",{target:"e1t8ru6f2"})(({theme:n})=>({"h1, h2, h3, h4, h5, h6, span":{scrollMarginTop:n.sizes.headerHeight},...sharedMarkdownStyle(n),wordBreak:"break-word",textWrap:"pretty","&:hover, &:focus-within":{[StyledLinkIcon]:{opacity:1,pointerEvents:"auto"}}})),StyledHeadingActionElements=styled("span",{target:"e1t8ru6f3"})(({theme:n})=>({marginLeft:n.spacing.sm,display:"inline-flex",gap:n.spacing.sm,verticalAlign:"middle","& > *":{marginLeft:"0 !important"}})),StyledHeaderDivider=styled("hr",{target:"e1t8ru6f4"})(({theme:n,rainbow:i,color:e})=>({height:`${n.spacing.threeXS} !important`,marginTop:n.spacing.sm,marginBottom:n.spacing.none,border:"none",borderRadius:n.radii.full,...i?{background:e}:{backgroundColor:e}})),StyledPreWrapper=styled("div",{target:"e1t8ru6f5"})(({theme:n})=>({marginBottom:n.spacing.lg})),StyledHelpIconWrapper=styled("span",{target:"e1t8ru6f6"})({display:"inline-block",verticalAlign:"middle",transform:"translateY(-0.1em)"}),LOAD_FAILED=Symbol("plugin_load_failed"),pluginCache={katex:null,raw:null,emoji:null},loadingPromises={katex:null,raw:null,emoji:null},loadKatexPlugin=()=>__vitePreload(()=>import("./index.syoxWolF.js"),__vite__mapDeps([0,1,2]),import.meta.url),loadKatexStyles=once(()=>{__vitePreload(()=>Promise.resolve().then(()=>katex_min),void 0,import.meta.url)}),loadRehypeRaw=()=>__vitePreload(()=>import("./index.Pgm3rRpH.js"),__vite__mapDeps([3,1,2]),import.meta.url),loadRemarkEmoji=()=>__vitePreload(()=>import("./index.xZ651bTg.js"),__vite__mapDeps([4,5]),import.meta.url);function isLoadedPlugin(n){return n!==null&&n!==LOAD_FAILED}function extractPlugin(n,i){const e=[];let t=n,o=0;for(;t&&typeof t=="object"&&"default"in t&&o<5;){const d=t.default;if(e.push(d),d===t)break;t=d,o+=1}e.push(n);for(const d of e)if(typeof d=="function")return d;return console.warn(`[StreamlitMarkdown] Failed to load ${i} plugin`),LOAD_FAILED}function wrapRehypePlugin(n,i){return e=>{const t=n(e);return(o,d)=>{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function wrapRemarkPlugin(n,i){return e=>{const t=n(e);return(o,d)=>{if(!o)return o;try{return t(o,d)}catch(p){return console.error(`[StreamlitMarkdown] ${i} crashed while transforming`,p),o}}}}function useLazyPlugin(n){const{key:i,needed:e,load:t,pluginName:o,onBeforeLoad:d}=n,p=e?pluginCache[i]:null,[h,y]=reactExports.useState(null);return reactExports.useEffect(()=>{if(!e||p||h)return;const $=loadingPromises[i];if($){let H=!1;return $.then(Z=>{H||y(()=>Z)}),()=>{H=!0}}d?.();let E=!1;const M=t().then(H=>extractPlugin(H,o)).then(H=>(pluginCache[i]=H,E||y(()=>H),H)).catch(()=>{const H=LOAD_FAILED;return pluginCache[i]=H,E||y(()=>H),H}).finally(()=>{loadingPromises[i]=null});return loadingPromises[i]=M,()=>{E=!0}},[e,p,h,i,t,o,d]),e?p??h:null}const StreamlitSyntaxHighlighter$1=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.c2qcx-xG.js"),__vite__mapDeps([6,2]),import.meta.url));function containsEmojiShortcodes(n){return/:(?!material\/|streamlit:)[\w+-][\w_+-]*:/.test(n)}function containsMathSyntax(n){return new RegExp("\\$\\$[\\s\\S]+?\\$\\$|\\$(?!\\s)[^$\\n]+?(?<!\\s)\\$").test(n)}var Tags=(function(n){return n.H1="h1",n.H2="h2",n.H3="h3",n})({});function rehypeSetCodeInlineProperty(){return n=>{visit(n,"element",(i,e,t)=>{i.tagName==="code"&&(t?.type==="element"&&t.tagName==="pre"?i.properties={...i.properties,inline:!1}:i.properties={...i.properties,inline:!0})})}}function createAnchorFromText(n){if(!n)return"";const i=slugify(n);return i.length>0?i:xxhash.h32(n,43981).toString(16)}function transformLinkUri(n){return n}const scrollNodeIntoView=once(n=>{n.scrollIntoView(!0)}),HeaderActionElements=({elementId:n,help:i,hideAnchor:e})=>{const t=useEmotionTheme();return!i&&e?jsx$1(Fragment,{}):jsxs(StyledHeadingActionElements,{"data-testid":"stHeaderActionElements",children:[i&&jsx$1(InlineTooltipIcon,{content:i}),n&&!e&&jsx$1(StyledLinkIcon,{href:`#${n}`,"aria-label":"Link to heading",children:jsx$1(Link2,{size:convertRemToPx(t.iconSizes.base),"aria-hidden":"true"})})]})},HeadingWithActionElements=({tag:n,anchor:i,help:e,hideAnchor:t,children:o,tagProps:d})=>{const p=reactExports.useContext(IsSidebarContext),h=reactExports.useContext(IsDialogContext),[y,$]=reactExports.useState(i),E=reactExports.useCallback(Fe=>{if(Fe===null)return;const Le=i||createAnchorFromText(Fe.textContent);$(Le);const Me=window.location.hash.slice(1);Me&&Me===Le&&scrollNodeIntoView(Fe)},[i]),M=p||h,H=jsx$1(HeaderActionElements,{elementId:y,help:e,hideAnchor:t||M}),Z=reactExports.useId(),be=e||y&&!t&&!M?Z:void 0,ye=y?{id:y}:{},we=be?{"aria-labelledby":be}:{},Ce={...M?{}:{ref:E,...ye},...we},Ne=jsxs(n,{...d,...Ce,children:[be?jsx$1("span",{id:be,children:o}):o,H]});return M?Ne:jsx$1(StyledHeadingWithActionElements,{"data-testid":"stHeadingWithActionElements",children:Ne})},CustomHeading=({node:n,children:i,...e})=>{const t=e["data-anchor"];return jsx$1(HeadingWithActionElements,{tag:n.tagName,anchor:t,tagProps:e,children:i})},CustomCodeTag=({inline:n,className:i,children:e,...t})=>{const o=/language-(\w+)/.exec(i||""),d=String(e??"").replace(/^\n/,"").replace(/\n$/,""),p=o?.[1]||"";return n?jsx$1(StyledInlineCode,{className:i,...omit(t,"node"),children:e}):jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(StreamlitSyntaxHighlighter$1,{language:p,showLineNumbers:!1,children:d})})})},CustomPreTag=({children:n})=>jsx$1(StyledPreWrapper,{"data-testid":"stMarkdownPre",children:n}),CustomMediaTag=({node:n,...i})=>{const e=useCrossOriginAttribute(i.src),t=n.tagName,o={...i,crossOrigin:e};return jsx$1(t,{...o})},HelpTextContext=reactExports.createContext(void 0);HelpTextContext.displayName="HelpTextContext";const CustomHelpIcon=({children:n})=>{const e=reactExports.useContext(HelpTextContext)||(typeof n=="string"?n:"");return jsx$1(StyledHelpIconWrapper,{children:jsx$1(InlineTooltipIcon,{content:e})})},BASE_RENDERERS={pre:CustomPreTag,code:CustomCodeTag,h1:CustomHeading,h2:CustomHeading,h3:CustomHeading,h4:CustomHeading,h5:CustomHeading,h6:CustomHeading,img:CustomMediaTag,video:CustomMediaTag,audio:CustomMediaTag,"streamlit-help-icon":CustomHelpIcon};function createColorMapping(n){const{red:i,orange:e,yellow:t,green:o,blue:d,violet:p,purple:h,gray:y,primary:$}=getMarkdownTextColors(n),{redbg:E,orangebg:M,yellowbg:H,greenbg:Z,bluebg:be,violetbg:ye,purplebg:we,graybg:Ce,primarybg:xe}=getThemeBackgroundColors(n);return new Map(Object.entries({red:`color: ${i}`,orange:`color: ${e}`,yellow:`color: ${t}`,blue:`color: ${d}`,green:`color: ${o}`,violet:`color: ${p}`,gray:`color: ${y}`,grey:`color: ${y}`,primary:`color: ${$}`,rainbow:`color: transparent; background-clip: text; -webkit-background-clip: text; background-image: linear-gradient(to right,
|
|
97
97
|
${i}, ${e}, ${t}, ${o}, ${d}, ${p}, ${h});`,"red-background":`background-color: ${E}`,"orange-background":`background-color: ${M}`,"yellow-background":`background-color: ${H}`,"blue-background":`background-color: ${be}`,"green-background":`background-color: ${Z}`,"violet-background":`background-color: ${ye}`,"gray-background":`background-color: ${Ce}`,"grey-background":`background-color: ${Ce}`,"primary-background":`background-color: ${xe}`,"rainbow-background":`background: linear-gradient(to right,
|
|
98
98
|
${E}, ${M}, ${H}, ${Z}, ${be}, ${ye}, ${we});`}))}function createRemarkHelpIcon(){return()=>n=>(visit(n,"textDirective",(i,e,t)=>{if(String(i.name)==="help"){const d=i.data||(i.data={});d.hName="streamlit-help-icon",d.hProperties=d.hProperties||{};return}}),n)}function createRemarkColoringAndSmall(n,i){return()=>e=>(visit(e,"textDirective",(t,o,d)=>{const p=String(t.name);if(p==="small"){const y=t.data||(t.data={});y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=`font-size: ${n.fontSizes.sm};`;return}const h=p.match(/^(.+)-badge$/);if(h&&i.has(h[1])){const y=h[1];if(y==="rainbow")return;const $=i.get(y),E=i.get(`${y}-background`);if($&&E){const M=t.data||(t.data={});M.hName="span",M.hProperties=M.hProperties||{},M.hProperties.className="stMarkdownBadge",M.hProperties.style=`${E}; ${$}; font-size: ${n.fontSizes.sm};`;return}}if(i.has(p)){const y=t.data||(t.data={}),$=i.get(p);y.hName="span",y.hProperties=y.hProperties||{},y.hProperties.style=$,y.hProperties.className="stMarkdownColoredText",$&&(/background-color:/.test($)||/background:/.test($))&&(y.hProperties.className="stMarkdownColoredBackground");return}}),e)}function createRemarkUnsupportedDirectivesCleanup(){return()=>n=>(visit(n,"textDirective",(i,e,t)=>{if(!i.data?.hName&&t&&e!==void 0){const o={type:"text",value:`:${i.name}`};t.children[e]=o}}),n)}function createRemarkMaterialIcons(n){return()=>i=>{function e(t,o){return{type:"text",value:t,data:{hName:"span",hProperties:{role:"img",ariaLabel:o+" icon",translate:"no",style:`
|
|
99
99
|
display: inline-block;
|
|
@@ -103,7 +103,7 @@ ${i.stack}`)}}render(){const{error:i}=this.state;return i?i.name==="ChunkLoadErr
|
|
|
103
103
|
vertical-align: bottom;
|
|
104
104
|
white-space: nowrap;
|
|
105
105
|
word-wrap: normal;
|
|
106
|
-
`},hChildren:[{type:"text",value:o}]}}}return findAndReplace(i,[[/:material_(\w+):/g,e]]),i}}function createRemarkStreamlitLogo(){return()=>n=>{function i(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:"display: inline-block; user-select: none; height: 0.75em; vertical-align: baseline; margin-bottom: -0.05ex;"}}}}return findAndReplace(n,[[/:streamlit:/g,i]]),n}}function createRemarkTypographicalSymbols(){return()=>n=>(visit(n,(i,e,t)=>{if(!(t&&(t.type==="link"||t.type==="linkReference"))&&i.type==="text"&&i.value){const o=[[/(^|\s)<->(\s|$)/g,"$1↔$2"],[/(^|\s)->(\s|$)/g,"$1→$2"],[/(^|\s)<-(\s|$)/g,"$1←$2"],[/(^|\s)--(\s|$)/g,"$1—$2"],[/(^|\s)>=(\s|$)/g,"$1≥$2"],[/(^|\s)<=(\s|$)/g,"$1≤$2"],[/(^|\s)~=(\s|$)/g,"$1≈$2"]];let d=i.value;for(const[p,h]of o)d=d.replace(p,h);d!==i.value&&(i.value=d)}}),n)}const BASE_REMARK_PLUGINS=[remarkMath,remarkGfm,remarkDirective,createRemarkHelpIcon(),createRemarkStreamlitLogo(),createRemarkTypographicalSymbols()],LABEL_DISALLOWED_ELEMENTS=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote"],LINKS_DISALLOWED_ELEMENTS=[...LABEL_DISALLOWED_ELEMENTS,"a"];function LinkWithTargetBlank(n){const{href:i}=n;if(i?.startsWith("#")){const{children:h,...y}=n;return jsx$1("a",{...omit(y,"node"),children:h})}const{title:e,children:t,target:o,rel:d,...p}=n;return jsx$1("a",{href:i,title:e,target:o||"_blank",rel:d||"noopener noreferrer",...omit(p,"node"),children:t})}const RenderedMarkdown=reactExports.memo(function n({allowHTML:i,source:e,overrideComponents:t,isLabel:o,disableLinks:d,helpText:p}){const h=useEmotionTheme(),y=reactExports.useMemo(()=>containsMathSyntax(e),[e]),$=reactExports.useMemo(()=>containsEmojiShortcodes(e),[e]),E=useLazyPlugin({key:"katex",needed:y,load:loadKatexPlugin,pluginName:"rehype-katex",onBeforeLoad:loadKatexStyles}),M=useLazyPlugin({key:"raw",needed:i,load:loadRehypeRaw,pluginName:"rehype-raw"}),H=useLazyPlugin({key:"emoji",needed:$,load:loadRemarkEmoji,pluginName:"remark-emoji"}),Z=reactExports.useMemo(()=>createColorMapping(h),[h]),be=reactExports.useMemo(()=>isLoadedPlugin(E)?wrapRehypePlugin(E,"rehype-katex"):null,[E]),ye=reactExports.useMemo(()=>isLoadedPlugin(M)?wrapRehypePlugin(M,"rehype-raw"):null,[M]),we=reactExports.useMemo(()=>isLoadedPlugin(H)?wrapRemarkPlugin(H,"remark-emoji"):null,[H]),Ce=reactExports.useMemo(()=>{const Ve=[...BASE_REMARK_PLUGINS,createRemarkColoringAndSmall(h,Z),createRemarkMaterialIcons(h)];return $&&we&&Ve.push(we),Ve.push(createRemarkUnsupportedDirectivesCleanup()),Ve},[h,Z,$,we]),xe=reactExports.useMemo(()=>{const Ve=[];return y&&be&&Ve.push(be),i&&ye&&Ve.push(ye),Ve.push(rehypeSetCodeInlineProperty),Ve},[i,y,be,ye]),Ne=reactExports.useMemo(()=>({...BASE_RENDERERS,a:LinkWithTargetBlank,...t||{}}),[t]),Fe=reactExports.useMemo(()=>e.replaceAll(":material/",":material_"),[e]),Le=reactExports.useMemo(()=>o?d?LINKS_DISALLOWED_ELEMENTS:LABEL_DISALLOWED_ELEMENTS:[],[o,d]);return y&&E===null||i&&M===null||$&&H===null?jsx$1(ErrorBoundary,{children:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})})}):jsx$1(HelpTextContext.Provider,{value:p,children:jsx$1(ErrorBoundary,{children:jsx$1(Markdown$2,{remarkPlugins:Ce,rehypePlugins:xe,components:Ne,urlTransform:transformLinkUri,disallowedElements:Le,unwrapDisallowed:!0,children:Fe})})})}),StreamlitMarkdown=({source:n,allowHTML:i,style:e,isCaption:t,isLabel:o,boldLabel:d,largerLabel:p,disableLinks:h,isToast:y,inheritFont:$,helpText:E})=>{const M=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!t,isInDialog:M,isLabel:o,inheritFont:$,boldLabel:d,largerLabel:p,isToast:y,style:e,"data-testid":t?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:n,allowHTML:i,isLabel:o,disableLinks:h,helpText:E})})},StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown);function TooltipIcon(n){const{placement:i=Placement.AUTO,isLatex:e=!1,content:t,markdownProps:o,onMouseEnterDelay:d,containerWidth:p=!1}=n,h=useEmotionTheme(),y=E=>jsx$1(StyledTooltipTriggerButton,{type:"button","aria-label":E,children:jsx$1(HelpCircle,{className:"icon","aria-hidden":"true",focusable:"false",size:convertRemToPx(h.iconSizes.base)})}),$=()=>{if("children"in n)return reactExports.isValidElement(n.children)?n.children:y("Help");const E=n.ariaLabel.trim();return E.length?y(E):y("Help")};return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:e,children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:h.fontSizes.sm},source:t,allowHTML:!1,...o||{}}),placement:i,onMouseEnterDelay:d,inline:!0,containerWidth:p,children:$()})})}function getHelpTooltipAriaLabel(n){const i=n?.trim(),e=i?i.replace(/\s+/g," "):null;return e?`Help for ${e}`:"Help"}const InlineTooltipIcon=({placement:n=Placement.TOP_RIGHT,isLatex:i=!1,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p="Help"})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:n,isLatex:i,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p})});function BaseButtonTooltip({children:n,help:i,placement:e,containerWidth:t}){return i?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:i,placement:e||Placement.TOP,containerWidth:t,children:n})}),jsx$1(StyledTooltipMobile,{children:n})]}):n}const isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(n,i,e,t){n.addEventListener?n.addEventListener(i,e,t):n.attachEvent&&n.attachEvent("on".concat(i),e)}function removeEvent(n,i,e,t){n.removeEventListener?n.removeEventListener(i,e,t):n.detachEvent&&n.detachEvent("on".concat(i),e)}function getMods(n,i){const e=i.slice(0,i.length-1);for(let t=0;t<e.length;t++)e[t]=n[e[t].toLowerCase()];return e}function getKeys(n){typeof n!="string"&&(n=""),n=n.replace(/\s/g,"");const i=n.split(",");let e=i.lastIndexOf("");for(;e>=0;)i[e-1]+=",",i.splice(e,1),e=i.lastIndexOf("");return i}function compareArray(n,i){const e=n.length>=i.length?n:i,t=n.length>=i.length?i:n;let o=!0;for(let d=0;d<e.length;d++)t.indexOf(e[d])===-1&&(o=!1);return o}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let n=1;n<20;n++)_keyMap["f".concat(n)]=111+n;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=n=>_keyMap[n.toLowerCase()]||_modifier[n.toLowerCase()]||n.toUpperCase().charCodeAt(0),getKey=n=>Object.keys(_keyMap).find(i=>_keyMap[i]===n),getModifier=n=>Object.keys(_modifier).find(i=>_modifier[i]===n);function setScope(n){_scope=n||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(n=>getKey(n)||getModifier(n)||String.fromCharCode(n))}function getAllKeyCodes(){const n=[];return Object.keys(_handlers).forEach(i=>{_handlers[i].forEach(e=>{let{key:t,scope:o,mods:d,shortcut:p}=e;n.push({scope:o,shortcut:p,mods:d,keys:t.split("+").map(h=>code(h))})})}),n}function filter(n){const i=n.target||n.srcElement,{tagName:e}=i;let t=!0;const o=e==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(i.type);return(i.isContentEditable||(o||e==="TEXTAREA"||e==="SELECT")&&!i.readOnly)&&(t=!1),t}function isPressed(n){return typeof n=="string"&&(n=code(n)),_downKeys.indexOf(n)!==-1}function deleteScope(n,i){let e,t;n||(n=getScope());for(const o in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,o))for(e=_handlers[o],t=0;t<e.length;)e[t].scope===n?e.splice(t,1).forEach(p=>{let{element:h}=p;return removeKeyEvent(h)}):t++;getScope()===n&&setScope(i||"all")}function clearModifier(n){let i=n.keyCode||n.which||n.charCode;const e=_downKeys.indexOf(i);if(e>=0&&_downKeys.splice(e,1),n.key&&n.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(i===93||i===224)&&(i=91),i in _mods){_mods[i]=!1;for(const t in _modifier)_modifier[t]===i&&(hotkeys[t]=!1)}}function unbind(n){if(typeof n>"u")Object.keys(_handlers).forEach(o=>{Array.isArray(_handlers[o])&&_handlers[o].forEach(d=>eachUnbind(d)),delete _handlers[o]}),removeKeyEvent(null);else if(Array.isArray(n))n.forEach(o=>{o.key&&eachUnbind(o)});else if(typeof n=="object")n.key&&eachUnbind(n);else if(typeof n=="string"){for(var i=arguments.length,e=new Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];let[o,d]=e;typeof o=="function"&&(d=o,o=""),eachUnbind({key:n,scope:o,method:d,splitKey:"+"})}}const eachUnbind=n=>{let{key:i,scope:e,method:t,splitKey:o="+"}=n;getKeys(i).forEach(p=>{const h=p.split(o),y=h.length,$=h[y-1],E=$==="*"?"*":code($);if(!_handlers[E])return;e||(e=getScope());const M=y>1?getMods(_modifier,h):[],H=[];_handlers[E]=_handlers[E].filter(Z=>{const ye=(t?Z.method===t:!0)&&Z.scope===e&&compareArray(Z.mods,M);return ye&&H.push(Z.element),!ye}),H.forEach(Z=>removeKeyEvent(Z))})};function eventHandler(n,i,e,t){if(i.element!==t)return;let o;if(i.scope===e||i.scope==="all"){o=i.mods.length>0;for(const d in _mods)Object.prototype.hasOwnProperty.call(_mods,d)&&(!_mods[d]&&i.mods.indexOf(+d)>-1||_mods[d]&&i.mods.indexOf(+d)===-1)&&(o=!1);(i.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||o||i.shortcut==="*")&&(i.keys=[],i.keys=i.keys.concat(_downKeys),i.method(n,i)===!1&&(n.preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation&&n.stopPropagation(),n.cancelBubble&&(n.cancelBubble=!0)))}}function dispatch(n,i){const e=_handlers["*"];let t=n.keyCode||n.which||n.charCode;if(!hotkeys.filter.call(this,n))return;if((t===93||t===224)&&(t=91),_downKeys.indexOf(t)===-1&&t!==229&&_downKeys.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(h=>{const y=modifierMap[h];n[h]&&_downKeys.indexOf(y)===-1?_downKeys.push(y):!n[h]&&_downKeys.indexOf(y)>-1?_downKeys.splice(_downKeys.indexOf(y),1):h==="metaKey"&&n[h]&&_downKeys.length===3&&(n.ctrlKey||n.shiftKey||n.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(y))))}),t in _mods){_mods[t]=!0;for(const h in _modifier)_modifier[h]===t&&(hotkeys[h]=!0);if(!e)return}for(const h in _mods)Object.prototype.hasOwnProperty.call(_mods,h)&&(_mods[h]=n[modifierMap[h]]);n.getModifierState&&!(n.altKey&&!n.ctrlKey)&&n.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const o=getScope();if(e)for(let h=0;h<e.length;h++)e[h].scope===o&&(n.type==="keydown"&&e[h].keydown||n.type==="keyup"&&e[h].keyup)&&eventHandler(n,e[h],o,i);if(!(t in _handlers))return;const d=_handlers[t],p=d.length;for(let h=0;h<p;h++)if((n.type==="keydown"&&d[h].keydown||n.type==="keyup"&&d[h].keyup)&&d[h].key){const y=d[h],{splitKey:$}=y,E=y.key.split($),M=[];for(let H=0;H<E.length;H++)M.push(code(E[H]));M.sort().join("")===_downKeys.sort().join("")&&eventHandler(n,y,o,i)}}function hotkeys(n,i,e){_downKeys=[];const t=getKeys(n);let o=[],d="all",p=document,h=0,y=!1,$=!0,E="+",M=!1,H=!1;for(e===void 0&&typeof i=="function"&&(e=i),Object.prototype.toString.call(i)==="[object Object]"&&(i.scope&&(d=i.scope),i.element&&(p=i.element),i.keyup&&(y=i.keyup),i.keydown!==void 0&&($=i.keydown),i.capture!==void 0&&(M=i.capture),typeof i.splitKey=="string"&&(E=i.splitKey),i.single===!0&&(H=!0)),typeof i=="string"&&(d=i),H&&unbind(n,d);h<t.length;h++)n=t[h].split(E),o=[],n.length>1&&(o=getMods(_modifier,n)),n=n[n.length-1],n=n==="*"?"*":code(n),n in _handlers||(_handlers[n]=[]),_handlers[n].push({keyup:y,keydown:$,scope:d,mods:o,shortcut:t[h],method:e,key:t[h],splitKey:E,element:p});if(typeof p<"u"&&window){if(!elementEventMap.has(p)){const Z=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(ye,p)},be=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(ye,p),clearModifier(ye)};elementEventMap.set(p,{keydownListener:Z,keyupListenr:be,capture:M}),addEvent(p,"keydown",Z,M),addEvent(p,"keyup",be,M)}if(!winListendFocus){const Z=()=>{_downKeys=[]};winListendFocus={listener:Z,capture:M},addEvent(window,"focus",Z,M)}}}function trigger(n){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(e=>{_handlers[e].filter(o=>o.scope===i&&o.shortcut===n).forEach(o=>{o&&o.method&&o.method()})})}function removeKeyEvent(n){const i=Object.values(_handlers).flat();if(i.findIndex(t=>{let{element:o}=t;return o===n})<0){const{keydownListener:t,keyupListenr:o,capture:d}=elementEventMap.get(n)||{};t&&o&&(removeEvent(n,"keyup",o,d),removeEvent(n,"keydown",t,d),elementEventMap.delete(n))}if((i.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(o=>{const{keydownListener:d,keyupListenr:p,capture:h}=elementEventMap.get(o)||{};d&&p&&(removeEvent(o,"keyup",p,h),removeEvent(o,"keydown",d,h),elementEventMap.delete(o))}),elementEventMap.clear(),Object.keys(_handlers).forEach(o=>delete _handlers[o]),winListendFocus)){const{listener:o,capture:d}=winListendFocus;removeEvent(window,"focus",o,d),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const n in _api)Object.prototype.hasOwnProperty.call(_api,n)&&(hotkeys[n]=_api[n]);if(typeof window<"u"){const n=window.hotkeys;hotkeys.noConflict=i=>(i&&window.hotkeys===hotkeys&&(window.hotkeys=n),hotkeys),window.hotkeys=hotkeys}const EDITABLE_TAGS=new Set(["INPUT","TEXTAREA","SELECT"]),MODIFIER_TOKENS=new Set(["ctrl","cmd","alt","shift","mod"]),SYSTEM_MODIFIERS=new Set(["ctrl","cmd","alt","mod"]),MODIFIER_ORDER=["ctrl","cmd","alt","shift","mod"],MODIFIER_DISPLAY={ctrl:"Ctrl",cmd:"⌘",alt:"Alt",shift:"Shift",mod:"Mod"},KEY_DISPLAY={enter:"Enter",space:"Space",tab:"Tab",escape:"Esc",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",left:"←",right:"→",up:"↑",down:"↓"},NAVIGATION_KEYS=new Set(["left","right","up","down","home","end","pageup","pagedown","backspace","delete"]);let filterConfigured=!1;function getEditableEventTarget(n){const i=n.composedPath?.();if(i?.length){for(const t of i){const o=t;if(o?.tagName&&(EDITABLE_TAGS.has(o.tagName)||o.isContentEditable||o.getAttribute("contenteditable")==="true"))return o}return null}const e=n.target||n.srcElement;return e?.tagName&&(EDITABLE_TAGS.has(e.tagName)||e.isContentEditable||e.getAttribute("contenteditable")==="true")?e:null}function isKeyboardEventFromEditableTarget(n){return n?!!getEditableEventTarget(n):!1}function ensureHotkeysFilterConfigured(){filterConfigured||(hotkeys.filter=n=>{if(!getEditableEventTarget(n)||n.key==="Escape"||n.ctrlKey||n.metaKey||n.altKey)return!0;if(n.shiftKey){const e=n.key??"";if(e.length>1&&!/^[a-z0-9]$/i.test(e))return!0}return!1},filterConfigured=!0)}function parseShortcutString(n){if(!n)return;const i=n.split("+").map(o=>o.trim().toLowerCase()).filter(Boolean);if(i.length===0)return;let e;for(let o=i.length-1;o>=0;o-=1){const d=i[o];if(!MODIFIER_TOKENS.has(d)){e=d;break}}const t=i.some(o=>SYSTEM_MODIFIERS.has(o));return{tokens:i,baseKey:e,hasSystemModifier:t}}function shouldBlockShortcutInInput(n,i){if(!getEditableEventTarget(i)||n.hasSystemModifier)return!1;const t=n.baseKey;return!!(!t||t.length===1&&/^[a-z0-9]$/i.test(t)||t==="space"||t==="tab"||t==="enter"||NAVIGATION_KEYS.has(t))}function toHotkeysSequenceFromTokens(n){return n.map(i=>i==="cmd"?"command":i).join("+")}function buildSequences(n){if(!n)return[];const{tokens:i}=n,t=isFromMac()?"cmd":"ctrl",o=i.map(p=>p==="cmd"||p==="ctrl"||p==="mod"?t:p),d=Array.from(new Set(o));return[toHotkeysSequenceFromTokens(d)]}function getModifierLabel(n,i){return n==="cmd"||n==="ctrl"||n==="mod"?i?MODIFIER_DISPLAY.cmd:MODIFIER_DISPLAY.ctrl:n==="alt"&&i?"⌥":MODIFIER_DISPLAY[n]}function getKeyLabel(n){return KEY_DISPLAY[n]?KEY_DISPLAY[n]:(n.length===1||n.startsWith("f")&&/^\d+$/.test(n.slice(1)),n.toUpperCase())}function formatShortcutForDisplay(n,i){const e=parseShortcutString(n);if(!e)return;const t=i?.isMac??!1,o=[];if(MODIFIER_ORDER.forEach(d=>{if(e.tokens.includes(d)){const p=getModifierLabel(d,t);p&&o.push(p)}}),e.baseKey&&o.push(getKeyLabel(e.baseKey)),o.length!==0)return o.join(" + ")}function useRegisterShortcut({shortcut:n,disabled:i=!1,onActivate:e}){const t=reactExports.useMemo(()=>parseShortcutString(n),[n]),o=reactExports.useMemo(()=>buildSequences(t),[t]);reactExports.useEffect(()=>{if(!t||o.length===0||i)return;const d=(p,h)=>{i||shouldBlockShortcutInInput(t,p)||(p.preventDefault(),e())};return o.forEach(p=>{hotkeys(p,d)}),()=>{o.forEach(p=>{hotkeys.unbind(p,d)})}},[t,o,i,e])}const DynamicButtonLabel=({icon:n,label:i,iconSize:e,useSmallerFont:t=!1,iconPosition:o="left",shortcut:d})=>{const p=reactExports.useMemo(()=>formatShortcutForDisplay(d,{isMac:isFromMac()}),[d]);return jsx$1(StyledButtonLabel,{children:jsxs(StyledButtonMainLabel,{"data-has-shortcut":!!p,children:[n&&o==="left"&&jsx$1(DynamicIcon,{size:e??"lg",iconValue:n}),i&&jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,isLabel:!0,largerLabel:!t,disableLinks:!0}),n&&o==="right"&&jsx$1(DynamicIcon,{size:e??"lg",iconValue:n}),p&&jsx$1(StyledButtonShortcut,{"aria-label":`Shortcut ${p}`,children:p})]})})},StyledModalButton=styled("span",{target:"e1sav2h40"})(({theme:n})=>({marginRight:n.spacing.twoXS}));function ModalHeader({children:n,overrides:i}){const{genericFonts:e,fontSizes:t,spacing:o,fontWeights:d,lineHeights:p}=useEmotionTheme();return jsx$1(ModalHeader$1,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.twoXL,paddingRight:o.twoXL,paddingBottom:o.md,paddingLeft:o.twoXL,fontFamily:e.bodyFont,fontSize:t.xl,fontWeight:d.bold,margin:o.none,lineHeight:p.small,textTransform:"none",display:"flex",alignItems:"center",maxHeight:"80vh",flexDirection:"row",...i},children:n})}function ModalBody$1({children:n}){const{colors:i,fontSizes:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.twoXL,paddingBottom:t.twoXL,paddingLeft:t.twoXL,color:i.bodyText,fontSize:e.md},children:n})}function ModalFooter({children:n}){const{spacing:i}=useEmotionTheme();return jsx$1(ModalFooter$1,{style:{marginTop:i.none,marginLeft:i.none,marginRight:i.none,marginBottom:i.none,paddingTop:i.md,paddingRight:i.md,paddingBottom:i.md,paddingLeft:i.md},children:jsx$1("div",{children:n})})}const ModalButton=n=>jsx$1(StyledModalButton,{children:jsx$1(BaseButton,{...n})});function calculateModalSize(n,i,e,t){return n==="large"&&t?t:n==="medium"&&i&&e?`calc(${i} + ${e})`:n==="auto"?SIZE$2.auto:SIZE$2.default}function Modal(n){const{spacing:i,radii:e,colors:t,sizes:o}=useEmotionTheme(),d={Root:{style:{background:t.darkenedBgMix25},props:{className:"stDialog","data-testid":"stDialog"}},DialogContainer:{style:{alignItems:"start",paddingTop:i.threeXL}},Dialog:{style:{borderBottomRightRadius:e.xxl,borderBottomLeftRadius:e.xxl,borderTopRightRadius:e.xxl,borderTopLeftRadius:e.xxl,minWidth:o.minPopupWidth}},Close:{style:{top:`calc(${i.twoXL} + ${i.xs})`,right:i.twoXL}}},p=calculateModalSize(n.size,o.contentMaxWidth,i.lg,o.dialogLargeWidth),h=merge$1(d,n.overrides),y={...n,size:p};return jsx$1(Modal$1,{...y,overrides:h})}const StyledDialogTitle=styled("div",{target:"e1nw0ecc0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.sm,marginRight:n.spacing.threeXL})),StyledDialogIcon=styled("div",{target:"e1nw0ecc1"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function mapDialogWidthToModalSize(n){switch(n){case Block$1.Dialog.DialogWidth.MEDIUM:return"medium";case Block$1.Dialog.DialogWidth.LARGE:return"large";case Block$1.Dialog.DialogWidth.SMALL:return"default";default:return assertNever(n),"default"}}const Dialog=({element:n,deltaMsgReceivedAt:i,children:e,widgetMgr:t,fragmentId:o})=>{const{title:d,dismissible:p,width:h,isOpen:y,id:$,icon:E}=n,[M,H]=reactExports.useState(!1);reactExports.useEffect(()=>{notNullOrUndefined(y)&&H(y)},[y,i]);const Z=reactExports.useCallback(()=>{H(!1),$&&t&&t.setTriggerValue({id:$,formId:""},{fromUi:!0},o)},[$,t,o]),be=reactExports.useCallback(ye=>{if(M&&ye.key.toLowerCase()==="r"&&!n.dismissible){const we=ye.target;if(we&&(we.isContentEditable||we.tagName==="INPUT"||we.tagName==="TEXTAREA"||we.tagName==="SELECT"))return;ye.preventDefault(),ye.stopPropagation()}},[M,n.dismissible]);return reactExports.useEffect(()=>{if(M&&!n.dismissible)return document.addEventListener("keydown",be,!0),()=>{document.removeEventListener("keydown",be,!0)}},[M,n.dismissible,be]),M?jsxs(Modal,{isOpen:!0,closeable:p,onClose:Z,size:mapDialogWidthToModalSize(h),children:[jsx$1(ModalHeader,{children:jsxs(StyledDialogTitle,{children:[E&&jsx$1(StyledDialogIcon,{"data-testid":"stDialogIcon",children:jsx$1(DynamicIcon,{iconValue:E,size:"lg"})}),jsx$1(StreamlitMarkdown$1,{source:d,allowHTML:!1,isLabel:!0,inheritFont:!0})]})}),jsx$1(ModalBody$1,{children:e})]}):jsx$1(Fragment,{})};function DialogWithProvider(n){return jsx$1(IsDialogContext.Provider,{value:!0,children:jsx$1(Dialog,{...n})})}const Dialog$1=reactExports.memo(DialogWithProvider),StyledExpandableContainer=styled("div",{target:"e12o48ov0"})({width:"100%"}),BORDER_SIZE=1,StyledDetails=styled("details",{target:"e12o48ov1"})(({isStale:n,theme:i})=>({marginBottom:0,marginTop:0,width:"100%",borderStyle:"solid",borderWidth:i.sizes.borderWidth,borderColor:i.colors.borderColor,borderRadius:i.radii.default,...n?{borderColor:i.colors.borderColorLight,transition:`border ${STALE_TRANSITION_PARAMS}`}:{}})),StyledSummaryHeading=styled("span",{target:"e12o48ov2"})(({theme:n})=>({display:"flex",alignItems:"center",flexGrow:1,minWidth:0,width:"100%",maxWidth:"100%",overflow:"hidden",gap:n.spacing.sm})),StyledSummaryLabelWrapper=styled("div",{target:"e12o48ov3"})({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),StyledSummary=styled("summary",{target:"e12o48ov4"})(({theme:n,isStale:i,expanded:e})=>({position:"relative",display:"flex",width:"100%",minWidth:0,overflow:"hidden","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing},fontSize:"inherit",paddingLeft:n.spacing.md,paddingRight:n.spacing.md,paddingTop:n.spacing.twoXS,paddingBottom:n.spacing.twoXS,minHeight:`calc(${n.sizes.minElementHeight} - 2 * ${n.sizes.borderWidth})`,alignItems:"center",cursor:"pointer",listStyleType:"none","&::-webkit-details-marker":{display:"none"},backgroundColor:e?n.colors.bgMix:"transparent",borderRadius:e?`${n.radii.default} ${n.radii.default} 0 0`:n.radii.default,transition:e?"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease":"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms, background-color 150ms ease","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},...i&&STALE_STYLES})),StyledDetailsPanel=styled("div",{target:"e12o48ov5"})(({theme:n})=>({padding:n.spacing.lg,borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),ExpanderIcon=n=>{const{icon:i}=n;return i?jsx$1(DynamicIcon,{size:"lg",iconValue:i,testid:{":material/check:":"stExpanderIconCheck",":material/error:":"stExpanderIconError",spinner:"stExpanderIconSpinner"}[i]||"stExpanderIcon"}):jsx$1(Fragment,{})},Expander=({element:n,isStale:i,children:e})=>{const{label:t,expanded:o}=n,[d,p]=reactExports.useState(o||!1),[h,y]=reactExports.useState(!1),$=reactExports.useRef(null),E=reactExports.useRef(null),M=reactExports.useRef(null),H=reactExports.useRef(null),Z=reactExports.useRef(null);reactExports.useEffect(()=>{notNullOrUndefined(o)&&(p(o),$.current&&($.current.open=o))},[t,o]);const be=Le=>{$.current&&($.current.open=Le,M.current=null,$.current.style.height="",$.current.style.overflow="")},ye=(Le,Me,Ve)=>{const Ke=Ve>Me;M.current&&(M.current.cancel(),H.current&&(clearTimeout(H.current),H.current=null));const ze=Le.animate({height:[`${Me}px`,`${Ve}px`]},{duration:500,easing:"cubic-bezier(0.23, 1, 0.32, 1)"});ze.addEventListener("finish",()=>be(Ke)),M.current=ze},we=Le=>{Le.preventDefault(),p(!d);const Me=$.current;if(!Me||!E.current)return;Me.style.overflow="hidden";const Ve=Me.getBoundingClientRect().height,Ke=E.current.getBoundingClientRect().height;d?ye(Me,Ve,Ke+2*BORDER_SIZE):(Me.style.height=`${Ve}px`,Me.open=!0,window.requestAnimationFrame(()=>{ye(Me,Ve,Ke+2*BORDER_SIZE+5),H.current=setTimeout(()=>{if(!Z.current)return;const ze=Z.current.getBoundingClientRect().height;ye(Me,Ve,Ke+ze+2*BORDER_SIZE)},100)}))},Ce=()=>{y(!0)},xe=()=>{y(!1)},Ne=!n.icon||h,Fe=n.icon&&!h;return jsx$1(StyledExpandableContainer,{className:"stExpander","data-testid":"stExpander",children:jsxs(StyledDetails,{isStale:i,ref:$,onMouseEnter:Ce,onMouseLeave:xe,children:[jsx$1(StyledSummary,{onClick:we,ref:E,isStale:i,expanded:d,children:jsxs(StyledSummaryHeading,{children:[Ne&&jsx$1(DynamicIcon,{iconValue:d?":material/keyboard_arrow_down:":":material/keyboard_arrow_right:",size:"lg"}),Fe&&jsx$1(ExpanderIcon,{icon:n.icon}),jsx$1(StyledSummaryLabelWrapper,{children:jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1,isLabel:!0,largerLabel:!0})})]})}),jsx$1(StyledDetailsPanel,{"data-testid":"stExpanderDetails",ref:Z,children:e})]})})},Expander$1=reactExports.memo(Expander),Box=styled("div",{target:"ew64v8o0"})(({width:n="100%",height:i})=>({width:n,height:i})),getBorderColor=(n,i)=>{let e=n.widgetBorderColor??n.secondaryBg;return i&&(e=n.primary),e},useResizeObserver=(n,i=[])=>{const e=reactExports.useRef(null),[t,o]=reactExports.useState([]),d=reactExports.useCallback(()=>{if(!e.current)return[];const p=e.current.getBoundingClientRect();return n.map(h=>p[h])},[n]);return reactExports.useEffect(()=>{if(!e.current)return;o(d());let p;const h=new ResizeObserver(()=>{p=window.requestAnimationFrame(()=>{o(d())})});return h.observe(e.current),()=>{h.disconnect(),p&&cancelAnimationFrame(p)}},[n,d,...i]),{values:t,elementRef:e}},useCalculatedDimensions=(n=[],i=-1)=>{const{values:[e,t],elementRef:o}=useResizeObserver(reactExports.useMemo(()=>["width","height"],[]),n);return{width:e||i,height:t||i,elementRef:o}},StyledPopoverLabelContainer=styled("div",{target:"e1jdirsb0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.threeXS,marginRight:`calc(-${n.iconSizes.lg} * 0.25)`})),StyledPopoverExpansionIcon=styled("div",{target:"e1jdirsb1"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.threeXS})),Popover=({element:n,empty:i,children:e,stretchWidth:t})=>{const[o,d]=reactExports.useState(!1),p=reactExports.useContext(IsSidebarContext),h=useEmotionTheme(),{width:y,elementRef:$}=useCalculatedDimensions();let E=BaseButtonKind.SECONDARY;return n.type==="primary"?E=BaseButtonKind.PRIMARY:n.type==="tertiary"&&(E=BaseButtonKind.TERTIARY),jsx$1(Box,{"data-testid":"stPopover",className:"stPopover",ref:$,children:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT$1.bottomLeft,content:()=>e,isOpen:o,onClickOutside:()=>d(!1),onClick:()=>o?d(!1):void 0,onEsc:()=>d(!1),ignoreBoundary:p,renderAll:!0,overrides:{Body:{props:{"data-testid":"stPopoverBody"},style:()=>({marginRight:h.spacing.lg,marginBottom:h.spacing.lg,maxHeight:"70vh",overflow:"auto",maxWidth:`calc(${h.sizes.contentMaxWidth} - 2*${h.spacing.lg})`,minWidth:t?`${Math.max(y,160)}px`:h.sizes.minPopupWidth,[`@media (max-width: ${h.breakpoints.sm})`]:{maxWidth:`calc(100% - ${h.spacing.threeXL})`},borderTopLeftRadius:h.radii.xl,borderTopRightRadius:h.radii.xl,borderBottomRightRadius:h.radii.xl,borderBottomLeftRadius:h.radii.xl,borderLeftWidth:h.sizes.borderWidth,borderRightWidth:h.sizes.borderWidth,borderTopWidth:h.sizes.borderWidth,borderBottomWidth:h.sizes.borderWidth,paddingRight:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingLeft:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingBottom:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingTop:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:h.colors.borderColor,borderRightColor:h.colors.borderColor,borderTopColor:h.colors.borderColor,borderBottomColor:h.colors.borderColor,boxShadow:h.shadows.popover})}},children:jsx$1("div",{children:jsx$1(BaseButtonTooltip,{help:n.help,containerWidth:!0,children:jsx$1(BaseButton,{"data-testid":"stPopoverButton",kind:E,size:BaseButtonSize.SMALL,disabled:i||n.disabled,containerWidth:!0,onClick:()=>d(!o),children:jsxs(StyledPopoverLabelContainer,{children:[jsx$1(DynamicButtonLabel,{icon:n.icon,label:n.label}),jsx$1(StyledPopoverExpansionIcon,{children:jsx$1(DynamicIcon,{iconValue:o?":material/expand_less:":":material/expand_more:",size:"lg"})})]})})})})})})},Popover$1=reactExports.memo(Popover);var ORIENTATION={vertical:"vertical",horizontal:"horizontal"},FILL={fixed:"fixed",intrinsic:"intrinsic"},getTabId=function n(i,e){return"tabs-".concat(i,"-tab-").concat(e)},getTabPanelId=function n(i,e){return"tabs-".concat(i,"-tabpanel-").concat(e)},isHorizontal=function n(i){return i===ORIENTATION.horizontal},isVertical=function n(i){return i===ORIENTATION.vertical},isRTL=function n(i){return i==="rtl"},isIntrinsic=function n(i){return i===FILL.intrinsic},isFixed=function n(i){return i===FILL.fixed};function ownKeys$d(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$c(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$d(Object(e),!0).forEach(function(t){_defineProperty$d(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$d(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$d(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var StyledRoot$1=styled$1("div",function(n){n.$theme;var i=n.$orientation,e=i===void 0?ORIENTATION.horizontal:i,t={transform:"scale(1)"};return isVertical(e)&&(t.display="flex"),t});StyledRoot$1.displayName="StyledRoot";StyledRoot$1.displayName="StyledRoot";var StyledTabBar=styled$1("div",function(n){var i=n.$hasEndEnhancer,e=n.$orientation;return i||!isHorizontal(e)?{display:"flex"}:{}});StyledTabBar.displayName="StyledTabBar";StyledTabBar.displayName="StyledTabBar";var StyledTabList=styled$1("div",function(n){var i=n.$theme,e=n.$fill,t=e===void 0?FILL.intrinsic:e,o=n.$orientation,d=o===void 0?ORIENTATION.horizontal:o,p={position:"relative",display:"flex",flexWrap:"nowrap",flexGrow:1};return isHorizontal(d)?(p.flexDirection="row",p.paddingBottom="5px",p.marginBottom="-5px"):(p.flexDirection="column",isRTL(i.direction)?(p.paddingLeft="5px",p.marginLeft="-5px"):(p.paddingRight="5px",p.marginRight="-5px")),isIntrinsic(t)&&(p["::-webkit-scrollbar"]={display:"none"},p["-ms-overflow-style"]="none",p.scrollbarWidth="none",isHorizontal(d)?p.overflowX="scroll":p.overflowY="scroll"),p});StyledTabList.displayName="StyledTabList";StyledTabList.displayName="StyledTabList";var StyledTab=styled$1("button",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$fill,d=o===void 0?FILL.intrinsic:o,p=n.$focusVisible,h=p===void 0?!1:p;n.$isActive;var y=_objectSpread$c({cursor:"pointer",WebkitAppearance:"none",marginLeft:"0",marginRight:"0",marginTop:"0",marginBottom:"0",boxSizing:"border-box",display:"inline-flex",alignItems:"center",paddingLeft:i.sizing.scale600,paddingTop:i.sizing.scale600,paddingRight:i.sizing.scale600,paddingBottom:i.sizing.scale600,borderLeftWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",color:i.colors.contentPrimary,background:i.colors.backgroundPrimary,transitionProperty:"background",transitionDuration:i.animation.timing200,transitionTimingFunction:i.animation.linearCurve,outline:"none",outlineOffset:"-3px",":disabled":{cursor:"not-allowed",color:i.colors.contentStateDisabled},":hover":{background:i.colors.backgroundSecondary},":disabled:hover":{background:"none"}},i.typography.LabelSmall);return h&&(y.outline="3px solid ".concat(i.colors.accent)),isFixed(d)&&(y.flexGrow=1,y.flexBasis=0),isHorizontal(t)?y.justifyContent="center":y.justifyContent="flex-end",y});StyledTab.displayName="StyledTab";StyledTab.displayName="StyledTab";var StyledEndEnhancerContainer=styled$1("div",function(n){var i=n.$theme,e=i.direction==="rtl"?"marginRight":"marginLeft";return _defineProperty$d({display:"flex",alignItems:"center",justifyContent:"flex-end"},e,i.sizing.scale600)});StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";var StyledArtworkContainer=styled$1("div",function(n){var i=n.$theme;n.$orientation;var e={display:"flex"};return isRTL(i.direction)?e.marginLeft=i.sizing.scale300:e.marginRight=i.sizing.scale300,e});StyledArtworkContainer.displayName="StyledArtworkContainer";StyledArtworkContainer.displayName="StyledArtworkContainer";var StyledTabBorder=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o={backgroundColor:i.colors.borderOpaque,position:"relative"};return isHorizontal(t)?o.height="5px":o.width="5px",o});StyledTabBorder.displayName="StyledTabBorder";StyledTabBorder.displayName="StyledTabBorder";var StyledTabHighlight=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$length,d=o===void 0?0:o,p=n.$distance,h=p===void 0?0:p,y=n.$animate,$=y===void 0?!1:y,E={backgroundColor:i.colors.borderSelected,position:"absolute",zIndex:1};return isHorizontal(t)?(E.bottom="0px",E.left="0px",E.height="5px",E.width="".concat(d,"px"),E.transform="translateX(".concat(h,"px)")):(E.transform="translateY(".concat(h,"px)"),E.width="5px",E.height="".concat(d,"px"),isRTL(i.direction)?E.left="0px":E.right="0px"),$&&(E.transitionProperty="all",E.transitionDuration=i.animation.timing400,E.transitionTimingFunction=i.animation.easeInOutQuinticCurve),E});StyledTabHighlight.displayName="StyledTabHighlight";StyledTabHighlight.displayName="StyledTabHighlight";var StyledTabPanel=styled$1("div",function(n){var i=n.$theme,e=n.$pad,t=e===void 0?!0:e,o={flexGrow:1,outline:"none"};return t&&(o.paddingTop=i.sizing.scale600,o.paddingRight=i.sizing.scale600,o.paddingBottom=i.sizing.scale600,o.paddingLeft=i.sizing.scale600),o});StyledTabPanel.displayName="StyledTabPanel";StyledTabPanel.displayName="StyledTabPanel";var _excluded$j=["childKey","childIndex","activeKey","orientation","activeTabRef","updateHighlight","parseKeyDown","activateOnFocus","uid","disabled","sharedStylingProps","onChange"],_excluded2$4=["artwork","overrides","tabRef","onClick","title"],_excluded3$1=["childKey","childIndex","activeKey","uid","sharedStylingProps","renderAll"];function ownKeys$c(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$b(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$c(Object(e),!0).forEach(function(t){_defineProperty$c(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$c(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$c(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _toConsumableArray$1(n){return _arrayWithoutHoles$1(n)||_iterableToArray$1(n)||_unsupportedIterableToArray$e(n)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
106
|
+
`},hChildren:[{type:"text",value:o}]}}}return findAndReplace(i,[[/:material_(\w+):/g,e]]),i}}function createRemarkStreamlitLogo(){return()=>n=>{function i(){return{type:"text",value:"",data:{hName:"img",hProperties:{src:streamlitLogo,alt:"Streamlit logo",style:"display: inline-block; user-select: none; height: 0.75em; vertical-align: baseline; margin-bottom: -0.05ex;"}}}}return findAndReplace(n,[[/:streamlit:/g,i]]),n}}function createRemarkTypographicalSymbols(){return()=>n=>(visit(n,(i,e,t)=>{if(!(t&&(t.type==="link"||t.type==="linkReference"))&&i.type==="text"&&i.value){const o=[[/(^|\s)<->(\s|$)/g,"$1↔$2"],[/(^|\s)->(\s|$)/g,"$1→$2"],[/(^|\s)<-(\s|$)/g,"$1←$2"],[/(^|\s)--(\s|$)/g,"$1—$2"],[/(^|\s)>=(\s|$)/g,"$1≥$2"],[/(^|\s)<=(\s|$)/g,"$1≤$2"],[/(^|\s)~=(\s|$)/g,"$1≈$2"]];let d=i.value;for(const[p,h]of o)d=d.replace(p,h);d!==i.value&&(i.value=d)}}),n)}const BASE_REMARK_PLUGINS=[remarkMath,remarkGfm,remarkDirective,createRemarkHelpIcon(),createRemarkStreamlitLogo(),createRemarkTypographicalSymbols()],LABEL_DISALLOWED_ELEMENTS=["table","thead","tbody","tr","th","td","h1","h2","h3","h4","h5","h6","ul","ol","li","input","hr","blockquote"],LINKS_DISALLOWED_ELEMENTS=[...LABEL_DISALLOWED_ELEMENTS,"a"];function LinkWithTargetBlank(n){const{href:i}=n;if(i?.startsWith("#")){const{children:h,...y}=n;return jsx$1("a",{...omit(y,"node"),children:h})}const{title:e,children:t,target:o,rel:d,...p}=n;return jsx$1("a",{href:i,title:e,target:o||"_blank",rel:d||"noopener noreferrer",...omit(p,"node"),children:t})}const RenderedMarkdown=reactExports.memo(function n({allowHTML:i,source:e,overrideComponents:t,isLabel:o,disableLinks:d,helpText:p}){const h=useEmotionTheme(),y=reactExports.useMemo(()=>containsMathSyntax(e),[e]),$=reactExports.useMemo(()=>containsEmojiShortcodes(e),[e]),E=useLazyPlugin({key:"katex",needed:y,load:loadKatexPlugin,pluginName:"rehype-katex",onBeforeLoad:loadKatexStyles}),M=useLazyPlugin({key:"raw",needed:i,load:loadRehypeRaw,pluginName:"rehype-raw"}),H=useLazyPlugin({key:"emoji",needed:$,load:loadRemarkEmoji,pluginName:"remark-emoji"}),Z=reactExports.useMemo(()=>createColorMapping(h),[h]),be=reactExports.useMemo(()=>isLoadedPlugin(E)?wrapRehypePlugin(E,"rehype-katex"):null,[E]),ye=reactExports.useMemo(()=>isLoadedPlugin(M)?wrapRehypePlugin(M,"rehype-raw"):null,[M]),we=reactExports.useMemo(()=>isLoadedPlugin(H)?wrapRemarkPlugin(H,"remark-emoji"):null,[H]),Ce=reactExports.useMemo(()=>{const Ve=[...BASE_REMARK_PLUGINS,createRemarkColoringAndSmall(h,Z),createRemarkMaterialIcons(h)];return $&&we&&Ve.push(we),Ve.push(createRemarkUnsupportedDirectivesCleanup()),Ve},[h,Z,$,we]),xe=reactExports.useMemo(()=>{const Ve=[];return y&&be&&Ve.push(be),i&&ye&&Ve.push(ye),Ve.push(rehypeSetCodeInlineProperty),Ve},[i,y,be,ye]),Ne=reactExports.useMemo(()=>({...BASE_RENDERERS,a:LinkWithTargetBlank,...t||{}}),[t]),Fe=reactExports.useMemo(()=>e.replaceAll(":material/",":material_"),[e]),Le=reactExports.useMemo(()=>o?d?LINKS_DISALLOWED_ELEMENTS:LABEL_DISALLOWED_ELEMENTS:[],[o,d]);return y&&E===null||i&&M===null||$&&H===null?jsx$1(ErrorBoundary,{children:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})})}):jsx$1(HelpTextContext.Provider,{value:p,children:jsx$1(ErrorBoundary,{children:jsx$1(Markdown$2,{remarkPlugins:Ce,rehypePlugins:xe,components:Ne,urlTransform:transformLinkUri,disallowedElements:Le,unwrapDisallowed:!0,children:Fe})})})}),StreamlitMarkdown=({source:n,allowHTML:i,style:e,isCaption:t,isLabel:o,boldLabel:d,largerLabel:p,disableLinks:h,isToast:y,inheritFont:$,helpText:E})=>{const M=reactExports.useContext(IsDialogContext);return jsx$1(StyledStreamlitMarkdown,{isCaption:!!t,isInDialog:M,isLabel:o,inheritFont:$,boldLabel:d,largerLabel:p,isToast:y,style:e,"data-testid":t?"stCaptionContainer":"stMarkdownContainer",children:jsx$1(RenderedMarkdown,{source:n,allowHTML:i,isLabel:o,disableLinks:h,helpText:E})})},StreamlitMarkdown$1=reactExports.memo(StreamlitMarkdown);function TooltipIcon(n){const{placement:i=Placement.AUTO,isLatex:e=!1,content:t,markdownProps:o,onMouseEnterDelay:d,containerWidth:p=!1}=n,h=useEmotionTheme(),y=E=>jsx$1(StyledTooltipTriggerButton,{type:"button","aria-label":E,children:jsx$1(HelpCircle,{className:"icon","aria-hidden":"true",focusable:"false",size:convertRemToPx(h.iconSizes.base)})}),$=()=>{if("children"in n)return reactExports.isValidElement(n.children)?n.children:y("Help");const E=n.ariaLabel.trim();return E.length?y(E):y("Help")};return jsx$1(StyledTooltipIconWrapper,{className:"stTooltipIcon","data-testid":"stTooltipIcon",isLatex:e,children:jsx$1(Tooltip$1,{content:jsx$1(StreamlitMarkdown$1,{style:{fontSize:h.fontSizes.sm},source:t,allowHTML:!1,...o||{}}),placement:i,onMouseEnterDelay:d,inline:!0,containerWidth:p,children:$()})})}function getHelpTooltipAriaLabel(n){const i=n?.trim(),e=i?i.replace(/\s+/g," "):null;return e?`Help for ${e}`:"Help"}const InlineTooltipIcon=({placement:n=Placement.TOP_RIGHT,isLatex:i=!1,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p="Help"})=>jsx$1(StyledLabelHelpInline,{children:jsx$1(TooltipIcon,{placement:n,isLatex:i,content:e,markdownProps:t,onMouseEnterDelay:o,containerWidth:d,ariaLabel:p})});function BaseButtonTooltip({children:n,help:i,placement:e,containerWidth:t}){return i?jsxs(Fragment,{children:[jsx$1(StyledTooltipNormal,{children:jsx$1(TooltipIcon,{content:i,placement:e||Placement.TOP,containerWidth:t,children:n})}),jsx$1(StyledTooltipMobile,{children:n})]}):n}const isff=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function addEvent(n,i,e,t){n.addEventListener?n.addEventListener(i,e,t):n.attachEvent&&n.attachEvent("on".concat(i),e)}function removeEvent(n,i,e,t){n.removeEventListener?n.removeEventListener(i,e,t):n.detachEvent&&n.detachEvent("on".concat(i),e)}function getMods(n,i){const e=i.slice(0,i.length-1);for(let t=0;t<e.length;t++)e[t]=n[e[t].toLowerCase()];return e}function getKeys(n){typeof n!="string"&&(n=""),n=n.replace(/\s/g,"");const i=n.split(",");let e=i.lastIndexOf("");for(;e>=0;)i[e-1]+=",",i.splice(e,1),e=i.lastIndexOf("");return i}function compareArray(n,i){const e=n.length>=i.length?n:i,t=n.length>=i.length?i:n;let o=!0;for(let d=0;d<e.length;d++)t.indexOf(e[d])===-1&&(o=!1);return o}const _keyMap={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":isff?173:189,"=":isff?61:187,";":isff?59:186,"'":222,"[":219,"]":221,"\\":220},_modifier={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},modifierMap={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},_mods={16:!1,18:!1,17:!1,91:!1},_handlers={};for(let n=1;n<20;n++)_keyMap["f".concat(n)]=111+n;let _downKeys=[],winListendFocus=null,_scope="all";const elementEventMap=new Map,code=n=>_keyMap[n.toLowerCase()]||_modifier[n.toLowerCase()]||n.toUpperCase().charCodeAt(0),getKey=n=>Object.keys(_keyMap).find(i=>_keyMap[i]===n),getModifier=n=>Object.keys(_modifier).find(i=>_modifier[i]===n);function setScope(n){_scope=n||"all"}function getScope(){return _scope||"all"}function getPressedKeyCodes(){return _downKeys.slice(0)}function getPressedKeyString(){return _downKeys.map(n=>getKey(n)||getModifier(n)||String.fromCharCode(n))}function getAllKeyCodes(){const n=[];return Object.keys(_handlers).forEach(i=>{_handlers[i].forEach(e=>{let{key:t,scope:o,mods:d,shortcut:p}=e;n.push({scope:o,shortcut:p,mods:d,keys:t.split("+").map(h=>code(h))})})}),n}function filter(n){const i=n.target||n.srcElement,{tagName:e}=i;let t=!0;const o=e==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(i.type);return(i.isContentEditable||(o||e==="TEXTAREA"||e==="SELECT")&&!i.readOnly)&&(t=!1),t}function isPressed(n){return typeof n=="string"&&(n=code(n)),_downKeys.indexOf(n)!==-1}function deleteScope(n,i){let e,t;n||(n=getScope());for(const o in _handlers)if(Object.prototype.hasOwnProperty.call(_handlers,o))for(e=_handlers[o],t=0;t<e.length;)e[t].scope===n?e.splice(t,1).forEach(p=>{let{element:h}=p;return removeKeyEvent(h)}):t++;getScope()===n&&setScope(i||"all")}function clearModifier(n){let i=n.keyCode||n.which||n.charCode;const e=_downKeys.indexOf(i);if(e>=0&&_downKeys.splice(e,1),n.key&&n.key.toLowerCase()==="meta"&&_downKeys.splice(0,_downKeys.length),(i===93||i===224)&&(i=91),i in _mods){_mods[i]=!1;for(const t in _modifier)_modifier[t]===i&&(hotkeys[t]=!1)}}function unbind(n){if(typeof n>"u")Object.keys(_handlers).forEach(o=>{Array.isArray(_handlers[o])&&_handlers[o].forEach(d=>eachUnbind(d)),delete _handlers[o]}),removeKeyEvent(null);else if(Array.isArray(n))n.forEach(o=>{o.key&&eachUnbind(o)});else if(typeof n=="object")n.key&&eachUnbind(n);else if(typeof n=="string"){for(var i=arguments.length,e=new Array(i>1?i-1:0),t=1;t<i;t++)e[t-1]=arguments[t];let[o,d]=e;typeof o=="function"&&(d=o,o=""),eachUnbind({key:n,scope:o,method:d,splitKey:"+"})}}const eachUnbind=n=>{let{key:i,scope:e,method:t,splitKey:o="+"}=n;getKeys(i).forEach(p=>{const h=p.split(o),y=h.length,$=h[y-1],E=$==="*"?"*":code($);if(!_handlers[E])return;e||(e=getScope());const M=y>1?getMods(_modifier,h):[],H=[];_handlers[E]=_handlers[E].filter(Z=>{const ye=(t?Z.method===t:!0)&&Z.scope===e&&compareArray(Z.mods,M);return ye&&H.push(Z.element),!ye}),H.forEach(Z=>removeKeyEvent(Z))})};function eventHandler(n,i,e,t){if(i.element!==t)return;let o;if(i.scope===e||i.scope==="all"){o=i.mods.length>0;for(const d in _mods)Object.prototype.hasOwnProperty.call(_mods,d)&&(!_mods[d]&&i.mods.indexOf(+d)>-1||_mods[d]&&i.mods.indexOf(+d)===-1)&&(o=!1);(i.mods.length===0&&!_mods[16]&&!_mods[18]&&!_mods[17]&&!_mods[91]||o||i.shortcut==="*")&&(i.keys=[],i.keys=i.keys.concat(_downKeys),i.method(n,i)===!1&&(n.preventDefault?n.preventDefault():n.returnValue=!1,n.stopPropagation&&n.stopPropagation(),n.cancelBubble&&(n.cancelBubble=!0)))}}function dispatch(n,i){const e=_handlers["*"];let t=n.keyCode||n.which||n.charCode;if(!hotkeys.filter.call(this,n))return;if((t===93||t===224)&&(t=91),_downKeys.indexOf(t)===-1&&t!==229&&_downKeys.push(t),["ctrlKey","altKey","shiftKey","metaKey"].forEach(h=>{const y=modifierMap[h];n[h]&&_downKeys.indexOf(y)===-1?_downKeys.push(y):!n[h]&&_downKeys.indexOf(y)>-1?_downKeys.splice(_downKeys.indexOf(y),1):h==="metaKey"&&n[h]&&_downKeys.length===3&&(n.ctrlKey||n.shiftKey||n.altKey||(_downKeys=_downKeys.slice(_downKeys.indexOf(y))))}),t in _mods){_mods[t]=!0;for(const h in _modifier)_modifier[h]===t&&(hotkeys[h]=!0);if(!e)return}for(const h in _mods)Object.prototype.hasOwnProperty.call(_mods,h)&&(_mods[h]=n[modifierMap[h]]);n.getModifierState&&!(n.altKey&&!n.ctrlKey)&&n.getModifierState("AltGraph")&&(_downKeys.indexOf(17)===-1&&_downKeys.push(17),_downKeys.indexOf(18)===-1&&_downKeys.push(18),_mods[17]=!0,_mods[18]=!0);const o=getScope();if(e)for(let h=0;h<e.length;h++)e[h].scope===o&&(n.type==="keydown"&&e[h].keydown||n.type==="keyup"&&e[h].keyup)&&eventHandler(n,e[h],o,i);if(!(t in _handlers))return;const d=_handlers[t],p=d.length;for(let h=0;h<p;h++)if((n.type==="keydown"&&d[h].keydown||n.type==="keyup"&&d[h].keyup)&&d[h].key){const y=d[h],{splitKey:$}=y,E=y.key.split($),M=[];for(let H=0;H<E.length;H++)M.push(code(E[H]));M.sort().join("")===_downKeys.sort().join("")&&eventHandler(n,y,o,i)}}function hotkeys(n,i,e){_downKeys=[];const t=getKeys(n);let o=[],d="all",p=document,h=0,y=!1,$=!0,E="+",M=!1,H=!1;for(e===void 0&&typeof i=="function"&&(e=i),Object.prototype.toString.call(i)==="[object Object]"&&(i.scope&&(d=i.scope),i.element&&(p=i.element),i.keyup&&(y=i.keyup),i.keydown!==void 0&&($=i.keydown),i.capture!==void 0&&(M=i.capture),typeof i.splitKey=="string"&&(E=i.splitKey),i.single===!0&&(H=!0)),typeof i=="string"&&(d=i),H&&unbind(n,d);h<t.length;h++)n=t[h].split(E),o=[],n.length>1&&(o=getMods(_modifier,n)),n=n[n.length-1],n=n==="*"?"*":code(n),n in _handlers||(_handlers[n]=[]),_handlers[n].push({keyup:y,keydown:$,scope:d,mods:o,shortcut:t[h],method:e,key:t[h],splitKey:E,element:p});if(typeof p<"u"&&window){if(!elementEventMap.has(p)){const Z=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return dispatch(ye,p)},be=function(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;dispatch(ye,p),clearModifier(ye)};elementEventMap.set(p,{keydownListener:Z,keyupListenr:be,capture:M}),addEvent(p,"keydown",Z,M),addEvent(p,"keyup",be,M)}if(!winListendFocus){const Z=()=>{_downKeys=[]};winListendFocus={listener:Z,capture:M},addEvent(window,"focus",Z,M)}}}function trigger(n){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(_handlers).forEach(e=>{_handlers[e].filter(o=>o.scope===i&&o.shortcut===n).forEach(o=>{o&&o.method&&o.method()})})}function removeKeyEvent(n){const i=Object.values(_handlers).flat();if(i.findIndex(t=>{let{element:o}=t;return o===n})<0){const{keydownListener:t,keyupListenr:o,capture:d}=elementEventMap.get(n)||{};t&&o&&(removeEvent(n,"keyup",o,d),removeEvent(n,"keydown",t,d),elementEventMap.delete(n))}if((i.length<=0||elementEventMap.size<=0)&&(Object.keys(elementEventMap).forEach(o=>{const{keydownListener:d,keyupListenr:p,capture:h}=elementEventMap.get(o)||{};d&&p&&(removeEvent(o,"keyup",p,h),removeEvent(o,"keydown",d,h),elementEventMap.delete(o))}),elementEventMap.clear(),Object.keys(_handlers).forEach(o=>delete _handlers[o]),winListendFocus)){const{listener:o,capture:d}=winListendFocus;removeEvent(window,"focus",o,d),winListendFocus=null}}const _api={getPressedKeyString,setScope,getScope,deleteScope,getPressedKeyCodes,getAllKeyCodes,isPressed,filter,trigger,unbind,keyMap:_keyMap,modifier:_modifier,modifierMap};for(const n in _api)Object.prototype.hasOwnProperty.call(_api,n)&&(hotkeys[n]=_api[n]);if(typeof window<"u"){const n=window.hotkeys;hotkeys.noConflict=i=>(i&&window.hotkeys===hotkeys&&(window.hotkeys=n),hotkeys),window.hotkeys=hotkeys}const EDITABLE_TAGS=new Set(["INPUT","TEXTAREA","SELECT"]),MODIFIER_TOKENS=new Set(["ctrl","cmd","alt","shift","mod"]),SYSTEM_MODIFIERS=new Set(["ctrl","cmd","alt","mod"]),MODIFIER_ORDER=["ctrl","cmd","alt","shift","mod"],MODIFIER_DISPLAY={ctrl:"Ctrl",cmd:"⌘",alt:"Alt",shift:"Shift",mod:"Mod"},KEY_DISPLAY={enter:"Enter",space:"Space",tab:"Tab",escape:"Esc",backspace:"Backspace",delete:"Delete",home:"Home",end:"End",pageup:"PageUp",pagedown:"PageDown",left:"←",right:"→",up:"↑",down:"↓"},NAVIGATION_KEYS=new Set(["left","right","up","down","home","end","pageup","pagedown","backspace","delete"]);let filterConfigured=!1;function getEditableEventTarget(n){const i=n.composedPath?.();if(i?.length){for(const t of i){const o=t;if(o?.tagName&&(EDITABLE_TAGS.has(o.tagName)||o.isContentEditable||o.getAttribute("contenteditable")==="true"))return o}return null}const e=n.target||n.srcElement;return e?.tagName&&(EDITABLE_TAGS.has(e.tagName)||e.isContentEditable||e.getAttribute("contenteditable")==="true")?e:null}function isKeyboardEventFromEditableTarget(n){return n?!!getEditableEventTarget(n):!1}function ensureHotkeysFilterConfigured(){filterConfigured||(hotkeys.filter=n=>{if(!getEditableEventTarget(n)||n.key==="Escape"||n.ctrlKey||n.metaKey||n.altKey)return!0;if(n.shiftKey){const e=n.key??"";if(e.length>1&&!/^[a-z0-9]$/i.test(e))return!0}return!1},filterConfigured=!0)}function parseShortcutString(n){if(!n)return;const i=n.split("+").map(o=>o.trim().toLowerCase()).filter(Boolean);if(i.length===0)return;let e;for(let o=i.length-1;o>=0;o-=1){const d=i[o];if(!MODIFIER_TOKENS.has(d)){e=d;break}}const t=i.some(o=>SYSTEM_MODIFIERS.has(o));return{tokens:i,baseKey:e,hasSystemModifier:t}}function shouldBlockShortcutInInput(n,i){if(!getEditableEventTarget(i)||n.hasSystemModifier)return!1;const t=n.baseKey;return!!(!t||t.length===1&&/^[a-z0-9]$/i.test(t)||t==="space"||t==="tab"||t==="enter"||NAVIGATION_KEYS.has(t))}function toHotkeysSequenceFromTokens(n){return n.map(i=>i==="cmd"?"command":i).join("+")}function buildSequences(n){if(!n)return[];const{tokens:i}=n,t=isFromMac()?"cmd":"ctrl",o=i.map(p=>p==="cmd"||p==="ctrl"||p==="mod"?t:p),d=Array.from(new Set(o));return[toHotkeysSequenceFromTokens(d)]}function getModifierLabel(n,i){return n==="cmd"||n==="ctrl"||n==="mod"?i?MODIFIER_DISPLAY.cmd:MODIFIER_DISPLAY.ctrl:n==="alt"&&i?"⌥":MODIFIER_DISPLAY[n]}function getKeyLabel(n){return KEY_DISPLAY[n]?KEY_DISPLAY[n]:(n.length===1||n.startsWith("f")&&/^\d+$/.test(n.slice(1)),n.toUpperCase())}function formatShortcutForDisplay(n,i){const e=parseShortcutString(n);if(!e)return;const t=i?.isMac??!1,o=[];if(MODIFIER_ORDER.forEach(d=>{if(e.tokens.includes(d)){const p=getModifierLabel(d,t);p&&o.push(p)}}),e.baseKey&&o.push(getKeyLabel(e.baseKey)),o.length!==0)return o.join(" + ")}function useRegisterShortcut({shortcut:n,disabled:i=!1,onActivate:e}){const t=reactExports.useMemo(()=>parseShortcutString(n),[n]),o=reactExports.useMemo(()=>buildSequences(t),[t]);reactExports.useEffect(()=>{if(!t||o.length===0||i)return;const d=(p,h)=>{i||shouldBlockShortcutInInput(t,p)||(p.preventDefault(),e())};return o.forEach(p=>{hotkeys(p,d)}),()=>{o.forEach(p=>{hotkeys.unbind(p,d)})}},[t,o,i,e])}const DynamicButtonLabel=({icon:n,label:i,iconSize:e,useSmallerFont:t=!1,iconPosition:o="left",shortcut:d})=>{const p=reactExports.useMemo(()=>formatShortcutForDisplay(d,{isMac:isFromMac()}),[d]);return jsx$1(StyledButtonLabel,{children:jsxs(StyledButtonMainLabel,{"data-has-shortcut":!!p,children:[n&&o==="left"&&jsx$1(DynamicIcon,{size:e??"lg",iconValue:n}),i&&jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,isLabel:!0,largerLabel:!t,disableLinks:!0}),n&&o==="right"&&jsx$1(DynamicIcon,{size:e??"lg",iconValue:n}),p&&jsx$1(StyledButtonShortcut,{"aria-label":`Shortcut ${p}`,children:p})]})})},StyledModalButton=styled("span",{target:"e1sav2h40"})(({theme:n})=>({marginRight:n.spacing.twoXS}));function ModalHeader({children:n,overrides:i}){const{genericFonts:e,fontSizes:t,spacing:o,fontWeights:d,lineHeights:p}=useEmotionTheme();return jsx$1(ModalHeader$1,{style:{marginTop:o.none,marginLeft:o.none,marginRight:o.none,marginBottom:o.none,paddingTop:o.twoXL,paddingRight:o.twoXL,paddingBottom:o.md,paddingLeft:o.twoXL,fontFamily:e.bodyFont,fontSize:t.xl,fontWeight:d.bold,margin:o.none,lineHeight:p.small,textTransform:"none",display:"flex",alignItems:"center",maxHeight:"80vh",flexDirection:"row",...i},children:n})}function ModalBody$1({children:n}){const{colors:i,fontSizes:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.twoXL,paddingBottom:t.twoXL,paddingLeft:t.twoXL,color:i.bodyText,fontSize:e.md},children:n})}function ModalFooter({children:n}){const{spacing:i}=useEmotionTheme();return jsx$1(ModalFooter$1,{style:{marginTop:i.none,marginLeft:i.none,marginRight:i.none,marginBottom:i.none,paddingTop:i.md,paddingRight:i.md,paddingBottom:i.md,paddingLeft:i.md},children:jsx$1("div",{children:n})})}const ModalButton=n=>jsx$1(StyledModalButton,{children:jsx$1(BaseButton,{...n})});function calculateModalSize(n,i,e,t){return n==="large"&&t?t:n==="medium"&&i&&e?`calc(${i} + ${e})`:n==="auto"?SIZE$2.auto:SIZE$2.default}function Modal(n){const{spacing:i,radii:e,colors:t,sizes:o}=useEmotionTheme(),d={Root:{style:{background:t.darkenedBgMix25},props:{className:"stDialog","data-testid":"stDialog"}},DialogContainer:{style:{alignItems:"start",paddingTop:i.threeXL}},Dialog:{style:{borderBottomRightRadius:e.xxl,borderBottomLeftRadius:e.xxl,borderTopRightRadius:e.xxl,borderTopLeftRadius:e.xxl,minWidth:o.minPopupWidth}},Close:{style:{top:`calc(${i.twoXL} + ${i.xs})`,right:i.twoXL}}},p=calculateModalSize(n.size,o.contentMaxWidth,i.lg,o.dialogLargeWidth),h=merge$1(d,n.overrides),y={...n,size:p};return jsx$1(Modal$1,{...y,overrides:h})}const StyledDialogTitle=styled("div",{target:"e1nw0ecc0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.sm,marginRight:n.spacing.threeXL})),StyledDialogIcon=styled("div",{target:"e1nw0ecc1"})(()=>({display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}));function mapDialogWidthToModalSize(n){switch(n){case Block$1.Dialog.DialogWidth.MEDIUM:return"medium";case Block$1.Dialog.DialogWidth.LARGE:return"large";case Block$1.Dialog.DialogWidth.SMALL:return"default";default:return assertNever(n),"default"}}const Dialog=({element:n,deltaMsgReceivedAt:i,children:e,widgetMgr:t,fragmentId:o})=>{const{title:d,dismissible:p,width:h,isOpen:y,id:$,icon:E}=n,[M,H]=reactExports.useState(!1);reactExports.useEffect(()=>{notNullOrUndefined(y)&&H(y)},[y,i]);const Z=reactExports.useCallback(()=>{H(!1),$&&t&&t.setTriggerValue({id:$,formId:""},{fromUi:!0},o)},[$,t,o]),be=reactExports.useCallback(ye=>{if(M&&ye.key.toLowerCase()==="r"&&!n.dismissible){const we=ye.target;if(we&&(we.isContentEditable||we.tagName==="INPUT"||we.tagName==="TEXTAREA"||we.tagName==="SELECT"))return;ye.preventDefault(),ye.stopPropagation()}},[M,n.dismissible]);return reactExports.useEffect(()=>{if(M&&!n.dismissible)return document.addEventListener("keydown",be,!0),()=>{document.removeEventListener("keydown",be,!0)}},[M,n.dismissible,be]),M?jsxs(Modal,{isOpen:!0,closeable:p,onClose:Z,size:mapDialogWidthToModalSize(h),children:[jsx$1(ModalHeader,{children:jsxs(StyledDialogTitle,{children:[E&&jsx$1(StyledDialogIcon,{"data-testid":"stDialogIcon",children:jsx$1(DynamicIcon,{iconValue:E,size:"lg"})}),jsx$1(StreamlitMarkdown$1,{source:d,allowHTML:!1,isLabel:!0,inheritFont:!0})]})}),jsx$1(ModalBody$1,{children:e})]}):jsx$1(Fragment,{})};function DialogWithProvider(n){return jsx$1(IsDialogContext.Provider,{value:!0,children:jsx$1(Dialog,{...n})})}const Dialog$1=reactExports.memo(DialogWithProvider),StyledExpandableContainer=styled("div",{target:"ewmru5c0"})({width:"100%"}),BORDER_SIZE=1,StyledDetails=styled("details",{target:"ewmru5c1"})(({isStale:n,theme:i})=>({marginBottom:0,marginTop:0,width:"100%",borderStyle:"solid",borderWidth:i.sizes.borderWidth,borderColor:i.colors.borderColor,borderRadius:i.radii.default,...n?{borderColor:i.colors.borderColorLight,transition:`border ${STALE_TRANSITION_PARAMS}`}:{}})),StyledSummaryHeading=styled("span",{target:"ewmru5c2"})(({theme:n})=>({display:"flex",alignItems:"center",flexGrow:1,minWidth:0,width:"100%",maxWidth:"100%",overflow:"hidden",gap:n.spacing.sm})),StyledSummaryLabelWrapper=styled("div",{target:"ewmru5c3"})({display:"flex",width:"100%",flexGrow:1,overflow:"hidden"}),StyledSummary=styled("summary",{target:"ewmru5c4"})(({theme:n,isStale:i,expanded:e})=>({position:"relative",display:"flex",width:"100%",minWidth:0,overflow:"hidden","&:focus":{outline:"none"},"&:focus-visible":{boxShadow:n.shadows.focusRing},fontSize:"inherit",paddingLeft:n.spacing.md,paddingRight:n.spacing.md,paddingTop:n.spacing.twoXS,paddingBottom:n.spacing.twoXS,minHeight:`calc(${n.sizes.minElementHeight} - 2 * ${n.sizes.borderWidth})`,alignItems:"center",cursor:"pointer",listStyleType:"none","&::-webkit-details-marker":{display:"none"},backgroundColor:e?n.colors.bgMix:"transparent",borderRadius:e?`${n.radii.default} ${n.radii.default} 0 0`:n.radii.default,transition:e?"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1), background-color 150ms ease":"border-radius 200ms cubic-bezier(0.23, 1, 0.32, 1) 300ms, background-color 150ms ease","&:hover, &:focus-visible":{backgroundColor:n.colors.darkenedBgMix15},"&:active":{backgroundColor:n.colors.darkenedBgMix25},...i&&STALE_STYLES})),StyledDetailsPanel=styled("div",{target:"ewmru5c5"})(({theme:n})=>({padding:n.spacing.lg,borderTop:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`})),ExpanderIcon=n=>{const{icon:i}=n;return i?jsx$1(DynamicIcon,{size:"lg",iconValue:i,testid:{":material/check:":"stExpanderIconCheck",":material/error:":"stExpanderIconError",spinner:"stExpanderIconSpinner"}[i]||"stExpanderIcon"}):jsx$1(Fragment,{})},Expander=({element:n,isStale:i,children:e})=>{const{label:t,expanded:o}=n,[d,p]=reactExports.useState(o||!1),[h,y]=reactExports.useState(!1),$=reactExports.useRef(null),E=reactExports.useRef(null),M=reactExports.useRef(null),H=reactExports.useRef(null),Z=reactExports.useRef(null);reactExports.useEffect(()=>{notNullOrUndefined(o)&&(p(o),$.current&&($.current.open=o))},[t,o]);const be=Le=>{$.current&&($.current.open=Le,M.current=null,$.current.style.height="",$.current.style.overflow="")},ye=(Le,Me,Ve)=>{const Ke=Ve>Me;M.current&&(M.current.cancel(),H.current&&(clearTimeout(H.current),H.current=null));const ze=Le.animate({height:[`${Me}px`,`${Ve}px`]},{duration:500,easing:"cubic-bezier(0.23, 1, 0.32, 1)"});ze.addEventListener("finish",()=>be(Ke)),M.current=ze},we=Le=>{Le.preventDefault(),p(!d);const Me=$.current;if(!Me||!E.current)return;Me.style.overflow="hidden";const Ve=Me.getBoundingClientRect().height,Ke=E.current.getBoundingClientRect().height;d?ye(Me,Ve,Ke+2*BORDER_SIZE):(Me.style.height=`${Ve}px`,Me.open=!0,window.requestAnimationFrame(()=>{ye(Me,Ve,Ke+2*BORDER_SIZE+5),H.current=setTimeout(()=>{if(!Z.current)return;const ze=Z.current.getBoundingClientRect().height;ye(Me,Ve,Ke+ze+2*BORDER_SIZE)},100)}))},Ce=()=>{y(!0)},xe=()=>{y(!1)},Ne=!n.icon||h,Fe=n.icon&&!h;return jsx$1(StyledExpandableContainer,{className:"stExpander","data-testid":"stExpander",children:jsxs(StyledDetails,{isStale:i,ref:$,onMouseEnter:Ce,onMouseLeave:xe,children:[jsx$1(StyledSummary,{onClick:we,ref:E,isStale:i,expanded:d,children:jsxs(StyledSummaryHeading,{children:[Ne&&jsx$1(DynamicIcon,{iconValue:d?":material/keyboard_arrow_down:":":material/keyboard_arrow_right:",size:"lg"}),Fe&&jsx$1(ExpanderIcon,{icon:n.icon}),jsx$1(StyledSummaryLabelWrapper,{children:jsx$1(StreamlitMarkdown$1,{source:t,allowHTML:!1,isLabel:!0,largerLabel:!0})})]})}),jsx$1(StyledDetailsPanel,{"data-testid":"stExpanderDetails",ref:Z,inert:d?void 0:"",children:e})]})})},Expander$1=reactExports.memo(Expander),Box=styled("div",{target:"ew64v8o0"})(({width:n="100%",height:i})=>({width:n,height:i})),getBorderColor=(n,i)=>{let e=n.widgetBorderColor??n.secondaryBg;return i&&(e=n.primary),e},useResizeObserver=(n,i=[])=>{const e=reactExports.useRef(null),[t,o]=reactExports.useState([]),d=reactExports.useCallback(()=>{if(!e.current)return[];const p=e.current.getBoundingClientRect();return n.map(h=>p[h])},[n]);return reactExports.useEffect(()=>{if(!e.current)return;o(d());let p;const h=new ResizeObserver(()=>{p=window.requestAnimationFrame(()=>{o(d())})});return h.observe(e.current),()=>{h.disconnect(),p&&cancelAnimationFrame(p)}},[n,d,...i]),{values:t,elementRef:e}},useCalculatedDimensions=(n=[],i=-1)=>{const{values:[e,t],elementRef:o}=useResizeObserver(reactExports.useMemo(()=>["width","height"],[]),n);return{width:e||i,height:t||i,elementRef:o}},StyledPopoverLabelContainer=styled("div",{target:"e1jdirsb0"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.threeXS,marginRight:`calc(-${n.iconSizes.lg} * 0.25)`})),StyledPopoverExpansionIcon=styled("div",{target:"e1jdirsb1"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.threeXS})),Popover=({element:n,empty:i,children:e,stretchWidth:t})=>{const[o,d]=reactExports.useState(!1),p=reactExports.useContext(IsSidebarContext),h=useEmotionTheme(),{width:y,elementRef:$}=useCalculatedDimensions();let E=BaseButtonKind.SECONDARY;return n.type==="primary"?E=BaseButtonKind.PRIMARY:n.type==="tertiary"&&(E=BaseButtonKind.TERTIARY),jsx$1(Box,{"data-testid":"stPopover",className:"stPopover",ref:$,children:jsx$1(Popover$2,{triggerType:TRIGGER_TYPE.click,placement:PLACEMENT$1.bottomLeft,content:()=>e,isOpen:o,onClickOutside:()=>d(!1),onClick:()=>o?d(!1):void 0,onEsc:()=>d(!1),ignoreBoundary:p,renderAll:!0,overrides:{Body:{props:{"data-testid":"stPopoverBody"},style:()=>({marginRight:h.spacing.lg,marginBottom:h.spacing.lg,maxHeight:"70vh",overflow:"auto",maxWidth:`calc(${h.sizes.contentMaxWidth} - 2*${h.spacing.lg})`,minWidth:t?`${Math.max(y,160)}px`:h.sizes.minPopupWidth,[`@media (max-width: ${h.breakpoints.sm})`]:{maxWidth:`calc(100% - ${h.spacing.threeXL})`},borderTopLeftRadius:h.radii.xl,borderTopRightRadius:h.radii.xl,borderBottomRightRadius:h.radii.xl,borderBottomLeftRadius:h.radii.xl,borderLeftWidth:h.sizes.borderWidth,borderRightWidth:h.sizes.borderWidth,borderTopWidth:h.sizes.borderWidth,borderBottomWidth:h.sizes.borderWidth,paddingRight:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingLeft:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingBottom:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,paddingTop:`calc(${h.spacing.twoXL} - ${h.sizes.borderWidth})`,borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftColor:h.colors.borderColor,borderRightColor:h.colors.borderColor,borderTopColor:h.colors.borderColor,borderBottomColor:h.colors.borderColor,boxShadow:h.shadows.popover})}},children:jsx$1("div",{children:jsx$1(BaseButtonTooltip,{help:n.help,containerWidth:!0,children:jsx$1(BaseButton,{"data-testid":"stPopoverButton",kind:E,size:BaseButtonSize.SMALL,disabled:i||n.disabled,containerWidth:!0,onClick:()=>d(!o),children:jsxs(StyledPopoverLabelContainer,{children:[jsx$1(DynamicButtonLabel,{icon:n.icon,label:n.label}),jsx$1(StyledPopoverExpansionIcon,{children:jsx$1(DynamicIcon,{iconValue:o?":material/expand_less:":":material/expand_more:",size:"lg"})})]})})})})})})},Popover$1=reactExports.memo(Popover);var ORIENTATION={vertical:"vertical",horizontal:"horizontal"},FILL={fixed:"fixed",intrinsic:"intrinsic"},getTabId=function n(i,e){return"tabs-".concat(i,"-tab-").concat(e)},getTabPanelId=function n(i,e){return"tabs-".concat(i,"-tabpanel-").concat(e)},isHorizontal=function n(i){return i===ORIENTATION.horizontal},isVertical=function n(i){return i===ORIENTATION.vertical},isRTL=function n(i){return i==="rtl"},isIntrinsic=function n(i){return i===FILL.intrinsic},isFixed=function n(i){return i===FILL.fixed};function ownKeys$d(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$c(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$d(Object(e),!0).forEach(function(t){_defineProperty$d(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$d(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$d(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}var StyledRoot$1=styled$1("div",function(n){n.$theme;var i=n.$orientation,e=i===void 0?ORIENTATION.horizontal:i,t={transform:"scale(1)"};return isVertical(e)&&(t.display="flex"),t});StyledRoot$1.displayName="StyledRoot";StyledRoot$1.displayName="StyledRoot";var StyledTabBar=styled$1("div",function(n){var i=n.$hasEndEnhancer,e=n.$orientation;return i||!isHorizontal(e)?{display:"flex"}:{}});StyledTabBar.displayName="StyledTabBar";StyledTabBar.displayName="StyledTabBar";var StyledTabList=styled$1("div",function(n){var i=n.$theme,e=n.$fill,t=e===void 0?FILL.intrinsic:e,o=n.$orientation,d=o===void 0?ORIENTATION.horizontal:o,p={position:"relative",display:"flex",flexWrap:"nowrap",flexGrow:1};return isHorizontal(d)?(p.flexDirection="row",p.paddingBottom="5px",p.marginBottom="-5px"):(p.flexDirection="column",isRTL(i.direction)?(p.paddingLeft="5px",p.marginLeft="-5px"):(p.paddingRight="5px",p.marginRight="-5px")),isIntrinsic(t)&&(p["::-webkit-scrollbar"]={display:"none"},p["-ms-overflow-style"]="none",p.scrollbarWidth="none",isHorizontal(d)?p.overflowX="scroll":p.overflowY="scroll"),p});StyledTabList.displayName="StyledTabList";StyledTabList.displayName="StyledTabList";var StyledTab=styled$1("button",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$fill,d=o===void 0?FILL.intrinsic:o,p=n.$focusVisible,h=p===void 0?!1:p;n.$isActive;var y=_objectSpread$c({cursor:"pointer",WebkitAppearance:"none",marginLeft:"0",marginRight:"0",marginTop:"0",marginBottom:"0",boxSizing:"border-box",display:"inline-flex",alignItems:"center",paddingLeft:i.sizing.scale600,paddingTop:i.sizing.scale600,paddingRight:i.sizing.scale600,paddingBottom:i.sizing.scale600,borderLeftWidth:0,borderTopWidth:0,borderRightWidth:0,borderBottomWidth:0,borderLeftStyle:"none",borderTopStyle:"none",borderRightStyle:"none",borderBottomStyle:"none",color:i.colors.contentPrimary,background:i.colors.backgroundPrimary,transitionProperty:"background",transitionDuration:i.animation.timing200,transitionTimingFunction:i.animation.linearCurve,outline:"none",outlineOffset:"-3px",":disabled":{cursor:"not-allowed",color:i.colors.contentStateDisabled},":hover":{background:i.colors.backgroundSecondary},":disabled:hover":{background:"none"}},i.typography.LabelSmall);return h&&(y.outline="3px solid ".concat(i.colors.accent)),isFixed(d)&&(y.flexGrow=1,y.flexBasis=0),isHorizontal(t)?y.justifyContent="center":y.justifyContent="flex-end",y});StyledTab.displayName="StyledTab";StyledTab.displayName="StyledTab";var StyledEndEnhancerContainer=styled$1("div",function(n){var i=n.$theme,e=i.direction==="rtl"?"marginRight":"marginLeft";return _defineProperty$d({display:"flex",alignItems:"center",justifyContent:"flex-end"},e,i.sizing.scale600)});StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";StyledEndEnhancerContainer.displayName="StyledEndEnhancerContainer";var StyledArtworkContainer=styled$1("div",function(n){var i=n.$theme;n.$orientation;var e={display:"flex"};return isRTL(i.direction)?e.marginLeft=i.sizing.scale300:e.marginRight=i.sizing.scale300,e});StyledArtworkContainer.displayName="StyledArtworkContainer";StyledArtworkContainer.displayName="StyledArtworkContainer";var StyledTabBorder=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o={backgroundColor:i.colors.borderOpaque,position:"relative"};return isHorizontal(t)?o.height="5px":o.width="5px",o});StyledTabBorder.displayName="StyledTabBorder";StyledTabBorder.displayName="StyledTabBorder";var StyledTabHighlight=styled$1("div",function(n){var i=n.$theme,e=n.$orientation,t=e===void 0?ORIENTATION.horizontal:e,o=n.$length,d=o===void 0?0:o,p=n.$distance,h=p===void 0?0:p,y=n.$animate,$=y===void 0?!1:y,E={backgroundColor:i.colors.borderSelected,position:"absolute",zIndex:1};return isHorizontal(t)?(E.bottom="0px",E.left="0px",E.height="5px",E.width="".concat(d,"px"),E.transform="translateX(".concat(h,"px)")):(E.transform="translateY(".concat(h,"px)"),E.width="5px",E.height="".concat(d,"px"),isRTL(i.direction)?E.left="0px":E.right="0px"),$&&(E.transitionProperty="all",E.transitionDuration=i.animation.timing400,E.transitionTimingFunction=i.animation.easeInOutQuinticCurve),E});StyledTabHighlight.displayName="StyledTabHighlight";StyledTabHighlight.displayName="StyledTabHighlight";var StyledTabPanel=styled$1("div",function(n){var i=n.$theme,e=n.$pad,t=e===void 0?!0:e,o={flexGrow:1,outline:"none"};return t&&(o.paddingTop=i.sizing.scale600,o.paddingRight=i.sizing.scale600,o.paddingBottom=i.sizing.scale600,o.paddingLeft=i.sizing.scale600),o});StyledTabPanel.displayName="StyledTabPanel";StyledTabPanel.displayName="StyledTabPanel";var _excluded$j=["childKey","childIndex","activeKey","orientation","activeTabRef","updateHighlight","parseKeyDown","activateOnFocus","uid","disabled","sharedStylingProps","onChange"],_excluded2$4=["artwork","overrides","tabRef","onClick","title"],_excluded3$1=["childKey","childIndex","activeKey","uid","sharedStylingProps","renderAll"];function ownKeys$c(n,i){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);i&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),e.push.apply(e,t)}return e}function _objectSpread$b(n){for(var i=1;i<arguments.length;i++){var e=arguments[i]!=null?arguments[i]:{};i%2?ownKeys$c(Object(e),!0).forEach(function(t){_defineProperty$c(n,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):ownKeys$c(Object(e)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))})}return n}function _defineProperty$c(n,i,e){return i in n?Object.defineProperty(n,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[i]=e,n}function _toConsumableArray$1(n){return _arrayWithoutHoles$1(n)||_iterableToArray$1(n)||_unsupportedIterableToArray$e(n)||_nonIterableSpread$1()}function _nonIterableSpread$1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
107
107
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _iterableToArray$1(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles$1(n){if(Array.isArray(n))return _arrayLikeToArray$e(n)}function _objectWithoutProperties$g(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$f(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$f(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _extends$h(){return _extends$h=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$h.apply(this,arguments)}function _slicedToArray$e(n,i){return _arrayWithHoles$e(n)||_iterableToArrayLimit$e(n,i)||_unsupportedIterableToArray$e(n,i)||_nonIterableRest$e()}function _nonIterableRest$e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
108
108
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$e(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$e(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$e(n,i)}}function _arrayLikeToArray$e(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$e(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$e(n){if(Array.isArray(n))return n}var KEYBOARD_ACTION={next:"next",previous:"previous"},getLayoutParams=function n(i,e){return i?isVertical(e)?{length:i.clientHeight,distance:i.offsetTop}:{length:i.clientWidth,distance:i.offsetLeft}:{length:0,distance:0}},scrollParentToCentreTarget=function n(i){var e=i.parentNode.getBoundingClientRect(),t=e.x,o=e.y,d=e.width,p=e.height,h=i.getBoundingClientRect(),y=h.x,$=h.y,E=h.width,M=h.height,H={x:y-t+E/2,y:$-o+M/2},Z=i.parentNode,be=Z.scrollLeft,ye=Z.scrollTop,we={x:be+H.x-d/2,y:ye+H.y-p/2};i.parentNode.scroll(we.x,we.y)};function RenderEnhancer(n){var i=n.Enhancer;return typeof i=="string"?i:reactIsExports$1.isValidElementType(i)?reactExports.createElement(i,null):i}function Tabs$2(n){var i=n.activeKey,e=i===void 0?"0":i,t=n.disabled,o=t===void 0?!1:t,d=n.children,p=n.fill,h=p===void 0?FILL.intrinsic:p,y=n.activateOnFocus,$=y===void 0?!0:y,E=n.onChange,M=n.orientation,H=M===void 0?ORIENTATION.horizontal:M,Z=n.overrides,be=Z===void 0?{}:Z,ye=n.renderAll,we=ye===void 0?!1:ye,Ce=n.uid,xe=Ce===void 0?null:Ce,Ne=n.endEnhancer,Fe=useUID(),Le=xe||Fe,Me=be.Root,Ve=be.TabList,Ke=be.TabHighlight,ze=be.TabBorder,je=getOverrides(Me,StyledRoot$1),We=_slicedToArray$e(je,2),Xe=We[0],Qe=We[1],Ye=getOverrides(Ve,StyledTabList),He=_slicedToArray$e(Ye,2),rt=He[0],ft=He[1],ot=getOverrides(Ke,StyledTabHighlight),pt=_slicedToArray$e(ot,2),Be=pt[0],Ge=pt[1],tt=getOverrides(ze,StyledTabBorder),Ue=_slicedToArray$e(tt,2),Ot=Ue[0],xt=Ue[1],ut=getOverrides(be.EndEnhancerContainer,StyledEndEnhancerContainer),ht=_slicedToArray$e(ut,2),wt=ht[0],Et=ht[1],Tt=reactExports.useState(0),zt=_slicedToArray$e(Tt,2),on=zt[0],Yt=zt[1];reactExports.useEffect(function(){Yt(on+1)},[e]);var qt=reactExports.useRef(),dn=reactExports.useState({length:0,distance:0}),Xt=_slicedToArray$e(dn,2),Ut=Xt[0],nn=Xt[1],Ht=reactExports.useCallback(function(){qt.current&&nn(getLayoutParams(qt.current,H))},[qt.current,H]);reactExports.useEffect(Ht,[qt.current,H]),reactExports.useEffect(function(){qt.current&&(isHorizontal(H)?qt.current.parentNode.scrollWidth>qt.current.parentNode.clientWidth:qt.current.parentNode.scrollHeight>qt.current.parentNode.clientHeight)&&(on>1?qt.current.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}):scrollParentToCentreTarget(qt.current))},[qt.current]);var Qt={$orientation:H,$fill:h},fn=useStyletron(),On=_slicedToArray$e(fn,2),tn=On[1],bn=reactExports.useCallback(function(Gt){if(isHorizontal(H))if(isRTL(tn.direction))switch(Gt.keyCode){case 39:return KEYBOARD_ACTION.previous;case 37:return KEYBOARD_ACTION.next;default:return null}else switch(Gt.keyCode){case 37:return KEYBOARD_ACTION.previous;case 39:return KEYBOARD_ACTION.next;default:return null}else switch(Gt.keyCode){case 38:return KEYBOARD_ACTION.previous;case 40:return KEYBOARD_ACTION.next;default:return null}},[H,tn.direction]);return reactExports.createElement(Xe,_extends$h({},Qt,Qe),reactExports.createElement(StyledTabBar,{$hasEndEnhancer:!!Ne,$orientation:H},reactExports.createElement(rt,_extends$h({"data-baseweb":"tab-list",role:"tablist","aria-orientation":H},Qt,ft),reactExports.Children.map(d,function(Gt,st){if(Gt)return reactExports.createElement(InternalTab,_extends$h({childKey:Gt.key,childIndex:st,activeKey:e,orientation:H,activeTabRef:qt,updateHighlight:Ht,parseKeyDown:bn,activateOnFocus:$,uid:Le,disabled:o,sharedStylingProps:Qt,onChange:E},Gt.props))}),reactExports.createElement(Be,_extends$h({"data-baseweb":"tab-highlight",$length:Ut.length,$distance:Ut.distance,$animate:on>1,"aria-hidden":"true",role:"presentation"},Qt,Ge))),H===ORIENTATION.horizontal&&Ne!==null&&Ne!==void 0&&reactExports.createElement(wt,_extends$h({},Et,{$orientation:H}),reactExports.createElement(RenderEnhancer,{Enhancer:Ne}))),reactExports.createElement(Ot,_extends$h({"data-baseweb":"tab-border","aria-hidden":"true",role:"presentation"},Qt,xt)),reactExports.Children.map(d,function(Gt,st){if(Gt)return reactExports.createElement(InternalTabPanel,_extends$h({childKey:Gt.key,childIndex:st,activeKey:e,uid:Le,sharedStylingProps:Qt,renderAll:we},Gt.props))}))}function InternalTab(n){var i=n.childKey,e=n.childIndex,t=n.activeKey,o=n.orientation,d=n.activeTabRef,p=n.updateHighlight,h=n.parseKeyDown,y=n.activateOnFocus,$=n.uid,E=n.disabled,M=n.sharedStylingProps,H=n.onChange,Z=_objectWithoutProperties$g(n,_excluded$j),be=i||String(e),ye=be==t,we=Z.artwork,Ce=Z.overrides,xe=Ce===void 0?{}:Ce,Ne=Z.tabRef,Fe=Z.onClick,Le=Z.title,Me=_objectWithoutProperties$g(Z,_excluded2$4),Ve=reactExports.useRef();reactExports.useImperativeHandle(Ne,function(){return ye?d.current:Ve.current});var Ke=reactExports.useRef({length:0,distance:0});reactExports.useEffect(function(){Ke.current=getLayoutParams(ye?d.current:Ve.current,o)}),reactExports.useEffect(function(){if(window.ResizeObserver){var ut=new window.ResizeObserver(function(ht){if(ht[0]&&ht[0].target){var wt=getLayoutParams(ht[0].target,o);(wt.length!==Ke.current.length||wt.distance!==Ke.current.distance)&&p()}});return ut.observe(ye?d.current:Ve.current),function(){ut.disconnect()}}},[t,o]),reactExports.useEffect(p,[Le]);var ze=xe.Tab,je=xe.ArtworkContainer,We=getOverrides(ze,StyledTab),Xe=_slicedToArray$e(We,2),Qe=Xe[0],Ye=Xe[1],He=getOverrides(je,StyledArtworkContainer),rt=_slicedToArray$e(He,2),ft=rt[0],ot=rt[1],pt=reactExports.useState(!1),Be=_slicedToArray$e(pt,2),Ge=Be[0],tt=Be[1],Ue=reactExports.useCallback(function(ut){isFocusVisible(ut)&&tt(!0)},[]),Ot=reactExports.useCallback(function(ut){Ge!==!1&&tt(!1)},[Ge]),xt=reactExports.useCallback(function(ut){var ht=_toConsumableArray$1(ut.target.parentNode.childNodes).filter(function(zt){return!zt.disabled&&zt.getAttribute("role")==="tab"});if(ht.length!==1){var wt=ht.indexOf(ut.target),Et=h(ut);if(Et){var Tt;Et===KEYBOARD_ACTION.previous?ht[wt-1]?Tt=ht[wt-1]:Tt=ht[ht.length-1]:Et===KEYBOARD_ACTION.next&&(ht[wt+1]?Tt=ht[wt+1]:Tt=ht[0]),Tt&&(Tt.focus(),y&&Tt.click()),isVertical(o)&&ut.preventDefault()}}});return reactExports.createElement(Qe,_extends$h({"data-baseweb":"tab",key:be,id:getTabId($,be),role:"tab",onKeyDown:xt,"aria-selected":ye,"aria-controls":getTabPanelId($,be),tabIndex:ye?"0":"-1",ref:ye?d:Ve,disabled:!ye&&E,type:"button",$focusVisible:Ge,$isActive:ye},M,Me,Ye,{onClick:function(ht){typeof H=="function"&&H({activeKey:be}),typeof Fe=="function"&&Fe(ht)},onFocus:forkFocus(_objectSpread$b(_objectSpread$b({},Me),Ye),Ue),onBlur:forkBlur(_objectSpread$b(_objectSpread$b({},Me),Ye),Ot)}),we?reactExports.createElement(ft,_extends$h({"data-baseweb":"artwork-container"},M,ot),reactExports.createElement(we,{size:20,color:"contentPrimary"})):null,Le||be)}function InternalTabPanel(n){var i=n.childKey,e=n.childIndex,t=n.activeKey,o=n.uid,d=n.sharedStylingProps,p=n.renderAll,h=_objectWithoutProperties$g(n,_excluded3$1),y=i||String(e),$=y==t,E=h.overrides,M=E===void 0?{}:E,H=h.children,Z=M.TabPanel,be=getOverrides(Z,StyledTabPanel),ye=_slicedToArray$e(be,2),we=ye[0],Ce=ye[1];return reactExports.createElement(we,_extends$h({"data-baseweb":"tab-panel",key:y,role:"tabpanel",id:getTabPanelId(o,y),"aria-labelledby":getTabId(o,y),hidden:!$},d,Ce),$||p?H:null)}function Tab(n){return null}function getClassnamePrefix(n){return n===Direction.HORIZONTAL?"stHorizontalBlock":"stVerticalBlock"}function shouldComponentBeEnabled(n,i){return n!=="empty"||i!==ScriptRunState.RUNNING}function isElementStale(n,i,e,t){return i===ScriptRunState.RERUN_REQUESTED?!0:i===ScriptRunState.RUNNING?t?.length?!!(n.fragmentId&&t.includes(n.fragmentId)&&n.scriptRunId!==e):n.scriptRunId!==e:!1}function isComponentStale(n,i,e,t,o){return!n||isElementStale(i,e,t,o)}function assignDividerColor(n,i){const e=getDividerColors(i),t=Object.keys(e),{blue:o,green:d,orange:p,red:h,violet:y,yellow:$}=e,E={blue:o,green:d,orange:p,red:h,violet:y,yellow:$},M=Object.keys(E);let H=0;for(const Z of ElementsSetVisitor.collectElements(n)){const be=Z.heading?.divider;if(Z.type==="heading"&&be)if(be==="auto"){const ye=M[H];Z.heading.divider=E[ye],H+=1,H===M.length&&(H=0)}else t.includes(be)&&(Z.heading.divider=e[be])}}function convertKeyToClassName(n){return n?"st-key-"+n.trim().replace(/[^a-zA-Z0-9_-]/g,"-"):""}function getKeyFromId(n){if(!n||!isValidElementId(n))return;const e=n.split("-").slice(2).join("-");return e==="None"?void 0:e}function getColumnGapSize(n){return n.gapConfig?.gapSize?n.gapConfig.gapSize:streamlit.GapSize.SMALL}function checkFlexContainerBackwardsCompatibile(n){return!!(n.flexContainer||n.vertical||n.horizontal)}function shouldActivateScrollToBottom(n){return!!(n.deltaBlock.heightConfig?.pixelHeight&&n.children.some(e=>e instanceof BlockNode&&e.deltaBlock.type==="chatMessage"))}function getBorderBackwardsCompatible(n){return n.flexContainer?.border||n.vertical?.border||!1}const StyledTabContainer=styled("div",{target:"eh1nhsq0"})(({theme:n,isOverflowing:i,tabHeight:e,width:t,flex:o})=>({...i?{position:"relative","::after":{content:'" "',position:"absolute",zIndex:n.zIndices.priority,top:0,right:0,pointerEvents:"none",backgroundImage:`linear-gradient(to right, ${transparentize(n.colors.bgColor,1)}, ${n.colors.bgColor})`,width:n.spacing.lg,height:e}}:{},...t&&{width:t},...o&&{flex:o}}));function Tabs(n){const{widgetsDisabled:i,node:e,isStale:t,width:o,flex:d}=n,{scriptRunState:p,scriptRunId:h,fragmentIdsThisRun:y}=reactExports.useContext(ScriptRunContext),$=e.deltaBlock?.tabContainer?.defaultTabIndex??0;let E=[];const[M,H]=reactExports.useState($),[Z,be]=reactExports.useState(()=>e.children[$]?.deltaBlock?.tab?.label??"0"),ye=reactExports.useRef(null),we=useEmotionTheme(),[Ce,xe]=reactExports.useState(!1);reactExports.useEffect(()=>{E.indexOf(Z)===-1&&(H($),be(E[$]))},[E]),reactExports.useEffect(()=>{if(ye.current){const{scrollWidth:Me,clientWidth:Ve}=ye.current;xe(Me>Ve)}const Le=E.indexOf(Z);Le!==-1?(H(Le),be(E[Le])):(H($),be(E[$]))},[e.children.length]);const Ne=we.sizes.tabHeight,Fe=we.spacing.threeXS;return jsx$1(StyledTabContainer,{className:"stTabs","data-testid":"stTabs",isOverflowing:Ce,tabHeight:Ne,width:o,flex:d,children:jsx$1(Tabs$2,{activateOnFocus:!0,activeKey:M,onChange:({activeKey:Le})=>{H(Le),be(E[Le])},renderAll:!0,overrides:{TabHighlight:{style:()=>({backgroundColor:we.colors.primary,height:Fe})},TabBorder:{style:()=>({backgroundColor:we.colors.borderColorLight,height:Fe})},TabList:{props:{ref:ye},style:()=>({gap:we.spacing.lg,marginBottom:`-${Fe}`,paddingBottom:Fe,overflowY:"hidden",...t&&STALE_STYLES})},Root:{style:()=>({transform:"none"})}},children:e.children.map((Le,Me)=>{Me===0&&(E=[]);const Ve=isElementStale(Le,p,h,y),Ke={...n,isStale:t||Ve,widgetsDisabled:i,node:Le};let ze=Me.toString();Ke.node.deltaBlock?.tab?.label&&(ze=Ke.node.deltaBlock.tab.label),E[Me]=ze;const je=M.toString()===Me.toString(),We=Me===e.children.length-1;return jsx$1(Tab,{"data-testid":"stTab",title:jsx$1(StreamlitMarkdown$1,{source:ze,allowHTML:!1,isLabel:!0}),disabled:!t&&Ve,overrides:{TabPanel:{style:()=>({paddingLeft:we.spacing.none,paddingRight:we.spacing.none,paddingBottom:we.spacing.none,paddingTop:we.spacing.lg})},Tab:{style:()=>({height:Ne,whiteSpace:"nowrap",paddingLeft:we.spacing.none,paddingRight:we.spacing.none,paddingTop:we.spacing.none,paddingBottom:we.spacing.none,fontSize:we.fontSizes.sm,background:"transparent",color:we.colors.bodyText,":focus":{outline:"none",color:we.colors.primary,background:"none"},":hover":{color:we.colors.primary,background:"none"},...je?{color:we.colors.primary}:{},...Ce&&We?{paddingRight:`calc(${we.spacing.lg} * 0.6)`}:{},...!t&&Ve&&STALE_STYLES})}},children:n.renderTabContent(Ke)},Me)})})})}const Tabs$1=reactExports.memo(Tabs),FormsContext=reactExports.createContext(null);FormsContext.displayName="FormsContext";const useRequiredContext=n=>{const i=reactExports.useContext(n);if(i==null)throw new Error(`useRequiredContext: ${n.displayName??"context"} not found`);return i},StyledFormSubmitContent=styled("div",{target:"e189vper0"})({display:"flex"}),StyledForm=styled("div",{target:"e189vper1"})(({theme:n,border:i,overflow:e})=>({...i&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},width:"100%",height:"100%",overflow:e})),StyledErrorContainer=styled("div",{target:"e189vper2"})(({theme:n})=>({marginTop:n.spacing.lg})),StyledAlertContent=styled("div",{target:"e10i2jnt0"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,width:"100%",[`${StyledCodeBlock} code`]:{paddingRight:n.spacing.lg}})),StyledAlertIcon=styled("div",{target:"e10i2jnt1"})(({theme:n})=>({position:"relative",top:n.spacing.threeXS}));function AlertElement({icon:n,body:i,kind:e}){const t=useEmotionTheme(),o={width:n?`calc(100% - (${t.iconSizes.lg} + ${t.spacing.sm}))`:"100%"};return jsx$1("div",{className:"stAlert","data-testid":"stAlert",children:jsx$1(AlertContainer,{kind:e,children:jsxs(StyledAlertContent,{children:[n&&jsx$1(StyledAlertIcon,{children:jsx$1(DynamicIcon,{iconValue:n,size:"lg",testid:"stAlertDynamicIcon"})}),jsx$1(StreamlitMarkdown$1,{source:i,allowHTML:!1,style:o})]})})})}const AlertElement$1=reactExports.memo(AlertElement);function getAlertElementKind(n){switch(n){case Alert.Format.ERROR:return Kind.ERROR;case Alert.Format.INFO:return Kind.INFO;case Alert.Format.SUCCESS:return Kind.SUCCESS;case Alert.Format.WARNING:return Kind.WARNING;default:throw new Error(`Unexpected alert type: ${n}`)}}const MISSING_SUBMIT_BUTTON_WARNING=`**Missing Submit Button**
|
|
109
109
|
|
|
@@ -116,7 +116,7 @@ For more information, refer to the [documentation for forms](https://docs.stream
|
|
|
116
116
|
${n.stackTrace?.join(`
|
|
117
117
|
`)}`,d=`https://www.google.com/search?q=${encodeURIComponent(t)}`,p=`https://chatgpt.com/?q=${encodeURIComponent(o)}`,{copyToClipboard:h}=useCopyToClipboard(),y=reactExports.useCallback(()=>{h(o)},[h,o]);return jsx$1("div",{className:"stException","data-testid":"stException",children:jsx$1(AlertContainer,{kind:n.isWarning?Kind.WARNING:Kind.ERROR,children:jsxs(StyledExceptionWrapper,{children:[jsx$1(StyledExceptionMessage,{"data-testid":"stExceptionMessage",children:jsx$1(ExceptionMessage,{type:n.type,message:n.message,messageIsMarkdown:n.messageIsMarkdown})}),n.stackTrace&&n.stackTrace.length>0?jsx$1(StackTrace,{stackTrace:n.stackTrace}):null,e&&jsxs(StyledExceptionLinks,{children:[jsx$1(StyledExceptionCopyButton,{onClick:y,children:"Copy"}),jsx$1("a",{href:d,target:"_blank",rel:"noopener noreferrer",children:"Ask Google"}),jsx$1("a",{href:p,target:"_blank",rel:"noopener noreferrer",children:"Ask ChatGPT"})]})]})})})}const ExceptionElement$1=reactExports.memo(ExceptionElement),SINGLE_BADGE_REGEX=/^:\w+-badge\[((?:\\.|[^\]\\])*)\]$/;function Markdown({element:n}){const{allowHtml:i,body:e,elementType:t,help:o}=n,d=t===Markdown$3.Type.CAPTION,p=t===Markdown$3.Type.LATEX,h=t===Markdown$3.Type.NATIVE&&SINGLE_BADGE_REGEX.test(e.trim());let y;if(o&&h)y=jsx$1(BaseButtonTooltip,{help:o,containerWidth:!1,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:e,allowHTML:i})});else if(o&&p)y=jsxs(StyledLabelHelpWrapper,{isLatex:p,children:[jsx$1(StreamlitMarkdown$1,{isCaption:d,source:e,allowHTML:i}),jsx$1(InlineTooltipIcon,{content:o,isLatex:p})]});else{const $=o?`${e} :help[]`:e;y=jsx$1(StyledLabelHelpWrapper,{isLatex:p,children:jsx$1(StreamlitMarkdown$1,{isCaption:d,source:$,allowHTML:i,helpText:o})})}return jsx$1("div",{className:"stMarkdown","data-testid":"stMarkdown",children:y})}const Markdown$1=reactExports.memo(Markdown),StyledText=styled("span",{target:"e1fbzn630"})(({theme:n})=>({fontFamily:n.genericFonts.bodyFont,color:n.colors.bodyText,whiteSpace:"pre-line",whiteSpaceCollapse:"preserve",wordBreak:"break-word",display:"inline-block",verticalAlign:"middle",width:"100%"})),StyledInlineHelpIcon=styled("span",{target:"e1fbzn631"})(({theme:n})=>({display:"inline-block",verticalAlign:"middle",marginLeft:n.spacing.twoXS,transform:"translateY(-0.05em)"}));function TextElement({element:n}){return jsx$1(StyledLabelHelpWrapper,{className:"stText","data-testid":"stText",children:jsxs(StyledText,{children:[n.body,n.help&&jsx$1(StyledInlineHelpIcon,{children:jsx$1(InlineTooltipIcon,{content:n.help})})]})})}const TextElement$1=reactExports.memo(TextElement),katex_min=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));function makeMarkdownHeading(n,i){switch(n.toLowerCase()){case Tags.H1:return`# ${i}`;case Tags.H2:return`## ${i}`;case Tags.H3:return`### ${i}`;default:throw new Error(`Unrecognized tag for header: ${n}`)}}const OVERRIDE_COMPONENTS={p:reactExports.Fragment,h1:reactExports.Fragment,h2:reactExports.Fragment,h3:reactExports.Fragment,h4:reactExports.Fragment,h5:reactExports.Fragment,h6:reactExports.Fragment};function Heading(n){const{element:i}=n,{tag:e,anchor:t,body:o,help:d,hideAnchor:p,divider:h}=i,y=reactExports.useContext(IsDialogContext),[$,...E]=o.split(`
|
|
118
118
|
`);return jsxs("div",{className:"stHeading","data-testid":"stHeading",children:[jsxs(StyledStreamlitMarkdown,{isCaption:!1,isInDialog:y,"data-testid":"stMarkdownContainer",children:[jsx$1(HeadingWithActionElements,{anchor:t,help:d,hideAnchor:p,tag:e,children:jsx$1(RenderedMarkdown,{allowHTML:!1,source:makeMarkdownHeading(e,$),overrideComponents:OVERRIDE_COMPONENTS})}),E.length>0&&jsx$1(RenderedMarkdown,{source:E.join(`
|
|
119
|
-
`),allowHTML:!1})]}),h&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:h.includes("linear"),color:h})]})}const StyledCheckbox$1=styled("div",{target:"eczd22r0"})(({theme:n})=>({display:"flex",alignItems:"center",minHeight:n.sizes.smallElementHeight})),StyledContent=styled("div",{target:"eczd22r1"})(({visibility:n})=>({display:n===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:n===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(n,i){switch(n){case streamlit.GapSize.XXSMALL:return i.spacing.twoXS;case streamlit.GapSize.XSMALL:return i.spacing.sm;case streamlit.GapSize.SMALL:return i.spacing.lg;case streamlit.GapSize.MEDIUM:return i.spacing.threeXL;case streamlit.GapSize.LARGE:return i.spacing.fourXL;case streamlit.GapSize.XLARGE:return i.spacing.fiveXL;case streamlit.GapSize.XXLARGE:return i.spacing.sixXL;case streamlit.GapSize.NONE:return i.spacing.none;default:return i.spacing.lg}}const StyledSpace=styled("div",{target:"e12zf7d50"})({width:"100%",height:"100%"}),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=styled("div",{target:"e12zf7d51"})(({theme:n,isStale:i,width:e,height:t,elementType:o,overflow:d,flex:p,minWidth:h,textAlign:y})=>({width:e,height:t,textAlign:y,maxWidth:"100%",minWidth:e==="0px"?0:h??"1rem",position:"relative",overflow:d,flex:p,"@media print":{overflow:"visible"},":has(> .stCacheSpinner)":{height:n.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${n.spacing.lg}`,zIndex:n.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${n.spacing.xs}`,marginBottom:`-${n.spacing.xs}`},...i&&o!=="skeleton"&&STALE_STYLES,...o==="empty"?{display:"none"}:{},...o==="space"?{minWidth:0,minHeight:0}:{},...GLOBAL_ELEMENTS.includes(o)?{marginBottom:`-${n.spacing.lg}`}:{}})),StyledColumn=styled("div",{target:"e12zf7d52"})(({theme:n,weight:i,gap:e,showBorder:t,verticalAlignment:o})=>{const{VerticalAlignment:d}=Block$1.Column,p=i*100,h=translateGapWidth(e,n),y=h===n.spacing.none?`${p}%`:`calc(${p}% - ${h})`;return{width:y,flex:`1 1 ${y}`,[`@media (max-width: ${n.breakpoints.columns})`]:{minWidth:`calc(100% - ${n.spacing.twoXL})`},...o===d.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:n.spacing.sm}},...o===d.TOP&&{[`& ${StyledElementContainer}:first-of-type > ${StyledCheckbox$1}`]:{marginTop:n.spacing.sm}},...o===d.CENTER&&{marginTop:"auto",marginBottom:"auto"},...t&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`}}}),getAlignItems=n=>{switch(n){case Block$1.FlexContainer.Align.ALIGN_START:return"start";case Block$1.FlexContainer.Align.ALIGN_CENTER:return"center";case Block$1.FlexContainer.Align.ALIGN_END:return"end";case Block$1.FlexContainer.Align.STRETCH:return"stretch";case Block$1.FlexContainer.Align.ALIGN_UNDEFINED:case void 0:case null:return"stretch";default:assertNever(n)}},getJustifyContent=n=>{switch(n){case Block$1.FlexContainer.Justify.JUSTIFY_START:return"start";case Block$1.FlexContainer.Justify.JUSTIFY_CENTER:return"center";case Block$1.FlexContainer.Justify.JUSTIFY_END:return"end";case Block$1.FlexContainer.Justify.SPACE_BETWEEN:return"space-between";case Block$1.FlexContainer.Justify.JUSTIFY_UNDEFINED:case void 0:case null:return"start";default:assertNever(n)}},StyledFlexContainerBlock=styled("div",{target:"e12zf7d53"})(({theme:n,direction:i,gap:e,flex:t,$wrap:o,height:d,border:p,align:h,justify:y,overflow:$})=>{let E;return e!==void 0&&(E=translateGapWidth(e,n)),{display:"flex",gap:E,width:"100%",maxWidth:"100%",height:d??"auto",minWidth:"1rem",flexDirection:i,flex:t,alignItems:getAlignItems(h),justifyContent:getJustifyContent(y),flexWrap:o?"wrap":"nowrap",...p&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},overflow:$}}),StyledLayoutWrapper=styled("div",{target:"e12zf7d54"})(({width:n,height:i,flex:e})=>({display:"flex",flexDirection:"column",width:n,maxWidth:"100%",minWidth:"1rem",height:i,flex:e})),LARGE_STRETCH_BEHAVIOR$1=["graphvizChart","arrowVegaLiteChart","deckGlJsonChart","plotlyChart","docString","arrowDataFrame","json","audioInput","fileUploader","cameraInput","audio","video","code","buttonGroup","iframe"],MEDIUM_STRETCH_BEHAVIOR$1=["dateInput","radio","slider","textArea","progress","multiselect","selectbox","timeInput","numberInput","textInput"],WIDTH_STRETCH_OVERRIDE=["componentInstance","skeleton"],VISIBLE_OVERFLOW_OVERRIDE=["iframe","arrowDataFrame","deckGlJsonChart","arrowVegaLiteChart","graphvizChart"],StyledElementContainerLayoutWrapper=({node:n,...i})=>{const{isInHorizontalLayout:e,isInRoot:t}=useRequiredContext(FlexContext);let o;LARGE_STRETCH_BEHAVIOR$1.includes(n.element.type??"")?o="14rem":MEDIUM_STRETCH_BEHAVIOR$1.includes(n.element.type??"")&&(o="8rem");const d=reactExports.useMemo(()=>{const h={};if(WIDTH_STRETCH_OVERRIDE.includes(n.element.type??"")&&(h.width="100%"),VISIBLE_OVERFLOW_OVERRIDE.includes(n.element.type??"")&&(h.overflow="visible"),n.element.type==="textArea")return n.element.heightConfig?.useStretch?{height:"100%",flex:"1 1 8rem"}:e?{height:"auto"}:{height:"auto",flex:""};if(n.element.type==="arrowVegaLiteChart")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),e&&!n.element.widthConfig&&(h.flex="1 1 14rem"),h;if(n.element.type==="arrowDataFrame")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),h;if(n.element.type==="imgs"){const y=!n.element.widthConfig||n.element.widthConfig.useStretch;h.width=y?"100%":"auto"}return h},[n.element.type,n.element.heightConfig?.useStretch,e,t,n.element.widthConfig]);let p=useLayoutStyles({element:n.element,subElement:n.element?.type&&n.element[n.element.type]||void 0,styleOverrides:d,minStretchBehavior:o});return n.element.type==="space"&&(e?p={...p,height:"auto"}:p={...p,width:"auto"}),jsx$1(StyledElementContainer,{...i,...p})},ArrowTable=reactExports.lazy(()=>__vitePreload(()=>import("./index.B3zULhHv.js"),__vite__mapDeps([7,8,9,10,11]),import.meta.url)),ArrowVegaLiteChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.C1uZrWog.js"),__vite__mapDeps([12,13,14,15,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url)),Audio=reactExports.lazy(()=>__vitePreload(()=>import("./index.BzdcdLDK.js"),[],import.meta.url)),Balloons=reactExports.lazy(()=>__vitePreload(()=>import("./index.DgqmsDCJ.js"),__vite__mapDeps([34,35]),import.meta.url)),DeckGlJsonChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.D-9VyyiA.js"),__vite__mapDeps([36,20,13,14,17,37,16,30,31,38]),import.meta.url)),GraphVizChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.fUsWkW8E.js"),__vite__mapDeps([39,32,31,13,14]),import.meta.url)),Html=reactExports.lazy(()=>__vitePreload(()=>import("./index.CcBYyLfq.js"),[],import.meta.url)),IFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.CzwJzgQs.js"),__vite__mapDeps([40,41]),import.meta.url)),ImageList=reactExports.lazy(()=>__vitePreload(()=>import("./index.CQ713nQM.js"),__vite__mapDeps([42,13,14]),import.meta.url)),Json=reactExports.lazy(()=>__vitePreload(()=>import("./index.BwTkGOAy.js"),__vite__mapDeps([43,17,18]),import.meta.url)),LinkButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.XJY9qZ6a.js"),__vite__mapDeps([44,45]),import.meta.url)),Metric=reactExports.lazy(()=>__vitePreload(()=>import("./index.iUHLeAvv.js"),__vite__mapDeps([46,29,30,31,32,47,21,10,22]),import.meta.url)),PageLink=reactExports.lazy(()=>__vitePreload(()=>import("./index.CCLteRW6.js"),__vite__mapDeps([48,45]),import.meta.url)),PlotlyChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.CAbQaUvi.js"),__vite__mapDeps([49,13,16]),import.meta.url)),Progress=reactExports.lazy(()=>__vitePreload(()=>import("./index.DjgdCvlK.js"),__vite__mapDeps([50,51]),import.meta.url)),Snow=reactExports.lazy(()=>__vitePreload(()=>import("./index.C5-TpWis.js"),__vite__mapDeps([52,35]),import.meta.url)),Spinner=reactExports.lazy(()=>__vitePreload(()=>import("./index.QXukCzoh.js"),[],import.meta.url)),StreamlitSyntaxHighlighter=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.Cys9Bt18.js"),__vite__mapDeps([6,2]),import.meta.url)),Toast=reactExports.lazy(()=>__vitePreload(()=>import("./index.BvHsyiyy.js"),[],import.meta.url)),Video=reactExports.lazy(()=>__vitePreload(()=>import("./index.BVTW_o-a.js"),[],import.meta.url)),AudioInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DO55kRo5.js"),__vite__mapDeps([53,54,14,16,25,55,26]),import.meta.url)),ArrowDataFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bnwh8oZr.js").then(n=>n.c),__vite__mapDeps([15,13,14,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)),Button=reactExports.lazy(()=>__vitePreload(()=>import("./index.Ba8L-ulI.js"),__vite__mapDeps([56,45]),import.meta.url)),ButtonGroup=reactExports.lazy(()=>__vitePreload(()=>import("./index.BrZtYm2A.js"),__vite__mapDeps([57,47,37,16]),import.meta.url)),ComponentInstance=reactExports.lazy(()=>__vitePreload(()=>import("./index.h2N-W51I.js"),__vite__mapDeps([58,59,55,41]),import.meta.url).then(n=>({default:n.ComponentInstance}))),CameraInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CAbafj7s.js"),__vite__mapDeps([60,61,16,51,55]),import.meta.url)),ChatInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CjBDVb1a.js"),__vite__mapDeps([62,63,61,54,64,65,66,67,33,68]),import.meta.url)),Checkbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.DqhZqWYB.js"),__vite__mapDeps([69,47,37,16,24]),import.meta.url)),ColorPicker=reactExports.lazy(()=>__vitePreload(()=>import("./index.D7L9gHlE.js"),__vite__mapDeps([70,37,16,19,47]),import.meta.url)),DateInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DHrByikW.js"),__vite__mapDeps([71,9,37,16,72,73,74,66,68]),import.meta.url)),DateTimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.C6dhwBSe.js"),__vite__mapDeps([75,9,72,73,74,66,37,16,76,68]),import.meta.url)),DownloadButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.C1d2QjTR.js"),__vite__mapDeps([77,45,25]),import.meta.url)),Feedback=reactExports.lazy(()=>__vitePreload(()=>import("./index.BsrhCS7f.js"),__vite__mapDeps([78,37,16]),import.meta.url)),FileUploader=reactExports.lazy(()=>__vitePreload(()=>import("./index.BwvxzVOo.js"),__vite__mapDeps([79,16,63,61,51]),import.meta.url)),FormSubmitContent=reactExports.lazy(()=>__vitePreload(()=>import("./index.D_cvtSlg.js"),__vite__mapDeps([80,45,16]),import.meta.url).then(n=>({default:n.FormSubmitContent}))),Multiselect=reactExports.lazy(()=>__vitePreload(()=>import("./index.aZRhdEuX.js"),__vite__mapDeps([81,37,16,27,11]),import.meta.url)),NumberInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DN_oudQl.js"),__vite__mapDeps([82,64,37,16,22,83,74,66]),import.meta.url)),Radio=reactExports.lazy(()=>__vitePreload(()=>import("./index.BV_YgIHe.js"),__vite__mapDeps([84,47,37,16]),import.meta.url)),Selectbox$1=reactExports.lazy(()=>__vitePreload(()=>import("./index.BG4RxMOI.js"),__vite__mapDeps([85,37,16]),import.meta.url)),Slider=reactExports.lazy(()=>__vitePreload(()=>import("./index.B_LfkwqU.js"),__vite__mapDeps([86,9,59,37,16,23,21,10,22]),import.meta.url)),TextArea=reactExports.lazy(()=>__vitePreload(()=>import("./index.Dtbj_oyb.js"),__vite__mapDeps([87,64,37,16,88,67,65,66,83]),import.meta.url)),TextInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.kBgXO7Vv.js"),__vite__mapDeps([89,64,37,16,88,67,83,74,66]),import.meta.url)),TimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.B60AZFRh.js"),__vite__mapDeps([90,37,16,76,73]),import.meta.url)),BidiComponent=reactExports.lazy(()=>__vitePreload(()=>import("./index.DEKnCsY-.js"),[],import.meta.url));function hideIfStale(n,i){return n?jsx$1(Fragment,{}):i}const RawElementNodeRenderer=n=>{const{node:i}=n;if(!i)throw new Error("ElementNode not found.");const e={disableFullscreenMode:n.disableFullscreenMode,widthConfig:i.element.widthConfig,heightConfig:i.element.heightConfig},t={...e,widgetMgr:n.widgetMgr,disabled:n.widgetsDisabled,fragmentId:i.fragmentId,componentRegistry:n.componentRegistry};switch(i.element.type){case"alert":{const o=i.element.alert;return jsx$1(AlertElement$1,{icon:o.icon,body:o.body,kind:getAlertElementKind(o.format),...e})}case"arrowTable":{const o=i.element.arrowTable;return jsx$1(ArrowTable,{element:o,data:i.quiverElement,...e})}case"audio":return jsx$1(Audio,{element:i.element.audio,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"balloons":return hideIfStale(n.isStale,jsx$1(Balloons,{scriptRunId:i.scriptRunId}));case"code":{const o=i.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:o.language,showLineNumbers:o.showLineNumbers,wrapLines:o.wrapLines,children:o.codeText})}case"deckGlJsonChart":{const o=i.element.deckGlJsonChart;return jsx$1(DeckGlJsonChart,{element:o,...t},o.id||void 0)}case"docString":return jsx$1(DocString$1,{element:i.element.docString,...e});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement$1,{element:i.element.exception,...e});case"graphvizChart":return jsx$1(GraphVizChart,{element:i.element.graphvizChart,...e});case"heading":return jsx$1(Heading,{element:i.element.heading,...e});case"iframe":return jsx$1(IFrame,{element:i.element.iframe,...e});case"imgs":return jsx$1(ImageList,{element:i.element.imgs,endpoints:n.endpoints,...e});case"json":return jsx$1(Json,{element:i.element.json,...e});case"markdown":return jsx$1(Markdown$1,{element:i.element.markdown,...e});case"metric":return jsx$1(Metric,{element:i.element.metric,...e});case"html":return jsx$1(Html,{element:i.element.html,...e});case"pageLink":{const o=i.element.pageLink,d=t.disabled||o.disabled;return jsx$1(PageLink,{element:o,disabled:d,...e})}case"progress":return jsx$1(Progress,{element:i.element.progress,...e});case"skeleton":return jsx$1(Skeleton,{element:i.element.skeleton});case"snow":return hideIfStale(n.isStale,jsx$1(Snow,{scriptRunId:i.scriptRunId}));case"space":return jsx$1(StyledSpace,{className:"stSpace","data-testid":"stSpace"});case"spinner":return jsx$1(Spinner,{element:i.element.spinner,...e});case"text":return jsx$1(TextElement$1,{element:i.element.text,...e});case"video":return jsx$1(Video,{element:i.element.video,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"toast":{const o=i.element.toast;return jsx$1(Toast,{element:o,...e},i.scriptRunId)}case"arrowDataFrame":{const o=i.element.arrowDataFrame;return t.disabled=t.disabled||o.disabled,jsx$1(ArrowDataFrame,{element:o,data:i.quiverElement,...t},o.id||void 0)}case"arrowVegaLiteChart":{const o=i.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:o,...t},o.id||void 0)}case"audioInput":{const o=i.element.audioInput;return t.disabled=t.disabled||o.disabled,jsx$1(AudioInput,{uploadClient:n.uploadClient,element:o,...t},o.id)}case"button":{const o=i.element.button;return t.disabled=t.disabled||o.disabled,o.isFormSubmitter?jsx$1(FormSubmitContent,{element:o,...t}):jsx$1(Button,{element:o,...t})}case"buttonGroup":{const o=i.element.buttonGroup;return t.disabled=t.disabled||o.disabled,jsx$1(ButtonGroup,{element:o,...t},o.id)}case"downloadButton":{const o=i.element.downloadButton;return t.disabled=t.disabled||o.disabled,jsx$1(DownloadButton,{endpoints:n.endpoints,element:o,...t},o.id)}case"feedback":{const o=i.element.feedback;return t.disabled=t.disabled||o.disabled,jsx$1(Feedback,{element:o,...t},o.id)}case"cameraInput":{const o=i.element.cameraInput;return t.disabled=t.disabled||o.disabled,jsx$1(CameraInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"chatInput":{const o=i.element.chatInput;return t.disabled=t.disabled||o.disabled,jsx$1(ChatInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"checkbox":{const o=i.element.checkbox;return t.disabled=t.disabled||o.disabled,jsx$1(Checkbox,{element:o,...t},o.id)}case"colorPicker":{const o=i.element.colorPicker;return t.disabled=t.disabled||o.disabled,jsx$1(ColorPicker,{element:o,...t},o.id)}case"componentInstance":return jsx$1(ComponentInstance,{element:i.element.componentInstance,...t});case"dateInput":{const o=i.element.dateInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateInput,{element:o,...t},o.id)}case"fileUploader":{const o=i.element.fileUploader;return t.disabled=t.disabled||o.disabled,jsx$1(FileUploader,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"linkButton":{const o=i.element.linkButton;return jsx$1(LinkButton,{element:o,...e})}case"multiselect":{const o=i.element.multiselect;return t.disabled=t.disabled||o.disabled,jsx$1(Multiselect,{element:o,...t},o.id)}case"numberInput":{const o=i.element.numberInput;return t.disabled=t.disabled||o.disabled,jsx$1(NumberInput,{element:o,...t},o.id)}case"plotlyChart":{const o=i.element.plotlyChart;return jsx$1(PlotlyChart,{element:o,...t},o.id)}case"radio":{const o=i.element.radio;return t.disabled=t.disabled||o.disabled,jsx$1(Radio,{element:o,...t},o.id)}case"selectbox":{const o=i.element.selectbox;return t.disabled=t.disabled||o.disabled,jsx$1(Selectbox$1,{element:o,...t},o.id)}case"slider":{const o=i.element.slider;return t.disabled=t.disabled||o.disabled,jsx$1(Slider,{element:o,...t},o.id)}case"textArea":{const o=i.element.textArea;return t.disabled=t.disabled||o.disabled,jsx$1(TextArea,{element:o,outerElement:i.element,...t},o.id)}case"textInput":{const o=i.element.textInput;return t.disabled=t.disabled||o.disabled,jsx$1(TextInput,{element:o,...t},o.id)}case"dateTimeInput":{const o=i.element.dateTimeInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateTimeInput,{element:o,...t},o.id)}case"timeInput":{const o=i.element.timeInput;return t.disabled=t.disabled||o.disabled,jsx$1(TimeInput,{element:o,...t},o.id)}case"bidiComponent":{const o=i.element.bidiComponent;return jsx$1(BidiComponent,{element:o,...t},o.id)}default:throw new Error(`Unrecognized Element type ${i.element.type}`)}},ElementNodeRenderer=n=>{const{isFullScreen:i}=reactExports.useContext(ViewStateContext),{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext),{node:d}=n,p=d.element.type||"",h=shouldComponentBeEnabled(p,e),y=isComponentStale(h,d,e,t,o),$=getElementId(d.element),E=getKeyFromId($);return jsx$1(Maybe,{enable:h,children:jsx$1(StyledElementContainerLayoutWrapper,{className:classNames("stElementContainer","element-container",convertKeyToClassName(E)),"data-testid":"stElementContainer","data-stale":y,isStale:y&&!i,elementType:p,node:d,children:jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...n,isStale:y})})})})})};class RenderNodeVisitor{constructor(i,e){this.props=i,this.elementKeyOverride=e,this.elementKeySet=new Set,this.reactElements=[],this.index=0,this.transientElementCount=0}getCurrentKey(i){return this.elementKeyOverride||i||this.index.toString()}conformToArray(i){return i?Array.isArray(i)?i:[i]:[]}visitBlockNode(i){const e={...this.props,node:i},t=this.getCurrentKey();this.index+=1;const o=jsx$1(BlockNodeRenderer,{...e},t);return this.reactElements.push(o),o}visitTransientNode(i){const e=[];i.transientNodes.forEach(o=>{const d=this.getCurrentKey(`transient-${this.transientElementCount}`);this.transientElementCount+=1;const p=o.accept(new RenderNodeVisitor(this.props,d));e.push(...this.conformToArray(p))}),this.reactElements.push(...e);const t=i.anchor?.accept(this);return e.push(...this.conformToArray(t)),e}visitElementNode(i){const e={...this.props,node:i},t=this.getCurrentKey(getElementId(i.element));if(this.index+=1,this.elementKeySet.has(t))return null;this.elementKeySet.add(t);const o=jsx$1(ElementNodeRenderer,{...e},t);return this.reactElements.push(o),o}static collectReactElements(i){if(!i.node.children)return[];const e=new RenderNodeVisitor(i);return i.node.children.forEach(t=>t.accept(e)),e.reactElements}}const ChildRenderer=n=>(assignDividerColor(n.node,useEmotionTheme()),jsx$1(Fragment,{children:RenderNodeVisitor.collectReactElements(n)})),getLayoutSubElement=n=>{const i=n.type,e=i?n[i]:void 0;if(!e||typeof e!="object")return;const t=e,o={useContainerWidth:t.useContainerWidth,height:t.height,width:t.width,widthConfig:t.widthConfig};if(!(o.useContainerWidth===void 0&&o.height===void 0&&o.width===void 0&&o.widthConfig===void 0))return o},ContainerContentsWrapper=n=>{const i=reactExports.useContext(FlexContext),e={direction:Direction.VERTICAL,flex:1,gap:streamlit.GapSize.SMALL,height:n.height,border:!1},t=getKeyFromId(n.node.deltaBlock.id);return jsx$1(FlexContextProvider,{direction:Direction.VERTICAL,isRoot:n.isRoot,parentContext:i,children:jsx$1(StyledFlexContainerBlock,{...e,className:classNames(getClassnamePrefix(Direction.VERTICAL),convertKeyToClassName(t)),"data-testid":getClassnamePrefix(Direction.VERTICAL),children:jsx$1(ChildRenderer,{...n})})})},FlexBoxContainer=n=>{const i=getDirectionOfBlock(n.node.deltaBlock),e=reactExports.useContext(FlexContext),t=shouldActivateScrollToBottom(n.node),o=useScrollToBottom(t),d=useLayoutStyles({element:n.node.deltaBlock,subElement:getLayoutSubElement(n.node.deltaBlock)}),p={gap:n.node.deltaBlock.flexContainer?.gapConfig?.gapSize??streamlit.GapSize.SMALL,direction:i,$wrap:n.node.deltaBlock.flexContainer?.wrap??!1,overflow:d.overflow,border:getBorderBackwardsCompatible(n.node.deltaBlock),height:d.height,flex:"1",align:n.node.deltaBlock.flexContainer?.align,justify:n.node.deltaBlock.flexContainer?.justify},h=getKeyFromId(n.node.deltaBlock.id),y=n.node.deltaBlock.widthConfig?.pixelWidth??void 0,$=n.node.deltaBlock.widthConfig?.useContent??!1,E=(n.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(n.node.deltaBlock.widthConfig?.remWidth??0)>0;return jsx$1(FlexContextProvider,{direction:i,parentWidth:y,hasContentWidth:$,hasFixedWidth:E,parentContext:e,children:jsx$1(StyledFlexContainerBlock,{...p,className:classNames(getClassnamePrefix(i),convertKeyToClassName(h)),"data-testid":getClassnamePrefix(i),ref:o,"data-test-scroll-behavior":t?"scroll-to-bottom":"normal",children:jsx$1(ChildRenderer,{...n})})})},LARGE_STRETCH_BEHAVIOR=["tabContainer"],MEDIUM_STRETCH_BEHAVIOR=["chatInput"],BlockNodeRenderer=n=>{const{node:i}=n,{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext);let d;LARGE_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="14rem":MEDIUM_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="8rem":i.deltaBlock.type==="chatMessage"?i.isEmpty&&(d="8rem"):(i.deltaBlock.type==="flexContainer"||i.deltaBlock.column||i.deltaBlock.expandable)&&(i.isEmpty||(d="8rem"));const p=useLayoutStyles({element:i.deltaBlock,subElement:getLayoutSubElement(i.deltaBlock),minStretchBehavior:d});if(i.isEmpty&&!i.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const h=shouldComponentBeEnabled("",e),y=isComponentStale(h,i,e,t,o),$={...n,node:i},E=n.disableFullscreenMode||notNullOrUndefined(i.deltaBlock.dialog)||notNullOrUndefined(i.deltaBlock.popover);let M;const H=jsx$1(ContainerContentsWrapper,{...$,disableFullscreenMode:E,height:"100%"});if(checkFlexContainerBackwardsCompatibile(i.deltaBlock)&&(M=jsx$1(FlexBoxContainer,{...$})),i.deltaBlock.dialog)return jsx$1(Dialog$1,{element:i.deltaBlock.dialog,deltaMsgReceivedAt:i.deltaMsgReceivedAt,widgetMgr:n.widgetMgr,fragmentId:i.fragmentId,children:H});if(i.deltaBlock.expandable&&(M=jsx$1(Expander$1,{isStale:y,element:i.deltaBlock.expandable,children:H})),i.deltaBlock.popover&&(M=jsx$1(Popover$1,{empty:i.isEmpty,element:i.deltaBlock.popover,stretchWidth:shouldWidthStretch(i.deltaBlock.widthConfig),children:H})),i.deltaBlock.type==="form"){const{formId:Z,clearOnSubmit:be,enterToSubmit:ye,border:we}=i.deltaBlock.form;M=jsx$1(Form$1,{formId:Z,clearOnSubmit:be,enterToSubmit:ye,widgetMgr:n.widgetMgr,border:we,overflow:p.overflow,children:H})}if(i.deltaBlock.chatMessage&&(M=jsx$1(ChatMessage$1,{element:i.deltaBlock.chatMessage,endpoints:n.endpoints,children:H})),i.deltaBlock.column)return jsx$1(StyledColumn,{weight:i.deltaBlock.column.weight??0,gap:getColumnGapSize(i.deltaBlock.column),verticalAlignment:i.deltaBlock.column.verticalAlignment??void 0,showBorder:i.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:H});if(i.deltaBlock.tabContainer){const be={...$,isStale:y,renderTabContent:ye=>jsx$1(ContainerContentsWrapper,{...ye,height:"auto"}),width:p.width,flex:p.flex};return jsx$1(Tabs$1,{...be})}return M?jsx$1(StyledLayoutWrapper,{"data-testid":"stLayoutWrapper",...p,children:M}):H},DownloadContext=reactExports.createContext({requestDeferredFile:void 0});DownloadContext.displayName="DownloadContext";const NavigationContext=reactExports.createContext({pageLinkBaseUrl:"",currentPageScriptHash:"",onPageChange:()=>{},navSections:[],appPages:[]});NavigationContext.displayName="NavigationContext";const StyledDataFrameOverlay=styled("div",{target:"eaoz1g71"})(({theme:n})=>({position:"fixed",top:0,left:0,zIndex:n.zIndices.tablePortal,lineHeight:"100%",...!hasLightBackgroundColor(n)&&{"& input[type='date'], & input[type='time'], & input[type='datetime-local']":{"&::-webkit-calendar-picker-indicator":{filter:"brightness(0) invert(1)",opacity:1}}}})),StyledErrorMessage=styled("small",{target:"eaoz1g72"})(({theme:n})=>({color:n.colors.redTextColor,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,display:"block"})),PortalContext=reactExports.createContext(null);PortalContext.displayName="PortalContext";const PortalProvider=({children:n})=>{const i=reactExports.useRef(null),e=reactExports.useCallback(()=>i.current,[]);return jsxs(PortalContext.Provider,{value:e,children:[n,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:i})]})},SidebarConfigContext=reactExports.createContext({initialSidebarState:PageConfig.SidebarState.AUTO,appLogo:null,sidebarChevronDownshift:0,expandSidebarNav:!1,hideSidebarNav:!1});SidebarConfigContext.displayName="SidebarConfigContext";const ThemeContext=reactExports.createContext({activeTheme:getDefaultTheme(),setTheme:()=>{},availableThemes:[]});ThemeContext.displayName="ThemeContext";function ThemeProvider({theme:n,baseuiTheme:i,children:e}){return jsx$1(ThemeProvider$1,{theme:i||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:n,children:e})})}function StreamlitErrorCodeBlock({children:n}){const i=typeof n=="string"&&n.trim().length>0;return jsxs(StyledCodeBlock,{className:"stErrorCodeBlock","data-testid":"stErrorCodeBlock",children:[jsx$1(StyledPre,{wrapLines:!1,children:jsx$1(StyledCode,{wrapLines:!1,children:n})}),i&&jsx$1(StyledCopyButtonContainer,{children:jsx$1(StyledCopyButton,{text:n,"data-testid":"stCodeCopyButton"})})]})}const StreamlitErrorCodeBlock$1=reactExports.memo(StreamlitErrorCodeBlock);function iconToUrl(n){const i=/^:(.+)\/(.+):$/,e=n.match(i);return e===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${e[2]}/default/24px.svg`}function handleFavicon(n,i,e){const t=p=>{overwriteFavicon(p),i({type:"SET_PAGE_FAVICON",favicon:p})};if(n.startsWith(":material")){t(iconToUrl(n));return}const o="emoji:";if(n.startsWith(o)){const p=n.substring(o.length),h=createEmojiDataUrl(p);t(h);return}/^:[a-zA-Z0-9_+-]+:$/.test(n)?convertShortcodeToEmoji(n).then(p=>{t(p?createEmojiDataUrl(p):e.buildMediaURL(n))}).catch(()=>{t(e.buildMediaURL(n))}):t(e.buildMediaURL(n))}function createEmojiDataUrl(n){return`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>${n}</text></svg>`}function overwriteFavicon(n){const i=document.querySelector("link[rel='shortcut icon']");i&&(i.href=n)}async function convertShortcodeToEmoji(n){const i=await __vitePreload(()=>import("./index.D2R3Co5f.js"),[],import.meta.url),e=n.replace(/-/g,"_"),t=i.get(e);return t&&t!==e&&i.has(t)?t:""}const StyledWidgetLabel=styled("label",{target:"e1kt9bl70"})(({disabled:n,labelVisibility:i,theme:e})=>({fontSize:e.fontSizes.sm,color:n?e.colors.fadedText40:e.colors.bodyText,display:i===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:i===LabelVisibilityOptions.Hidden?"hidden":"visible",marginBottom:e.spacing.twoXS,height:"auto",minHeight:e.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),StyledWidgetLabelHelp=styled("div",{target:"e1kt9bl71"})({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}),StyledWidgetInstructions=styled("div",{target:"e1kt9bl72"})(({theme:n})=>({fontSize:n.fontSizes.twoSm,color:n.colors.fadedText60,margin:n.spacing.none,textAlign:"right",position:"absolute",bottom:n.spacing.threeXS,right:`calc(${n.fontSizes.mdLg} * 0.5)`})),StyledWidgetLabelHelpInline=styled("span",{target:"e1kt9bl73"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function WidgetLabel({label:n,children:i,disabled:e,labelVisibility:t,htmlFor:o}){return isNullOrUndefined$1(n)?jsx$1(Fragment,{}):jsxs(StyledWidgetLabel,{"data-testid":"stWidgetLabel",disabled:e,labelVisibility:t,htmlFor:o,children:[jsx$1("span",{"aria-hidden":"true",children:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0})}),i]})}function WidgetLabelHelpIcon({content:n,label:i,ariaLabel:e,placement:t=Placement.TOP_RIGHT,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h}){return jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:n,placement:t,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h,ariaLabel:e??getHelpTooltipAriaLabel(i)})})}const arrayComparator=(n,i)=>n.length!==i.length?!1:n.every((e,t)=>Object.is(e,i[t])),useExecuteWhenChanged=(n,i,e=arrayComparator)=>{const[t,o]=reactExports.useState(i);e(t,i)||(o(i),n())};var _excluded$i=["title","size","color","overrides"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$g.apply(this,arguments)}function _objectWithoutProperties$f(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$e(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$e(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$d(n,i){return _arrayWithHoles$d(n)||_iterableToArrayLimit$d(n,i)||_unsupportedIterableToArray$d(n,i)||_nonIterableRest$d()}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
119
|
+
`),allowHTML:!1})]}),h&&jsx$1(StyledHeaderDivider,{"data-testid":"stHeadingDivider",rainbow:h.includes("linear"),color:h})]})}const StyledCheckbox$1=styled("div",{target:"eczd22r0"})(({theme:n})=>({display:"flex",alignItems:"center",minHeight:n.sizes.smallElementHeight})),StyledContent=styled("div",{target:"eczd22r1"})(({visibility:n})=>({display:n===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:n===LabelVisibilityOptions.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"}));function translateGapWidth(n,i){switch(n){case streamlit.GapSize.XXSMALL:return i.spacing.twoXS;case streamlit.GapSize.XSMALL:return i.spacing.sm;case streamlit.GapSize.SMALL:return i.spacing.lg;case streamlit.GapSize.MEDIUM:return i.spacing.threeXL;case streamlit.GapSize.LARGE:return i.spacing.fourXL;case streamlit.GapSize.XLARGE:return i.spacing.fiveXL;case streamlit.GapSize.XXLARGE:return i.spacing.sixXL;case streamlit.GapSize.NONE:return i.spacing.none;default:return i.spacing.lg}}const StyledSpace=styled("div",{target:"e12zf7d50"})({width:"100%",height:"100%"}),GLOBAL_ELEMENTS=["balloons","snow"],StyledElementContainer=styled("div",{target:"e12zf7d51"})(({theme:n,isStale:i,width:e,height:t,elementType:o,overflow:d,flex:p,minWidth:h,textAlign:y})=>({width:e,height:t,textAlign:y,maxWidth:"100%",minWidth:e==="0px"?0:h??"1rem",position:"relative",overflow:d,flex:p,"@media print":{overflow:"visible"},":has(> .stCacheSpinner)":{height:n.spacing.none,overflow:"visible",visibility:"visible",marginBottom:`-${n.spacing.lg}`,zIndex:n.zIndices.cacheSpinner},":has(> .stPageLink)":{marginTop:`-${n.spacing.xs}`,marginBottom:`-${n.spacing.xs}`},...i&&o!=="skeleton"&&STALE_STYLES,...o==="empty"?{display:"none"}:{},...o==="space"?{minWidth:0,minHeight:0}:{},...GLOBAL_ELEMENTS.includes(o)?{marginBottom:`-${n.spacing.lg}`}:{}})),StyledColumn=styled("div",{target:"e12zf7d52"})(({theme:n,weight:i,gap:e,showBorder:t,verticalAlignment:o})=>{const{VerticalAlignment:d}=Block$1.Column,p=i*100,h=translateGapWidth(e,n),y=h===n.spacing.none?`${p}%`:`calc(${p}% - ${h})`;return{width:y,flex:`1 1 ${y}`,[`@media (max-width: ${n.breakpoints.columns})`]:{minWidth:`calc(100% - ${n.spacing.twoXL})`},...o===d.BOTTOM&&{marginTop:"auto",[`& ${StyledElementContainer}:last-of-type > ${StyledCheckbox$1}`]:{marginBottom:n.spacing.sm}},...o===d.TOP&&{[`& ${StyledElementContainer}:first-of-type > ${StyledCheckbox$1}`]:{marginTop:n.spacing.sm}},...o===d.CENTER&&{marginTop:"auto",marginBottom:"auto"},...t&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`}}}),getAlignItems=n=>{switch(n){case Block$1.FlexContainer.Align.ALIGN_START:return"start";case Block$1.FlexContainer.Align.ALIGN_CENTER:return"center";case Block$1.FlexContainer.Align.ALIGN_END:return"end";case Block$1.FlexContainer.Align.STRETCH:return"stretch";case Block$1.FlexContainer.Align.ALIGN_UNDEFINED:case void 0:case null:return"stretch";default:assertNever(n)}},getJustifyContent=n=>{switch(n){case Block$1.FlexContainer.Justify.JUSTIFY_START:return"start";case Block$1.FlexContainer.Justify.JUSTIFY_CENTER:return"center";case Block$1.FlexContainer.Justify.JUSTIFY_END:return"end";case Block$1.FlexContainer.Justify.SPACE_BETWEEN:return"space-between";case Block$1.FlexContainer.Justify.JUSTIFY_UNDEFINED:case void 0:case null:return"start";default:assertNever(n)}},StyledFlexContainerBlock=styled("div",{target:"e12zf7d53"})(({theme:n,direction:i,gap:e,flex:t,$wrap:o,height:d,border:p,align:h,justify:y,overflow:$})=>{let E;return e!==void 0&&(E=translateGapWidth(e,n)),{display:"flex",gap:E,width:"100%",maxWidth:"100%",height:d??"auto",minWidth:"1rem",flexDirection:i,flex:t,alignItems:getAlignItems(h),justifyContent:getJustifyContent(y),flexWrap:o?"wrap":"nowrap",...p&&{border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,borderRadius:n.radii.default,padding:`calc(${n.spacing.lg} - ${n.sizes.borderWidth})`},overflow:$}}),StyledLayoutWrapper=styled("div",{target:"e12zf7d54"})(({width:n,height:i,flex:e})=>({display:"flex",flexDirection:"column",width:n,maxWidth:"100%",minWidth:"1rem",height:i,flex:e})),LARGE_STRETCH_BEHAVIOR$1=["graphvizChart","arrowVegaLiteChart","deckGlJsonChart","plotlyChart","docString","dataframe","json","audioInput","fileUploader","cameraInput","audio","video","code","buttonGroup","iframe"],MEDIUM_STRETCH_BEHAVIOR$1=["dateInput","radio","slider","textArea","progress","multiselect","selectbox","timeInput","numberInput","textInput"],WIDTH_STRETCH_OVERRIDE=["componentInstance","skeleton"],VISIBLE_OVERFLOW_OVERRIDE=["iframe","dataframe","deckGlJsonChart","arrowVegaLiteChart","graphvizChart"],StyledElementContainerLayoutWrapper=({node:n,...i})=>{const{isInHorizontalLayout:e,isInRoot:t}=useRequiredContext(FlexContext);let o;LARGE_STRETCH_BEHAVIOR$1.includes(n.element.type??"")?o="14rem":MEDIUM_STRETCH_BEHAVIOR$1.includes(n.element.type??"")&&(o="8rem");const d=reactExports.useMemo(()=>{const h={};if(WIDTH_STRETCH_OVERRIDE.includes(n.element.type??"")&&(h.width="100%"),VISIBLE_OVERFLOW_OVERRIDE.includes(n.element.type??"")&&(h.overflow="visible"),n.element.type==="textArea")return n.element.heightConfig?.useStretch?{height:"100%",flex:"1 1 8rem"}:e?{height:"auto"}:{height:"auto",flex:""};if(n.element.type==="arrowVegaLiteChart")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),e&&!n.element.widthConfig&&(h.flex="1 1 14rem"),h;if(n.element.type==="dataframe")return n.element.widthConfig?.useContent&&t&&(h.width="100%"),h;if(n.element.type==="imgs"){const y=!n.element.widthConfig||n.element.widthConfig.useStretch;h.width=y?"100%":"auto"}return h},[n.element.type,n.element.heightConfig?.useStretch,e,t,n.element.widthConfig]);let p=useLayoutStyles({element:n.element,subElement:n.element?.type&&n.element[n.element.type]||void 0,styleOverrides:d,minStretchBehavior:o});return n.element.type==="space"&&(e?p={...p,height:"auto"}:p={...p,width:"auto"}),jsx$1(StyledElementContainer,{...i,...p})},ArrowTable=reactExports.lazy(()=>__vitePreload(()=>import("./index.Crlx_wdE.js"),__vite__mapDeps([7,8,9,10,11]),import.meta.url)),ArrowVegaLiteChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.KGr28TP8.js"),__vite__mapDeps([12,13,14,15,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url)),Audio=reactExports.lazy(()=>__vitePreload(()=>import("./index.BfHA_i34.js"),[],import.meta.url)),Balloons=reactExports.lazy(()=>__vitePreload(()=>import("./index.DMKTAe4F.js"),__vite__mapDeps([34,35]),import.meta.url)),DeckGlJsonChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.hDg7x0Tp.js"),__vite__mapDeps([36,20,13,14,17,37,16,30,31,38]),import.meta.url)),GraphVizChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.XzcYOc9I.js"),__vite__mapDeps([39,32,31,13,14]),import.meta.url)),Html=reactExports.lazy(()=>__vitePreload(()=>import("./index.BriH7JVk.js"),[],import.meta.url)),IFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.BSgo_bkv.js"),__vite__mapDeps([40,41]),import.meta.url)),ImageList=reactExports.lazy(()=>__vitePreload(()=>import("./index.Z_u7ZS4h.js"),__vite__mapDeps([42,13,14]),import.meta.url)),Json=reactExports.lazy(()=>__vitePreload(()=>import("./index.CGZP_w9b.js"),__vite__mapDeps([43,17,18]),import.meta.url)),LinkButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.DiES30vM.js"),__vite__mapDeps([44,45]),import.meta.url)),Metric=reactExports.lazy(()=>__vitePreload(()=>import("./index.JxDTXE8N.js"),__vite__mapDeps([46,29,30,31,32,47,21,10,22]),import.meta.url)),PageLink=reactExports.lazy(()=>__vitePreload(()=>import("./index.BQ5MOzHu.js"),__vite__mapDeps([48,45]),import.meta.url)),PlotlyChart=reactExports.lazy(()=>__vitePreload(()=>import("./index.BMbQnwRD.js"),__vite__mapDeps([49,13,16]),import.meta.url)),Progress=reactExports.lazy(()=>__vitePreload(()=>import("./index.BDdmrM58.js"),__vite__mapDeps([50,51]),import.meta.url)),Snow=reactExports.lazy(()=>__vitePreload(()=>import("./index.J61yByUR.js"),__vite__mapDeps([52,35]),import.meta.url)),Spinner=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bj3M1xBC.js"),[],import.meta.url)),StreamlitSyntaxHighlighter=reactExports.lazy(()=>__vitePreload(()=>import("./StreamlitSyntaxHighlighter.c2qcx-xG.js"),__vite__mapDeps([6,2]),import.meta.url)),Toast=reactExports.lazy(()=>__vitePreload(()=>import("./index.Chl2kALe.js"),[],import.meta.url)),Video=reactExports.lazy(()=>__vitePreload(()=>import("./index.BYIxnU34.js"),[],import.meta.url)),AudioInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BwkeObMo.js"),__vite__mapDeps([53,54,14,16,25,55,26]),import.meta.url)),ArrowDataFrame=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bjrvlqx5.js").then(n=>n.c),__vite__mapDeps([15,13,14,16,9,8,10,11,17,18,19,20,21,22,23,24,25,26,27,28]),import.meta.url)),Button=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bpd7GPeH.js"),__vite__mapDeps([56,45]),import.meta.url)),ButtonGroup=reactExports.lazy(()=>__vitePreload(()=>import("./index.BoL6J1jK.js"),__vite__mapDeps([57,47,37,16]),import.meta.url)),ComponentInstance=reactExports.lazy(()=>__vitePreload(()=>import("./index.BnOSeM5K.js"),__vite__mapDeps([58,59,55,41]),import.meta.url).then(n=>({default:n.ComponentInstance}))),CameraInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BZVrJlnq.js"),__vite__mapDeps([60,61,16,51,55]),import.meta.url)),ChatInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.CGw52-0-.js"),__vite__mapDeps([62,63,61,54,64,65,66,67,33,68]),import.meta.url)),Checkbox=reactExports.lazy(()=>__vitePreload(()=>import("./index.BZL2hIBz.js"),__vite__mapDeps([69,47,37,16,24]),import.meta.url)),ColorPicker=reactExports.lazy(()=>__vitePreload(()=>import("./index.C7_wNJTH.js"),__vite__mapDeps([70,37,16,19,47]),import.meta.url)),DateInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DlJ4Y1xc.js"),__vite__mapDeps([71,9,37,16,72,73,74,66,68]),import.meta.url)),DateTimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.B6l4FdUv.js"),__vite__mapDeps([75,9,72,73,74,66,37,16,76,68]),import.meta.url)),DownloadButton=reactExports.lazy(()=>__vitePreload(()=>import("./index.C0o85qmd.js"),__vite__mapDeps([77,45,25]),import.meta.url)),Feedback=reactExports.lazy(()=>__vitePreload(()=>import("./index.DSRvF_8e.js"),__vite__mapDeps([78,37,16]),import.meta.url)),FileUploader=reactExports.lazy(()=>__vitePreload(()=>import("./index.BoORyxOa.js"),__vite__mapDeps([79,16,63,61,51]),import.meta.url)),FormSubmitContent=reactExports.lazy(()=>__vitePreload(()=>import("./index.CUvtJj0a.js"),__vite__mapDeps([80,45,16]),import.meta.url).then(n=>({default:n.FormSubmitContent}))),Multiselect=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bi25zaXA.js"),__vite__mapDeps([81,37,16,27,11]),import.meta.url)),NumberInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.DhB1m_xG.js"),__vite__mapDeps([82,64,37,16,22,83,74,66]),import.meta.url)),Radio=reactExports.lazy(()=>__vitePreload(()=>import("./index.B7H2q9vo.js"),__vite__mapDeps([84,47,37,16]),import.meta.url)),Selectbox$1=reactExports.lazy(()=>__vitePreload(()=>import("./index.BpeJX018.js"),__vite__mapDeps([85,37,16]),import.meta.url)),Slider=reactExports.lazy(()=>__vitePreload(()=>import("./index.D9A-8ebQ.js"),__vite__mapDeps([86,9,59,37,16,23,21,10,22]),import.meta.url)),TextArea=reactExports.lazy(()=>__vitePreload(()=>import("./index.Cfx1ZHWt.js"),__vite__mapDeps([87,64,37,16,88,67,65,66,83]),import.meta.url)),TextInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.Bgry-Ek_.js"),__vite__mapDeps([89,64,37,16,88,67,83,74,66]),import.meta.url)),TimeInput=reactExports.lazy(()=>__vitePreload(()=>import("./index.BU5M9DsN.js"),__vite__mapDeps([90,37,16,76,73]),import.meta.url)),BidiComponent=reactExports.lazy(()=>__vitePreload(()=>import("./index.DNrpqKVt.js"),[],import.meta.url));function hideIfStale(n,i){return n?jsx$1(Fragment,{}):i}const RawElementNodeRenderer=n=>{const{node:i}=n;if(!i)throw new Error("ElementNode not found.");const e={disableFullscreenMode:n.disableFullscreenMode,widthConfig:i.element.widthConfig,heightConfig:i.element.heightConfig},t={...e,widgetMgr:n.widgetMgr,disabled:n.widgetsDisabled,fragmentId:i.fragmentId,componentRegistry:n.componentRegistry};switch(i.element.type){case"alert":{const o=i.element.alert;return jsx$1(AlertElement$1,{icon:o.icon,body:o.body,kind:getAlertElementKind(o.format),...e})}case"table":{const o=i.element.table;return jsx$1(ArrowTable,{element:o,data:i.quiverElement,...e})}case"audio":return jsx$1(Audio,{element:i.element.audio,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"balloons":return hideIfStale(n.isStale,jsx$1(Balloons,{scriptRunId:i.scriptRunId}));case"code":{const o=i.element.code;return jsx$1(StreamlitSyntaxHighlighter,{language:o.language,showLineNumbers:o.showLineNumbers,wrapLines:o.wrapLines,children:o.codeText})}case"deckGlJsonChart":{const o=i.element.deckGlJsonChart;return jsx$1(DeckGlJsonChart,{element:o,...t},o.id||void 0)}case"docString":return jsx$1(DocString$1,{element:i.element.docString,...e});case"empty":return jsx$1("div",{className:"stEmpty","data-testid":"stEmpty"});case"exception":return jsx$1(ExceptionElement$1,{element:i.element.exception,...e});case"graphvizChart":return jsx$1(GraphVizChart,{element:i.element.graphvizChart,...e});case"heading":return jsx$1(Heading,{element:i.element.heading,...e});case"iframe":return jsx$1(IFrame,{element:i.element.iframe,...e});case"imgs":return jsx$1(ImageList,{element:i.element.imgs,endpoints:n.endpoints,...e});case"json":return jsx$1(Json,{element:i.element.json,...e});case"markdown":return jsx$1(Markdown$1,{element:i.element.markdown,...e});case"metric":return jsx$1(Metric,{element:i.element.metric,...e});case"html":return jsx$1(Html,{element:i.element.html,...e});case"pageLink":{const o=i.element.pageLink,d=t.disabled||o.disabled;return jsx$1(PageLink,{element:o,disabled:d,...e})}case"progress":return jsx$1(Progress,{element:i.element.progress,...e});case"skeleton":return jsx$1(Skeleton,{element:i.element.skeleton});case"snow":return hideIfStale(n.isStale,jsx$1(Snow,{scriptRunId:i.scriptRunId}));case"space":return jsx$1(StyledSpace,{className:"stSpace","data-testid":"stSpace"});case"spinner":return jsx$1(Spinner,{element:i.element.spinner,...e});case"text":return jsx$1(TextElement$1,{element:i.element.text,...e});case"video":return jsx$1(Video,{element:i.element.video,endpoints:n.endpoints,...e,elementMgr:n.widgetMgr});case"toast":{const o=i.element.toast;return jsx$1(Toast,{element:o,...e},i.scriptRunId)}case"dataframe":{const o=i.element.dataframe;return t.disabled=t.disabled||o.disabled,jsx$1(ArrowDataFrame,{element:o,data:i.quiverElement,...t},o.id||void 0)}case"arrowVegaLiteChart":{const o=i.vegaLiteChartElement;return jsx$1(ArrowVegaLiteChart,{element:o,...t},o.id||void 0)}case"audioInput":{const o=i.element.audioInput;return t.disabled=t.disabled||o.disabled,jsx$1(AudioInput,{uploadClient:n.uploadClient,element:o,...t},o.id)}case"button":{const o=i.element.button;return t.disabled=t.disabled||o.disabled,o.isFormSubmitter?jsx$1(FormSubmitContent,{element:o,...t}):jsx$1(Button,{element:o,...t})}case"buttonGroup":{const o=i.element.buttonGroup;return t.disabled=t.disabled||o.disabled,jsx$1(ButtonGroup,{element:o,...t},o.id)}case"downloadButton":{const o=i.element.downloadButton;return t.disabled=t.disabled||o.disabled,jsx$1(DownloadButton,{endpoints:n.endpoints,element:o,...t},o.id)}case"feedback":{const o=i.element.feedback;return t.disabled=t.disabled||o.disabled,jsx$1(Feedback,{element:o,...t},o.id)}case"cameraInput":{const o=i.element.cameraInput;return t.disabled=t.disabled||o.disabled,jsx$1(CameraInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"chatInput":{const o=i.element.chatInput;return t.disabled=t.disabled||o.disabled,jsx$1(ChatInput,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"checkbox":{const o=i.element.checkbox;return t.disabled=t.disabled||o.disabled,jsx$1(Checkbox,{element:o,...t},o.id)}case"colorPicker":{const o=i.element.colorPicker;return t.disabled=t.disabled||o.disabled,jsx$1(ColorPicker,{element:o,...t},o.id)}case"componentInstance":return jsx$1(ComponentInstance,{element:i.element.componentInstance,...t});case"dateInput":{const o=i.element.dateInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateInput,{element:o,...t},o.id)}case"fileUploader":{const o=i.element.fileUploader;return t.disabled=t.disabled||o.disabled,jsx$1(FileUploader,{element:o,uploadClient:n.uploadClient,...t},o.id)}case"linkButton":{const o=i.element.linkButton;return jsx$1(LinkButton,{element:o,...e})}case"multiselect":{const o=i.element.multiselect;return t.disabled=t.disabled||o.disabled,jsx$1(Multiselect,{element:o,...t},o.id)}case"numberInput":{const o=i.element.numberInput;return t.disabled=t.disabled||o.disabled,jsx$1(NumberInput,{element:o,...t},o.id)}case"plotlyChart":{const o=i.element.plotlyChart;return jsx$1(PlotlyChart,{element:o,...t},o.id)}case"radio":{const o=i.element.radio;return t.disabled=t.disabled||o.disabled,jsx$1(Radio,{element:o,...t},o.id)}case"selectbox":{const o=i.element.selectbox;return t.disabled=t.disabled||o.disabled,jsx$1(Selectbox$1,{element:o,...t},o.id)}case"slider":{const o=i.element.slider;return t.disabled=t.disabled||o.disabled,jsx$1(Slider,{element:o,...t},o.id)}case"textArea":{const o=i.element.textArea;return t.disabled=t.disabled||o.disabled,jsx$1(TextArea,{element:o,outerElement:i.element,...t},o.id)}case"textInput":{const o=i.element.textInput;return t.disabled=t.disabled||o.disabled,jsx$1(TextInput,{element:o,...t},o.id)}case"dateTimeInput":{const o=i.element.dateTimeInput;return t.disabled=t.disabled||o.disabled,jsx$1(DateTimeInput,{element:o,...t},o.id)}case"timeInput":{const o=i.element.timeInput;return t.disabled=t.disabled||o.disabled,jsx$1(TimeInput,{element:o,...t},o.id)}case"bidiComponent":{const o=i.element.bidiComponent;return jsx$1(BidiComponent,{element:o,...t},o.id)}default:throw new Error(`Unrecognized Element type ${i.element.type}`)}},ElementNodeRenderer=n=>{const{isFullScreen:i}=reactExports.useContext(ViewStateContext),{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext),{node:d}=n,p=d.element.type||"",h=shouldComponentBeEnabled(p,e),y=isComponentStale(h,d,e,t,o),$=getElementId(d.element),E=getKeyFromId($);return jsx$1(Maybe,{enable:h,children:jsx$1(StyledElementContainerLayoutWrapper,{className:classNames("stElementContainer","element-container",convertKeyToClassName(E)),"data-testid":"stElementContainer","data-stale":y,isStale:y&&!i,elementType:p,node:d,children:jsx$1(ErrorBoundary,{children:jsx$1(reactExports.Suspense,{fallback:jsx$1(Skeleton,{element:Skeleton$1.create({style:Skeleton$1.SkeletonStyle.ELEMENT})}),children:jsx$1(RawElementNodeRenderer,{...n,isStale:y})})})})})};class RenderNodeVisitor{constructor(i,e){this.props=i,this.elementKeyOverride=e,this.elementKeySet=new Set,this.reactElements=[],this.index=0,this.transientElementCount=0}getCurrentKey(i){return this.elementKeyOverride||i||this.index.toString()}conformToArray(i){return i?Array.isArray(i)?i:[i]:[]}visitBlockNode(i){const e={...this.props,node:i},t=this.getCurrentKey();this.index+=1;const o=jsx$1(BlockNodeRenderer,{...e},t);return this.reactElements.push(o),o}visitTransientNode(i){const e=[];i.transientNodes.forEach(o=>{const d=this.getCurrentKey(`transient-${this.transientElementCount}`);this.transientElementCount+=1;const p=o.accept(new RenderNodeVisitor(this.props,d));e.push(...this.conformToArray(p))}),this.reactElements.push(...e);const t=i.anchor?.accept(this);return e.push(...this.conformToArray(t)),e}visitElementNode(i){const e={...this.props,node:i},t=this.getCurrentKey(getElementId(i.element));if(this.index+=1,this.elementKeySet.has(t))return null;this.elementKeySet.add(t);const o=jsx$1(ElementNodeRenderer,{...e},t);return this.reactElements.push(o),o}static collectReactElements(i){if(!i.node.children)return[];const e=new RenderNodeVisitor(i);return i.node.children.forEach(t=>t.accept(e)),e.reactElements}}const ChildRenderer=n=>(assignDividerColor(n.node,useEmotionTheme()),jsx$1(Fragment,{children:RenderNodeVisitor.collectReactElements(n)})),getLayoutSubElement=n=>{const i=n.type,e=i?n[i]:void 0;if(!e||typeof e!="object")return;const t=e,o={useContainerWidth:t.useContainerWidth,height:t.height,width:t.width,widthConfig:t.widthConfig};if(!(o.useContainerWidth===void 0&&o.height===void 0&&o.width===void 0&&o.widthConfig===void 0))return o},ContainerContentsWrapper=n=>{const i=reactExports.useContext(FlexContext),e={direction:Direction.VERTICAL,flex:1,gap:streamlit.GapSize.SMALL,height:n.height,border:!1},t=getKeyFromId(n.node.deltaBlock.id);return jsx$1(FlexContextProvider,{direction:Direction.VERTICAL,isRoot:n.isRoot,parentContext:i,children:jsx$1(StyledFlexContainerBlock,{...e,className:classNames(getClassnamePrefix(Direction.VERTICAL),convertKeyToClassName(t)),"data-testid":getClassnamePrefix(Direction.VERTICAL),children:jsx$1(ChildRenderer,{...n})})})},FlexBoxContainer=n=>{const i=getDirectionOfBlock(n.node.deltaBlock),e=reactExports.useContext(FlexContext),t=shouldActivateScrollToBottom(n.node),o=useScrollToBottom(t),d=useLayoutStyles({element:n.node.deltaBlock,subElement:getLayoutSubElement(n.node.deltaBlock)}),p={gap:n.node.deltaBlock.flexContainer?.gapConfig?.gapSize??streamlit.GapSize.SMALL,direction:i,$wrap:n.node.deltaBlock.flexContainer?.wrap??!1,overflow:d.overflow,border:getBorderBackwardsCompatible(n.node.deltaBlock),height:d.height,flex:"1",align:n.node.deltaBlock.flexContainer?.align,justify:n.node.deltaBlock.flexContainer?.justify},h=getKeyFromId(n.node.deltaBlock.id),y=n.node.deltaBlock.widthConfig?.pixelWidth??void 0,$=n.node.deltaBlock.widthConfig?.useContent??!1,E=(n.node.deltaBlock.widthConfig?.pixelWidth??0)>0||(n.node.deltaBlock.widthConfig?.remWidth??0)>0;return jsx$1(FlexContextProvider,{direction:i,parentWidth:y,hasContentWidth:$,hasFixedWidth:E,parentContext:e,children:jsx$1(StyledFlexContainerBlock,{...p,className:classNames(getClassnamePrefix(i),convertKeyToClassName(h)),"data-testid":getClassnamePrefix(i),ref:o,"data-test-scroll-behavior":t?"scroll-to-bottom":"normal",children:jsx$1(ChildRenderer,{...n})})})},LARGE_STRETCH_BEHAVIOR=["tabContainer"],MEDIUM_STRETCH_BEHAVIOR=["chatInput"],BlockNodeRenderer=n=>{const{node:i}=n,{scriptRunState:e,scriptRunId:t,fragmentIdsThisRun:o}=reactExports.useContext(ScriptRunContext);let d;LARGE_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="14rem":MEDIUM_STRETCH_BEHAVIOR.includes(i.deltaBlock.type??"")?d="8rem":i.deltaBlock.type==="chatMessage"?i.isEmpty&&(d="8rem"):(i.deltaBlock.type==="flexContainer"||i.deltaBlock.column||i.deltaBlock.expandable)&&(i.isEmpty||(d="8rem"));const p=useLayoutStyles({element:i.deltaBlock,subElement:getLayoutSubElement(i.deltaBlock),minStretchBehavior:d});if(i.isEmpty&&!i.deltaBlock.allowEmpty)return jsx$1(Fragment,{});const h=shouldComponentBeEnabled("",e),y=isComponentStale(h,i,e,t,o),$={...n,node:i},E=n.disableFullscreenMode||notNullOrUndefined(i.deltaBlock.dialog)||notNullOrUndefined(i.deltaBlock.popover);let M;const H=jsx$1(ContainerContentsWrapper,{...$,disableFullscreenMode:E,height:"100%"});if(checkFlexContainerBackwardsCompatibile(i.deltaBlock)&&(M=jsx$1(FlexBoxContainer,{...$})),i.deltaBlock.dialog)return jsx$1(Dialog$1,{element:i.deltaBlock.dialog,deltaMsgReceivedAt:i.deltaMsgReceivedAt,widgetMgr:n.widgetMgr,fragmentId:i.fragmentId,children:H});if(i.deltaBlock.expandable&&(M=jsx$1(Expander$1,{isStale:y,element:i.deltaBlock.expandable,children:H})),i.deltaBlock.popover&&(M=jsx$1(Popover$1,{empty:i.isEmpty,element:i.deltaBlock.popover,stretchWidth:shouldWidthStretch(i.deltaBlock.widthConfig),children:H})),i.deltaBlock.type==="form"){const{formId:Z,clearOnSubmit:be,enterToSubmit:ye,border:we}=i.deltaBlock.form;M=jsx$1(Form$1,{formId:Z,clearOnSubmit:be,enterToSubmit:ye,widgetMgr:n.widgetMgr,border:we,overflow:p.overflow,children:H})}if(i.deltaBlock.chatMessage&&(M=jsx$1(ChatMessage$1,{element:i.deltaBlock.chatMessage,endpoints:n.endpoints,children:H})),i.deltaBlock.column)return jsx$1(StyledColumn,{weight:i.deltaBlock.column.weight??0,gap:getColumnGapSize(i.deltaBlock.column),verticalAlignment:i.deltaBlock.column.verticalAlignment??void 0,showBorder:i.deltaBlock.column.showBorder??!1,className:"stColumn","data-testid":"stColumn",children:H});if(i.deltaBlock.tabContainer){const be={...$,isStale:y,renderTabContent:ye=>jsx$1(ContainerContentsWrapper,{...ye,height:"auto"}),width:p.width,flex:p.flex};return jsx$1(Tabs$1,{...be})}return M?jsx$1(StyledLayoutWrapper,{"data-testid":"stLayoutWrapper",...p,children:M}):H},DownloadContext=reactExports.createContext({requestDeferredFile:void 0});DownloadContext.displayName="DownloadContext";const NavigationContext=reactExports.createContext({pageLinkBaseUrl:"",currentPageScriptHash:"",onPageChange:()=>{},navSections:[],appPages:[]});NavigationContext.displayName="NavigationContext";const StyledDataFrameOverlay=styled("div",{target:"eaoz1g71"})(({theme:n})=>({position:"fixed",top:0,left:0,zIndex:n.zIndices.tablePortal,lineHeight:"100%",...!hasLightBackgroundColor(n)&&{"& input[type='date'], & input[type='time'], & input[type='datetime-local']":{"&::-webkit-calendar-picker-indicator":{filter:"brightness(0) invert(1)",opacity:1}}}})),StyledErrorMessage=styled("small",{target:"eaoz1g72"})(({theme:n})=>({color:n.colors.redTextColor,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,display:"block"})),PortalContext=reactExports.createContext(null);PortalContext.displayName="PortalContext";const PortalProvider=({children:n})=>{const i=reactExports.useRef(null),e=reactExports.useCallback(()=>i.current,[]);return jsxs(PortalContext.Provider,{value:e,children:[n,jsx$1(StyledDataFrameOverlay,{"data-testid":"portal",id:"portal",ref:i})]})},SidebarConfigContext=reactExports.createContext({initialSidebarState:PageConfig.SidebarState.AUTO,appLogo:null,sidebarChevronDownshift:0,expandSidebarNav:!1,hideSidebarNav:!1});SidebarConfigContext.displayName="SidebarConfigContext";const ThemeContext=reactExports.createContext({activeTheme:getDefaultTheme(),setTheme:()=>{},availableThemes:[]});ThemeContext.displayName="ThemeContext";function ThemeProvider({theme:n,baseuiTheme:i,children:e}){return jsx$1(ThemeProvider$1,{theme:i||baseuiLightTheme,children:jsx$1(ThemeProvider$2,{theme:n,children:e})})}function StreamlitErrorCodeBlock({children:n}){const i=typeof n=="string"&&n.trim().length>0;return jsxs(StyledCodeBlock,{className:"stErrorCodeBlock","data-testid":"stErrorCodeBlock",children:[jsx$1(StyledPre,{wrapLines:!1,children:jsx$1(StyledCode,{wrapLines:!1,children:n})}),i&&jsx$1(StyledCopyButtonContainer,{children:jsx$1(StyledCopyButton,{text:n,"data-testid":"stCodeCopyButton"})})]})}const StreamlitErrorCodeBlock$1=reactExports.memo(StreamlitErrorCodeBlock);function iconToUrl(n){const i=/^:(.+)\/(.+):$/,e=n.match(i);return e===null?"":`https://fonts.gstatic.com/s/i/short-term/release/materialsymbolsrounded/${e[2]}/default/24px.svg`}function handleFavicon(n,i,e){const t=p=>{overwriteFavicon(p),i({type:"SET_PAGE_FAVICON",favicon:p})};if(n.startsWith(":material")){t(iconToUrl(n));return}const o="emoji:";if(n.startsWith(o)){const p=n.substring(o.length),h=createEmojiDataUrl(p);t(h);return}/^:[a-zA-Z0-9_+-]+:$/.test(n)?convertShortcodeToEmoji(n).then(p=>{t(p?createEmojiDataUrl(p):e.buildMediaURL(n))}).catch(()=>{t(e.buildMediaURL(n))}):t(e.buildMediaURL(n))}function createEmojiDataUrl(n){return`data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>${n}</text></svg>`}function overwriteFavicon(n){const i=document.querySelector("link[rel='shortcut icon']");i&&(i.href=n)}async function convertShortcodeToEmoji(n){const i=await __vitePreload(()=>import("./index.k7p0hmaU.js"),[],import.meta.url),e=n.replace(/-/g,"_"),t=i.get(e);return t&&t!==e&&i.has(t)?t:""}const StyledWidgetLabel=styled("label",{target:"e1kt9bl70"})(({disabled:n,labelVisibility:i,theme:e})=>({fontSize:e.fontSizes.sm,color:n?e.colors.fadedText40:e.colors.bodyText,display:i===LabelVisibilityOptions.Collapsed?"none":"flex",visibility:i===LabelVisibilityOptions.Hidden?"hidden":"visible",marginBottom:e.spacing.twoXS,height:"auto",minHeight:e.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),StyledWidgetLabelHelp=styled("div",{target:"e1kt9bl71"})({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1}),StyledWidgetInstructions=styled("div",{target:"e1kt9bl72"})(({theme:n})=>({fontSize:n.fontSizes.twoSm,color:n.colors.fadedText60,margin:n.spacing.none,textAlign:"right",position:"absolute",bottom:n.spacing.threeXS,right:`calc(${n.fontSizes.mdLg} * 0.5)`})),StyledWidgetLabelHelpInline=styled("span",{target:"e1kt9bl73"})(({theme:n})=>({marginLeft:n.spacing.xs,position:"relative",display:"flex",flexDirection:"row"}));function WidgetLabel({label:n,children:i,disabled:e,labelVisibility:t,htmlFor:o}){return isNullOrUndefined$1(n)?jsx$1(Fragment,{}):jsxs(StyledWidgetLabel,{"data-testid":"stWidgetLabel",disabled:e,labelVisibility:t,htmlFor:o,children:[jsx$1("span",{"aria-hidden":"true",children:jsx$1(StreamlitMarkdown$1,{source:n,allowHTML:!1,isLabel:!0})}),i]})}function WidgetLabelHelpIcon({content:n,label:i,ariaLabel:e,placement:t=Placement.TOP_RIGHT,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h}){return jsx$1(StyledWidgetLabelHelp,{children:jsx$1(TooltipIcon,{content:n,placement:t,isLatex:o,markdownProps:d,onMouseEnterDelay:p,containerWidth:h,ariaLabel:e??getHelpTooltipAriaLabel(i)})})}const arrayComparator=(n,i)=>n.length!==i.length?!1:n.every((e,t)=>Object.is(e,i[t])),useExecuteWhenChanged=(n,i,e=arrayComparator)=>{const[t,o]=reactExports.useState(i);e(t,i)||(o(i),n())};var _excluded$i=["title","size","color","overrides"];function _extends$g(){return _extends$g=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$g.apply(this,arguments)}function _objectWithoutProperties$f(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$e(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$e(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$d(n,i){return _arrayWithHoles$d(n)||_iterableToArrayLimit$d(n,i)||_unsupportedIterableToArray$d(n,i)||_nonIterableRest$d()}function _nonIterableRest$d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
120
120
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$d(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$d(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$d(n,i)}}function _arrayLikeToArray$d(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$d(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$d(n){if(Array.isArray(n))return n}function ChevronDown(n,i){var e=useStyletron(),t=_slicedToArray$d(e,2),o=t[1],d=n.title,p=d===void 0?"Down":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$f(n,_excluded$i),H=mergeOverride({component:o.icons&&o.icons.ChevronDown?o.icons.ChevronDown:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$g({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{transform:"rotate(270, 12, 12)",fillRule:"evenodd",clipRule:"evenodd",d:"M9 12C9 12.2652 9.10536 12.5196 9.29289 12.7071L13.2929 16.7071C13.6834 17.0976 14.3166 17.0976 14.7071 16.7071C15.0976 16.3166 15.0976 15.6834 14.7071 15.2929L11.4142 12L14.7071 8.70711C15.0976 8.31658 15.0976 7.68342 14.7071 7.29289C14.3166 6.90237 13.6834 6.90237 13.2929 7.29289L9.29289 11.2929C9.10536 11.4804 9 11.7348 9 12Z"}))}const ChevronDown$1=reactExports.forwardRef(ChevronDown);var _excluded$h=["title","size","color","overrides"];function _extends$f(){return _extends$f=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$f.apply(this,arguments)}function _objectWithoutProperties$e(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$d(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$d(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$c(n,i){return _arrayWithHoles$c(n)||_iterableToArrayLimit$c(n,i)||_unsupportedIterableToArray$c(n,i)||_nonIterableRest$c()}function _nonIterableRest$c(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
121
121
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$c(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$c(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$c(n,i)}}function _arrayLikeToArray$c(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$c(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$c(n){if(Array.isArray(n))return n}function DeleteAlt(n,i){var e=useStyletron(),t=_slicedToArray$c(e,2),o=t[1],d=n.title,p=d===void 0?"Delete Alt":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$e(n,_excluded$h),H=mergeOverride({component:o.icons&&o.icons.DeleteAlt?o.icons.DeleteAlt:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$f({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 20C16.4183 20 20 16.4183 20 12C20 7.58173 16.4183 4 12 4C7.58173 4 4 7.58173 4 12C4 16.4183 7.58173 20 12 20ZM10.0303 8.96967C9.73743 8.67679 9.26257 8.67679 8.96967 8.96967C8.67676 9.26257 8.67676 9.73743 8.96967 10.0303L10.9393 12L8.96967 13.9697C8.67676 14.2626 8.67676 14.7374 8.96967 15.0303C9.26257 15.3232 9.73743 15.3232 10.0303 15.0303L12 13.0607L13.9697 15.0303C14.2626 15.3232 14.7374 15.3232 15.0303 15.0303C15.3232 14.7374 15.3232 14.2626 15.0303 13.9697L13.0607 12L15.0303 10.0303C15.3232 9.73743 15.3232 9.26257 15.0303 8.96967C14.7374 8.67679 14.2626 8.67679 13.9697 8.96967L12 10.9393L10.0303 8.96967Z"}))}const DeleteAlt$1=reactExports.forwardRef(DeleteAlt);var _excluded$g=["title","size","color","overrides"];function _extends$e(){return _extends$e=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$e.apply(this,arguments)}function _objectWithoutProperties$d(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$c(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$c(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$b(n,i){return _arrayWithHoles$b(n)||_iterableToArrayLimit$b(n,i)||_unsupportedIterableToArray$b(n,i)||_nonIterableRest$b()}function _nonIterableRest$b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
122
122
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray$b(n,i){if(n){if(typeof n=="string")return _arrayLikeToArray$b(n,i);var e=Object.prototype.toString.call(n).slice(8,-1);if(e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set")return Array.from(n);if(e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return _arrayLikeToArray$b(n,i)}}function _arrayLikeToArray$b(n,i){(i==null||i>n.length)&&(i=n.length);for(var e=0,t=new Array(i);e<i;e++)t[e]=n[e];return t}function _iterableToArrayLimit$b(n,i){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var t=[],o=!0,d=!1,p,h;try{for(e=e.call(n);!(o=(p=e.next()).done)&&(t.push(p.value),!(i&&t.length===i));o=!0);}catch(y){d=!0,h=y}finally{try{!o&&e.return!=null&&e.return()}finally{if(d)throw h}}return t}}function _arrayWithHoles$b(n){if(Array.isArray(n))return n}function Search(n,i){var e=useStyletron(),t=_slicedToArray$b(e,2),o=t[1],d=n.title,p=d===void 0?"Search":d,h=n.size,y=n.color,$=n.overrides,E=$===void 0?{}:$,M=_objectWithoutProperties$d(n,_excluded$g),H=mergeOverride({component:o.icons&&o.icons.Search?o.icons.Search:null},E&&E.Svg?toObjectOverride(E.Svg):{});return reactExports.createElement(Icon$1,_extends$e({viewBox:"0 0 24 24",ref:i,title:p,size:h,color:y,overrides:{Svg:H}},M),reactExports.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 6C8.79086 6 7 7.79086 7 10C7 12.2091 8.79086 14 11 14C13.2091 14 15 12.2091 15 10C15 7.79086 13.2091 6 11 6ZM5 10C5 6.68629 7.68629 4 11 4C14.3137 4 17 6.68629 17 10C17 11.2958 16.5892 12.4957 15.8907 13.4765L19.7071 17.2929C20.0976 17.6834 20.0976 18.3166 19.7071 18.7071C19.3166 19.0976 18.6834 19.0976 18.2929 18.7071L14.4765 14.8907C13.4957 15.5892 12.2958 16 11 16C7.68629 16 5 13.3137 5 10Z"}))}const SearchIconComponent=reactExports.forwardRef(Search);var _excluded$f=["title","size","color","overrides"];function _extends$d(){return _extends$d=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var e=arguments[i];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n[t]=e[t])}return n},_extends$d.apply(this,arguments)}function _objectWithoutProperties$c(n,i){if(n==null)return{};var e=_objectWithoutPropertiesLoose$b(n,i),t,o;if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(n);for(o=0;o<d.length;o++)t=d[o],!(i.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(e[t]=n[t])}return e}function _objectWithoutPropertiesLoose$b(n,i){if(n==null)return{};var e={},t=Object.keys(n),o,d;for(d=0;d<t.length;d++)o=t[d],!(i.indexOf(o)>=0)&&(e[o]=n[o]);return e}function _slicedToArray$a(n,i){return _arrayWithHoles$a(n)||_iterableToArrayLimit$a(n,i)||_unsupportedIterableToArray$a(n,i)||_nonIterableRest$a()}function _nonIterableRest$a(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
@@ -152,4 +152,4 @@ Event: ${i}`)}async pingServer(){const i=doInitPings(this.args.baseUriPartsList,
|
|
|
152
152
|
The app's main file \`${n}\` has
|
|
153
153
|
not been pushed to GitHub. Please add it to continue.
|
|
154
154
|
`,allowHTML:!1})}}const DEPLOY_URL="https://share.streamlit.io/deploy",STREAMLIT_CLOUD_URL="https://streamlit.io/cloud",STREAMLIT_COMMUNITY_CLOUD_DOCS_URL="https://share.streamlit.io/cloud-getting-started",STREAMLIT_DEPLOY_TUTORIAL_URL="https://share.streamlit.io/deployment-tutorial",SNOWFLAKE_LEARN_MORE_URL="https://share.streamlit.io/sis-about",SNOWFLAKE_TRIAL_URL="https://share.streamlit.io/snowflake-trial",StyledParagraph=styled("p",{target:"euwf8ug0"})({textAlign:"justify"});function NoRepositoryDetected(){return{title:"Unable to deploy",body:jsxs(StyledParagraph,{children:["The app’s code is not connected to a remote GitHub repository. To deploy on Streamlit Community Cloud, please put your code in a GitHub repository and publish the current branch. Read more in"," ",jsx$1("a",{href:STREAMLIT_COMMUNITY_CLOUD_DOCS_URL,rel:"noopener noreferrer",target:"_blank",children:"our documentation"}),"."]})}}function DeployCard(n){const{colors:i,spacing:e,radii:t,breakpoints:o,sizes:d}=useEmotionTheme(),{children:p}=n;return jsx$1(Card,{overrides:{Root:{style:{borderTopWidth:d.borderWidth,borderBottomWidth:d.borderWidth,borderLeftWidth:d.borderWidth,borderRightWidth:d.borderWidth,borderTopStyle:"solid",borderBottomStyle:"none",borderLeftStyle:"none",borderRightStyle:"solid",borderTopColor:i.borderColor,borderBottomColor:i.borderColor,borderLeftColor:i.borderColor,borderRightColor:i.borderColor,borderTopLeftRadius:"none",borderTopRightRadius:"none",borderBottomLeftRadius:"none",borderBottomRightRadius:"none",":last-child":{borderRightStyle:"none",borderBottomRightRadius:t.xl},":first-child":{borderBottomLeftRadius:t.xl},[`@media (max-width: ${o.md})`]:{":last-child":{borderBottomLeftRadius:t.xl}}}},Contents:{style:{marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%"}},Body:{style:{padding:e.twoXL,marginBottom:0,marginTop:0,marginLeft:0,marginRight:0,height:"100%",display:"flex",flexDirection:"column",[`@media (max-width: ${o.md})`]:{padding:e.xl}}}},children:p})}const Checkmark="data:image/svg+xml,%3csvg%20width='12'%20height='9'%20viewBox='0%200%2012%209'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M4.00009%206.78L1.68676%204.46667C1.42676%204.20667%201.00676%204.20667%200.746758%204.46667C0.486758%204.72667%200.486758%205.14667%200.746758%205.40667L3.53342%208.19334C3.79342%208.45334%204.21342%208.45334%204.47342%208.19334L11.5268%201.14C11.7868%200.880005%2011.7868%200.460005%2011.5268%200.200005C11.2668%20-0.0599951%2010.8468%20-0.0599951%2010.5868%200.200005L4.00009%206.78Z'%20fill='%23808495'/%3e%3c/svg%3e",StyledHeader$1=styled("div",{target:"ep91p7v0"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.lg,marginTop:n.spacing.twoXL,marginBottom:n.spacing.twoXS,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledSubheader=styled("div",{target:"ep91p7v1"})(({theme:n})=>({fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginTop:n.spacing.twoXS,marginBottom:n.spacing.md,[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.md}})),StyledCardContainer=styled("div",{target:"ep91p7v2"})(({theme:n})=>({display:"grid",maxWidth:`calc(1.25 * ${n.sizes.contentMaxWidth})`,gridTemplateColumns:"1fr 1fr 1fr",gridGap:n.spacing.none,[`@media (max-width: ${n.breakpoints.md})`]:{gridTemplateColumns:"1fr"}})),StyledElement=styled("div",{target:"ep91p7v3"})(({theme:n})=>({display:"inline-flex",marginTop:n.spacing.sm,"& > span":{fontFamily:n.fonts.sansSerif,fontWeight:n.fontWeights.normal,fontSize:n.fontSizes.md,marginLeft:n.spacing.twoXL,color:n.colors.gray70},"& > img":{position:"absolute",marginTop:n.spacing.sm}})),StyledActionsWrapper=styled("div",{target:"ep91p7v4"})(({theme:n})=>({display:"flex",marginTop:n.spacing.threeXL,"& > button":{marginRight:n.spacing.twoXL},[`@media (max-width: ${n.breakpoints.md})`]:{marginTop:n.spacing.xl}}));function DeployListElement(n){const{children:i}=n;return jsxs(StyledElement,{children:[jsx$1("img",{src:Checkmark,alt:"Checkmark"}),jsx$1("span",{children:i})]})}function ModalBody({children:n}){const{colors:i,fontSizes:e,spacing:t}=useEmotionTheme();return jsx$1(ModalBody$2,{style:{marginTop:t.none,marginLeft:t.none,marginRight:t.none,marginBottom:t.none,paddingTop:t.md,paddingRight:t.none,paddingBottom:t.none,paddingLeft:t.none,color:i.bodyText,fontSize:e.md,overflowY:"auto"},children:n})}function DeployModal(n){const{children:i,onClose:e}=n;return jsxs(Modal,{isOpen:!0,closeable:!0,onClose:e,size:"auto",children:[jsx$1(ModalHeader,{children:"Deploy this app using..."}),jsx$1(ModalBody,{children:i})]})}const{GitStates}=GitInfo,openUrl=n=>{window.open(n,"_blank")},getDeployAppUrl=n=>{if(n){const i=new URL(DEPLOY_URL);return i.searchParams.set("repository",n.repository??""),i.searchParams.set("branch",n.branch??""),i.searchParams.set("mainModule",n.module??""),i.toString()}return STREAMLIT_CLOUD_URL};function DeployDialog(n){const{gitInfo:i,onClose:e,metricsMgr:t,showDeployError:o,isDeployErrorModalOpen:d}=n,p=reactExports.useCallback(()=>{if(t.enqueue("menuClick",{label:"deployButtonInDialog"}),!i){const Z=NoRepositoryDetected();o(Z.title,Z.body);return}const{repository:h,branch:y,module:$,untrackedFiles:E,state:M}=i;if((!h||!y||!$)&&M===GitStates.DEFAULT){const Z=NoRepositoryDetected();o(Z.title,Z.body);return}if(M===GitStates.HEAD_DETACHED){const Z=DetachedHead();o(Z.title,Z.body);return}if($&&E?.includes($)){const Z=ModuleIsNotAdded($);o(Z.title,Z.body);return}d&&e(),openUrl(getDeployAppUrl(i))},[t,i,d,o,e]);return jsx$1(DeployModal,{onClose:e,children:jsxs(StyledCardContainer,{children:[jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:StreamlitLogo,alt:"Streamlit Logo","data-testid":"stDeployDialogCommunityCloudIcon"}),jsx$1(StyledHeader$1,{children:"Streamlit Community Cloud"}),jsx$1(StyledSubheader,{children:"For community, always free"}),jsx$1(DeployListElement,{children:"For personal hobbies and learning"}),jsx$1(DeployListElement,{children:"Deploy unlimited public apps"}),jsx$1(DeployListElement,{children:"Explore and learn from Streamlit’s community and popular apps"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.PRIMARY,onClick:p,children:"Deploy now"}),jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"readMoreCommunityCloudInDeployDialog"}),openUrl(STREAMLIT_COMMUNITY_CLOUD_DOCS_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:1},children:[jsx$1("img",{src:Snowflake,alt:"Snowflake","data-testid":"stDeployDialogSnowflakeDeploymentIcon"}),jsx$1(StyledHeader$1,{children:"Snowflake"}),jsx$1(StyledSubheader,{children:"For enterprise"}),jsx$1(DeployListElement,{children:"Enterprise-level security, support, and fully managed infrastructure"}),jsx$1(DeployListElement,{children:"Deploy unlimited private apps with role-based sharing"}),jsx$1(DeployListElement,{children:"Integrate with Snowflake’s full data stack"})]}),jsx$1(Action,{children:jsxs(StyledActionsWrapper,{children:[jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:()=>{t.enqueue("menuClick",{label:"startTrialInDeployDialog"}),openUrl(SNOWFLAKE_TRIAL_URL)},children:"Start trial"}),jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"learnMoreSnowflakeInDeployDialog"}),openUrl(SNOWFLAKE_LEARN_MORE_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})]})})]}),jsxs(DeployCard,{children:[jsxs(Body,{style:{flexGrow:2},children:[jsx$1("img",{src:Rocket,alt:"Rocket","data-testid":"stDeployDialogCustomDeploymentIcon"}),jsx$1(StyledHeader$1,{children:"Other platforms"}),jsx$1(StyledSubheader,{children:"For custom deployment "}),jsx$1(DeployListElement,{children:"Deploy on your own hardware or cloud service"}),jsx$1(DeployListElement,{children:"Set up and maintain your own authentication, resources, and costs"})]}),jsx$1(Action,{children:jsx$1(StyledActionsWrapper,{children:jsx$1(BaseButton,{onClick:()=>{t.enqueue("menuClick",{label:"readMoreDeployTutorialInDeployDialog"}),openUrl(STREAMLIT_DEPLOY_TUTORIAL_URL)},kind:BaseButtonKind.MINIMAL,children:"Learn more"})})})]})]})})}const StyledDialogBody=styled("div",{target:"e1veajc00"})(({theme:n})=>({display:"grid",gap:n.spacing.twoXL,gridTemplateColumns:"1fr 1fr",margin:0,padding:0})),StyledFullRow=styled("div",{target:"e1veajc01"})(({theme:n})=>({gridColumnStart:1,gridColumnEnd:-1,display:"grid",gap:n.spacing.xs})),StyledHeader=styled("h2",{target:"e1veajc02"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:n.spacing.md,marginTop:"0",fontWeight:n.fontWeights.bold,fontSize:n.fontSizes.md,lineHeight:n.lineHeights.tight,color:n.colors.bodyText,display:"grid",gridAutoFlow:"row",gap:n.spacing.xs,"&:first-of-type":{marginTop:0}})),StyledLabel=styled("label",{target:"e1veajc03"})(({theme:n})=>({paddingBottom:0,paddingTop:0,marginBottom:0,marginTop:0,lineHeight:n.lineHeights.tight,fontSize:n.fontSizes.sm})),StyledVersionRow=styled("div",{target:"e1veajc04"})(({theme:n})=>({display:"flex",alignItems:"center",gap:n.spacing.sm,color:"inherit",fontSize:n.fontSizes.sm,lineHeight:n.lineHeights.base,".stVersionCopyButton":{opacity:0,pointerEvents:"none",transform:"scale(0.9)",transition:"opacity 120ms ease, transform 120ms ease"},"&:hover .stVersionCopyButton, &:focus-within .stVersionCopyButton":{opacity:1,pointerEvents:"auto",transform:"scale(1)"}})),StyledVersionText=styled("span",{target:"e1veajc05"})({display:"inline-flex",alignItems:"center",opacity:.6}),StyledCheckbox=styled("input",{target:"e1veajc08"})(({theme:n})=>({marginRight:n.spacing.xs,appearance:"none",border:`${n.sizes.borderWidth} solid ${n.colors.borderColor}`,width:n.fontSizes.md,height:n.fontSizes.md,borderRadius:`min(${n.radii.md}, ${n.radii.maxCheckbox})`,display:"inline-flex",alignItems:"center",justifyContent:"center",padding:0,verticalAlign:"middle",overflow:"hidden","&:focus-visible":{outline:`2px solid ${n.colors.primary}`},"&:checked":{backgroundColor:n.colors.primary,"&:after":{content:'"✓"',fontFamily:n.fonts.monospace,fontSize:n.fontSizes.md,color:n.colors.white,lineHeight:n.lineHeights.none}},"&:disabled":{backgroundColor:n.colors.darkenedBgMix15}})),StyledDeployErrorContent=styled("div",{target:"e1veajc09"})(({theme:n})=>({"& > ul":{paddingLeft:n.spacing.twoXL}})),StyledErrorText=styled("div",{target:"e1veajc010"})(({theme:n,hasCodeBelow:i})=>({...i&&{marginBottom:n.spacing.lg}})),SettingsDialog=reactExports.memo(function n({isServerConnected:i,onClose:e,onSave:t,settings:o,allowRunOnSave:d,animateModal:p,metricsMgr:h,sessionInfo:y}){const{activeTheme:$,availableThemes:E,setTheme:M}=reactExports.useContext(ThemeContext),H=useEmotionTheme(),Z=reactExports.useRef(o),be=reactExports.useRef(!0),[ye,we]=reactExports.useState({...o}),Ce=reactExports.useCallback((Le,Me)=>{we(Ve=>({...Ve,[Le]:Me}))},[]);reactExports.useEffect(()=>{if(be.current){be.current=!1;return}Z.current=ye,t(Z.current)},[t,ye]);const xe=reactExports.useCallback(Le=>{Ce(Le.target.name,Le.target.checked)},[Ce]),Ne=reactExports.useCallback(Le=>{let Me;Le&&(Me=E.find(Ve=>Ve.name.startsWith("Custom Theme")?Ve.displayName===Le:Ve.name===Le)),Me===void 0&&(Me=E[0]),h.enqueue("menuClick",{label:"changeTheme"}),M(Me)},[M,h,E]),Fe=reactExports.useCallback(()=>E.map(Le=>Le.displayName??Le.name),[E]);return jsxs(Modal,{animate:p,isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:"Settings"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogBody,{children:[d&&jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Development"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{disabled:!i,type:"checkbox",name:"runOnSave",checked:ye.runOnSave&&i,onChange:xe})," ","Run on save"]}),jsx$1(StreamlitMarkdown$1,{source:"Automatically updates the app when the underlying code is updated.",allowHTML:!1,isCaption:!0})]}),jsxs(StyledFullRow,{children:[jsx$1(StyledHeader,{children:"Appearance"}),jsxs("label",{children:[jsx$1(StyledCheckbox,{type:"checkbox",name:"wideMode",checked:ye.wideMode,onChange:xe})," ","Wide mode"]}),jsx$1(StreamlitMarkdown$1,{source:" Turn on to make this app occupy the entire width of the screen.",allowHTML:!1,isCaption:!0})]}),!!E.length&&jsxs(StyledFullRow,{children:[jsx$1(StyledLabel,{children:"Choose app theme"}),jsx$1(UISelectbox,{options:Fe(),disabled:$.name===CUSTOM_THEME_NAME,onChange:Ne,value:$.displayName??$.name,placeholder:"",acceptNewOptions:!1})]}),y.isSet&&jsx$1(StyledFullRow,{"data-testid":"stVersionInfo",children:jsxs(StyledVersionRow,{"data-testid":"stVersionRow",children:[jsxs(StyledVersionText,{"data-testid":"stVersionText",children:["Made with Streamlit ",y.current.streamlitVersion]}),jsx$1(CopyButton$1,{text:y.current.streamlitVersion,buttonSize:H.iconSizes.lg,iconSize:H.iconSizes.md,className:"stVersionCopyButton","data-testid":"stVersionCopyButton",copyLabel:"Copy version to clipboard",copiedLabel:"Copied"})]})})]})})]})});function StreamlitDialog(n){switch(n.type){case DialogType.ABOUT:return jsx$1(AboutDialog,{...n});case DialogType.CLEAR_CACHE:return jsx$1(ClearCacheDialog,{...n});case DialogType.SETTINGS:return jsx$1(SettingsDialog,{...n});case DialogType.SCRIPT_COMPILE_ERROR:return jsx$1(ScriptCompileErrorDialog,{...n});case DialogType.WARNING:case DialogType.CONNECTION_ERROR:return jsx$1(WarningDialog,{...n});case DialogType.DEPLOY_DIALOG:return jsx$1(DeployDialog,{...n});case DialogType.DEPLOY_ERROR:return jsx$1(DeployErrorDialog,{...n});case void 0:return noDialog(n);default:return typeNotRecognizedDialog(n)}}function AboutDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"About"}),jsx$1(ModalBody$1,{children:n.aboutSectionMd&&jsx$1(StreamlitMarkdown$1,{source:n.aboutSectionMd,allowHTML:!1})})]})}function ClearCacheDialog(n){const e=["**Are you sure you want to clear the app's function caches?**","This will remove all cached entries from functions using","`@st.cache_data` and `@st.cache_resource`."].join(`
|
|
155
|
-
`);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:e,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:n.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.SECONDARY,onClick:n.confirmCallback,children:"Clear caches"})]})]})})}function ScriptCompileErrorDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitErrorCodeBlock$1,{children:n.exception?.message?n.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:n.onClose,children:"Close"})})]})}function WarningDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:n.title}),jsx$1(ModalBody$1,{children:n.msg})]})}function DeployErrorDialog({title:n,msg:i,onClose:e,onContinue:t,onTryAgain:o}){const d=()=>{e(),t&&t()};return jsxs(Modal,{isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:n}),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:i})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:o,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:d,children:t?"Continue anyway":"Close"})]})]})}function noDialog({onClose:n}){return jsx$1(Modal,{isOpen:!1,onClose:n})}function typeNotRecognizedDialog(n){return jsx$1(Modal,{isOpen:!0,onClose:n.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${n.type}" not recognized.`})})}function parseLinks(n){const i=[];let e=0,t=0;const o=/\[([^\]]+)\]\(([^)]+)\)/g;let d;for(;(d=o.exec(n))!==null;)d.index>e&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e,d.index)},t++)),i.push(jsx$1("a",{href:d[2],target:"_blank",rel:"noopener noreferrer",children:d[1]},t++)),e=d.index+d[0].length;return e<n.length&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e)},t++)),i}function DialogErrorMessage({message:n,codeBlock:i}){return jsxs(Fragment,{children:[jsx$1(StyledErrorText,{hasCodeBelow:!!i,children:parseLinks(n)}),i&&jsx$1(StreamlitErrorCodeBlock$1,{children:i})]})}const DialogErrorMessage$1=reactExports.memo(DialogErrorMessage),StyledActionButtonContainer=styled("div",{target:"eyud7440"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),StyledActionButtonIcon=styled("div",{target:"eyud7441"})(({theme:n,icon:i})=>({background:`url("${i}") no-repeat center / contain`,width:n.iconSizes.base,height:n.iconSizes.base})),StyledToolbarActions=styled("div",{target:"eyud7442"})({display:"flex",alignItems:"center",flexDirection:"row"});function ActionButton({label:n,icon:i,onClick:e}){return jsx$1("div",{className:"stToolbarActionButton","data-testid":"stToolbarActionButton",children:jsx$1(BaseButton,{onClick:e,kind:BaseButtonKind.HEADER_BUTTON,children:jsxs(StyledActionButtonContainer,{children:[i&&jsx$1(StyledActionButtonIcon,{"data-testid":"stToolbarActionButtonIcon",icon:i}),n&&jsx$1("span",{"data-testid":"stToolbarActionButtonLabel",children:n})]})})})}function ToolbarActions({sendMessageToHost:n,hostToolbarItems:i,metricsMgr:e}){return jsx$1(StyledToolbarActions,{className:"stToolbarActions","data-testid":"stToolbarActions",children:i.map(({key:t,label:o,icon:d})=>jsx$1(ActionButton,{label:o,icon:d,onClick:()=>{e.enqueue("menuClick",{label:t}),n({type:"TOOLBAR_ITEM_CALLBACK",key:t})}},t))})}const screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=styled("div",{target:"erg7rn60"})(({theme:n})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:n.sizes.full,height:n.sizes.full,fontSize:"40vh",color:n.colors.redTextColor,fontWeight:n.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${n.colors.grayTextColor}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:n,endCallback:i})=>{const[e,t]=reactExports.useState(n);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const d=e-1;d>=0&&t(d),d===0&&i()},children:jsx$1("span",{children:e})},`frame${e}`)},StyledRecordAudioLabel=styled("label",{target:"ez2zj4i0"})({margin:0}),StyledInstruction=styled("p",{target:"ez2zj4i1"})({margin:0}),ScreencastDialog=({onClose:n,toggleRecordAudio:i,recordAudio:e,startRecording:t})=>{const[o,d]=reactExports.useState(e),p=reactExports.useCallback(y=>{const{checked:$}=y.target;$!==o&&(d($),i())},[o,i]),h=reactExports.useCallback(()=>{t(),n()},[t,n]);return jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio","aria-label":"Also record audio",checked:o,onChange:p})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:h,children:"Start recording!"})})]})},StyledScreenCastWarningDialog=styled("div",{target:"e15jpqoz0"})({display:"flex"}),StyledUnsupportedScreenCastIcon=styled("div",{target:"e15jpqoz1"})(({theme:n})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:n.spacing.twoXL,marginLeft:n.spacing.sm,fontSize:n.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=styled("p",{target:"e15jpqoz2"})(({theme:n})=>({margin:n.spacing.none})),UnsupportedBrowserDialog=({onClose:n})=>jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"👾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),StyledVideo=styled("video",{target:"e1y8cy420"})(({theme:n})=>({width:n.sizes.full,borderRadius:n.radii.md})),StyledDialogContainer=styled("div",{target:"e1y8cy421"})(({theme:n})=>({display:"flex",flexDirection:"column",width:n.sizes.full})),StyledRow=styled("div",{target:"e1y8cy422"})(({theme:n})=>({display:"flex",flexDirection:"row",paddingTop:n.spacing.md,paddingBottom:n.spacing.md})),StyledFirstColumn=styled("div",{target:"e1y8cy423"})(({theme:n})=>({paddingRight:n.spacing.lg,textAlign:"right",color:n.colors.grayTextColor,fontWeight:n.fontWeights.bold,width:"6em"})),StyledSecondColumn=styled("div",{target:"e1y8cy424"})(({theme:n})=>({flex:1,paddingRight:n.spacing.lg,marginRight:"6em",[`@media (max-width: ${n.breakpoints.sm})`]:{marginRight:n.spacing.none}})),StyledVideoFormatInstructions=styled("p",{target:"e1y8cy425"})(({theme:n})=>({marginTop:n.spacing.sm,marginBottom:n.spacing.none,fontSize:n.fontSizes.sm})),StyledDownloadButtonContainer=styled("div",{target:"e1y8cy426"})(({theme:n})=>({marginTop:n.spacing.twoXS})),VideoRecordedDialog=({onClose:n,videoBlob:i,fileName:e})=>{const t=URL.createObjectURL(i),o=()=>{const d=document.createElement("a");d.setAttribute("href",t),d.setAttribute("download",`${e}.webm`),d.click(),n()};return jsxs(Modal,{isOpen:!0,onClose:n,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:t,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:o,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"😀"})]})]})]})})]})},LOG$2=loglevelExports.getLogger("withScreencast");function withScreencast(n){const i=e=>{const{testOverride:t}=e,o=reactExports.useRef(null),[d,p]=reactExports.useState("streamlit-screencast"),[h,y]=reactExports.useState(!1),[$,E]=reactExports.useState(void 0),[M,H]=reactExports.useState(t||"OFF"),Z=reactExports.useCallback(()=>{y(Fe=>!Fe)},[]),be=reactExports.useCallback(async()=>{if(!(M==="OFF"||isNullOrUndefined$1(o.current))){if(M==="COUNTDOWN"){H("OFF");return}if(M==="RECORDING"){const Fe=o.current;if(!Fe||Fe.getState()==="inactive")H("OFF");else{const Le=await Fe.stop();E(Le),H("PREVIEW_FILE")}}}},[M]),ye=reactExports.useCallback(async()=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}o.current=new ScreenCastRecorder({recordAudio:h,onErrorOrStop:()=>{be().catch(Fe=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Fe}`))}});try{await o.current.initialize()}catch(Fe){LOG$2.warn(`ScreenCastRecorder.initialize error: ${Fe}`),H("UNSUPPORTED");return}H("COUNTDOWN")},[h,be]),we=reactExports.useCallback(Fe=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}if(M==="OFF"){p(Fe),H("SETUP");return}be().catch(Le=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Le}`))},[M,be]),Ce=reactExports.useCallback(()=>{if(isNullOrUndefined$1(o.current))throw new Error("Countdown finished but recorder is null");o.current.start()?H("RECORDING"):be().catch(Le=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Le}`))},[be]),xe=reactExports.useCallback(()=>{H("OFF")},[]);return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(n,{...e,screenCast:{currentState:M,toggleRecordAudio:Z,startRecording:we,stopRecording:be}}),M==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:xe}),M==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:h,onClose:xe,startRecording:ye,toggleRecordAudio:Z}),M==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:Ce}),M==="PREVIEW_FILE"&&$&&jsx$1(VideoRecordedDialog,{onClose:xe,videoBlob:$,fileName:d})]})};return i.displayName=`withScreencast(${n.displayName||n.name||"Component"})`,hoistNonReactStatics(i,n)}const useViewportSize=()=>{const{activeTheme:n}=reactExports.useContext(ThemeContext),{innerWidth:i}=useWindowDimensionsContext(),e=parseInt(n.emotion.breakpoints.md,10);return{isMobile:i<e}},DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json",LOG$1=loglevelExports.getLogger("MetricsManager");class MetricsManager{constructor(i){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=e=>{this.appHash=e},this.setMetricsConfig=(e="")=>{this.metricsUrl=e},this.sessionInfo=i}async initialize({gatherUsageStats:i,sendMessageToHost:e}){this.sendMessageToHost=e,this.actuallySendMetrics=i&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(LOG$1.error("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),LOG$1.info("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(i,e={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([i,e]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(i,e))}setMetadata(i){this.metadata=i}async requestDefaultMetricsConfig(){const i=localStorageAvailable();if(i){const e=window.localStorage.getItem("stMetricsConfig");if(e){this.metricsUrl=e;return}}try{const e=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!e.ok)this.metricsUrl=void 0,LOG$1.error("Failed to fetch metrics config: ",e.status);else{const t=await e.json();this.metricsUrl=t.url??void 0,i&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(e){LOG$1.error("Failed to fetch metrics config:",e)}}send(i,e={}){const t=this.buildEventProto(i,e);this.metricsUrl==="postMessage"?this.postMessageEvent(i,t):this.track(t)}sendPendingEvents(){this.pendingEvents.forEach(([i,e])=>{this.send(i,e)}),this.pendingEvents=[]}async track(i){const e=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.toJSON())});await fetch(e)}postMessageEvent(i,e){this.sendMessageToHost({type:"METRICS_EVENT",eventName:i,data:e})}buildEventProto(i,e){const t=new MetricsEvent({event:i,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,appId:this.sessionInfo.current.appId,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,serverOs:this.sessionInfo.current.serverOS,hasDisplay:this.sessionInfo.current.hasDisplay,isWebdriver:isWebdriver(),...this.getContextData()});if(i==="menuClick")t.label=e.label;else if(i==="pageProfile")return new MetricsEvent({...t,...e});return t}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3,machineIdV4:this.sessionInfo.current.installationIdV4}}getHostTrackingData(){return this.metadata?pick$2(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const i="ajs_anonymous_id",e=localStorageAvailable(),t=getCookie(i),o=e?window.localStorage.getItem(i):null,d=new Date;if(d.setFullYear(new Date().getFullYear()+1),t)this.anonymousId=t,e&&window.localStorage.setItem(i,t);else if(o){try{this.anonymousId=JSON.parse(o)}catch{this.anonymousId=o}setCookie(i,this.anonymousId,d)}else this.anonymousId=v4(),setCookie(i,this.anonymousId,d),e&&window.localStorage.setItem(i,this.anonymousId)}}function isWebdriver(){return window.navigator?.webdriver??!1}class SessionEventDispatcher{constructor(){this.onSessionEvent=new distExports.Signal}handleSessionEventMsg(i){this.onSessionEvent.emit(i)}}const StyledApp=styled("div",{target:"e1vju3fw0"})(({theme:n})=>{const i=hasLightBackgroundColor(n);return{position:"absolute",background:n.colors.bgColor,color:n.colors.bodyText,top:n.spacing.none,left:n.spacing.none,right:n.spacing.none,bottom:n.spacing.none,colorScheme:i?"light":"dark",overflow:"hidden","@media print":{float:"none",height:n.sizes.full,position:"static",overflow:"visible"}}});function getBrowserInfo(){const i=new UAParser().getResult();return{browserName:i.browser.name||"Unknown",browserVersion:i.browser.version||"Unknown",deviceType:i.device.type||"desktop",os:i.os.name||"Unknown"}}const showDevelopmentOptions=(n,i)=>i==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==i||Config.ToolbarMode.MINIMAL==i?!1:n||isLocalhost();function getTitle(n){return n||"Streamlit"}class AppNavigation{constructor(i,e,t,o){this.hostCommunicationMgr=i,this.onUpdatePageUrl=e,this.onPageNotFound=t,this.onPageIconChange=o,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.hasSetDefaultFavicon=!1,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(i){return this.mainScriptHash!==i.mainScriptHash&&(this.isPageTitleSet=!1,this.isPageIconSet=!1,this.hasSetDefaultFavicon=!1),this.mainScriptHash=i.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=i.config?.hideSidebarNav??null),document.title=getTitle(""),[{currentPageScriptHash:i.pageScriptHash,hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handleNavigation(i){const{sections:e,position:t,appPages:o}=i;this.appPages=o,this.hideSidebarNav=t===Navigation.Position.HIDDEN;const d=i.pageScriptHash,p=o.find($=>$.pageScriptHash===d),h=o.find($=>$.isDefault);this.mainPage=h;const y=p.urlPathname;if(!this.isPageTitleSet){const $=getTitle(p.pageName);document.title=$,this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:p.pageName??""})}return!this.isPageIconSet&&p.icon&&this.onPageIconChange(p.icon),this.onUpdatePageUrl(h.urlPathname??"",y,p.isDefault??!1),[{appPages:o,navSections:e,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:i.expanded,currentPageScriptHash:d},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:o}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:p.isDefault?"":y,currentPageScriptHash:d})}]}handlePageNotFound(i){return this.onPageNotFound(i),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}findPageByUrlPath(i){return this.appPages.find(e=>i.endsWith("/"+e.urlPathname))??this.mainPage}handlePageConfigChanged(i){i.favicon&&(this.isPageIconSet=!0),i.title&&(this.isPageTitleSet=!0)}clearPageElements(i,e){return i.filterMainScriptElements(e)}}function includeIfDefined(n){return Object.entries(n).reduce((i,[e,t])=>(t!==void 0&&(i[e]=t),i),{})}function preferWindowValue(n,i){return n??i}function reconcileHostConfigValues(n,i){if(!n)return i;const e=isValidAllowedOrigins(n.allowedOrigins)?n.allowedOrigins:void 0;return{...i,allowedOrigins:preferWindowValue(e,i.allowedOrigins),useExternalAuthToken:preferWindowValue(n.useExternalAuthToken,i.useExternalAuthToken),enableCustomParentMessages:preferWindowValue(n.enableCustomParentMessages,i.enableCustomParentMessages),blockErrorDialogs:preferWindowValue(n.blockErrorDialogs,i.blockErrorDialogs),mapboxToken:preferWindowValue(n.mapboxToken,i.mapboxToken),disableFullscreenMode:preferWindowValue(n.disableFullscreenMode,i.disableFullscreenMode),enforceDownloadInNewTab:preferWindowValue(n.enforceDownloadInNewTab,i.enforceDownloadInNewTab),resourceCrossOriginMode:preferWindowValue(n.resourceCrossOriginMode,i.resourceCrossOriginMode),setAnonymousCrossOriginPropertyOnMediaElements:i.setAnonymousCrossOriginPropertyOnMediaElements,metricsUrl:preferWindowValue(n.metricsUrl,i.metricsUrl)}}var define_PACKAGE_METADATA_default={version:"1.53.1"};const INITIAL_SCRIPT_RUN_ID="<null>",LOG=loglevelExports.getLogger("App");class App extends reactExports.PureComponent{constructor(i){super(i),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.appRootRef=reactExports.createRef(),this.deferredFileListeners=new Map,this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(e,t,o)=>{const d={type:DialogType.DEPLOY_ERROR,title:e,msg:t,onContinue:o,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(d)},this.handleThemeMessage=(e,t)=>{const[,o,d]=createPresetThemes(),p=isPresetTheme(this.props.theme.activeTheme);e===o.name&&p?this.props.theme.setTheme(o):e===d.name&&p?this.props.theme.setTheme(d):t&&this.props.theme.setImportedTheme(t)},this.handleConnectionStateChanged=e=>{if(LOG.info(`Connection state changed from ${this.state.connectionState} to ${e}`),e===ConnectionState.CONNECTED){LOG.info("Reconnected to server."),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});const t=this.state.scriptRunState===ScriptRunState.RUNNING,o=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED;!this.sessionInfo.last||t||o||this.state.fragmentIdsThisRun.length>0||this.state.autoReruns.length>0?(LOG.info("Requesting a script run."),this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})):this.state.dialog?.type===DialogType.CONNECTION_ERROR&&this.setState({dialog:null}),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:e!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect();this.isInitializingConnectionManager?this.setState({connectionState:e}):reactDomExports.flushSync(()=>{this.setState({connectionState:e})})},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleCustomParentMessage=e=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:e.message}):LOG.error("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=e=>{const t=(o,d,p)=>{const h=o[d];if(h in p)return p[h](o[h]);throw new Error(`Cannot handle ${d} "${h}".`)};try{t(e,"type",{newSession:o=>this.handleNewSession(o),sessionStatusChanged:o=>this.handleSessionStatusChanged(o),sessionEvent:o=>this.handleSessionEvent(o),delta:o=>this.handleDeltaMsg(o,e.metadata),pageConfigChanged:o=>this.handlePageConfigChanged(o),pageInfoChanged:o=>this.handlePageInfoChanged(o),pageNotFound:o=>this.handlePageNotFound(o),gitInfoChanged:o=>this.handleGitInfoChanged(o),scriptFinished:o=>this.handleScriptFinished(o),pageProfile:o=>this.handlePageProfileMsg(o),autoRerun:o=>this.handleAutoRerun(o),fileUrlsResponse:o=>this.uploadClient.onFileURLsResponse(o),deferredFileResponse:o=>this.handleDeferredFileResponse(o),parentMessage:o=>this.handleCustomParentMessage(o),logo:o=>this.handleLogo(o,e.metadata),navigation:o=>this.handleNavigation(o),authRedirect:o=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:o.url}):window.location.href=o.url}})}catch(o){const d=ensureError(o);LOG.error(d),this.showError("Bad message format",{message:d.message})}},this.handleLogo=(e,t)=>{this.setState(o=>({elements:o.elements.appRootWithLogo(e,{activeScriptHash:t.activeScriptHash,scriptRunId:o.scriptRunId})}))},this.handlePageConfigChanged=e=>{const{title:t,favicon:o,layout:d,initialSidebarState:p,initialSidebarWidth:h,menuItems:y}=e;this.appNavigation.handlePageConfigChanged(e),t&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:t}),document.title=t),o&&this.onPageIconChanged(o),d!==this.state.layout&&d!==PageConfig.Layout.LAYOUT_UNSET&&this.setState(E=>({layout:d,userSettings:{...E.userSettings,wideMode:d===PageConfig.Layout.WIDE}})),p!==this.state.initialSidebarState&&p!==PageConfig.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:p}));const $=h?.pixelWidth!==void 0?h.pixelWidth:void 0;notNullOrUndefined($)&&$!==this.state.initialSidebarWidth&&this.setState(()=>({initialSidebarWidth:$})),y&&this.setState(E=>(y.clearAboutMd&&(y.aboutSectionMd=""),{menuItems:{...E.menuItems,...y}}))},this.handleQueryParamsFromWidget=e=>{this.setState({queryParams:e}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:e?`?${e}`:""})},this.handlePageInfoChanged=e=>{const{queryString:t}=e,o=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",o),this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.onPageNotFound=e=>{const t=e?`You have requested page /${e}, 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",{message:`${t}. Running the app's main page.`})},this.handlePageNotFound=e=>{const{pageName:t}=e;this.maybeSetState(this.appNavigation.handlePageNotFound(t))},this.onPageIconChanged=e=>{handleFavicon(e,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=e=>{this.setState({navigationPosition:e.position}),this.maybeSetState(this.appNavigation.handleNavigation(e))},this.handlePageProfileMsg=e=>{const t=PageProfile.toObject(e),o=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...t,isFragmentRun:!!t.isFragmentRun,numPages:this.state.appPages?.length,pageScriptHash:this.state.currentPageScriptHash,activeTheme:this.props.theme?.activeTheme?.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:o})},this.handleAutoRerun=e=>{const t=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(e.fragmentId,!0)},e.interval*1e3);this.setState(o=>({autoReruns:[...o.autoReruns,t]}))},this.handleSessionStatusChanged=e=>{this.setState(t=>{let{scriptRunState:o}=t,{dialog:d}=t;return e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.STOP_REQUESTED?(o=ScriptRunState.RUNNING,notNullOrUndefined(d)&&d.type===DialogType.SCRIPT_COMPILE_ERROR&&(d=void 0)):!e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&t.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(o=ScriptRunState.NOT_RUNNING),{userSettings:{...t.userSettings,runOnSave:!!e.runOnSave},dialog:d,scriptRunState:o,scriptChangedOnDisk:e.scriptIsRunning?!1:t.scriptChangedOnDisk}})},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),e.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const t={type:DialogType.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(t,e.scriptCompilationException?.message??"No message")}else e.type==="scriptChangedOnDisk"&&this.setState({scriptChangedOnDisk:!0})},this.maybeUpdatePageUrl=(e,t,o)=>{const d=this.getBaseUriParts();if(d){let p;StreamlitConfig.MAIN_PAGE_BASE_URL?p=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:p=d.pathname;const h=extractPageNameFromPathName(document.location.pathname,p);if((h===""?e:h)!==t){const $=o?"":t,E=this.state.queryParams||preserveEmbedQueryParams(),M=E?`?${E}`:"",Z=`${p==="/"?"":p}/${$}${M}`;window.history.pushState({},"",Z)}}},this.handleNewSession=e=>{const t=e.initialize;if(this.hasStreamlitVersionChanged(t)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(e);const{appHash:o,currentPageScriptHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:y,fragmentIdsThisRun:$,pageScriptHash:E,mainScriptHash:M}=e;if($.length)this.setState({fragmentIdsThisRun:$,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Z=e.config,be=e.customTheme;this.processThemeInput(be),this.setState({allowRunOnSave:Z.allowRunOnSave,hideTopBar:Z.hideTopBar,toolbarMode:Z.toolbarMode,showErrorLinks:Z.showErrorLinks,latestRunTime:performance.now(),mainScriptHash:M,fragmentIdsThisRun:$}),this.maybeSetState(this.appNavigation.handleNewSession(e)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged("./favicon.png"))}const H=hashString(this.sessionInfo.current.installationId+y);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(H),this.metricsMgr.enqueue("updateReport"),o===H&&d===E?this.setState(Z=>({elements:Z.elements.clearTransientNodes($),scriptRunId:p})):this.clearAppState(H,p,h,M)},this.handleInitialization=e=>{const t=e.initialize,o=e.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(e)),this.metricsMgr.initialize({gatherUsageStats:o.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(t.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:e}=this.state,t=this.appNavigation.findPageByUrlPath(document.location.pathname),o=document.location.toString().includes("#"),d=t?.pageScriptHash===e;isNullOrUndefined$1(t)||o&&d||this.onPageChange(t.pageScriptHash,void 0,!0)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=JSON.parse(JSON.stringify(e)),o=sortThemeInputKeys(t);return hashString(JSON.stringify(o))},this.closeDialog=()=>{this.state.dialog?.type===DialogType.CONNECTION_ERROR?this.setState({dialog:void 0,connectionErrorDismissed:!0}):this.setState({dialog:void 0})},this.saveSettings=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:o}=e;if(this.setState({userSettings:e}),t!==o&&this.isServerConnected()){const d=new BackMsg({setRunOnSave:o});d.type="setRunOnSave",this.sendBackMsg(d)}},this.handleDeltaMsg=(e,t)=>{this.setState(o=>({elements:o.elements.applyDelta(o.scriptRunId,e,t)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const e=new BackMsg({debugShutdownRuntime:!0});e.type="debugShutdownRuntime",this.sendBackMsg(e)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const e=new BackMsg({debugDisconnectWebsocket:!0});e.type="debugDisconnectWebsocket",this.sendBackMsg(e)}},this.debugClearForwardMsgCache=()=>{isLocalhost()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(e=>{clearInterval(e)}),this.setState({autoReruns:[]})},this.rerunScript=(e=!1)=>{if(this.closeDialog(),!this.isServerConnected()){LOG.error("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}),e===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){LOG.error("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=(e,t,o)=>{const{elements:d,mainScriptHash:p}=this.state;this.cleanupAutoReruns();const h=this.appNavigation.clearPageElements(d,p),y=new Set(Array.from(h.getElements()).map($=>getElementId($)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(y),void 0,e,void 0,t,o)},this.isAppInReadyState=e=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&e.scriptRunState===ScriptRunState.RUNNING&&e.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(e,t,o,d,p,h)=>{const y=this.getBaseUriParts();if(!y){LOG.error("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:$}=this.state;let E=p??this.getQueryString(),M="";const H={timezone:getTimezone$1(),timezoneOffset:getTimezoneOffset(),locale:getLocaleLanguage(),url:getUrl(),isEmbedded:isEmbed(),colorScheme:this.getThemeColorScheme()};if(o){if(o!==$&&!h){const be=this.widgetMgr.filterParamsForPageChange(preserveEmbedQueryParams());E=getQueryString(p,be),this.setState({queryParams:E}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:E?`?${E}`:""})}}else if($)o=$;else{let be;StreamlitConfig.MAIN_PAGE_BASE_URL?be=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:be=y.pathname,M=extractPageNameFromPathName(document.location.pathname,be),o=""}const Z=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new BackMsg({rerunScript:{queryString:E,widgetStates:e,pageScriptHash:o,pageName:M,fragmentId:t,isAutoRerun:d,cachedMessageHashes:Z,contextInfo:H}})),this.hasReceivedNewSession=!1},this.stopScript=()=>{if(!this.isServerConnected()){LOG.error("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const e=new BackMsg({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{const e={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:this.state.dialog?.type===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr,gitInfo:this.state.gitInfo};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const e=new BackMsg({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const e=new BackMsg({appHeartbeat:!0});e.type="appHeartbeat",this.sendBackMsg(e)}else LOG.error("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(LOG.info(e),this.connectionManager.sendMessage(e)):LOG.error(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.state.connectionErrorDismissed||this.showError("Connection error",e,DialogType.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(e=!0)=>{const t={type:DialogType.SETTINGS,sessionInfo:this.sessionInfo,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave&&showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),onSave:this.saveSettings,onClose:()=>{},animateModal:e,metricsMgr:this.metricsMgr};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:DialogType.ABOUT,onClose:this.closeDialog,aboutSectionMd:e?.aboutSectionMd};this.openDialog(t)},this.printCallback=()=>{const{scriptRunState:e}=this.state;if(e!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let t;try{const o=getIFrameEnclosingApp(this.embeddingId);o?.contentWindow?t=o.contentWindow.window:t=window}catch{t=window}finally{t||(t=window),t.print()}},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast,o=getScreencastTimestamp();t(`streamlit-${e}-${o}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.setLibConfig=e=>{this.setState({libConfig:e})},this.setAppConfig=e=>{this.setState({appConfig:e})},this.addScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.concat(e)}))},this.removeScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.filter(d=>d!==e)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.state,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},this.getThemeColorScheme=()=>{const{activeTheme:e}=this.props.theme;return hasLightBackgroundColor(e.emotion)?"light":"dark"},this.isInCloudEnvironment=()=>{const{hostMenuItems:e}=this.state;return e&&e?.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=(e,t)=>{const o=this.isServerConnected(),d=this.sessionInfo.isSet;if(o&&d){const p=new BackMsg({fileUrlsRequest:{requestId:e,fileNames:t.map(h=>h.name),sessionId:this.sessionInfo.current.sessionId}});p.type="fileUrlsRequest",this.sendBackMsg(p)}else LOG.warn(`Cannot request file URLs (isServerConnected: ${o}, isSessionInfoSet: ${d})`),this.uploadClient.onFileURLsResponse({responseId:e,errorMsg:"Connection lost. Please wait for the app to reconnect, then try again."})},this.requestDeferredFile=e=>{const t=this.isServerConnected(),o=this.sessionInfo.isSet;if(!t||!o)return Promise.reject(new Error("Not connected to server or session not initialized"));const d=Promise.withResolvers(),p=this.deferredFileListeners.get(e)??new Set,h=$=>{p.delete(h),d.resolve($)};p.add(h),this.deferredFileListeners.set(e,p);const y=new BackMsg({deferredFileRequest:{fileId:e,sessionId:this.sessionInfo.current.sessionId}});return y.type="deferredFileRequest",this.sendBackMsg(y),d.promise},this.handleDeferredFileResponse=e=>{const t=this.deferredFileListeners.get(e.fileId);if(!(!t||t.size===0)){for(const o of Array.from(t))try{o(e)}catch{}this.deferredFileListeners.delete(e.fileId)}},this.handleKeyDown=(e,t)=>{if(!((e==="c"||e==="r")&&isKeyboardEventFromEditableTarget(t)))switch(e){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=e=>{e==="esc"&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{const{menuItems:e}=this.state;return!!(e?.aboutSectionMd||e?.getHelpUrl&&!e?.hideGetHelp||e?.reportABugUrl&&!e?.hideReportABug)},this.shouldShowToolbar=(e,t)=>{const o=!isEmbed()||isToolbarDisplayed();let d;return this.state.toolbarMode===Config.ToolbarMode.MINIMAL?d=e.length>0||t.length>0||this.hasAppDefinedMenuItems():d=!0,o&&d},ensureHotkeysFilterConfigured(),enablePatches(),enableMapSet(),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},connectionErrorDismissed:!1,layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,initialSidebarWidth:void 0,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],showErrorLinks:Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO,themeHash:"",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:window.location?.search?.replace(/^\?/,"")??"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Navigation.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.widgetMgr.setQueryParamsChangeHandler(this.handleQueryParamsFromWidget),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:i.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:e=>{this.setState({inputsDisabled:e})},themeChanged:this.handleThemeMessage,pageChanged:e=>this.onPageChange(e),isOwnerChanged:e=>this.setState({isOwner:e}),fileUploadClientConfigChanged:e=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(e)},hostMenuItemsChanged:e=>{this.setState({hostMenuItems:e})},hostToolbarItemsChanged:e=>{this.setState({hostToolbarItems:e})},hostHideSidebarNavChanged:e=>{this.setState({hostHideSidebarNav:e})},sidebarChevronDownshiftChanged:e=>{this.setState({sidebarChevronDownshift:e})},pageLinkBaseUrlChanged:e=>{this.setState({pageLinkBaseUrl:e})},queryParamsChanged:e=>{this.setState({queryParams:e})},deployedAppMetadataChanged:e=>{this.setState({deployedAppMetadata:e})},restartWebsocketConnection:()=>{this.connectionManager||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),this.initializeConnectionManager())},terminateWebsocketConnection:()=>{this.connectionManager?.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0,sendClientError:(e,t,o,d,p)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:e,error:t,message:o,source:d,customComponentName:p})}}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:e=>this.widgetMgr.setFormsWithUploadsInProgress(e),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}applyInitialHostConfig(){if(!isHostConfigBypassEnabled())return;const i=StreamlitConfig.HOST_CONFIG,e=includeIfDefined({allowedOrigins:i.allowedOrigins,useExternalAuthToken:i.useExternalAuthToken,enableCustomParentMessages:i.enableCustomParentMessages,blockErrorDialogs:i.blockErrorDialogs});this.hostCommunicationMgr.setAllowedOrigins(e),this.setAppConfig(e);const t=includeIfDefined({mapboxToken:i.mapboxToken,disableFullscreenMode:i.disableFullscreenMode,enforceDownloadInNewTab:i.enforceDownloadInNewTab,resourceCrossOriginMode:i.resourceCrossOriginMode});Object.keys(t).length>0&&this.setLibConfig(t),i.metricsUrl!==void 0&&this.metricsMgr.setMetricsConfig(i.metricsUrl)}initializeConnectionManager(){this.isInitializingConnectionManager=!0,this.applyInitialHostConfig(),this.connectionManager=new ConnectionManager({getLastSessionId:()=>this.sessionInfo.last?.sessionId,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,sendClientError:(i,e,t)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:"Websocket Connection",error:i,message:e,source:t})},onHostConfigResp:i=>{const e=reconcileHostConfigValues(StreamlitConfig.HOST_CONFIG,i),{allowedOrigins:t,useExternalAuthToken:o,disableFullscreenMode:d,enableCustomParentMessages:p,mapboxToken:h,enforceDownloadInNewTab:y,metricsUrl:$,blockErrorDialogs:E,setAnonymousCrossOriginPropertyOnMediaElements:M,resourceCrossOriginMode:H}=e,Z={allowedOrigins:t,useExternalAuthToken:o,enableCustomParentMessages:p,blockErrorDialogs:E},be={mapboxToken:h,disableFullscreenMode:d,enforceDownloadInNewTab:y,resourceCrossOriginMode:H??(M?"anonymous":void 0)};this.metricsMgr.setMetricsConfig($),this.hostCommunicationMgr.setAllowedOrigins(Z),this.setAppConfig(Z),this.setLibConfig(be)}}),this.isInitializingConnectionManager=!1}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const i=document.querySelectorAll("[data-iframe-height]"),e=Array.from(i).map(t=>Math.ceil(t.getBoundingClientRect().bottom));return Math.max(0,...e)}},__vitePreload(()=>import("./iframeResizer.contentWindow.uEFLXEg3.js").then(i=>i.i),[],import.meta.url)),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(i,e){if(window.prerenderReady===!1&&this.isAppInReadyState(e)&&(window.prerenderReady=!0),this.state.scriptRunState!==e.scriptRunState){if(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING)try{measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING)}catch{}this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}}componentWillUnmount(){this.connectionManager?.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}maybeShowErrorDialog(i,e){const{blockErrorDialogs:t}=this.state.appConfig;t||this.openDialog(i);const d=i.type===DialogType.SCRIPT_COMPILE_ERROR?i.type:i.title;this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR_DIALOG",error:d,message:e})}showError(i,e,t=DialogType.WARNING){LOG.error(e.message);const o={type:t,title:i,msg:jsx$1(DialogErrorMessage$1,{message:e.message,codeBlock:e.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(o,e.message)}hasStreamlitVersionChanged(i){let e;if(StreamlitConfig.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?e=define_PACKAGE_METADATA_default.version:this.sessionInfo.isSet&&(e=this.sessionInfo.current.streamlitVersion),e){const{environmentInfo:t}=i;if(notNullOrUndefined(t)&¬NullOrUndefined(t.streamlitVersion))return e!=t.streamlitVersion}return!1}maybeSetState(i){if(i){const[e,t]=i;this.setState(e,t)}}processThemeInput(i){const e=this.createThemeHash(i);if(e===this.state.themeHash)return;this.setState({themeHash:e});const t=!isPresetTheme(this.props.theme.activeTheme);if(i){const o=createCustomThemes(i);this.props.theme.addThemes(o,{keepPresetThemes:!1});const d=getPreferredTheme(o);if(d)this.setAndSendTheme(d);else if(o.length>1){const p=o.findIndex(h=>h.name===CUSTOM_THEME_AUTO_NAME);this.setAndSendTheme(o[p])}else this.setAndSendTheme(o[0])}else if(this.props.theme.addThemes([]),t){const d=getPreferredTheme([lightTheme,darkTheme]);d?this.setAndSendTheme(d):this.setAndSendTheme(createAutoTheme())}(i?.fontFaces&&i.fontFaces.length>0||i?.fontSources&&i.fontSources.length>0)&&this.props.theme.setFonts(i)}handleScriptFinished(i){(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&(Promise.resolve().then(()=>{this.state.scriptFinishedHandlers.forEach(e=>e())}),(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:e,fragmentIdsThisRun:t,elements:o})=>({elements:o.clearStaleNodes(e,t)}),()=>{const e=new Set(Array.from(this.state.elements.getElements()).map(t=>getElementId(t)).filter(notUndefined));this.widgetMgr.removeInactive(e)}),this.connectionManager!==null&&i!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.hasReceivedNewSession&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge,this.state.fragmentIdsThisRun))}clearAppState(i,e,t,o){this.setState(d=>{const p=this.appNavigation.clearPageElements(d.elements,o);return{scriptRunId:e,scriptName:t,appHash:i,elements:p}},()=>{const d=new Set(Array.from(this.state.elements.getElements()).map(p=>getElementId(p)).filter(notUndefined));this.widgetMgr.removeInactive(d)})}openDialog(i){this.setState({dialog:i})}render(){const{allowRunOnSave:i,connectionState:e,dialog:t,elements:o,initialSidebarState:d,menuItems:p,isFullScreen:h,scriptRunId:y,scriptRunState:$,userSettings:E,hideTopBar:M,hideSidebarNav:H,expandSidebarNav:Z,currentPageScriptHash:be,hostHideSidebarNav:ye,pageLinkBaseUrl:we,sidebarChevronDownshift:Ce,hostMenuItems:xe,hostToolbarItems:Ne,libConfig:Fe,inputsDisabled:Le,appPages:Me,navSections:Ve,navigationPosition:Ke,scriptChangedOnDisk:ze}=this.state,je=this.props.isMobileViewport?Navigation.Position.SIDEBAR:Ke,We=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),Xe=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":E.wideMode}),Qe=t?StreamlitDialog({...t,onClose:this.closeDialog}):null,Ye=this.shouldShowToolbar(xe,Ne),He=!isEmbed()||isPaddingDisplayed(),rt=isScrollingHidden();return jsx$1(StreamlitContextProvider$1,{initialSidebarState:d,initialSidebarWidth:this.state.initialSidebarWidth,appRootRef:this.appRootRef,pageLinkBaseUrl:we,currentPageScriptHash:be,onPageChange:this.onPageChange,navSections:Ve,appPages:Me,appLogo:o.logo,sidebarChevronDownshift:Ce,expandSidebarNav:Z,hideSidebarNav:H||ye||je===Navigation.Position.TOP,isFullScreen:h,setFullScreen:this.handleFullScreen,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language,formsData:this.state.formsData,scriptRunState:$,scriptRunId:y,mapboxToken:Fe.mapboxToken,enforceDownloadInNewTab:Fe.enforceDownloadInNewTab,resourceCrossOriginMode:Fe.resourceCrossOriginMode,showErrorLinks:this.state.showErrorLinks,requestDeferredFile:this.requestDeferredFile,children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{ref:this.appRootRef,className:Xe,"data-testid":"stApp","data-test-script-state":y==INITIAL_SCRIPT_RUN_ID?"initial":$,"data-test-connection-state":e,children:[jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:o,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:je,wideMode:E.wideMode,embedded:isEmbed(),showPadding:He,disableScrolling:rt,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:Le||e!==ConnectionState.CONNECTED,showToolbar:Ye,disableFullscreenMode:Fe.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:jsxs(Fragment,{children:[!M&&jsx$1(StatusWidget,{connectionState:e,scriptRunState:$,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:i,showScriptChangedActions:ze}),!M&&jsx$1(ToolbarActions,{hostToolbarItems:Ne,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!ze&&jsx$1(DeployButton,{onClick:this.deployButtonClicked}),!M&&jsx$1(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:xe,developmentMode:We,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:p,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]})}),Qe]})})})}}const AppWithScreenCast=withScreencast(App),AppWrapper=n=>{const{isMobile:i}=useViewportSize();return jsx$1(AppWithScreenCast,{...n,isMobileViewport:i})},getSystemCustomTheme=n=>n.find(i=>i.name===(getSystemThemePreference()==="dark"?CUSTOM_THEME_DARK_NAME:CUSTOM_THEME_LIGHT_NAME)),createAutoCustomTheme=n=>({...n,name:CUSTOM_THEME_AUTO_NAME,displayName:AUTO_THEME_NAME});function useThemeManager(){const n=getDefaultTheme(),[i,e]=reactExports.useState(n),[t,o]=reactExports.useState(n.themeInput?.fontFaces??[]),[d,p]=reactExports.useState(null),[h,y]=reactExports.useState(()=>[...createPresetThemes(),...isPresetTheme(n)?[]:[n]]),$=reactExports.useRef(h);reactExports.useEffect(()=>{$.current=h},[h]);const E=reactExports.useCallback((we,Ce={})=>{const{keepPresetThemes:xe=!0}=Ce,Ne=[...xe?createPresetThemes():[],...we];$.current=Ne,y(Ne)},[]),M=reactExports.useCallback((we,Ce={})=>{const{persist:xe=!0}=Ce;e(Ne=>we!==Ne?(xe&&setCachedThemeSelection(we),we):Ne)},[]),H=reactExports.useCallback(we=>{if(we.name===AUTO_THEME_NAME){M(getHostSpecifiedTheme());return}if(we.name===CUSTOM_THEME_AUTO_NAME){const Ce=getSystemCustomTheme($.current);if(Ce){M(createAutoCustomTheme(Ce));return}}M(we)},[M]),Z=reactExports.useCallback(()=>{const we=getHostSpecifiedTheme();i.name===AUTO_THEME_NAME&&M(we,{persist:!1});const Ce=h.filter(Ne=>Ne.name!==AUTO_THEME_NAME),xe=Ce.some(Ne=>Ne.name===CUSTOM_THEME_AUTO_NAME);if(xe&&i.name===CUSTOM_THEME_AUTO_NAME){const Ne=getSystemCustomTheme(Ce);Ne&&M(createAutoCustomTheme(Ne),{persist:!1})}y(xe?Ce:[createAutoTheme(),...Ce])},[i.name,h,M]),be=reactExports.useCallback(we=>{we.fontFaces&&o(we.fontFaces);const Ce=[...we.fontSources||[],...we.sidebar?.fontSources||[]],xe={};Ce.forEach(Ne=>{Ne.sourceUrl&&Ne.configName&&(xe[Ne.configName]=Ne.sourceUrl)}),p(Object.keys(xe).length>0?xe:null)},[]),ye=reactExports.useCallback(we=>{be(we);const Ce=new CustomThemeConfig(we),xe=createTheme(CUSTOM_THEME_NAME,Ce);H(xe)},[be,H]);return reactExports.useEffect(()=>{const we=window.matchMedia("(prefers-color-scheme: dark)");return we.addEventListener("change",Z),window.addEventListener("afterprint",Z),()=>{window.removeEventListener("afterprint",Z),we.removeEventListener("change",Z)}},[Z]),[{setTheme:H,activeTheme:i,addThemes:E,availableThemes:h,setFonts:be,setImportedTheme:ye},t,d]}const ThemedApp=({streamlitExecutionStartedAt:n})=>{const[i,e,t]=useThemeManager(),{activeTheme:o}=i;return jsx$1(RootStyleProvider,{theme:o,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[e.length>0&&jsx$1(FontFaceDeclaration,{fontFaces:e}),t&&jsx$1(FontSources,{fontSources:t}),jsx$1(AppWrapper,{theme:i,streamlitExecutionStartedAt:n})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"}),rootDomNode=document.getElementById("root");if(!rootDomNode)throw new Error("#root DOM element not found");const reactRoot=clientExports.createRoot(rootDomNode);reactRoot.render(jsx$1(reactExports.StrictMode,{children:jsx$1(HelmetProvider,{children:jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})})})}));export{Fragment as $,ADJOINED as A,BaseButtonKind as B,Checkbox$1 as C,DynamicButtonLabel as D,EmotionIconBase as E,StyledDropdownListItem as F,isPropValid as G,DownloadContext as H,StyledErrorMessage as I,toString$2 as J,findAndReplace as K,LibConfigContext as L,Arrow$2 as M,range as N,isNumericType as O,Placement as P,DataFrameCellType as Q,useCrossOriginAttribute as R,StreamlitConfig as S,TooltipIcon as T,UISelectbox as U,loglevelExports as V,useRequiredContext as W,NavigationContext as X,DynamicIcon as Y,toaster as Z,_extends$A as _,BaseButtonTooltip as a,cacheHas as a$,Kind as a0,AlertElement$1 as a1,Video$1 as a2,keyframes as a3,StyledWidgetInstructions as a4,isFromMac as a5,shouldWidthStretch as a6,Feedback$1 as a7,FormsContext as a8,StyledFormSubmitContent as a9,Tooltip$1 as aA,IsSidebarContext as aB,LabelVisibilityOptions as aC,React as aD,find as aE,parse$2 as aF,parse$3 as aG,normalize$1 as aH,html$2 as aI,svg as aJ,useCopyToClipboard as aK,ACCESSIBILITY_TYPE as aL,Popover$2 as aM,ensureError as aN,ErrorElement as aO,hexToRgb as aP,withWrapper as aQ,__vitePreload as aR,blend as aS,toExportedTheme as aT,ArrowDataframe as aU,useTimeout as aV,Skeleton$1 as aW,Skeleton as aX,queryString as aY,ComponentRegistry as aZ,SetCache as a_,Form$1 as aa,isInForm as ab,convertRemToPx as ac,WidgetLabelHelpIcon as ad,WidgetLabel as ae,isMaterialIcon as af,getBorderColor as ag,TextInput$1 as ah,getDefaultExportFromCjs as ai,darken as aj,PortalContext as ak,reactDomExports as al,classNames as am,requireReact as an,styled$1 as ao,isFocusVisible as ap,getOverride as aq,getOverrideProps as ar,root$4 as as,toNumber as at,isObject$1 as au,mergeOverrides as av,CUSTOM_INPUT_TYPE as aw,ChevronDown$1 as ax,PLACEMENT$1 as ay,Icon$2 as az,BaseButton as b,baseSlice as b$,baseRest as b0,isArrayLikeObject as b1,useSelectCommon as b2,StyledValueContainer as b3,Select as b4,VirtualDropdown as b5,TYPE as b6,Metric$1 as b7,transparentize as b8,StyledWidgetLabel as b9,getTimezone as bA,debounce$2 as bB,isEqual$1 as bC,shouldHeightStretch as bD,__awaiter as bE,PropTypes as bF,isFromWindows as bG,requirePropTypes as bH,merge$1 as bI,getIncreasingGreen as bJ,getDecreasingRed as bK,getBlue80 as bL,getGray30 as bM,getGray70 as bN,getGray90 as bO,keysToSnakeCase as bP,PlotlyChart$1 as bQ,themeColors as bR,isMobile as bS,UploadedFileInfo as bT,FileUploaderState as bU,ThemeContext$1 as bV,useExecuteWhenChanged as bW,arrayComparator as bX,pick$2 as bY,Slider$1 as bZ,zip as b_,Global as ba,getCrossOriginAttribute as bb,_arrayLikeToArray as bc,_unsupportedIterableToArray as bd,ViewStateContext as be,useWindowDimensionsContext as bf,LocaleContext as bg,ButtonGroup$1 as bh,LabelVisibility as bi,StyledButtonGroup as bj,NumberInput$1 as bk,useStyletron as bl,mergeOverride as bm,toObjectOverride as bn,Icon$1 as bo,DeleteAlt$1 as bp,forkBlur as bq,forkFocus as br,addCssUnit as bs,convert as bt,visitParents as bu,SKIP as bv,isNamedColor as bw,resolveNamedColor as bx,isDatetimeType as by,isDateType as bz,BaseButtonSize as c,_classCallCheck as c$,baseToString as c0,trimmedEndIndex as c1,util_bn_ as c2,util_int_ as c3,util_bit_ as c4,util_math_ as c5,util_buffer_ as c6,util_vector_ as c7,util_pretty_ as c8,util_interval_ as c9,chatInputAcceptFileProtoValueToEnum as cA,requireReactDom as cB,UIDConsumer as cC,StatefulMenu as cD,ok as cE,stringify$2 as cF,stringify$1 as cG,pointStart as cH,visit as cI,pointEnd as cJ,structuredClone$1 as cK,identity as cL,arrayEach as cM,baseEach as cN,isArray$1 as cO,arrayMap as cP,baseMap as cQ,baseIteratee as cR,baseForOwn as cS,isObjectLike as cT,baseGetTag as cU,isPlainObject$3 as cV,cloneDeep$1 as cW,StatefulPopover as cX,_typeof$e as cY,_inherits as cZ,_createSuper as c_,compareTypes as ca,compareFields as cb,compareSchemas as cc,getAugmentedNamespace as cd,isStringType as ce,isTimeType as cf,isPeriodType as cg,isIntervalType as ch,isDurationType as ci,isDecimalType as cj,isFloatType as ck,isObjectType as cl,isListType as cm,TimeUnit as cn,Struct as co,ThemeProvider$1 as cp,createThemedStyled as cq,createThemedUseStyletron as cr,createThemedWithStyle as cs,expandBorderStyles as ct,withStyle as cu,requireReactIs$1 as cv,tableFromIPC as cw,assertNever as cx,v4 as cy,AcceptFileValue as cz,Box as d,_defineProperty$s as d0,_assertThisInitialized as d1,_createClass as d2,filterOptions as d3,mergeWith as d4,parseEntities as d5,StyledPre as d6,StyledCopyButton as d7,StyledCopyButtonContainer as d8,StyledCodeBlock as d9,css as dA,parseIconPackEntry as dB,genericFonts as dC,resolveNamedBackgroundColor as dD,isUnsignedIntegerType as dE,isIntegerType as dF,isBooleanType as dG,Field as dH,Null as dI,isRangeIndexType as dJ,isEmptyType as dK,isBytesType as dL,isCategoricalType as dM,fontSizes as dN,lighten as dO,mix$1 as dP,TRIGGER_TYPE as dQ,StyledTooltipContentWrapper as dR,FlexContext as dS,useScrollbarGutterSize as dT,Resizable as dU,propTypesExports as da,_slicedToArray as db,index as dc,_getPrototypeOf as dd,_possibleConstructorReturn as de,parseToRgba as df,DeckGlJsonChart$1 as dg,hasPath as dh,isArrayLike as di,isBuffer as dj,isTypedArray as dk,isArguments as dl,getTag as dm,isPrototype as dn,baseKeys as dp,Set$1 as dq,setToArray as dr,requireClassnames as ds,groupBy as dt,flatten as du,Vector as dv,getLuminance as dw,_objectWithoutProperties$1 as dx,_objectSpread2 as dy,jsx as dz,isNullOrUndefined$1 as e,StyledWidgetLabelHelpInline as f,getHelpTooltipAriaLabel as g,hoistNonReactStatics as h,isValidFormId as i,jsx$1 as j,useCalculatedDimensions as k,useEmotionTheme as l,hasLightBackgroundColor as m,notNullOrUndefined as n,jsxs as o,labelVisibilityProtoValueToEnum as p,StreamlitMarkdown$1 as q,reactExports as r,streamlit as s,StyledContent as t,useRegisterShortcut as u,StyledCheckbox$1 as v,getOverrides as w,SIZE$1 as x,ENHANCER_POSITION as y,styled as z};
|
|
155
|
+
`);return jsx$1("div",{"data-testid":"stClearCacheDialog",children:jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:"Clear caches"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitMarkdown$1,{source:e,allowHTML:!1})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:n.onClose,children:"Cancel"}),jsx$1(ModalButton,{autoFocus:!0,kind:BaseButtonKind.SECONDARY,onClick:n.confirmCallback,children:"Clear caches"})]})]})})}function ScriptCompileErrorDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,size:"auto",autoFocus:!1,children:[jsx$1(ModalHeader,{children:"Script execution error"}),jsx$1(ModalBody$1,{children:jsx$1(StreamlitErrorCodeBlock$1,{children:n.exception?.message?n.exception.message:"No message"})}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:n.onClose,children:"Close"})})]})}function WarningDialog(n){return jsxs(Modal,{isOpen:!0,onClose:n.onClose,children:[jsx$1(ModalHeader,{children:n.title}),jsx$1(ModalBody$1,{children:n.msg})]})}function DeployErrorDialog({title:n,msg:i,onClose:e,onContinue:t,onTryAgain:o}){const d=()=>{e(),t&&t()};return jsxs(Modal,{isOpen:!0,onClose:e,children:[jsx$1(ModalHeader,{children:n}),jsx$1(ModalBody$1,{children:jsx$1(StyledDeployErrorContent,{children:i})}),jsxs(ModalFooter,{children:[jsx$1(ModalButton,{kind:BaseButtonKind.GHOST,onClick:o,children:"Try again"}),jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:d,children:t?"Continue anyway":"Close"})]})]})}function noDialog({onClose:n}){return jsx$1(Modal,{isOpen:!1,onClose:n})}function typeNotRecognizedDialog(n){return jsx$1(Modal,{isOpen:!0,onClose:n.onClose,children:jsx$1(ModalBody$1,{children:`Dialog type "${n.type}" not recognized.`})})}function parseLinks(n){const i=[];let e=0,t=0;const o=/\[([^\]]+)\]\(([^)]+)\)/g;let d;for(;(d=o.exec(n))!==null;)d.index>e&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e,d.index)},t++)),i.push(jsx$1("a",{href:d[2],target:"_blank",rel:"noopener noreferrer",children:d[1]},t++)),e=d.index+d[0].length;return e<n.length&&i.push(jsx$1(reactExports.Fragment,{children:n.substring(e)},t++)),i}function DialogErrorMessage({message:n,codeBlock:i}){return jsxs(Fragment,{children:[jsx$1(StyledErrorText,{hasCodeBelow:!!i,children:parseLinks(n)}),i&&jsx$1(StreamlitErrorCodeBlock$1,{children:i})]})}const DialogErrorMessage$1=reactExports.memo(DialogErrorMessage),StyledActionButtonContainer=styled("div",{target:"eyud7440"})(({theme:n})=>({display:"flex",gap:n.spacing.sm,alignItems:"center",lineHeight:n.iconSizes.md})),StyledActionButtonIcon=styled("div",{target:"eyud7441"})(({theme:n,icon:i})=>({background:`url("${i}") no-repeat center / contain`,width:n.iconSizes.base,height:n.iconSizes.base})),StyledToolbarActions=styled("div",{target:"eyud7442"})({display:"flex",alignItems:"center",flexDirection:"row"});function ActionButton({label:n,icon:i,onClick:e}){return jsx$1("div",{className:"stToolbarActionButton","data-testid":"stToolbarActionButton",children:jsx$1(BaseButton,{onClick:e,kind:BaseButtonKind.HEADER_BUTTON,children:jsxs(StyledActionButtonContainer,{children:[i&&jsx$1(StyledActionButtonIcon,{"data-testid":"stToolbarActionButtonIcon",icon:i}),n&&jsx$1("span",{"data-testid":"stToolbarActionButtonLabel",children:n})]})})})}function ToolbarActions({sendMessageToHost:n,hostToolbarItems:i,metricsMgr:e}){return jsx$1(StyledToolbarActions,{className:"stToolbarActions","data-testid":"stToolbarActions",children:i.map(({key:t,label:o,icon:d})=>jsx$1(ActionButton,{label:o,icon:d,onClick:()=>{e.enqueue("menuClick",{label:t}),n({type:"TOOLBAR_ITEM_CALLBACK",key:t})}},t))})}const screencastCounterAnimation=keyframes("0%{opacity:0;}25%{opacity:1;}100%{opacity:0;}"),StyledCountdown=styled("div",{target:"erg7rn60"})(({theme:n})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:n.sizes.full,height:n.sizes.full,fontSize:"40vh",color:n.colors.redTextColor,fontWeight:n.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${n.colors.grayTextColor}`,transition:"opacity 0.3s ease-in-out",animation:`${screencastCounterAnimation} 1s`})),Countdown=({countdown:n,endCallback:i})=>{const[e,t]=reactExports.useState(n);return jsx$1(StyledCountdown,{"data-testid":"stCountdown",onAnimationEnd:()=>{const d=e-1;d>=0&&t(d),d===0&&i()},children:jsx$1("span",{children:e})},`frame${e}`)},StyledRecordAudioLabel=styled("label",{target:"ez2zj4i0"})({margin:0}),StyledInstruction=styled("p",{target:"ez2zj4i1"})({margin:0}),ScreencastDialog=({onClose:n,toggleRecordAudio:i,recordAudio:e,startRecording:t})=>{const[o,d]=reactExports.useState(e),p=reactExports.useCallback(y=>{const{checked:$}=y.target;$!==o&&(d($),i())},[o,i]),h=reactExports.useCallback(()=>{t(),n()},[t,n]);return jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsxs(ModalBody$1,{children:[jsx$1("p",{children:"This will record a video with the contents of your screen, so you can easily share what you're seeing with others."}),jsx$1("p",{children:jsxs(StyledRecordAudioLabel,{"data-testid":"stScreencastAudioCheckbox",children:[jsx$1("input",{type:"checkbox",name:"recordAudio","aria-label":"Also record audio",checked:o,onChange:p})," ","Also record audio"]})}),jsx$1(StyledInstruction,{"data-testid":"stScreencastInstruction",children:jsx$1(StreamlitMarkdown$1,{source:"Press `Esc` any time to stop recording.",allowHTML:!1})})]}),jsx$1(ModalFooter,{children:jsx$1(ModalButton,{kind:BaseButtonKind.SECONDARY,onClick:h,children:"Start recording!"})})]})},StyledScreenCastWarningDialog=styled("div",{target:"e15jpqoz0"})({display:"flex"}),StyledUnsupportedScreenCastIcon=styled("div",{target:"e15jpqoz1"})(({theme:n})=>({display:"flex",alignItems:"center",justifyItems:"center",marginRight:n.spacing.twoXL,marginLeft:n.spacing.sm,fontSize:n.fontSizes.fourXL})),StyledUnsupportedScreenCastExplanation=styled("p",{target:"e15jpqoz2"})(({theme:n})=>({margin:n.spacing.none})),UnsupportedBrowserDialog=({onClose:n})=>jsxs(Modal,{isOpen:!0,onClose:n,children:[jsx$1(ModalHeader,{children:"Record a screencast"}),jsx$1(ModalBody$1,{children:jsxs(StyledScreenCastWarningDialog,{"data-testid":"stUnsupportedBrowserDialog",children:[jsx$1(StyledUnsupportedScreenCastIcon,{children:jsx$1("span",{role:"img","aria-label":"Alien Monster",children:"👾"})}),jsx$1(StyledUnsupportedScreenCastExplanation,{children:"Due to limitations with some browsers, this feature is only supported on recent desktop versions of Chrome, Firefox, and Edge."})]})})]}),UnsupportedBrowserDialog$1=reactExports.memo(UnsupportedBrowserDialog),StyledVideo=styled("video",{target:"e1y8cy420"})(({theme:n})=>({width:n.sizes.full,borderRadius:n.radii.md})),StyledDialogContainer=styled("div",{target:"e1y8cy421"})(({theme:n})=>({display:"flex",flexDirection:"column",width:n.sizes.full})),StyledRow=styled("div",{target:"e1y8cy422"})(({theme:n})=>({display:"flex",flexDirection:"row",paddingTop:n.spacing.md,paddingBottom:n.spacing.md})),StyledFirstColumn=styled("div",{target:"e1y8cy423"})(({theme:n})=>({paddingRight:n.spacing.lg,textAlign:"right",color:n.colors.grayTextColor,fontWeight:n.fontWeights.bold,width:"6em"})),StyledSecondColumn=styled("div",{target:"e1y8cy424"})(({theme:n})=>({flex:1,paddingRight:n.spacing.lg,marginRight:"6em",[`@media (max-width: ${n.breakpoints.sm})`]:{marginRight:n.spacing.none}})),StyledVideoFormatInstructions=styled("p",{target:"e1y8cy425"})(({theme:n})=>({marginTop:n.spacing.sm,marginBottom:n.spacing.none,fontSize:n.fontSizes.sm})),StyledDownloadButtonContainer=styled("div",{target:"e1y8cy426"})(({theme:n})=>({marginTop:n.spacing.twoXS})),VideoRecordedDialog=({onClose:n,videoBlob:i,fileName:e})=>{const t=URL.createObjectURL(i),o=()=>{const d=document.createElement("a");d.setAttribute("href",t),d.setAttribute("download",`${e}.webm`),d.click(),n()};return jsxs(Modal,{isOpen:!0,onClose:n,overrides:{Dialog:{style:{width:"80vw"}}},children:[jsx$1(ModalHeader,{children:"Next steps"}),jsx$1(ModalBody$1,{children:jsxs(StyledDialogContainer,{"data-testid":"stVideoRecordedDialog",children:[jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 1"}),jsxs(StyledSecondColumn,{children:[jsx$1("p",{children:"Preview your video below:"}),jsx$1(StyledVideo,{src:t,controls:!0})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 2"}),jsxs(StyledSecondColumn,{children:[jsx$1(StyledDownloadButtonContainer,{children:jsx$1(BaseButton,{kind:BaseButtonKind.SECONDARY,onClick:o,children:"Save video to disk"})}),jsxs(StyledVideoFormatInstructions,{children:["This video is encoded in the"," ",jsx$1("a",{href:"https://www.webmproject.org/",children:"WebM format"}),", which is only supported by newer video players. You can also play it by dragging the file directly into your browser."]})]})]}),jsxs(StyledRow,{children:[jsx$1(StyledFirstColumn,{children:"Step 3"}),jsxs(StyledSecondColumn,{children:["Share your video with the world on Twitter, LinkedIn, YouTube, or just plain email!"," ",jsx$1("span",{role:"img","aria-label":"Happy",children:"😀"})]})]})]})})]})},LOG$2=loglevelExports.getLogger("withScreencast");function withScreencast(n){const i=e=>{const{testOverride:t}=e,o=reactExports.useRef(null),[d,p]=reactExports.useState("streamlit-screencast"),[h,y]=reactExports.useState(!1),[$,E]=reactExports.useState(void 0),[M,H]=reactExports.useState(t||"OFF"),Z=reactExports.useCallback(()=>{y(Fe=>!Fe)},[]),be=reactExports.useCallback(async()=>{if(!(M==="OFF"||isNullOrUndefined$1(o.current))){if(M==="COUNTDOWN"){H("OFF");return}if(M==="RECORDING"){const Fe=o.current;if(!Fe||Fe.getState()==="inactive")H("OFF");else{const Le=await Fe.stop();E(Le),H("PREVIEW_FILE")}}}},[M]),ye=reactExports.useCallback(async()=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}o.current=new ScreenCastRecorder({recordAudio:h,onErrorOrStop:()=>{be().catch(Fe=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Fe}`))}});try{await o.current.initialize()}catch(Fe){LOG$2.warn(`ScreenCastRecorder.initialize error: ${Fe}`),H("UNSUPPORTED");return}H("COUNTDOWN")},[h,be]),we=reactExports.useCallback(Fe=>{if(!ScreenCastRecorder.isSupportedBrowser()){H("UNSUPPORTED");return}if(M==="OFF"){p(Fe),H("SETUP");return}be().catch(Le=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Le}`))},[M,be]),Ce=reactExports.useCallback(()=>{if(isNullOrUndefined$1(o.current))throw new Error("Countdown finished but recorder is null");o.current.start()?H("RECORDING"):be().catch(Le=>LOG$2.warn(`withScreencast.stopRecording threw an error: ${Le}`))},[be]),xe=reactExports.useCallback(()=>{H("OFF")},[]);return jsxs("div",{className:"withScreencast","data-testid":"stScreencast",children:[jsx$1(n,{...e,screenCast:{currentState:M,toggleRecordAudio:Z,startRecording:we,stopRecording:be}}),M==="UNSUPPORTED"&&jsx$1(UnsupportedBrowserDialog$1,{onClose:xe}),M==="SETUP"&&jsx$1(ScreencastDialog,{recordAudio:h,onClose:xe,startRecording:ye,toggleRecordAudio:Z}),M==="COUNTDOWN"&&jsx$1(Countdown,{countdown:3,endCallback:Ce}),M==="PREVIEW_FILE"&&$&&jsx$1(VideoRecordedDialog,{onClose:xe,videoBlob:$,fileName:d})]})};return i.displayName=`withScreencast(${n.displayName||n.name||"Component"})`,hoistNonReactStatics(i,n)}const useViewportSize=()=>{const{activeTheme:n}=reactExports.useContext(ThemeContext),{innerWidth:i}=useWindowDimensionsContext(),e=parseInt(n.emotion.breakpoints.md,10);return{isMobile:i<e}},DEFAULT_METRICS_CONFIG="https://data.streamlit.io/metrics.json",LOG$1=loglevelExports.getLogger("MetricsManager");class MetricsManager{constructor(i){this.initialized=!1,this.actuallySendMetrics=!1,this.metricsUrl=void 0,this.sendMessageToHost=()=>{},this.anonymousId="",this.pendingEvents=[],this.appHash="Not initialized",this.metadata={},this.setAppHash=e=>{this.appHash=e},this.setMetricsConfig=(e="")=>{this.metricsUrl=e},this.sessionInfo=i}async initialize({gatherUsageStats:i,sendMessageToHost:e}){this.sendMessageToHost=e,this.actuallySendMetrics=i&&this.metricsUrl!=="off",this.getAnonymousId(),this.actuallySendMetrics&&!this.metricsUrl&&(await this.requestDefaultMetricsConfig(),this.metricsUrl||(LOG$1.error("Undefined metrics config - deactivating metrics tracking."),this.actuallySendMetrics=!1)),this.actuallySendMetrics&&this.sendPendingEvents(),LOG$1.info("Gather usage stats: ",this.actuallySendMetrics),this.initialized=!0}enqueue(i,e={}){if(!this.initialized||!this.sessionInfo.isSet){this.pendingEvents.push([i,e]);return}this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(i,e))}setMetadata(i){this.metadata=i}async requestDefaultMetricsConfig(){const i=localStorageAvailable();if(i){const e=window.localStorage.getItem("stMetricsConfig");if(e){this.metricsUrl=e;return}}try{const e=await fetch(DEFAULT_METRICS_CONFIG,{signal:AbortSignal.timeout(5e3)});if(!e.ok)this.metricsUrl=void 0,LOG$1.error("Failed to fetch metrics config: ",e.status);else{const t=await e.json();this.metricsUrl=t.url??void 0,i&&this.metricsUrl&&window.localStorage.setItem("stMetricsConfig",this.metricsUrl)}}catch(e){LOG$1.error("Failed to fetch metrics config:",e)}}send(i,e={}){const t=this.buildEventProto(i,e);this.metricsUrl==="postMessage"?this.postMessageEvent(i,t):this.track(t)}sendPendingEvents(){this.pendingEvents.forEach(([i,e])=>{this.send(i,e)}),this.pendingEvents=[]}async track(i){const e=new Request(this.metricsUrl,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i.toJSON())});await fetch(e)}postMessageEvent(i,e){this.sendMessageToHost({type:"METRICS_EVENT",eventName:i,data:e})}buildEventProto(i,e){const t=new MetricsEvent({event:i,anonymousId:this.anonymousId,...this.getHostTrackingData(),...this.getInstallationData(),reportHash:this.appHash,dev:IS_DEV_ENV,source:"browser",streamlitVersion:this.sessionInfo.current.streamlitVersion,isHello:this.sessionInfo.isHello,appId:this.sessionInfo.current.appId,sessionId:this.sessionInfo.current.sessionId,pythonVersion:this.sessionInfo.current.pythonVersion,serverOs:this.sessionInfo.current.serverOS,hasDisplay:this.sessionInfo.current.hasDisplay,isWebdriver:isWebdriver(),...this.getContextData()});if(i==="menuClick")t.label=e.label;else if(i==="pageProfile")return new MetricsEvent({...t,...e});return t}getInstallationData(){return{machineIdV3:this.sessionInfo.current.installationIdV3,machineIdV4:this.sessionInfo.current.installationIdV4}}getHostTrackingData(){return this.metadata?pick$2(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}getContextData(){return{contextPageUrl:window.location.href,contextPageTitle:document.title,contextPagePath:window.location.pathname,contextPageReferrer:document.referrer,contextPageSearch:window.location.search,contextLocale:window.navigator.language,contextUserAgent:window.navigator.userAgent}}getAnonymousId(){if(!this.actuallySendMetrics)return;const i="ajs_anonymous_id",e=localStorageAvailable(),t=getCookie(i),o=e?window.localStorage.getItem(i):null,d=new Date;if(d.setFullYear(new Date().getFullYear()+1),t)this.anonymousId=t,e&&window.localStorage.setItem(i,t);else if(o){try{this.anonymousId=JSON.parse(o)}catch{this.anonymousId=o}setCookie(i,this.anonymousId,d)}else this.anonymousId=v4(),setCookie(i,this.anonymousId,d),e&&window.localStorage.setItem(i,this.anonymousId)}}function isWebdriver(){return window.navigator?.webdriver??!1}class SessionEventDispatcher{constructor(){this.onSessionEvent=new distExports.Signal}handleSessionEventMsg(i){this.onSessionEvent.emit(i)}}const StyledApp=styled("div",{target:"e1vju3fw0"})(({theme:n})=>{const i=hasLightBackgroundColor(n);return{position:"absolute",background:n.colors.bgColor,color:n.colors.bodyText,top:n.spacing.none,left:n.spacing.none,right:n.spacing.none,bottom:n.spacing.none,colorScheme:i?"light":"dark",overflow:"hidden","@media print":{float:"none",height:n.sizes.full,position:"static",overflow:"visible"}}});function getBrowserInfo(){const i=new UAParser().getResult();return{browserName:i.browser.name||"Unknown",browserVersion:i.browser.version||"Unknown",deviceType:i.device.type||"desktop",os:i.os.name||"Unknown"}}const showDevelopmentOptions=(n,i)=>i==Config.ToolbarMode.DEVELOPER?!0:Config.ToolbarMode.VIEWER==i||Config.ToolbarMode.MINIMAL==i?!1:n||isLocalhost();function getTitle(n){return n||"Streamlit"}class AppNavigation{constructor(i,e,t,o){this.hostCommunicationMgr=i,this.onUpdatePageUrl=e,this.onPageNotFound=t,this.onPageIconChange=o,this.isPageIconSet=!1,this.isPageTitleSet=!1,this.hasSetDefaultFavicon=!1,this.mainScriptHash=null,this.appPages=[],this.mainPage=null,this.hideSidebarNav=null}handleNewSession(i){return this.mainScriptHash!==i.mainScriptHash&&(this.isPageTitleSet=!1,this.isPageIconSet=!1,this.hasSetDefaultFavicon=!1),this.mainScriptHash=i.mainScriptHash,this.hideSidebarNav===null&&(this.hideSidebarNav=i.config?.hideSidebarNav??null),document.title=getTitle(""),[{currentPageScriptHash:i.pageScriptHash,hideSidebarNav:this.hideSidebarNav??!1},()=>{}]}handleNavigation(i){const{sections:e,position:t,appPages:o}=i;this.appPages=o,this.hideSidebarNav=t===Navigation.Position.HIDDEN;const d=i.pageScriptHash,p=o.find($=>$.pageScriptHash===d),h=o.find($=>$.isDefault);this.mainPage=h;const y=p.urlPathname;if(!this.isPageTitleSet){const $=getTitle(p.pageName);document.title=$,this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:p.pageName??""})}return!this.isPageIconSet&&p.icon&&this.onPageIconChange(p.icon),this.onUpdatePageUrl(h.urlPathname??"",y,p.isDefault??!1),[{appPages:o,navSections:e,hideSidebarNav:this.hideSidebarNav,expandSidebarNav:i.expanded,currentPageScriptHash:d},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_APP_PAGES",appPages:o}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:p.isDefault?"":y,currentPageScriptHash:d})}]}handlePageNotFound(i){return this.onPageNotFound(i),[{currentPageScriptHash:this.mainScriptHash??""},()=>{this.hostCommunicationMgr.sendMessageToHost({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:this.mainScriptHash??""})}]}findPageByUrlPath(i){return this.appPages.find(e=>i.endsWith("/"+e.urlPathname))??this.mainPage}handlePageConfigChanged(i){i.favicon&&(this.isPageIconSet=!0),i.title&&(this.isPageTitleSet=!0)}clearPageElements(i,e){return i.filterMainScriptElements(e)}}function includeIfDefined(n){return Object.entries(n).reduce((i,[e,t])=>(t!==void 0&&(i[e]=t),i),{})}function preferWindowValue(n,i){return n??i}function reconcileHostConfigValues(n,i){if(!n)return i;const e=isValidAllowedOrigins(n.allowedOrigins)?n.allowedOrigins:void 0;return{...i,allowedOrigins:preferWindowValue(e,i.allowedOrigins),useExternalAuthToken:preferWindowValue(n.useExternalAuthToken,i.useExternalAuthToken),enableCustomParentMessages:preferWindowValue(n.enableCustomParentMessages,i.enableCustomParentMessages),blockErrorDialogs:preferWindowValue(n.blockErrorDialogs,i.blockErrorDialogs),mapboxToken:preferWindowValue(n.mapboxToken,i.mapboxToken),disableFullscreenMode:preferWindowValue(n.disableFullscreenMode,i.disableFullscreenMode),enforceDownloadInNewTab:preferWindowValue(n.enforceDownloadInNewTab,i.enforceDownloadInNewTab),resourceCrossOriginMode:preferWindowValue(n.resourceCrossOriginMode,i.resourceCrossOriginMode),setAnonymousCrossOriginPropertyOnMediaElements:i.setAnonymousCrossOriginPropertyOnMediaElements,metricsUrl:preferWindowValue(n.metricsUrl,i.metricsUrl)}}var define_PACKAGE_METADATA_default={version:"1.53.1"};const INITIAL_SCRIPT_RUN_ID="<null>",LOG=loglevelExports.getLogger("App");class App extends reactExports.PureComponent{constructor(i){super(i),this.sessionInfo=new SessionInfo,this.metricsMgr=new MetricsManager(this.sessionInfo),this.sessionEventDispatcher=new SessionEventDispatcher,this.embeddingId=generateUID$2(),this.appRootRef=reactExports.createRef(),this.deferredFileListeners=new Map,this.isInitializingConnectionManager=!0,this.hasReceivedNewSession=!1,this.showDeployError=(e,t,o)=>{const d={type:DialogType.DEPLOY_ERROR,title:e,msg:t,onContinue:o,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg};this.openDialog(d)},this.handleThemeMessage=(e,t)=>{const[,o,d]=createPresetThemes(),p=isPresetTheme(this.props.theme.activeTheme);e===o.name&&p?this.props.theme.setTheme(o):e===d.name&&p?this.props.theme.setTheme(d):t&&this.props.theme.setImportedTheme(t)},this.handleConnectionStateChanged=e=>{if(LOG.info(`Connection state changed from ${this.state.connectionState} to ${e}`),e===ConnectionState.CONNECTED){LOG.info("Reconnected to server."),this.state.connectionErrorDismissed&&this.setState({connectionErrorDismissed:!1});const t=this.state.scriptRunState===ScriptRunState.RUNNING,o=this.state.scriptRunState===ScriptRunState.RERUN_REQUESTED;!this.sessionInfo.last||t||o||this.state.fragmentIdsThisRun.length>0||this.state.autoReruns.length>0?(LOG.info("Requesting a script run."),this.widgetMgr.sendUpdateWidgetsMessage(void 0),this.setState({dialog:null})):this.state.dialog?.type===DialogType.CONNECTION_ERROR&&this.setState({dialog:null}),this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_CONNECTED"})}else this.state.connectionState===ConnectionState.CONNECTED&&this.hostCommunicationMgr.sendMessageToHost({type:"WEBSOCKET_DISCONNECTED",attemptingToReconnect:e!==ConnectionState.DISCONNECTED_FOREVER}),this.sessionInfo.isSet&&this.sessionInfo.disconnect();this.isInitializingConnectionManager?this.setState({connectionState:e}):reactDomExports.flushSync(()=>{this.setState({connectionState:e})})},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleCustomParentMessage=e=>{this.state.appConfig.enableCustomParentMessages?this.hostCommunicationMgr.sendMessageToHost({type:"CUSTOM_PARENT_MESSAGE",message:e.message}):LOG.error("Sending messages to the host is disabled in line with the platform policy.")},this.handleMessage=e=>{const t=(o,d,p)=>{const h=o[d];if(h in p)return p[h](o[h]);throw new Error(`Cannot handle ${d} "${h}".`)};try{t(e,"type",{newSession:o=>this.handleNewSession(o),sessionStatusChanged:o=>this.handleSessionStatusChanged(o),sessionEvent:o=>this.handleSessionEvent(o),delta:o=>this.handleDeltaMsg(o,e.metadata),pageConfigChanged:o=>this.handlePageConfigChanged(o),pageInfoChanged:o=>this.handlePageInfoChanged(o),pageNotFound:o=>this.handlePageNotFound(o),gitInfoChanged:o=>this.handleGitInfoChanged(o),scriptFinished:o=>this.handleScriptFinished(o),pageProfile:o=>this.handlePageProfileMsg(o),autoRerun:o=>this.handleAutoRerun(o),fileUrlsResponse:o=>this.uploadClient.onFileURLsResponse(o),deferredFileResponse:o=>this.handleDeferredFileResponse(o),parentMessage:o=>this.handleCustomParentMessage(o),logo:o=>this.handleLogo(o,e.metadata),navigation:o=>this.handleNavigation(o),authRedirect:o=>{isInChildFrame()?this.hostCommunicationMgr.sendMessageToSameOriginHost({type:"REDIRECT_TO_URL",url:o.url}):window.location.href=o.url}})}catch(o){const d=ensureError(o);LOG.error(d),this.showError("Bad message format",{message:d.message})}},this.handleLogo=(e,t)=>{this.setState(o=>({elements:o.elements.appRootWithLogo(e,{activeScriptHash:t.activeScriptHash,scriptRunId:o.scriptRunId})}))},this.handlePageConfigChanged=e=>{const{title:t,favicon:o,layout:d,initialSidebarState:p,initialSidebarWidth:h,menuItems:y}=e;this.appNavigation.handlePageConfigChanged(e),t&&(this.hostCommunicationMgr.sendMessageToHost({type:"SET_PAGE_TITLE",title:t}),document.title=t),o&&this.onPageIconChanged(o),d!==this.state.layout&&d!==PageConfig.Layout.LAYOUT_UNSET&&this.setState(E=>({layout:d,userSettings:{...E.userSettings,wideMode:d===PageConfig.Layout.WIDE}})),p!==this.state.initialSidebarState&&p!==PageConfig.SidebarState.SIDEBAR_UNSET&&this.setState(()=>({initialSidebarState:p}));const $=h?.pixelWidth!==void 0?h.pixelWidth:void 0;notNullOrUndefined($)&&$!==this.state.initialSidebarWidth&&this.setState(()=>({initialSidebarWidth:$})),y&&this.setState(E=>(y.clearAboutMd&&(y.aboutSectionMd=""),{menuItems:{...E.menuItems,...y}}))},this.handleQueryParamsFromWidget=e=>{this.setState({queryParams:e}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:e?`?${e}`:""})},this.handlePageInfoChanged=e=>{const{queryString:t}=e,o=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",o),this.setState({queryParams:t}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.onPageNotFound=e=>{const t=e?`You have requested page /${e}, 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",{message:`${t}. Running the app's main page.`})},this.handlePageNotFound=e=>{const{pageName:t}=e;this.maybeSetState(this.appNavigation.handlePageNotFound(t))},this.onPageIconChanged=e=>{handleFavicon(e,this.hostCommunicationMgr.sendMessageToHost,this.endpoints)},this.handleNavigation=e=>{this.setState({navigationPosition:e.position}),this.maybeSetState(this.appNavigation.handleNavigation(e))},this.handlePageProfileMsg=e=>{const t=PageProfile.toObject(e),o=getBrowserInfo();this.metricsMgr.enqueue("pageProfile",{...t,isFragmentRun:!!t.isFragmentRun,numPages:this.state.appPages?.length,pageScriptHash:this.state.currentPageScriptHash,activeTheme:this.props.theme?.activeTheme?.name,totalLoadTime:Math.round((performance.now()-this.state.latestRunTime)*1e3),browserInfo:o})},this.handleAutoRerun=e=>{const t=setInterval(()=>{this.widgetMgr.sendUpdateWidgetsMessage(e.fragmentId,!0)},e.interval*1e3);this.setState(o=>({autoReruns:[...o.autoReruns,t]}))},this.handleSessionStatusChanged=e=>{this.setState(t=>{let{scriptRunState:o}=t,{dialog:d}=t;return e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.STOP_REQUESTED?(o=ScriptRunState.RUNNING,notNullOrUndefined(d)&&d.type===DialogType.SCRIPT_COMPILE_ERROR&&(d=void 0)):!e.scriptIsRunning&&t.scriptRunState!==ScriptRunState.RERUN_REQUESTED&&t.scriptRunState!==ScriptRunState.COMPILATION_ERROR&&(o=ScriptRunState.NOT_RUNNING),{userSettings:{...t.userSettings,runOnSave:!!e.runOnSave},dialog:d,scriptRunState:o,scriptChangedOnDisk:e.scriptIsRunning?!1:t.scriptChangedOnDisk}})},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),e.type==="scriptCompilationException"){this.setState({scriptRunState:ScriptRunState.COMPILATION_ERROR});const t={type:DialogType.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.maybeShowErrorDialog(t,e.scriptCompilationException?.message??"No message")}else e.type==="scriptChangedOnDisk"&&this.setState({scriptChangedOnDisk:!0})},this.maybeUpdatePageUrl=(e,t,o)=>{const d=this.getBaseUriParts();if(d){let p;StreamlitConfig.MAIN_PAGE_BASE_URL?p=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:p=d.pathname;const h=extractPageNameFromPathName(document.location.pathname,p);if((h===""?e:h)!==t){const $=o?"":t,E=this.state.queryParams||preserveEmbedQueryParams(),M=E?`?${E}`:"",Z=`${p==="/"?"":p}/${$}${M}`;window.history.pushState({},"",Z)}}},this.handleNewSession=e=>{const t=e.initialize;if(this.hasStreamlitVersionChanged(t)){window.location.reload();return}this.hasReceivedNewSession=!0,(!this.sessionInfo.isSet||!this.sessionInfo.current.isConnected)&&this.handleInitialization(e);const{appHash:o,currentPageScriptHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:y,fragmentIdsThisRun:$,pageScriptHash:E,mainScriptHash:M}=e;if($.length)this.setState({fragmentIdsThisRun:$,latestRunTime:performance.now()});else{this.cleanupAutoReruns();const Z=e.config,be=e.customTheme;this.processThemeInput(be),this.setState({allowRunOnSave:Z.allowRunOnSave,hideTopBar:Z.hideTopBar,toolbarMode:Z.toolbarMode,showErrorLinks:Z.showErrorLinks,latestRunTime:performance.now(),mainScriptHash:M,fragmentIdsThisRun:$}),this.maybeSetState(this.appNavigation.handleNewSession(e)),!this.appNavigation.hasSetDefaultFavicon&&!this.appNavigation.isPageIconSet&&(this.appNavigation.hasSetDefaultFavicon=!0,this.onPageIconChanged("./favicon.png"))}const H=hashString(this.sessionInfo.current.installationId+y);this.metricsMgr.setMetadata(this.state.deployedAppMetadata),this.metricsMgr.setAppHash(H),this.metricsMgr.enqueue("updateReport"),o===H&&d===E?this.setState(Z=>({elements:Z.elements.clearTransientNodes($),scriptRunId:p})):this.clearAppState(H,p,h,M)},this.handleInitialization=e=>{const t=e.initialize,o=e.config;this.sessionInfo.setCurrent(SessionInfo.propsFromNewSessionMessage(e)),this.metricsMgr.initialize({gatherUsageStats:o.gatherUsageStats,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost}),this.handleSessionStatusChanged(t.sessionStatus)},this.onHistoryChange=()=>{const{currentPageScriptHash:e}=this.state,t=this.appNavigation.findPageByUrlPath(document.location.pathname),o=document.location.toString().includes("#"),d=t?.pageScriptHash===e;isNullOrUndefined$1(t)||o&&d||this.onPageChange(t.pageScriptHash,void 0,!0)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.hostCommunicationMgr.sendMessageToHost({type:"SET_THEME_CONFIG",themeInfo:toExportedTheme(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=JSON.parse(JSON.stringify(e)),o=sortThemeInputKeys(t);return hashString(JSON.stringify(o))},this.closeDialog=()=>{this.state.dialog?.type===DialogType.CONNECTION_ERROR?this.setState({dialog:void 0,connectionErrorDismissed:!0}):this.setState({dialog:void 0})},this.saveSettings=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:o}=e;if(this.setState({userSettings:e}),t!==o&&this.isServerConnected()){const d=new BackMsg({setRunOnSave:o});d.type="setRunOnSave",this.sendBackMsg(d)}},this.handleDeltaMsg=(e,t)=>{this.setState(o=>({elements:o.elements.applyDelta(o.scriptRunId,e,t)}))},this.debugShutdownRuntime=()=>{if(this.isServerConnected()){const e=new BackMsg({debugShutdownRuntime:!0});e.type="debugShutdownRuntime",this.sendBackMsg(e)}},this.debugDisconnectWebsocket=()=>{if(this.isServerConnected()){const e=new BackMsg({debugDisconnectWebsocket:!0});e.type="debugDisconnectWebsocket",this.sendBackMsg(e)}},this.debugClearForwardMsgCache=()=>{isLocalhost()&&this.connectionManager?.websocketConnection?.cache.messages.clear()},this.cleanupAutoReruns=()=>{this.state.autoReruns.forEach(e=>{clearInterval(e)}),this.setState({autoReruns:[]})},this.rerunScript=(e=!1)=>{if(this.closeDialog(),!this.isServerConnected()){LOG.error("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}),e===!0&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage(void 0))},this.sendLoadGitInfoBackMsg=()=>{if(!this.isServerConnected()){LOG.error("Cannot load git information when disconnected from server.");return}this.sendBackMsg(new BackMsg({loadGitInfo:!0}))},this.onPageChange=(e,t,o)=>{const{elements:d,mainScriptHash:p}=this.state;this.cleanupAutoReruns();const h=this.appNavigation.clearPageElements(d,p),y=new Set(Array.from(h.getElements()).map($=>getElementId($)).filter(notUndefined));this.sendRerunBackMsg(this.widgetMgr.getActiveWidgetStates(y),void 0,e,void 0,t,o)},this.isAppInReadyState=e=>this.state.connectionState===ConnectionState.CONNECTED&&this.state.scriptRunState===ScriptRunState.NOT_RUNNING&&e.scriptRunState===ScriptRunState.RUNNING&&e.connectionState===ConnectionState.CONNECTED,this.sendRerunBackMsg=(e,t,o,d,p,h)=>{const y=this.getBaseUriParts();if(!y){LOG.error("Cannot send rerun backMessage when disconnected from server.");return}const{currentPageScriptHash:$}=this.state;let E=p??this.getQueryString(),M="";const H={timezone:getTimezone$1(),timezoneOffset:getTimezoneOffset(),locale:getLocaleLanguage(),url:getUrl(),isEmbedded:isEmbed(),colorScheme:this.getThemeColorScheme()};if(o){if(o!==$&&!h){const be=this.widgetMgr.filterParamsForPageChange(preserveEmbedQueryParams());E=getQueryString(p,be),this.setState({queryParams:E}),this.hostCommunicationMgr.sendMessageToHost({type:"SET_QUERY_PARAM",queryParams:E?`?${E}`:""})}}else if($)o=$;else{let be;StreamlitConfig.MAIN_PAGE_BASE_URL?be=parseUriIntoBaseParts(StreamlitConfig.MAIN_PAGE_BASE_URL).pathname:be=y.pathname,M=extractPageNameFromPathName(document.location.pathname,be),o=""}const Z=this.connectionManager?.getCachedMessageHashes()??[];this.sendBackMsg(new BackMsg({rerunScript:{queryString:E,widgetStates:e,pageScriptHash:o,pageName:M,fragmentId:t,isAutoRerun:d,cachedMessageHashes:Z,contextInfo:H}})),this.hasReceivedNewSession=!1},this.stopScript=()=>{if(!this.isServerConnected()){LOG.error("Cannot stop app when disconnected from server.");return}if(this.state.scriptRunState===ScriptRunState.NOT_RUNNING||this.state.scriptRunState===ScriptRunState.STOP_REQUESTED)return;const e=new BackMsg({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:ScriptRunState.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:DialogType.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.openDeployDialog=()=>{const e={type:DialogType.DEPLOY_DIALOG,onClose:this.closeDialog,showDeployError:this.showDeployError,isDeployErrorModalOpen:this.state.dialog?.type===DialogType.DEPLOY_ERROR,metricsMgr:this.metricsMgr,gitInfo:this.state.gitInfo};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){const e=new BackMsg({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else LOG.error("Cannot clear cache: disconnected from server")},this.sendAppHeartbeat=()=>{if(this.isServerConnected()){const e=new BackMsg({appHeartbeat:!0});e.type="appHeartbeat",this.sendBackMsg(e)}else LOG.error("Cannot send app heartbeat: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(LOG.info(e),this.connectionManager.sendMessage(e)):LOG.error(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.state.connectionErrorDismissed||this.showError("Connection error",e,DialogType.CONNECTION_ERROR)},this.isServerConnected=()=>this.connectionManager?this.connectionManager.isConnected():!1,this.settingsCallback=(e=!0)=>{const t={type:DialogType.SETTINGS,sessionInfo:this.sessionInfo,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave&&showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),onSave:this.saveSettings,onClose:()=>{},animateModal:e,metricsMgr:this.metricsMgr};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:DialogType.ABOUT,onClose:this.closeDialog,aboutSectionMd:e?.aboutSectionMd};this.openDialog(t)},this.printCallback=()=>{const{scriptRunState:e}=this.state;if(e!==ScriptRunState.NOT_RUNNING){setTimeout(this.printCallback,500);return}let t;try{const o=getIFrameEnclosingApp(this.embeddingId);o?.contentWindow?t=o.contentWindow.window:t=window}catch{t=window}finally{t||(t=window),t.print()}},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast,o=getScreencastTimestamp();t(`streamlit-${e}-${o}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.setLibConfig=e=>{this.setState({libConfig:e})},this.setAppConfig=e=>{this.setState({appConfig:e})},this.addScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.concat(e)}))},this.removeScriptFinishedHandler=e=>{this.setState((t,o)=>({scriptFinishedHandlers:t.scriptFinishedHandlers.filter(d=>d!==e)}))},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.state,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},this.getThemeColorScheme=()=>{const{activeTheme:e}=this.props.theme;return hasLightBackgroundColor(e.emotion)?"light":"dark"},this.isInCloudEnvironment=()=>{const{hostMenuItems:e}=this.state;return e&&e?.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=(e,t)=>{const o=this.isServerConnected(),d=this.sessionInfo.isSet;if(o&&d){const p=new BackMsg({fileUrlsRequest:{requestId:e,fileNames:t.map(h=>h.name),sessionId:this.sessionInfo.current.sessionId}});p.type="fileUrlsRequest",this.sendBackMsg(p)}else LOG.warn(`Cannot request file URLs (isServerConnected: ${o}, isSessionInfoSet: ${d})`),this.uploadClient.onFileURLsResponse({responseId:e,errorMsg:"Connection lost. Please wait for the app to reconnect, then try again."})},this.requestDeferredFile=e=>{const t=this.isServerConnected(),o=this.sessionInfo.isSet;if(!t||!o)return Promise.reject(new Error("Not connected to server or session not initialized"));const d=Promise.withResolvers(),p=this.deferredFileListeners.get(e)??new Set,h=$=>{p.delete(h),d.resolve($)};p.add(h),this.deferredFileListeners.set(e,p);const y=new BackMsg({deferredFileRequest:{fileId:e,sessionId:this.sessionInfo.current.sessionId}});return y.type="deferredFileRequest",this.sendBackMsg(y),d.promise},this.handleDeferredFileResponse=e=>{const t=this.deferredFileListeners.get(e.fileId);if(!(!t||t.size===0)){for(const o of Array.from(t))try{o(e)}catch{}this.deferredFileListeners.delete(e.fileId)}},this.handleKeyDown=(e,t)=>{if(!((e==="c"||e==="r")&&isKeyboardEventFromEditableTarget(t)))switch(e){case"c":showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode)&&this.openClearCacheDialog();break;case"r":this.rerunScript();break}},this.handleKeyUp=e=>{e==="esc"&&this.props.screenCast.stopRecording()},this.hasAppDefinedMenuItems=()=>{const{menuItems:e}=this.state;return!!(e?.aboutSectionMd||e?.getHelpUrl&&!e?.hideGetHelp||e?.reportABugUrl&&!e?.hideReportABug)},this.shouldShowToolbar=(e,t)=>{const o=!isEmbed()||isToolbarDisplayed();let d;return this.state.toolbarMode===Config.ToolbarMode.MINIMAL?d=e.length>0||t.length>0||this.hasAppDefinedMenuItems():d=!0,o&&d},ensureHotkeysFilterConfigured(),enablePatches(),enableMapSet(),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},connectionErrorDismissed:!1,layout:PageConfig.Layout.CENTERED,initialSidebarState:PageConfig.SidebarState.AUTO,initialSidebarWidth:void 0,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],showErrorLinks:Config.ShowErrorLinks.SHOW_ERROR_LINKS_AUTO,themeHash:"",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:window.location?.search?.replace(/^\?/,"")??"",deployedAppMetadata:{},libConfig:{},appConfig:{},autoReruns:[],inputsDisabled:!1,navigationPosition:Navigation.Position.SIDEBAR,scriptChangedOnDisk:!1},this.connectionManager=null,this.widgetMgr=new WidgetStateManager({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.widgetMgr.setQueryParamsChangeHandler(this.handleQueryParamsFromWidget),this.hostCommunicationMgr=new HostCommunicationManager({streamlitExecutionStartedAt:i.streamlitExecutionStartedAt,sendRerunBackMsg:this.sendRerunBackMsg,closeModal:this.closeDialog,stopScript:this.stopScript,rerunScript:this.rerunScript,clearCache:this.clearCache,sendAppHeartbeat:this.sendAppHeartbeat,setInputsDisabled:e=>{this.setState({inputsDisabled:e})},themeChanged:this.handleThemeMessage,pageChanged:e=>this.onPageChange(e),isOwnerChanged:e=>this.setState({isOwner:e}),fileUploadClientConfigChanged:e=>{this.endpoints.setFileUploadClientConfig!==void 0&&this.endpoints.setFileUploadClientConfig(e)},hostMenuItemsChanged:e=>{this.setState({hostMenuItems:e})},hostToolbarItemsChanged:e=>{this.setState({hostToolbarItems:e})},hostHideSidebarNavChanged:e=>{this.setState({hostHideSidebarNav:e})},sidebarChevronDownshiftChanged:e=>{this.setState({sidebarChevronDownshift:e})},pageLinkBaseUrlChanged:e=>{this.setState({pageLinkBaseUrl:e})},queryParamsChanged:e=>{this.setState({queryParams:e})},deployedAppMetadataChanged:e=>{this.setState({deployedAppMetadata:e})},restartWebsocketConnection:()=>{this.connectionManager||(this.setState({scriptRunState:ScriptRunState.RERUN_REQUESTED}),this.initializeConnectionManager())},terminateWebsocketConnection:()=>{this.connectionManager?.disconnect(),this.connectionManager=null}}),this.endpoints=new DefaultStreamlitEndpoints({getServerUri:this.getBaseUriParts,csrfEnabled:!0,sendClientError:(e,t,o,d,p)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:e,error:t,message:o,source:d,customComponentName:p})}}),this.uploadClient=new FileUploadClient({sessionInfo:this.sessionInfo,endpoints:this.endpoints,formsWithPendingRequestsChanged:e=>this.widgetMgr.setFormsWithUploadsInProgress(e),requestFileURLs:this.requestFileURLs}),this.componentRegistry=new ComponentRegistry(this.endpoints),this.appNavigation=new AppNavigation(this.hostCommunicationMgr,this.maybeUpdatePageUrl,this.onPageNotFound,this.onPageIconChanged),window.streamlitDebug={clearForwardMsgCache:this.debugClearForwardMsgCache,disconnectWebsocket:this.debugDisconnectWebsocket,shutdownRuntime:this.debugShutdownRuntime}}applyInitialHostConfig(){if(!isHostConfigBypassEnabled())return;const i=StreamlitConfig.HOST_CONFIG,e=includeIfDefined({allowedOrigins:i.allowedOrigins,useExternalAuthToken:i.useExternalAuthToken,enableCustomParentMessages:i.enableCustomParentMessages,blockErrorDialogs:i.blockErrorDialogs});this.hostCommunicationMgr.setAllowedOrigins(e),this.setAppConfig(e);const t=includeIfDefined({mapboxToken:i.mapboxToken,disableFullscreenMode:i.disableFullscreenMode,enforceDownloadInNewTab:i.enforceDownloadInNewTab,resourceCrossOriginMode:i.resourceCrossOriginMode});Object.keys(t).length>0&&this.setLibConfig(t),i.metricsUrl!==void 0&&this.metricsMgr.setMetricsConfig(i.metricsUrl)}initializeConnectionManager(){this.isInitializingConnectionManager=!0,this.applyInitialHostConfig(),this.connectionManager=new ConnectionManager({getLastSessionId:()=>this.sessionInfo.last?.sessionId,endpoints:this.endpoints,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged,claimHostAuthToken:this.hostCommunicationMgr.claimAuthToken,resetHostAuthToken:this.hostCommunicationMgr.resetAuthToken,sendClientError:(i,e,t)=>{this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR",component:"Websocket Connection",error:i,message:e,source:t})},onHostConfigResp:i=>{const e=reconcileHostConfigValues(StreamlitConfig.HOST_CONFIG,i),{allowedOrigins:t,useExternalAuthToken:o,disableFullscreenMode:d,enableCustomParentMessages:p,mapboxToken:h,enforceDownloadInNewTab:y,metricsUrl:$,blockErrorDialogs:E,setAnonymousCrossOriginPropertyOnMediaElements:M,resourceCrossOriginMode:H}=e,Z={allowedOrigins:t,useExternalAuthToken:o,enableCustomParentMessages:p,blockErrorDialogs:E},be={mapboxToken:h,disableFullscreenMode:d,enforceDownloadInNewTab:y,resourceCrossOriginMode:H??(M?"anonymous":void 0)};this.metricsMgr.setMetricsConfig($),this.hostCommunicationMgr.setAllowedOrigins(Z),this.setAppConfig(Z),this.setLibConfig(be)}}),this.isInitializingConnectionManager=!1}componentDidMount(){this.initializeConnectionManager(),mark(this.state.scriptRunState),this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState}),isScrollingHidden()&&document.body.classList.add("embedded"),isInChildFrame()&&(window.iFrameResizer={heightCalculationMethod:()=>{const i=document.querySelectorAll("[data-iframe-height]"),e=Array.from(i).map(t=>Math.ceil(t.getBoundingClientRect().bottom));return Math.max(0,...e)}},__vitePreload(()=>import("./iframeResizer.contentWindow.DTsWJRTo.js").then(i=>i.i),[],import.meta.url)),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(i,e){if(window.prerenderReady===!1&&this.isAppInReadyState(e)&&(window.prerenderReady=!0),this.state.scriptRunState!==e.scriptRunState){if(mark(this.state.scriptRunState),this.state.scriptRunState===ScriptRunState.NOT_RUNNING)try{measure("script-run-cycle",ScriptRunState.RUNNING,ScriptRunState.NOT_RUNNING)}catch{}this.hostCommunicationMgr.sendMessageToHost({type:"SCRIPT_RUN_STATE_CHANGED",scriptRunState:this.state.scriptRunState})}}componentWillUnmount(){this.connectionManager?.disconnect(),this.hostCommunicationMgr.closeHostCommunication(),window.removeEventListener("popstate",this.onHistoryChange,!1)}maybeShowErrorDialog(i,e){const{blockErrorDialogs:t}=this.state.appConfig;t||this.openDialog(i);const d=i.type===DialogType.SCRIPT_COMPILE_ERROR?i.type:i.title;this.hostCommunicationMgr.sendMessageToHost({type:"CLIENT_ERROR_DIALOG",error:d,message:e})}showError(i,e,t=DialogType.WARNING){LOG.error(e.message);const o={type:t,title:i,msg:jsx$1(DialogErrorMessage$1,{message:e.message,codeBlock:e.codeBlock}),onClose:()=>{}};this.maybeShowErrorDialog(o,e.message)}hasStreamlitVersionChanged(i){let e;if(StreamlitConfig.ENABLE_RELOAD_BASED_ON_HARDCODED_STREAMLIT_VERSION===!0?e=define_PACKAGE_METADATA_default.version:this.sessionInfo.isSet&&(e=this.sessionInfo.current.streamlitVersion),e){const{environmentInfo:t}=i;if(notNullOrUndefined(t)&¬NullOrUndefined(t.streamlitVersion))return e!=t.streamlitVersion}return!1}maybeSetState(i){if(i){const[e,t]=i;this.setState(e,t)}}processThemeInput(i){const e=this.createThemeHash(i);if(e===this.state.themeHash)return;this.setState({themeHash:e});const t=!isPresetTheme(this.props.theme.activeTheme);if(i){const o=createCustomThemes(i);this.props.theme.addThemes(o,{keepPresetThemes:!1});const d=getPreferredTheme(o);if(d)this.setAndSendTheme(d);else if(o.length>1){const p=o.findIndex(h=>h.name===CUSTOM_THEME_AUTO_NAME);this.setAndSendTheme(o[p])}else this.setAndSendTheme(o[0])}else if(this.props.theme.addThemes([]),t){const d=getPreferredTheme([lightTheme,darkTheme]);d?this.setAndSendTheme(d):this.setAndSendTheme(createAutoTheme())}(i?.fontFaces&&i.fontFaces.length>0||i?.fontSources&&i.fontSources.length>0)&&this.props.theme.setFonts(i)}handleScriptFinished(i){(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&(Promise.resolve().then(()=>{this.state.scriptFinishedHandlers.forEach(e=>e())}),(i===ForwardMsg.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||i===ForwardMsg.ScriptFinishedStatus.FINISHED_FRAGMENT_RUN_SUCCESSFULLY)&&this.setState(({scriptRunId:e,fragmentIdsThisRun:t,elements:o})=>({elements:o.clearStaleNodes(e,t)}),()=>{const e=new Set(Array.from(this.state.elements.getElements()).map(t=>getElementId(t)).filter(notUndefined));this.widgetMgr.removeInactive(e)}),this.connectionManager!==null&&i!==ForwardMsg.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN&&this.sessionInfo.isSet&&this.hasReceivedNewSession&&this.connectionManager.incrementMessageCacheRunCount(this.sessionInfo.current.maxCachedMessageAge,this.state.fragmentIdsThisRun))}clearAppState(i,e,t,o){this.setState(d=>{const p=this.appNavigation.clearPageElements(d.elements,o);return{scriptRunId:e,scriptName:t,appHash:i,elements:p}},()=>{const d=new Set(Array.from(this.state.elements.getElements()).map(p=>getElementId(p)).filter(notUndefined));this.widgetMgr.removeInactive(d)})}openDialog(i){this.setState({dialog:i})}render(){const{allowRunOnSave:i,connectionState:e,dialog:t,elements:o,initialSidebarState:d,menuItems:p,isFullScreen:h,scriptRunId:y,scriptRunState:$,userSettings:E,hideTopBar:M,hideSidebarNav:H,expandSidebarNav:Z,currentPageScriptHash:be,hostHideSidebarNav:ye,pageLinkBaseUrl:we,sidebarChevronDownshift:Ce,hostMenuItems:xe,hostToolbarItems:Ne,libConfig:Fe,inputsDisabled:Le,appPages:Me,navSections:Ve,navigationPosition:Ke,scriptChangedOnDisk:ze}=this.state,je=this.props.isMobileViewport?Navigation.Position.SIDEBAR:Ke,We=showDevelopmentOptions(this.state.isOwner,this.state.toolbarMode),Xe=classNames("stApp",getEmbeddingIdClassName(this.embeddingId),{"streamlit-embedded":isEmbed(),"streamlit-wide":E.wideMode}),Qe=t?StreamlitDialog({...t,onClose:this.closeDialog}):null,Ye=this.shouldShowToolbar(xe,Ne),He=!isEmbed()||isPaddingDisplayed(),rt=isScrollingHidden();return jsx$1(StreamlitContextProvider$1,{initialSidebarState:d,initialSidebarWidth:this.state.initialSidebarWidth,appRootRef:this.appRootRef,pageLinkBaseUrl:we,currentPageScriptHash:be,onPageChange:this.onPageChange,navSections:Ve,appPages:Me,appLogo:o.logo,sidebarChevronDownshift:Ce,expandSidebarNav:Z,hideSidebarNav:H||ye||je===Navigation.Position.TOP,isFullScreen:h,setFullScreen:this.handleFullScreen,activeTheme:this.props.theme.activeTheme,setTheme:this.setAndSendTheme,availableThemes:this.props.theme.availableThemes,fragmentIdsThisRun:this.state.fragmentIdsThisRun,locale:window.navigator.language,formsData:this.state.formsData,scriptRunState:$,scriptRunId:y,mapboxToken:Fe.mapboxToken,enforceDownloadInNewTab:Fe.enforceDownloadInNewTab,resourceCrossOriginMode:Fe.resourceCrossOriginMode,showErrorLinks:this.state.showErrorLinks,requestDeferredFile:this.requestDeferredFile,children:jsx$1(ReactHotkeys,{keyName:"r,c,esc",onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,children:jsxs(StyledApp,{ref:this.appRootRef,className:Xe,"data-testid":"stApp","data-test-script-state":y==INITIAL_SCRIPT_RUN_ID?"initial":$,"data-test-connection-state":e,children:[jsx$1(AppView,{endpoints:this.endpoints,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,elements:o,widgetMgr:this.widgetMgr,uploadClient:this.uploadClient,navigationPosition:je,wideMode:E.wideMode,embedded:isEmbed(),showPadding:He,disableScrolling:rt,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,widgetsDisabled:Le||e!==ConnectionState.CONNECTED,showToolbar:Ye,disableFullscreenMode:Fe.disableFullscreenMode,componentRegistry:this.componentRegistry,topRightContent:jsxs(Fragment,{children:[!M&&jsx$1(StatusWidget,{connectionState:e,scriptRunState:$,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:i,showScriptChangedActions:ze}),!M&&jsx$1(ToolbarActions,{hostToolbarItems:Ne,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,metricsMgr:this.metricsMgr}),this.showDeployButton()&&!ze&&jsx$1(DeployButton,{onClick:this.deployButtonClicked}),!M&&jsx$1(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:xe,developmentMode:We,sendMessageToHost:this.hostCommunicationMgr.sendMessageToHost,menuItems:p,metricsMgr:this.metricsMgr,toolbarMode:this.state.toolbarMode})]})}),Qe]})})})}}const AppWithScreenCast=withScreencast(App),AppWrapper=n=>{const{isMobile:i}=useViewportSize();return jsx$1(AppWithScreenCast,{...n,isMobileViewport:i})},getSystemCustomTheme=n=>n.find(i=>i.name===(getSystemThemePreference()==="dark"?CUSTOM_THEME_DARK_NAME:CUSTOM_THEME_LIGHT_NAME)),createAutoCustomTheme=n=>({...n,name:CUSTOM_THEME_AUTO_NAME,displayName:AUTO_THEME_NAME});function useThemeManager(){const n=getDefaultTheme(),[i,e]=reactExports.useState(n),[t,o]=reactExports.useState(n.themeInput?.fontFaces??[]),[d,p]=reactExports.useState(null),[h,y]=reactExports.useState(()=>[...createPresetThemes(),...isPresetTheme(n)?[]:[n]]),$=reactExports.useRef(h);reactExports.useEffect(()=>{$.current=h},[h]);const E=reactExports.useCallback((we,Ce={})=>{const{keepPresetThemes:xe=!0}=Ce,Ne=[...xe?createPresetThemes():[],...we];$.current=Ne,y(Ne)},[]),M=reactExports.useCallback((we,Ce={})=>{const{persist:xe=!0}=Ce;e(Ne=>we!==Ne?(xe&&setCachedThemeSelection(we),we):Ne)},[]),H=reactExports.useCallback(we=>{if(we.name===AUTO_THEME_NAME){M(getHostSpecifiedTheme());return}if(we.name===CUSTOM_THEME_AUTO_NAME){const Ce=getSystemCustomTheme($.current);if(Ce){M(createAutoCustomTheme(Ce));return}}M(we)},[M]),Z=reactExports.useCallback(()=>{const we=getHostSpecifiedTheme();i.name===AUTO_THEME_NAME&&M(we,{persist:!1});const Ce=h.filter(Ne=>Ne.name!==AUTO_THEME_NAME),xe=Ce.some(Ne=>Ne.name===CUSTOM_THEME_AUTO_NAME);if(xe&&i.name===CUSTOM_THEME_AUTO_NAME){const Ne=getSystemCustomTheme(Ce);Ne&&M(createAutoCustomTheme(Ne),{persist:!1})}y(xe?Ce:[createAutoTheme(),...Ce])},[i.name,h,M]),be=reactExports.useCallback(we=>{we.fontFaces&&o(we.fontFaces);const Ce=[...we.fontSources||[],...we.sidebar?.fontSources||[]],xe={};Ce.forEach(Ne=>{Ne.sourceUrl&&Ne.configName&&(xe[Ne.configName]=Ne.sourceUrl)}),p(Object.keys(xe).length>0?xe:null)},[]),ye=reactExports.useCallback(we=>{be(we);const Ce=new CustomThemeConfig(we),xe=createTheme(CUSTOM_THEME_NAME,Ce);H(xe)},[be,H]);return reactExports.useEffect(()=>{const we=window.matchMedia("(prefers-color-scheme: dark)");return we.addEventListener("change",Z),window.addEventListener("afterprint",Z),()=>{window.removeEventListener("afterprint",Z),we.removeEventListener("change",Z)}},[Z]),[{setTheme:H,activeTheme:i,addThemes:E,availableThemes:h,setFonts:be,setImportedTheme:ye},t,d]}const ThemedApp=({streamlitExecutionStartedAt:n})=>{const[i,e,t]=useThemeManager(),{activeTheme:o}=i;return jsx$1(RootStyleProvider,{theme:o,children:jsx$1(WindowDimensionsProvider,{children:jsxs(PortalProvider,{children:[e.length>0&&jsx$1(FontFaceDeclaration,{fontFaces:e}),t&&jsx$1(FontSources,{fontSources:t}),jsx$1(AppWrapper,{theme:i,streamlitExecutionStartedAt:n})]})})})},streamlitExecutionStartedAt=Date.now(),engine=new StyletronClient({prefix:"st-"}),rootDomNode=document.getElementById("root");if(!rootDomNode)throw new Error("#root DOM element not found");const reactRoot=clientExports.createRoot(rootDomNode);reactRoot.render(jsx$1(reactExports.StrictMode,{children:jsx$1(HelmetProvider,{children:jsx$1(Provider$1,{value:engine,children:jsx$1(ThemedApp,{streamlitExecutionStartedAt})})})}));export{Fragment as $,ADJOINED as A,BaseButtonKind as B,Checkbox$1 as C,DynamicButtonLabel as D,EmotionIconBase as E,StyledDropdownListItem as F,isPropValid as G,DownloadContext as H,StyledErrorMessage as I,toString$2 as J,findAndReplace as K,LibConfigContext as L,Table$1 as M,range as N,isNumericType as O,Placement as P,DataFrameCellType as Q,useCrossOriginAttribute as R,StreamlitConfig as S,TooltipIcon as T,UISelectbox as U,loglevelExports as V,useRequiredContext as W,NavigationContext as X,DynamicIcon as Y,toaster as Z,_extends$A as _,BaseButtonTooltip as a,cacheHas as a$,Kind as a0,AlertElement$1 as a1,Video$1 as a2,keyframes as a3,StyledWidgetInstructions as a4,isFromMac as a5,shouldWidthStretch as a6,Feedback$1 as a7,FormsContext as a8,StyledFormSubmitContent as a9,Tooltip$1 as aA,IsSidebarContext as aB,LabelVisibilityOptions as aC,React as aD,find as aE,parse$2 as aF,parse$3 as aG,normalize$1 as aH,html$2 as aI,svg as aJ,useCopyToClipboard as aK,ACCESSIBILITY_TYPE as aL,Popover$2 as aM,ensureError as aN,ErrorElement as aO,hexToRgb as aP,withWrapper as aQ,__vitePreload as aR,blend as aS,toExportedTheme as aT,ArrowDataframe as aU,useTimeout as aV,Skeleton$1 as aW,Skeleton as aX,queryString as aY,ComponentRegistry as aZ,SetCache as a_,Form$1 as aa,isInForm as ab,convertRemToPx as ac,WidgetLabelHelpIcon as ad,WidgetLabel as ae,isMaterialIcon as af,getBorderColor as ag,TextInput$1 as ah,getDefaultExportFromCjs as ai,darken as aj,PortalContext as ak,reactDomExports as al,classNames as am,requireReact as an,styled$1 as ao,isFocusVisible as ap,getOverride as aq,getOverrideProps as ar,root$4 as as,toNumber as at,isObject$1 as au,mergeOverrides as av,CUSTOM_INPUT_TYPE as aw,ChevronDown$1 as ax,PLACEMENT$1 as ay,Icon$2 as az,BaseButton as b,baseSlice as b$,baseRest as b0,isArrayLikeObject as b1,useSelectCommon as b2,StyledValueContainer as b3,Select as b4,VirtualDropdown as b5,TYPE as b6,Metric$1 as b7,transparentize as b8,StyledWidgetLabel as b9,getTimezone as bA,debounce$2 as bB,isEqual$1 as bC,shouldHeightStretch as bD,__awaiter as bE,PropTypes as bF,isFromWindows as bG,requirePropTypes as bH,merge$1 as bI,getIncreasingGreen as bJ,getDecreasingRed as bK,getBlue80 as bL,getGray30 as bM,getGray70 as bN,getGray90 as bO,keysToSnakeCase as bP,PlotlyChart$1 as bQ,themeColors as bR,isMobile as bS,UploadedFileInfo as bT,FileUploaderState as bU,ThemeContext$1 as bV,useExecuteWhenChanged as bW,arrayComparator as bX,pick$2 as bY,Slider$1 as bZ,zip as b_,Global as ba,getCrossOriginAttribute as bb,_arrayLikeToArray as bc,_unsupportedIterableToArray as bd,ViewStateContext as be,useWindowDimensionsContext as bf,LocaleContext as bg,LabelVisibility as bh,ButtonGroup$1 as bi,StyledButtonGroup as bj,NumberInput$1 as bk,useStyletron as bl,mergeOverride as bm,toObjectOverride as bn,Icon$1 as bo,DeleteAlt$1 as bp,forkBlur as bq,forkFocus as br,addCssUnit as bs,convert as bt,visitParents as bu,SKIP as bv,isNamedColor as bw,resolveNamedColor as bx,isDatetimeType as by,isDateType as bz,BaseButtonSize as c,_classCallCheck as c$,baseToString as c0,trimmedEndIndex as c1,util_bn_ as c2,util_int_ as c3,util_bit_ as c4,util_math_ as c5,util_buffer_ as c6,util_vector_ as c7,util_pretty_ as c8,util_interval_ as c9,chatInputAcceptFileProtoValueToEnum as cA,requireReactDom as cB,UIDConsumer as cC,StatefulMenu as cD,ok as cE,stringify$2 as cF,stringify$1 as cG,pointStart as cH,visit as cI,pointEnd as cJ,structuredClone$1 as cK,identity as cL,arrayEach as cM,baseEach as cN,isArray$1 as cO,arrayMap as cP,baseMap as cQ,baseIteratee as cR,baseForOwn as cS,isObjectLike as cT,baseGetTag as cU,isPlainObject$3 as cV,cloneDeep$1 as cW,StatefulPopover as cX,_typeof$e as cY,_inherits as cZ,_createSuper as c_,compareTypes as ca,compareFields as cb,compareSchemas as cc,getAugmentedNamespace as cd,isStringType as ce,isTimeType as cf,isPeriodType as cg,isIntervalType as ch,isDurationType as ci,isDecimalType as cj,isFloatType as ck,isObjectType as cl,isListType as cm,TimeUnit as cn,Struct as co,ThemeProvider$1 as cp,createThemedStyled as cq,createThemedUseStyletron as cr,createThemedWithStyle as cs,expandBorderStyles as ct,withStyle as cu,requireReactIs$1 as cv,tableFromIPC as cw,assertNever as cx,v4 as cy,AcceptFileValue as cz,Box as d,_defineProperty$s as d0,_assertThisInitialized as d1,_createClass as d2,filterOptions as d3,mergeWith as d4,parseEntities as d5,StyledPre as d6,StyledCopyButton as d7,StyledCopyButtonContainer as d8,StyledCodeBlock as d9,css as dA,parseIconPackEntry as dB,genericFonts as dC,resolveNamedBackgroundColor as dD,isUnsignedIntegerType as dE,isIntegerType as dF,isBooleanType as dG,Field as dH,Null as dI,isRangeIndexType as dJ,isEmptyType as dK,isBytesType as dL,isCategoricalType as dM,fontSizes as dN,Dataframe as dO,lighten as dP,mix$1 as dQ,TRIGGER_TYPE as dR,StyledTooltipContentWrapper as dS,FlexContext as dT,useScrollbarGutterSize as dU,Resizable as dV,propTypesExports as da,_slicedToArray as db,index as dc,_getPrototypeOf as dd,_possibleConstructorReturn as de,parseToRgba as df,DeckGlJsonChart$1 as dg,hasPath as dh,isArrayLike as di,isBuffer as dj,isTypedArray as dk,isArguments as dl,getTag as dm,isPrototype as dn,baseKeys as dp,Set$1 as dq,setToArray as dr,requireClassnames as ds,groupBy as dt,flatten as du,Vector as dv,getLuminance as dw,_objectWithoutProperties$1 as dx,_objectSpread2 as dy,jsx as dz,isNullOrUndefined$1 as e,StyledWidgetLabelHelpInline as f,getHelpTooltipAriaLabel as g,hoistNonReactStatics as h,isValidFormId as i,jsx$1 as j,useCalculatedDimensions as k,useEmotionTheme as l,hasLightBackgroundColor as m,notNullOrUndefined as n,jsxs as o,labelVisibilityProtoValueToEnum as p,StreamlitMarkdown$1 as q,reactExports as r,streamlit as s,StyledContent as t,useRegisterShortcut as u,StyledCheckbox$1 as v,getOverrides as w,SIZE$1 as x,ENHANCER_POSITION as y,styled as z};
|