@stlite/desktop 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dump_artifacts.js +1 -1
- package/build/asset-manifest.json +4 -4
- package/build/index.html +1 -1
- package/build/static/js/{main.3f15f5c7.chunk.js → main.d0b308e0.chunk.js} +3 -3
- package/build/static/js/{main.3f15f5c7.chunk.js.LICENSE.txt → main.d0b308e0.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/{main.3f15f5c7.chunk.js.map → main.d0b308e0.chunk.js.map} +1 -1
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! For license information please see main.
|
|
1
|
+
/*! For license information please see main.d0b308e0.chunk.js.LICENSE.txt */
|
|
2
2
|
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[4],{104:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(5),o=n(33);const i=Object(r.a)("label",{target:"effi0qh3"})((({disabled:e,labelVisibility:t,theme:n})=>({fontSize:n.fontSizes.sm,color:e?n.colors.fadedText40:n.colors.bodyText,display:t===o.a.Collapsed?"none":"flex",visibility:t===o.a.Hidden?"hidden":"visible",marginBottom:n.spacing.sm,height:"auto",minHeight:n.fontSizes.xl,verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),""),a=Object(r.a)("div",{target:"effi0qh2"})((()=>({display:"flex",flexDirection:"row",justifyContent:"flex-end",flex:1})),""),l=Object(r.a)("div",{target:"effi0qh1"})((({theme:e})=>({fontSize:e.fontSizes.twoSm,color:e.colors.fadedText60,margin:e.spacing.none,textAlign:"right",position:"absolute",bottom:0,right:e.spacing.halfSmFont})),""),s=Object(r.a)("label",{target:"effi0qh0"})((({theme:e})=>({marginLeft:e.spacing.xs,position:"relative",display:"flex",flexDirection:"row"})),"")},1105:function(e,t,n){},1107:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),i=n(55),a=n.n(i),l=n(88),s=n(1154),c=n(40),u=n(182),d=n(61),p=n(18),h=n(1);var f=function({theme:e,baseuiTheme:t,children:n}){return Object(h.jsx)(u.b,{theme:t||p.lightBaseUITheme,children:Object(h.jsx)(d.d,{theme:e,children:n})})},b=n(105),m=n.n(b),g=n(106),y=n(80),O=n(194),w=n.n(O),j=n(53),S=n(423),x=n(15),v=n(116),k=n(169),P=n(75),I=n(64),C=n(36),V=n(35);var T=n(68),E=n(19);class A{constructor(){this.initialized=!1,this.actuallySendMetrics=!1,this.pendingEvents=[],this.pendingDeltaCounter={},this.pendingCustomComponentCounter={},this.appHash="Not initialized",this.metadata={},this.setAppHash=e=>{this.appHash=e}}initialize({gatherUsageStats:e}){if(this.initialized=!0,this.actuallySendMetrics=e,this.actuallySendMetrics){(()=>{const e=window.analytics=window.analytics||[];if(!e.initialize)if(e.invoked)window.console&&console.error&&console.error("Segment snippet included twice.");else{e.invoked=!0,e.methods=["trackSubmit","trackClick","trackLink","trackForm","pageview","identify","reset","group","track","ready","alias","debug","page","once","off","on","addSourceMiddleware","addIntegrationMiddleware","setAnonymousId","addDestinationMiddleware"],e.factory=function(t){return function(...n){const r=Array.prototype.slice.call(n);return r.unshift(t),e.push(r),e}};for(let t=0;t<e.methods.length;t++){const n=e.methods[t];e[n]=e.factory(n)}e.load=function(t,n){const r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.segment.com/analytics.js/v1/"+t+"/analytics.min.js";const o=document.getElementsByTagName("script")[0];o&&o.parentNode&&o.parentNode.insertBefore(r,o),e._loadOptions=n},e.SNIPPET_VERSION="4.1.0",e.load("iCkMy7ymtJ9qYzQRXkQpnAJEq7D4NyMU")}})();const e={...A.getInstallationData(),...this.getHostTrackingData()};""!==V.a.current.authorEmail&&(e.authoremail=V.a.current.authorEmail),this.identify(V.a.current.installationId,e),this.sendPendingEvents()}Object(E.a)("Gather usage stats: ",this.actuallySendMetrics)}enqueue(e,t={}){this.initialized&&V.a.isSet()?this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(e,t)):this.pendingEvents.push([e,t])}clearDeltaCounter(){this.pendingDeltaCounter={}}incrementDeltaCounter(e){null==this.pendingDeltaCounter[e]?this.pendingDeltaCounter[e]=1:this.pendingDeltaCounter[e]++}getAndResetDeltaCounter(){const e=this.pendingDeltaCounter;return this.clearDeltaCounter(),e}clearCustomComponentCounter(){this.pendingCustomComponentCounter={}}incrementCustomComponentCounter(e){null==this.pendingCustomComponentCounter[e]?this.pendingCustomComponentCounter[e]=1:this.pendingCustomComponentCounter[e]++}getAndResetCustomComponentCounter(){const e=this.pendingCustomComponentCounter;return this.clearCustomComponentCounter(),e}send(e,t={}){const n={...t,...this.getHostTrackingData(),...A.getInstallationData(),reportHash:this.appHash,dev:T.a,source:"browser",streamlitVersion:V.a.current.streamlitVersion};T.a?Object(E.a)("[Dev mode] Not tracking stat datapoint: ",e,n):this.track(e,n)}sendPendingEvents(){this.pendingEvents.forEach((([e,t])=>{this.send(e,t)})),this.pendingEvents=[]}identify(e,t){T.a?Object(E.a)("[Dev mode] Not sending id: ",e,t):analytics.identify(e,t)}track(e,t){analytics.track(e,t)}static getInstallationData(){return{machineIdV3:V.a.current.installationIdV3}}setMetadata(e){this.metadata=e}getHostTrackingData(){return this.metadata?Object(C.pick)(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}}A.current=new A;var D=n(33);const N="NO_SCRIPT_RUN_ID";class R{constructor(e,t,n){this.element=void 0,this.metadata=void 0,this.scriptRunId=void 0,this.lazyImmutableElement=void 0,this.lazyQuiverElement=void 0,this.lazyVegaLiteChartElement=void 0,this.element=e,this.metadata=t,this.scriptRunId=n}get immutableElement(){if(void 0!==this.lazyImmutableElement)return this.lazyImmutableElement;const e=Object(I.c)(x.g,this.element);return this.lazyImmutableElement=e,e}get quiverElement(){if(void 0!==this.lazyQuiverElement)return this.lazyQuiverElement;if("arrowTable"!==this.element.type&&"arrowDataFrame"!==this.element.type)throw new Error(`elementType '${this.element.type}' is not a valid Quiver element!`);const e=new v.b(this.element[this.element.type]);return this.lazyQuiverElement=e,e}get vegaLiteChartElement(){if(void 0!==this.lazyVegaLiteChartElement)return this.lazyVegaLiteChartElement;if("arrowVegaLiteChart"!==this.element.type)throw new Error(`elementType '${this.element.type}' is not a valid VegaLiteChartElement!`);const e=this.element.arrowVegaLiteChart,t=e.data?new v.b(e.data):null,n=e.datasets.length>0?e.datasets.map((e=>({hasName:e.hasName,name:e.name,data:new v.b(e.data)}))):[];const r={data:t,spec:e.spec,datasets:n,useContainerWidth:e.useContainerWidth};return this.lazyVegaLiteChartElement=r,r}getIn(e){}setIn(e,t,n){throw new Error("'setIn' cannot be called on an ElementNode")}clearStaleNodes(e){return this.scriptRunId===e?this:void 0}getElements(e){return null==e&&(e=new Set),e.add(this.element),e}addRows(e,t){const n=new R(this.element,this.metadata,t);return n.lazyImmutableElement=Object(k.a)(this.immutableElement,Object(I.c)(x.o,e)),n}arrowAddRows(e,t){const n=this.element.type,r=new R(this.element,this.metadata,t);switch(n){case"arrowTable":case"arrowDataFrame":r.lazyQuiverElement=R.quiverAddRowsHelper(this.quiverElement,e);break;case"arrowVegaLiteChart":r.lazyVegaLiteChartElement=R.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,e);break;default:throw new Error(`elementType '${this.element.type}' is not a valid arrowAddRows target!`)}return r}static quiverAddRowsHelper(e,t){if(t.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");const n=new v.b(t.data);return e.addRows(n)}static vegaLiteChartAddRowsHelper(e,t){const n=t.hasName?t.name:null,r=new v.b(t.data);return Object(y.d)(e,(e=>{const t=function(e,t){if(1===e.length)return e[0];return e.find((e=>e.hasName&&e.name===t))}(e.datasets,n);t?t.data=t.data.addRows(r):e.data=e.data?e.data.addRows(r):r}))}}class M{constructor(e,t,n){this.children=void 0,this.deltaBlock=void 0,this.scriptRunId=void 0,this.children=null!==e&&void 0!==e?e:[],this.deltaBlock=null!==t&&void 0!==t?t:new x.d({}),this.scriptRunId=null!==n&&void 0!==n?n:N}get isEmpty(){return 0===this.children.length}getIn(e){if(0===e.length)return;const t=e[0];return t<0||t>=this.children.length?void 0:1===e.length?this.children[t]:this.children[t].getIn(e.slice(1))}setIn(e,t,n){if(0===e.length)throw new Error("empty path!");const r=e[0];if(r<0||r>this.children.length)throw new Error(`Bad 'setIn' index ${r} (should be between [0, ${this.children.length}])`);const o=this.children.slice();return 1===e.length?o[r]=t:o[r]=o[r].setIn(e.slice(1),t,n),new M(o,this.deltaBlock,n)}clearStaleNodes(e){if(this.scriptRunId!==e)return;const t=this.children.map((t=>t.clearStaleNodes(e))).filter(D.n);return 0!==t.length||this.deltaBlock.allowEmpty?new M(t,this.deltaBlock,e):void 0}getElements(e){null==e&&(e=new Set);for(const t of this.children)t.getElements(e);return e}}class F{static empty(e){let t;if(null!=e){t=[new R(Object(D.l)(e),x.j.create({}),N)]}else t=[];const n=new M(t,new x.d({allowEmpty:!0}),N),r=new M([],new x.d({allowEmpty:!0}),N);return new F(new M([n,r]))}constructor(e){if(this.root=void 0,this.root=e,2!==this.root.children.length||null==this.main||null==this.sidebar)throw new Error(`Invalid root node children! ${e}`)}get main(){return this.root.children[x.A.RootContainer.MAIN]}get sidebar(){return this.root.children[x.A.RootContainer.SIDEBAR]}applyDelta(e,t,n){const{deltaPath:r}=n;switch(A.current.incrementDeltaCounter(function(e){if(e.length>0)switch(e[0]){case x.A.RootContainer.MAIN:return"main";case x.A.RootContainer.SIDEBAR:return"sidebar"}throw new Error(`Unrecognized RootContainer in deltaPath: ${e}`)}(r)),t.type){case"newElement":{const i=t.newElement;if(null!=i.type&&A.current.incrementDeltaCounter(i.type),"componentInstance"===i.type){var o;const e=null===(o=i.componentInstance)||void 0===o?void 0:o.componentName;null!=e&&A.current.incrementCustomComponentCounter(e)}return this.addElement(r,e,i,n)}case"addBlock":return A.current.incrementDeltaCounter("new block"),this.addBlock(r,t.addBlock,e);case"addRows":return A.current.incrementDeltaCounter("add rows"),this.addRows(r,t.addRows,e);case"arrowAddRows":A.current.incrementDeltaCounter("arrow add rows");try{return this.arrowAddRows(r,t.arrowAddRows,e)}catch(i){const t=Object(D.k)(Object(P.a)(i).message);return this.addElement(r,e,t,n)}default:throw new Error(`Unrecognized deltaType: '${t.type}'`)}}clearStaleNodes(e){const t=this.main.clearStaleNodes(e)||new M,n=this.sidebar.clearStaleNodes(e)||new M;return new F(new M([t,n],new x.d({allowEmpty:!0}),e))}getElements(){const e=new Set;return this.main.getElements(e),this.sidebar.getElements(e),e}addElement(e,t,n,r){const o=new R(n,r,t);return new F(this.root.setIn(e,o,t))}addBlock(e,t,n){const r=this.root.getIn(e),o=r instanceof M?r.children:[],i=new M(o,t,n);return new F(this.root.setIn(e,i,n))}addRows(e,t,n){const r=this.root.getIn(e);if(null==r)throw new Error(`Can't addRows: invalid deltaPath: ${e}`);const o=r.addRows(t,n);return new F(this.root.setIn(e,o,n))}arrowAddRows(e,t,n){const r=this.root.getIn(e);if(null==r)throw new Error(`Can't arrowAddRows: invalid deltaPath: ${e}`);const o=r.arrowAddRows(t,n);return new F(this.root.setIn(e,o,n))}}var B=n(1132),L=n(1133),_=n(41),z=n(1131),W=n(1134),H=n(5);const U=Object(H.a)("div",{target:"e1s6o5jp0"})((({theme:e})=>({".streamlit-expanderHeader:hover svg":{fill:e.colors.primary},".streamlit-expander.empty":{"div[aria-expanded='true'] + .streamlit-expanderContent":{color:e.colors.darkGray,fontStyle:"italic",fontSize:e.fontSizes.sm,textAlign:"center",paddingBottom:e.spacing.lg,paddingTop:e.spacing.lg,"&:before":{content:'"empty"'}}}})),"");var $=function(e){return t=>{const{label:n,expanded:o,empty:i,widgetsDisabled:a,isStale:l,...s}=t,[c,u]=Object(r.useState)(o);Object(r.useEffect)((()=>{u(o)}),[n,o]);const{colors:p,radii:f,spacing:b,fontSizes:m}=Object(d.c)();return Object(h.jsx)(U,{"data-testid":"stExpander",children:Object(h.jsx)(z.a,{onChange:()=>u(!c),expanded:c?["panel"]:[],disabled:a,overrides:{Content:{style:({$expanded:e})=>({backgroundColor:p.transparent,marginLeft:b.none,marginRight:b.none,marginTop:b.none,marginBottom:b.none,overflow:"visible",paddingLeft:b.lg,paddingRight:b.lg,paddingTop:0,paddingBottom:e?b.lg:0,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none"}),props:{className:"streamlit-expanderContent"}},PanelContainer:{style:()=>({marginLeft:`${b.none} !important`,marginRight:`${b.none} !important`,marginTop:`${b.none} !important`,marginBottom:`${b.none} !important`,paddingLeft:`${b.none} !important`,paddingRight:`${b.none} !important`,paddingTop:`${b.none} !important`,paddingBottom:`${b.none} !important`,borderTop:"none !important",borderBottom:"none !important",borderRight:"none !important",borderLeft:"none !important"})},Header:{style:({$disabled:e})=>({marginBottom:b.none,marginLeft:b.none,marginRight:b.none,marginTop:b.none,backgroundColor:p.transparent,color:e?p.disabled:p.bodyText,fontSize:m.sm,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",paddingBottom:b.md,paddingTop:b.md,paddingRight:b.lg,paddingLeft:b.lg,...l?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{}}),props:{className:"streamlit-expanderHeader",isStale:l}},ToggleIcon:{style:({$disabled:e})=>({color:e?p.disabled:p.bodyText}),component:()=>c?Object(h.jsx)(_.b,{content:B.a,size:"lg"}):Object(h.jsx)(_.b,{content:L.a,size:"lg"})},Root:{props:{className:w()("streamlit-expander",{empty:i}),isStale:l},style:{borderStyle:"solid",borderWidth:"1px",borderColor:p.fadedText10,borderRadius:f.md,...l?{borderColor:p.fadedText05,transition:"border 1s ease-in 0.5s"}:{}}}},children:Object(h.jsx)(W.a,{title:n,children:Object(h.jsx)(e,{...s,disabled:a})},"panel")})})}},J=n(190),G=n(1158),q=n(1139),Y=n(20);const X=Object(H.a)("div",{target:"exp6ofz0"})((({theme:e,isOverflowing:t,tabHeight:n})=>({...t?{position:"relative","::after":{content:'" "',position:"absolute",zIndex:1,top:0,right:0,pointerEvents:"none",backgroundImage:`linear-gradient(to right, ${Object(Y.g)(e.colors.bgColor,1)}, ${e.colors.bgColor})`,width:e.spacing.lg,height:n}}:{}})),"");var Q=function(e){const{widgetsDisabled:t,node:n,isStale:o}=e,[i,a]=Object(r.useState)(0),l=Object(r.useRef)(null),s=Object(d.c)(),[c,u]=Object(r.useState)(!1);Object(r.useEffect)((()=>{if(l.current){const{scrollWidth:e,clientWidth:t}=l.current;u(e>t)}}),[l.current,n.children.length]);const p="2.5rem",f=s.spacing.threeXS;return Object(h.jsx)(X,{isOverflowing:c,tabHeight:p,className:"stTabs",children:Object(h.jsx)(G.a,{activeKey:i,onChange:({activeKey:e})=>{a(e)},renderAll:!0,disabled:t,overrides:{TabHighlight:{style:()=>({backgroundColor:t?s.colors.fadedText40:s.colors.primary,height:f})},TabBorder:{style:()=>({backgroundColor:s.colors.fadedText05,height:f})},TabList:{props:{ref:l},style:()=>({gap:s.spacing.lg,marginBottom:`-${f}`,paddingBottom:f,...o?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{}})},Root:{style:()=>({transform:"none"})}},activateOnFocus:!0,children:n.children.map(((r,o)=>{var a,l;const u={...e,node:r};let d=o.toString();(null===(a=u.node.deltaBlock)||void 0===a||null===(l=a.tab)||void 0===l?void 0:l.label)&&(d=u.node.deltaBlock.tab.label);const f=i.toString()===o.toString(),b=o===n.children.length-1;return Object(h.jsx)(q.a,{title:d,overrides:{TabPanel:{style:()=>({paddingLeft:s.spacing.none,paddingRight:s.spacing.none,paddingBottom:s.spacing.none,paddingTop:s.spacing.lg})},Tab:{style:()=>({height:p,whiteSpace:"nowrap",paddingLeft:s.spacing.none,paddingRight:s.spacing.none,paddingTop:s.spacing.none,paddingBottom:s.spacing.none,fontSize:s.fontSizes.sm,color:t?s.colors.fadedText40:s.colors.bodyText,":focus":{outline:"none",color:t?s.colors.fadedText40:s.colors.primary,background:"none"},":hover":{color:t?s.colors.fadedText40:s.colors.primary,background:"none"},...f?{color:t?s.colors.fadedText40:s.colors.primary}:{},...c&&b?{paddingRight:"0.6rem"}:{}})}},children:Object(h.jsx)(fn,{...u})},o)}))})})},K=n(37);function Z(e,t){return"empty"!==e||t!==K.a.RUNNING}function ee(e,t,n,r){return!e||function(e,t,n){return t===K.a.RERUN_REQUESTED||t===K.a.RUNNING&&e.scriptRunId!==n}(t,n,r)}var te=n(450),ne=n.n(te),re=n(124),oe=n(191);const ie=Object(H.a)("div",{target:"edw49t14"})((({theme:e})=>({fontSize:e.fontSizes.md,fontFamily:e.fonts.sansSerif,padding:`${e.spacing.twoXS} ${e.spacing.xs}`,lineHeight:e.lineHeights.table,overflow:["auto","overlay"]})),""),ae=Object(H.a)("table",{target:"edw49t13"})((({theme:e})=>({width:e.sizes.full,marginBottom:e.spacing.lg,color:e.colors.bodyText,borderCollapse:"collapse",border:`1px solid ${e.colors.fadedText05}`})),""),le=e=>({borderBottom:`1px solid ${e.colors.fadedText05}`,borderRight:`1px solid ${e.colors.fadedText05}`,verticalAlign:"middle",padding:`${e.spacing.twoXS} ${e.spacing.xs}`,fontWeight:e.fontWeights.normal}),se=Object(H.a)("td",{target:"edw49t12"})((({theme:e})=>le(e)),""),ce=Object(H.a)("th",{target:"edw49t11"})((({theme:e})=>({...le(e),color:e.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})),""),ue=Object(H.a)(se,{target:"edw49t10"})((({theme:e})=>({color:e.colors.darkGray,fontStyle:"italic",fontSize:e.fontSizes.md,textAlign:"center"})),"");function de(e,t,n){return Object(h.jsx)("tr",{children:Object(C.range)(n).map((n=>function(e,t,n){var r;const{type:o,cssId:i,cssClass:a,content:l,contentType:s,displayContent:c}=e.getCell(t,n),u=c||v.b.format(l,s),{headerColumns:d}=e.dimensions,p=null===(r=e.types.data[n-d])||void 0===r?void 0:r.pandas_type,f={textAlign:"int64"===p||"float64"===p?"right":"left"};switch(o){case"blank":return Object(h.jsx)(ce,{className:a,children:"\xa0"},n);case"index":return Object(h.jsx)(ce,{scope:"row",id:i,className:a,children:u},n);case"columns":return Object(h.jsx)(ce,{scope:"col",className:a,style:f,children:u},n);case"data":return Object(h.jsx)(se,{id:i,style:f,children:u},n);default:throw new Error(`Cannot parse type "${o}".`)}}(e,t,n)))},t)}var pe=Object(oe.a)((function(e){const t=e.element,{cssId:n,cssStyles:r,caption:o}=t,{headerRows:i,rows:a,columns:l}=t.dimensions,s=Object(C.range)(a),c=s.slice(0,i),u=s.slice(i);return Object(h.jsxs)(ie,{"data-testid":"stTable",children:[r&&Object(h.jsx)("style",{children:r}),Object(h.jsxs)(ae,{id:n,children:[o&&Object(h.jsx)("caption",{children:Object(h.jsx)("small",{children:o})}),c.length>0&&Object(h.jsx)("thead",{children:c.map((e=>de(t,e,l)))}),Object(h.jsx)("tbody",{children:0===u.length?Object(h.jsx)("tr",{children:Object(h.jsx)(ue,{colSpan:l||1,children:"empty"})}):u.map((e=>de(t,e,l)))})]})]})}));const he=Object(H.a)("span",{target:"e17gupbm4"})((({theme:e})=>({color:e.colors.docStringModuleText})),""),fe=Object(H.a)("span",{target:"e17gupbm3"})((({theme:e})=>({fontWeight:e.fontWeights.bold})),""),be=Object(H.a)("span",{target:"e17gupbm2"})((({theme:e,width:t})=>({backgroundColor:e.colors.docStringContainerBackground,padding:`${e.spacing.sm} ${e.spacing.lg}`,fontFamily:e.fonts.monospace,fontSize:e.fontSizes.sm,overflowX:"auto",width:t})),""),me=Object(H.a)("div",{target:"e17gupbm1"})((({theme:e})=>({paddingBottom:e.spacing.sm,marginBottom:e.spacing.sm,borderBottom:`1px solid ${e.colors.fadedText10}`})),""),ge=Object(H.a)("div",{target:"e17gupbm0"})({name:"o572a0",styles:"white-space:pre"});function ye({width:e,element:t}){const{name:n,module:r,docString:o,type:i,signature:a}=t,l=Object(h.jsxs)(he,{children:[r,"."]},"module"),s=Object(h.jsx)(fe,{children:n},"name"),c=Object(h.jsx)("span",{className:"doc-signature",children:a},"signature"),u=Object(h.jsx)("span",{className:"doc-type",children:i},"type");return Object(h.jsxs)(be,{width:e,"data-testid":"stDocstring",children:[Object(h.jsx)(me,{children:n?[r?l:"",s,a?c:""]:[u]}),Object(h.jsx)(ge,{children:o})]})}var Oe=n(235),we=n(51),je=n(89);const Se=Object(H.a)("div",{target:"e1m3hlzs4"})((({theme:e})=>({display:"grid"})),""),xe=Object(H.a)("div",{target:"e1m3hlzs3"})((({theme:e})=>({marginTop:e.spacing.sm,"&:first-of-type":{marginTop:0}})),""),ve=Object(H.a)("span",{target:"e1m3hlzs2"})((({theme:e})=>({fontWeight:e.fontWeights.bold})),""),ke=Object(H.a)("div",{target:"e1m3hlzs1"})((({theme:e})=>({marginTop:`calc(${e.spacing.sm} + ${e.spacing.xl})`,marginBottom:e.spacing.sm})),""),Pe=Object(H.a)("pre",{target:"e1m3hlzs0"})((({theme:e})=>({whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:e.fontSizes.sm,backgroundColor:e.colors.transparent,code:{color:"inherit"}})),"");function Ie({type:e,message:t,messageIsMarkdown:n}){if(n){let n=`**${e}**`;return t&&(n+=`: ${t}`),Object(h.jsx)(je.a,{source:n,allowHTML:!1})}return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(ve,{children:e}),(r=t,null!=r&&""!==r?`: ${t}`:null)]});var r}function Ce({stackTrace:e}){return Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(ke,{children:"Traceback:"}),Object(h.jsx)(Pe,{children:Object(h.jsx)("code",{children:e.map(((e,t)=>Object(h.jsx)(xe,{children:e},t)))})})]})}function Ve({element:e,width:t}){return Object(h.jsx)("div",{className:"stException",children:Object(h.jsx)(we.b,{kind:e.isWarning?we.a.WARNING:we.a.ERROR,width:t,children:Object(h.jsxs)(Se,{children:[Object(h.jsx)("div",{className:"message",children:Object(h.jsx)(Ie,{type:e.type,message:e.message,messageIsMarkdown:e.messageIsMarkdown})}),e.stackTrace&&e.stackTrace.length>0?Object(h.jsx)(Ce,{stackTrace:e.stackTrace}):null]})})})}var Te=n(451),Ee=n.n(Te),Ae=n(452),De=n.n(Ae),Ne=n(125);function Re({width:e,element:t}){const n={width:e},r=Object(d.c)();let o;try{o=JSON.parse(t.body)}catch(a){const e=Object(P.a)(a);try{o=Ee.a.parse(t.body)}catch(l){const n=parseInt(e.message.replace(/[^0-9]/g,""),10);return e.message+=`\n${t.body.substr(0,n+1)} \u2190 here`,Object(h.jsx)(Ne.a,{name:"Json Parse Error",message:e.message})}}const i=Object(Y.b)(r.colors.bgColor)>.5?"rjv-default":"monokai";return Object(h.jsx)("div",{"data-testid":"stJson",style:n,children:Object(h.jsx)(De.a,{src:o,collapsed:!t.expanded,displayDataTypes:!1,displayObjectSize:!1,name:!1,theme:i,style:{fontFamily:r.genericFonts.codeFont,fontSize:r.fontSizes.sm,backgroundColor:r.colors.bgColor}})})}function Me({width:e,element:t}){const n={width:e};return Object(h.jsx)("div",{className:"stMarkdown",style:n,children:Object(h.jsx)(je.a,{isCaption:t.isCaption,source:t.body,allowHTML:t.allowHtml})})}var Fe=n(1142),Be=n(1143),Le=n(111),_e=n(112),ze=n(50),We=n(104);const He=Object(H.a)("div",{target:"e16fv1kl3"})((({theme:e})=>({overflowWrap:"normal",textOverflow:"ellipsis",width:"100%",overflow:"hidden",whiteSpace:"nowrap",fontFamily:e.genericFonts.bodyFont,lineHeight:e.lineHeights.normal,verticalAlign:"middle",display:"flex",flexDirection:"row",alignItems:"center"})),""),Ue=Object(H.a)(We.b,{target:"e16fv1kl2"})((()=>({marginBottom:0})),""),$e=Object(H.a)("div",{target:"e16fv1kl1"})((({theme:e})=>({fontSize:e.fontSizes.threeXL,color:e.colors.textColor,paddingBottom:e.spacing.twoXS})),""),Je=Object(H.a)("div",{target:"e16fv1kl0"})((({theme:e})=>({fontSize:e.fontSizes.md,display:"flex",flexDirection:"row",alignItems:"center",fontWeight:e.fontWeights.normal})),"");function Ge({element:e}){const{colors:t}=Object(d.c)(),{MetricColor:n,MetricDirection:r}=x.n;let o=null,i="";switch(e.color){case n.RED:i=t.red;break;case n.GREEN:i=t.green;break;default:i=t.fadedText60}switch(e.direction){case r.DOWN:o=Fe.a;break;case r.UP:o=Be.a;break;default:o=null}const a={color:i},l=""!==e.delta;return Object(h.jsxs)("div",{"data-testid":"metric-container",children:[Object(h.jsx)(Ue,{"data-testid":"stMetricLabel",children:Object(h.jsxs)(He,{children:[e.label,e.help&&Object(h.jsx)(Le.c,{children:Object(h.jsx)(_e.a,{content:e.help,placement:ze.b.TOP_RIGHT})})]})}),Object(h.jsx)($e,{"data-testid":"stMetricValue",children:Object(h.jsxs)(He,{children:[" ",e.body," "]})}),l&&Object(h.jsxs)(Je,{"data-testid":"stMetricDelta",style:a,children:[Object(h.jsx)(_.b,{content:o,size:"lg",margin:"0 threeXS 0 0"}),Object(h.jsxs)(He,{children:[" ",e.delta," "]})]})]})}var qe=n(132);const Ye=Object(H.a)("div",{target:"e1ynspad4"})((({theme:e})=>({fontSize:e.fontSizes.md,fontFamily:e.fonts.sansSerif,padding:`${e.spacing.twoXS} ${e.spacing.md}`,lineHeight:e.lineHeights.table,overflow:["auto","overlay"]})),""),Xe=Object(H.a)("table",{target:"e1ynspad3"})((({theme:e})=>({width:e.sizes.full,marginBottom:e.spacing.lg,color:e.colors.bodyText,borderCollapse:"collapse",border:`1px solid ${e.colors.fadedText05}`})),""),Qe=e=>({borderBottom:`1px solid ${e.colors.fadedText05}`,borderRight:`1px solid ${e.colors.fadedText05}`,verticalAlign:"middle",padding:`${e.spacing.twoXS} ${e.spacing.md}`,fontWeight:e.fontWeights.normal}),Ke=Object(H.a)("td",{target:"e1ynspad2"})((({theme:e})=>Qe(e)),""),Ze=Object(H.a)("th",{target:"e1ynspad1"})((({theme:e})=>({...Qe(e),color:e.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})),""),et=Object(H.a)(Ke,{target:"e1ynspad0"})((({theme:e})=>({color:e.colors.darkGray,fontStyle:"italic",fontSize:e.fontSizes.md,textAlign:"center"})),"");function tt(e,t,n){return Object(h.jsx)("tr",{children:Object(C.range)(n).map((n=>function(e,t,n){const{contents:r,styles:o,type:i}=Object(k.b)(e,n,t),a=Object(qe.b)(r);switch(i){case"corner":return Object(h.jsx)(Ze,{children:"\xa0"},n);case"row-header":return Object(h.jsx)(Ze,{scope:"row",children:a},n);case"col-header":return Object(h.jsx)(Ze,{scope:"column",children:a},n);case"data":return Object(h.jsx)(Ke,{style:o,children:a},n);default:throw new Error(`Cannot parse type "${i}".`)}}(e,t,n)))},t)}var nt=Object(oe.a)((function({element:e}){const{headerRows:t,rows:n,cols:r}=Object(k.c)(e),o=Object(C.range)(n),i=o.slice(0,t),a=o.slice(t);return Object(h.jsx)(Ye,{"data-testid":"stTable",children:Object(h.jsxs)(Xe,{children:[i.length>0&&Object(h.jsx)("thead",{children:i.map((t=>tt(e,t,r)))}),Object(h.jsxs)("tbody",{children:[a.map((t=>tt(e,t,r))),0===a.length&&Object(h.jsx)("tr",{children:Object(h.jsx)(et,{colSpan:r||1,children:"empty"})})]})]})})}));const rt=Object(H.a)("div",{target:"eyqtai90"})((({theme:e})=>({fontFamily:e.fonts.monospace,whiteSpace:"pre",fontSize:e.fontSizes.sm,overflowX:"auto"})),"");function ot({width:e,element:t}){const n={width:e};return Object(h.jsx)(rt,{"data-testid":"stText",style:n,children:t.body})}var it=n(301);class at{constructor(){this.timerHandle=void 0,this.duration=0,this.startTime=0,this.running=!1}get isRunning(){return this.running}get remainingTime(){if(!this.running)return 0;const e=Date.now()-this.startTime;return Math.max(this.duration-e,0)}setTimeout(e,t){this.cancel(),this.startTime=Date.now(),this.duration=t,this.running=!0,this.timerHandle=window.setTimeout((()=>{this.running=!1,e()}),t)}cancel(){void 0!==this.timerHandle&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}var lt=n(453),st=n.n(lt),ct=n(44);let ut,dt;!function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(ut||(ut={})),function(e){e.RENDER="streamlit:render"}(dt||(dt={}));class pt extends o.a.PureComponent{constructor(e){super(e),this.iframeRef=Object(r.createRef)(),this.componentReady=!1,this.curArgs={},this.curDataframeArgs=[],this.frameHeight=0,this.contentWindow=void 0,this.componentReadyWarningTimer=new at,this.componentDidMount=()=>{this.maybeRegisterIFrameListener(),this.componentReadyWarningTimer.setTimeout((()=>this.setState({readyTimeout:!0})),3e3)},this.componentWillUnmount=()=>{this.deregisterIFrameListener(),this.componentReadyWarningTimer.cancel()},this.componentDidUpdate=()=>{this.maybeRegisterIFrameListener()},this.maybeRegisterIFrameListener=()=>{const e=this.getIFrameContentWindow();if(this.contentWindow!==e){if(this.deregisterIFrameListener(),null==e)return Object(E.b)("ComponentInstance iframe does not have a contentWindow, and will not receive messages!"),void(this.contentWindow=void 0);this.contentWindow=e,this.props.registry.registerListener(this.contentWindow,this.onBackMsg)}},this.deregisterIFrameListener=()=>{null!=this.contentWindow&&(this.props.registry.deregisterListener(this.contentWindow),this.contentWindow=void 0)},this.onBackMsg=(e,t)=>{switch(e){case ut.COMPONENT_READY:{const{apiVersion:e}=t;1!==e?this.setState({componentError:new Error(`Unrecognized component API version: '${e}'`)}):(this.componentReady=!0,this.sendRenderMessage()),this.componentReadyWarningTimer.cancel(),this.setState({readyTimeout:!1});break}case ut.SET_COMPONENT_VALUE:this.componentReady?this.handleSetComponentValue(t,{fromUi:!0}):Object(E.d)(`Got ${e} before ${ut.COMPONENT_READY}!`);break;case ut.SET_FRAME_HEIGHT:this.componentReady?this.handleSetFrameHeight(t):Object(E.d)(`Got ${e} before ${ut.COMPONENT_READY}!`);break;default:Object(E.d)(`Unrecognized ComponentBackMsgType: ${e}`)}},this.handleSetComponentValue=(e,t)=>{const n=ht(e,"value");if(void 0===n)return void Object(E.d)("handleSetComponentValue: missing 'value' prop");const{element:r}=this.props,{dataType:o}=e;"dataframe"===o?this.props.widgetMgr.setArrowValue(r,n,t):"bytes"===o?this.props.widgetMgr.setBytesValue(r,n,t):this.props.widgetMgr.setJsonValue(r,n,t)},this.handleSetFrameHeight=e=>{const t=ht(e,"height");void 0!==t?t!==this.frameHeight&&(null!=this.iframeRef.current?(this.frameHeight=t,this.iframeRef.current.height=this.frameHeight.toString()):Object(E.d)("handleSetFrameHeight: missing our iframeRef!")):Object(E.d)("handleSetFrameHeight: missing 'height' prop")},this.sendForwardMsg=(e,t)=>{null!=this.iframeRef.current?null!=this.iframeRef.current.contentWindow?this.iframeRef.current.contentWindow.postMessage({type:e,...t},"*"):Object(E.d)("Can't send ForwardMsg; iframe has no contentWindow!"):Object(E.d)("Can't send ForwardMsg; missing our iframe!")},this.sendRenderMessage=()=>{this.sendForwardMsg(dt.RENDER,{args:this.curArgs,dfs:this.curDataframeArgs,disabled:this.props.disabled,theme:Object(p.toExportedTheme)(this.props.theme)})},this.renderError=e=>Object(h.jsx)(Ne.a,{name:e.name,message:e.message}),this.renderComponentReadyTimeoutWarning=()=>{const e=`Your app is having trouble loading the **${this.props.element.componentName}** component. \n\n(The app is attempting to load the component from **${this.props.element.url}**, and hasn't received its **"${ut.COMPONENT_READY}"** message.)\n- If this is a development build, have you started the dev server?\n- If this is a release build, have you compiled the frontend?\n\nFor more troubleshooting help, please see the [Streamlit Component docs](${ct.e}) or visit our [forums](${ct.d}).`;return Object(h.jsx)(re.a,{width:this.props.width,body:e,kind:we.a.WARNING})},this.state={componentError:void 0,readyTimeout:!1}}getIFrameContentWindow(){var e;return null===(e=this.iframeRef.current)||void 0===e?void 0:e.contentWindow}render(){if(null!=this.state.componentError)return this.renderError(this.state.componentError);const e=this.state.readyTimeout?this.renderComponentReadyTimeoutWarning():null;let t;const n=[];let r,o;try{o=this.props.element.componentName;const{url:e}=this.props.element;r=null!=e&&""!==e?e:this.props.registry.getComponentURL(o,"index.html"),r=st.a.stringifyUrl({url:r,query:{streamlitUrl:window.location.href}}),t=JSON.parse(this.props.element.jsonArgs),this.props.element.specialArgs.forEach((e=>{const r=e,{key:o}=r;switch(r.value){case"arrowDataframe":n.push({key:o,value:x.b.toObject(r.arrowDataframe)});break;case"bytes":t[o]=r.bytes;break;default:throw new Error(`Unrecognized SpecialArg type: ${r.value}`)}}))}catch(i){const e=Object(P.a)(i);return this.setState({componentError:e}),this.renderError(e)}return this.curArgs=t,this.curDataframeArgs=n,this.componentReady&&this.sendRenderMessage(),Object(h.jsxs)(h.Fragment,{children:[e,Object(h.jsx)(l.b,{allow:it.a,ref:this.iframeRef,src:r,width:this.props.width,height:this.frameHeight,scrolling:"no",sandbox:it.b,title:o})]})}}function ht(e,t,n){return e.hasOwnProperty(t)?e[t]:n}var ft=Object(d.f)(pt),bt=n(85);class mt{constructor(e){this.getServerUri=void 0,this.msgListeners=new Map,this.cachedServerUri=void 0,this.registerListener=(e,t)=>{this.msgListeners.has(e)&&Object(E.d)("MessageEventSource registered multiple times!",e),this.msgListeners.set(e,t)},this.deregisterListener=e=>{this.msgListeners.delete(e)||Object(E.d)("Could not deregister unregistered MessageEventSource!")},this.getComponentURL=(e,t)=>{let n=this.getServerUri();if(void 0===n){if(void 0===this.cachedServerUri)throw new Error("Can't fetch component: not connected to a server");n=this.cachedServerUri}return this.cachedServerUri=n,Object(bt.a)(n,`component/${e}/${t}`)},this.onMessageEvent=e=>{if(null==e.data||!e.data.hasOwnProperty("isStreamlitMessage"))return;if(null==e.source)return void Object(E.d)("Received component message with no eventSource!",e.data);const t=this.msgListeners.get(e.source);if(null==t)return void Object(E.d)("Received component message for unregistered ComponentInstance!",e.data);const{type:n}=e.data;null!=n?t(n,e.data):Object(E.d)("Received Streamlit message with no type!",e.data)},this.getServerUri=e,window.addEventListener("message",this.onMessageEvent)}}var gt=n(219);class yt extends o.a.Component{shouldComponentUpdate(e,t,n){return this.props.enable||e.enable}render(){return this.props.children}}var Ot=yt,wt=n(220);function jt(e,t){let n=t.spacing.lg;return"medium"===e?n=t.spacing.threeXL:"large"===e&&(n=t.spacing.fourXL),n}const St=Object(H.a)("div",{target:"e1tzin5v4"})((({theme:e,gap:t})=>({display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:jt(t,e)})),""),xt=Object(H.a)("div",{target:"e1tzin5v3"})((({theme:e,isStale:t,width:n,elementType:r})=>({width:n,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"},...t?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{},..."empty"===r?{display:"none"}:{},..."balloons"===r?{marginBottom:`-${e.spacing.lg}`}:{}})),""),vt=Object(H.a)("div",{target:"e1tzin5v2"})((({weight:e,gap:t,theme:n})=>{const r=`calc(${100*e}% - ${jt(t,n)})`;return{width:r,flex:`1 1 ${r}`,[`@media (max-width: ${n.breakpoints.columns})`]:{minWidth:`calc(100% - ${n.spacing.twoXL})`}}}),""),kt=(Object(H.a)("div",{target:"e1tzin5v1"})((({theme:e})=>({padding:e.spacing.lg,border:`1px solid ${e.colors.fadedText10}`,borderRadius:e.radii.md})),""),{display:"flex",flexDirection:"column",flex:1}),Pt=Object(H.a)("div",{target:"e1tzin5v0"})((({width:e,theme:t})=>({width:e,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:t.spacing.lg})),""),It=o.a.lazy((()=>n.e(30).then(n.bind(null,1792)))),Ct=o.a.lazy((()=>n.e(11).then(n.bind(null,1768)))),Vt=o.a.lazy((()=>n.e(12).then(n.bind(null,1776)))),Tt=o.a.lazy((()=>Promise.all([n.e(10),n.e(41)]).then(n.bind(null,1782)))),Et=o.a.lazy((()=>Promise.all([n.e(2),n.e(29)]).then(n.bind(null,1783)))),At=o.a.lazy((()=>n.e(31).then(n.bind(null,1793)))),Dt=ne()(At,100),Nt=o.a.lazy((()=>n.e(32).then(n.bind(null,1769)))),Rt=o.a.lazy((()=>Promise.all([n.e(1),n.e(7),n.e(16)]).then(n.bind(null,1773)))),Mt=o.a.lazy((()=>Promise.all([n.e(9),n.e(18)]).then(n.bind(null,1785)))),Ft=o.a.lazy((()=>n.e(33).then(n.bind(null,1794)))),Bt=o.a.lazy((()=>Promise.all([n.e(8),n.e(27)]).then(n.bind(null,1786)))),Lt=o.a.lazy((()=>Promise.all([n.e(26),n.e(34)]).then(n.bind(null,1795)))),_t=o.a.lazy((()=>Promise.all([n.e(2),n.e(36)]).then(n.bind(null,1787)))),zt=o.a.lazy((()=>n.e(37).then(n.bind(null,1796)))),Wt=o.a.lazy((()=>n.e(38).then(n.bind(null,1797)))),Ht=o.a.lazy((()=>n.e(43).then(n.bind(null,1798)))),Ut=o.a.lazy((()=>Promise.all([n.e(1),n.e(15),n.e(24)]).then(n.bind(null,1777)))),$t=o.a.lazy((()=>n.e(39).then(n.bind(null,1778)))),Jt=o.a.lazy((()=>n.e(40).then(n.bind(null,1799)))),Gt=o.a.lazy((()=>Promise.all([n.e(0),n.e(3),n.e(20),n.e(42)]).then(n.bind(null,1800)))),qt=o.a.lazy((()=>n.e(13).then(n.bind(null,1788)))),Yt=o.a.lazy((()=>n.e(22).then(n.bind(null,1801)))),Xt=o.a.lazy((()=>n.e(35).then(n.bind(null,1789)))),Qt=o.a.lazy((()=>Promise.all([n.e(21),n.e(44)]).then(n.bind(null,1784)))),Kt=o.a.lazy((()=>n.e(45).then(n.bind(null,1802)))),Zt=o.a.lazy((()=>Promise.all([n.e(17),n.e(46)]).then(n.bind(null,1790)))),en=o.a.lazy((()=>Promise.all([n.e(1),n.e(14),n.e(25)]).then(n.bind(null,1767)))),tn=o.a.lazy((()=>Promise.all([n.e(0),n.e(28)]).then(n.bind(null,1779)))),nn=o.a.lazy((()=>Promise.all([n.e(0),n.e(23)]).then(n.bind(null,1791)))),rn=o.a.lazy((()=>Promise.all([n.e(3),n.e(47)]).then(n.bind(null,1803)))),on=o.a.lazy((()=>Promise.all([n.e(0),n.e(19)]).then(n.bind(null,1780)))),an=e=>{var t;const{node:n}=e;if(!n)throw new Error("ElementNode not found.");const r={widgetMgr:e.widgetMgr,disabled:e.widgetsDisabled};let o,i=null!==(t=e.width)&&void 0!==t?t:0;switch(n.metadata.elementDimensionSpec&&(n.metadata.elementDimensionSpec.width&&n.metadata.elementDimensionSpec.width>0&&(i=Math.min(n.metadata.elementDimensionSpec.width,i)),n.metadata.elementDimensionSpec.height&&n.metadata.elementDimensionSpec.height>0&&(o=n.metadata.elementDimensionSpec.height)),n.element.type){case"alert":{const e=n.element.alert;return Object(h.jsx)(re.a,{width:i,icon:e.icon,body:e.body,kind:Object(gt.b)(e.format)})}case"audio":return Object(h.jsx)(It,{width:i,element:n.element.audio});case"balloons":return Object(h.jsx)(Ct,{scriptRunId:e.scriptRunId});case"arrowDataFrame":return Object(h.jsx)(Tt,{element:n.element.arrowDataFrame,data:n.quiverElement,width:i,height:o});case"arrowTable":return Object(h.jsx)(pe,{element:n.quiverElement});case"arrowVegaLiteChart":return Object(h.jsx)(Et,{element:n.vegaLiteChartElement,width:i});case"bokehChart":return Object(h.jsx)(Dt,{width:i,element:n.element.bokehChart});case"dataFrame":return Object(h.jsx)(Nt,{element:n.immutableElement.get("dataFrame"),width:i,height:o});case"deckGlJsonChart":return Object(h.jsx)(Rt,{width:i,element:n.element.deckGlJsonChart});case"docString":return Object(h.jsx)(ye,{width:i,element:n.element.docString});case"empty":return Object(h.jsx)("div",{className:"stHidden"});case"exception":return Object(h.jsx)(Ve,{width:i,element:n.element.exception});case"graphvizChart":return Object(h.jsx)(Mt,{element:n.element.graphvizChart,width:i});case"iframe":return Object(h.jsx)(Ft,{element:n.element.iframe,width:i});case"imgs":return Object(h.jsx)(Bt,{width:i,element:n.element.imgs});case"json":return Object(h.jsx)(Re,{width:i,element:n.element.json});case"markdown":return Object(h.jsx)(Me,{width:i,element:n.element.markdown});case"heading":return Object(h.jsx)(wt.a,{width:i,element:n.element.heading});case"plotlyChart":return Object(h.jsx)(Lt,{width:i,height:o,element:n.element.plotlyChart});case"progress":return Object(h.jsx)(Yt,{width:i,element:n.element.progress});case"spinner":return Object(h.jsx)(Xt,{width:i,element:n.element.spinner});case"table":return Object(h.jsx)(nt,{element:n.immutableElement.get("table"),width:i});case"text":return Object(h.jsx)(ot,{width:i,element:n.element.text});case"metric":return Object(h.jsx)(Ge,{element:n.element.metric});case"vegaLiteChart":return Object(h.jsx)(_t,{element:n.immutableElement.get("vegaLiteChart"),width:i});case"video":return Object(h.jsx)(zt,{width:i,element:n.element.video});case"button":{const t=n.element.button;if(r.disabled=r.disabled||t.disabled,t.isFormSubmitter){const{formId:n}=t,o=e.formsData.formsWithUploads.has(n);return Object(h.jsx)(J.c,{element:t,width:i,hasInProgressUpload:o,...r})}return Object(h.jsx)(Wt,{element:t,width:i,...r})}case"downloadButton":{const e=n.element.downloadButton;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Ht,{element:e,width:i,...r},e.id)}case"cameraInput":{const t=n.element.cameraInput;return r.disabled=r.disabled||t.disabled,Object(h.jsx)(Ut,{element:t,uploadClient:e.uploadClient,width:i,...r},t.id)}case"checkbox":{const e=n.element.checkbox;return r.disabled=r.disabled||e.disabled,Object(h.jsx)($t,{element:e,width:i,...r},e.id)}case"colorPicker":{const e=n.element.colorPicker;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Jt,{element:e,width:i,...r},e.id)}case"componentInstance":return Object(h.jsx)(ft,{registry:e.componentRegistry,element:n.element.componentInstance,width:i,...r});case"dateInput":{const e=n.element.dateInput;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Gt,{element:e,width:i,...r},e.id)}case"fileUploader":{const t=n.element.fileUploader;return r.disabled=r.disabled||t.disabled,Object(h.jsx)(en,{element:t,width:i,widgetMgr:r.widgetMgr,uploadClient:e.uploadClient,disabled:r.disabled},t.id)}case"multiselect":{const e=n.element.multiselect;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(qt,{element:e,width:i,...r},e.id)}case"numberInput":{const e=n.element.numberInput;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(on,{element:e,width:i,...r},e.id)}case"radio":{const e=n.element.radio;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Qt,{element:e,width:i,...r},e.id)}case"selectbox":{const e=n.element.selectbox;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Kt,{element:e,width:i,...r},e.id)}case"slider":{const e=n.element.slider;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(Zt,{element:e,width:i,...r},e.id)}case"snow":return Object(h.jsx)(Vt,{scriptRunId:e.scriptRunId});case"textArea":{const e=n.element.textArea;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(tn,{element:e,width:i,...r},e.id)}case"textInput":{const e=n.element.textInput;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(nn,{element:e,width:i,...r},e.id)}case"timeInput":{const e=n.element.timeInput;return r.disabled=r.disabled||e.disabled,Object(h.jsx)(rn,{element:e,width:i,...r},e.id)}default:throw new Error(`Unrecognized Element type ${n.element.type}`)}};var ln=e=>{var t;const{node:n}=e,o=n.element.type||"",i=Z(o,e.scriptRunState),a=ee(i,n,e.scriptRunState,e.scriptRunId),l=null!==(t=e.width)&&void 0!==t?t:0;return Object(h.jsx)(Ot,{enable:i,children:Object(h.jsx)(xt,{"data-stale":a,isStale:a,width:l,className:"element-container",elementType:o,children:Object(h.jsx)(Oe.a,{width:l,children:Object(h.jsx)(r.Suspense,{fallback:Object(h.jsx)(re.a,{body:"Loading...",kind:we.a.INFO,width:l}),children:Object(h.jsx)(an,{...e})})})})})};const sn=$(hn),cn=e=>{const{node:t}=e;if(t.isEmpty&&!t.deltaBlock.column)return Object(h.jsx)(h.Fragment,{});const n=ee(Z("",e.scriptRunState),t,e.scriptRunState,e.scriptRunId),r=t.deltaBlock.expandable?{empty:t.isEmpty,isStale:n,...t.deltaBlock.expandable}:{},o={...e,...r,node:t},i=t.deltaBlock.expandable?Object(h.jsx)(sn,{...o}):Object(h.jsx)(hn,{...o});if("form"===t.deltaBlock.type){const{formId:n,clearOnSubmit:r}=t.deltaBlock.form,o=e.formsData.submitButtonCount.get(n),a=void 0!==o&&o>0;return Object(h.jsx)(J.a,{formId:n,clearOnSubmit:r,width:e.width,hasSubmitButton:a,scriptRunState:e.scriptRunState,widgetMgr:e.widgetMgr,children:i})}var a,l;if(t.deltaBlock.column)return Object(h.jsx)(vt,{weight:null!==(a=t.deltaBlock.column.weight)&&void 0!==a?a:0,gap:null!==(l=t.deltaBlock.column.gap)&&void 0!==l?l:"","data-testid":"column",children:i});if(t.deltaBlock.tabContainer){const e={...o,isStale:n};return Object(h.jsx)(Q,{...e})}return i},un=e=>Object(h.jsx)(h.Fragment,{children:e.node.children.map(((t,n)=>{if(t instanceof R){const r={...e,node:t},o=Object(D.c)(t.element)||n;return Object(h.jsx)(ln,{...r},o)}if(t instanceof M){const r={...e,node:t};return Object(h.jsx)(cn,{...r},n)}throw new Error(`Unrecognized AppNode: ${t}`)}))}),dn=e=>Object(h.jsx)(S.a,{disableHeight:!0,style:kt,children:({width:t})=>{const n={...e,width:t};return Object(h.jsx)(Pt,{width:t,"data-testid":"stVerticalBlock",children:Object(h.jsx)(un,{...n})})}}),pn=e=>{var t,n;const r=null!==(t=null===(n=e.node.deltaBlock.horizontal)||void 0===n?void 0:n.gap)&&void 0!==t?t:"";return Object(h.jsx)(St,{gap:r,"data-testid":"stHorizontalBlock",children:Object(h.jsx)(un,{...e})})};function hn(e){return e.node.deltaBlock.horizontal?Object(h.jsx)(pn,{...e}):Object(h.jsx)(dn,{...e})}var fn=dn,bn=n(1145),mn=n(1146),gn=n(465),yn=n(23);const On=Object(H.a)("section",{target:"e1fqkh3o10"})((({theme:e,isCollapsed:t,sidebarWidth:n})=>{const r=t?0:Math.min(244,window.innerWidth),o=t?0:Math.min(550,.9*window.innerWidth);return{position:"relative",top:"2px",backgroundColor:e.colors.bgColor,zIndex:e.zIndices.header+1,minWidth:r,maxWidth:o,transform:t?`translateX(-${n}px)`:"none",transition:"transform 300ms, min-width 300ms, max-width 300ms","&:focus":{outline:"none"},[`@media (max-width: ${e.breakpoints.md})`]:{boxShadow:"-2rem 0 2rem 2rem "+(t?"transparent":"#00000029")}}}),""),wn=Object(H.a)("div",{target:"e1fqkh3o9"})((({theme:e})=>({position:"relative"})),""),jn=Object(H.a)("ul",{target:"e1fqkh3o8"})((({isExpanded:e,isOverflowing:t,hasSidebarElements:n,theme:r})=>({maxHeight:n?e?"75vh":"33vh":"100vh",listStyle:"none",overflow:["auto","overlay"],margin:0,paddingTop:r.sizes.sidebarTopSpace,paddingBottom:r.spacing.lg,"&::before":t?{content:'" "',backgroundImage:`linear-gradient(0deg, transparent, ${r.colors.bgColor})`,width:"100%",height:"2rem",position:"absolute",top:0,left:0,right:0,pointerEvents:"none"}:null,"&::after":t?{content:'" "',backgroundImage:`linear-gradient(0deg, ${r.colors.bgColor}, transparent)`,height:"2rem",position:"absolute",bottom:0,left:0,right:0,pointerEvents:"none"}:null})),""),Sn=c.c`
|
|
3
3
|
from, to {
|
|
4
4
|
transform: translateY(0);
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
}
|
|
26
26
|
100% {
|
|
27
27
|
opacity: 0;
|
|
28
|
-
}`,ki=Object(H.a)("div",{target:"e1qhdkqn0"})((({theme:e})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:e.sizes.full,height:e.sizes.full,fontSize:"40vh",color:e.colors.red,fontWeight:e.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${e.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",fontFamily:'Helvetica, Calibri, Roboto, "Open Sans", Arial, sans-serif',animation:`${vi} 1s`})),"");class Pi extends r.PureComponent{constructor(...e){super(...e),this.state={countdown:this.props.countdown},this.onAnimationEnd=async()=>{const{countdown:e}=this.state,{endCallback:t}=this.props,n=e-1;n>=0&&this.setState({countdown:n}),0===n&&t()}}render(){const{countdown:e}=this.state;return Object(h.jsx)(ki,{onAnimationEnd:this.onAnimationEnd,children:Object(h.jsx)("span",{children:e})},`frame${e}`)}}Pi.defaultProps={endCallback:()=>{}};var Ii=Pi;var Ci=function(e){class t extends r.PureComponent{constructor(...e){super(...e),this.recorder=void 0,this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:e}=this.state;this.setState({recordAudio:!e})},this.showDialog=e=>{const{currentState:t}=this.state;ai.isSupportedBrowser()?"OFF"===t?this.setState({fileName:e,currentState:"SETUP"}):this.stopRecording().catch((e=>Object(E.d)(`withScreencast.stopRecording threw an error: ${e}`))):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:e}=this.state;this.recorder=new ai({recordAudio:e,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch(t){return Object(E.d)(`ScreenCastRecorder.initialize error: ${t}`),void this.setState({currentState:"UNSUPPORTED"})}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let e;const{currentState:t}=this.state;"OFF"!==t&&null!=this.recorder&&("COUNTDOWN"===t&&this.setState({currentState:"OFF"}),"RECORDING"===t&&("inactive"===this.recorder.getState()?this.setState({currentState:"OFF"}):(e=await this.recorder.stop(),this.setState({outputBlob:e,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(null==this.recorder)throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch((e=>Object(E.d)(`withScreencast.stopRecording threw an error: ${e}`)))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})}}render(){const{outputBlob:t,fileName:n,recordAudio:r,currentState:o}=this.state;return Object(h.jsxs)("div",{className:"withScreencast",children:[Object(h.jsx)(e,{screenCast:this.getScreenCastProps(),...this.props}),"UNSUPPORTED"===o&&Object(h.jsx)(xi,{onClose:this.closeDialog}),"SETUP"===o&&Object(h.jsx)(ui,{recordAudio:r,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),"COUNTDOWN"===o&&Object(h.jsx)(Ii,{countdown:3,endCallback:this.onCountdownEnd}),"PREVIEW_FILE"===o&&t&&Object(h.jsx)(yi,{onClose:this.closeDialog,videoBlob:t,fileName:n})]})}}return t.displayName=`withScreencast(${e.displayName||e.name})`,_n()(t,e)};n(1105);class Vi extends r.PureComponent{constructor(e){super(e),this.sessionEventDispatcher=void 0,this.connectionManager=void 0,this.widgetMgr=void 0,this.uploadClient=void 0,this.pendingElementsBuffer=void 0,this.pendingElementsTimerRunning=void 0,this.componentRegistry=void 0,this.keyMap={RERUN:"r",CLEAR_CACHE:"c",STOP_RECORDING:{sequence:"esc",action:"keyup"}},this.keyHandlers={RERUN:()=>{this.rerunScript()},CLEAR_CACHE:()=>{(Rr()||this.props.s4aCommunication.currentState.isOwner)&&this.openClearCacheDialog()},STOP_RECORDING:this.props.screenCast.stopRecording},this.showDeployError=(e,t,n)=>{this.openDialog({type:No.DEPLOY_ERROR,title:e,msg:t,onContinue:n,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleConnectionStateChanged=e=>{Object(E.c)(`Connection state changed from ${this.state.connectionState} to ${e}`),this.setState({connectionState:e}),e===Zn.a.CONNECTED?(Object(E.c)("Reconnected to server; requesting a script run"),this.widgetMgr.sendUpdateWidgetsMessage(),this.setState({dialog:null})):(Object(D.o)("_xsrf",""),V.a.isSet()&&V.a.clearSession())},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleMessage=e=>{try{((e,t,n)=>{const r=e[t];if(r in n)return n[r](e[r]);throw new Error(`Cannot handle ${t} "${r}".`)})(e,"type",{newSession:e=>this.handleNewSession(e),sessionStateChanged:e=>this.handleSessionStateChanged(e),sessionEvent:e=>this.handleSessionEvent(e),delta:t=>this.handleDeltaMsg(t,e.metadata),pageConfigChanged:e=>this.handlePageConfigChanged(e),pageInfoChanged:e=>this.handlePageInfoChanged(e),pagesChanged:e=>this.handlePagesChanged(e),pageNotFound:e=>this.handlePageNotFound(e),gitInfoChanged:e=>this.handleGitInfoChanged(e),scriptFinished:e=>this.handleScriptFinished(e),pageProfile:e=>this.handlePageProfileMsg(e)})}catch(t){const e=Object(P.a)(t);Object(E.b)(e),this.showError("Bad message format",e.message)}},this.handlePageConfigChanged=e=>{const{title:t,favicon:n,layout:r,initialSidebarState:o,menuItems:i}=e;A.current.enqueue("pageConfigChanged",{favicon:n,layout:r,initialSidebarState:o}),t&&(this.props.s4aCommunication.sendMessage({type:"SET_PAGE_TITLE",title:t}),document.title=t),n&&ni(n,this.getBaseUriParts()),r!==this.state.layout&&this.setState((e=>({layout:r,userSettings:{...e.userSettings,wideMode:r===x.q.Layout.WIDE}}))),o!==this.state.initialSidebarState&&this.setState((()=>({initialSidebarState:o}))),this.setState({menuItems:i})},this.handlePageInfoChanged=e=>{const{queryString:t}=e,n=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",n),this.props.s4aCommunication.sendMessage({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.handlePageNotFound=e=>{var t;const{pageName:n}=e,r=n?`You have requested page /${n}, 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",`${r}. Running the app's main page.`);const o=(null===(t=this.state.appPages[0])||void 0===t?void 0:t.pageScriptHash)||"";this.setState({currentPageScriptHash:o},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:o})}))},this.handlePagesChanged=e=>{const{appPages:t}=e;this.setState({appPages:t},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_APP_PAGES",appPages:t})}))},this.handlePageProfileMsg=e=>{var t,n,r;A.current.enqueue("pageProfile",{...x.r.toObject(e),appId:V.a.current.appId,numPages:null===(t=this.state.appPages)||void 0===t?void 0:t.length,sessionId:V.a.current.sessionId,pythonVersion:V.a.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:null===(n=this.props.theme)||void 0===n||null===(r=n.activeTheme)||void 0===r?void 0:r.name,totalLoadTime:Math.round(1e3*(performance.now()-this.state.latestRunTime))})},this.handleSessionStateChanged=e=>{this.setState((t=>{let{scriptRunState:n}=t,{dialog:r}=t;if(e.scriptIsRunning&&t.scriptRunState!==K.a.STOP_REQUESTED)n=K.a.RUNNING,null!=r&&r.type===No.SCRIPT_COMPILE_ERROR&&(r=void 0);else if(!e.scriptIsRunning&&t.scriptRunState!==K.a.RERUN_REQUESTED&&t.scriptRunState!==K.a.COMPILATION_ERROR){n=K.a.NOT_RUNNING,A.current.enqueue("deltaStats",A.current.getAndResetDeltaCounter());const{availableThemes:e,activeTheme:t}=this.props.theme,r=e.length>Object(p.createPresetThemes)().length;A.current.enqueue("themeStats",{activeThemeName:t.name,customThemeDefined:r});const o=A.current.getAndResetCustomComponentCounter();Object.entries(o).forEach((([e,t])=>{A.current.enqueue("customComponentStats",{name:e,count:t})}))}return{userSettings:{...t.userSettings,runOnSave:Boolean(e.runOnSave)},dialog:r,scriptRunState:n}}))},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),"scriptCompilationException"===e.type){this.setState({scriptRunState:K.a.COMPILATION_ERROR});const t={type:No.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.openDialog(t)}else if(T.b&&"scriptChangedOnDisk"===e.type){const e={type:No.SCRIPT_CHANGED,onRerun:this.rerunScript,onClose:()=>{},allowRunOnSave:this.state.allowRunOnSave};this.openDialog(e)}},this.handleNewSession=e=>{var t;const n=e.initialize;if(Vi.hasStreamlitVersionChanged(n))return void window.location.reload();V.a.isSet()||this.handleOneTimeInitialization(e);const r=e.config,o=e.customTheme,{currentPageScriptHash:i}=this.state,a=e.pageScriptHash,l=e.appPages[0],s=null===(t=e.appPages.find((e=>e.pageScriptHash===a)))||void 0===t?void 0:t.pageName,c=a===l.pageScriptHash,u=this.getBaseUriParts();if(u){const{basePath:e}=u,t=this.getQueryString(),n=`${e?`/${e}`:""}/${c?"":s}${t?`?${t}`:""}`,r=n.endsWith("/")&&"/"!==n?n.slice(0,-1):n;window.history.pushState({},"",r)}this.processThemeInput(o),this.setState({allowRunOnSave:r.allowRunOnSave,hideTopBar:r.hideTopBar,hideSidebarNav:r.hideSidebarNav,appPages:e.appPages,currentPageScriptHash:a,latestRunTime:performance.now()},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_APP_PAGES",appPages:e.appPages}),this.props.s4aCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:c?"":s,currentPageScriptHash:a})}));const{appHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:f}=e,b=Object(D.d)(V.a.current.installationId+f);document.title=`${s} \xb7 Streamlit`,ni("/favicon.png",this.getBaseUriParts()),A.current.setMetadata(this.props.s4aCommunication.currentState.streamlitShareMetadata),A.current.setAppHash(b),A.current.clearDeltaCounter(),A.current.enqueue("updateReport",{numPages:e.appPages.length,isMainPage:c}),d===b&&i===a?this.setState({scriptRunId:p}):this.clearAppState(b,p,h)},this.handleOneTimeInitialization=e=>{const t=e.initialize,n=e.config;V.a.current=V.a.fromNewSessionMessage(e),A.current.initialize({gatherUsageStats:n.gatherUsageStats}),A.current.enqueue("createReport",{pythonVersion:V.a.current.pythonVersion}),this.props.s4aCommunication.connect(),this.handleSessionStateChanged(t.sessionState)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(p.toExportedTheme)(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=Object.entries(e);return t.sort(),Object(D.d)(t.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0}),this.props.s4aCommunication.onModalReset()},this.saveSettings=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:n}=e;if(this.setState({userSettings:e}),t!==n&&this.isServerConnected()){const e=new x.c({setRunOnSave:n});e.type="setRunOnSave",this.sendBackMsg(e)}},this.handleDeltaMsg=(e,t)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,e,t),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const e=this.state.scriptRunState===K.a.RUNNING;setTimeout((()=>{this.pendingElementsTimerRunning=!1,e&&this.setState({elements:this.pendingElementsBuffer})}),10)}},this.rerunScript=(e=!1)=>{this.closeDialog(),this.isServerConnected()?this.state.scriptRunState!==K.a.RUNNING&&this.state.scriptRunState!==K.a.RERUN_REQUESTED&&(A.current.enqueue("rerunScript"),this.setState({scriptRunState:K.a.RERUN_REQUESTED}),!0===e&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage()):Object(E.b)("Cannot rerun script when disconnected from server.")},this.sendLoadGitInfoBackMsg=()=>{this.isServerConnected()?this.sendBackMsg(new x.c({loadGitInfo:!0})):Object(E.b)("Cannot load git information when disconnected from server.")},this.onPageChange=e=>{this.sendRerunBackMsg(void 0,e)},this.sendRerunBackMsg=(e,t)=>{const n=this.getBaseUriParts();if(!n)return void Object(E.b)("Cannot send rerun backMessage when disconnected from server.");const{currentPageScriptHash:r}=this.state,{basePath:o}=n,i=this.getQueryString();let a="";t||(r?t=r:(a=decodeURIComponent(document.location.pathname.replace(`/${o}`,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),"")),t="")),this.sendBackMsg(new x.c({rerunScript:{queryString:i,widgetStates:e,pageScriptHash:t,pageName:a}})),Ho.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected())return void Object(E.b)("Cannot stop app when disconnected from server.");if(this.state.scriptRunState===K.a.NOT_RUNNING||this.state.scriptRunState===K.a.STOP_REQUESTED)return;const e=new x.c({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:K.a.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:No.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else Object(E.b)("Cannot clear cache: disconnected from server")},this.openThemeCreatorDialog=()=>{const e={type:No.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){A.current.enqueue("clearCache");const e=new x.c({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else Object(E.b)("Cannot clear cache: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(Object(E.c)(e),this.connectionManager.sendMessage(e)):Object(E.b)(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.showError("Connection error",e)},this.isServerConnected=()=>!!this.connectionManager&&this.connectionManager.isConnected(),this.settingsCallback=(e=!0)=>{const t={type:No.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:this.state.developerMode,openThemeCreator:this.openThemeCreatorDialog,animateModal:e};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:No.ABOUT,onClose:this.closeDialog,aboutSectionMd:null===e||void 0===e?void 0:e.aboutSectionMd};this.openDialog(t)},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast;t(`streamlit-${e}-${m()().format("YYYY-MM-DD-HH-MM-SS")}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.addScriptFinishedHandler=e=>{this.setState({scriptFinishedHandlers:Object(C.concat)(this.state.scriptFinishedHandlers,e)})},this.removeScriptFinishedHandler=e=>{this.setState({scriptFinishedHandlers:Object(C.without)(this.state.scriptFinishedHandlers,e)})},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.props.s4aCommunication.currentState,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},Object(y.b)(),this.state={connectionState:Zn.a.INITIAL,elements:F.empty("Please wait..."),isFullScreen:!1,scriptName:"",scriptRunId:"<null>",appHash:null,scriptRunState:K.a.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:x.q.Layout.CENTERED,initialSidebarState:x.q.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],developerMode:window.location.host.includes("localhost"),themeHash:null,gitInfo:null,formsData:Jo(),appPages:[],currentPageScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,latestRunTime:performance.now()},this.sessionEventDispatcher=new Qo,this.connectionManager=null,this.widgetMgr=new Yo({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.uploadClient=new l.c({getServerUri:this.getBaseUriParts,formsWithPendingRequestsChanged:e=>this.widgetMgr.setFormsWithUploads(e),csrfEnabled:!0}),this.componentRegistry=new mt(this.getBaseUriParts),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,window.streamlitDebug={},window.streamlitDebug.closeConnection=this.closeConnection.bind(this)}componentDidMount(){this.connectionManager=new l.a({kernel:this.context.kernel,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged}),this.uploadClient.setKernel(this.context.kernel),Object(D.e)()&&document.body.classList.add("embedded"),this.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(p.toExportedTheme)(this.props.theme.activeTheme.emotion)}),A.current.enqueue("viewReport")}componentDidUpdate(e){e.s4aCommunication.currentState.queryParams!==this.props.s4aCommunication.currentState.queryParams&&this.sendRerunBackMsg(),this.props.s4aCommunication.currentState.forcedModalClose&&this.closeDialog();const{requestedPageScriptHash:t}=this.props.s4aCommunication.currentState;null!==t&&(this.onPageChange(t),this.props.s4aCommunication.onPageChanged())}showError(e,t){Object(E.b)(t);const n={type:No.WARNING,title:e,msg:t,onClose:()=>{}};this.openDialog(n)}static hasStreamlitVersionChanged(e){if(V.a.isSet()){const{streamlitVersion:t}=V.a.current,{environmentInfo:n}=e;if(null!=n&&null!=n.streamlitVersion)return t<n.streamlitVersion}return!1}processThemeInput(e){const t=this.createThemeHash(e);if(t===this.state.themeHash)return;this.setState({themeHash:t});const n=!Object(p.isPresetTheme)(this.props.theme.activeTheme);if(e){const t=Object(p.createTheme)(p.CUSTOM_THEME_NAME,e);this.props.theme.addThemes([t]);(null===Object(p.getCachedTheme)()||n)&&this.setAndSendTheme(t)}else e||(this.props.theme.addThemes([]),n&&this.setAndSendTheme(Object(p.createAutoTheme)()))}handleScriptFinished(e){if(e===x.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||e===x.i.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN){const t=e===x.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY;if(window.setTimeout((()=>{this.state.scriptFinishedHandlers.map((e=>e()))}),0),t){this.setState((({scriptRunId:e})=>({elements:this.pendingElementsBuffer.clearStaleNodes(e)})),(()=>{this.pendingElementsBuffer=this.state.elements}));const e=new Set(Array.from(this.state.elements.getElements()).map((e=>Object(D.c)(e))).filter(D.n));this.widgetMgr.removeInactive(e)}null!==this.connectionManager&&this.connectionManager.incrementMessageCacheRunCount(V.a.current.maxCachedMessageAge)}}clearAppState(e,t,n){this.setState({scriptRunId:t,scriptName:n,appHash:e,elements:F.empty()},(()=>{this.pendingElementsBuffer=this.state.elements,this.widgetMgr.removeInactive(new Set([]))}))}openDialog(e){this.setState({dialog:e})}closeConnection(){if(this.isServerConnected()){const e=new x.c({closeConnection:!0});e.type="closeConnection",this.sendBackMsg(e)}}render(){var e;const{allowRunOnSave:t,connectionState:n,dialog:r,elements:o,initialSidebarState:i,menuItems:a,isFullScreen:l,layout:s,scriptRunId:c,scriptRunState:u,userSettings:d,gitInfo:p,hideTopBar:f,hideSidebarNav:b,currentPageScriptHash:m}=this.state,{hideSidebarNav:y}=this.props.s4aCommunication.currentState,O=w()("stApp",{"streamlit-embedded":Object(D.e)(),"streamlit-wide":d.wideMode}),S=r?Ro({...r,onClose:this.closeDialog}):null;return Object(h.jsx)(j.a.Provider,{value:{initialSidebarState:i,layout:s,wideMode:d.wideMode,embedded:Object(D.e)(),isFullScreen:l,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,availableThemes:this.props.theme.availableThemes,setTheme:this.setAndSendTheme,addThemes:this.props.theme.addThemes,sidebarChevronDownshift:this.props.s4aCommunication.currentState.sidebarChevronDownshift,getBaseUriParts:this.getBaseUriParts},children:Object(h.jsx)(g.HotKeys,{keyMap:this.keyMap,handlers:this.keyHandlers,attach:window,focused:!0,children:Object(h.jsxs)(ri,{className:O,children:[Object(h.jsxs)(Gr,{children:[!f&&Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(dr,{connectionState:n,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:u,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:t}),Object(h.jsx)(Hr,{s4aToolbarItems:this.props.s4aCommunication.currentState.toolbarItems,sendS4AMessage:this.props.s4aCommunication.sendMessage})]}),Object(h.jsx)(Lr,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,s4aMenuItems:this.props.s4aCommunication.currentState.menuItems,s4aIsOwner:this.props.s4aCommunication.currentState.isOwner,sendS4AMessage:this.props.s4aCommunication.sendMessage,gitInfo:p,showDeployError:this.showDeployError,closeDialog:this.closeDialog,isDeployErrorModalOpen:(null===(e=this.state.dialog)||void 0===e?void 0:e.type)===No.DEPLOY_ERROR,loadGitInfo:this.sendLoadGitInfoBackMsg,canDeploy:V.a.isSet()&&!V.a.isHello,menuItems:a})]}),Object(h.jsx)(qn,{elements:o,scriptRunId:c,scriptRunState:u,widgetMgr:this.widgetMgr,widgetsDisabled:n!==Zn.a.CONNECTED,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appPages:this.state.appPages,onPageChange:this.onPageChange,currentPageScriptHash:m,hideSidebarNav:b||y,pageLinkBaseUrl:this.props.s4aCommunication.currentState.pageLinkBaseUrl}),S]})})})}}Vi.contextType=l.e;var Ti=Wn(Ci(Vi));var Ei=()=>{const e=Object(p.getDefaultTheme)(),[t,n]=o.a.useState(e),[r,i]=o.a.useState([...Object(p.createPresetThemes)(),...Object(p.isPresetTheme)(e)?[]:[e]]),a=e=>{e!==t&&(n(e),e.name===p.AUTO_THEME_NAME?Object(p.removeCachedTheme)():Object(p.setCachedTheme)(e))},l=()=>{t.name===p.AUTO_THEME_NAME&&a(Object(p.createAutoTheme)());const e=r.filter((e=>e.name!==p.AUTO_THEME_NAME));i([Object(p.createAutoTheme)(),...e])};return o.a.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",l),()=>e.removeEventListener("change",l)}),[t,r]),Object(h.jsx)(s.a,{theme:t.baseweb,zIndex:t.emotion.zIndices.popupMenu,children:Object(h.jsxs)(f,{theme:t.emotion,baseuiTheme:t.basewebTheme,children:[Object(h.jsx)(c.a,{styles:p.globalStyles}),Object(h.jsx)(Ti,{theme:{setTheme:a,activeTheme:t,addThemes:e=>{i([...Object(p.createPresetThemes)(),...e])},availableThemes:r}}),Object(h.jsx)(oi,{id:"portal"})]})})},Ai=n(463),Di=n(135);const Ni=new Ai.a({prefix:"st-"});var Ri=function(e){return Object(h.jsx)(l.f,{kernel:e.kernel,children:Object(h.jsx)(Di.a,{value:Ni,children:Object(h.jsx)(Ei,{})})})};let Mi;{const e=window.location.href.split("/").slice(0,-1).join("/")+"/";Mi=e+"pyodide/pyodide.js"}var Fi=function(){const[e,t]=Object(r.useState)();return Object(r.useEffect)((()=>{let e=!1,n=null;return Promise.all([window.archives.readSitePackagesSnapshot(),window.archives.readStreamlitAppDirectory()]).then((([r,o])=>{if(e)return;const i={};Object.keys(o).forEach((e=>{const t=o[e];i[e]={data:t}}));const a="/tmp/site-packages-snapshot.tar.gz";n=new l.d({entrypoint:"streamlit_app.py",files:{...i,[a]:{data:r}},requirements:[],mountedSitePackagesSnapshotFilePath:a,pyodideEntrypointUrl:Mi}),t(n)})),()=>{e=!0,n&&n.dispose()}}),[]),e?Object(h.jsx)(Ri,{kernel:e}):null};a.a.render(Object(h.jsx)(o.a.StrictMode,{children:Object(h.jsx)(Fi,{})}),document.getElementById("root"))},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.c})),n.d(t,"c",(function(){return r.d})),n.d(t,"d",(function(){return i}));var r=n(104),o=(n(0),n(1));function i({label:e,children:t,disabled:n,labelVisibility:i}){return null==e?Object(o.jsx)(o.Fragment,{}):Object(o.jsxs)(r.b,{"aria-hidden":"true",disabled:n,labelVisibility:i,children:[e,t]})}},112:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n(0);var r=n(50),o=n(1138),i=n(89),a=n(61),l=n(5);const s=Object(l.a)("div",{target:"e1j25pv60"})((({theme:e})=>({display:"flex",alignItems:"center",svg:{stroke:e.colors.fadedText40,strokeWidth:2.25},":hover":{svg:{stroke:e.colors.fadedText60}}})),"");var c=n(1);var u=function({placement:e=r.b.AUTO,iconSize:t="16",content:n,children:l,markdownProps:u}){const d=Object(a.c)();return Object(c.jsx)(s,{className:"stTooltipIcon",children:Object(c.jsx)(r.c,{content:Object(c.jsx)(i.a,{style:{fontSize:d.fontSizes.sm},source:n,allowHTML:!1,...u||{}}),placement:e,inline:!0,children:l||Object(c.jsx)(o.a,{className:"icon",size:t})})})}},116:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(1108),o=n(26),i=n(6),a=n(80),l=n(36),s=n(186),c=n.n(s),u=n(227),d=n.n(u);let p,h;!function(e){e.CategoricalIndex="categorical",e.DatetimeIndex="datetime",e.Float64Index="float64",e.Int64Index="int64",e.RangeIndex="range",e.UInt64Index="uint64",e.UnicodeIndex="unicode",e.PeriodIndex="period[Q-DEC]",e.TimedeltaIndex="time"}(p||(p={})),function(e){e.BLANK="blank",e.INDEX="index",e.COLUMNS="columns",e.DATA="data"}(h||(h={}));class f{constructor(e){this[a.c]=!0,this._index=void 0,this._columns=void 0,this._data=void 0,this._types=void 0,this._styler=void 0;const t=Object(r.a)(e.data),n=f.parseSchema(t),o=f.getRawColumns(n),i=f.parseIndex(t,n),l=f.parseColumns(n),s=f.parseData(t,l,o),c=f.parseTypes(t,n),u=e.styler?f.parseStyler(e.styler):void 0;this._index=i,this._columns=l,this._data=s,this._types=c,this._styler=u}static parseSchema(e){const t=e.schema.metadata.get("pandas");if(null==t)throw new Error("Table schema is missing.");return JSON.parse(t)}static getRawColumns(e){return e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t)))}static parseIndex(e,t){return t.index_columns.map((t=>{if(f.isRangeIndex(t)){const{start:e,stop:n,step:r}=t;return Object(l.range)(e,n,r)}const n=e.getChild(t);return n instanceof o.a&&n.type instanceof i.u?null:n})).filter((e=>null!==e))}static parseColumns(e){const t=e.column_indexes.length>1;return Object(l.unzip)(e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t))).map((e=>t?JSON.parse(e.replace(/\(/g,"[").replace(/\)/g,"]").replace(/'/g,'"')):[e])))}static parseData(e,t,n){const r=e.numRows,o=t.length>0?t[0].length:0;return 0===r||0===o?e.select([]):e.select(n)}static parseTypes(e,t){return{index:f.parseIndexType(t),data:f.parseDataType(e,t)}}static parseIndexType(e){return e.index_columns.map((t=>{if(f.isRangeIndex(t))return{pandas_type:p.RangeIndex,numpy_type:p.RangeIndex,meta:t};const n=e.columns.find((e=>e.field_name===t));if(!n)throw new Error(`${t} index not found.`);return{pandas_type:n.pandas_type,numpy_type:n.numpy_type,meta:n.metadata}}))}static parseDataType(e,t){return e.numRows>0?t.columns.filter((e=>!t.index_columns.includes(e.field_name))).map((e=>({pandas_type:e.pandas_type,numpy_type:e.numpy_type,meta:e.metadata}))):[]}static parseStyler(e){return{uuid:e.uuid,caption:e.caption,styles:e.styles,displayValues:new f({data:e.displayValues})}}concatIndexes(e,t){if(0===e.length)return this._index;if(0===this._index.length)return e;if(!f.sameIndexTypes(this._types.index,t)){const e=t.map((e=>f.getTypeName(e))),n=this._types.index.map((e=>f.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}if(0===this._types.index.length)throw new Error("There was an error while parsing index types.");if(this._types.index[0].pandas_type===p.RangeIndex){const{step:t,stop:n}=this._types.index[0].meta;e=[Object(l.range)(n,n+e[0].length*t,t)]}return Object(l.zip)(this._index,e).map((e=>e[0].concat(e[1])))}static sameIndexTypes(e,t){return e.length===t.length&&e.every(((e,n)=>n<t.length&&f.getTypeName(e)===f.getTypeName(t[n])))}concatData(e,t){if(0===e.numCols)return this._data;if(0===this._data.numCols)return e;if(!f.sameDataTypes(this._types.data,t)){const e=t.map((e=>e.pandas_type)),n=this._types.data.map((e=>e.pandas_type));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\ndata signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}const n=e.selectAt(Object(l.range)(0,this._data.numCols));return this._data.concat(n)}static sameDataTypes(e,t){return e.every(((e,n)=>{var r;return e.pandas_type===(null===(r=t[n])||void 0===r?void 0:r.pandas_type)}))}concatTypes(e){return{index:this.concatIndexTypes(e.index),data:this.concatDataTypes(e.data)}}concatIndexTypes(e){if(0===e.length)return this._types.index;if(0===this._types.index.length)return e;if(!f.sameIndexTypes(this._types.index,e)){const t=e.map((e=>f.getTypeName(e))),n=this._types.index.map((e=>f.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(t)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}return this._types.index.map((t=>{if(t.pandas_type===p.RangeIndex){const{stop:n,step:r}=t.meta,{start:o,stop:i,step:a}=e[0].meta,l=n+(i-o)/a*r;return{...t,meta:{...t.meta,stop:l}}}return t}))}concatDataTypes(e){return 0===this._types.data.length?e:this._types.data}static isRangeIndex(e){return"object"===typeof e&&"range"===e.kind}static formatIntervalIndex(e,t){const n=e.toJSON(),r=t.match(/interval\[(.+), (.+)\]/);if(null===r)throw new Error("Invalid interval type.");const[,o,i]=r,a="both"===i||"right"===i?"]":")";return`${("both"===i||"left"===i?"[":"(")+f.format(n.left,{pandas_type:o,numpy_type:o})}, ${f.format(n.right,{pandas_type:o,numpy_type:o})+a}`}static getTypeName(e){return"object"===e.pandas_type?e.numpy_type:e.pandas_type}static format(e,t){const n=t&&f.getTypeName(t);if(null==e)return"<NA>";const r=e instanceof Date||Number.isFinite(e);if(r&&"date"===n)return c.a.utc(e).format("YYYY-MM-DD");if(r&&"datetimetz"===n){const n=null===t||void 0===t?void 0:t.meta;let r=c()(e);return(null===n||void 0===n?void 0:n.timezone)&&(r=c.a.tz.zone(null===n||void 0===n?void 0:n.timezone)?r.tz(null===n||void 0===n?void 0:n.timezone):r.utcOffset(null===n||void 0===n?void 0:n.timezone)),r.format("YYYY-MM-DDTHH:mm:ssZ")}return r&&(null===n||void 0===n?void 0:n.startsWith("datetime"))?c.a.utc(e).format("YYYY-MM-DDTHH:mm:ss"):(null===n||void 0===n?void 0:n.startsWith("interval"))?f.formatIntervalIndex(e,n):"object"===n||(null===n||void 0===n?void 0:n.startsWith("list"))?JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)):"float64"===n&&Number.isFinite(e)?d()(e).format("0,0.0000"):String(e)}get index(){return this._index}get columns(){return this._columns}get data(){return this._data}get types(){return this._types}get cssId(){var e;if(null!=(null===(e=this._styler)||void 0===e?void 0:e.uuid))return`T_${this._styler.uuid}`}get cssStyles(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.styles)||void 0}get caption(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.caption)||void 0}get dimensions(){const[e,t]=this._index.length?[this._index.length,this._index[0].length]:[1,0],[n,r]=this._columns.length?[this._columns.length,this._columns[0].length]:[1,0],[o,i]=this._data.numRows?[this._data.numRows,this._data.numCols]:[0,r];if(0!==o&&o!==t||0!==i&&i!==r)throw new Error(`Dataframe dimensions don't align: rows(${o} != ${t}) OR cols(${i} != ${r})`);return{headerRows:n,headerColumns:e,dataRows:o,dataColumns:i,rows:n+o,columns:e+i}}isEmpty(){return 0===this._index.length&&0===this._columns.length&&0===this._data.numRows&&0===this._data.numCols}getCell(e,t){var n,r;const{headerRows:o,headerColumns:i,rows:a,columns:l}=this.dimensions;if(e<0||e>=a)throw new Error(`Row index is out of range: ${e}`);if(t<0||t>=l)throw new Error(`Column index is out of range: ${t}`);const s=e>=o&&t<i,c=e<o&&t>=i;if(e<o&&t<i){const n=["blank"];return t>0&&n.push(`level${e}`),{type:h.BLANK,cssClass:n.join(" "),content:""}}if(s){var u;const n=e-o,r=(null===(u=this._styler)||void 0===u?void 0:u.uuid)?`${this.cssId}level${t}_row${n}`:void 0,i=["row_heading",`level${t}`,`row${n}`].join(" "),a=this._types.index[t],l=this.getIndexValue(n,t);return{type:h.INDEX,cssId:r,cssClass:i,content:l,contentType:a}}if(c){const n=t-i,r=["col_heading",`level${e}`,`col${n}`].join(" ");return{type:h.COLUMNS,cssClass:r,content:this._columns[e][n],contentType:{pandas_type:p.UnicodeIndex,numpy_type:"object"}}}const d=e-o,f=t-i,b=(null===(n=this._styler)||void 0===n?void 0:n.uuid)?`${this.cssId}row${d}_col${f}`:void 0,m=["data",`row${d}`,`col${f}`].join(" "),g=this._types.data[f],y=this.getDataValue(d,f),O=(null===(r=this._styler)||void 0===r?void 0:r.displayValues)?this._styler.displayValues.getCell(e,t).content:void 0;return{type:h.DATA,cssId:b,cssClass:m,content:y,contentType:g,displayContent:O}}getIndexValue(e,t){const n=this._index[t];return n instanceof o.a?n.get(e):n[e]}getDataValue(e,t){var n;return null===(n=this._data.getChildAt(t))||void 0===n?void 0:n.get(e)}addRows(e){if(this._styler||e._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(e.isEmpty())return Object(a.d)(this,(e=>e));if(this.isEmpty())return Object(a.d)(e,(e=>e));const t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);return Object(a.d)(this,(e=>{e._index=t,e._data=n,e._types=r}))}}},124:function(e,t,n){"use strict";var r=n(219);n.d(t,"a",(function(){return r.a}))},125:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(0);var r=n(51),o=n(5);const i=Object(o.a)("pre",{target:"e13yyrnc0"})((({theme:e})=>({padding:e.spacing.twoXS,whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:e.fontSizes.sm})),"");var a=n(1);var l=function(e){const{name:t,message:n,stack:o,width:l}=e,s=o?o.split("\n"):[];s.shift();const c=s.map((e=>e.trim())).join("\n");return Object(a.jsxs)(r.b,{kind:r.a.ERROR,width:l,children:[Object(a.jsxs)("strong",{children:[t,": "]}),n,o?Object(a.jsx)(i,{children:Object(a.jsx)("code",{children:c})}):null]})}},132:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(105),o=n.n(r),i=(n(610),n(227)),a=n.n(i);class l{constructor(e){this.millis=void 0,this.millis=e}getTime(){return this.millis}}class s{static nanosToDate(e){return new Date(e/1e6)}static iso8601ContainsTimezone(e){return[/[+-]\d\d\d\d$/,/[+-]\d\d$/,/[+-]\d\d:\d\d$/,/Z$/].some((t=>t.test(e)))}static iso8601ToMoment(e){return s.iso8601ContainsTimezone(e)?o.a.parseZone(e):o()(e)}static nanosToDuration(e){return new l(e/1e6)}static dateToString(e){const t=o()(e);let n="lll";return 0===t.hour()&&0===t.minute()&&0===t.second()&&(n="ll"),t.format(n)}static durationToString(e){const t=o.a.duration(e.getTime()).asMilliseconds();return o.a.utc(t).format()}}function c(e){return o.a.isMoment(e)?e.format():(t=e,Number(t)===t&&t%1!==0?a()(e).format("0,0.0000"):e instanceof Date?s.dateToString(e):e instanceof l?s.durationToString(e):e.toString());var t}},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m.a}));var r=n(0),o=n.n(r),i=n(110),a=n(466),l=n(50),s=n(5),c=n(146),u=n(45);const d=Object(s.a)(u.e,{shouldForwardProp:c.a,target:"e1wbw4rs0"})((({theme:e,$isHighlighted:t})=>{const n=e.inSidebar?e.colors.bgColor:e.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:e.spacing.none,paddingBottom:e.spacing.none,background:t?n:void 0,"@media (max-width: 768px)":{minHeight:"40px",height:"auto !important"},"&:hover, &:active, &:focus":{background:n}}}),"");var p=n(1);function h(e){const{data:t,index:n,style:r}=e,{item:o,overrides:i,...a}=t[n].props;return Object(p.jsx)(d,{style:r,...a,children:Object(p.jsx)(l.a,{content:o.label,placement:l.b.AUTO,children:o.label})},o.value)}const f=o.a.forwardRef(((e,t)=>{const n=o.a.Children.toArray(e.children);if(!n[0]||!n[0].props.item){const e=n[0]?n[0].props:{};return Object(p.jsx)(i.b,{$style:{height:"90px"},ref:t,children:Object(p.jsx)(i.a,{...e})})}const r=Math.min(300,40*n.length);return Object(p.jsx)(i.b,{ref:t,$style:{paddingTop:0,paddingBottom:0},children:Object(p.jsx)(a.a,{width:"100%",height:r,itemCount:n.length,itemData:n,itemKey:(e,t)=>t[e].props.item.value,itemSize:40,children:h})})}));f.displayName="VirtualDropdown";var b=f,m=n(313)},148:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(307),o=n(467),i=n(233),a=n(234),l=n(67);const s=Object(l.d)(i.a,r.a),c=Object(l.d)(a.a,o.a)},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"u",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"s",(function(){return h})),n.d(t,"w",(function(){return f})),n.d(t,"h",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return v})),n.d(t,"e",(function(){return k})),n.d(t,"p",(function(){return P})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return C})),n.d(t,"t",(function(){return V})),n.d(t,"v",(function(){return T})),n.d(t,"x",(function(){return E})),n.d(t,"z",(function(){return A})),n.d(t,"y",(function(){return D})),n.d(t,"A",(function(){return l}));var r=n(8);const o=r.Reader,i=r.Writer,a=r.util,l=r.roots.default||(r.roots.default={}),s=l.Alert=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.format=0,e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Alert;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;case 3:r.icon=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body))return"body: string expected";if(null!=e.format&&e.hasOwnProperty("format"))switch(e.format){default:return"format: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.Alert)return e;let t=new l.Alert;switch(null!=e.body&&(t.body=String(e.body)),e.format){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}return null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0,n.icon=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.format&&e.hasOwnProperty("format")&&(n.format=t.enums===String?l.Alert.Format[e.format]:e.format),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Format=function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="ERROR"]=1,t[e[2]="WARNING"]=2,t[e[3]="INFO"]=3,t[e[4]="SUCCESS"]=4,t}(),e})(),c=(l.AppPage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageScriptHash="",e.prototype.pageName="",e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.AppPage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.pageScriptHash=e.string();break;case 2:r.pageName=e.string();break;case 3:r.icon=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.AppPage)return e;let t=new l.AppPage;return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.pageScriptHash="",n.pageName="",n.icon=""),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Arrow=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.newBuffer([]),e.prototype.styler=null,e.prototype.width=0,e.prototype.height=0,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.Styler.encode(e.styler,t.uint32(18).fork()).ldelim(),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Arrow;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=e.bytes();break;case 2:r.styler=l.Styler.decode(e,e.uint32());break;case 3:r.width=e.uint32();break;case 4:r.height=e.uint32();break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||a.isString(e.data)))return"data: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){let t=l.Styler.verify(e.styler);if(t)return"styler."+t}return null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Arrow)return e;let t=new l.Arrow;if(null!=e.data&&("string"===typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".Arrow.styler: object expected");t.styler=l.Styler.fromObject(e.styler)}return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),n.styler=null,n.width=0,n.height=0,n.useContainerWidth=!1),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.Styler.toObject(e.styler,t)),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Styler=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Styler;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!a.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!a.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||a.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.Styler)return e;let t=new l.Styler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?a.base64.decode(e.displayValues,t.displayValues=a.newBuffer(a.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=a.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?a.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowNamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowNamedDataSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Arrow.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowNamedDataSet)return e;let t=new l.ArrowNamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=l.Arrow.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowVegaLiteChart=(()=>{function e(e){if(this.datasets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=a.emptyArray,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(let n=0;n<e.datasets.length;++n)l.ArrowNamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowVegaLiteChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.ArrowNamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Arrow.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(let t=0;t<e.datasets.length;++t){let n=l.ArrowNamedDataSet.verify(e.datasets[t]);if(n)return"datasets."+n}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.ArrowVegaLiteChart)return e;let t=new l.ArrowVegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=l.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[n]=l.ArrowNamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(let r=0;r<e.datasets.length;++r)n.datasets[r]=l.ArrowNamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Audio=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Audio;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:r.url=e.string();break;case 3:r.startTime=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.startTime&&e.hasOwnProperty("startTime")&&!a.isInteger(e.startTime)?"startTime: integer expected":null},e.fromObject=function(e){if(e instanceof l.Audio)return e;let t=new l.Audio;return null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.startTime=0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.BackMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopScript=null,e.prototype.closeConnection=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["clearCache","setRunOnSave","stopScript","closeConnection","rerunScript","loadGitInfo"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clearCache&&Object.hasOwnProperty.call(e,"clearCache")&&t.uint32(40).bool(e.clearCache),null!=e.setRunOnSave&&Object.hasOwnProperty.call(e,"setRunOnSave")&&t.uint32(48).bool(e.setRunOnSave),null!=e.stopScript&&Object.hasOwnProperty.call(e,"stopScript")&&t.uint32(56).bool(e.stopScript),null!=e.closeConnection&&Object.hasOwnProperty.call(e,"closeConnection")&&t.uint32(80).bool(e.closeConnection),null!=e.rerunScript&&Object.hasOwnProperty.call(e,"rerunScript")&&l.ClientState.encode(e.rerunScript,t.uint32(90).fork()).ldelim(),null!=e.loadGitInfo&&Object.hasOwnProperty.call(e,"loadGitInfo")&&t.uint32(96).bool(e.loadGitInfo),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&t.uint32(106).string(e.debugLastBackmsgId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.BackMsg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:r.clearCache=e.bool();break;case 6:r.setRunOnSave=e.bool();break;case 7:r.stopScript=e.bool();break;case 10:r.closeConnection=e.bool();break;case 11:r.rerunScript=l.ClientState.decode(e,e.uint32());break;case 12:r.loadGitInfo=e.bool();break;case 13:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(t.type=1,"boolean"!==typeof e.clearCache))return"clearCache: boolean expected";if(null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.setRunOnSave)return"setRunOnSave: boolean expected"}if(null!=e.stopScript&&e.hasOwnProperty("stopScript")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.stopScript)return"stopScript: boolean expected"}if(null!=e.closeConnection&&e.hasOwnProperty("closeConnection")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.closeConnection)return"closeConnection: boolean expected"}if(null!=e.rerunScript&&e.hasOwnProperty("rerunScript")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ClientState.verify(e.rerunScript);if(t)return"rerunScript."+t}}if(null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.loadGitInfo)return"loadGitInfo: boolean expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!a.isString(e.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.BackMsg)return e;let t=new l.BackMsg;if(null!=e.clearCache&&(t.clearCache=Boolean(e.clearCache)),null!=e.setRunOnSave&&(t.setRunOnSave=Boolean(e.setRunOnSave)),null!=e.stopScript&&(t.stopScript=Boolean(e.stopScript)),null!=e.closeConnection&&(t.closeConnection=Boolean(e.closeConnection)),null!=e.rerunScript){if("object"!==typeof e.rerunScript)throw TypeError(".BackMsg.rerunScript: object expected");t.rerunScript=l.ClientState.fromObject(e.rerunScript)}return null!=e.loadGitInfo&&(t.loadGitInfo=Boolean(e.loadGitInfo)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.debugLastBackmsgId=""),null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(n.clearCache=e.clearCache,t.oneofs&&(n.type="clearCache")),null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")&&(n.setRunOnSave=e.setRunOnSave,t.oneofs&&(n.type="setRunOnSave")),null!=e.stopScript&&e.hasOwnProperty("stopScript")&&(n.stopScript=e.stopScript,t.oneofs&&(n.type="stopScript")),null!=e.closeConnection&&e.hasOwnProperty("closeConnection")&&(n.closeConnection=e.closeConnection,t.oneofs&&(n.type="closeConnection")),null!=e.rerunScript&&e.hasOwnProperty("rerunScript")&&(n.rerunScript=l.ClientState.toObject(e.rerunScript,t),t.oneofs&&(n.type="rerunScript")),null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")&&(n.loadGitInfo=e.loadGitInfo,t.oneofs&&(n.type="loadGitInfo")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),u=(l.Balloons=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Balloons;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 3:r.show=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Balloons)return e;let t=new l.Balloons;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Block=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.vertical=null,e.prototype.horizontal=null,e.prototype.column=null,e.prototype.expandable=null,e.prototype.form=null,e.prototype.tabContainer=null,e.prototype.tab=null,e.prototype.allowEmpty=!1,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["vertical","horizontal","column","expandable","form","tabContainer","tab"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.vertical&&Object.hasOwnProperty.call(e,"vertical")&&l.Block.Vertical.encode(e.vertical,t.uint32(10).fork()).ldelim(),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&l.Block.Horizontal.encode(e.horizontal,t.uint32(18).fork()).ldelim(),null!=e.column&&Object.hasOwnProperty.call(e,"column")&&l.Block.Column.encode(e.column,t.uint32(26).fork()).ldelim(),null!=e.expandable&&Object.hasOwnProperty.call(e,"expandable")&&l.Block.Expandable.encode(e.expandable,t.uint32(34).fork()).ldelim(),null!=e.form&&Object.hasOwnProperty.call(e,"form")&&l.Block.Form.encode(e.form,t.uint32(42).fork()).ldelim(),null!=e.tabContainer&&Object.hasOwnProperty.call(e,"tabContainer")&&l.Block.TabContainer.encode(e.tabContainer,t.uint32(50).fork()).ldelim(),null!=e.tab&&Object.hasOwnProperty.call(e,"tab")&&l.Block.Tab.encode(e.tab,t.uint32(58).fork()).ldelim(),null!=e.allowEmpty&&Object.hasOwnProperty.call(e,"allowEmpty")&&t.uint32(64).bool(e.allowEmpty),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.vertical=l.Block.Vertical.decode(e,e.uint32());break;case 2:r.horizontal=l.Block.Horizontal.decode(e,e.uint32());break;case 3:r.column=l.Block.Column.decode(e,e.uint32());break;case 4:r.expandable=l.Block.Expandable.decode(e,e.uint32());break;case 5:r.form=l.Block.Form.decode(e,e.uint32());break;case 6:r.tabContainer=l.Block.TabContainer.decode(e,e.uint32());break;case 7:r.tab=l.Block.Tab.decode(e,e.uint32());break;case 8:r.allowEmpty=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.vertical&&e.hasOwnProperty("vertical")){t.type=1;{let t=l.Block.Vertical.verify(e.vertical);if(t)return"vertical."+t}}if(null!=e.horizontal&&e.hasOwnProperty("horizontal")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Horizontal.verify(e.horizontal);if(t)return"horizontal."+t}}if(null!=e.column&&e.hasOwnProperty("column")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Column.verify(e.column);if(t)return"column."+t}}if(null!=e.expandable&&e.hasOwnProperty("expandable")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Expandable.verify(e.expandable);if(t)return"expandable."+t}}if(null!=e.form&&e.hasOwnProperty("form")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Form.verify(e.form);if(t)return"form."+t}}if(null!=e.tabContainer&&e.hasOwnProperty("tabContainer")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.TabContainer.verify(e.tabContainer);if(t)return"tabContainer."+t}}if(null!=e.tab&&e.hasOwnProperty("tab")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Tab.verify(e.tab);if(t)return"tab."+t}}return null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&"boolean"!==typeof e.allowEmpty?"allowEmpty: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block)return e;let t=new l.Block;if(null!=e.vertical){if("object"!==typeof e.vertical)throw TypeError(".Block.vertical: object expected");t.vertical=l.Block.Vertical.fromObject(e.vertical)}if(null!=e.horizontal){if("object"!==typeof e.horizontal)throw TypeError(".Block.horizontal: object expected");t.horizontal=l.Block.Horizontal.fromObject(e.horizontal)}if(null!=e.column){if("object"!==typeof e.column)throw TypeError(".Block.column: object expected");t.column=l.Block.Column.fromObject(e.column)}if(null!=e.expandable){if("object"!==typeof e.expandable)throw TypeError(".Block.expandable: object expected");t.expandable=l.Block.Expandable.fromObject(e.expandable)}if(null!=e.form){if("object"!==typeof e.form)throw TypeError(".Block.form: object expected");t.form=l.Block.Form.fromObject(e.form)}if(null!=e.tabContainer){if("object"!==typeof e.tabContainer)throw TypeError(".Block.tabContainer: object expected");t.tabContainer=l.Block.TabContainer.fromObject(e.tabContainer)}if(null!=e.tab){if("object"!==typeof e.tab)throw TypeError(".Block.tab: object expected");t.tab=l.Block.Tab.fromObject(e.tab)}return null!=e.allowEmpty&&(t.allowEmpty=Boolean(e.allowEmpty)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.allowEmpty=!1),null!=e.vertical&&e.hasOwnProperty("vertical")&&(n.vertical=l.Block.Vertical.toObject(e.vertical,t),t.oneofs&&(n.type="vertical")),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=l.Block.Horizontal.toObject(e.horizontal,t),t.oneofs&&(n.type="horizontal")),null!=e.column&&e.hasOwnProperty("column")&&(n.column=l.Block.Column.toObject(e.column,t),t.oneofs&&(n.type="column")),null!=e.expandable&&e.hasOwnProperty("expandable")&&(n.expandable=l.Block.Expandable.toObject(e.expandable,t),t.oneofs&&(n.type="expandable")),null!=e.form&&e.hasOwnProperty("form")&&(n.form=l.Block.Form.toObject(e.form,t),t.oneofs&&(n.type="form")),null!=e.tabContainer&&e.hasOwnProperty("tabContainer")&&(n.tabContainer=l.Block.TabContainer.toObject(e.tabContainer,t),t.oneofs&&(n.type="tabContainer")),null!=e.tab&&e.hasOwnProperty("tab")&&(n.tab=l.Block.Tab.toObject(e.tab,t),t.oneofs&&(n.type="tab")),null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&(n.allowEmpty=e.allowEmpty),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Vertical=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Vertical;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.Vertical?e:new l.Block.Vertical},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Horizontal=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(10).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Horizontal;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.gap=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gap&&e.hasOwnProperty("gap")&&!a.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Horizontal)return e;let t=new l.Block.Horizontal;return null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.gap=""),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Column=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.weight=0,e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.weight&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(9).double(e.weight),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(18).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Column;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.weight=e.double();break;case 2:r.gap=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.weight&&e.hasOwnProperty("weight")&&"number"!==typeof e.weight?"weight: number expected":null!=e.gap&&e.hasOwnProperty("gap")&&!a.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Column)return e;let t=new l.Block.Column;return null!=e.weight&&(t.weight=Number(e.weight)),null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.weight=0,n.gap=""),null!=e.weight&&e.hasOwnProperty("weight")&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Expandable=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Expandable;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Expandable)return e;let t=new l.Block.Expandable;return null!=e.label&&(t.label=String(e.label)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label="",n.expanded=!1),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Form=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(10).string(e.formId),null!=e.clearOnSubmit&&Object.hasOwnProperty.call(e,"clearOnSubmit")&&t.uint32(16).bool(e.clearOnSubmit),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Form;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.formId=e.string();break;case 2:r.clearOnSubmit=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&"boolean"!==typeof e.clearOnSubmit?"clearOnSubmit: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Form)return e;let t=new l.Block.Form;return null!=e.formId&&(t.formId=String(e.formId)),null!=e.clearOnSubmit&&(t.clearOnSubmit=Boolean(e.clearOnSubmit)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.formId="",n.clearOnSubmit=!1),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&(n.clearOnSubmit=e.clearOnSubmit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TabContainer=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.TabContainer;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.TabContainer?e:new l.Block.TabContainer},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Tab=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Tab;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Tab)return e;let t=new l.Block.Tab;return null!=e.label&&(t.label=String(e.label)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label=""),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e})()),d=(l.BokehChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.figure="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&t.uint32(10).string(e.figure),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(16).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(26).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.BokehChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.figure=e.string();break;case 2:r.useContainerWidth=e.bool();break;case 3:r.elementId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.figure&&e.hasOwnProperty("figure")&&!a.isString(e.figure)?"figure: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!a.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.BokehChart)return e;let t=new l.BokehChart;return null!=e.figure&&(t.figure=String(e.figure)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.figure="",n.useContainerWidth=!1,n.elementId=""),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=e.figure),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Button=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.isFormSubmitter=!1,e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.isFormSubmitter&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Button;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.isFormSubmitter=e.bool();break;case 7:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&"boolean"!==typeof e.isFormSubmitter?"isFormSubmitter: boolean expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Button)return e;let t=new l.Button;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.isFormSubmitter&&(t.isFormSubmitter=Boolean(e.isFormSubmitter)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.isFormSubmitter=!1,n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&(n.isFormSubmitter=e.isFormSubmitter),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CameraInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CameraInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.help=e.string();break;case 4:r.formId=e.string();break;case 5:r.disabled=e.bool();break;case 6:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.CameraInput)return e;let t=new l.CameraInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Checkbox=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=!1,e.prototype.setValue=!1,e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Checkbox;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.bool();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&"boolean"!==typeof e.value?"value: boolean expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Checkbox)return e;let t=new l.Checkbox;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=Boolean(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.value=!1,n.setValue=!1,n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ClientState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.prototype.widgetStates=null,e.prototype.pageScriptHash="",e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),null!=e.widgetStates&&Object.hasOwnProperty.call(e,"widgetStates")&&l.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ClientState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.queryString=e.string();break;case 2:r.widgetStates=l.WidgetStates.decode(e,e.uint32());break;case 3:r.pageScriptHash=e.string();break;case 4:r.pageName=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.queryString&&e.hasOwnProperty("queryString")&&!a.isString(e.queryString))return"queryString: string expected";if(null!=e.widgetStates&&e.hasOwnProperty("widgetStates")){let t=l.WidgetStates.verify(e.widgetStates);if(t)return"widgetStates."+t}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.ClientState)return e;let t=new l.ClientState;if(null!=e.queryString&&(t.queryString=String(e.queryString)),null!=e.widgetStates){if("object"!==typeof e.widgetStates)throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=l.WidgetStates.fromObject(e.widgetStates)}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.queryString="",n.widgetStates=null,n.pageScriptHash="",n.pageName=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),null!=e.widgetStates&&e.hasOwnProperty("widgetStates")&&(n.widgetStates=l.WidgetStates.toObject(e.widgetStates,t)),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ColorPicker=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ColorPicker;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.ColorPicker)return e;let t=new l.ColorPicker;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.StringArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length)for(let n=0;n<e.data.length;++n)t.uint32(10).string(e.data[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.StringArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data&&r.data.length||(r.data=[]),r.data.push(e.string());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isString(e.data[t]))return"data: string[] expected"}return null},e.fromObject=function(e){if(e instanceof l.StringArray)return e;let t=new l.StringArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=String(e.data[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),p=l.DoubleArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.double(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DoubleArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.double())}else r.data.push(e.double());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if("number"!==typeof e.data[t])return"data: number[] expected"}return null},e.fromObject=function(e){if(e instanceof l.DoubleArray)return e;let t=new l.DoubleArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=Number(e.data[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)n.data[r]=t.json&&!isFinite(e.data[r])?String(e.data[r]):e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),h=(l.Int32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int32Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.int32())}else r.data.push(e.int32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int32Array)return e;let t=new l.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=0|e.data[n]}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Int64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int64Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.int64())}else r.data.push(e.int64());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t])&&!(e.data[t]&&a.isInteger(e.data[t].low)&&a.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int64Array)return e;let t=new l.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)a.Long?(t.data[n]=a.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new a.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?a.Long.prototype.toString.call(e.data[r]):t.longs===Number?new a.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SInt64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.sint64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SInt64Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.sint64())}else r.data.push(e.sint64());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t])&&!(e.data[t]&&a.isInteger(e.data[t].low)&&a.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.SInt64Array)return e;let t=new l.SInt64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)a.Long?(t.data[n]=a.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new a.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?a.Long.prototype.toString.call(e.data[r]):t.longs===Number?new a.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),f=(l.UInt32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.uint32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UInt32Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.uint32())}else r.data.push(e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.UInt32Array)return e;let t=new l.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=e.data[n]>>>0}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.UploadedFileInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.name="",e.prototype.size=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).sint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.size&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint32(e.size),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UploadedFileInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.sint64();break;case 2:r.name=e.string();break;case 3:r.size=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.id||!e.hasOwnProperty("id")||a.isInteger(e.id)||e.id&&a.isInteger(e.id.low)&&a.isInteger(e.id.high)?null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.size&&e.hasOwnProperty("size")&&!a.isInteger(e.size)?"size: integer expected":null:"id: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.UploadedFileInfo)return e;let t=new l.UploadedFileInfo;return null!=e.id&&(a.Long?(t.id=a.Long.fromValue(e.id)).unsigned=!1:"string"===typeof e.id?t.id=parseInt(e.id,10):"number"===typeof e.id?t.id=e.id:"object"===typeof e.id&&(t.id=new a.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber())),null!=e.name&&(t.name=String(e.name)),null!=e.size&&(t.size=e.size>>>0),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.id=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.id=t.longs===String?"0":0;n.name="",n.size=0}return null!=e.id&&e.hasOwnProperty("id")&&("number"===typeof e.id?n.id=t.longs===String?String(e.id):e.id:n.id=t.longs===String?a.Long.prototype.toString.call(e.id):t.longs===Number?new a.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber():e.id),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.size&&e.hasOwnProperty("size")&&(n.size=e.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),b=l.FileUploaderState=(()=>{function e(e){if(this.uploadedFileInfo=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.maxFileId=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.uploadedFileInfo=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.maxFileId&&Object.hasOwnProperty.call(e,"maxFileId")&&t.uint32(8).sint64(e.maxFileId),null!=e.uploadedFileInfo&&e.uploadedFileInfo.length)for(let n=0;n<e.uploadedFileInfo.length;++n)l.UploadedFileInfo.encode(e.uploadedFileInfo[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.FileUploaderState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.maxFileId=e.sint64();break;case 2:r.uploadedFileInfo&&r.uploadedFileInfo.length||(r.uploadedFileInfo=[]),r.uploadedFileInfo.push(l.UploadedFileInfo.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&!a.isInteger(e.maxFileId)&&!(e.maxFileId&&a.isInteger(e.maxFileId.low)&&a.isInteger(e.maxFileId.high)))return"maxFileId: integer|Long expected";if(null!=e.uploadedFileInfo&&e.hasOwnProperty("uploadedFileInfo")){if(!Array.isArray(e.uploadedFileInfo))return"uploadedFileInfo: array expected";for(let t=0;t<e.uploadedFileInfo.length;++t){let n=l.UploadedFileInfo.verify(e.uploadedFileInfo[t]);if(n)return"uploadedFileInfo."+n}}return null},e.fromObject=function(e){if(e instanceof l.FileUploaderState)return e;let t=new l.FileUploaderState;if(null!=e.maxFileId&&(a.Long?(t.maxFileId=a.Long.fromValue(e.maxFileId)).unsigned=!1:"string"===typeof e.maxFileId?t.maxFileId=parseInt(e.maxFileId,10):"number"===typeof e.maxFileId?t.maxFileId=e.maxFileId:"object"===typeof e.maxFileId&&(t.maxFileId=new a.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber())),e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let n=0;n<e.uploadedFileInfo.length;++n){if("object"!==typeof e.uploadedFileInfo[n])throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[n]=l.UploadedFileInfo.fromObject(e.uploadedFileInfo[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.uploadedFileInfo=[]),t.defaults)if(a.Long){let e=new a.Long(0,0,!1);n.maxFileId=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.maxFileId=t.longs===String?"0":0;if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&("number"===typeof e.maxFileId?n.maxFileId=t.longs===String?String(e.maxFileId):e.maxFileId:n.maxFileId=t.longs===String?a.Long.prototype.toString.call(e.maxFileId):t.longs===Number?new a.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){n.uploadedFileInfo=[];for(let r=0;r<e.uploadedFileInfo.length;++r)n.uploadedFileInfo[r]=l.UploadedFileInfo.toObject(e.uploadedFileInfo[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),m=(l.ComponentInstance=(()=>{function e(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.jsonArgs="",e.prototype.specialArgs=a.emptyArray,e.prototype.componentName="",e.prototype.url="",e.prototype.formId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.jsonArgs&&Object.hasOwnProperty.call(e,"jsonArgs")&&t.uint32(18).string(e.jsonArgs),null!=e.specialArgs&&e.specialArgs.length)for(let n=0;n<e.specialArgs.length;++n)l.SpecialArg.encode(e.specialArgs[n],t.uint32(26).fork()).ldelim();return null!=e.componentName&&Object.hasOwnProperty.call(e,"componentName")&&t.uint32(34).string(e.componentName),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ComponentInstance;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.jsonArgs=e.string();break;case 3:r.specialArgs&&r.specialArgs.length||(r.specialArgs=[]),r.specialArgs.push(l.SpecialArg.decode(e,e.uint32()));break;case 4:r.componentName=e.string();break;case 5:r.url=e.string();break;case 6:r.formId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&!a.isString(e.jsonArgs))return"jsonArgs: string expected";if(null!=e.specialArgs&&e.hasOwnProperty("specialArgs")){if(!Array.isArray(e.specialArgs))return"specialArgs: array expected";for(let t=0;t<e.specialArgs.length;++t){let n=l.SpecialArg.verify(e.specialArgs[t]);if(n)return"specialArgs."+n}}return null!=e.componentName&&e.hasOwnProperty("componentName")&&!a.isString(e.componentName)?"componentName: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null},e.fromObject=function(e){if(e instanceof l.ComponentInstance)return e;let t=new l.ComponentInstance;if(null!=e.id&&(t.id=String(e.id)),null!=e.jsonArgs&&(t.jsonArgs=String(e.jsonArgs)),e.specialArgs){if(!Array.isArray(e.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");t.specialArgs=[];for(let n=0;n<e.specialArgs.length;++n){if("object"!==typeof e.specialArgs[n])throw TypeError(".ComponentInstance.specialArgs: object expected");t.specialArgs[n]=l.SpecialArg.fromObject(e.specialArgs[n])}}return null!=e.componentName&&(t.componentName=String(e.componentName)),null!=e.url&&(t.url=String(e.url)),null!=e.formId&&(t.formId=String(e.formId)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.specialArgs=[]),t.defaults&&(n.id="",n.jsonArgs="",n.componentName="",n.url="",n.formId=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&(n.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){n.specialArgs=[];for(let r=0;r<e.specialArgs.length;++r)n.specialArgs[r]=l.SpecialArg.toObject(e.specialArgs[r],t)}return null!=e.componentName&&e.hasOwnProperty("componentName")&&(n.componentName=e.componentName),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SpecialArg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.key="",e.prototype.arrowDataframe=null,e.prototype.bytes=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["arrowDataframe","bytes"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.arrowDataframe&&Object.hasOwnProperty.call(e,"arrowDataframe")&&l.ArrowDataframe.encode(e.arrowDataframe,t.uint32(18).fork()).ldelim(),null!=e.bytes&&Object.hasOwnProperty.call(e,"bytes")&&t.uint32(26).bytes(e.bytes),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SpecialArg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.key=e.string();break;case 2:r.arrowDataframe=l.ArrowDataframe.decode(e,e.uint32());break;case 3:r.bytes=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.key&&e.hasOwnProperty("key")&&!a.isString(e.key))return"key: string expected";if(null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")){t.value=1;{let t=l.ArrowDataframe.verify(e.arrowDataframe);if(t)return"arrowDataframe."+t}}if(null!=e.bytes&&e.hasOwnProperty("bytes")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytes&&"number"===typeof e.bytes.length||a.isString(e.bytes)))return"bytes: buffer expected"}return null},e.fromObject=function(e){if(e instanceof l.SpecialArg)return e;let t=new l.SpecialArg;if(null!=e.key&&(t.key=String(e.key)),null!=e.arrowDataframe){if("object"!==typeof e.arrowDataframe)throw TypeError(".SpecialArg.arrowDataframe: object expected");t.arrowDataframe=l.ArrowDataframe.fromObject(e.arrowDataframe)}return null!=e.bytes&&("string"===typeof e.bytes?a.base64.decode(e.bytes,t.bytes=a.newBuffer(a.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.key=""),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")&&(n.arrowDataframe=l.ArrowDataframe.toObject(e.arrowDataframe,t),t.oneofs&&(n.value="arrowDataframe")),null!=e.bytes&&e.hasOwnProperty("bytes")&&(n.bytes=t.bytes===String?a.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(n.value="bytes")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowDataframe=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.height=0,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowDataframe;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.ArrowTable.decode(e,e.uint32());break;case 2:r.height=e.uint32();break;case 3:r.width=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.ArrowTable.verify(e.data);if(t)return"data."+t}return null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowDataframe)return e;let t=new l.ArrowDataframe;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowDataframe.data: object expected");t.data=l.ArrowTable.fromObject(e.data)}return null!=e.height&&(t.height=e.height>>>0),null!=e.width&&(t.width=e.width>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null,n.height=0,n.width=0),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.ArrowTable.toObject(e.data,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),g=(l.ArrowTable=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.newBuffer([]),e.prototype.index=a.newBuffer([]),e.prototype.columns=a.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowTable;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=e.bytes();break;case 2:r.index=e.bytes();break;case 3:r.columns=e.bytes();break;case 5:r.styler=l.ArrowTableStyler.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||a.isString(e.data)))return"data: buffer expected";if(null!=e.index&&e.hasOwnProperty("index")&&!(e.index&&"number"===typeof e.index.length||a.isString(e.index)))return"index: buffer expected";if(null!=e.columns&&e.hasOwnProperty("columns")&&!(e.columns&&"number"===typeof e.columns.length||a.isString(e.columns)))return"columns: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){let t=l.ArrowTableStyler.verify(e.styler);if(t)return"styler."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowTable)return e;let t=new l.ArrowTable;if(null!=e.data&&("string"===typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.index&&("string"===typeof e.index?a.base64.decode(e.index,t.index=a.newBuffer(a.base64.length(e.index)),0):e.index.length&&(t.index=e.index)),null!=e.columns&&("string"===typeof e.columns?a.base64.decode(e.columns,t.columns=a.newBuffer(a.base64.length(e.columns)),0):e.columns.length&&(t.columns=e.columns)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".ArrowTable.styler: object expected");t.styler=l.ArrowTableStyler.fromObject(e.styler)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),t.bytes===String?n.index="":(n.index=[],t.bytes!==Array&&(n.index=a.newBuffer(n.index))),t.bytes===String?n.columns="":(n.columns=[],t.bytes!==Array&&(n.columns=a.newBuffer(n.columns))),n.styler=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.index&&e.hasOwnProperty("index")&&(n.index=t.bytes===String?a.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=t.bytes===String?a.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.ArrowTableStyler.toObject(e.styler,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowTableStyler=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowTableStyler;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!a.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!a.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||a.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowTableStyler)return e;let t=new l.ArrowTableStyler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?a.base64.decode(e.displayValues,t.displayValues=a.newBuffer(a.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=a.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?a.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DataFrame=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.index=null,e.prototype.columns=null,e.prototype.style=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Table.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&l.Index.encode(e.index,t.uint32(18).fork()).ldelim(),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&l.Index.encode(e.columns,t.uint32(26).fork()).ldelim(),null!=e.style&&Object.hasOwnProperty.call(e,"style")&&l.TableStyle.encode(e.style,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DataFrame;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Table.decode(e,e.uint32());break;case 2:r.index=l.Index.decode(e,e.uint32());break;case 3:r.columns=l.Index.decode(e,e.uint32());break;case 4:r.style=l.TableStyle.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Table.verify(e.data);if(t)return"data."+t}if(null!=e.index&&e.hasOwnProperty("index")){let t=l.Index.verify(e.index);if(t)return"index."+t}if(null!=e.columns&&e.hasOwnProperty("columns")){let t=l.Index.verify(e.columns);if(t)return"columns."+t}if(null!=e.style&&e.hasOwnProperty("style")){let t=l.TableStyle.verify(e.style);if(t)return"style."+t}return null},e.fromObject=function(e){if(e instanceof l.DataFrame)return e;let t=new l.DataFrame;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DataFrame.data: object expected");t.data=l.Table.fromObject(e.data)}if(null!=e.index){if("object"!==typeof e.index)throw TypeError(".DataFrame.index: object expected");t.index=l.Index.fromObject(e.index)}if(null!=e.columns){if("object"!==typeof e.columns)throw TypeError(".DataFrame.columns: object expected");t.columns=l.Index.fromObject(e.columns)}if(null!=e.style){if("object"!==typeof e.style)throw TypeError(".DataFrame.style: object expected");t.style=l.TableStyle.fromObject(e.style)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null,n.index=null,n.columns=null,n.style=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Table.toObject(e.data,t)),null!=e.index&&e.hasOwnProperty("index")&&(n.index=l.Index.toObject(e.index,t)),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=l.Index.toObject(e.columns,t)),null!=e.style&&e.hasOwnProperty("style")&&(n.style=l.TableStyle.toObject(e.style,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.plainIndex=null,e.prototype.rangeIndex=null,e.prototype.multiIndex=null,e.prototype.datetimeIndex=null,e.prototype.timedeltaIndex=null,e.prototype.int_64Index=null,e.prototype.float_64Index=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.plainIndex&&Object.hasOwnProperty.call(e,"plainIndex")&&l.PlainIndex.encode(e.plainIndex,t.uint32(10).fork()).ldelim(),null!=e.rangeIndex&&Object.hasOwnProperty.call(e,"rangeIndex")&&l.RangeIndex.encode(e.rangeIndex,t.uint32(18).fork()).ldelim(),null!=e.multiIndex&&Object.hasOwnProperty.call(e,"multiIndex")&&l.MultiIndex.encode(e.multiIndex,t.uint32(34).fork()).ldelim(),null!=e.datetimeIndex&&Object.hasOwnProperty.call(e,"datetimeIndex")&&l.DatetimeIndex.encode(e.datetimeIndex,t.uint32(50).fork()).ldelim(),null!=e.timedeltaIndex&&Object.hasOwnProperty.call(e,"timedeltaIndex")&&l.TimedeltaIndex.encode(e.timedeltaIndex,t.uint32(58).fork()).ldelim(),null!=e.int_64Index&&Object.hasOwnProperty.call(e,"int_64Index")&&l.Int64Index.encode(e.int_64Index,t.uint32(74).fork()).ldelim(),null!=e.float_64Index&&Object.hasOwnProperty.call(e,"float_64Index")&&l.Float64Index.encode(e.float_64Index,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.plainIndex=l.PlainIndex.decode(e,e.uint32());break;case 2:r.rangeIndex=l.RangeIndex.decode(e,e.uint32());break;case 4:r.multiIndex=l.MultiIndex.decode(e,e.uint32());break;case 6:r.datetimeIndex=l.DatetimeIndex.decode(e,e.uint32());break;case 7:r.timedeltaIndex=l.TimedeltaIndex.decode(e,e.uint32());break;case 9:r.int_64Index=l.Int64Index.decode(e,e.uint32());break;case 11:r.float_64Index=l.Float64Index.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.plainIndex&&e.hasOwnProperty("plainIndex")){t.type=1;{let t=l.PlainIndex.verify(e.plainIndex);if(t)return"plainIndex."+t}}if(null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.RangeIndex.verify(e.rangeIndex);if(t)return"rangeIndex."+t}}if(null!=e.multiIndex&&e.hasOwnProperty("multiIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.MultiIndex.verify(e.multiIndex);if(t)return"multiIndex."+t}}if(null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DatetimeIndex.verify(e.datetimeIndex);if(t)return"datetimeIndex."+t}}if(null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TimedeltaIndex.verify(e.timedeltaIndex);if(t)return"timedeltaIndex."+t}}if(null!=e.int_64Index&&e.hasOwnProperty("int_64Index")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Index.verify(e.int_64Index);if(t)return"int_64Index."+t}}if(null!=e.float_64Index&&e.hasOwnProperty("float_64Index")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Float64Index.verify(e.float_64Index);if(t)return"float_64Index."+t}}return null},e.fromObject=function(e){if(e instanceof l.Index)return e;let t=new l.Index;if(null!=e.plainIndex){if("object"!==typeof e.plainIndex)throw TypeError(".Index.plainIndex: object expected");t.plainIndex=l.PlainIndex.fromObject(e.plainIndex)}if(null!=e.rangeIndex){if("object"!==typeof e.rangeIndex)throw TypeError(".Index.rangeIndex: object expected");t.rangeIndex=l.RangeIndex.fromObject(e.rangeIndex)}if(null!=e.multiIndex){if("object"!==typeof e.multiIndex)throw TypeError(".Index.multiIndex: object expected");t.multiIndex=l.MultiIndex.fromObject(e.multiIndex)}if(null!=e.datetimeIndex){if("object"!==typeof e.datetimeIndex)throw TypeError(".Index.datetimeIndex: object expected");t.datetimeIndex=l.DatetimeIndex.fromObject(e.datetimeIndex)}if(null!=e.timedeltaIndex){if("object"!==typeof e.timedeltaIndex)throw TypeError(".Index.timedeltaIndex: object expected");t.timedeltaIndex=l.TimedeltaIndex.fromObject(e.timedeltaIndex)}if(null!=e.int_64Index){if("object"!==typeof e.int_64Index)throw TypeError(".Index.int_64Index: object expected");t.int_64Index=l.Int64Index.fromObject(e.int_64Index)}if(null!=e.float_64Index){if("object"!==typeof e.float_64Index)throw TypeError(".Index.float_64Index: object expected");t.float_64Index=l.Float64Index.fromObject(e.float_64Index)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.plainIndex&&e.hasOwnProperty("plainIndex")&&(n.plainIndex=l.PlainIndex.toObject(e.plainIndex,t),t.oneofs&&(n.type="plainIndex")),null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")&&(n.rangeIndex=l.RangeIndex.toObject(e.rangeIndex,t),t.oneofs&&(n.type="rangeIndex")),null!=e.multiIndex&&e.hasOwnProperty("multiIndex")&&(n.multiIndex=l.MultiIndex.toObject(e.multiIndex,t),t.oneofs&&(n.type="multiIndex")),null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")&&(n.datetimeIndex=l.DatetimeIndex.toObject(e.datetimeIndex,t),t.oneofs&&(n.type="datetimeIndex")),null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")&&(n.timedeltaIndex=l.TimedeltaIndex.toObject(e.timedeltaIndex,t),t.oneofs&&(n.type="timedeltaIndex")),null!=e.int_64Index&&e.hasOwnProperty("int_64Index")&&(n.int_64Index=l.Int64Index.toObject(e.int_64Index,t),t.oneofs&&(n.type="int_64Index")),null!=e.float_64Index&&e.hasOwnProperty("float_64Index")&&(n.float_64Index=l.Float64Index.toObject(e.float_64Index,t),t.oneofs&&(n.type="float_64Index")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PlainIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.AnyArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PlainIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.AnyArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.AnyArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.PlainIndex)return e;let t=new l.PlainIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".PlainIndex.data: object expected");t.data=l.AnyArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.AnyArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.RangeIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.stop=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int64(e.start),null!=e.stop&&Object.hasOwnProperty.call(e,"stop")&&t.uint32(16).int64(e.stop),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.RangeIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.start=e.int64();break;case 2:r.stop=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.start||!e.hasOwnProperty("start")||a.isInteger(e.start)||e.start&&a.isInteger(e.start.low)&&a.isInteger(e.start.high)?null==e.stop||!e.hasOwnProperty("stop")||a.isInteger(e.stop)||e.stop&&a.isInteger(e.stop.low)&&a.isInteger(e.stop.high)?null:"stop: integer|Long expected":"start: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.RangeIndex)return e;let t=new l.RangeIndex;return null!=e.start&&(a.Long?(t.start=a.Long.fromValue(e.start)).unsigned=!1:"string"===typeof e.start?t.start=parseInt(e.start,10):"number"===typeof e.start?t.start=e.start:"object"===typeof e.start&&(t.start=new a.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),null!=e.stop&&(a.Long?(t.stop=a.Long.fromValue(e.stop)).unsigned=!1:"string"===typeof e.stop?t.stop=parseInt(e.stop,10):"number"===typeof e.stop?t.stop=e.stop:"object"===typeof e.stop&&(t.stop=new a.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.start=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.start=t.longs===String?"0":0;if(a.Long){let e=new a.Long(0,0,!1);n.stop=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.stop=t.longs===String?"0":0}return null!=e.start&&e.hasOwnProperty("start")&&("number"===typeof e.start?n.start=t.longs===String?String(e.start):e.start:n.start=t.longs===String?a.Long.prototype.toString.call(e.start):t.longs===Number?new a.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber():e.start),null!=e.stop&&e.hasOwnProperty("stop")&&("number"===typeof e.stop?n.stop=t.longs===String?String(e.stop):e.stop:n.stop=t.longs===String?a.Long.prototype.toString.call(e.stop):t.longs===Number?new a.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber():e.stop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.MultiIndex=(()=>{function e(e){if(this.levels=[],this.labels=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.levels=a.emptyArray,e.prototype.labels=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.levels&&e.levels.length)for(let n=0;n<e.levels.length;++n)l.Index.encode(e.levels[n],t.uint32(10).fork()).ldelim();if(null!=e.labels&&e.labels.length)for(let n=0;n<e.labels.length;++n)l.Int32Array.encode(e.labels[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.MultiIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.levels&&r.levels.length||(r.levels=[]),r.levels.push(l.Index.decode(e,e.uint32()));break;case 2:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.Int32Array.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.levels&&e.hasOwnProperty("levels")){if(!Array.isArray(e.levels))return"levels: array expected";for(let t=0;t<e.levels.length;++t){let n=l.Index.verify(e.levels[t]);if(n)return"levels."+n}}if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(let t=0;t<e.labels.length;++t){let n=l.Int32Array.verify(e.labels[t]);if(n)return"labels."+n}}return null},e.fromObject=function(e){if(e instanceof l.MultiIndex)return e;let t=new l.MultiIndex;if(e.levels){if(!Array.isArray(e.levels))throw TypeError(".MultiIndex.levels: array expected");t.levels=[];for(let n=0;n<e.levels.length;++n){if("object"!==typeof e.levels[n])throw TypeError(".MultiIndex.levels: object expected");t.levels[n]=l.Index.fromObject(e.levels[n])}}if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".MultiIndex.labels: array expected");t.labels=[];for(let n=0;n<e.labels.length;++n){if("object"!==typeof e.labels[n])throw TypeError(".MultiIndex.labels: object expected");t.labels[n]=l.Int32Array.fromObject(e.labels[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.levels=[],n.labels=[]),e.levels&&e.levels.length){n.levels=[];for(let r=0;r<e.levels.length;++r)n.levels[r]=l.Index.toObject(e.levels[r],t)}if(e.labels&&e.labels.length){n.labels=[];for(let r=0;r<e.labels.length;++r)n.labels[r]=l.Int32Array.toObject(e.labels[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DatetimeIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.StringArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DatetimeIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.StringArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.StringArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.DatetimeIndex)return e;let t=new l.DatetimeIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DatetimeIndex.data: object expected");t.data=l.StringArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.StringArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TimedeltaIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TimedeltaIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.TimedeltaIndex)return e;let t=new l.TimedeltaIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".TimedeltaIndex.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Int64Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int64Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Int64Index)return e;let t=new l.Int64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Int64Index.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Float64Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DoubleArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Float64Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.DoubleArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DoubleArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Float64Index)return e;let t=new l.Float64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Float64Index.data: object expected");t.data=l.DoubleArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DoubleArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CSSStyle=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.property="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.property&&Object.hasOwnProperty.call(e,"property")&&t.uint32(10).string(e.property),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CSSStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.property=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.property&&e.hasOwnProperty("property")&&!a.isString(e.property)?"property: string expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.CSSStyle)return e;let t=new l.CSSStyle;return null!=e.property&&(t.property=String(e.property)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.property="",n.value=""),null!=e.property&&e.hasOwnProperty("property")&&(n.property=e.property),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CellStyle=(()=>{function e(e){if(this.css=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.css=a.emptyArray,e.prototype.displayValue="",e.prototype.hasDisplayValue=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.css&&e.css.length)for(let n=0;n<e.css.length;++n)l.CSSStyle.encode(e.css[n],t.uint32(10).fork()).ldelim();return null!=e.displayValue&&Object.hasOwnProperty.call(e,"displayValue")&&t.uint32(18).string(e.displayValue),null!=e.hasDisplayValue&&Object.hasOwnProperty.call(e,"hasDisplayValue")&&t.uint32(24).bool(e.hasDisplayValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CellStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.css&&r.css.length||(r.css=[]),r.css.push(l.CSSStyle.decode(e,e.uint32()));break;case 2:r.displayValue=e.string();break;case 3:r.hasDisplayValue=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.css&&e.hasOwnProperty("css")){if(!Array.isArray(e.css))return"css: array expected";for(let t=0;t<e.css.length;++t){let n=l.CSSStyle.verify(e.css[t]);if(n)return"css."+n}}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&!a.isString(e.displayValue)?"displayValue: string expected":null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&"boolean"!==typeof e.hasDisplayValue?"hasDisplayValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.CellStyle)return e;let t=new l.CellStyle;if(e.css){if(!Array.isArray(e.css))throw TypeError(".CellStyle.css: array expected");t.css=[];for(let n=0;n<e.css.length;++n){if("object"!==typeof e.css[n])throw TypeError(".CellStyle.css: object expected");t.css[n]=l.CSSStyle.fromObject(e.css[n])}}return null!=e.displayValue&&(t.displayValue=String(e.displayValue)),null!=e.hasDisplayValue&&(t.hasDisplayValue=Boolean(e.hasDisplayValue)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.css=[]),t.defaults&&(n.displayValue="",n.hasDisplayValue=!1),e.css&&e.css.length){n.css=[];for(let r=0;r<e.css.length;++r)n.css[r]=l.CSSStyle.toObject(e.css[r],t)}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&(n.displayValue=e.displayValue),null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&(n.hasDisplayValue=e.hasDisplayValue),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CellStyleArray=(()=>{function e(e){if(this.styles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.styles=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.styles&&e.styles.length)for(let n=0;n<e.styles.length;++n)l.CellStyle.encode(e.styles[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CellStyleArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.styles&&r.styles.length||(r.styles=[]),r.styles.push(l.CellStyle.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.styles&&e.hasOwnProperty("styles")){if(!Array.isArray(e.styles))return"styles: array expected";for(let t=0;t<e.styles.length;++t){let n=l.CellStyle.verify(e.styles[t]);if(n)return"styles."+n}}return null},e.fromObject=function(e){if(e instanceof l.CellStyleArray)return e;let t=new l.CellStyleArray;if(e.styles){if(!Array.isArray(e.styles))throw TypeError(".CellStyleArray.styles: array expected");t.styles=[];for(let n=0;n<e.styles.length;++n){if("object"!==typeof e.styles[n])throw TypeError(".CellStyleArray.styles: object expected");t.styles[n]=l.CellStyle.fromObject(e.styles[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.styles=[]),e.styles&&e.styles.length){n.styles=[];for(let r=0;r<e.styles.length;++r)n.styles[r]=l.CellStyle.toObject(e.styles[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.AnyArray=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.strings=null,e.prototype.doubles=null,e.prototype.int64s=null,e.prototype.datetimes=null,e.prototype.timedeltas=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["strings","doubles","int64s","datetimes","timedeltas"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.strings&&Object.hasOwnProperty.call(e,"strings")&&l.StringArray.encode(e.strings,t.uint32(10).fork()).ldelim(),null!=e.doubles&&Object.hasOwnProperty.call(e,"doubles")&&l.DoubleArray.encode(e.doubles,t.uint32(18).fork()).ldelim(),null!=e.int64s&&Object.hasOwnProperty.call(e,"int64s")&&l.Int64Array.encode(e.int64s,t.uint32(26).fork()).ldelim(),null!=e.datetimes&&Object.hasOwnProperty.call(e,"datetimes")&&l.StringArray.encode(e.datetimes,t.uint32(34).fork()).ldelim(),null!=e.timedeltas&&Object.hasOwnProperty.call(e,"timedeltas")&&l.Int64Array.encode(e.timedeltas,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.AnyArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.strings=l.StringArray.decode(e,e.uint32());break;case 2:r.doubles=l.DoubleArray.decode(e,e.uint32());break;case 3:r.int64s=l.Int64Array.decode(e,e.uint32());break;case 4:r.datetimes=l.StringArray.decode(e,e.uint32());break;case 5:r.timedeltas=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.strings&&e.hasOwnProperty("strings")){t.type=1;{let t=l.StringArray.verify(e.strings);if(t)return"strings."+t}}if(null!=e.doubles&&e.hasOwnProperty("doubles")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DoubleArray.verify(e.doubles);if(t)return"doubles."+t}}if(null!=e.int64s&&e.hasOwnProperty("int64s")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Array.verify(e.int64s);if(t)return"int64s."+t}}if(null!=e.datetimes&&e.hasOwnProperty("datetimes")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.StringArray.verify(e.datetimes);if(t)return"datetimes."+t}}if(null!=e.timedeltas&&e.hasOwnProperty("timedeltas")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Array.verify(e.timedeltas);if(t)return"timedeltas."+t}}return null},e.fromObject=function(e){if(e instanceof l.AnyArray)return e;let t=new l.AnyArray;if(null!=e.strings){if("object"!==typeof e.strings)throw TypeError(".AnyArray.strings: object expected");t.strings=l.StringArray.fromObject(e.strings)}if(null!=e.doubles){if("object"!==typeof e.doubles)throw TypeError(".AnyArray.doubles: object expected");t.doubles=l.DoubleArray.fromObject(e.doubles)}if(null!=e.int64s){if("object"!==typeof e.int64s)throw TypeError(".AnyArray.int64s: object expected");t.int64s=l.Int64Array.fromObject(e.int64s)}if(null!=e.datetimes){if("object"!==typeof e.datetimes)throw TypeError(".AnyArray.datetimes: object expected");t.datetimes=l.StringArray.fromObject(e.datetimes)}if(null!=e.timedeltas){if("object"!==typeof e.timedeltas)throw TypeError(".AnyArray.timedeltas: object expected");t.timedeltas=l.Int64Array.fromObject(e.timedeltas)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.strings&&e.hasOwnProperty("strings")&&(n.strings=l.StringArray.toObject(e.strings,t),t.oneofs&&(n.type="strings")),null!=e.doubles&&e.hasOwnProperty("doubles")&&(n.doubles=l.DoubleArray.toObject(e.doubles,t),t.oneofs&&(n.type="doubles")),null!=e.int64s&&e.hasOwnProperty("int64s")&&(n.int64s=l.Int64Array.toObject(e.int64s,t),t.oneofs&&(n.type="int64s")),null!=e.datetimes&&e.hasOwnProperty("datetimes")&&(n.datetimes=l.StringArray.toObject(e.datetimes,t),t.oneofs&&(n.type="datetimes")),null!=e.timedeltas&&e.hasOwnProperty("timedeltas")&&(n.timedeltas=l.Int64Array.toObject(e.timedeltas,t),t.oneofs&&(n.type="timedeltas")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Table=(()=>{function e(e){if(this.cols=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cols&&e.cols.length)for(let n=0;n<e.cols.length;++n)l.AnyArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Table;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.AnyArray.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(let t=0;t<e.cols.length;++t){let n=l.AnyArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.Table)return e;let t=new l.Table;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".Table.cols: array expected");t.cols=[];for(let n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".Table.cols: object expected");t.cols[n]=l.AnyArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(let r=0;r<e.cols.length;++r)n.cols[r]=l.AnyArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TableStyle=(()=>{function e(e){if(this.cols=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cols&&e.cols.length)for(let n=0;n<e.cols.length;++n)l.CellStyleArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TableStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.CellStyleArray.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(let t=0;t<e.cols.length;++t){let n=l.CellStyleArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.TableStyle)return e;let t=new l.TableStyle;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".TableStyle.cols: array expected");t.cols=[];for(let n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".TableStyle.cols: object expected");t.cols[n]=l.CellStyleArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(let r=0;r<e.cols.length;++r)n.cols[r]=l.CellStyleArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DateInput=(()=>{function e(e){if(this.default=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=a.emptyArray,e.prototype.min="",e.prototype.max="",e.prototype.isRange=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),null!=e.isRange&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.value&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(74).string(e.value[n]);return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DateInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default&&r.default.length||(r.default=[]),r.default.push(e.string());break;case 4:r.min=e.string();break;case 5:r.max=e.string();break;case 6:r.isRange=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.value&&r.value.length||(r.value=[]),r.value.push(e.string());break;case 10:r.setValue=e.bool();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if(!a.isString(e.default[t]))return"default: string[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&!a.isString(e.min))return"min: string expected";if(null!=e.max&&e.hasOwnProperty("max")&&!a.isString(e.max))return"max: string expected";if(null!=e.isRange&&e.hasOwnProperty("isRange")&&"boolean"!==typeof e.isRange)return"isRange: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if(!a.isString(e.value[t]))return"value: string[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.DateInput)return e;let t=new l.DateInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=String(e.default[n])}if(null!=e.min&&(t.min=String(e.min)),null!=e.max&&(t.max=String(e.max)),null!=e.isRange&&(t.isRange=Boolean(e.isRange)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=String(e.value[n])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.min="",n.max="",n.isRange=!1,n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=e.max),null!=e.isRange&&e.hasOwnProperty("isRange")&&(n.isRange=e.isRange),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DeckGlJsonChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.json="",e.prototype.tooltip="",e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),null!=e.tooltip&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DeckGlJsonChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.json=e.string();break;case 2:r.tooltip=e.string();break;case 4:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.json&&e.hasOwnProperty("json")&&!a.isString(e.json)?"json: string expected":null!=e.tooltip&&e.hasOwnProperty("tooltip")&&!a.isString(e.tooltip)?"tooltip: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DeckGlJsonChart)return e;let t=new l.DeckGlJsonChart;return null!=e.json&&(t.json=String(e.json)),null!=e.tooltip&&(t.tooltip=String(e.tooltip)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.json="",n.tooltip="",n.useContainerWidth=!1),null!=e.json&&e.hasOwnProperty("json")&&(n.json=e.json),null!=e.tooltip&&e.hasOwnProperty("tooltip")&&(n.tooltip=e.tooltip),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Delta=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.newElement=null,e.prototype.addBlock=null,e.prototype.addRows=null,e.prototype.arrowAddRows=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["newElement","addBlock","addRows","arrowAddRows"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.newElement&&Object.hasOwnProperty.call(e,"newElement")&&l.Element.encode(e.newElement,t.uint32(26).fork()).ldelim(),null!=e.addRows&&Object.hasOwnProperty.call(e,"addRows")&&l.NamedDataSet.encode(e.addRows,t.uint32(42).fork()).ldelim(),null!=e.addBlock&&Object.hasOwnProperty.call(e,"addBlock")&&l.Block.encode(e.addBlock,t.uint32(50).fork()).ldelim(),null!=e.arrowAddRows&&Object.hasOwnProperty.call(e,"arrowAddRows")&&l.ArrowNamedDataSet.encode(e.arrowAddRows,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Delta;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 3:r.newElement=l.Element.decode(e,e.uint32());break;case 6:r.addBlock=l.Block.decode(e,e.uint32());break;case 5:r.addRows=l.NamedDataSet.decode(e,e.uint32());break;case 7:r.arrowAddRows=l.ArrowNamedDataSet.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.newElement&&e.hasOwnProperty("newElement")){t.type=1;{let t=l.Element.verify(e.newElement);if(t)return"newElement."+t}}if(null!=e.addBlock&&e.hasOwnProperty("addBlock")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.verify(e.addBlock);if(t)return"addBlock."+t}}if(null!=e.addRows&&e.hasOwnProperty("addRows")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.NamedDataSet.verify(e.addRows);if(t)return"addRows."+t}}if(null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ArrowNamedDataSet.verify(e.arrowAddRows);if(t)return"arrowAddRows."+t}}return null},e.fromObject=function(e){if(e instanceof l.Delta)return e;let t=new l.Delta;if(null!=e.newElement){if("object"!==typeof e.newElement)throw TypeError(".Delta.newElement: object expected");t.newElement=l.Element.fromObject(e.newElement)}if(null!=e.addBlock){if("object"!==typeof e.addBlock)throw TypeError(".Delta.addBlock: object expected");t.addBlock=l.Block.fromObject(e.addBlock)}if(null!=e.addRows){if("object"!==typeof e.addRows)throw TypeError(".Delta.addRows: object expected");t.addRows=l.NamedDataSet.fromObject(e.addRows)}if(null!=e.arrowAddRows){if("object"!==typeof e.arrowAddRows)throw TypeError(".Delta.arrowAddRows: object expected");t.arrowAddRows=l.ArrowNamedDataSet.fromObject(e.arrowAddRows)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.newElement&&e.hasOwnProperty("newElement")&&(n.newElement=l.Element.toObject(e.newElement,t),t.oneofs&&(n.type="newElement")),null!=e.addRows&&e.hasOwnProperty("addRows")&&(n.addRows=l.NamedDataSet.toObject(e.addRows,t),t.oneofs&&(n.type="addRows")),null!=e.addBlock&&e.hasOwnProperty("addBlock")&&(n.addBlock=l.Block.toObject(e.addBlock,t),t.oneofs&&(n.type="addBlock")),null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")&&(n.arrowAddRows=l.ArrowNamedDataSet.toObject(e.arrowAddRows,t),t.oneofs&&(n.type="arrowAddRows")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DocString=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.module="",e.prototype.docString="",e.prototype.type="",e.prototype.signature="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(18).string(e.module),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(42).string(e.signature),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DocString;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.module=e.string();break;case 3:r.docString=e.string();break;case 4:r.type=e.string();break;case 5:r.signature=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.module&&e.hasOwnProperty("module")&&!a.isString(e.module)?"module: string expected":null!=e.docString&&e.hasOwnProperty("docString")&&!a.isString(e.docString)?"docString: string expected":null!=e.type&&e.hasOwnProperty("type")&&!a.isString(e.type)?"type: string expected":null!=e.signature&&e.hasOwnProperty("signature")&&!a.isString(e.signature)?"signature: string expected":null},e.fromObject=function(e){if(e instanceof l.DocString)return e;let t=new l.DocString;return null!=e.name&&(t.name=String(e.name)),null!=e.module&&(t.module=String(e.module)),null!=e.docString&&(t.docString=String(e.docString)),null!=e.type&&(t.type=String(e.type)),null!=e.signature&&(t.signature=String(e.signature)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.module="",n.docString="",n.type="",n.signature=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=e.docString),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DownloadButton=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.url="",e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DownloadButton;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.url=e.string();break;case 7:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DownloadButton)return e;let t=new l.DownloadButton;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.url&&(t.url=String(e.url)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.url="",n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Element=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.alert=null,e.prototype.arrowDataFrame=null,e.prototype.arrowTable=null,e.prototype.arrowVegaLiteChart=null,e.prototype.audio=null,e.prototype.balloons=null,e.prototype.bokehChart=null,e.prototype.button=null,e.prototype.downloadButton=null,e.prototype.cameraInput=null,e.prototype.checkbox=null,e.prototype.colorPicker=null,e.prototype.componentInstance=null,e.prototype.dataFrame=null,e.prototype.table=null,e.prototype.dateInput=null,e.prototype.deckGlJsonChart=null,e.prototype.docString=null,e.prototype.empty=null,e.prototype.exception=null,e.prototype.favicon=null,e.prototype.fileUploader=null,e.prototype.graphvizChart=null,e.prototype.iframe=null,e.prototype.imgs=null,e.prototype.json=null,e.prototype.markdown=null,e.prototype.metric=null,e.prototype.multiselect=null,e.prototype.numberInput=null,e.prototype.plotlyChart=null,e.prototype.progress=null,e.prototype.radio=null,e.prototype.selectbox=null,e.prototype.slider=null,e.prototype.snow=null,e.prototype.spinner=null,e.prototype.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.vegaLiteChart=null,e.prototype.video=null,e.prototype.heading=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","balloons","bokehChart","button","downloadButton","cameraInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","fileUploader","graphvizChart","iframe","imgs","json","markdown","metric","multiselect","numberInput","plotlyChart","progress","radio","selectbox","slider","snow","spinner","text","textArea","textInput","timeInput","vegaLiteChart","video","heading"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&l.Text.encode(e.text,t.uint32(10).fork()).ldelim(),null!=e.empty&&Object.hasOwnProperty.call(e,"empty")&&l.Empty.encode(e.empty,t.uint32(18).fork()).ldelim(),null!=e.dataFrame&&Object.hasOwnProperty.call(e,"dataFrame")&&l.DataFrame.encode(e.dataFrame,t.uint32(26).fork()).ldelim(),null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&l.Progress.encode(e.progress,t.uint32(42).fork()).ldelim(),null!=e.imgs&&Object.hasOwnProperty.call(e,"imgs")&&l.ImageList.encode(e.imgs,t.uint32(50).fork()).ldelim(),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&l.DocString.encode(e.docString,t.uint32(58).fork()).ldelim(),null!=e.exception&&Object.hasOwnProperty.call(e,"exception")&&l.Exception.encode(e.exception,t.uint32(66).fork()).ldelim(),null!=e.vegaLiteChart&&Object.hasOwnProperty.call(e,"vegaLiteChart")&&l.VegaLiteChart.encode(e.vegaLiteChart,t.uint32(82).fork()).ldelim(),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&l.DataFrame.encode(e.table,t.uint32(90).fork()).ldelim(),null!=e.balloons&&Object.hasOwnProperty.call(e,"balloons")&&l.Balloons.encode(e.balloons,t.uint32(98).fork()).ldelim(),null!=e.audio&&Object.hasOwnProperty.call(e,"audio")&&l.Audio.encode(e.audio,t.uint32(106).fork()).ldelim(),null!=e.video&&Object.hasOwnProperty.call(e,"video")&&l.Video.encode(e.video,t.uint32(114).fork()).ldelim(),null!=e.plotlyChart&&Object.hasOwnProperty.call(e,"plotlyChart")&&l.PlotlyChart.encode(e.plotlyChart,t.uint32(130).fork()).ldelim(),null!=e.bokehChart&&Object.hasOwnProperty.call(e,"bokehChart")&&l.BokehChart.encode(e.bokehChart,t.uint32(138).fork()).ldelim(),null!=e.graphvizChart&&Object.hasOwnProperty.call(e,"graphvizChart")&&l.GraphVizChart.encode(e.graphvizChart,t.uint32(146).fork()).ldelim(),null!=e.button&&Object.hasOwnProperty.call(e,"button")&&l.Button.encode(e.button,t.uint32(154).fork()).ldelim(),null!=e.checkbox&&Object.hasOwnProperty.call(e,"checkbox")&&l.Checkbox.encode(e.checkbox,t.uint32(162).fork()).ldelim(),null!=e.slider&&Object.hasOwnProperty.call(e,"slider")&&l.Slider.encode(e.slider,t.uint32(170).fork()).ldelim(),null!=e.textArea&&Object.hasOwnProperty.call(e,"textArea")&&l.TextArea.encode(e.textArea,t.uint32(178).fork()).ldelim(),null!=e.radio&&Object.hasOwnProperty.call(e,"radio")&&l.Radio.encode(e.radio,t.uint32(186).fork()).ldelim(),null!=e.textInput&&Object.hasOwnProperty.call(e,"textInput")&&l.TextInput.encode(e.textInput,t.uint32(194).fork()).ldelim(),null!=e.selectbox&&Object.hasOwnProperty.call(e,"selectbox")&&l.Selectbox.encode(e.selectbox,t.uint32(202).fork()).ldelim(),null!=e.timeInput&&Object.hasOwnProperty.call(e,"timeInput")&&l.TimeInput.encode(e.timeInput,t.uint32(210).fork()).ldelim(),null!=e.dateInput&&Object.hasOwnProperty.call(e,"dateInput")&&l.DateInput.encode(e.dateInput,t.uint32(218).fork()).ldelim(),null!=e.multiselect&&Object.hasOwnProperty.call(e,"multiselect")&&l.MultiSelect.encode(e.multiselect,t.uint32(226).fork()).ldelim(),null!=e.markdown&&Object.hasOwnProperty.call(e,"markdown")&&l.Markdown.encode(e.markdown,t.uint32(234).fork()).ldelim(),null!=e.alert&&Object.hasOwnProperty.call(e,"alert")&&l.Alert.encode(e.alert,t.uint32(242).fork()).ldelim(),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&l.Json.encode(e.json,t.uint32(250).fork()).ldelim(),null!=e.numberInput&&Object.hasOwnProperty.call(e,"numberInput")&&l.NumberInput.encode(e.numberInput,t.uint32(258).fork()).ldelim(),null!=e.fileUploader&&Object.hasOwnProperty.call(e,"fileUploader")&&l.FileUploader.encode(e.fileUploader,t.uint32(266).fork()).ldelim(),null!=e.deckGlJsonChart&&Object.hasOwnProperty.call(e,"deckGlJsonChart")&&l.DeckGlJsonChart.encode(e.deckGlJsonChart,t.uint32(274).fork()).ldelim(),null!=e.colorPicker&&Object.hasOwnProperty.call(e,"colorPicker")&&l.ColorPicker.encode(e.colorPicker,t.uint32(282).fork()).ldelim(),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&l.Favicon.encode(e.favicon,t.uint32(290).fork()).ldelim(),null!=e.componentInstance&&Object.hasOwnProperty.call(e,"componentInstance")&&l.ComponentInstance.encode(e.componentInstance,t.uint32(298).fork()).ldelim(),null!=e.iframe&&Object.hasOwnProperty.call(e,"iframe")&&l.IFrame.encode(e.iframe,t.uint32(306).fork()).ldelim(),null!=e.arrowTable&&Object.hasOwnProperty.call(e,"arrowTable")&&l.Arrow.encode(e.arrowTable,t.uint32(314).fork()).ldelim(),null!=e.arrowDataFrame&&Object.hasOwnProperty.call(e,"arrowDataFrame")&&l.Arrow.encode(e.arrowDataFrame,t.uint32(322).fork()).ldelim(),null!=e.arrowVegaLiteChart&&Object.hasOwnProperty.call(e,"arrowVegaLiteChart")&&l.ArrowVegaLiteChart.encode(e.arrowVegaLiteChart,t.uint32(330).fork()).ldelim(),null!=e.metric&&Object.hasOwnProperty.call(e,"metric")&&l.Metric.encode(e.metric,t.uint32(338).fork()).ldelim(),null!=e.downloadButton&&Object.hasOwnProperty.call(e,"downloadButton")&&l.DownloadButton.encode(e.downloadButton,t.uint32(346).fork()).ldelim(),null!=e.spinner&&Object.hasOwnProperty.call(e,"spinner")&&l.Spinner.encode(e.spinner,t.uint32(354).fork()).ldelim(),null!=e.cameraInput&&Object.hasOwnProperty.call(e,"cameraInput")&&l.CameraInput.encode(e.cameraInput,t.uint32(362).fork()).ldelim(),null!=e.snow&&Object.hasOwnProperty.call(e,"snow")&&l.Snow.encode(e.snow,t.uint32(370).fork()).ldelim(),null!=e.heading&&Object.hasOwnProperty.call(e,"heading")&&l.Heading.encode(e.heading,t.uint32(378).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Element;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 30:r.alert=l.Alert.decode(e,e.uint32());break;case 40:r.arrowDataFrame=l.Arrow.decode(e,e.uint32());break;case 39:r.arrowTable=l.Arrow.decode(e,e.uint32());break;case 41:r.arrowVegaLiteChart=l.ArrowVegaLiteChart.decode(e,e.uint32());break;case 13:r.audio=l.Audio.decode(e,e.uint32());break;case 12:r.balloons=l.Balloons.decode(e,e.uint32());break;case 17:r.bokehChart=l.BokehChart.decode(e,e.uint32());break;case 19:r.button=l.Button.decode(e,e.uint32());break;case 43:r.downloadButton=l.DownloadButton.decode(e,e.uint32());break;case 45:r.cameraInput=l.CameraInput.decode(e,e.uint32());break;case 20:r.checkbox=l.Checkbox.decode(e,e.uint32());break;case 35:r.colorPicker=l.ColorPicker.decode(e,e.uint32());break;case 37:r.componentInstance=l.ComponentInstance.decode(e,e.uint32());break;case 3:r.dataFrame=l.DataFrame.decode(e,e.uint32());break;case 11:r.table=l.DataFrame.decode(e,e.uint32());break;case 27:r.dateInput=l.DateInput.decode(e,e.uint32());break;case 34:r.deckGlJsonChart=l.DeckGlJsonChart.decode(e,e.uint32());break;case 7:r.docString=l.DocString.decode(e,e.uint32());break;case 2:r.empty=l.Empty.decode(e,e.uint32());break;case 8:r.exception=l.Exception.decode(e,e.uint32());break;case 36:r.favicon=l.Favicon.decode(e,e.uint32());break;case 33:r.fileUploader=l.FileUploader.decode(e,e.uint32());break;case 18:r.graphvizChart=l.GraphVizChart.decode(e,e.uint32());break;case 38:r.iframe=l.IFrame.decode(e,e.uint32());break;case 6:r.imgs=l.ImageList.decode(e,e.uint32());break;case 31:r.json=l.Json.decode(e,e.uint32());break;case 29:r.markdown=l.Markdown.decode(e,e.uint32());break;case 42:r.metric=l.Metric.decode(e,e.uint32());break;case 28:r.multiselect=l.MultiSelect.decode(e,e.uint32());break;case 32:r.numberInput=l.NumberInput.decode(e,e.uint32());break;case 16:r.plotlyChart=l.PlotlyChart.decode(e,e.uint32());break;case 5:r.progress=l.Progress.decode(e,e.uint32());break;case 23:r.radio=l.Radio.decode(e,e.uint32());break;case 25:r.selectbox=l.Selectbox.decode(e,e.uint32());break;case 21:r.slider=l.Slider.decode(e,e.uint32());break;case 46:r.snow=l.Snow.decode(e,e.uint32());break;case 44:r.spinner=l.Spinner.decode(e,e.uint32());break;case 1:r.text=l.Text.decode(e,e.uint32());break;case 22:r.textArea=l.TextArea.decode(e,e.uint32());break;case 24:r.textInput=l.TextInput.decode(e,e.uint32());break;case 26:r.timeInput=l.TimeInput.decode(e,e.uint32());break;case 10:r.vegaLiteChart=l.VegaLiteChart.decode(e,e.uint32());break;case 14:r.video=l.Video.decode(e,e.uint32());break;case 47:r.heading=l.Heading.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.alert&&e.hasOwnProperty("alert")){t.type=1;{let t=l.Alert.verify(e.alert);if(t)return"alert."+t}}if(null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Arrow.verify(e.arrowDataFrame);if(t)return"arrowDataFrame."+t}}if(null!=e.arrowTable&&e.hasOwnProperty("arrowTable")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Arrow.verify(e.arrowTable);if(t)return"arrowTable."+t}}if(null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ArrowVegaLiteChart.verify(e.arrowVegaLiteChart);if(t)return"arrowVegaLiteChart."+t}}if(null!=e.audio&&e.hasOwnProperty("audio")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Audio.verify(e.audio);if(t)return"audio."+t}}if(null!=e.balloons&&e.hasOwnProperty("balloons")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Balloons.verify(e.balloons);if(t)return"balloons."+t}}if(null!=e.bokehChart&&e.hasOwnProperty("bokehChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.BokehChart.verify(e.bokehChart);if(t)return"bokehChart."+t}}if(null!=e.button&&e.hasOwnProperty("button")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Button.verify(e.button);if(t)return"button."+t}}if(null!=e.downloadButton&&e.hasOwnProperty("downloadButton")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DownloadButton.verify(e.downloadButton);if(t)return"downloadButton."+t}}if(null!=e.cameraInput&&e.hasOwnProperty("cameraInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.CameraInput.verify(e.cameraInput);if(t)return"cameraInput."+t}}if(null!=e.checkbox&&e.hasOwnProperty("checkbox")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Checkbox.verify(e.checkbox);if(t)return"checkbox."+t}}if(null!=e.colorPicker&&e.hasOwnProperty("colorPicker")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ColorPicker.verify(e.colorPicker);if(t)return"colorPicker."+t}}if(null!=e.componentInstance&&e.hasOwnProperty("componentInstance")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ComponentInstance.verify(e.componentInstance);if(t)return"componentInstance."+t}}if(null!=e.dataFrame&&e.hasOwnProperty("dataFrame")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DataFrame.verify(e.dataFrame);if(t)return"dataFrame."+t}}if(null!=e.table&&e.hasOwnProperty("table")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DataFrame.verify(e.table);if(t)return"table."+t}}if(null!=e.dateInput&&e.hasOwnProperty("dateInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DateInput.verify(e.dateInput);if(t)return"dateInput."+t}}if(null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DeckGlJsonChart.verify(e.deckGlJsonChart);if(t)return"deckGlJsonChart."+t}}if(null!=e.docString&&e.hasOwnProperty("docString")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DocString.verify(e.docString);if(t)return"docString."+t}}if(null!=e.empty&&e.hasOwnProperty("empty")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Empty.verify(e.empty);if(t)return"empty."+t}}if(null!=e.exception&&e.hasOwnProperty("exception")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Exception.verify(e.exception);if(t)return"exception."+t}}if(null!=e.favicon&&e.hasOwnProperty("favicon")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Favicon.verify(e.favicon);if(t)return"favicon."+t}}if(null!=e.fileUploader&&e.hasOwnProperty("fileUploader")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.FileUploader.verify(e.fileUploader);if(t)return"fileUploader."+t}}if(null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.GraphVizChart.verify(e.graphvizChart);if(t)return"graphvizChart."+t}}if(null!=e.iframe&&e.hasOwnProperty("iframe")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.IFrame.verify(e.iframe);if(t)return"iframe."+t}}if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ImageList.verify(e.imgs);if(t)return"imgs."+t}}if(null!=e.json&&e.hasOwnProperty("json")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Json.verify(e.json);if(t)return"json."+t}}if(null!=e.markdown&&e.hasOwnProperty("markdown")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Markdown.verify(e.markdown);if(t)return"markdown."+t}}if(null!=e.metric&&e.hasOwnProperty("metric")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Metric.verify(e.metric);if(t)return"metric."+t}}if(null!=e.multiselect&&e.hasOwnProperty("multiselect")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.MultiSelect.verify(e.multiselect);if(t)return"multiselect."+t}}if(null!=e.numberInput&&e.hasOwnProperty("numberInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.NumberInput.verify(e.numberInput);if(t)return"numberInput."+t}}if(null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PlotlyChart.verify(e.plotlyChart);if(t)return"plotlyChart."+t}}if(null!=e.progress&&e.hasOwnProperty("progress")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Progress.verify(e.progress);if(t)return"progress."+t}}if(null!=e.radio&&e.hasOwnProperty("radio")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Radio.verify(e.radio);if(t)return"radio."+t}}if(null!=e.selectbox&&e.hasOwnProperty("selectbox")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Selectbox.verify(e.selectbox);if(t)return"selectbox."+t}}if(null!=e.slider&&e.hasOwnProperty("slider")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Slider.verify(e.slider);if(t)return"slider."+t}}if(null!=e.snow&&e.hasOwnProperty("snow")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Snow.verify(e.snow);if(t)return"snow."+t}}if(null!=e.spinner&&e.hasOwnProperty("spinner")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Spinner.verify(e.spinner);if(t)return"spinner."+t}}if(null!=e.text&&e.hasOwnProperty("text")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Text.verify(e.text);if(t)return"text."+t}}if(null!=e.textArea&&e.hasOwnProperty("textArea")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TextArea.verify(e.textArea);if(t)return"textArea."+t}}if(null!=e.textInput&&e.hasOwnProperty("textInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TextInput.verify(e.textInput);if(t)return"textInput."+t}}if(null!=e.timeInput&&e.hasOwnProperty("timeInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TimeInput.verify(e.timeInput);if(t)return"timeInput."+t}}if(null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.VegaLiteChart.verify(e.vegaLiteChart);if(t)return"vegaLiteChart."+t}}if(null!=e.video&&e.hasOwnProperty("video")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Video.verify(e.video);if(t)return"video."+t}}if(null!=e.heading&&e.hasOwnProperty("heading")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Heading.verify(e.heading);if(t)return"heading."+t}}return null},e.fromObject=function(e){if(e instanceof l.Element)return e;let t=new l.Element;if(null!=e.alert){if("object"!==typeof e.alert)throw TypeError(".Element.alert: object expected");t.alert=l.Alert.fromObject(e.alert)}if(null!=e.arrowDataFrame){if("object"!==typeof e.arrowDataFrame)throw TypeError(".Element.arrowDataFrame: object expected");t.arrowDataFrame=l.Arrow.fromObject(e.arrowDataFrame)}if(null!=e.arrowTable){if("object"!==typeof e.arrowTable)throw TypeError(".Element.arrowTable: object expected");t.arrowTable=l.Arrow.fromObject(e.arrowTable)}if(null!=e.arrowVegaLiteChart){if("object"!==typeof e.arrowVegaLiteChart)throw TypeError(".Element.arrowVegaLiteChart: object expected");t.arrowVegaLiteChart=l.ArrowVegaLiteChart.fromObject(e.arrowVegaLiteChart)}if(null!=e.audio){if("object"!==typeof e.audio)throw TypeError(".Element.audio: object expected");t.audio=l.Audio.fromObject(e.audio)}if(null!=e.balloons){if("object"!==typeof e.balloons)throw TypeError(".Element.balloons: object expected");t.balloons=l.Balloons.fromObject(e.balloons)}if(null!=e.bokehChart){if("object"!==typeof e.bokehChart)throw TypeError(".Element.bokehChart: object expected");t.bokehChart=l.BokehChart.fromObject(e.bokehChart)}if(null!=e.button){if("object"!==typeof e.button)throw TypeError(".Element.button: object expected");t.button=l.Button.fromObject(e.button)}if(null!=e.downloadButton){if("object"!==typeof e.downloadButton)throw TypeError(".Element.downloadButton: object expected");t.downloadButton=l.DownloadButton.fromObject(e.downloadButton)}if(null!=e.cameraInput){if("object"!==typeof e.cameraInput)throw TypeError(".Element.cameraInput: object expected");t.cameraInput=l.CameraInput.fromObject(e.cameraInput)}if(null!=e.checkbox){if("object"!==typeof e.checkbox)throw TypeError(".Element.checkbox: object expected");t.checkbox=l.Checkbox.fromObject(e.checkbox)}if(null!=e.colorPicker){if("object"!==typeof e.colorPicker)throw TypeError(".Element.colorPicker: object expected");t.colorPicker=l.ColorPicker.fromObject(e.colorPicker)}if(null!=e.componentInstance){if("object"!==typeof e.componentInstance)throw TypeError(".Element.componentInstance: object expected");t.componentInstance=l.ComponentInstance.fromObject(e.componentInstance)}if(null!=e.dataFrame){if("object"!==typeof e.dataFrame)throw TypeError(".Element.dataFrame: object expected");t.dataFrame=l.DataFrame.fromObject(e.dataFrame)}if(null!=e.table){if("object"!==typeof e.table)throw TypeError(".Element.table: object expected");t.table=l.DataFrame.fromObject(e.table)}if(null!=e.dateInput){if("object"!==typeof e.dateInput)throw TypeError(".Element.dateInput: object expected");t.dateInput=l.DateInput.fromObject(e.dateInput)}if(null!=e.deckGlJsonChart){if("object"!==typeof e.deckGlJsonChart)throw TypeError(".Element.deckGlJsonChart: object expected");t.deckGlJsonChart=l.DeckGlJsonChart.fromObject(e.deckGlJsonChart)}if(null!=e.docString){if("object"!==typeof e.docString)throw TypeError(".Element.docString: object expected");t.docString=l.DocString.fromObject(e.docString)}if(null!=e.empty){if("object"!==typeof e.empty)throw TypeError(".Element.empty: object expected");t.empty=l.Empty.fromObject(e.empty)}if(null!=e.exception){if("object"!==typeof e.exception)throw TypeError(".Element.exception: object expected");t.exception=l.Exception.fromObject(e.exception)}if(null!=e.favicon){if("object"!==typeof e.favicon)throw TypeError(".Element.favicon: object expected");t.favicon=l.Favicon.fromObject(e.favicon)}if(null!=e.fileUploader){if("object"!==typeof e.fileUploader)throw TypeError(".Element.fileUploader: object expected");t.fileUploader=l.FileUploader.fromObject(e.fileUploader)}if(null!=e.graphvizChart){if("object"!==typeof e.graphvizChart)throw TypeError(".Element.graphvizChart: object expected");t.graphvizChart=l.GraphVizChart.fromObject(e.graphvizChart)}if(null!=e.iframe){if("object"!==typeof e.iframe)throw TypeError(".Element.iframe: object expected");t.iframe=l.IFrame.fromObject(e.iframe)}if(null!=e.imgs){if("object"!==typeof e.imgs)throw TypeError(".Element.imgs: object expected");t.imgs=l.ImageList.fromObject(e.imgs)}if(null!=e.json){if("object"!==typeof e.json)throw TypeError(".Element.json: object expected");t.json=l.Json.fromObject(e.json)}if(null!=e.markdown){if("object"!==typeof e.markdown)throw TypeError(".Element.markdown: object expected");t.markdown=l.Markdown.fromObject(e.markdown)}if(null!=e.metric){if("object"!==typeof e.metric)throw TypeError(".Element.metric: object expected");t.metric=l.Metric.fromObject(e.metric)}if(null!=e.multiselect){if("object"!==typeof e.multiselect)throw TypeError(".Element.multiselect: object expected");t.multiselect=l.MultiSelect.fromObject(e.multiselect)}if(null!=e.numberInput){if("object"!==typeof e.numberInput)throw TypeError(".Element.numberInput: object expected");t.numberInput=l.NumberInput.fromObject(e.numberInput)}if(null!=e.plotlyChart){if("object"!==typeof e.plotlyChart)throw TypeError(".Element.plotlyChart: object expected");t.plotlyChart=l.PlotlyChart.fromObject(e.plotlyChart)}if(null!=e.progress){if("object"!==typeof e.progress)throw TypeError(".Element.progress: object expected");t.progress=l.Progress.fromObject(e.progress)}if(null!=e.radio){if("object"!==typeof e.radio)throw TypeError(".Element.radio: object expected");t.radio=l.Radio.fromObject(e.radio)}if(null!=e.selectbox){if("object"!==typeof e.selectbox)throw TypeError(".Element.selectbox: object expected");t.selectbox=l.Selectbox.fromObject(e.selectbox)}if(null!=e.slider){if("object"!==typeof e.slider)throw TypeError(".Element.slider: object expected");t.slider=l.Slider.fromObject(e.slider)}if(null!=e.snow){if("object"!==typeof e.snow)throw TypeError(".Element.snow: object expected");t.snow=l.Snow.fromObject(e.snow)}if(null!=e.spinner){if("object"!==typeof e.spinner)throw TypeError(".Element.spinner: object expected");t.spinner=l.Spinner.fromObject(e.spinner)}if(null!=e.text){if("object"!==typeof e.text)throw TypeError(".Element.text: object expected");t.text=l.Text.fromObject(e.text)}if(null!=e.textArea){if("object"!==typeof e.textArea)throw TypeError(".Element.textArea: object expected");t.textArea=l.TextArea.fromObject(e.textArea)}if(null!=e.textInput){if("object"!==typeof e.textInput)throw TypeError(".Element.textInput: object expected");t.textInput=l.TextInput.fromObject(e.textInput)}if(null!=e.timeInput){if("object"!==typeof e.timeInput)throw TypeError(".Element.timeInput: object expected");t.timeInput=l.TimeInput.fromObject(e.timeInput)}if(null!=e.vegaLiteChart){if("object"!==typeof e.vegaLiteChart)throw TypeError(".Element.vegaLiteChart: object expected");t.vegaLiteChart=l.VegaLiteChart.fromObject(e.vegaLiteChart)}if(null!=e.video){if("object"!==typeof e.video)throw TypeError(".Element.video: object expected");t.video=l.Video.fromObject(e.video)}if(null!=e.heading){if("object"!==typeof e.heading)throw TypeError(".Element.heading: object expected");t.heading=l.Heading.fromObject(e.heading)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.text&&e.hasOwnProperty("text")&&(n.text=l.Text.toObject(e.text,t),t.oneofs&&(n.type="text")),null!=e.empty&&e.hasOwnProperty("empty")&&(n.empty=l.Empty.toObject(e.empty,t),t.oneofs&&(n.type="empty")),null!=e.dataFrame&&e.hasOwnProperty("dataFrame")&&(n.dataFrame=l.DataFrame.toObject(e.dataFrame,t),t.oneofs&&(n.type="dataFrame")),null!=e.progress&&e.hasOwnProperty("progress")&&(n.progress=l.Progress.toObject(e.progress,t),t.oneofs&&(n.type="progress")),null!=e.imgs&&e.hasOwnProperty("imgs")&&(n.imgs=l.ImageList.toObject(e.imgs,t),t.oneofs&&(n.type="imgs")),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=l.DocString.toObject(e.docString,t),t.oneofs&&(n.type="docString")),null!=e.exception&&e.hasOwnProperty("exception")&&(n.exception=l.Exception.toObject(e.exception,t),t.oneofs&&(n.type="exception")),null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")&&(n.vegaLiteChart=l.VegaLiteChart.toObject(e.vegaLiteChart,t),t.oneofs&&(n.type="vegaLiteChart")),null!=e.table&&e.hasOwnProperty("table")&&(n.table=l.DataFrame.toObject(e.table,t),t.oneofs&&(n.type="table")),null!=e.balloons&&e.hasOwnProperty("balloons")&&(n.balloons=l.Balloons.toObject(e.balloons,t),t.oneofs&&(n.type="balloons")),null!=e.audio&&e.hasOwnProperty("audio")&&(n.audio=l.Audio.toObject(e.audio,t),t.oneofs&&(n.type="audio")),null!=e.video&&e.hasOwnProperty("video")&&(n.video=l.Video.toObject(e.video,t),t.oneofs&&(n.type="video")),null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")&&(n.plotlyChart=l.PlotlyChart.toObject(e.plotlyChart,t),t.oneofs&&(n.type="plotlyChart")),null!=e.bokehChart&&e.hasOwnProperty("bokehChart")&&(n.bokehChart=l.BokehChart.toObject(e.bokehChart,t),t.oneofs&&(n.type="bokehChart")),null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")&&(n.graphvizChart=l.GraphVizChart.toObject(e.graphvizChart,t),t.oneofs&&(n.type="graphvizChart")),null!=e.button&&e.hasOwnProperty("button")&&(n.button=l.Button.toObject(e.button,t),t.oneofs&&(n.type="button")),null!=e.checkbox&&e.hasOwnProperty("checkbox")&&(n.checkbox=l.Checkbox.toObject(e.checkbox,t),t.oneofs&&(n.type="checkbox")),null!=e.slider&&e.hasOwnProperty("slider")&&(n.slider=l.Slider.toObject(e.slider,t),t.oneofs&&(n.type="slider")),null!=e.textArea&&e.hasOwnProperty("textArea")&&(n.textArea=l.TextArea.toObject(e.textArea,t),t.oneofs&&(n.type="textArea")),null!=e.radio&&e.hasOwnProperty("radio")&&(n.radio=l.Radio.toObject(e.radio,t),t.oneofs&&(n.type="radio")),null!=e.textInput&&e.hasOwnProperty("textInput")&&(n.textInput=l.TextInput.toObject(e.textInput,t),t.oneofs&&(n.type="textInput")),null!=e.selectbox&&e.hasOwnProperty("selectbox")&&(n.selectbox=l.Selectbox.toObject(e.selectbox,t),t.oneofs&&(n.type="selectbox")),null!=e.timeInput&&e.hasOwnProperty("timeInput")&&(n.timeInput=l.TimeInput.toObject(e.timeInput,t),t.oneofs&&(n.type="timeInput")),null!=e.dateInput&&e.hasOwnProperty("dateInput")&&(n.dateInput=l.DateInput.toObject(e.dateInput,t),t.oneofs&&(n.type="dateInput")),null!=e.multiselect&&e.hasOwnProperty("multiselect")&&(n.multiselect=l.MultiSelect.toObject(e.multiselect,t),t.oneofs&&(n.type="multiselect")),null!=e.markdown&&e.hasOwnProperty("markdown")&&(n.markdown=l.Markdown.toObject(e.markdown,t),t.oneofs&&(n.type="markdown")),null!=e.alert&&e.hasOwnProperty("alert")&&(n.alert=l.Alert.toObject(e.alert,t),t.oneofs&&(n.type="alert")),null!=e.json&&e.hasOwnProperty("json")&&(n.json=l.Json.toObject(e.json,t),t.oneofs&&(n.type="json")),null!=e.numberInput&&e.hasOwnProperty("numberInput")&&(n.numberInput=l.NumberInput.toObject(e.numberInput,t),t.oneofs&&(n.type="numberInput")),null!=e.fileUploader&&e.hasOwnProperty("fileUploader")&&(n.fileUploader=l.FileUploader.toObject(e.fileUploader,t),t.oneofs&&(n.type="fileUploader")),null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")&&(n.deckGlJsonChart=l.DeckGlJsonChart.toObject(e.deckGlJsonChart,t),t.oneofs&&(n.type="deckGlJsonChart")),null!=e.colorPicker&&e.hasOwnProperty("colorPicker")&&(n.colorPicker=l.ColorPicker.toObject(e.colorPicker,t),t.oneofs&&(n.type="colorPicker")),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=l.Favicon.toObject(e.favicon,t),t.oneofs&&(n.type="favicon")),null!=e.componentInstance&&e.hasOwnProperty("componentInstance")&&(n.componentInstance=l.ComponentInstance.toObject(e.componentInstance,t),t.oneofs&&(n.type="componentInstance")),null!=e.iframe&&e.hasOwnProperty("iframe")&&(n.iframe=l.IFrame.toObject(e.iframe,t),t.oneofs&&(n.type="iframe")),null!=e.arrowTable&&e.hasOwnProperty("arrowTable")&&(n.arrowTable=l.Arrow.toObject(e.arrowTable,t),t.oneofs&&(n.type="arrowTable")),null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")&&(n.arrowDataFrame=l.Arrow.toObject(e.arrowDataFrame,t),t.oneofs&&(n.type="arrowDataFrame")),null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")&&(n.arrowVegaLiteChart=l.ArrowVegaLiteChart.toObject(e.arrowVegaLiteChart,t),t.oneofs&&(n.type="arrowVegaLiteChart")),null!=e.metric&&e.hasOwnProperty("metric")&&(n.metric=l.Metric.toObject(e.metric,t),t.oneofs&&(n.type="metric")),null!=e.downloadButton&&e.hasOwnProperty("downloadButton")&&(n.downloadButton=l.DownloadButton.toObject(e.downloadButton,t),t.oneofs&&(n.type="downloadButton")),null!=e.spinner&&e.hasOwnProperty("spinner")&&(n.spinner=l.Spinner.toObject(e.spinner,t),t.oneofs&&(n.type="spinner")),null!=e.cameraInput&&e.hasOwnProperty("cameraInput")&&(n.cameraInput=l.CameraInput.toObject(e.cameraInput,t),t.oneofs&&(n.type="cameraInput")),null!=e.snow&&e.hasOwnProperty("snow")&&(n.snow=l.Snow.toObject(e.snow,t),t.oneofs&&(n.type="snow")),null!=e.heading&&e.hasOwnProperty("heading")&&(n.heading=l.Heading.toObject(e.heading,t),t.oneofs&&(n.type="heading")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),y=(l.Empty=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Empty;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Empty?e:new l.Empty},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Exception=(()=>{function e(e){if(this.stackTrace=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type="",e.prototype.message="",e.prototype.messageIsMarkdown=!1,e.prototype.stackTrace=a.emptyArray,e.prototype.isWarning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.stackTrace&&e.stackTrace.length)for(let n=0;n<e.stackTrace.length;++n)t.uint32(26).string(e.stackTrace[n]);return null!=e.messageIsMarkdown&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),null!=e.isWarning&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Exception;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.type=e.string();break;case 2:r.message=e.string();break;case 4:r.messageIsMarkdown=e.bool();break;case 3:r.stackTrace&&r.stackTrace.length||(r.stackTrace=[]),r.stackTrace.push(e.string());break;case 5:r.isWarning=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!a.isString(e.type))return"type: string expected";if(null!=e.message&&e.hasOwnProperty("message")&&!a.isString(e.message))return"message: string expected";if(null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&"boolean"!==typeof e.messageIsMarkdown)return"messageIsMarkdown: boolean expected";if(null!=e.stackTrace&&e.hasOwnProperty("stackTrace")){if(!Array.isArray(e.stackTrace))return"stackTrace: array expected";for(let t=0;t<e.stackTrace.length;++t)if(!a.isString(e.stackTrace[t]))return"stackTrace: string[] expected"}return null!=e.isWarning&&e.hasOwnProperty("isWarning")&&"boolean"!==typeof e.isWarning?"isWarning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Exception)return e;let t=new l.Exception;if(null!=e.type&&(t.type=String(e.type)),null!=e.message&&(t.message=String(e.message)),null!=e.messageIsMarkdown&&(t.messageIsMarkdown=Boolean(e.messageIsMarkdown)),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let n=0;n<e.stackTrace.length;++n)t.stackTrace[n]=String(e.stackTrace[n])}return null!=e.isWarning&&(t.isWarning=Boolean(e.isWarning)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.stackTrace=[]),t.defaults&&(n.type="",n.message="",n.messageIsMarkdown=!1,n.isWarning=!1),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),e.stackTrace&&e.stackTrace.length){n.stackTrace=[];for(let t=0;t<e.stackTrace.length;++t)n.stackTrace[t]=e.stackTrace[t]}return null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&(n.messageIsMarkdown=e.messageIsMarkdown),null!=e.isWarning&&e.hasOwnProperty("isWarning")&&(n.isWarning=e.isWarning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Favicon=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Favicon;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.url=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null},e.fromObject=function(e){if(e instanceof l.Favicon)return e;let t=new l.Favicon;return null!=e.url&&(t.url=String(e.url)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.url=""),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.FileUploader=(()=>{function e(e){if(this.type=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.type=a.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.multipleFiles=!1,e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.type&&e.type.length)for(let n=0;n<e.type.length;++n)t.uint32(26).string(e.type[n]);return null!=e.maxUploadSizeMb&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),null!=e.multipleFiles&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.FileUploader;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.type&&r.type.length||(r.type=[]),r.type.push(e.string());break;case 4:r.maxUploadSizeMb=e.int32();break;case 6:r.multipleFiles=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.type&&e.hasOwnProperty("type")){if(!Array.isArray(e.type))return"type: array expected";for(let t=0;t<e.type.length;++t)if(!a.isString(e.type[t]))return"type: string[] expected"}if(null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&!a.isInteger(e.maxUploadSizeMb))return"maxUploadSizeMb: integer expected";if(null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&"boolean"!==typeof e.multipleFiles)return"multipleFiles: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.FileUploader)return e;let t=new l.FileUploader;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let n=0;n<e.type.length;++n)t.type[n]=String(e.type[n])}if(null!=e.maxUploadSizeMb&&(t.maxUploadSizeMb=0|e.maxUploadSizeMb),null!=e.multipleFiles&&(t.multipleFiles=Boolean(e.multipleFiles)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.type=[]),t.defaults&&(n.id="",n.label="",n.maxUploadSizeMb=0,n.multipleFiles=!1,n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.type&&e.type.length){n.type=[];for(let t=0;t<e.type.length;++t)n.type[t]=e.type[t]}return null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&(n.maxUploadSizeMb=e.maxUploadSizeMb),null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&(n.multipleFiles=e.multipleFiles),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ForwardMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.hash="",e.prototype.metadata=null,e.prototype.newSession=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.pageConfigChanged=null,e.prototype.scriptFinished=null,e.prototype.gitInfoChanged=null,e.prototype.pageProfile=null,e.prototype.sessionStateChanged=null,e.prototype.sessionEvent=null,e.prototype.pageNotFound=null,e.prototype.pagesChanged=null,e.prototype.refHash=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStateChanged","sessionEvent","pageNotFound","pagesChanged","refHash"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).string(e.hash),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&l.ForwardMsgMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),null!=e.newSession&&Object.hasOwnProperty.call(e,"newSession")&&l.NewSession.encode(e.newSession,t.uint32(34).fork()).ldelim(),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&l.Delta.encode(e.delta,t.uint32(42).fork()).ldelim(),null!=e.scriptFinished&&Object.hasOwnProperty.call(e,"scriptFinished")&&t.uint32(48).int32(e.scriptFinished),null!=e.sessionStateChanged&&Object.hasOwnProperty.call(e,"sessionStateChanged")&&l.SessionState.encode(e.sessionStateChanged,t.uint32(74).fork()).ldelim(),null!=e.sessionEvent&&Object.hasOwnProperty.call(e,"sessionEvent")&&l.SessionEvent.encode(e.sessionEvent,t.uint32(82).fork()).ldelim(),null!=e.refHash&&Object.hasOwnProperty.call(e,"refHash")&&t.uint32(90).string(e.refHash),null!=e.pageInfoChanged&&Object.hasOwnProperty.call(e,"pageInfoChanged")&&l.PageInfo.encode(e.pageInfoChanged,t.uint32(98).fork()).ldelim(),null!=e.pageConfigChanged&&Object.hasOwnProperty.call(e,"pageConfigChanged")&&l.PageConfig.encode(e.pageConfigChanged,t.uint32(106).fork()).ldelim(),null!=e.gitInfoChanged&&Object.hasOwnProperty.call(e,"gitInfoChanged")&&l.GitInfo.encode(e.gitInfoChanged,t.uint32(114).fork()).ldelim(),null!=e.pageNotFound&&Object.hasOwnProperty.call(e,"pageNotFound")&&l.PageNotFound.encode(e.pageNotFound,t.uint32(122).fork()).ldelim(),null!=e.pagesChanged&&Object.hasOwnProperty.call(e,"pagesChanged")&&l.PagesChanged.encode(e.pagesChanged,t.uint32(130).fork()).ldelim(),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&t.uint32(138).string(e.debugLastBackmsgId),null!=e.pageProfile&&Object.hasOwnProperty.call(e,"pageProfile")&&l.PageProfile.encode(e.pageProfile,t.uint32(146).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.hash=e.string();break;case 2:r.metadata=l.ForwardMsgMetadata.decode(e,e.uint32());break;case 4:r.newSession=l.NewSession.decode(e,e.uint32());break;case 5:r.delta=l.Delta.decode(e,e.uint32());break;case 12:r.pageInfoChanged=l.PageInfo.decode(e,e.uint32());break;case 13:r.pageConfigChanged=l.PageConfig.decode(e,e.uint32());break;case 6:r.scriptFinished=e.int32();break;case 14:r.gitInfoChanged=l.GitInfo.decode(e,e.uint32());break;case 18:r.pageProfile=l.PageProfile.decode(e,e.uint32());break;case 9:r.sessionStateChanged=l.SessionState.decode(e,e.uint32());break;case 10:r.sessionEvent=l.SessionEvent.decode(e,e.uint32());break;case 15:r.pageNotFound=l.PageNotFound.decode(e,e.uint32());break;case 16:r.pagesChanged=l.PagesChanged.decode(e,e.uint32());break;case 11:r.refHash=e.string();break;case 17:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.hash&&e.hasOwnProperty("hash")&&!a.isString(e.hash))return"hash: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")){let t=l.ForwardMsgMetadata.verify(e.metadata);if(t)return"metadata."+t}if(null!=e.newSession&&e.hasOwnProperty("newSession")){t.type=1;{let t=l.NewSession.verify(e.newSession);if(t)return"newSession."+t}}if(null!=e.delta&&e.hasOwnProperty("delta")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Delta.verify(e.delta);if(t)return"delta."+t}}if(null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageInfo.verify(e.pageInfoChanged);if(t)return"pageInfoChanged."+t}}if(null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageConfig.verify(e.pageConfigChanged);if(t)return"pageConfigChanged."+t}}if(null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")){if(1===t.type)return"type: multiple values";switch(t.type=1,e.scriptFinished){default:return"scriptFinished: enum value expected";case 0:case 1:case 2:}}if(null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.GitInfo.verify(e.gitInfoChanged);if(t)return"gitInfoChanged."+t}}if(null!=e.pageProfile&&e.hasOwnProperty("pageProfile")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageProfile.verify(e.pageProfile);if(t)return"pageProfile."+t}}if(null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.SessionState.verify(e.sessionStateChanged);if(t)return"sessionStateChanged."+t}}if(null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.SessionEvent.verify(e.sessionEvent);if(t)return"sessionEvent."+t}}if(null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageNotFound.verify(e.pageNotFound);if(t)return"pageNotFound."+t}}if(null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PagesChanged.verify(e.pagesChanged);if(t)return"pagesChanged."+t}}if(null!=e.refHash&&e.hasOwnProperty("refHash")){if(1===t.type)return"type: multiple values";if(t.type=1,!a.isString(e.refHash))return"refHash: string expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!a.isString(e.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.ForwardMsg)return e;let t=new l.ForwardMsg;if(null!=e.hash&&(t.hash=String(e.hash)),null!=e.metadata){if("object"!==typeof e.metadata)throw TypeError(".ForwardMsg.metadata: object expected");t.metadata=l.ForwardMsgMetadata.fromObject(e.metadata)}if(null!=e.newSession){if("object"!==typeof e.newSession)throw TypeError(".ForwardMsg.newSession: object expected");t.newSession=l.NewSession.fromObject(e.newSession)}if(null!=e.delta){if("object"!==typeof e.delta)throw TypeError(".ForwardMsg.delta: object expected");t.delta=l.Delta.fromObject(e.delta)}if(null!=e.pageInfoChanged){if("object"!==typeof e.pageInfoChanged)throw TypeError(".ForwardMsg.pageInfoChanged: object expected");t.pageInfoChanged=l.PageInfo.fromObject(e.pageInfoChanged)}if(null!=e.pageConfigChanged){if("object"!==typeof e.pageConfigChanged)throw TypeError(".ForwardMsg.pageConfigChanged: object expected");t.pageConfigChanged=l.PageConfig.fromObject(e.pageConfigChanged)}switch(e.scriptFinished){case"FINISHED_SUCCESSFULLY":case 0:t.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:t.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:t.scriptFinished=2}if(null!=e.gitInfoChanged){if("object"!==typeof e.gitInfoChanged)throw TypeError(".ForwardMsg.gitInfoChanged: object expected");t.gitInfoChanged=l.GitInfo.fromObject(e.gitInfoChanged)}if(null!=e.pageProfile){if("object"!==typeof e.pageProfile)throw TypeError(".ForwardMsg.pageProfile: object expected");t.pageProfile=l.PageProfile.fromObject(e.pageProfile)}if(null!=e.sessionStateChanged){if("object"!==typeof e.sessionStateChanged)throw TypeError(".ForwardMsg.sessionStateChanged: object expected");t.sessionStateChanged=l.SessionState.fromObject(e.sessionStateChanged)}if(null!=e.sessionEvent){if("object"!==typeof e.sessionEvent)throw TypeError(".ForwardMsg.sessionEvent: object expected");t.sessionEvent=l.SessionEvent.fromObject(e.sessionEvent)}if(null!=e.pageNotFound){if("object"!==typeof e.pageNotFound)throw TypeError(".ForwardMsg.pageNotFound: object expected");t.pageNotFound=l.PageNotFound.fromObject(e.pageNotFound)}if(null!=e.pagesChanged){if("object"!==typeof e.pagesChanged)throw TypeError(".ForwardMsg.pagesChanged: object expected");t.pagesChanged=l.PagesChanged.fromObject(e.pagesChanged)}return null!=e.refHash&&(t.refHash=String(e.refHash)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.hash="",n.metadata=null,n.debugLastBackmsgId=""),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=e.hash),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=l.ForwardMsgMetadata.toObject(e.metadata,t)),null!=e.newSession&&e.hasOwnProperty("newSession")&&(n.newSession=l.NewSession.toObject(e.newSession,t),t.oneofs&&(n.type="newSession")),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=l.Delta.toObject(e.delta,t),t.oneofs&&(n.type="delta")),null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")&&(n.scriptFinished=t.enums===String?l.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,t.oneofs&&(n.type="scriptFinished")),null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")&&(n.sessionStateChanged=l.SessionState.toObject(e.sessionStateChanged,t),t.oneofs&&(n.type="sessionStateChanged")),null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")&&(n.sessionEvent=l.SessionEvent.toObject(e.sessionEvent,t),t.oneofs&&(n.type="sessionEvent")),null!=e.refHash&&e.hasOwnProperty("refHash")&&(n.refHash=e.refHash,t.oneofs&&(n.type="refHash")),null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")&&(n.pageInfoChanged=l.PageInfo.toObject(e.pageInfoChanged,t),t.oneofs&&(n.type="pageInfoChanged")),null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")&&(n.pageConfigChanged=l.PageConfig.toObject(e.pageConfigChanged,t),t.oneofs&&(n.type="pageConfigChanged")),null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")&&(n.gitInfoChanged=l.GitInfo.toObject(e.gitInfoChanged,t),t.oneofs&&(n.type="gitInfoChanged")),null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")&&(n.pageNotFound=l.PageNotFound.toObject(e.pageNotFound,t),t.oneofs&&(n.type="pageNotFound")),null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")&&(n.pagesChanged=l.PagesChanged.toObject(e.pagesChanged,t),t.oneofs&&(n.type="pagesChanged")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),null!=e.pageProfile&&e.hasOwnProperty("pageProfile")&&(n.pageProfile=l.PageProfile.toObject(e.pageProfile,t),t.oneofs&&(n.type="pageProfile")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.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})()),O=l.ForwardMsgMetadata=(()=>{function e(e){if(this.deltaPath=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cacheable=!1,e.prototype.deltaPath=a.emptyArray,e.prototype.elementDimensionSpec=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cacheable&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),null!=e.deltaPath&&e.deltaPath.length){t.uint32(18).fork();for(let n=0;n<e.deltaPath.length;++n)t.uint32(e.deltaPath[n]);t.ldelim()}return null!=e.elementDimensionSpec&&Object.hasOwnProperty.call(e,"elementDimensionSpec")&&l.ElementDimensionSpec.encode(e.elementDimensionSpec,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsgMetadata;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cacheable=e.bool();break;case 2:if(r.deltaPath&&r.deltaPath.length||(r.deltaPath=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.deltaPath.push(e.uint32())}else r.deltaPath.push(e.uint32());break;case 3:r.elementDimensionSpec=l.ElementDimensionSpec.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cacheable&&e.hasOwnProperty("cacheable")&&"boolean"!==typeof e.cacheable)return"cacheable: boolean expected";if(null!=e.deltaPath&&e.hasOwnProperty("deltaPath")){if(!Array.isArray(e.deltaPath))return"deltaPath: array expected";for(let t=0;t<e.deltaPath.length;++t)if(!a.isInteger(e.deltaPath[t]))return"deltaPath: integer[] expected"}if(null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")){let t=l.ElementDimensionSpec.verify(e.elementDimensionSpec);if(t)return"elementDimensionSpec."+t}return null},e.fromObject=function(e){if(e instanceof l.ForwardMsgMetadata)return e;let t=new l.ForwardMsgMetadata;if(null!=e.cacheable&&(t.cacheable=Boolean(e.cacheable)),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let n=0;n<e.deltaPath.length;++n)t.deltaPath[n]=e.deltaPath[n]>>>0}if(null!=e.elementDimensionSpec){if("object"!==typeof e.elementDimensionSpec)throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");t.elementDimensionSpec=l.ElementDimensionSpec.fromObject(e.elementDimensionSpec)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.deltaPath=[]),t.defaults&&(n.cacheable=!1,n.elementDimensionSpec=null),null!=e.cacheable&&e.hasOwnProperty("cacheable")&&(n.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){n.deltaPath=[];for(let t=0;t<e.deltaPath.length;++t)n.deltaPath[t]=e.deltaPath[t]}return null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")&&(n.elementDimensionSpec=l.ElementDimensionSpec.toObject(e.elementDimensionSpec,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),w=(l.ElementDimensionSpec=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.width=0,e.prototype.height=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(8).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ElementDimensionSpec;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.width=e.uint32();break;case 2:r.height=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null},e.fromObject=function(e){if(e instanceof l.ElementDimensionSpec)return e;let t=new l.ElementDimensionSpec;return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.width=0,n.height=0),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.GitInfo=(()=>{function e(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.repository="",e.prototype.branch="",e.prototype.module="",e.prototype.untrackedFiles=a.emptyArray,e.prototype.uncommittedFiles=a.emptyArray,e.prototype.state=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.repository&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),null!=e.branch&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),null!=e.untrackedFiles&&e.untrackedFiles.length)for(let n=0;n<e.untrackedFiles.length;++n)t.uint32(34).string(e.untrackedFiles[n]);if(null!=e.uncommittedFiles&&e.uncommittedFiles.length)for(let n=0;n<e.uncommittedFiles.length;++n)t.uint32(42).string(e.uncommittedFiles[n]);return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.GitInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.repository=e.string();break;case 2:r.branch=e.string();break;case 3:r.module=e.string();break;case 4:r.untrackedFiles&&r.untrackedFiles.length||(r.untrackedFiles=[]),r.untrackedFiles.push(e.string());break;case 5:r.uncommittedFiles&&r.uncommittedFiles.length||(r.uncommittedFiles=[]),r.uncommittedFiles.push(e.string());break;case 6:r.state=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.repository&&e.hasOwnProperty("repository")&&!a.isString(e.repository))return"repository: string expected";if(null!=e.branch&&e.hasOwnProperty("branch")&&!a.isString(e.branch))return"branch: string expected";if(null!=e.module&&e.hasOwnProperty("module")&&!a.isString(e.module))return"module: string expected";if(null!=e.untrackedFiles&&e.hasOwnProperty("untrackedFiles")){if(!Array.isArray(e.untrackedFiles))return"untrackedFiles: array expected";for(let t=0;t<e.untrackedFiles.length;++t)if(!a.isString(e.untrackedFiles[t]))return"untrackedFiles: string[] expected"}if(null!=e.uncommittedFiles&&e.hasOwnProperty("uncommittedFiles")){if(!Array.isArray(e.uncommittedFiles))return"uncommittedFiles: array expected";for(let t=0;t<e.uncommittedFiles.length;++t)if(!a.isString(e.uncommittedFiles[t]))return"uncommittedFiles: string[] expected"}if(null!=e.state&&e.hasOwnProperty("state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.GitInfo)return e;let t=new l.GitInfo;if(null!=e.repository&&(t.repository=String(e.repository)),null!=e.branch&&(t.branch=String(e.branch)),null!=e.module&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let n=0;n<e.untrackedFiles.length;++n)t.untrackedFiles[n]=String(e.untrackedFiles[n])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let n=0;n<e.uncommittedFiles.length;++n)t.uncommittedFiles[n]=String(e.uncommittedFiles[n])}switch(e.state){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}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.untrackedFiles=[],n.uncommittedFiles=[]),t.defaults&&(n.repository="",n.branch="",n.module="",n.state=t.enums===String?"DEFAULT":0),null!=e.repository&&e.hasOwnProperty("repository")&&(n.repository=e.repository),null!=e.branch&&e.hasOwnProperty("branch")&&(n.branch=e.branch),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){n.untrackedFiles=[];for(let t=0;t<e.untrackedFiles.length;++t)n.untrackedFiles[t]=e.untrackedFiles[t]}if(e.uncommittedFiles&&e.uncommittedFiles.length){n.uncommittedFiles=[];for(let t=0;t<e.uncommittedFiles.length;++t)n.uncommittedFiles[t]=e.uncommittedFiles[t]}return null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?l.GitInfo.GitStates[e.state]:e.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.GitStates=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="HEAD_DETACHED"]=1,t[e[2]="AHEAD_OF_REMOTE"]=2,t}(),e})()),j=(l.GraphVizChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.GraphVizChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 4:r.useContainerWidth=e.bool();break;case 5:r.elementId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec)?"spec: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!a.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.GraphVizChart)return e;let t=new l.GraphVizChart;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.spec="",n.useContainerWidth=!1,n.elementId=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Heading=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag="",e.prototype.anchor="",e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.tag&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),null!=e.anchor&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Heading;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.tag=e.string();break;case 2:r.anchor=e.string();break;case 3:r.body=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.tag&&e.hasOwnProperty("tag")&&!a.isString(e.tag)?"tag: string expected":null!=e.anchor&&e.hasOwnProperty("anchor")&&!a.isString(e.anchor)?"anchor: string expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Heading)return e;let t=new l.Heading;return null!=e.tag&&(t.tag=String(e.tag)),null!=e.anchor&&(t.anchor=String(e.anchor)),null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.tag="",n.anchor="",n.body=""),null!=e.tag&&e.hasOwnProperty("tag")&&(n.tag=e.tag),null!=e.anchor&&e.hasOwnProperty("anchor")&&(n.anchor=e.anchor),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.IFrame=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.src=null,e.prototype.srcdoc=null,e.prototype.width=0,e.prototype.hasWidth=!1,e.prototype.height=0,e.prototype.scrolling=!1,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["src","srcdoc"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.src&&Object.hasOwnProperty.call(e,"src")&&t.uint32(10).string(e.src),null!=e.srcdoc&&Object.hasOwnProperty.call(e,"srcdoc")&&t.uint32(18).string(e.srcdoc),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(29).float(e.width),null!=e.hasWidth&&Object.hasOwnProperty.call(e,"hasWidth")&&t.uint32(32).bool(e.hasWidth),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(45).float(e.height),null!=e.scrolling&&Object.hasOwnProperty.call(e,"scrolling")&&t.uint32(56).bool(e.scrolling),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.IFrame;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.src=e.string();break;case 2:r.srcdoc=e.string();break;case 3:r.width=e.float();break;case 4:r.hasWidth=e.bool();break;case 5:r.height=e.float();break;case 7:r.scrolling=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.src&&e.hasOwnProperty("src")&&(t.type=1,!a.isString(e.src)))return"src: string expected";if(null!=e.srcdoc&&e.hasOwnProperty("srcdoc")){if(1===t.type)return"type: multiple values";if(t.type=1,!a.isString(e.srcdoc))return"srcdoc: string expected"}return null!=e.width&&e.hasOwnProperty("width")&&"number"!==typeof e.width?"width: number expected":null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&"boolean"!==typeof e.hasWidth?"hasWidth: boolean expected":null!=e.height&&e.hasOwnProperty("height")&&"number"!==typeof e.height?"height: number expected":null!=e.scrolling&&e.hasOwnProperty("scrolling")&&"boolean"!==typeof e.scrolling?"scrolling: boolean expected":null},e.fromObject=function(e){if(e instanceof l.IFrame)return e;let t=new l.IFrame;return null!=e.src&&(t.src=String(e.src)),null!=e.srcdoc&&(t.srcdoc=String(e.srcdoc)),null!=e.width&&(t.width=Number(e.width)),null!=e.hasWidth&&(t.hasWidth=Boolean(e.hasWidth)),null!=e.height&&(t.height=Number(e.height)),null!=e.scrolling&&(t.scrolling=Boolean(e.scrolling)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.width=0,n.hasWidth=!1,n.height=0,n.scrolling=!1),null!=e.src&&e.hasOwnProperty("src")&&(n.src=e.src,t.oneofs&&(n.type="src")),null!=e.srcdoc&&e.hasOwnProperty("srcdoc")&&(n.srcdoc=e.srcdoc,t.oneofs&&(n.type="srcdoc")),null!=e.width&&e.hasOwnProperty("width")&&(n.width=t.json&&!isFinite(e.width)?String(e.width):e.width),null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&(n.hasWidth=e.hasWidth),null!=e.height&&e.hasOwnProperty("height")&&(n.height=t.json&&!isFinite(e.height)?String(e.height):e.height),null!=e.scrolling&&e.hasOwnProperty("scrolling")&&(n.scrolling=e.scrolling),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Image=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.markup="",e.prototype.url="",e.prototype.caption="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),null!=e.markup&&Object.hasOwnProperty.call(e,"markup")&&t.uint32(34).string(e.markup),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Image;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 4:r.markup=e.string();break;case 3:r.url=e.string();break;case 2:r.caption=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.markup&&e.hasOwnProperty("markup")&&!a.isString(e.markup)?"markup: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null},e.fromObject=function(e){if(e instanceof l.Image)return e;let t=new l.Image;return null!=e.markup&&(t.markup=String(e.markup)),null!=e.url&&(t.url=String(e.url)),null!=e.caption&&(t.caption=String(e.caption)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.caption="",n.url="",n.markup=""),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.markup&&e.hasOwnProperty("markup")&&(n.markup=e.markup),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),S=(l.ImageList=(()=>{function e(e){if(this.imgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imgs=a.emptyArray,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.imgs&&e.imgs.length)for(let n=0;n<e.imgs.length;++n)l.Image.encode(e.imgs[n],t.uint32(10).fork()).ldelim();return null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(16).int32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ImageList;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.imgs&&r.imgs.length||(r.imgs=[]),r.imgs.push(l.Image.decode(e,e.uint32()));break;case 2:r.width=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(!Array.isArray(e.imgs))return"imgs: array expected";for(let t=0;t<e.imgs.length;++t){let n=l.Image.verify(e.imgs[t]);if(n)return"imgs."+n}}return null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ImageList)return e;let t=new l.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let n=0;n<e.imgs.length;++n){if("object"!==typeof e.imgs[n])throw TypeError(".ImageList.imgs: object expected");t.imgs[n]=l.Image.fromObject(e.imgs[n])}}return null!=e.width&&(t.width=0|e.width),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.imgs=[]),t.defaults&&(n.width=0),e.imgs&&e.imgs.length){n.imgs=[];for(let r=0;r<e.imgs.length;++r)n.imgs[r]=l.Image.toObject(e.imgs[r],t)}return null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Json=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Json;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Json)return e;let t=new l.Json;return null!=e.body&&(t.body=String(e.body)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.expanded=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.LabelVisibilityMessage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.LabelVisibilityMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value"))switch(e.value){default:return"value: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.LabelVisibilityMessage)return e;let t=new l.LabelVisibilityMessage;switch(e.value){case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.value=t.enums===String?"VISIBLE":0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.enums===String?l.LabelVisibilityMessage.LabelVisibilityOptions[e.value]:e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.LabelVisibilityOptions=function(){const e={},t=Object.create(e);return t[e[0]="VISIBLE"]=0,t[e[1]="HIDDEN"]=1,t[e[2]="COLLAPSED"]=2,t}(),e})()),x=(l.Markdown=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.allowHtml=!1,e.prototype.isCaption=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.allowHtml&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),null!=e.isCaption&&Object.hasOwnProperty.call(e,"isCaption")&&t.uint32(24).bool(e.isCaption),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Markdown;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.allowHtml=e.bool();break;case 3:r.isCaption=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&"boolean"!==typeof e.allowHtml?"allowHtml: boolean expected":null!=e.isCaption&&e.hasOwnProperty("isCaption")&&"boolean"!==typeof e.isCaption?"isCaption: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Markdown)return e;let t=new l.Markdown;return null!=e.body&&(t.body=String(e.body)),null!=e.allowHtml&&(t.allowHtml=Boolean(e.allowHtml)),null!=e.isCaption&&(t.isCaption=Boolean(e.isCaption)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.allowHtml=!1,n.isCaption=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&(n.allowHtml=e.allowHtml),null!=e.isCaption&&e.hasOwnProperty("isCaption")&&(n.isCaption=e.isCaption),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Metric=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.body="",e.prototype.delta="",e.prototype.direction=0,e.prototype.color=0,e.prototype.help="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),null!=e.direction&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Metric;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;case 2:r.body=e.string();break;case 3:r.delta=e.string();break;case 4:r.direction=e.int32();break;case 5:r.color=e.int32();break;case 6:r.help=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body))return"body: string expected";if(null!=e.delta&&e.hasOwnProperty("delta")&&!a.isString(e.delta))return"delta: string expected";if(null!=e.direction&&e.hasOwnProperty("direction"))switch(e.direction){default:return"direction: enum value expected";case 0:case 1:case 2:}if(null!=e.color&&e.hasOwnProperty("color"))switch(e.color){default:return"color: enum value expected";case 0:case 1:case 2:}return null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null},e.fromObject=function(e){if(e instanceof l.Metric)return e;let t=new l.Metric;switch(null!=e.label&&(t.label=String(e.label)),null!=e.body&&(t.body=String(e.body)),null!=e.delta&&(t.delta=String(e.delta)),e.direction){case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2}switch(e.color){case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2}return null!=e.help&&(t.help=String(e.help)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label="",n.body="",n.delta="",n.direction=t.enums===String?"DOWN":0,n.color=t.enums===String?"RED":0,n.help=""),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=e.delta),null!=e.direction&&e.hasOwnProperty("direction")&&(n.direction=t.enums===String?l.Metric.MetricDirection[e.direction]:e.direction),null!=e.color&&e.hasOwnProperty("color")&&(n.color=t.enums===String?l.Metric.MetricColor[e.color]:e.color),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MetricColor=function(){const e={},t=Object.create(e);return t[e[0]="RED"]=0,t[e[1]="GREEN"]=1,t[e[2]="GRAY"]=2,t}(),e.MetricDirection=function(){const e={},t=Object.create(e);return t[e[0]="DOWN"]=0,t[e[1]="UP"]=1,t[e[2]="NONE"]=2,t}(),e})()),v=(l.MultiSelect=(()=>{function e(e){if(this.default=[],this.options=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=a.emptyArray,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.int32(e.default[n]);t.ldelim()}if(null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&e.value.length){t.uint32(58).fork();for(let n=0;n<e.value.length;++n)t.int32(e.value[n]);t.ldelim()}return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.MultiSelect;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:if(r.default&&r.default.length||(r.default=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.default.push(e.int32())}else r.default.push(e.int32());break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:if(r.value&&r.value.length||(r.value=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.value.push(e.int32())}else r.value.push(e.int32());break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if(!a.isInteger(e.default[t]))return"default: integer[] expected"}if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if(!a.isInteger(e.value[t]))return"value: integer[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.MultiSelect)return e;let t=new l.MultiSelect;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".MultiSelect.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=0|e.default[n]}if(e.options){if(!Array.isArray(e.options))throw TypeError(".MultiSelect.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".MultiSelect.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=0|e.value[n]}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".MultiSelect.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.options=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}if(null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.NamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NamedDataSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DataFrame.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.NamedDataSet)return e;let t=new l.NamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".NamedDataSet.data: object expected");t.data=l.DataFrame.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),k=(l.NewSession=(()=>{function e(e){if(this.appPages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.initialize=null,e.prototype.scriptRunId="",e.prototype.name="",e.prototype.mainScriptPath="",e.prototype.config=null,e.prototype.customTheme=null,e.prototype.appPages=a.emptyArray,e.prototype.pageScriptHash="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.initialize&&Object.hasOwnProperty.call(e,"initialize")&&l.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),null!=e.scriptRunId&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.mainScriptPath&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&l.Config.encode(e.config,t.uint32(50).fork()).ldelim(),null!=e.customTheme&&Object.hasOwnProperty.call(e,"customTheme")&&l.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),null!=e.appPages&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(66).fork()).ldelim();return null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NewSession;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.initialize=l.Initialize.decode(e,e.uint32());break;case 2:r.scriptRunId=e.string();break;case 3:r.name=e.string();break;case 4:r.mainScriptPath=e.string();break;case 6:r.config=l.Config.decode(e,e.uint32());break;case 7:r.customTheme=l.CustomThemeConfig.decode(e,e.uint32());break;case 8:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;case 9:r.pageScriptHash=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.initialize&&e.hasOwnProperty("initialize")){let t=l.Initialize.verify(e.initialize);if(t)return"initialize."+t}if(null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&!a.isString(e.scriptRunId))return"scriptRunId: string expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&!a.isString(e.mainScriptPath))return"mainScriptPath: string expected";if(null!=e.config&&e.hasOwnProperty("config")){let t=l.Config.verify(e.config);if(t)return"config."+t}if(null!=e.customTheme&&e.hasOwnProperty("customTheme")){let t=l.CustomThemeConfig.verify(e.customTheme);if(t)return"customTheme."+t}if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(let t=0;t<e.appPages.length;++t){let n=l.AppPage.verify(e.appPages[t]);if(n)return"appPages."+n}}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null},e.fromObject=function(e){if(e instanceof l.NewSession)return e;let t=new l.NewSession;if(null!=e.initialize){if("object"!==typeof e.initialize)throw TypeError(".NewSession.initialize: object expected");t.initialize=l.Initialize.fromObject(e.initialize)}if(null!=e.scriptRunId&&(t.scriptRunId=String(e.scriptRunId)),null!=e.name&&(t.name=String(e.name)),null!=e.mainScriptPath&&(t.mainScriptPath=String(e.mainScriptPath)),null!=e.config){if("object"!==typeof e.config)throw TypeError(".NewSession.config: object expected");t.config=l.Config.fromObject(e.config)}if(null!=e.customTheme){if("object"!==typeof e.customTheme)throw TypeError(".NewSession.customTheme: object expected");t.customTheme=l.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".NewSession.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.appPages=[]),t.defaults&&(n.initialize=null,n.scriptRunId="",n.name="",n.mainScriptPath="",n.config=null,n.customTheme=null,n.pageScriptHash=""),null!=e.initialize&&e.hasOwnProperty("initialize")&&(n.initialize=l.Initialize.toObject(e.initialize,t)),null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&(n.scriptRunId=e.scriptRunId),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&(n.mainScriptPath=e.mainScriptPath),null!=e.config&&e.hasOwnProperty("config")&&(n.config=l.Config.toObject(e.config,t)),null!=e.customTheme&&e.hasOwnProperty("customTheme")&&(n.customTheme=l.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){n.appPages=[];for(let r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Initialize=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userInfo=null,e.prototype.environmentInfo=null,e.prototype.sessionState=null,e.prototype.commandLine="",e.prototype.sessionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.userInfo&&Object.hasOwnProperty.call(e,"userInfo")&&l.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),null!=e.environmentInfo&&Object.hasOwnProperty.call(e,"environmentInfo")&&l.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),null!=e.sessionState&&Object.hasOwnProperty.call(e,"sessionState")&&l.SessionState.encode(e.sessionState,t.uint32(34).fork()).ldelim(),null!=e.commandLine&&Object.hasOwnProperty.call(e,"commandLine")&&t.uint32(42).string(e.commandLine),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Initialize;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.userInfo=l.UserInfo.decode(e,e.uint32());break;case 3:r.environmentInfo=l.EnvironmentInfo.decode(e,e.uint32());break;case 4:r.sessionState=l.SessionState.decode(e,e.uint32());break;case 5:r.commandLine=e.string();break;case 6:r.sessionId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.userInfo&&e.hasOwnProperty("userInfo")){let t=l.UserInfo.verify(e.userInfo);if(t)return"userInfo."+t}if(null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")){let t=l.EnvironmentInfo.verify(e.environmentInfo);if(t)return"environmentInfo."+t}if(null!=e.sessionState&&e.hasOwnProperty("sessionState")){let t=l.SessionState.verify(e.sessionState);if(t)return"sessionState."+t}return null!=e.commandLine&&e.hasOwnProperty("commandLine")&&!a.isString(e.commandLine)?"commandLine: string expected":null!=e.sessionId&&e.hasOwnProperty("sessionId")&&!a.isString(e.sessionId)?"sessionId: string expected":null},e.fromObject=function(e){if(e instanceof l.Initialize)return e;let t=new l.Initialize;if(null!=e.userInfo){if("object"!==typeof e.userInfo)throw TypeError(".Initialize.userInfo: object expected");t.userInfo=l.UserInfo.fromObject(e.userInfo)}if(null!=e.environmentInfo){if("object"!==typeof e.environmentInfo)throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=l.EnvironmentInfo.fromObject(e.environmentInfo)}if(null!=e.sessionState){if("object"!==typeof e.sessionState)throw TypeError(".Initialize.sessionState: object expected");t.sessionState=l.SessionState.fromObject(e.sessionState)}return null!=e.commandLine&&(t.commandLine=String(e.commandLine)),null!=e.sessionId&&(t.sessionId=String(e.sessionId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.userInfo=null,n.environmentInfo=null,n.sessionState=null,n.commandLine="",n.sessionId=""),null!=e.userInfo&&e.hasOwnProperty("userInfo")&&(n.userInfo=l.UserInfo.toObject(e.userInfo,t)),null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")&&(n.environmentInfo=l.EnvironmentInfo.toObject(e.environmentInfo,t)),null!=e.sessionState&&e.hasOwnProperty("sessionState")&&(n.sessionState=l.SessionState.toObject(e.sessionState,t)),null!=e.commandLine&&e.hasOwnProperty("commandLine")&&(n.commandLine=e.commandLine),null!=e.sessionId&&e.hasOwnProperty("sessionId")&&(n.sessionId=e.sessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Config=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.mapboxToken="",e.prototype.allowRunOnSave=!1,e.prototype.hideTopBar=!1,e.prototype.hideSidebarNav=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.gatherUsageStats&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),null!=e.maxCachedMessageAge&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),null!=e.mapboxToken&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(34).string(e.mapboxToken),null!=e.allowRunOnSave&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),null!=e.hideTopBar&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),null!=e.hideSidebarNav&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Config;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:r.gatherUsageStats=e.bool();break;case 3:r.maxCachedMessageAge=e.int32();break;case 4:r.mapboxToken=e.string();break;case 5:r.allowRunOnSave=e.bool();break;case 6:r.hideTopBar=e.bool();break;case 7:r.hideSidebarNav=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&"boolean"!==typeof e.gatherUsageStats?"gatherUsageStats: boolean expected":null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&!a.isInteger(e.maxCachedMessageAge)?"maxCachedMessageAge: integer expected":null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&!a.isString(e.mapboxToken)?"mapboxToken: string expected":null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&"boolean"!==typeof e.allowRunOnSave?"allowRunOnSave: boolean expected":null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&"boolean"!==typeof e.hideTopBar?"hideTopBar: boolean expected":null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&"boolean"!==typeof e.hideSidebarNav?"hideSidebarNav: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Config)return e;let t=new l.Config;return null!=e.gatherUsageStats&&(t.gatherUsageStats=Boolean(e.gatherUsageStats)),null!=e.maxCachedMessageAge&&(t.maxCachedMessageAge=0|e.maxCachedMessageAge),null!=e.mapboxToken&&(t.mapboxToken=String(e.mapboxToken)),null!=e.allowRunOnSave&&(t.allowRunOnSave=Boolean(e.allowRunOnSave)),null!=e.hideTopBar&&(t.hideTopBar=Boolean(e.hideTopBar)),null!=e.hideSidebarNav&&(t.hideSidebarNav=Boolean(e.hideSidebarNav)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.mapboxToken="",n.allowRunOnSave=!1,n.hideTopBar=!1,n.hideSidebarNav=!1),null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&(n.gatherUsageStats=e.gatherUsageStats),null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&(n.maxCachedMessageAge=e.maxCachedMessageAge),null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&(n.mapboxToken=e.mapboxToken),null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&(n.allowRunOnSave=e.allowRunOnSave),null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&(n.hideTopBar=e.hideTopBar),null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&(n.hideSidebarNav=e.hideSidebarNav),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CustomThemeConfig=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.primaryColor="",e.prototype.secondaryBackgroundColor="",e.prototype.backgroundColor="",e.prototype.textColor="",e.prototype.font=0,e.prototype.base=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.primaryColor&&Object.hasOwnProperty.call(e,"primaryColor")&&t.uint32(10).string(e.primaryColor),null!=e.secondaryBackgroundColor&&Object.hasOwnProperty.call(e,"secondaryBackgroundColor")&&t.uint32(18).string(e.secondaryBackgroundColor),null!=e.backgroundColor&&Object.hasOwnProperty.call(e,"backgroundColor")&&t.uint32(26).string(e.backgroundColor),null!=e.textColor&&Object.hasOwnProperty.call(e,"textColor")&&t.uint32(34).string(e.textColor),null!=e.font&&Object.hasOwnProperty.call(e,"font")&&t.uint32(40).int32(e.font),null!=e.base&&Object.hasOwnProperty.call(e,"base")&&t.uint32(48).int32(e.base),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CustomThemeConfig;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.primaryColor=e.string();break;case 2:r.secondaryBackgroundColor=e.string();break;case 3:r.backgroundColor=e.string();break;case 4:r.textColor=e.string();break;case 5:r.font=e.int32();break;case 6:r.base=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&!a.isString(e.primaryColor))return"primaryColor: string expected";if(null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&!a.isString(e.secondaryBackgroundColor))return"secondaryBackgroundColor: string expected";if(null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&!a.isString(e.backgroundColor))return"backgroundColor: string expected";if(null!=e.textColor&&e.hasOwnProperty("textColor")&&!a.isString(e.textColor))return"textColor: string expected";if(null!=e.font&&e.hasOwnProperty("font"))switch(e.font){default:return"font: enum value expected";case 0:case 1:case 2:}if(null!=e.base&&e.hasOwnProperty("base"))switch(e.base){default:return"base: enum value expected";case 0:case 1:}return null},e.fromObject=function(e){if(e instanceof l.CustomThemeConfig)return e;let t=new l.CustomThemeConfig;switch(null!=e.primaryColor&&(t.primaryColor=String(e.primaryColor)),null!=e.secondaryBackgroundColor&&(t.secondaryBackgroundColor=String(e.secondaryBackgroundColor)),null!=e.backgroundColor&&(t.backgroundColor=String(e.backgroundColor)),null!=e.textColor&&(t.textColor=String(e.textColor)),e.font){case"SANS_SERIF":case 0:t.font=0;break;case"SERIF":case 1:t.font=1;break;case"MONOSPACE":case 2:t.font=2}switch(e.base){case"LIGHT":case 0:t.base=0;break;case"DARK":case 1:t.base=1}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.primaryColor="",n.secondaryBackgroundColor="",n.backgroundColor="",n.textColor="",n.font=t.enums===String?"SANS_SERIF":0,n.base=t.enums===String?"LIGHT":0),null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&(n.primaryColor=e.primaryColor),null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&(n.secondaryBackgroundColor=e.secondaryBackgroundColor),null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&(n.backgroundColor=e.backgroundColor),null!=e.textColor&&e.hasOwnProperty("textColor")&&(n.textColor=e.textColor),null!=e.font&&e.hasOwnProperty("font")&&(n.font=t.enums===String?l.CustomThemeConfig.FontFamily[e.font]:e.font),null!=e.base&&e.hasOwnProperty("base")&&(n.base=t.enums===String?l.CustomThemeConfig.BaseTheme[e.base]:e.base),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.BaseTheme=function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t}(),e.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}(),e})()),P=(l.UserInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.installationId="",e.prototype.installationIdV3="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.installationId&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(18).string(e.email),null!=e.installationIdV3&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UserInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.installationId=e.string();break;case 5:r.installationIdV3=e.string();break;case 2:r.email=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.installationId&&e.hasOwnProperty("installationId")&&!a.isString(e.installationId)?"installationId: string expected":null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&!a.isString(e.installationIdV3)?"installationIdV3: string expected":null!=e.email&&e.hasOwnProperty("email")&&!a.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof l.UserInfo)return e;let t=new l.UserInfo;return null!=e.installationId&&(t.installationId=String(e.installationId)),null!=e.installationIdV3&&(t.installationIdV3=String(e.installationIdV3)),null!=e.email&&(t.email=String(e.email)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.installationId="",n.email="",n.installationIdV3=""),null!=e.installationId&&e.hasOwnProperty("installationId")&&(n.installationId=e.installationId),null!=e.email&&e.hasOwnProperty("email")&&(n.email=e.email),null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&(n.installationIdV3=e.installationIdV3),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.EnvironmentInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.streamlitVersion="",e.prototype.pythonVersion="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.streamlitVersion&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),null!=e.pythonVersion&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.EnvironmentInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.streamlitVersion=e.string();break;case 2:r.pythonVersion=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&!a.isString(e.streamlitVersion)?"streamlitVersion: string expected":null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&!a.isString(e.pythonVersion)?"pythonVersion: string expected":null},e.fromObject=function(e){if(e instanceof l.EnvironmentInfo)return e;let t=new l.EnvironmentInfo;return null!=e.streamlitVersion&&(t.streamlitVersion=String(e.streamlitVersion)),null!=e.pythonVersion&&(t.pythonVersion=String(e.pythonVersion)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.streamlitVersion="",n.pythonVersion=""),null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&(n.streamlitVersion=e.streamlitVersion),null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&(n.pythonVersion=e.pythonVersion),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.NumberInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.formId="",e.prototype.format="",e.prototype.hasMin=!1,e.prototype.hasMax=!1,e.prototype.dataType=0,e.prototype.default=0,e.prototype.step=0,e.prototype.min=0,e.prototype.max=0,e.prototype.help="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(26).string(e.formId),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(66).string(e.format),null!=e.hasMin&&Object.hasOwnProperty.call(e,"hasMin")&&t.uint32(88).bool(e.hasMin),null!=e.hasMax&&Object.hasOwnProperty.call(e,"hasMax")&&t.uint32(96).bool(e.hasMax),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(104).int32(e.dataType),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(113).double(e.default),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(121).double(e.step),null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(129).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(137).double(e.max),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(146).string(e.help),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(153).double(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(160).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(168).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(178).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NumberInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.formId=e.string();break;case 8:r.format=e.string();break;case 11:r.hasMin=e.bool();break;case 12:r.hasMax=e.bool();break;case 13:r.dataType=e.int32();break;case 14:r.default=e.double();break;case 15:r.step=e.double();break;case 16:r.min=e.double();break;case 17:r.max=e.double();break;case 18:r.help=e.string();break;case 19:r.value=e.double();break;case 20:r.setValue=e.bool();break;case 21:r.disabled=e.bool();break;case 22:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!a.isString(e.format))return"format: string expected";if(null!=e.hasMin&&e.hasOwnProperty("hasMin")&&"boolean"!==typeof e.hasMin)return"hasMin: boolean expected";if(null!=e.hasMax&&e.hasOwnProperty("hasMax")&&"boolean"!==typeof e.hasMax)return"hasMax: boolean expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:}if(null!=e.default&&e.hasOwnProperty("default")&&"number"!==typeof e.default)return"default: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: number expected";if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.NumberInput)return e;let t=new l.NumberInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.format&&(t.format=String(e.format)),null!=e.hasMin&&(t.hasMin=Boolean(e.hasMin)),null!=e.hasMax&&(t.hasMax=Boolean(e.hasMax)),e.dataType){case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1}if(null!=e.default&&(t.default=Number(e.default)),null!=e.step&&(t.step=Number(e.step)),null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.help&&(t.help=String(e.help)),null!=e.value&&(t.value=Number(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".NumberInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.formId="",n.format="",n.hasMin=!1,n.hasMax=!1,n.dataType=t.enums===String?"INT":0,n.default=0,n.step=0,n.min=0,n.max=0,n.help="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.hasMin&&e.hasOwnProperty("hasMin")&&(n.hasMin=e.hasMin),null!=e.hasMax&&e.hasOwnProperty("hasMax")&&(n.hasMax=e.hasMax),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.NumberInput.DataType[e.dataType]:e.dataType),null!=e.default&&e.hasOwnProperty("default")&&(n.default=t.json&&!isFinite(e.default)?String(e.default):e.default),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t}(),e})()),I=l.PageConfig=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.favicon="",e.prototype.layout=0,e.prototype.initialSidebarState=0,e.prototype.menuItems=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&t.uint32(18).string(e.favicon),null!=e.layout&&Object.hasOwnProperty.call(e,"layout")&&t.uint32(24).int32(e.layout),null!=e.initialSidebarState&&Object.hasOwnProperty.call(e,"initialSidebarState")&&t.uint32(32).int32(e.initialSidebarState),null!=e.menuItems&&Object.hasOwnProperty.call(e,"menuItems")&&l.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageConfig;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.title=e.string();break;case 2:r.favicon=e.string();break;case 3:r.layout=e.int32();break;case 4:r.initialSidebarState=e.int32();break;case 5:r.menuItems=l.PageConfig.MenuItems.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.title&&e.hasOwnProperty("title")&&!a.isString(e.title))return"title: string expected";if(null!=e.favicon&&e.hasOwnProperty("favicon")&&!a.isString(e.favicon))return"favicon: string expected";if(null!=e.layout&&e.hasOwnProperty("layout"))switch(e.layout){default:return"layout: enum value expected";case 0:case 1:}if(null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState"))switch(e.initialSidebarState){default:return"initialSidebarState: enum value expected";case 0:case 1:case 2:}if(null!=e.menuItems&&e.hasOwnProperty("menuItems")){let t=l.PageConfig.MenuItems.verify(e.menuItems);if(t)return"menuItems."+t}return null},e.fromObject=function(e){if(e instanceof l.PageConfig)return e;let t=new l.PageConfig;switch(null!=e.title&&(t.title=String(e.title)),null!=e.favicon&&(t.favicon=String(e.favicon)),e.layout){case"CENTERED":case 0:t.layout=0;break;case"WIDE":case 1:t.layout=1}switch(e.initialSidebarState){case"AUTO":case 0:t.initialSidebarState=0;break;case"EXPANDED":case 1:t.initialSidebarState=1;break;case"COLLAPSED":case 2:t.initialSidebarState=2}if(null!=e.menuItems){if("object"!==typeof e.menuItems)throw TypeError(".PageConfig.menuItems: object expected");t.menuItems=l.PageConfig.MenuItems.fromObject(e.menuItems)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.title="",n.favicon="",n.layout=t.enums===String?"CENTERED":0,n.initialSidebarState=t.enums===String?"AUTO":0,n.menuItems=null),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=e.favicon),null!=e.layout&&e.hasOwnProperty("layout")&&(n.layout=t.enums===String?l.PageConfig.Layout[e.layout]:e.layout),null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState")&&(n.initialSidebarState=t.enums===String?l.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),null!=e.menuItems&&e.hasOwnProperty("menuItems")&&(n.menuItems=l.PageConfig.MenuItems.toObject(e.menuItems,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MenuItems=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.getHelpUrl&&Object.hasOwnProperty.call(e,"getHelpUrl")&&t.uint32(10).string(e.getHelpUrl),null!=e.hideGetHelp&&Object.hasOwnProperty.call(e,"hideGetHelp")&&t.uint32(16).bool(e.hideGetHelp),null!=e.reportABugUrl&&Object.hasOwnProperty.call(e,"reportABugUrl")&&t.uint32(26).string(e.reportABugUrl),null!=e.hideReportABug&&Object.hasOwnProperty.call(e,"hideReportABug")&&t.uint32(32).bool(e.hideReportABug),null!=e.aboutSectionMd&&Object.hasOwnProperty.call(e,"aboutSectionMd")&&t.uint32(42).string(e.aboutSectionMd),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageConfig.MenuItems;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.getHelpUrl=e.string();break;case 2:r.hideGetHelp=e.bool();break;case 3:r.reportABugUrl=e.string();break;case 4:r.hideReportABug=e.bool();break;case 5:r.aboutSectionMd=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&!a.isString(e.getHelpUrl)?"getHelpUrl: string expected":null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&"boolean"!==typeof e.hideGetHelp?"hideGetHelp: boolean expected":null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&!a.isString(e.reportABugUrl)?"reportABugUrl: string expected":null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&"boolean"!==typeof e.hideReportABug?"hideReportABug: boolean expected":null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&!a.isString(e.aboutSectionMd)?"aboutSectionMd: string expected":null},e.fromObject=function(e){if(e instanceof l.PageConfig.MenuItems)return e;let t=new l.PageConfig.MenuItems;return null!=e.getHelpUrl&&(t.getHelpUrl=String(e.getHelpUrl)),null!=e.hideGetHelp&&(t.hideGetHelp=Boolean(e.hideGetHelp)),null!=e.reportABugUrl&&(t.reportABugUrl=String(e.reportABugUrl)),null!=e.hideReportABug&&(t.hideReportABug=Boolean(e.hideReportABug)),null!=e.aboutSectionMd&&(t.aboutSectionMd=String(e.aboutSectionMd)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.getHelpUrl="",n.hideGetHelp=!1,n.reportABugUrl="",n.hideReportABug=!1,n.aboutSectionMd=""),null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&(n.getHelpUrl=e.getHelpUrl),null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&(n.hideGetHelp=e.hideGetHelp),null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&(n.reportABugUrl=e.reportABugUrl),null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&(n.hideReportABug=e.hideReportABug),null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&(n.aboutSectionMd=e.aboutSectionMd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Layout=function(){const e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t}(),e.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})(),C=(l.PageInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.queryString=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.queryString&&e.hasOwnProperty("queryString")&&!a.isString(e.queryString)?"queryString: string expected":null},e.fromObject=function(e){if(e instanceof l.PageInfo)return e;let t=new l.PageInfo;return null!=e.queryString&&(t.queryString=String(e.queryString)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.queryString=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PageNotFound=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageNotFound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.pageName=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.PageNotFound)return e;let t=new l.PageNotFound;return null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.pageName=""),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PageProfile=(()=>{function e(e){if(this.commands=[],this.config=[],this.attributions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commands=a.emptyArray,e.prototype.execTime=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.prepTime=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.config=a.emptyArray,e.prototype.uncaughtException="",e.prototype.attributions=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.commands&&e.commands.length)for(let n=0;n<e.commands.length;++n)l.Command.encode(e.commands[n],t.uint32(10).fork()).ldelim();if(null!=e.execTime&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),null!=e.prepTime&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),null!=e.config&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(42).string(e.config[n]);if(null!=e.uncaughtException&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),null!=e.attributions&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(58).string(e.attributions[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageProfile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.commands&&r.commands.length||(r.commands=[]),r.commands.push(l.Command.decode(e,e.uint32()));break;case 2:r.execTime=e.int64();break;case 3:r.prepTime=e.int64();break;case 5:r.config&&r.config.length||(r.config=[]),r.config.push(e.string());break;case 6:r.uncaughtException=e.string();break;case 7:r.attributions&&r.attributions.length||(r.attributions=[]),r.attributions.push(e.string());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.commands&&e.hasOwnProperty("commands")){if(!Array.isArray(e.commands))return"commands: array expected";for(let t=0;t<e.commands.length;++t){let n=l.Command.verify(e.commands[t]);if(n)return"commands."+n}}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&!a.isInteger(e.execTime)&&!(e.execTime&&a.isInteger(e.execTime.low)&&a.isInteger(e.execTime.high)))return"execTime: integer|Long expected";if(null!=e.prepTime&&e.hasOwnProperty("prepTime")&&!a.isInteger(e.prepTime)&&!(e.prepTime&&a.isInteger(e.prepTime.low)&&a.isInteger(e.prepTime.high)))return"prepTime: integer|Long expected";if(null!=e.config&&e.hasOwnProperty("config")){if(!Array.isArray(e.config))return"config: array expected";for(let t=0;t<e.config.length;++t)if(!a.isString(e.config[t]))return"config: string[] expected"}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&!a.isString(e.uncaughtException))return"uncaughtException: string expected";if(null!=e.attributions&&e.hasOwnProperty("attributions")){if(!Array.isArray(e.attributions))return"attributions: array expected";for(let t=0;t<e.attributions.length;++t)if(!a.isString(e.attributions[t]))return"attributions: string[] expected"}return null},e.fromObject=function(e){if(e instanceof l.PageProfile)return e;let t=new l.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let n=0;n<e.commands.length;++n){if("object"!==typeof e.commands[n])throw TypeError(".PageProfile.commands: object expected");t.commands[n]=l.Command.fromObject(e.commands[n])}}if(null!=e.execTime&&(a.Long?(t.execTime=a.Long.fromValue(e.execTime)).unsigned=!1:"string"===typeof e.execTime?t.execTime=parseInt(e.execTime,10):"number"===typeof e.execTime?t.execTime=e.execTime:"object"===typeof e.execTime&&(t.execTime=new a.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),null!=e.prepTime&&(a.Long?(t.prepTime=a.Long.fromValue(e.prepTime)).unsigned=!1:"string"===typeof e.prepTime?t.prepTime=parseInt(e.prepTime,10):"number"===typeof e.prepTime?t.prepTime=e.prepTime:"object"===typeof e.prepTime&&(t.prepTime=new a.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 n=0;n<e.config.length;++n)t.config[n]=String(e.config[n])}if(null!=e.uncaughtException&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let n=0;n<e.attributions.length;++n)t.attributions[n]=String(e.attributions[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.commands=[],n.config=[],n.attributions=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.execTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.execTime=t.longs===String?"0":0;if(a.Long){let e=new a.Long(0,0,!1);n.prepTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.prepTime=t.longs===String?"0":0;n.uncaughtException=""}if(e.commands&&e.commands.length){n.commands=[];for(let r=0;r<e.commands.length;++r)n.commands[r]=l.Command.toObject(e.commands[r],t)}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&("number"===typeof e.execTime?n.execTime=t.longs===String?String(e.execTime):e.execTime:n.execTime=t.longs===String?a.Long.prototype.toString.call(e.execTime):t.longs===Number?new a.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),null!=e.prepTime&&e.hasOwnProperty("prepTime")&&("number"===typeof e.prepTime?n.prepTime=t.longs===String?String(e.prepTime):e.prepTime:n.prepTime=t.longs===String?a.Long.prototype.toString.call(e.prepTime):t.longs===Number?new a.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){n.config=[];for(let t=0;t<e.config.length;++t)n.config[t]=e.config[t]}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&(n.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){n.attributions=[];for(let t=0;t<e.attributions.length;++t)n.attributions[t]=e.attributions[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),V=(l.Argument=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.k="",e.prototype.t="",e.prototype.m="",e.prototype.p=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.k&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),null!=e.t&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),null!=e.m&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),null!=e.p&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Argument;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.k=e.string();break;case 2:r.t=e.string();break;case 3:r.m=e.string();break;case 5:r.p=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.k&&e.hasOwnProperty("k")&&!a.isString(e.k)?"k: string expected":null!=e.t&&e.hasOwnProperty("t")&&!a.isString(e.t)?"t: string expected":null!=e.m&&e.hasOwnProperty("m")&&!a.isString(e.m)?"m: string expected":null!=e.p&&e.hasOwnProperty("p")&&!a.isInteger(e.p)?"p: integer expected":null},e.fromObject=function(e){if(e instanceof l.Argument)return e;let t=new l.Argument;return null!=e.k&&(t.k=String(e.k)),null!=e.t&&(t.t=String(e.t)),null!=e.m&&(t.m=String(e.m)),null!=e.p&&(t.p=0|e.p),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.k="",n.t="",n.m="",n.p=0),null!=e.k&&e.hasOwnProperty("k")&&(n.k=e.k),null!=e.t&&e.hasOwnProperty("t")&&(n.t=e.t),null!=e.m&&e.hasOwnProperty("m")&&(n.m=e.m),null!=e.p&&e.hasOwnProperty("p")&&(n.p=e.p),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Command=(()=>{function e(e){if(this.args=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.args=a.emptyArray,e.prototype.time=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.args&&e.args.length)for(let n=0;n<e.args.length;++n)l.Argument.encode(e.args[n],t.uint32(18).fork()).ldelim();return null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Command;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.args&&r.args.length||(r.args=[]),r.args.push(l.Argument.decode(e,e.uint32()));break;case 4:r.time=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.args&&e.hasOwnProperty("args")){if(!Array.isArray(e.args))return"args: array expected";for(let t=0;t<e.args.length;++t){let n=l.Argument.verify(e.args[t]);if(n)return"args."+n}}return null==e.time||!e.hasOwnProperty("time")||a.isInteger(e.time)||e.time&&a.isInteger(e.time.low)&&a.isInteger(e.time.high)?null:"time: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.Command)return e;let t=new l.Command;if(null!=e.name&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let n=0;n<e.args.length;++n){if("object"!==typeof e.args[n])throw TypeError(".Command.args: object expected");t.args[n]=l.Argument.fromObject(e.args[n])}}return null!=e.time&&(a.Long?(t.time=a.Long.fromValue(e.time)).unsigned=!1:"string"===typeof e.time?t.time=parseInt(e.time,10):"number"===typeof e.time?t.time=e.time:"object"===typeof e.time&&(t.time=new a.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.args=[]),t.defaults)if(n.name="",a.Long){let e=new a.Long(0,0,!1);n.time=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.time=t.longs===String?"0":0;if(null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.args&&e.args.length){n.args=[];for(let r=0;r<e.args.length;++r)n.args[r]=l.Argument.toObject(e.args[r],t)}return null!=e.time&&e.hasOwnProperty("time")&&("number"===typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?a.Long.prototype.toString.call(e.time):t.longs===Number?new a.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PagesChanged=(()=>{function e(e){if(this.appPages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.appPages=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.appPages&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PagesChanged;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(let t=0;t<e.appPages.length;++t){let n=l.AppPage.verify(e.appPages[t]);if(n)return"appPages."+n}}return null},e.fromObject=function(e){if(e instanceof l.PagesChanged)return e;let t=new l.PagesChanged;if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".PagesChanged.appPages: array expected");t.appPages=[];for(let n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".PagesChanged.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.appPages=[]),e.appPages&&e.appPages.length){n.appPages=[];for(let r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PlotlyChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.url=null,e.prototype.figure=null,e.prototype.useContainerWidth=!1,Object.defineProperty(e.prototype,"chart",{get:a.oneOfGetter(t=["url","figure"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&l.Figure.encode(e.figure,t.uint32(18).fork()).ldelim(),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PlotlyChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.url=e.string();break;case 2:r.figure=l.Figure.decode(e,e.uint32());break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.url&&e.hasOwnProperty("url")&&(t.chart=1,!a.isString(e.url)))return"url: string expected";if(null!=e.figure&&e.hasOwnProperty("figure")){if(1===t.chart)return"chart: multiple values";t.chart=1;{let t=l.Figure.verify(e.figure);if(t)return"figure."+t}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.PlotlyChart)return e;let t=new l.PlotlyChart;if(null!=e.url&&(t.url=String(e.url)),null!=e.figure){if("object"!==typeof e.figure)throw TypeError(".PlotlyChart.figure: object expected");t.figure=l.Figure.fromObject(e.figure)}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.useContainerWidth=!1),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url,t.oneofs&&(n.chart="url")),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=l.Figure.toObject(e.figure,t),t.oneofs&&(n.chart="figure")),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Figure=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.config="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&t.uint32(18).string(e.config),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Figure;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.config=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec)?"spec: string expected":null!=e.config&&e.hasOwnProperty("config")&&!a.isString(e.config)?"config: string expected":null},e.fromObject=function(e){if(e instanceof l.Figure)return e;let t=new l.Figure;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.config&&(t.config=String(e.config)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.spec="",n.config=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.config&&e.hasOwnProperty("config")&&(n.config=e.config),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Progress=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Progress;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value)?"value: integer expected":null},e.fromObject=function(e){if(e instanceof l.Progress)return e;let t=new l.Progress;return null!=e.value&&(t.value=e.value>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.value=0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Radio=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.horizontal=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&t.uint32(80).bool(e.horizontal),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Radio;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.horizontal=e.bool();break;case 11:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.horizontal&&e.hasOwnProperty("horizontal")&&"boolean"!==typeof e.horizontal)return"horizontal: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Radio)return e;let t=new l.Radio;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Radio.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.horizontal&&(t.horizontal=Boolean(e.horizontal)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Radio.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.horizontal=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=e.horizontal),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.RootContainer=(()=>{const e={},t=Object.create(e);return t[e[0]="MAIN"]=0,t[e[1]="SIDEBAR"]=1,t})(),l.Selectbox=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Selectbox;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Selectbox)return e;let t=new l.Selectbox;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Selectbox.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Selectbox.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SessionEvent=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.scriptChangedOnDisk=null,e.prototype.scriptWasManuallyStopped=null,e.prototype.scriptCompilationException=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.scriptChangedOnDisk&&Object.hasOwnProperty.call(e,"scriptChangedOnDisk")&&t.uint32(8).bool(e.scriptChangedOnDisk),null!=e.scriptWasManuallyStopped&&Object.hasOwnProperty.call(e,"scriptWasManuallyStopped")&&t.uint32(16).bool(e.scriptWasManuallyStopped),null!=e.scriptCompilationException&&Object.hasOwnProperty.call(e,"scriptCompilationException")&&l.Exception.encode(e.scriptCompilationException,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SessionEvent;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.scriptChangedOnDisk=e.bool();break;case 2:r.scriptWasManuallyStopped=e.bool();break;case 3:r.scriptCompilationException=l.Exception.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(t.type=1,"boolean"!==typeof e.scriptChangedOnDisk))return"scriptChangedOnDisk: boolean expected";if(null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.scriptWasManuallyStopped)return"scriptWasManuallyStopped: boolean expected"}if(null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Exception.verify(e.scriptCompilationException);if(t)return"scriptCompilationException."+t}}return null},e.fromObject=function(e){if(e instanceof l.SessionEvent)return e;let t=new l.SessionEvent;if(null!=e.scriptChangedOnDisk&&(t.scriptChangedOnDisk=Boolean(e.scriptChangedOnDisk)),null!=e.scriptWasManuallyStopped&&(t.scriptWasManuallyStopped=Boolean(e.scriptWasManuallyStopped)),null!=e.scriptCompilationException){if("object"!==typeof e.scriptCompilationException)throw TypeError(".SessionEvent.scriptCompilationException: object expected");t.scriptCompilationException=l.Exception.fromObject(e.scriptCompilationException)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(n.scriptChangedOnDisk=e.scriptChangedOnDisk,t.oneofs&&(n.type="scriptChangedOnDisk")),null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")&&(n.scriptWasManuallyStopped=e.scriptWasManuallyStopped,t.oneofs&&(n.type="scriptWasManuallyStopped")),null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")&&(n.scriptCompilationException=l.Exception.toObject(e.scriptCompilationException,t),t.oneofs&&(n.type="scriptCompilationException")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SessionState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.runOnSave=!1,e.prototype.scriptIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.runOnSave&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),null!=e.scriptIsRunning&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SessionState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.runOnSave=e.bool();break;case 2:r.scriptIsRunning=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&"boolean"!==typeof e.runOnSave?"runOnSave: boolean expected":null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&"boolean"!==typeof e.scriptIsRunning?"scriptIsRunning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.SessionState)return e;let t=new l.SessionState;return null!=e.runOnSave&&(t.runOnSave=Boolean(e.runOnSave)),null!=e.scriptIsRunning&&(t.scriptIsRunning=Boolean(e.scriptIsRunning)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.runOnSave=!1,n.scriptIsRunning=!1),null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&(n.runOnSave=e.runOnSave),null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&(n.scriptIsRunning=e.scriptIsRunning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Slider=(()=>{function e(e){if(this.default=[],this.value=[],this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.formId="",e.prototype.label="",e.prototype.format="",e.prototype.dataType=0,e.prototype.default=a.emptyArray,e.prototype.min=0,e.prototype.max=0,e.prototype.step=0,e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),null!=e.default&&e.default.length){t.uint32(50).fork();for(let n=0;n<e.default.length;++n)t.double(e.default[n]);t.ldelim()}if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),null!=e.value&&e.value.length){t.uint32(82).fork();for(let n=0;n<e.value.length;++n)t.double(e.value[n]);t.ldelim()}if(null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(106).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Slider;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.formId=e.string();break;case 3:r.label=e.string();break;case 4:r.format=e.string();break;case 5:r.dataType=e.int32();break;case 6:if(r.default&&r.default.length||(r.default=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.default.push(e.double())}else r.default.push(e.double());break;case 7:r.min=e.double();break;case 8:r.max=e.double();break;case 9:r.step=e.double();break;case 10:if(r.value&&r.value.length||(r.value=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.value.push(e.double())}else r.value.push(e.double());break;case 11:r.setValue=e.bool();break;case 13:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 14:r.help=e.string();break;case 15:r.disabled=e.bool();break;case 16:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!a.isString(e.format))return"format: string expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if("number"!==typeof e.default[t])return"default: number[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: number expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if("number"!==typeof e.value[t])return"value: number[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Slider)return e;let t=new l.Slider;switch(null!=e.id&&(t.id=String(e.id)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.label&&(t.label=String(e.label)),null!=e.format&&(t.format=String(e.format)),e.dataType){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}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=Number(e.default[n])}if(null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.step&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=Number(e.value[n])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[],n.options=[]),t.defaults&&(n.id="",n.formId="",n.label="",n.format="",n.dataType=t.enums===String?"INT":0,n.min=0,n.max=0,n.step=0,n.setValue=!1,n.help="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){n.default=[];for(let r=0;r<e.default.length;++r)n.default[r]=t.json&&!isFinite(e.default[r])?String(e.default[r]):e.default[r]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){n.value=[];for(let r=0;r<e.value.length;++r)n.value[r]=t.json&&!isFinite(e.value[r])?String(e.value[r]):e.value[r]}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t[e[2]="DATETIME"]=2,t[e[3]="DATE"]=3,t[e[4]="TIME"]=4,t}(),e})()),T=(l.Snow=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Snow;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.show=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Snow)return e;let t=new l.Snow;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Spinner=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.text="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Spinner;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.text=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.text&&e.hasOwnProperty("text")&&!a.isString(e.text)?"text: string expected":null},e.fromObject=function(e){if(e instanceof l.Spinner)return e;let t=new l.Spinner;return null!=e.text&&(t.text=String(e.text)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.text=""),null!=e.text&&e.hasOwnProperty("text")&&(n.text=e.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Text=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Text;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Text)return e;let t=new l.Text;return null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TextArea=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.height=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.placeholder&&Object.hasOwnProperty.call(e,"placeholder")&&t.uint32(82).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TextArea;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.height=e.uint32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.placeholder=e.string();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height))return"height: integer expected";if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!a.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!a.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextArea)return e;let t=new l.TextArea;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.height&&(t.height=e.height>>>0),null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextArea.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.height=0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TextInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.type=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.autocomplete="",e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(32).int32(e.type),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.autocomplete&&Object.hasOwnProperty.call(e,"autocomplete")&&t.uint32(82).string(e.autocomplete),null!=e.placeholder&&Object.hasOwnProperty.call(e,"placeholder")&&t.uint32(90).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(96).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TextInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.type=e.int32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.autocomplete=e.string();break;case 11:r.placeholder=e.string();break;case 12:r.disabled=e.bool();break;case 13:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:}if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!a.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&!a.isString(e.autocomplete))return"autocomplete: string expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!a.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextInput)return e;let t=new l.TextInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),e.type){case"DEFAULT":case 0:t.type=0;break;case"PASSWORD":case 1:t.type=1}if(null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.autocomplete&&(t.autocomplete=String(e.autocomplete)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.type=t.enums===String?"DEFAULT":0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.autocomplete="",n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.TextInput.Type[e.type]:e.type),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&(n.autocomplete=e.autocomplete),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t}(),e})()),E=(l.TimeInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TimeInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TimeInput)return e;let t=new l.TimeInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TimeInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.VegaLiteChart=(()=>{function e(e){if(this.datasets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=a.emptyArray,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(let n=0;n<e.datasets.length;++n)l.NamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.VegaLiteChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.NamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DataFrame.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(let t=0;t<e.datasets.length;++t){let n=l.NamedDataSet.verify(e.datasets[t]);if(n)return"datasets."+n}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.VegaLiteChart)return e;let t=new l.VegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".VegaLiteChart.data: object expected");t.data=l.DataFrame.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");t.datasets=[];for(let n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".VegaLiteChart.datasets: object expected");t.datasets[n]=l.NamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(let r=0;r<e.datasets.length;++r)n.datasets[r]=l.NamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Video=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.prototype.type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Video;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 6:r.url=e.string();break;case 3:r.startTime=e.int32();break;case 5:r.type=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url))return"url: string expected";if(null!=e.startTime&&e.hasOwnProperty("startTime")&&!a.isInteger(e.startTime))return"startTime: integer expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.Video)return e;let t=new l.Video;switch(null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),e.type){case"UNUSED":case 0:t.type=0;break;case"NATIVE":case 1:t.type=1;break;case"YOUTUBE_IFRAME":case 2:t.type=2}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.startTime=0,n.type=t.enums===String?"UNUSED":0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.Video.Type[e.type]:e.type),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.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}(),e})()),A=l.WidgetStates=(()=>{function e(e){if(this.widgets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.widgets=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.widgets&&e.widgets.length)for(let n=0;n<e.widgets.length;++n)l.WidgetState.encode(e.widgets[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.WidgetStates;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.widgets&&r.widgets.length||(r.widgets=[]),r.widgets.push(l.WidgetState.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.widgets&&e.hasOwnProperty("widgets")){if(!Array.isArray(e.widgets))return"widgets: array expected";for(let t=0;t<e.widgets.length;++t){let n=l.WidgetState.verify(e.widgets[t]);if(n)return"widgets."+n}}return null},e.fromObject=function(e){if(e instanceof l.WidgetStates)return e;let t=new l.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let n=0;n<e.widgets.length;++n){if("object"!==typeof e.widgets[n])throw TypeError(".WidgetStates.widgets: object expected");t.widgets[n]=l.WidgetState.fromObject(e.widgets[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.widgets=[]),e.widgets&&e.widgets.length){n.widgets=[];for(let r=0;r<e.widgets.length;++r)n.widgets[r]=l.WidgetState.toObject(e.widgets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),D=l.WidgetState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.id="",e.prototype.triggerValue=null,e.prototype.boolValue=null,e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.stringValue=null,e.prototype.doubleArrayValue=null,e.prototype.intArrayValue=null,e.prototype.stringArrayValue=null,e.prototype.jsonValue=null,e.prototype.arrowValue=null,e.prototype.bytesValue=null,e.prototype.fileUploaderStateValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.triggerValue&&Object.hasOwnProperty.call(e,"triggerValue")&&t.uint32(16).bool(e.triggerValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(24).bool(e.boolValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(33).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(40).sint64(e.intValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(50).string(e.stringValue),null!=e.doubleArrayValue&&Object.hasOwnProperty.call(e,"doubleArrayValue")&&l.DoubleArray.encode(e.doubleArrayValue,t.uint32(58).fork()).ldelim(),null!=e.intArrayValue&&Object.hasOwnProperty.call(e,"intArrayValue")&&l.SInt64Array.encode(e.intArrayValue,t.uint32(66).fork()).ldelim(),null!=e.stringArrayValue&&Object.hasOwnProperty.call(e,"stringArrayValue")&&l.StringArray.encode(e.stringArrayValue,t.uint32(74).fork()).ldelim(),null!=e.jsonValue&&Object.hasOwnProperty.call(e,"jsonValue")&&t.uint32(82).string(e.jsonValue),null!=e.arrowValue&&Object.hasOwnProperty.call(e,"arrowValue")&&l.ArrowTable.encode(e.arrowValue,t.uint32(90).fork()).ldelim(),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(98).bytes(e.bytesValue),null!=e.fileUploaderStateValue&&Object.hasOwnProperty.call(e,"fileUploaderStateValue")&&l.FileUploaderState.encode(e.fileUploaderStateValue,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.WidgetState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.triggerValue=e.bool();break;case 3:r.boolValue=e.bool();break;case 4:r.doubleValue=e.double();break;case 5:r.intValue=e.sint64();break;case 6:r.stringValue=e.string();break;case 7:r.doubleArrayValue=l.DoubleArray.decode(e,e.uint32());break;case 8:r.intArrayValue=l.SInt64Array.decode(e,e.uint32());break;case 9:r.stringArrayValue=l.StringArray.decode(e,e.uint32());break;case 10:r.jsonValue=e.string();break;case 11:r.arrowValue=l.ArrowTable.decode(e,e.uint32());break;case 12:r.bytesValue=e.bytes();break;case 13:r.fileUploaderStateValue=l.FileUploaderState.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(t.value=1,"boolean"!==typeof e.triggerValue))return"triggerValue: boolean expected";if(null!=e.boolValue&&e.hasOwnProperty("boolValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"boolean"!==typeof e.boolValue)return"boolValue: boolean expected"}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"number"!==typeof e.doubleValue)return"doubleValue: number expected"}if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.DoubleArray.verify(e.doubleArrayValue);if(t)return"doubleArrayValue."+t}}if(null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.SInt64Array.verify(e.intArrayValue);if(t)return"intArrayValue."+t}}if(null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.StringArray.verify(e.stringArrayValue);if(t)return"stringArrayValue."+t}}if(null!=e.jsonValue&&e.hasOwnProperty("jsonValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isString(e.jsonValue))return"jsonValue: string expected"}if(null!=e.arrowValue&&e.hasOwnProperty("arrowValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.ArrowTable.verify(e.arrowValue);if(t)return"arrowValue."+t}}if(null!=e.bytesValue&&e.hasOwnProperty("bytesValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytesValue&&"number"===typeof e.bytesValue.length||a.isString(e.bytesValue)))return"bytesValue: buffer expected"}if(null!=e.fileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.FileUploaderState.verify(e.fileUploaderStateValue);if(t)return"fileUploaderStateValue."+t}}return null},e.fromObject=function(e){if(e instanceof l.WidgetState)return e;let t=new l.WidgetState;if(null!=e.id&&(t.id=String(e.id)),null!=e.triggerValue&&(t.triggerValue=Boolean(e.triggerValue)),null!=e.boolValue&&(t.boolValue=Boolean(e.boolValue)),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.doubleArrayValue){if("object"!==typeof e.doubleArrayValue)throw TypeError(".WidgetState.doubleArrayValue: object expected");t.doubleArrayValue=l.DoubleArray.fromObject(e.doubleArrayValue)}if(null!=e.intArrayValue){if("object"!==typeof e.intArrayValue)throw TypeError(".WidgetState.intArrayValue: object expected");t.intArrayValue=l.SInt64Array.fromObject(e.intArrayValue)}if(null!=e.stringArrayValue){if("object"!==typeof e.stringArrayValue)throw TypeError(".WidgetState.stringArrayValue: object expected");t.stringArrayValue=l.StringArray.fromObject(e.stringArrayValue)}if(null!=e.jsonValue&&(t.jsonValue=String(e.jsonValue)),null!=e.arrowValue){if("object"!==typeof e.arrowValue)throw TypeError(".WidgetState.arrowValue: object expected");t.arrowValue=l.ArrowTable.fromObject(e.arrowValue)}if(null!=e.bytesValue&&("string"===typeof e.bytesValue?a.base64.decode(e.bytesValue,t.bytesValue=a.newBuffer(a.base64.length(e.bytesValue)),0):e.bytesValue.length&&(t.bytesValue=e.bytesValue)),null!=e.fileUploaderStateValue){if("object"!==typeof e.fileUploaderStateValue)throw TypeError(".WidgetState.fileUploaderStateValue: object expected");t.fileUploaderStateValue=l.FileUploaderState.fromObject(e.fileUploaderStateValue)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(n.triggerValue=e.triggerValue,t.oneofs&&(n.value="triggerValue")),null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(n.boolValue=e.boolValue,t.oneofs&&(n.value="boolValue")),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=e.stringValue,t.oneofs&&(n.value="stringValue")),null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")&&(n.doubleArrayValue=l.DoubleArray.toObject(e.doubleArrayValue,t),t.oneofs&&(n.value="doubleArrayValue")),null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")&&(n.intArrayValue=l.SInt64Array.toObject(e.intArrayValue,t),t.oneofs&&(n.value="intArrayValue")),null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")&&(n.stringArrayValue=l.StringArray.toObject(e.stringArrayValue,t),t.oneofs&&(n.value="stringArrayValue")),null!=e.jsonValue&&e.hasOwnProperty("jsonValue")&&(n.jsonValue=e.jsonValue,t.oneofs&&(n.value="jsonValue")),null!=e.arrowValue&&e.hasOwnProperty("arrowValue")&&(n.arrowValue=l.ArrowTable.toObject(e.arrowValue,t),t.oneofs&&(n.value="arrowValue")),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(n.bytesValue=t.bytes===String?a.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(n.value="bytesValue")),null!=e.fileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")&&(n.fileUploaderStateValue=l.FileUploaderState.toObject(e.fileUploaderStateValue,t),t.oneofs&&(n.value="fileUploaderStateValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})();l.openmetrics=(()=>{const e={};return e.MetricSet=function(){function e(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.metricFamilies=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.metricFamilies&&e.metricFamilies.length)for(let n=0;n<e.metricFamilies.length;++n)l.openmetrics.MetricFamily.encode(e.metricFamilies[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.metricFamilies&&r.metricFamilies.length||(r.metricFamilies=[]),r.metricFamilies.push(l.openmetrics.MetricFamily.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.metricFamilies&&e.hasOwnProperty("metricFamilies")){if(!Array.isArray(e.metricFamilies))return"metricFamilies: array expected";for(let t=0;t<e.metricFamilies.length;++t){let n=l.openmetrics.MetricFamily.verify(e.metricFamilies[t]);if(n)return"metricFamilies."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricSet)return e;let t=new l.openmetrics.MetricSet;if(e.metricFamilies){if(!Array.isArray(e.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");t.metricFamilies=[];for(let n=0;n<e.metricFamilies.length;++n){if("object"!==typeof e.metricFamilies[n])throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");t.metricFamilies[n]=l.openmetrics.MetricFamily.fromObject(e.metricFamilies[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){n.metricFamilies=[];for(let r=0;r<e.metricFamilies.length;++r)n.metricFamilies[r]=l.openmetrics.MetricFamily.toObject(e.metricFamilies[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricFamily=function(){function e(e){if(this.metrics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.type=0,e.prototype.unit="",e.prototype.help="",e.prototype.metrics=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.unit&&Object.hasOwnProperty.call(e,"unit")&&t.uint32(26).string(e.unit),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.metrics&&e.metrics.length)for(let n=0;n<e.metrics.length;++n)l.openmetrics.Metric.encode(e.metrics[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricFamily;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.type=e.int32();break;case 3:r.unit=e.string();break;case 4:r.help=e.string();break;case 5:r.metrics&&r.metrics.length||(r.metrics=[]),r.metrics.push(l.openmetrics.Metric.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.unit&&e.hasOwnProperty("unit")&&!a.isString(e.unit))return"unit: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.metrics&&e.hasOwnProperty("metrics")){if(!Array.isArray(e.metrics))return"metrics: array expected";for(let t=0;t<e.metrics.length;++t){let n=l.openmetrics.Metric.verify(e.metrics[t]);if(n)return"metrics."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricFamily)return e;let t=new l.openmetrics.MetricFamily;switch(null!=e.name&&(t.name=String(e.name)),e.type){case"UNKNOWN":case 0:t.type=0;break;case"GAUGE":case 1:t.type=1;break;case"COUNTER":case 2:t.type=2;break;case"STATE_SET":case 3:t.type=3;break;case"INFO":case 4:t.type=4;break;case"HISTOGRAM":case 5:t.type=5;break;case"GAUGE_HISTOGRAM":case 6:t.type=6;break;case"SUMMARY":case 7:t.type=7}if(null!=e.unit&&(t.unit=String(e.unit)),null!=e.help&&(t.help=String(e.help)),e.metrics){if(!Array.isArray(e.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");t.metrics=[];for(let n=0;n<e.metrics.length;++n){if("object"!==typeof e.metrics[n])throw TypeError(".openmetrics.MetricFamily.metrics: object expected");t.metrics[n]=l.openmetrics.Metric.fromObject(e.metrics[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.metrics=[]),t.defaults&&(n.name="",n.type=t.enums===String?"UNKNOWN":0,n.unit="",n.help=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.openmetrics.MetricType[e.type]:e.type),null!=e.unit&&e.hasOwnProperty("unit")&&(n.unit=e.unit),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),e.metrics&&e.metrics.length){n.metrics=[];for(let r=0;r<e.metrics.length;++r)n.metrics[r]=l.openmetrics.Metric.toObject(e.metrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricType=function(){const e={},t=Object.create(e);return t[e[0]="UNKNOWN"]=0,t[e[1]="GAUGE"]=1,t[e[2]="COUNTER"]=2,t[e[3]="STATE_SET"]=3,t[e[4]="INFO"]=4,t[e[5]="HISTOGRAM"]=5,t[e[6]="GAUGE_HISTOGRAM"]=6,t[e[7]="SUMMARY"]=7,t}(),e.Metric=function(){function e(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.labels=a.emptyArray,e.prototype.metricPoints=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.labels&&e.labels.length)for(let n=0;n<e.labels.length;++n)l.openmetrics.Label.encode(e.labels[n],t.uint32(10).fork()).ldelim();if(null!=e.metricPoints&&e.metricPoints.length)for(let n=0;n<e.metricPoints.length;++n)l.openmetrics.MetricPoint.encode(e.metricPoints[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Metric;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.openmetrics.Label.decode(e,e.uint32()));break;case 2:r.metricPoints&&r.metricPoints.length||(r.metricPoints=[]),r.metricPoints.push(l.openmetrics.MetricPoint.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(let t=0;t<e.labels.length;++t){let n=l.openmetrics.Label.verify(e.labels[t]);if(n)return"labels."+n}}if(null!=e.metricPoints&&e.hasOwnProperty("metricPoints")){if(!Array.isArray(e.metricPoints))return"metricPoints: array expected";for(let t=0;t<e.metricPoints.length;++t){let n=l.openmetrics.MetricPoint.verify(e.metricPoints[t]);if(n)return"metricPoints."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Metric)return e;let t=new l.openmetrics.Metric;if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".openmetrics.Metric.labels: array expected");t.labels=[];for(let n=0;n<e.labels.length;++n){if("object"!==typeof e.labels[n])throw TypeError(".openmetrics.Metric.labels: object expected");t.labels[n]=l.openmetrics.Label.fromObject(e.labels[n])}}if(e.metricPoints){if(!Array.isArray(e.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");t.metricPoints=[];for(let n=0;n<e.metricPoints.length;++n){if("object"!==typeof e.metricPoints[n])throw TypeError(".openmetrics.Metric.metricPoints: object expected");t.metricPoints[n]=l.openmetrics.MetricPoint.fromObject(e.metricPoints[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.labels=[],n.metricPoints=[]),e.labels&&e.labels.length){n.labels=[];for(let r=0;r<e.labels.length;++r)n.labels[r]=l.openmetrics.Label.toObject(e.labels[r],t)}if(e.metricPoints&&e.metricPoints.length){n.metricPoints=[];for(let r=0;r<e.metricPoints.length;++r)n.metricPoints[r]=l.openmetrics.MetricPoint.toObject(e.metricPoints[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Label=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Label;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.Label)return e;let t=new l.openmetrics.Label;return null!=e.name&&(t.name=String(e.name)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.value=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricPoint=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.unknownValue=null,e.prototype.gaugeValue=null,e.prototype.counterValue=null,e.prototype.histogramValue=null,e.prototype.stateSetValue=null,e.prototype.infoValue=null,e.prototype.summaryValue=null,e.prototype.timestamp=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.unknownValue&&Object.hasOwnProperty.call(e,"unknownValue")&&l.openmetrics.UnknownValue.encode(e.unknownValue,t.uint32(10).fork()).ldelim(),null!=e.gaugeValue&&Object.hasOwnProperty.call(e,"gaugeValue")&&l.openmetrics.GaugeValue.encode(e.gaugeValue,t.uint32(18).fork()).ldelim(),null!=e.counterValue&&Object.hasOwnProperty.call(e,"counterValue")&&l.openmetrics.CounterValue.encode(e.counterValue,t.uint32(26).fork()).ldelim(),null!=e.histogramValue&&Object.hasOwnProperty.call(e,"histogramValue")&&l.openmetrics.HistogramValue.encode(e.histogramValue,t.uint32(34).fork()).ldelim(),null!=e.stateSetValue&&Object.hasOwnProperty.call(e,"stateSetValue")&&l.openmetrics.StateSetValue.encode(e.stateSetValue,t.uint32(42).fork()).ldelim(),null!=e.infoValue&&Object.hasOwnProperty.call(e,"infoValue")&&l.openmetrics.InfoValue.encode(e.infoValue,t.uint32(50).fork()).ldelim(),null!=e.summaryValue&&Object.hasOwnProperty.call(e,"summaryValue")&&l.openmetrics.SummaryValue.encode(e.summaryValue,t.uint32(58).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(66).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricPoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.unknownValue=l.openmetrics.UnknownValue.decode(e,e.uint32());break;case 2:r.gaugeValue=l.openmetrics.GaugeValue.decode(e,e.uint32());break;case 3:r.counterValue=l.openmetrics.CounterValue.decode(e,e.uint32());break;case 4:r.histogramValue=l.openmetrics.HistogramValue.decode(e,e.uint32());break;case 5:r.stateSetValue=l.openmetrics.StateSetValue.decode(e,e.uint32());break;case 6:r.infoValue=l.openmetrics.InfoValue.decode(e,e.uint32());break;case 7:r.summaryValue=l.openmetrics.SummaryValue.decode(e,e.uint32());break;case 8:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.unknownValue&&e.hasOwnProperty("unknownValue")){t.value=1;{let t=l.openmetrics.UnknownValue.verify(e.unknownValue);if(t)return"unknownValue."+t}}if(null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.GaugeValue.verify(e.gaugeValue);if(t)return"gaugeValue."+t}}if(null!=e.counterValue&&e.hasOwnProperty("counterValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.CounterValue.verify(e.counterValue);if(t)return"counterValue."+t}}if(null!=e.histogramValue&&e.hasOwnProperty("histogramValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.HistogramValue.verify(e.histogramValue);if(t)return"histogramValue."+t}}if(null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.StateSetValue.verify(e.stateSetValue);if(t)return"stateSetValue."+t}}if(null!=e.infoValue&&e.hasOwnProperty("infoValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.InfoValue.verify(e.infoValue);if(t)return"infoValue."+t}}if(null!=e.summaryValue&&e.hasOwnProperty("summaryValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.SummaryValue.verify(e.summaryValue);if(t)return"summaryValue."+t}}if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){let t=l.google.protobuf.Timestamp.verify(e.timestamp);if(t)return"timestamp."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricPoint)return e;let t=new l.openmetrics.MetricPoint;if(null!=e.unknownValue){if("object"!==typeof e.unknownValue)throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");t.unknownValue=l.openmetrics.UnknownValue.fromObject(e.unknownValue)}if(null!=e.gaugeValue){if("object"!==typeof e.gaugeValue)throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");t.gaugeValue=l.openmetrics.GaugeValue.fromObject(e.gaugeValue)}if(null!=e.counterValue){if("object"!==typeof e.counterValue)throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");t.counterValue=l.openmetrics.CounterValue.fromObject(e.counterValue)}if(null!=e.histogramValue){if("object"!==typeof e.histogramValue)throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");t.histogramValue=l.openmetrics.HistogramValue.fromObject(e.histogramValue)}if(null!=e.stateSetValue){if("object"!==typeof e.stateSetValue)throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");t.stateSetValue=l.openmetrics.StateSetValue.fromObject(e.stateSetValue)}if(null!=e.infoValue){if("object"!==typeof e.infoValue)throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");t.infoValue=l.openmetrics.InfoValue.fromObject(e.infoValue)}if(null!=e.summaryValue){if("object"!==typeof e.summaryValue)throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");t.summaryValue=l.openmetrics.SummaryValue.fromObject(e.summaryValue)}if(null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.timestamp=null),null!=e.unknownValue&&e.hasOwnProperty("unknownValue")&&(n.unknownValue=l.openmetrics.UnknownValue.toObject(e.unknownValue,t),t.oneofs&&(n.value="unknownValue")),null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")&&(n.gaugeValue=l.openmetrics.GaugeValue.toObject(e.gaugeValue,t),t.oneofs&&(n.value="gaugeValue")),null!=e.counterValue&&e.hasOwnProperty("counterValue")&&(n.counterValue=l.openmetrics.CounterValue.toObject(e.counterValue,t),t.oneofs&&(n.value="counterValue")),null!=e.histogramValue&&e.hasOwnProperty("histogramValue")&&(n.histogramValue=l.openmetrics.HistogramValue.toObject(e.histogramValue,t),t.oneofs&&(n.value="histogramValue")),null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")&&(n.stateSetValue=l.openmetrics.StateSetValue.toObject(e.stateSetValue,t),t.oneofs&&(n.value="stateSetValue")),null!=e.infoValue&&e.hasOwnProperty("infoValue")&&(n.infoValue=l.openmetrics.InfoValue.toObject(e.infoValue,t),t.oneofs&&(n.value="infoValue")),null!=e.summaryValue&&e.hasOwnProperty("summaryValue")&&(n.summaryValue=l.openmetrics.SummaryValue.toObject(e.summaryValue,t),t.oneofs&&(n.value="summaryValue")),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UnknownValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.UnknownValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.UnknownValue)return e;let t=new l.openmetrics.UnknownValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.GaugeValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.GaugeValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.GaugeValue)return e;let t=new l.openmetrics.GaugeValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CounterValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.created=null,e.prototype.exemplar=null,Object.defineProperty(e.prototype,"total",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).uint64(e.intValue),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(26).fork()).ldelim(),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.CounterValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.uint64();break;case 3:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.total=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.total)return"total: multiple values";if(t.total=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){let t=l.openmetrics.Exemplar.verify(e.exemplar);if(t)return"exemplar."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.CounterValue)return e;let t=new l.openmetrics.CounterValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!0:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.CounterValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.CounterValue.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.created=null,n.exemplar=null),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.total="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0):e.intValue,t.oneofs&&(n.total="intValue")),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.HistogramValue=function(){function e(e){if(this.buckets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.buckets=a.emptyArray,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.buckets&&e.buckets.length)for(let n=0;n<e.buckets.length;++n)l.openmetrics.HistogramValue.Bucket.encode(e.buckets[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.buckets&&r.buckets.length||(r.buckets=[]),r.buckets.push(l.openmetrics.HistogramValue.Bucket.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.buckets&&e.hasOwnProperty("buckets")){if(!Array.isArray(e.buckets))return"buckets: array expected";for(let t=0;t<e.buckets.length;++t){let n=l.openmetrics.HistogramValue.Bucket.verify(e.buckets[t]);if(n)return"buckets."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue)return e;let t=new l.openmetrics.HistogramValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.HistogramValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.buckets){if(!Array.isArray(e.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");t.buckets=[];for(let n=0;n<e.buckets.length;++n){if("object"!==typeof e.buckets[n])throw TypeError(".openmetrics.HistogramValue.buckets: object expected");t.buckets[n]=l.openmetrics.HistogramValue.Bucket.fromObject(e.buckets[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.buckets=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.buckets&&e.buckets.length){n.buckets=[];for(let r=0;r<e.buckets.length;++r)n.buckets[r]=l.openmetrics.HistogramValue.Bucket.toObject(e.buckets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Bucket=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(8).uint64(e.count),null!=e.upperBound&&Object.hasOwnProperty.call(e,"upperBound")&&t.uint32(17).double(e.upperBound),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue.Bucket;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.count=e.uint64();break;case 2:r.upperBound=e.double();break;case 3:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.upperBound&&e.hasOwnProperty("upperBound")&&"number"!==typeof e.upperBound)return"upperBound: number expected";if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){let t=l.openmetrics.Exemplar.verify(e.exemplar);if(t)return"exemplar."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue.Bucket)return e;let t=new l.openmetrics.HistogramValue.Bucket;if(null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.upperBound&&(t.upperBound=Number(e.upperBound)),null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.upperBound=0,n.exemplar=null}return null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.upperBound&&e.hasOwnProperty("upperBound")&&(n.upperBound=t.json&&!isFinite(e.upperBound)?String(e.upperBound):e.upperBound),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.Exemplar=function(){function e(e){if(this.label=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.prototype.timestamp=null,e.prototype.label=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(18).fork()).ldelim(),null!=e.label&&e.label.length)for(let n=0;n<e.label.length;++n)l.openmetrics.Label.encode(e.label[n],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Exemplar;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.double();break;case 2:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:r.label&&r.label.length||(r.label=[]),r.label.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){let t=l.google.protobuf.Timestamp.verify(e.timestamp);if(t)return"timestamp."+t}if(null!=e.label&&e.hasOwnProperty("label")){if(!Array.isArray(e.label))return"label: array expected";for(let t=0;t<e.label.length;++t){let n=l.openmetrics.Label.verify(e.label[t]);if(n)return"label."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Exemplar)return e;let t=new l.openmetrics.Exemplar;if(null!=e.value&&(t.value=Number(e.value)),null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.Exemplar.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}if(e.label){if(!Array.isArray(e.label))throw TypeError(".openmetrics.Exemplar.label: array expected");t.label=[];for(let n=0;n<e.label.length;++n){if("object"!==typeof e.label[n])throw TypeError(".openmetrics.Exemplar.label: object expected");t.label[n]=l.openmetrics.Label.fromObject(e.label[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.label=[]),t.defaults&&(n.value=0,n.timestamp=null),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),e.label&&e.label.length){n.label=[];for(let r=0;r<e.label.length;++r)n.label[r]=l.openmetrics.Label.toObject(e.label[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.StateSetValue=function(){function e(e){if(this.states=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.states=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.states&&e.states.length)for(let n=0;n<e.states.length;++n)l.openmetrics.StateSetValue.State.encode(e.states[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.states&&r.states.length||(r.states=[]),r.states.push(l.openmetrics.StateSetValue.State.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.states&&e.hasOwnProperty("states")){if(!Array.isArray(e.states))return"states: array expected";for(let t=0;t<e.states.length;++t){let n=l.openmetrics.StateSetValue.State.verify(e.states[t]);if(n)return"states."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue)return e;let t=new l.openmetrics.StateSetValue;if(e.states){if(!Array.isArray(e.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");t.states=[];for(let n=0;n<e.states.length;++n){if("object"!==typeof e.states[n])throw TypeError(".openmetrics.StateSetValue.states: object expected");t.states[n]=l.openmetrics.StateSetValue.State.fromObject(e.states[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.states=[]),e.states&&e.states.length){n.states=[];for(let r=0;r<e.states.length;++r)n.states[r]=l.openmetrics.StateSetValue.State.toObject(e.states[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.State=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(8).bool(e.enabled),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue.State;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.enabled=e.bool();break;case 2:r.name=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.enabled&&e.hasOwnProperty("enabled")&&"boolean"!==typeof e.enabled?"enabled: boolean expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue.State)return e;let t=new l.openmetrics.StateSetValue.State;return null!=e.enabled&&(t.enabled=Boolean(e.enabled)),null!=e.name&&(t.name=String(e.name)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.enabled=!1,n.name=""),null!=e.enabled&&e.hasOwnProperty("enabled")&&(n.enabled=e.enabled),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.InfoValue=function(){function e(e){if(this.info=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.info=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.info&&e.info.length)for(let n=0;n<e.info.length;++n)l.openmetrics.Label.encode(e.info[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.InfoValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.info&&r.info.length||(r.info=[]),r.info.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.info&&e.hasOwnProperty("info")){if(!Array.isArray(e.info))return"info: array expected";for(let t=0;t<e.info.length;++t){let n=l.openmetrics.Label.verify(e.info[t]);if(n)return"info."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.InfoValue)return e;let t=new l.openmetrics.InfoValue;if(e.info){if(!Array.isArray(e.info))throw TypeError(".openmetrics.InfoValue.info: array expected");t.info=[];for(let n=0;n<e.info.length;++n){if("object"!==typeof e.info[n])throw TypeError(".openmetrics.InfoValue.info: object expected");t.info[n]=l.openmetrics.Label.fromObject(e.info[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.info=[]),e.info&&e.info.length){n.info=[];for(let r=0;r<e.info.length;++r)n.info[r]=l.openmetrics.Label.toObject(e.info[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SummaryValue=function(){function e(e){if(this.quantile=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.quantile=a.emptyArray,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.quantile&&e.quantile.length)for(let n=0;n<e.quantile.length;++n)l.openmetrics.SummaryValue.Quantile.encode(e.quantile[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.quantile&&r.quantile.length||(r.quantile=[]),r.quantile.push(l.openmetrics.SummaryValue.Quantile.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.quantile&&e.hasOwnProperty("quantile")){if(!Array.isArray(e.quantile))return"quantile: array expected";for(let t=0;t<e.quantile.length;++t){let n=l.openmetrics.SummaryValue.Quantile.verify(e.quantile[t]);if(n)return"quantile."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue)return e;let t=new l.openmetrics.SummaryValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.SummaryValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.quantile){if(!Array.isArray(e.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");t.quantile=[];for(let n=0;n<e.quantile.length;++n){if("object"!==typeof e.quantile[n])throw TypeError(".openmetrics.SummaryValue.quantile: object expected");t.quantile[n]=l.openmetrics.SummaryValue.Quantile.fromObject(e.quantile[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.quantile=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.quantile&&e.quantile.length){n.quantile=[];for(let r=0;r<e.quantile.length;++r)n.quantile[r]=l.openmetrics.SummaryValue.Quantile.toObject(e.quantile[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Quantile=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.quantile=0,e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.quantile&&Object.hasOwnProperty.call(e,"quantile")&&t.uint32(9).double(e.quantile),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(17).double(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue.Quantile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.quantile=e.double();break;case 2:r.value=e.double();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.quantile&&e.hasOwnProperty("quantile")&&"number"!==typeof e.quantile?"quantile: number expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue.Quantile)return e;let t=new l.openmetrics.SummaryValue.Quantile;return null!=e.quantile&&(t.quantile=Number(e.quantile)),null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.quantile=0,n.value=0),null!=e.quantile&&e.hasOwnProperty("quantile")&&(n.quantile=t.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})(),l.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.Timestamp=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.google.protobuf.Timestamp;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.seconds||!e.hasOwnProperty("seconds")||a.isInteger(e.seconds)||e.seconds&&a.isInteger(e.seconds.low)&&a.isInteger(e.seconds.high)?null!=e.nanos&&e.hasOwnProperty("nanos")&&!a.isInteger(e.nanos)?"nanos: integer expected":null:"seconds: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.google.protobuf.Timestamp)return e;let t=new l.google.protobuf.Timestamp;return null!=e.seconds&&(a.Long?(t.seconds=a.Long.fromValue(e.seconds)).unsigned=!1:"string"===typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"===typeof e.seconds?t.seconds=e.seconds:"object"===typeof e.seconds&&(t.seconds=new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.seconds=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.seconds=t.longs===String?"0":0;n.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"===typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?a.Long.prototype.toString.call(e.seconds):t.longs===Number?new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})()},158:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(!1)},159:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n.n(r),i=n(1150),a=n(462),l=n(111),s=n(112),c=n(50),u=n(19),d=n(5);const p=Object(d.a)("div",{target:"e1xf8znw4"})((({theme:e})=>({fontFamily:e.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start"})),""),h=Object(d.a)("div",{target:"e1xf8znw3"})((()=>({div:{fontFamily:'"Source Sans Pro", sans-serif !important'}})),""),f=Object(d.a)("div",{target:"e1xf8znw2"})((({theme:e})=>({height:"1.8rem",borderRadius:e.radii.md,borderColor:e.colors.fadedText10,cursor:"pointer",boxShadow:"none",lineHeight:e.lineHeights.base,"&:focus":{outline:"none"},display:"flex"})),""),b=Object(d.a)("div",{target:"e1xf8znw1"})((({theme:e})=>({height:"1.8rem",width:"1.8rem",borderRadius:e.radii.md,borderColor:e.colors.fadedText10,borderWidth:"1px",borderStyle:"solid",padding:"2px 0.8rem",cursor:"pointer",lineHeight:e.lineHeights.base,"&:focus":{outline:"none"}})),""),m=Object(d.a)("div",{target:"e1xf8znw0"})((({theme:e})=>({display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"})),"");var g=n(1);class y extends o.a.PureComponent{constructor(...e){super(...e),this.state={value:this.props.value},this.onColorChange=e=>{this.setState({value:e.hex})},this.onColorClose=()=>{this.props.onChange(this.state.value)}}componentDidUpdate(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState({value:this.props.value})}componentDidCatch(e,t){if("SecurityError"!==(null===e||void 0===e?void 0:e.name))throw e;Object(u.d)(`Swallowing ColorPicker SecurityError '${e.name}: ${e.message}'`),this.forceUpdate()}render(){const{width:e,showValue:t,label:n,labelVisibility:r,help:o,disabled:u}=this.props,{value:d}=this.state,y=u?"not-allowed":"default",O={width:e,cursor:y},w={cursor:y,"pointer-events":u?"none":"auto"},j={backgroundColor:d,opacity:u?"0.4":""};return Object(g.jsxs)(p,{"data-testid":"stColorPicker",style:O,children:[Object(g.jsx)(l.d,{label:n,disabled:u,labelVisibility:r,children:o&&Object(g.jsx)(l.c,{children:Object(g.jsx)(s.a,{content:o,placement:c.b.TOP_RIGHT})})}),Object(g.jsx)(i.a,{onClose:this.onColorClose,content:()=>Object(g.jsx)(h,{children:Object(g.jsx)(a.a,{color:d,onChange:this.onColorChange,disableAlpha:!0})}),children:Object(g.jsxs)(f,{style:w,children:[Object(g.jsx)(b,{style:j}),t&&Object(g.jsx)(m,{children:d.toUpperCase()})]})})]})}}var O=y},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={transparent:"transparent",current:"currentColor",inherit:"inherit",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"}},169:function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return S}));var r=n(221),o=n.n(r),i=n(184),a=n(64),l=n(132);const s=new Intl.Collator("en",{numeric:!1,sensitivity:"base"});function c(e,t){return e<t?-1:e>t?1:0}function u(e,t){return s.compare(e,t)}function d(e,t,n){const r=e.get("data"),[o,i]=h(r);if(t<0||t>=i)throw new Error(`Bad sortColumnIdx ${t} (should be >= 0, < ${i})`);const l=r.getIn(["cols",t]),s=Object(a.b)(l,"type",{strings:u,doubles:c,int64s:c,datetimes:c,timedeltas:c}),d=new Array(o);for(let a=0;a<o;a+=1)d[a]=a;return d.sort(((e,o)=>{const i=m(r,t,e),a=m(r,t,o);return n?s(i,a):s(a,i)})),d}function p(e){const t=e?e.get("index"):null,n=e?e.get("data"):null,r=e?e.get("columns"):null,[o,i]=t?g(t):[0,0],[a,l]=r?g(r):[0,0],[s,c]=n?h(n):[0,l];if(0!==s&&s!==i||0!==c&&c!==l)throw new Error(`Dataframe dimensions don't align: rows(${s} != ${i}) OR cols(${c} != ${l})`);return{headerRows:a,headerCols:o,dataRows:s,dataCols:c,cols:o+c,rows:a+s}}function h(e){if(!e||!e.get("cols"))return[0,0];const t=e.get("cols").size;if(0===t)return[0,0];return[O(e.getIn(["cols",0])),t]}function f(e,t,n){const{headerRows:r,headerCols:i,dataRows:a}=p(e);if(t<i)return n<r?{contents:"",styles:{},type:"corner"}:{contents:y(e.get("index"),t,n-r),styles:{},type:"col-header"};if(n<r){let r={};if(a>0){"number"!==typeof b(e.get("data"),t-i,n)&&(r={...r,textAlign:"left"})}return{contents:y(e.get("columns"),n,t-i),styles:r,type:"row-header"}}const l=function(e,t,n){if(null==e)return;const r=e.getIn(["cols",t,"styles",n],void 0);if(null==r)return;return r.get("hasDisplayValue")?r.get("displayValue"):void 0}(e.get("style"),t-i,n-r),s=b(e.get("data"),t-i,n-r),c=null!=l?l:s;let u=function(e,t,n){if(null==e)return;const r=e.getIn(["cols",t,"styles",n,"css"],void 0);if(null==r)return;const i={};return r.forEach((e=>{const t=e.get("property");i[o()(t)]=e.get("value")})),i}(e.get("style"),t-i,n-r)||{};return"number"!==typeof s&&(u={...u,textAlign:"left"}),{contents:c,styles:u,type:"data"}}function b(e,t,n){return w(e.getIn(["cols",t]),n)}function m(e,t,n){return j(e.getIn(["cols",t])).get(n)}function g(e){return Object(a.a)(e,"type",{plainIndex:e=>[1,O(e.get("data"))],rangeIndex:e=>[1,e.get("stop")-e.get("start")],multiIndex:e=>0===e.get("labels").size?[0,0]:[e.get("labels").size,e.getIn(["labels",0,"data"]).size],int_64Index:e=>[1,e.getIn(["data","data"]).size],float_64Index:e=>[1,e.getIn(["data","data"]).size],datetimeIndex:e=>[1,e.getIn(["data","data"]).size],timedeltaIndex:e=>[1,e.getIn(["data","data"]).size]})}function y(e,t,n){const r=e.get("type");if("multiIndex"!==r&&0!==t)throw new Error(`Attempting to access level ${t} of a ${r}.`);return Object(a.a)(e,"type",{plainIndex:e=>w(e.get("data"),n),rangeIndex:e=>e.get("start")+n,multiIndex:e=>{const r=e.getIn(["levels",t]),o=e.getIn(["labels",t]).getIn(["data",n]);return o<0?"NaN":y(r,0,o)},int_64Index:e=>e.getIn(["data","data",n]),float_64Index:e=>e.getIn(["data","data",n]),datetimeIndex:e=>l.a.iso8601ToMoment(e.getIn(["data","data",n])),timedeltaIndex:e=>l.a.nanosToDuration(e.getIn(["data","data",n]))})}function O(e){return j(e).size}function w(e,t){const n=e=>e.get("data").get(t);return Object(a.a)(e,"type",{strings:n,doubles:n,int64s:n,datetimes:e=>l.a.iso8601ToMoment(n(e)),timedeltas:e=>l.a.nanosToDuration(n(e))})}function j(e){const t=e=>e.get("data");return Object(a.a)(e,"type",{strings:t,doubles:t,int64s:t,datetimes:t,timedeltas:t})}function S(e,t){const n=t.get("hasName")?t.get("name"):null,r=t.get("data"),o=function(e){return Object(a.a)(e,"type",{vegaLiteChart:e=>e.get("datasets"),_else:()=>null})}(e),[l,s]=function(e,t){if(null!=e){if(1===e.size){return[0,e.first()]}const n=e.findEntry((e=>e.get("hasName")&&e.get("name")===t));if(n)return n}return[-1,null]}(o,n);let c,u;if(t.get("hasName")){if(!s)return function(e,t){return Object(a.d)(e,"type",{vegaLiteChart:e=>e.update("datasets",(e=>e.push(t)))})}(e,t);c=s.get("data")}else{const t=function(e){return Object(a.a)(e,"type",{chart:e=>e.get("data"),dataFrame:e=>e,table:e=>e,arrowTable:e=>e,deckGlMap:e=>e.get("data"),vegaLiteChart:e=>e.get("data")})}(e);if(t)c=t;else{if(!s)return v(e,r);c=s.get("data")}}return null==c.get("data")&&(c=c.set("data",Object(i.a)({cols:[]})),c=c.set("style",Object(i.a)({cols:[]}))),u=c.get("data").get("cols").isEmpty()?r:c.update("index",(e=>function(e,t){if(0===k(e))return t;const n=e.get("type"),r=t.get("type");if(n!==r)throw new Error(`Cannot concatenate ${n} with ${r}.`);return Object(a.d)(e,"type",{plainIndex:e=>e.update("data",(e=>x(e,t.getIn(["plainIndex","data"])))),rangeIndex:e=>e.update("stop",(e=>e+k(t))),int_64Index:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["int_64Index","data","data"])))),float_64Index:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["float_64Index","data","data"])))),datetimeIndex:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["datetimeIndex","data","data"])))),timedeltaIndex:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["timedeltaIndex","data","data"]))))})}(e,r.get("index")))).updateIn(["data","cols"],(e=>e.zipWith(((e,t)=>x(e,t)),r.getIn(["data","cols"])))).updateIn(["style","cols"],(e=>e.zipWith(((e,t)=>function(e,t){if(0===e.get("styles").length)return t;return e.update("styles",(e=>e.concat(t.get("styles"))))}(e,t)),r.getIn(["style","cols"])))),s?function(e,t,n){return Object(a.d)(e,"type",{vegaLiteChart:e=>e.setIn(["datasets",t,"data"],n)})}(e,l,u):v(e,u)}function x(e,t){if(0===O(e))return t;const n=e.get("type"),r=t.get("type");if(n!==r)throw new Error(`Cannot concatenate ${n} and ${r}.`);return e.updateIn([n,"data"],(e=>e.concat(t.getIn([r,"data"]))))}function v(e,t){return Object(a.d)(e,"type",{chart:e=>e.set("data",t),dataFrame:()=>t,table:()=>t,arrowTable:()=>t,deckGlMap:e=>e.set("data",t),vegaLiteChart:e=>e.set("data",t)})}function k(e){return Object(a.a)(e,"type",{plainIndex:e=>O(e.get("data")),rangeIndex:e=>e.get("stop")-e.get("start"),multiIndex:e=>0===e.get("labels").size?0:e.getIn(["labels",0]).size,int_64Index:e=>e.getIn(["data","data"]).size,float_64Index:e=>e.getIn(["data","data"]).size,datetimeIndex:e=>e.getIn(["data","data"]).size,timedeltaIndex:e=>e.getIn(["data","data"]).size})}},18:function(e,t,n){"use strict";var r=n(148);n.d(t,"lightBaseUITheme",(function(){return r.b}));var o=n(346);n.d(t,"globalStyles",(function(){return o.a}));var i=n(347);n.o(i,"AUTO_THEME_NAME")&&n.d(t,"AUTO_THEME_NAME",(function(){return i.AUTO_THEME_NAME})),n.o(i,"CUSTOM_THEME_NAME")&&n.d(t,"CUSTOM_THEME_NAME",(function(){return i.CUSTOM_THEME_NAME})),n.o(i,"baseTheme")&&n.d(t,"baseTheme",(function(){return i.baseTheme})),n.o(i,"computeSpacingStyle")&&n.d(t,"computeSpacingStyle",(function(){return i.computeSpacingStyle})),n.o(i,"createAutoTheme")&&n.d(t,"createAutoTheme",(function(){return i.createAutoTheme})),n.o(i,"createPresetThemes")&&n.d(t,"createPresetThemes",(function(){return i.createPresetThemes})),n.o(i,"createTheme")&&n.d(t,"createTheme",(function(){return i.createTheme})),n.o(i,"darkTheme")&&n.d(t,"darkTheme",(function(){return i.darkTheme})),n.o(i,"getCachedTheme")&&n.d(t,"getCachedTheme",(function(){return i.getCachedTheme})),n.o(i,"getDefaultTheme")&&n.d(t,"getDefaultTheme",(function(){return i.getDefaultTheme})),n.o(i,"hasLightBackgroundColor")&&n.d(t,"hasLightBackgroundColor",(function(){return i.hasLightBackgroundColor})),n.o(i,"isPresetTheme")&&n.d(t,"isPresetTheme",(function(){return i.isPresetTheme})),n.o(i,"lightTheme")&&n.d(t,"lightTheme",(function(){return i.lightTheme})),n.o(i,"removeCachedTheme")&&n.d(t,"removeCachedTheme",(function(){return i.removeCachedTheme})),n.o(i,"setCachedTheme")&&n.d(t,"setCachedTheme",(function(){return i.setCachedTheme})),n.o(i,"toExportedTheme")&&n.d(t,"toExportedTheme",(function(){return i.toExportedTheme})),n.o(i,"toThemeInput")&&n.d(t,"toThemeInput",(function(){return i.toThemeInput}));var a=n(67);n.d(t,"AUTO_THEME_NAME",(function(){return a.a})),n.d(t,"CUSTOM_THEME_NAME",(function(){return a.b})),n.d(t,"computeSpacingStyle",(function(){return a.c})),n.d(t,"createTheme",(function(){return a.f})),n.d(t,"getCachedTheme",(function(){return a.g})),n.d(t,"getDefaultTheme",(function(){return a.h})),n.d(t,"hasLightBackgroundColor",(function(){return a.j})),n.d(t,"isPresetTheme",(function(){return a.k})),n.d(t,"removeCachedTheme",(function(){return a.l})),n.d(t,"setCachedTheme",(function(){return a.m})),n.d(t,"toExportedTheme",(function(){return a.n})),n.d(t,"toThemeInput",(function(){return a.o}));var l=n(348);n.d(t,"baseTheme",(function(){return l.a})),n.d(t,"createAutoTheme",(function(){return l.b})),n.d(t,"createPresetThemes",(function(){return l.c})),n.d(t,"darkTheme",(function(){return l.d})),n.d(t,"lightTheme",(function(){return l.e}))},19:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n(68);function o(...e){r.a&&console.log(...e)}function i(...e){r.a&&console.warn(...e)}function a(...e){console.error(...e)}function l(...e){console.log(...e)}},190:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var r=n(0),o=n(23),i=n(1);function a(e){const{disabled:t,element:n,widgetMgr:a,hasInProgressUpload:l,width:s}=e,{formId:c}=n,u={width:s};return Object(r.useEffect)((()=>(a.incrementSubmitButtonCount(c),()=>a.decrementSubmitButtonCount(c))),[a,c]),Object(i.jsx)("div",{className:"row-widget stButton","data-testid":"stFormSubmitButton",style:u,children:Object(i.jsx)(o.a,{help:n.help,children:Object(i.jsx)(o.d,{kind:o.b.FORM_SUBMIT,size:o.c.SMALL,disabled:t||l,onClick:()=>a.submitForm(n),children:n.label})})})}var l=n(5);const s=Object(l.a)("div",{target:"epcbefy2"})((()=>({display:"flex"})),""),c=Object(l.a)("div",{target:"epcbefy1"})((({theme:e})=>({border:`1px solid ${e.colors.fadedText10}`,borderRadius:e.radii.md,padding:"calc(1em - 1px)"})),""),u=Object(l.a)("div",{target:"epcbefy0"})((({theme:e})=>({marginTop:e.spacing.lg})),"");function d(e){const{width:t}=e,n={width:t};return Object(i.jsx)(s,{className:"row-widget",style:n,children:Object(i.jsx)(a,{...e})})}var p=n(124),h=n(51),f=n(37);function b(e){const{formId:t,widgetMgr:n,hasSubmitButton:o,children:a,width:l,scriptRunState:s,clearOnSubmit:d}=e;Object(r.useEffect)((()=>{n.setFormClearOnSubmit(t,d)}),[n,t,d]);const[b,m]=Object(r.useState)(!1);let g;return o&&b?m(!1):o||b||s!==f.a.NOT_RUNNING||m(!0),b&&(g=Object(i.jsx)(u,{children:Object(i.jsx)(p.a,{body:"**Missing Submit Button**\n\nThis form has no submit button, which means that user interactions will never be sent to your Streamlit app.\n\nTo create a submit button, use the `st.form_submit_button()` function.\n\nFor more information, refer to the [documentation for forms](https://docs.streamlit.io/library/api-reference/control-flow/st.form).",kind:h.a.ERROR,width:l})})),Object(i.jsxs)(c,{"data-testid":"stForm",children:[a,g]})}var m=n(33);class g{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),Object(m.i)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}},191:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n(87),i=n.n(o),a=n(61),l=n(1140),s=n(1141),c=n(41),u=n(53),d=n(5);const p=Object(d.a)("button",{target:"e19lei0e1"})((({isExpanded:e,theme:t})=>{const n=e?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:t.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:t.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:t.colors.fadedText60,borderRadius:"50%",...n,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:t.colors.bodyText,transition:"none"}}}),""),h=Object(d.a)("div",{target:"e19lei0e0"})((({theme:e,isExpanded:t})=>({"&:hover":{[p]:{opacity:1,transform:"scale(1)",transition:"none"}},...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.headerHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}})),"");var f=n(1);class b extends r.PureComponent{constructor(e){super(e),this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels(this.props.theme.sizes.headerHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:r,width:o,height:i}=this.props;let a=l.a,u=this.zoomIn,d="View fullscreen";return e&&(a=s.a,u=this.zoomOut,d="Exit fullscreen"),Object(f.jsxs)(h,{isExpanded:e,children:[Object(f.jsx)(p,{onClick:u,title:d,isExpanded:e,children:Object(f.jsx)(c.b,{content:a})}),r(e?{width:t,height:n,expanded:e}:{width:o,height:i,expanded:e})]})}}b.contextType=u.a,b.isFullScreen=!1;var m=Object(a.f)(b);var g=function(e){class t extends r.PureComponent{render(){const{width:t,height:n,...r}=this.props;return Object(f.jsx)(m,{width:t,height:n,children:({width:t,height:n,expanded:o})=>Object(f.jsx)(e,{width:t,height:n,isFullScreen:o,...r})})}}return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,i()(t,e)}},219:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));n(0);var r=n(15),o=n(89),i=n(41),a=n(51),l=n(1);function s(e){switch(e){case r.a.Format.ERROR:return a.a.ERROR;case r.a.Format.INFO:return a.a.INFO;case r.a.Format.SUCCESS:return a.a.SUCCESS;case r.a.Format.WARNING:return a.a.WARNING;default:throw new Error(`Unexpected alert type: ${e}`)}}function c({icon:e,body:t,kind:n,width:r}){return Object(l.jsx)("div",{className:"stAlert",children:Object(l.jsxs)(a.b,{width:r,kind:n,children:[e&&Object(l.jsx)(i.a,{size:"lg",children:e}),Object(l.jsx)(o.a,{source:t,allowHTML:!1})]})})}},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n(0),o=n.n(r),i=n(439),a=n.n(i),l=n(36),s=n(440),c=n.n(s),u=n(441),d=n.n(u),p=n(442),h=n.n(p),f=n(1137),b=n(443),m=n.n(b),g=n(444),y=n.n(g),O=n(53),w=n(1159),j=n(445),S=n.n(j),x=n(1136),v=n(5);const k=Object(v.a)("pre",{target:"e10mrw3y3"})((({theme:e})=>({margin:0,paddingRight:"2.75rem",color:e.colors.bodyText,".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:"slategray"},".token.punctuation":{color:"#999"},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:e.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:e.colors.green70},".token.number, .token.regex":{color:e.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:e.colors.green80},".token.operator, .token.entity":{color:e.colors.orange90},".token.url":{color:e.colors.purple80},".token.decorator, .token.atrule":{color:e.colors.orange90},".token.keyword, .token.tag":{color:e.colors.blue70},".token.function, .token.class-name, .token.selector":{color:e.colors.blue70,fontWeight:"bold"},".token.important":{color:e.colors.red70,fontWeight:"bold"},".token.comment":{color:e.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"}})),""),P=Object(v.a)("button",{target:"e10mrw3y2"})((({theme:e})=>({opacity:0,height:"2.5rem",padding:0,width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",backgroundColor:e.colors.transparent,color:e.colors.fadedText60,borderRadius:e.radii.xl,transform:"scale(0)","&:active, &:focus, &:hover":{opacity:1,transform:"scale(1)",outline:"none",color:e.colors.bodyText,transition:"none"}})),""),I=Object(v.a)("div",{target:"e10mrw3y1"})((({theme:e})=>({padding:`${e.spacing.sm} ${e.spacing.sm} 0 0`,top:0,right:0,position:"absolute",width:"2.75rem",height:"100%",backgroundColor:e.colors.transparent,zIndex:e.zIndices.sidebar+1})),""),C=Object(v.a)("div",{target:"e10mrw3y0"})((({theme:e})=>({position:"relative",marginLeft:e.spacing.none,marginRight:e.spacing.none,marginTop:e.spacing.none,marginBottom:e.spacing.lg,"&:hover":{[P]:{opacity:1,transform:"scale(1)",outline:"none",transition:"none"}}})),"");var V=n(1);class T extends r.PureComponent{constructor(...e){super(...e),this.button=Object(r.createRef)(),this.clipboard=null,this.componentDidMount=()=>{const e=this.button.current;null!==e&&(this.clipboard=new S.a(e))},this.componentWillUnmount=()=>{null!==this.clipboard&&this.clipboard.destroy()}}render(){return Object(V.jsx)(P,{title:"Copy to clipboard",ref:this.button,"data-clipboard-text":this.props.text,style:{top:0,right:0},children:Object(V.jsx)(x.a,{size:"16"})})}}var E=T;const A=({node:e,inline:t,className:n,children:r,...o})=>{const i=/language-(\w+)/.exec(n||""),a=String(r).trim().replace(/\n$/,"");return t?Object(V.jsx)("code",{className:n,...o,children:r}):Object(V.jsxs)(V.Fragment,{children:[a&&Object(V.jsx)(I,{children:Object(V.jsx)(E,{text:a})}),Object(V.jsx)(k,{children:Object(V.jsx)(w.a,{language:i&&i[1]||"",PreTag:"div",customStyle:{backgroundColor:"transparent"},style:{},children:a})})]})};function D({children:e}){return Object(V.jsx)(C,{className:"stCodeBlock",children:e})}var N=n(158),R=n(235);function M(e){return e.replace(/rem$/,"em")}const F=Object(v.a)("div",{target:"e16nr0p33"})((({theme:e,isCaption:t,isInSidebar:n})=>({fontFamily:e.genericFonts.bodyFont,marginBottom:`-${e.spacing.lg}`,a:{color:e.colors.linkText},p:{wordBreak:"break-word"},li:{margin:"0.2em 0 0.2em 1.2em",padding:"0 0 0 0.6em",fontSize:e.fontSizes.md},tr:{borderTop:`1px solid ${e.colors.fadedText10}`},"th, td":{padding:"6px 13px",border:`1px solid ${e.colors.fadedText10}`},...t?{color:n?e.colors.gray:e.colors.fadedText60,fontSize:e.fontSizes.sm,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:n?M(e.fontSizes.xl):"2.25em"},h2:{fontSize:n?M(e.fontSizes.lg):"1.75em"},h3:{fontSize:n?"1.125em":"1.25em"},"h4, h5, h6":{fontSize:"1em"}}:{}})),""),B=Object(v.a)("div",{target:"e16nr0p32"})((()=>({position:"relative",left:"calc(-2.5rem - 0.5rem)",width:"calc(100% + 2.5rem + 0.5rem)",display:"flex",alignItems:"center",overflow:"visible",":hover":{a:{opacity:1,transform:"scale(1)",transition:"none"}}})),""),L=Object(v.a)("a",{target:"e16nr0p31"})((({theme:e})=>({position:"absolute",marginRight:"0.5rem",lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",transform:"scale(0)",transition:"opacity 300ms 150ms, transform 300ms 150ms",opacity:0,height:"2.5rem",width:"2.5rem",zIndex:e.zIndices.sidebar+1,border:"none",backgroundColor:e.colors.lightenedBg05,borderRadius:"50%",svg:{stroke:e.colors.fadedText60},"&:hover svg":{stroke:e.colors.bodyText}})),""),_=Object(v.a)("span",{target:"e16nr0p30"})((()=>({position:"relative",flex:"1",marginLeft:"calc(2.5rem + 0.5rem)"})),"");n(1034);function z(e){return e}const W=Object(l.once)((e=>{e.scrollIntoView(!0)})),H=({tag:e,anchor:t,children:n,tagProps:r})=>{const i=o.a.useContext(N.a),[a,l]=o.a.useState(t),[s,c]=o.a.useState(null),{addScriptFinishedHandler:u,removeScriptFinishedHandler:d}=o.a.useContext(O.a);if(i)return o.a.createElement(e,r,n);const p=o.a.useCallback((()=>{null!==s&&window.setTimeout((()=>{W(s)}),300)}),[s]);o.a.useEffect((()=>(u(p),()=>{d(p)})),[u,d,p]);const h=o.a.useCallback((e=>{if(null===e)return;const n=t||((null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase().split(/[^A-Za-z0-9]/).filter(Boolean).join("-"))||"");var r;l(n),window.location.hash.slice(1)===n&&c(e)}),[t]);return o.a.createElement(e,{...r,ref:h,id:a},Object(V.jsxs)(B,{children:[a&&Object(V.jsx)(L,{href:`#${a}`,children:Object(V.jsx)(f.a,{size:"18"})}),Object(V.jsx)(_,{children:n})]}))},U=({node:e,children:t,level:n,...r})=>{const o=r["data-anchor"];return Object(V.jsx)(H,{tag:e.tagName,anchor:o,tagProps:r,children:t})};function $({allowHTML:e,source:t,overrideComponents:n}){const r={pre:D,code:A,a:G,h1:U,h2:U,h3:U,h4:U,h5:U,h6:U,...n||{}},o=[c.a,m.a,y.a],i=[h.a];return e&&i.push(d.a),Object(V.jsx)(R.a,{children:Object(V.jsx)(a.a,{remarkPlugins:o,rehypePlugins:i,components:r,transformLinkUri:z,children:t})})}class J extends r.PureComponent{constructor(...e){super(...e),this.componentDidCatch=()=>{const{source:e}=this.props;throw Object.assign(new Error,{name:"Error parsing Markdown or HTML in this string",message:Object(V.jsx)("p",{children:e}),stack:null})}}render(){const{source:e,allowHTML:t,style:n,isCaption:r}=this.props,o=this.context;return Object(V.jsx)(F,{isCaption:Boolean(r),isInSidebar:o,style:n,"data-testid":r?"stCaptionContainer":"stMarkdownContainer",children:Object(V.jsx)($,{source:e,allowHTML:t})})}}function G(e){const{href:t}=e;if(t&&t.startsWith("#")){const{children:t,node:n,...r}=e;return Object(V.jsx)("a",{...r,children:t})}const{title:n,children:r,node:o,target:i,rel:a,...l}=e;return Object(V.jsx)("a",{href:t,title:n,target:i||"_blank",rel:a||"noopener noreferrer",...l,children:r})}function q(e,t){switch(e.toLowerCase()){case"h1":return`# ${t}`;case"h2":return`## ${t}`;case"h3":return`### ${t}`;default:throw new Error(`Unrecognized tag for header: ${e}`)}}function Y(e){const{width:t}=e,{tag:n,anchor:i,body:a}=e.element,l=o.a.useContext(N.a),[s,...c]=a.split("\n");return Object(V.jsxs)("div",{className:"stMarkdown",style:{width:t},children:[Object(V.jsx)(H,{tag:n,anchor:i,children:Object(V.jsx)($,{source:q(n,s),allowHTML:!1,overrideComponents:{p:r.Fragment,h1:r.Fragment,h2:r.Fragment,h3:r.Fragment,h4:r.Fragment,h5:r.Fragment,h6:r.Fragment}})}),c.length>0&&Object(V.jsx)(F,{isCaption:Boolean(!1),isInSidebar:l,style:{width:t},"data-testid":"stMarkdownContainer",children:Object(V.jsx)($,{source:c.join("\n"),allowHTML:!1})})]})}J.contextType=N.a;t.b=J},23:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return x}));n(0);var r=n(5),o=n(20);let i,a;function l(e,t){switch(e){case a.XSMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case a.SMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case a.LARGE:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.LINK="link",e.ICON="icon",e.BORDERLESS_ICON="borderlessIcon",e.MINIMAL="minimal",e.FORM_SUBMIT="formSubmit",e.HEADER_BUTTON="header"}(i||(i={})),function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={}));const s=Object(r.a)("button",{target:"edgvbvh10"})((({fluidWidth:e,size:t,theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:n.fontWeights.normal,padding:`${n.spacing.xs} ${n.spacing.md}`,borderRadius:n.radii.md,margin:0,lineHeight:n.lineHeights.base,color:"inherit",width:e?"100%":"auto",userSelect:"none","&:focus":{boxShadow:`0 0 0 0.2rem ${Object(o.g)(n.colors.primary,.5)}`,outline:"none"},...l(t,n)})),""),c=Object(r.a)(s,{target:"edgvbvh9"})((({theme:e})=>({backgroundColor:e.colors.lightenedBg05,border:`1px solid ${e.colors.fadedText10}`,"&:hover":{borderColor:e.colors.primary,color:e.colors.primary},"&:active":{color:e.colors.white,borderColor:e.colors.primary,backgroundColor:e.colors.primary},"&:focus:not(:active)":{borderColor:e.colors.primary,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.fadedText40,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed"}})),""),u=Object(r.a)(s,{target:"edgvbvh8"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:`1px solid ${e.colors.transparent}`,"&:hover":{borderColor:e.colors.transparent,color:e.colors.primary},"&:active":{color:e.colors.primary,borderColor:e.colors.transparent,backgroundColor:e.colors.transparent},"&:focus:not(:active)":{borderColor:e.colors.transparent,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),d=Object(r.a)(s,{target:"edgvbvh7"})((({theme:e})=>({backgroundColor:e.colors.transparent,padding:0,border:"none",color:e.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:e.colors.transparent,color:e.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),p=Object(r.a)(s,{target:"edgvbvh6"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:"none",boxShadow:"none",padding:0,"&:hover, &:active, &:focus":{color:e.colors.primary}})),""),h=Object(r.a)(c,{target:"edgvbvh5"})(""),f=Object(r.a)(s,{target:"edgvbvh4"})((({size:e,theme:t})=>{const n={[a.XSMALL]:t.spacing.threeXS,[a.SMALL]:t.spacing.twoXS,[a.MEDIUM]:t.spacing.md,[a.LARGE]:t.spacing.lg};return{backgroundColor:t.colors.transparent,border:`1px solid ${t.colors.transparent}`,padding:n[e],"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{backgroundColor:t.colors.primary,borderColor:t.colors.primary,color:t.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),b=Object(r.a)(s,{target:"edgvbvh3"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:"none",padding:e.spacing.sm,fontSize:e.fontSizes.sm,marginLeft:e.spacing.threeXS,marginRight:e.spacing.threeXS,lineHeight:1,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${Object(o.g)(e.colors.gray90,.8)}`},"&:hover":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),m=Object(r.a)(s,{target:"edgvbvh2"})((({size:e,theme:t})=>{const n={[a.XSMALL]:t.spacing.threeXS,[a.SMALL]:t.spacing.twoXS,[a.MEDIUM]:t.spacing.md,[a.LARGE]:t.spacing.lg};return{backgroundColor:t.colors.transparent,border:`1px solid ${t.colors.transparent}`,padding:n[e],"&:focus":{boxShadow:"none",outline:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),g=Object(r.a)("div",{target:"edgvbvh1"})((({theme:e})=>({display:"block",[`@media (max-width: ${e.breakpoints.sm})`]:{display:"none"}})),""),y=Object(r.a)("div",{target:"edgvbvh0"})((({theme:e})=>({display:"none",[`@media (max-width: ${e.breakpoints.sm})`]:{display:"block"}})),"");var O=n(1);var w=function({kind:e,size:t,disabled:n,onClick:r,fluidWidth:o,children:l,autoFocus:s}){let g=c;return e===i.SECONDARY?g=u:e===i.LINK?g=d:e===i.ICON?g=f:e===i.BORDERLESS_ICON?g=m:e===i.MINIMAL?g=p:e===i.FORM_SUBMIT?g=h:e===i.HEADER_BUTTON&&(g=b),Object(O.jsx)(g,{kind:e,size:t||a.MEDIUM,fluidWidth:o||!1,disabled:n||!1,onClick:r||(()=>{}),autoFocus:s||!1,children:l})},j=n(112),S=n(50);function x({children:e,help:t}){return t?Object(O.jsxs)("div",{className:"stTooltipIcon",children:[Object(O.jsx)(g,{children:Object(O.jsx)(j.a,{content:t,placement:S.b.TOP,children:e})}),Object(O.jsx)(y,{children:e})]}):e}},233:function(e,t,n){"use strict";var r=n(94),o=n(20),i=n(16),a={...i.a,bgColor:i.a.white,bodyText:i.a.gray85,primary:i.a.red70,disabled:i.a.gray40,lightestGray:i.a.gray20,lightGray:i.a.gray30,gray:i.a.gray60,darkGray:i.a.gray70,red:i.a.red80,blue:i.a.blue80,green:i.a.green80,yellow:i.a.yellow80,warning:"#926C05",warningBg:Object(o.g)(i.a.yellow70,.9),success:i.a.green100,successBg:Object(o.g)(i.a.green70,.9),info:i.a.blue100,infoBg:Object(o.g)(i.a.blue70,.9),danger:i.a.red100,dangerBg:Object(o.g)(i.a.red80,.91)},l=n(67);t.a={...r.a,inSidebar:!1,genericColors:{...r.a.genericColors,...a},colors:Object(l.e)({...r.a.colors,...a})}},234:function(e,t,n){"use strict";var r=n(94),o=n(20),i=n(16),a={...i.a,bgColor:i.a.gray100,secondaryBg:i.a.gray90,bodyText:i.a.gray10,warning:i.a.yellow20,warningBg:Object(o.g)(i.a.yellow70,.8),success:i.a.green10,successBg:Object(o.g)(i.a.green60,.8),info:i.a.blue20,infoBg:Object(o.g)(i.a.blue60,.8),danger:i.a.red20,dangerBg:Object(o.g)(i.a.red60,.8),primary:i.a.red70,disabled:i.a.gray70,lightestGray:i.a.gray20,lightGray:i.a.gray30,gray:i.a.gray60,darkGray:i.a.gray70,red:i.a.red80,blue:i.a.blue80,green:i.a.green80,yellow:i.a.yellow80},l=n(67);t.a={...r.a,inSidebar:!1,genericColors:{...r.a.genericColors,...a},colors:Object(l.e)({...r.a.colors,...a})}},235:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(125),a=n(19),l=n(1);class s extends o.a.PureComponent{constructor(...e){super(...e),this.state={error:null},this.componentDidCatch=(e,t)=>{Object(a.b)(`${e.name}: ${e.message}\n${e.stack}`)}}render(){const{error:e}=this.state;return e?"ChunkLoadError"===e.name?Object(l.jsx)(i.a,{width:this.props.width,name:"Network issue",message:Object(l.jsxs)("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",Object(l.jsx)("br",{}),"To fix this, simply reload this app by pressing ",Object(l.jsx)("kbd",{children:"F5"}),", ",Object(l.jsx)("kbd",{children:"Ctrl+R"}),", or ",Object(l.jsx)("kbd",{children:"Cmd+R"}),".",Object(l.jsx)("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",Object(l.jsx)("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):Object(l.jsx)(i.a,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}}s.getDerivedStateFromError=e=>({error:e});var c=s},249:function(e,t,n){"use strict";var r=n(20),o=n(16);t.a={...o.a,bgColor:o.a.white,secondaryBg:o.a.gray20,bodyText:o.a.gray85,warning:o.a.yellow110,warningBg:Object(r.g)(o.a.yellow80,.8),success:o.a.green100,successBg:Object(r.g)(o.a.green80,.8),infoBg:Object(r.g)(o.a.blue70,.9),info:o.a.blue100,danger:o.a.red100,dangerBg:Object(r.g)(o.a.red70,.8),primary:o.a.red70,disabled:o.a.gray40,lightestGray:o.a.gray20,lightGray:o.a.gray30,gray:o.a.gray60,darkGray:o.a.gray70,red:o.a.red80,blue:o.a.blue80,green:o.a.green80,yellow:o.a.yellow80}},301:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));const r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts","allow-downloads"].join(" "),o=["accelerometer","ambient-light-sensor","autoplay","battery","camera","document-domain","encrypted-media","fullscreen","geolocation","gyroscope","layout-animations","legacy-image-formats","magnetometer","microphone","midi","oversized-images","payment","picture-in-picture","publickey-credentials-get","sync-xhr","usb","vr ","wake-lock","xr-spatial-tracking"].join("; ")},311:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);let o;!function(e){e.DANGER="danger"}(o||(o={}));const i=Object(r.a)("small",{target:"euu6i2w0"})((({kind:e,theme:t})=>{const{danger:n,fadedText60:r}=t.colors;return{color:e===o.DANGER?n:r,fontSize:t.fontSizes.sm,lineHeight:"1.25"}}),"")},313:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var r=n(0),o=n.n(r),i=n(1109),a=n(19),l=n(145),s=n(303),c=n(36),u=n.n(c),d=n(50),p=n(112),h=n(111),f=n(1);function b(e,t){return t?u()(e).filter((e=>Object(s.a)(t,e.label))).sortBy((e=>Object(s.b)(t,e.label))).reverse().value():e}class m extends o.a.PureComponent{constructor(...e){super(...e),this.state={isEmpty:!1,value:this.props.value},this.onChange=e=>{if(0===e.value.length)return void Object(a.d)("No value selected!");const[t]=e.value;this.setState({value:parseInt(t.value,10)},(()=>this.props.onChange(this.state.value)))},this.onInputChange=e=>{const t=e.target.value;this.setState({isEmpty:!t})},this.onClose=()=>{this.setState({isEmpty:!1})},this.filterOptions=(e,t)=>b(e,t)}componentDidUpdate(e){e.value!==this.props.value&&this.state.value!==this.props.value&&this.setState({value:this.props.value})}render(){const e={width:this.props.width},{label:t,labelVisibility:n,help:r}=this.props;let{disabled:o,options:a}=this.props,s=[{label:a.length>0?a[this.state.value]:"No options to select.",value:this.state.value.toString()}];this.state.isEmpty&&(s=[]),0===a.length&&(a=["No options to select."],o=!0);const c=a.map(((e,t)=>({label:e,value:t.toString()})));return Object(f.jsxs)("div",{className:"row-widget stSelectbox",style:e,children:[Object(f.jsx)(h.d,{label:t,labelVisibility:n,disabled:o,children:r&&Object(f.jsx)(h.b,{children:Object(f.jsx)(p.a,{content:r,placement:d.b.TOP_RIGHT})})}),Object(f.jsx)(i.a,{clearable:!1,disabled:o,labelKey:"label","aria-label":t||"",onChange:this.onChange,onInputChange:this.onInputChange,onClose:this.onClose,options:c,filterOptions:this.filterOptions,value:s,valueKey:"value",overrides:{Root:{style:()=>({lineHeight:1.4})},Dropdown:{component:l.a},ControlContainer:{style:()=>({borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"})},IconsContainer:{style:()=>({paddingRight:".5rem"})},ValueContainer:{style:()=>({paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"})},Input:{style:()=>({lineHeight:1.4})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:"1px"})}}}}}})]})}}t.a=m},33:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return O})),n.d(t,"o",(function(){return w})),n.d(t,"c",(function(){return j})),n.d(t,"i",(function(){return S})),n.d(t,"h",(function(){return x})),n.d(t,"a",(function(){return v})),n.d(t,"j",(function(){return k}));var r=n(15),o=n(36),i=n.n(o),a=n(426),l=n.n(a),s=n(427),c=n.n(s);function u(e,t){let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{t(...r),n=null}),e)}}function d(){return"true"===l.a.parse(window.location.href,!0).query.embed}function p(e){return new r.g({alert:{body:e,format:r.a.Format.INFO}})}function h(e){return new r.g({alert:{body:e,format:r.a.Format.ERROR}})}function f(e){return c.a.h32(e,3735928559).toString(16)}function b(e){if(null==e)throw new Error("value is null");return e}function m(e){return void 0!==e}function g(e){return null!==e&&void 0!==e}function y(){return/Mac/i.test(navigator.platform)}function O(){return/^Win/i.test(navigator.platform)}function w(e,t,n){const r=t?n:new Date,o=r?`expires=${r.toUTCString()};`:"";document.cookie=`${e}=${t};${o}path=/`}function j(e){return i.a.get(e,[b(e.type),"id"])}function S(e){return null!=e&&e.length>0}function x(e){return S(e.formId)}let v;function k(e){switch(e){case r.m.LabelVisibilityOptions.VISIBLE:return v.Visible;case r.m.LabelVisibilityOptions.HIDDEN:return v.Hidden;case r.m.LabelVisibilityOptions.COLLAPSED:return v.Collapsed;default:return v.Visible}}!function(e){e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Collapsed=2]="Collapsed"}(v||(v={}))},346:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(20);const i=e=>Object(r.b)("a,a:visited{color:",e.colors.primary,";}a:hover,a:active{color:",e.colors.primary,";text-decoration:underline;}iframe{border:none;padding:0;margin:0;}code{padding:0.2em 0.4em;margin:0;border-radius:",e.radii.md,";background:",e.colors.codeHighlightColor,";color:",e.colors.codeTextColor,";}pre{margin:0 0 1rem 0;background:",e.colors.codeHighlightColor,";border-radius:",e.radii.md,";padding:1rem;code{background:transparent;border:0;display:inline;font-size:",e.fontSizes.sm,";line-height:inherit;margin:0;padding:0;white-space:pre;word-break:normal;word-wrap:normal;overflow-x:auto;color:",e.colors.codeTextColor,";}}.disabled{color:",e.colors.disabled,";}#vg-tooltip-element{font-family:",e.genericFonts.bodyFont,";color:",e.colors.bodyText,";border:1px solid ",e.colors.fadedText10,";background-color:",Object(o.g)(e.colors.bgColor,.05),";font-size:",e.fontSizes.sm,";box-shadow:rgb(0 0 0 / 16%) 0px 1px 4px;padding:",e.spacing.xs," ",e.spacing.md,";border-radius:",e.radii.md,";z-index:",e.zIndices.fullscreenWrapper,";}#vg-tooltip-element td{border:none;}#vg-tooltip-element table tr td.key{color:",e.colors.fadedText60,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",e.genericFonts.bodyFont,";font-weight:",e.fontWeights.normal,";line-height:",e.lineHeights.base,";color:",e.colors.bodyText,";background-color:",e.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",Object(o.g)(e.colors.black,1),';-webkit-font-smoothing:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important;}hr{margin:2em 0;padding:0;color:inherit;background-color:transparent;border:none;border-bottom:1px solid ',e.colors.fadedText10,";}hr:not([size]){height:1px;}h1{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.extrabold,";color:",e.colors.headingColor,";padding:1.25rem 0 1rem 0;margin:0;line-height:1.2;}h2{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:1rem 0 1rem 0;margin:0;line-height:1.2;}h3{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:0.5rem 0 1rem 0;margin:0;line-height:1.2;}h4{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0.75rem 0 1rem 0;margin:0;line-height:1.2;}h5{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}h6{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none;}address{margin-bottom:1rem;font-style:normal;line-height:inherit;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:400;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}dt{font-size:1rem;font-weight:600;margin:1em 0 0.2em 0;padding:0;}dd{margin:0 0 0.2em 1.2em;font-size:1rem;}b,strong{font-weight:",e.fontWeights.bold,";}mark{padding:0.2em;background-color:",e.colors.secondaryBg,";}sub,sup{position:relative;line-height:0;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}a{color:",e.colors.primary,";text-decoration:underline;&:hover{color:",Object(o.a)(e.colors.primary,.15),";}}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}pre,code,kbd{font-family:",e.genericFonts.codeFont,";}samp{font-family:",e.genericFonts.codeFont,";}samp,blockquote{margin:1em 0 1em -1px;padding:0 0 0 1.2em;font-size:1rem;border-left:1px solid ",e.colors.lightGray,";}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;color:",Object(o.e)(e.colors.bgColor),";-ms-overflow-style:scrollbar;code{color:inherit;word-break:normal;}}code{color:",e.colors.codeTextColor,";word-wrap:break-word;a>&{color:inherit;}}kbd{padding:0.2rem 0.4rem;color:",e.colors.codeTextColor,";background-color:",e.colors.codeHighlightColor,";}figure{margin:0 0 1rem;}img,svg{vertical-align:middle;}table{caption-side:bottom;border-collapse:collapse;}table caption{padding-top:",e.spacing.sm,";padding-bottom:0;color:",e.colors.gray60,';text-align:left;}th{text-align:inherit;text-align:-webkit-match-parent;}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0;}label{display:inline-block;}button{border-radius:0;}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;}button,input{overflow:visible;}button,select{text-transform:none;}[role="button"]{cursor:pointer;}select{word-wrap:normal;}[list]::-webkit-calendar-picker-indicator{display:none;}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}::-moz-focus-inner{padding:0;border-style:none;}textarea{resize:vertical;}fieldset{min-width:0;padding:0;margin:0;border:0;}legend{float:left;width:100%;padding:0;margin-bottom:',e.spacing.sm,';line-height:inherit;white-space:normal;+*{clear:left;}}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0;}::-webkit-inner-spin-button{height:auto;}[type="search"]{outline-offset:-2px;-webkit-appearance:textfield;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-color-swatch-wrapper{padding:0;}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button;}output{display:inline-block;}iframe{border:0;}summary{display:list-item;cursor:pointer;}progress{vertical-align:baseline;}[hidden]{display:none!important;}::-webkit-scrollbar{background:transparent;border-radius:100px;height:6px;width:6px;}::-webkit-scrollbar:active{background:',e.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",e.colors.fadedText40,";border-radius:100px;}","")},347:function(e,t){},348:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return m}));var r=n(308),o=n(307),i=n(1110),a=n(467),l=n(148),s=n(94),c=n(233),u=n(234),d=n(67);const p={name:"base",emotion:s.a,baseweb:r.a,basewebTheme:l.b,primitives:o.a},h={name:"Dark",emotion:u.a,baseweb:i.a,basewebTheme:l.a,primitives:a.a},f={name:"Light",emotion:c.a,baseweb:r.a,basewebTheme:l.b,primitives:o.a},b=()=>({...Object(d.i)(),name:d.a}),m=()=>[b(),f,h]},35:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33);class o{static get current(){if(!o.singleton)throw new Error("Tried to use SessionInfo before it was initialized");return o.singleton}static set current(e){o.singleton=e}static isSet(){return null!=o.singleton}static get isHello(){return"streamlit hello"===this.current.commandLine}static clearSession(){o.singleton=void 0}static fromNewSessionMessage(e){const t=e.initialize,n=e.config,i=t.userInfo,a=t.environmentInfo;return new o({appId:Object(r.d)(i.installationIdV3+e.mainScriptPath),sessionId:t.sessionId,streamlitVersion:a.streamlitVersion,pythonVersion:a.pythonVersion,installationId:i.installationId,installationIdV3:i.installationIdV3,authorEmail:i.email,maxCachedMessageAge:n.maxCachedMessageAge,commandLine:t.commandLine,userMapboxToken:n.mapboxToken})}constructor({appId:e,sessionId:t,streamlitVersion:n,pythonVersion:r,installationId:o,installationIdV3:i,authorEmail:a,maxCachedMessageAge:l,commandLine:s,userMapboxToken:c}){if(this.appId=void 0,this.sessionId=void 0,this.streamlitVersion=void 0,this.pythonVersion=void 0,this.installationId=void 0,this.installationIdV3=void 0,this.authorEmail=void 0,this.maxCachedMessageAge=void 0,this.commandLine=void 0,this.userMapboxToken=void 0,null==e||null==t||null==n||null==r||null==o||null==i||null==a||null==l||null==s||null==c)throw new Error("SessionInfo arguments must be non-null");this.appId=e,this.sessionId=t,this.streamlitVersion=n,this.pythonVersion=r,this.installationId=o,this.installationIdV3=i,this.authorEmail=a,this.maxCachedMessageAge=l,this.commandLine=s,this.userMapboxToken=c}}o.singleton=void 0},37:function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.NOT_RUNNING="notRunning",e.RUNNING="running",e.RERUN_REQUESTED="rerunRequested",e.STOP_REQUESTED="stopRequested",e.COMPILATION_ERROR="compilationError"}(r||(r={}))},407:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(0);const o=e=>{const t=Object(r.useRef)();return Object(r.useEffect)((()=>{t.current=e}),[e]),t.current},i=e=>{const{current:t}=e,[n,o]=Object(r.useState)(!1);return Object(r.useEffect)((()=>{if(t){const{scrollHeight:e,clientHeight:n}=t;o(e>n)}})),n}},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u}));n(0);var r=n(5),o=n(146),i=n(18);const a=Object(r.a)("span",{shouldForwardProp:e=>Object(o.a)(e)&&!["size","as"].includes(e),target:"e1fb0mya1"})((({color:e,size:t,margin:n,padding:r,theme:o})=>({color:o.colors[e],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:o.iconSizes[t],width:o.iconSizes[t],height:o.iconSizes[t],margin:Object(i.computeSpacingStyle)(n,o),padding:Object(i.computeSpacingStyle)(r,o)})),""),l=Object(r.a)("span",{target:"e1fb0mya0"})((({size:e,margin:t,padding:n,theme:r})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:Object(i.computeSpacingStyle)(t,r),padding:Object(i.computeSpacingStyle)(n,r)})),"");var s=n(1);const c=({size:e,margin:t,padding:n})=>({size:e||"md",margin:t||"",padding:n||""}),u=({size:e,margin:t,padding:n,children:r})=>Object(s.jsx)(l,{"aria-hidden":"true",...c({size:e,margin:t,padding:n}),children:r});var d=({content:e,color:t,size:n,margin:r,padding:o})=>Object(s.jsx)(a,{as:e,color:t||"inherit","aria-hidden":"true",...c({size:n,margin:r,padding:o})})},44:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));const r="https://streamlit.io",o="https://share.streamlit.io/deploy",i="https://streamlit.io/cloud",a="https://docs.streamlit.io",l="https://discuss.streamlit.io",s="https://streamlit.io/for-teams",c="https://github.com/streamlit/streamlit/issues/new/choose",u="https://docs.streamlit.io/library/components",d="https://docs.streamlit.io/knowledge-base/using-streamlit/enable-camera",p=["devel.streamlit.test","share.streamlit.io","share-demo.streamlit.io","share-head.streamlit.io","share-staging.streamlit.io","*.demo.streamlit.run","*.head.streamlit.run","*.staging.streamlit.run","*.streamlitapp.test","*.streamlitapp.com","*.streamlit.run"]},50:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),i=n(61),a=n(18),l=n(1160),s=n(29),c=n(5),u=n(20);const d=Object(c.a)("div",{target:"e1wqxbhn2"})({name:"87mhkc",styles:"display:table;table-layout:fixed;width:100%"}),p=Object(c.a)("div",{target:"e1wqxbhn1"})({"@media (min-width: 768px)":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},display:"table-cell"},""),h=Object(c.a)("div",{target:"e1wqxbhn0"})((({theme:e})=>({boxSizing:"border-box",fontSize:`${e.fontSizes.sm}`,maxWidth:`calc(${e.sizes.contentMaxWidth} - 4rem)`,maxHeight:"300px",overflow:["auto","overlay"],padding:`${e.spacing.xs} ${e.spacing.md}`,[`@media (max-width: ${e.breakpoints.sm})`]:{maxWidth:"calc(100% - 2rem)"},img:{maxWidth:"100%"},code:{background:Object(u.g)(e.colors.darkenedBgMix100,.8)},"*":{fontSize:`${e.fontSizes.sm} !important`}})),"");var f=n(1);let b;!function(e){e.AUTO="auto",e.TOP_LEFT="topLeft",e.TOP="top",e.TOP_RIGHT="topRight",e.RIGHT_TOP="rightTop",e.RIGHT="right",e.RIGHT_BOTTOM="rightBottom",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottomLeft",e.LEFT_BOTTOM="leftBottom",e.LEFT="left",e.LEFT_TOP="leftTop"}(b||(b={}));var m=function({content:e,placement:t,children:n,inline:r,style:o}){const c=Object(i.c)(),{colors:u,fontSizes:d}=c;return Object(f.jsx)(l.a,{content:e?Object(f.jsx)(h,{children:e}):null,placement:s.f[t],accessibilityType:s.a.tooltip,showArrow:!1,popoverMargin:10,overrides:{Body:{style:{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem",borderBottomLeftRadius:"0.25rem",borderBottomRightRadius:"0.25rem",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:Object(a.hasLightBackgroundColor)(c)?u.bgColor:u.secondaryBg,color:u.bodyText,fontSize:d.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:Object(f.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:r?"flex-end":"",...o},"data-testid":"tooltipHoverTarget",children:n})})};var g=function({content:e,placement:t,children:n,inline:i,style:a}){const l=o.a.useRef(null),[s,c]=Object(r.useState)(!1);return o.a.useEffect((()=>{const e=!!(null===l||void 0===l?void 0:l.current)&&l.current.offsetWidth<l.current.scrollWidth;e!==s&&c(e)}),[n,s]),Object(f.jsx)(m,{content:s?e:"",placement:t,inline:i,children:Object(f.jsx)(d,{children:Object(f.jsx)(p,{ref:l,style:a,children:n})})})}},51:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));n(0);var r=n(48),o=n(1161),i=n(5);const a=Object(i.a)("div",{target:"e13vu3m50"})((({theme:e})=>({display:"flex",gap:e.spacing.sm,"& > span":{position:"relative",top:"2px"},pre:{backgroundColor:e.colors.transparent,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,border:`1px solid ${e.colors.fadedText10}`,"pre, code":{backgroundColor:e.colors.transparent,color:"inherit"}},code:{backgroundColor:e.colors.transparent,padding:e.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}})),"");var l=n(1);let s;function c(e){switch(e){case s.ERROR:return r.a.negative;case s.INFO:return r.a.info;case s.SUCCESS:return r.a.positive;case s.WARNING:return r.a.warning;default:throw new Error(`Unexpected alert type: ${e}`)}}function u({kind:e,width:t,children:n}){return Object(l.jsx)(o.a,{kind:c(e),overrides:{Body:{style:{marginTop:0,marginBottom:0,width:t?t.toString():void 0,border:0}},InnerContainer:{style:{width:"100%",lineHeight:"1.5"}}},children:Object(l.jsx)(a,{children:n})})}!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(s||(s={}))},53:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(15),a=n(18),l=n(85);t.a=o.a.createContext({wideMode:!1,layout:i.q.Layout.CENTERED,initialSidebarState:i.q.SidebarState.AUTO,embedded:!1,isFullScreen:!1,setFullScreen:e=>{},addScriptFinishedHandler:e=>{},removeScriptFinishedHandler:e=>{},activeTheme:a.baseTheme,setTheme:e=>{},availableThemes:[],addThemes:e=>{},sidebarChevronDownshift:0,getBaseUriParts:l.c})},58:function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",e.INITIAL="INITIAL",e.PINGING_SERVER="PINGING_SERVER",e.CONNECTING="CONNECTING"}(r||(r={}))},64:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l}));var r=n(184);function o(e,t){const n=e.toObject(t,{defaults:!0,oneofs:!0});return Object(r.a)(n)}function i(e,t,n){const r=e.get(t);if(r in n)return n[r](e.get(r));if(n._else)return n._else();throw new Error(`Cannot handle ${t} "${r}".`)}function a(e,t,n){const r=e.get(t);if(r in n)return e.update(r,n[r]);throw new Error(`Cannot handle ${t} "${r}".`)}function l(e,t,n){const r=e.get(t);if(r in n)return n[r];throw new Error(`Cannot handle ${t} "${r}".`)}},66:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return s}));const r={sansSerif:'"Source Sans Pro", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif Pro", serif'},o={bodyFont:r.sansSerif,codeFont:r.monospace,headingFont:r.sansSerif},i={twoSm:"12px",sm:"14px",md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",twoSmPx:12,smPx:14},a={normal:400,bold:600,extrabold:700},l={normal:"normal",none:1,tight:1.25,table:1.5,base:1.6,menuItem:2},s={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j})),n.d(t,"k",(function(){return S})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return I})),n.d(t,"o",(function(){return V})),n.d(t,"n",(function(){return T})),n.d(t,"f",(function(){return A})),n.d(t,"i",(function(){return D})),n.d(t,"g",(function(){return R})),n.d(t,"m",(function(){return M})),n.d(t,"l",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"c",(function(){return _})),n.d(t,"j",(function(){return z}));var r=n(307),o=n(1130),i=n(20),a=n(221),l=n.n(a),s=n(428),c=n.n(s),u=n(299),d=n.n(u),p=n(218),h=n.n(p),f=n(15),b=n(19);const m=`stActiveTheme-${window.location.pathname}`,g={CACHED_THEME_VERSION:1,CACHED_THEME_BASE_KEY:m,ACTIVE_THEME:`${m}-v1`};var y=n(18),O=n(66);const w="Use system setting",j="Custom Theme",S=e=>Object(y.createPresetThemes)().map((e=>e.name)).includes(e.name),x=e=>{const t=Object.keys(O.c).find((t=>O.c[t]===e)),n=f.e.FontFamily.SANS_SERIF;if(t){const e=c()(t).toUpperCase();return e in f.e.FontFamily?f.e.FontFamily[e]:n}return n},v=e=>null!==e&&void 0!==e&&e in f.e.FontFamily?O.c[l()(f.e.FontFamily[e].toString())]:void 0,k=(e,t=r.a)=>Object(o.a)(((e,t)=>{const{colors:n,genericFonts:r}=t;return{...e,primaryFontFamily:r.bodyFont,primary100:n.primary,primary200:n.primary,primary300:n.primary,primary400:n.primary,primary500:n.primary,primary600:n.primary,primary700:n.primary,mono100:n.bgColor,mono200:n.secondaryBg,mono300:n.lightGray,mono400:n.lightGray,mono500:n.gray,mono600:n.fadedText40,mono700:n.gray,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black,rating200:"#FFE1A5",rating400:"#FFC043"}})(t,e),(e=>{const{inSidebar:t,colors:n,genericFonts:r,fontSizes:o,lineHeights:a,radii:l}=e,s={fontFamily:r.bodyFont,fontSize:o.md,fontSizeSm:o.sm,fontWeight:"normal",lineHeight:a.base,lineHeightTight:a.tight};return{borders:{radius100:l.md,radius200:l.md,radius300:l.md,radius400:l.md,buttonBorderRadius:l.md,inputBorderRadius:l.md,popoverBorderRadius:l.md,surfaceBorderRadius:l.md},typography:{font100:{},font150:{...s},font200:{},font250:{},font300:{...s},font350:{...s},font400:{...s},font450:{...s},font460:{...s},font470:{...s},font500:{...s},font600:{},LabelXSmall:{...s},LabelSmall:{...s},LabelMedium:{...s},LabelLarge:{...s},ParagraphSmall:{...s}},colors:{white:n.white,black:n.black,primary:n.primary,primaryA:n.primary,backgroundPrimary:n.bgColor,backgroundSecondary:n.secondaryBg,backgroundTertiary:n.bgColor,borderOpaque:n.darkenedBgMix25,accent:Object(i.g)(n.primary,.5),tagPrimarySolidBackground:n.primary,tagPrimaryFontDisabled:n.fadedText40,tagPrimaryOutlinedDisabled:n.transparent,borderFocus:n.primary,contentPrimary:n.bodyText,inputPlaceholder:n.fadedText60,tickFillDisabled:n.fadedText40,tickMarkFill:n.lightestGray,tickFillSelected:n.primary,datepickerBackground:t?n.secondaryBg:n.bgColor,calendarBackground:t?n.secondaryBg:n.bgColor,calendarForeground:n.bodyText,calendarDayForegroundPseudoSelected:n.bodyText,calendarHeaderBackground:t?n.bgColor:n.secondaryBg,calendarHeaderBackgroundActive:t?n.bgColor:n.secondaryBg,calendarHeaderForeground:n.bodyText,calendarHeaderForegroundDisabled:n.gray40,calendarDayBackgroundSelected:n.primary,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelected:n.white,calendarDayForegroundSelectedHighlighted:n.white,calendarDayForegroundPseudoSelectedHighlighted:n.bodyText,menuFontHighlighted:n.bodyText,modalCloseColor:n.bodyText,notificationInfoBackground:n.alertInfoBackgroundColor,notificationInfoText:n.alertInfoTextColor,notificationPositiveBackground:n.alertSuccessBackgroundColor,notificationPositiveText:n.alertSuccessTextColor,notificationWarningBackground:n.alertWarningBackgroundColor,notificationWarningText:n.alertWarningTextColor,notificationNegativeBackground:n.alertErrorBackgroundColor,notificationNegativeText:n.alertErrorTextColor,progressbarTrackFill:n.secondaryBg,tickFill:n.lightenedBg05,tickMarkFillDisabled:n.lightenedBg05,menuFill:e.inSidebar?n.secondaryBg:n.bgColor,buttonDisabledFill:n.lightenedBg05,tickFillHover:n.secondaryBg,inputFillDisabled:n.secondaryBg,inputFillActive:n.secondaryBg,toggleTrackFillDisabled:n.secondaryBg,tickFillActive:n.secondaryBg,sliderTrackFillDisabled:n.secondaryBg,inputBorder:n.secondaryBg,inputFill:n.secondaryBg,inputEnhanceFill:n.secondaryBg,inputEnhancerFillDisabled:n.secondaryBg,buttonDisabledSpinnerBackground:n.gray40,toggleTrackFill:n.gray40,sliderTrackFill:n.gray40,sliderHandleInnerFill:n.gray40,sliderHandleInnerFillDisabled:n.gray40}}})(e)),P=e=>{const{bodyText:t,secondaryBg:n,bgColor:r}=e,o=Object(i.b)(r)>.5,a=o?e.blue:Object(i.c)(e.blue,.2),l=Object(i.g)(t,.9),s=Object(i.g)(t,.8),c=Object(i.g)(t,.7),u=Object(i.g)(t,.6),d=Object(i.g)(t,.4),p=Object(i.d)(r,n,.5),h=o?Object(i.a)(p,.3):Object(i.c)(p,.6);return{linkText:a,fadedText05:l,fadedText10:s,fadedText20:c,fadedText40:u,fadedText60:d,bgMix:p,darkenedBgMix100:h,darkenedBgMix25:Object(i.g)(h,.75),darkenedBgMix15:Object(i.g)(h,.85),lightenedBg05:Object(i.c)(r,.025)}},I=e=>{const t=P(e);return{...e,...t,alertErrorBorderColor:e.dangerBg,alertErrorBackgroundColor:e.dangerBg,alertErrorTextColor:e.danger,alertInfoBorderColor:e.infoBg,alertInfoBackgroundColor:e.infoBg,alertInfoTextColor:e.info,alertSuccessBorderColor:e.successBg,alertSuccessBackgroundColor:e.successBg,alertSuccessTextColor:e.success,alertWarningBorderColor:e.warningBg,alertWarningBackgroundColor:e.warningBg,alertWarningTextColor:e.warning,codeTextColor:e.green80,codeHighlightColor:t.bgMix,docStringModuleText:e.bodyText,docStringContainerBackground:Object(i.g)(e.secondaryBg,.6),headingColor:e.bodyText}},C=e=>{const t=(new Option).style;return t.color=e,""!==t.color},V=e=>{const{colors:t,genericFonts:n}=e;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,font:x(n.bodyFont)}},T=e=>{const{genericColors:t}=e,n=V(e);return{primaryColor:n.primaryColor,backgroundColor:n.backgroundColor,secondaryBackgroundColor:n.secondaryBackgroundColor,textColor:n.textColor,base:(r=n.backgroundColor,void 0===r||Object(i.b)(r)>.5?"light":"dark"),font:v(n.font),...P(t)};var r},E=(e,t)=>new f.e({...V(t.emotion),...e}),A=(e,t,n,r=!1)=>{const o=(t=n?E(t,n):t.base===f.e.BaseTheme.DARK?E(t,y.darkTheme):E(t,y.lightTheme)).backgroundColor,a=h()(d()(Object(i.b)(o)>.5?y.lightTheme:y.darkTheme),{emotion:{inSidebar:r}}),l=((e,t=y.baseTheme)=>{const{genericColors:n,genericFonts:r}=t.emotion,{font:o,...i}=e,a=v(o),l=Object.entries(i).reduce(((e,[t,n])=>(C(n)?e[t]=n:C(`#${n}`)&&(e[t]=`#${n}`),e)),{}),{secondaryBackgroundColor:s,backgroundColor:c,primaryColor:u,textColor:d}=l,p={...n,...u&&{primary:u},...d&&{bodyText:d},...s&&{secondaryBg:s},...c&&{bgColor:c}};return{...t.emotion,colors:I(p),genericColors:p,genericFonts:{...r,...a&&{bodyFont:a,headingFont:a}}}})(t,a);return{...a,name:e,emotion:l,basewebTheme:k(l,a.primitives)}},D=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?y.darkTheme:y.lightTheme,N=()=>{const e="testData";try{const{localStorage:t}=window;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch(t){return!1}return!0},R=()=>{if(!N())return null;const e=window.localStorage.getItem(g.ACTIVE_THEME);if(!e)return null;const{name:t,themeInput:n}=JSON.parse(e);switch(t){case y.lightTheme.name:return y.lightTheme;case y.darkTheme.name:return y.darkTheme;default:return A(t,n)}},M=e=>{if(!N())return;(()=>{const{CACHED_THEME_VERSION:e,CACHED_THEME_BASE_KEY:t}=g,{localStorage:n}=window;n.removeItem("stActiveTheme"),n.removeItem(t);for(let r=1;r<e;r++)n.removeItem(`${t}-v${e}`)})();const t={name:e.name,...!S(e)&&{themeInput:V(e.emotion)}};window.localStorage.setItem(g.ACTIVE_THEME,JSON.stringify(t))},F=()=>{N()&&window.localStorage.removeItem(g.ACTIVE_THEME)},B=()=>{const e=R();return e&&e.name!==w?e:Object(y.createAutoTheme)()},L=/\s+/;function _(e,t){return""===e?"":e.split(L).map((e=>"0"===e?t.spacing.none:e in t.spacing?t.spacing[e]:(Object(b.b)(`Invalid spacing value: ${e}`),t.spacing.none))).join(" ")}function z(e){return Object(i.b)(e.colors.bgColor)>.5}},68:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));const r=8501,o=3e3===+window.location.port,i=!1},75:function(e,t,n){"use strict";function r(e){return e instanceof Error?e:new Error(`${e}`)}n.d(t,"a",(function(){return r}))},85:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return f}));n(36);var r=n(68),o=n(425),i=n.n(o);const a=/\/+$/,l=/^\/+/;function s(){const e=window.location.hostname;let t;t=r.a?r.c:window.location.port?Number(window.location.port):d()?443:80;return{host:e,port:t,basePath:window.location.pathname.replace(a,"").replace(l,"")}}function c({host:e,port:t,basePath:n},r){return`${d()?"https":"http"}://${e}:${t}/${u(n,r)}`}function u(e,t){return e=e.replace(a,"").replace(l,""),t=t.replace(a,"").replace(l,""),0===e.length?t:`${e}/${t}`}function d(){return window.location.href.startsWith("https://")}function p(e){const t=e.substring("data:image/svg+xml,".length);return i.a.sanitize(t,{})}function h(e,t){return t||(t=s()),e.startsWith("/media")?c(t,e):e}function f(e,t){if(e===t)return!0;const n=e.split("."),r=t.split(".");return n.length===r.length&&n.every(((e,t)=>"*"===e||e===r[t]))}},88:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"e",(function(){return R})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return B})),n.d(t,"h",(function(){return L})),n.d(t,"j",(function(){return _})),n.d(t,"g",(function(){return z})),n.d(t,"b",(function(){return G}));var r=n(298),o=n(156);function i(e,t){if(function(e){try{return new URL(e),!0}catch(t){return!1}}(e))return e;if(e.startsWith("./")){if(null==t)throw new Error("baseUrl is null");return o.URLExt.join(t,e)}const n=t?new URL(t).origin:window.location.origin;return o.URLExt.join(n,e)}var a=n.p+"pypi/tornado-6.2-py3-none-any.whl",l=n.p+"pypi/stlite_pyarrow-0.1.0-py3-none-any.whl",s=n.p+"pypi/streamlit-1.13.0-py2.py3-none-any.whl",c=n(424),u=n.n(c);function d(){return u()('!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=3)}([function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,o="/"===s.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),s=Math.min(o.length,i.length),a=s,l=0;l<s;l++)if(o[l]!==i[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(2))},function(e,t,n){!function(e){"use strict";e.JSONExt=void 0,function(e){function t(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function r(e){return!t(e)&&!n(e)}function o(e,r){if(e===r)return!0;if(t(e)||t(r))return!1;var o=n(e),i=n(r);return o===i&&(o&&i?s(e,r):a(e,r))}function i(e){return t(e)?e:n(e)?l(e):c(e)}function s(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;++n)if(!o(e[n],t[n]))return!1;return!0}function a(e,t){if(e===t)return!0;for(var n in e)if(void 0!==e[n]&&!(n in t))return!1;for(var n in t)if(void 0!==t[n]&&!(n in e))return!1;for(var n in e){var r=e[n],i=t[n];if(void 0!==r||void 0!==i){if(void 0===r||void 0===i)return!1;if(!o(r,i))return!1}}return!0}function l(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=i(e[n]);return t}function c(e){var t={};for(var n in e){var r=e[n];void 0!==r&&(t[n]=i(r))}return t}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=r,e.deepEqual=o,e.deepCopy=i}(e.JSONExt||(e.JSONExt={}));var t=function(){function e(){this._types=[],this._values=[]}return e.prototype.types=function(){return this._types.slice()},e.prototype.hasData=function(e){return-1!==this._types.indexOf(e)},e.prototype.getData=function(e){var t=this._types.indexOf(e);return-1!==t?this._values[t]:void 0},e.prototype.setData=function(e,t){this.clearData(e),this._types.push(e),this._values.push(t)},e.prototype.clearData=function(e){var t=this._types.indexOf(e);-1!==t&&(this._types.splice(t,1),this._values.splice(t,1))},e.prototype.clear=function(){this._types.length=0,this._values.length=0},e}(),n=function(){function e(){var e=this;this.promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return e.prototype.resolve=function(e){(0,this._resolve)(e)},e.prototype.reject=function(e){(0,this._reject)(e)},e}(),r=function(){function e(e){this.name=e,this._tokenStructuralPropertyT=null}return e}();function o(e){for(var t=0,n=0,r=e.length;n<r;++n)n%4===0&&(t=4294967295*Math.random()>>>0),e[n]=255&t,t>>>=8}function i(e){for(var t=new Uint8Array(16),n=new Array(256),r=0;r<16;++r)n[r]="0"+r.toString(16);for(r=16;r<256;++r)n[r]=r.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}e.Random=void 0,(e.Random||(e.Random={})).getRandomValues=function(){var e="undefined"!==typeof window&&(window.crypto||window.msCrypto)||null;return e&&"function"===typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:o}(),e.UUID=void 0,(e.UUID||(e.UUID={})).uuid4=i(e.Random.getRandomValues),e.MimeData=t,e.PromiseDelegate=n,e.Token=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,c=[],u=!1,d=-1;function f(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=a(f);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||u||a(p)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n.n(o);function s(e,t){const n=i.a.normalize(t),r=i.a.dirname(n).split("/"),o=[];for(const i of r){o.push(i);const t=o.join("/");if(e.FS.analyzePath(t).exists){if(e.FS.isDir(t))throw new Error(`"${t}" already exists and is not a directory.`)}else try{e.FS.mkdir(t)}catch(s){throw console.error(`Failed to create a directory "${t}"`),s}}}function a(e,t,n,r){s(e,t),e.FS.writeFile(t,n,r)}function l(e){e.forEach((e=>{let t;try{t=new URL(e)}catch(n){return}if("emfs:"===t.protocol||"file:"===t.protocol)throw new Error(`"emfs:" and "file:" protocols are not allowed for the requirement (${e})`)}))}var c=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(t){i(t)}}function a(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};let u,d;const f=self,p=new r.PromiseDelegate;function g(e){f.postMessage({type:"event:progress",data:{message:e}})}const h=function(){return c(this,void 0,void 0,(function*(){const{entrypoint:e,files:t,requirements:n,wheels:r,mountedSitePackagesSnapshotFilePath:o,pyodideEntrypointUrl:i}=yield p.promise;if(g("Loading Pyodide."),console.debug("Import the entrypoint script."),importScripts(null!==i&&void 0!==i?i:"https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js"),console.debug("Loading Pyodide"),u=yield loadPyodide({stdout:console.log,stderr:console.error}),console.debug("Loaded Pyodide"),g("Mounting files."),Object.keys(t).forEach((e=>{const{data:n,opts:r}=t[e];console.debug(`Write a file "${e}"`),a(u,e,n,r)})),g("Loading the initially required packages."),console.debug("Loading the initially necessary packages"),yield u.loadPackage(["ssl"]),console.debug("Loaded the initially necessary packages"),o)g("Restoring the snapshot."),yield u.runPythonAsync("import tarfile, shutil, site"),yield u.runPythonAsync("\\n site_packages_dirs = site.getsitepackages()\\n for site_packages in site_packages_dirs:\\n shutil.rmtree(site_packages)\\n "),console.debug(`Unarchive ${o}`),yield u.runPythonAsync(`\\n with tarfile.open("${o}", "r") as tar_gz_file:\\n tar_gz_file.extractall("/")\\n `),console.debug("Restored the snapshot");else{if(!r)throw new Error("Neither snapshot nor wheel files are provided.");{g("Installing streamlit and its dependencies."),console.debug("Loading tornado, pyarrow, and streamlit"),yield u.loadPackage("micropip");const e=u.pyimport("micropip");yield e.install.callKwargs([r.tornado,r.pyarrow],{keep_going:!0}),yield e.install.callKwargs([r.streamlit],{keep_going:!0}),console.debug("Loaded tornado, pyarrow, and streamlit"),g("Installing the requirements."),console.debug("Installing the requirements:",n),l(n),yield e.install.callKwargs(n,{keep_going:!0}),console.debug("Installed the requirements:",n)}}yield u.runPythonAsync("\\n import importlib\\n importlib.invalidate_caches()\\n "),g("Loading streamlit package and setting up the loggers."),console.debug("Setting the loggers"),yield u.runPythonAsync("\\n import logging\\n import streamlit.logger\\n\\n streamlit.logger.get_logger = logging.getLogger\\n streamlit.logger.setup_formatter = None\\n streamlit.logger.update_formatter = lambda *a, **k: None\\n streamlit.logger.set_log_level = lambda *a, **k: None\\n ");self.__logCallback__=e=>{e.startsWith("CRITICAL")||e.startsWith("ERROR")?console.error(e):e.startsWith("WARNING")?console.warn(e):e.startsWith("INFO")?console.info(e):e.startsWith("DEBUG")?console.debug(e):console.log(e)},yield u.runPythonAsync(\'\\n from js import __logCallback__\\n\\n\\n class JsHandler(logging.Handler):\\n def emit(self, record):\\n msg = self.format(record)\\n __logCallback__(msg)\\n\\n\\n main_formatter = logging.Formatter("%(levelname)s:%(name)s:%(message)s")\\n\\n js_handler = JsHandler()\\n js_handler.setFormatter(main_formatter)\\n\\n root_logger = logging.getLogger()\\n root_logger.handlers.clear()\\n root_logger.addHandler(js_handler)\\n root_logger.setLevel(logging.DEBUG)\\n\\n streamlit_handler = logging.getLogger("streamlit")\\n streamlit_handler.setLevel(logging.DEBUG)\\n \'),console.debug("Set the loggers"),g("Mocking some Streamlit functions for the browser environment."),console.debug("Mocking some Streamlit functions"),yield u.runPythonAsync("\\n import streamlit\\n import contextlib\\n\\n @contextlib.contextmanager\\n def spinner(*args, **kwargs):\\n yield\\n\\n streamlit.spinner = spinner\\n "),console.debug("Mocked some Streamlit functions"),g("Booting up the Streamlit server."),console.debug("Defining the bootstrap functions"),yield u.runPythonAsync(\'\\n import asyncio\\n import os\\n import streamlit\\n import streamlit.web.bootstrap as bootstrap\\n from streamlit.web.server import Server\\n\\n\\n class BadArgumentUsage(Exception):\\n pass\\n\\n\\n class BadParameter(Exception):\\n pass\\n\\n\\n # Mimic streamlit.web.bootstrap.run() but exclude some code unnecessary for stlite environment\\n def run(\\n main_script_path,\\n command_line,\\n args,\\n flag_options,\\n ) -> None:\\n bootstrap._fix_sys_path(main_script_path)\\n bootstrap._fix_matplotlib_crash()\\n bootstrap._fix_sys_argv(main_script_path, args)\\n bootstrap._fix_pydeck_mapbox_api_warning()\\n bootstrap._install_pages_watcher(main_script_path)\\n\\n # Create the server. It won\\\'t start running yet.\\n server = Server(main_script_path, command_line)\\n\\n # Run the server.\\n asyncio.get_event_loop().create_task(server.start())\\n\\n\\n def _get_command_line_as_string():\\n return "" # TODO\\n\\n\\n def _main_run(file, args=None, flag_options=None):\\n if args is None:\\n args = []\\n\\n if flag_options is None:\\n flag_options = {}\\n\\n command_line = _get_command_line_as_string()\\n\\n # Set a global flag indicating that we\\\'re "within" streamlit.\\n streamlit._is_running_with_streamlit = True\\n\\n # check_credentials() # Disable credential check on Pyodide\\n\\n run(file, command_line, args, flag_options) # Call this customized run function instead of the original bootstrap.run.\\n\\n\\n def main_hello(**kwargs):\\n """Runs the Hello World script."""\\n from streamlit.hello import Hello\\n\\n bootstrap.load_config_options(flag_options=kwargs)\\n filename = Hello.__file__\\n _main_run(filename, flag_options=kwargs)\\n\\n\\n ACCEPTED_FILE_EXTENSIONS = ("py", "py3")\\n\\n\\n def main_run(target, args=None, **kwargs):\\n """Run a Python script, piping stderr to Streamlit.\\n\\n The script can be local or it can be an url. In the latter case, Streamlit\\n will download the script to a temporary file and runs this file.\\n\\n """\\n bootstrap.load_config_options(flag_options=kwargs)\\n\\n _, extension = os.path.splitext(target)\\n if extension[1:] not in ACCEPTED_FILE_EXTENSIONS:\\n if extension[1:] == "":\\n raise BadArgumentUsage(\\n "Streamlit requires raw Python (.py) files, but the provided file has no extension.\\\\nFor more information, please see https://docs.streamlit.io"\\n )\\n else:\\n raise BadArgumentUsage(\\n "Streamlit requires raw Python (.py) files, not %s.\\\\nFor more information, please see https://docs.streamlit.io"\\n % extension\\n )\\n\\n # stlite deals with the URL input in the JS layer,\\n # so Python code does not take care of it and\\n # `target` here can be assumed to be a file path, not a URL.\\n\\n if not os.path.exists(target):\\n raise BadParameter("File does not exist: {}".format(target))\\n _main_run(target, args, flag_options=kwargs)\\n \'),console.debug("Defined the bootstrap functions"),console.debug("Booting up the Streamlit server"),yield u.runPythonAsync(\'\\n command_kwargs = {\\n "server.headless": True, # Not to open the browser after launching\\n "global.dataFrameSerialization": "legacy", # Not to use PyArrow\\n "server.enableXsrfProtection": False, # Disable XSRF protection as it relies on cookies\\n "browser.gatherUsageStats": False,\\n }\\n \'),yield u.runPythonAsync(`main_run("${e}", **command_kwargs)`),console.debug("Booted up the Streamlit server"),console.debug("Setting up the HTTP server"),yield u.runPythonAsync("\\n from tornado.httpserver import HTTP_SERVER\\n "),d=u.globals.get("HTTP_SERVER").copy(),console.debug("Set up the HTTP server"),f.postMessage({type:"event:loaded"})}))}().catch((e=>{throw f.postMessage({type:"event:error",data:{error:e}}),e}));self.onmessage=e=>c(void 0,void 0,void 0,(function*(){const t=e.data;if("initData"===t.type)return void p.resolve(t.data);yield h;const n=e.ports[0];try{switch(t.type){case"websocket:connect":{console.debug("websocket:connect",t.data);const{path:e}=t.data;d.start_websocket(e,((e,t)=>{if(t){const t=e.getBuffer("u8");e.destroy();const n=new Uint8ClampedArray(t.data.buffer,t.data.byteOffset,t.data.byteLength);f.postMessage({type:"websocket:message",data:{payload:new Uint8Array(n)}})}else f.postMessage({type:"websocket:message",data:{payload:e}})})),n.postMessage({type:"reply"});break}case"websocket:send":{console.debug("websocket:send",t.data);const{payload:e}=t.data;d.receive_websocket_from_js(e);break}case"http:request":{console.debug("http:request",t.data);const{request:e}=t.data,r=(e,t,r)=>{const o=t.toJs(),i=r.toJs();console.debug({statusCode:e,headers:o,body:i});const s={type:"http:response",data:{response:{statusCode:e,headers:o,body:i}}};n.postMessage(s)};d.receive_http_from_js(e.method,e.path,e.headers,e.body,r);break}case"file:write":{const{path:e,data:r,opts:o}=t.data;console.debug(`Write a file "${e}"`),a(u,e,r,o),n.postMessage({type:"reply"});break}case"file:rename":{const{oldPath:e,newPath:r}=t.data;console.debug(`Rename "${e}" to ${r}`),function(e,t,n){s(e,n),e.FS.rename(t,n)}(u,e,r),n.postMessage({type:"reply"});break}case"file:unlink":{const{path:e}=t.data;console.debug(`Remove "${e}`),u.FS.unlink(e),n.postMessage({type:"reply"});break}case"install":{const{requirements:e}=t.data,r=u.pyimport("micropip");console.debug("Install the requirements:",e),l(e),yield r.install.callKwargs(e,{keep_going:!0}).then((()=>{if(e.includes("matplotlib"))return u.runPythonAsync("\\n bootstrap._fix_matplotlib_crash()\\n ")})).then((()=>{console.debug("Successfully installed"),n.postMessage({type:"reply"})}))}}}catch(r){n.postMessage({type:"reply",error:r})}})),f.postMessage({type:"event:start"})}]);\n',"Worker",void 0,void 0)}const p=/\/+$/,h=/^\/+/;class f{constructor(e){var t;let n;if(this._isDisposed=!1,this._loaded=new r.PromiseDelegate,this.handleWebSocketMessage=null,this.basePath=(null!==(t=e.basePath)&&void 0!==t?t:window.location.pathname).replace(p,"").replace(h,""),this.onProgress=e.onProgress,this.onLoad=e.onLoad,this.onError=e.onError,this._worker=new d,this._worker.onmessage=e=>{this._processWorkerMessage(e.data)},null==e.mountedSitePackagesSnapshotFilePath){console.debug("Custom wheel URLs:",{TORNADO_WHEEL:a,PYARROW_WHEEL:l,STREAMLIT_WHEEL:s});n={tornado:i(a,e.wheelBaseUrl),pyarrow:i(l,e.wheelBaseUrl),streamlit:i(s,e.wheelBaseUrl)},console.debug("Custom wheel resolved URLs:",n)}this._workerInitData={entrypoint:e.entrypoint,files:e.files,requirements:e.requirements,pyodideEntrypointUrl:e.pyodideEntrypointUrl,wheels:n,mountedSitePackagesSnapshotFilePath:e.mountedSitePackagesSnapshotFilePath}}get loaded(){return this._loaded.promise}connectWebSocket(e){return this._asyncPostMessage({type:"websocket:connect",data:{path:e}})}sendWebSocketMessage(e){this._worker.postMessage({type:"websocket:send",data:{payload:e}})}onWebSocketMessage(e){this.handleWebSocketMessage=e}sendHttpRequest(e){return this._asyncPostMessage({type:"http:request",data:{request:e}},"http:response").then((e=>e.response))}writeFile(e,t,n){return this._asyncPostMessage({type:"file:write",data:{path:e,data:t,opts:n}})}renameFile(e,t){return this._asyncPostMessage({type:"file:rename",data:{oldPath:e,newPath:t}})}unlink(e){return this._asyncPostMessage({type:"file:unlink",data:{path:e}})}install(e){return this._asyncPostMessage({type:"install",data:{requirements:e}})}_asyncPostMessage(e,t="reply"){return new Promise(((n,r)=>{const o=new MessageChannel;o.port1.onmessage=e=>{o.port1.close();const i=e.data;if(i.error)r(i.error);else{if(i.type!==t)throw new Error(`Unexpected reply type "${i.type}"`);n(i.data)}},this._worker.postMessage(e,[o.port2])}))}_processWorkerMessage(e){switch(e.type){case"event:start":this._worker.postMessage({type:"initData",data:this._workerInitData});break;case"event:progress":this.onProgress&&this.onProgress(e.data.message);break;case"event:error":this.onError&&this.onError(e.data.error);break;case"event:loaded":this._loaded.resolve(),this.onLoad&&this.onLoad();break;case"websocket:message":{const{payload:t}=e.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(t);break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker.terminate(),this._isDisposed=!0)}}var b=n(15),m=n(58),g=n(19),y=n(85),O=n(75);class w{getAge(e){return e-this.scriptRunCount}constructor(e,t){this.encodedMsg=void 0,this.scriptRunCount=0,this.encodedMsg=e,this.scriptRunCount=t}}class j{constructor(e){this.messages=new Map,this.getServerUri=void 0,this.scriptRunCount=0,this.getServerUri=e}incrementRunCount(e){this.scriptRunCount+=1,this.messages.forEach(((t,n)=>{t.getAge(this.scriptRunCount)>e&&(Object(g.c)(`Removing expired ForwardMsg [hash=${n}]`),this.messages.delete(n))}))}async processMessagePayload(e,t){if(this.maybeCacheMessage(e,t),"refHash"!==e.type)return e;let n=this.getCachedMessage(e.refHash,!0);if(null!=n)Object(g.c)(`Cached ForwardMsg HIT [hash=${e.refHash}]`);else{Object(g.c)(`Cached ForwardMsg MISS [hash=${e.refHash}]`);const t=await this.fetchMessagePayload(e.refHash);try{n=b.i.decode(t)}catch(r){throw new Error(`Failed to decode ForwardMsg (hash=${e.refHash}): ${Object(O.a)(r).message}`)}this.maybeCacheMessage(n,t)}if(!e.metadata)throw new Error("ForwardMsg has no metadata");return n.metadata=b.i.decode(t).metadata,n}async fetchMessagePayload(e){const t=this.getServerUri();if(void 0===t)throw new Error("Cannot retrieve uncached message: not connected to a server");const n=Object(y.a)(t,`message?hash=${e}`),r=await fetch(n);if(!r.ok)throw new Error(`Failed to retrieve ForwardMsg (hash=${e}): ${r.statusText}`);const o=await r.arrayBuffer();return new Uint8Array(o)}maybeCacheMessage(e,t){"refHash"!==e.type&&e.metadata&&e.metadata.cacheable&&void 0===this.getCachedMessage(e.hash,!0)&&(Object(g.c)(`Caching ForwardMsg [hash=${e.hash}]`),this.messages.set(e.hash,new w(t,this.scriptRunCount)))}getCachedMessage(e,t){const n=this.messages.get(e);if(null!=n)return t&&(n.scriptRunCount=this.scriptRunCount),b.i.decode(n.encodedMsg)}}const S="xxx:"+99999..toString();var x=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};class v{constructor(e){this.connectionState=m.a.INITIAL,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.setConnectionState=(e,t)=>{this.connectionState!==e&&(this.connectionState=e,this.props.connectionStateChanged(e)),(t||e===m.a.DISCONNECTED_FOREVER)&&this.props.onConnectionError(t||"unknown")},this.props=e,this.cache=new j((()=>this.getBaseUriParts())),this.props.kernel.onWebSocketMessage((e=>{"string"!==typeof e?this.handleMessage(e):console.error("Unexpected payload type.")})),this.props.kernel.loaded.then((()=>{console.log("The kernel has been loaded. Start connecting."),this.connect()}))}isConnected(){return this.connectionState===m.a.CONNECTED}getBaseUriParts(){if(this.connectionState===m.a.CONNECTED)return{host:"xxx",port:99999,basePath:this.props.kernel.basePath}}sendMessage(e){this.isConnected()?this.props.kernel.sendWebSocketMessage(b.c.encode(b.c.create(e)).finish()):console.error(`Cannot send message when server is disconnected: ${e}`)}incrementMessageCacheRunCount(e){this.cache.incrementRunCount(e)}handleMessage(e){return x(this,void 0,void 0,(function*(){const t=this.nextMessageIndex;this.nextMessageIndex+=1;const n=new Uint8Array(e),r=b.i.decode(n);for(this.messageQueue[t]=yield this.cache.processMessagePayload(r,n);this.lastDispatchedMessageIndex+1 in this.messageQueue;){const e=this.lastDispatchedMessageIndex+1;this.props.onMessage(this.messageQueue[e]),delete this.messageQueue[e],this.lastDispatchedMessageIndex=e}}))}connect(){return x(this,void 0,void 0,(function*(){try{yield this.props.kernel.connectWebSocket("/stream"),this.setConnectionState(m.a.CONNECTED)}catch(e){const t=Object(O.a)(e);console.error(t.message),this.setConnectionState(m.a.DISCONNECTED_FOREVER,t.message)}}))}}var k=n(35),P=n(36),I=n.n(P),C=n(1156),V=n(33),T=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};class E{constructor(e){this.formsWithPendingRequests=new Map,this.pendingFormUploadsChanged=e.formsWithPendingRequestsChanged}setKernel(e){this.kernel=e}uploadFile(e,t,n,r){return T(this,void 0,void 0,(function*(){const n=new FormData;n.append("sessionId",k.a.current.sessionId),n.append("widgetId",e.id),n.append(t.name,t),this.offsetPendingRequestCount(e.formId,1);const r=new C.a(n);return new Blob(r,{type:r.contentType}).arrayBuffer().then((t=>{if(null==this.kernel)throw new Error("Kernel not ready");return this.kernel.sendHttpRequest({method:"POST",path:"/upload_file",body:t,headers:Object.assign({},r.headers)}).then((e=>{const t=(new TextDecoder).decode(e.body);if("number"===typeof t)return t;if("string"===typeof t){const e=parseInt(t,10);if(!Number.isNaN(e))return e}throw new Error(`Bad uploadFile response: expected a number but got '${t}'`)})).finally((()=>this.offsetPendingRequestCount(e.formId,-1)))}))}))}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(e,t){var n;if(0===t)return;if(!Object(V.i)(e))return;const r=null!==(n=this.formsWithPendingRequests.get(e))&&void 0!==n?n:0,o=r+t;if(o<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${e}, curCount=${r}, offset=${t})`);const i=this.getFormIdSet();0===o?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,o);const a=this.getFormIdSet();I.a.isEqual(a,i)||this.pendingFormUploadsChanged(a)}}var A=n(1),D=n(0),N=n.n(D);const R=N.a.createContext(void 0),M=R.Provider;function F(e){const{children:t,kernel:n}=e,r=Object(D.useMemo)((()=>({kernel:n})),[n]);return Object(A.jsx)(M,Object.assign({value:r},{children:t}))}function B(){const e=Object(D.useContext)(R);if(null==e)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return e.kernel}function L(e){const[t,n]=Object(D.useState)(e),r=B();return Object(D.useEffect)((()=>{if(null==r)return;let t=!1;const o=[],i=e.map((e=>{const n=e;return n.url.startsWith("/media")?r.sendHttpRequest({method:"GET",path:n.url,headers:{},body:""}).then((({statusCode:e,headers:r,body:i})=>{if(t)return n;if(200!==e)return n;const a=new Blob([i],{type:r.get("Content-Type")}),l=URL.createObjectURL(a);return o.push(l),new b.l(Object.assign(Object.assign({},n),{url:l}))})):n}));return Promise.all(i).then((e=>{t||n(e)})),()=>{t=!0,o.forEach((e=>{URL.revokeObjectURL(e)}))}}),[r,e]),t}function _(e){const t=B(),[n,r]=Object(D.useState)(e);return Object(D.useEffect)((()=>{if(null==t)return;if(!e.startsWith("/media"))return;let n,o=!1;return t.sendHttpRequest({method:"GET",path:e,headers:{},body:""}).then((({statusCode:e,headers:t,body:i})=>{if(o)return;if(200!==e)return;const a=new Blob([i],{type:t.get("Content-Type")});n=URL.createObjectURL(a),r(n)})),()=>{o=!0,null!=n&&URL.revokeObjectURL(n)}}),[t,e]),n}function z(e,t){e.sendHttpRequest({method:"GET",path:`${t}?title=${encodeURIComponent(document.title)}`,headers:{},body:""}).then((({statusCode:e,headers:t,body:n})=>{if(200!==e)return;const r=t.get("Content-Disposition"),o=null!=r?function(e){const t=/filename="([^"]*?)"/.exec(e);return null==t?"":t[1]}(r):"",i=new Blob([n],{type:t.get("Content-Type")}),a=URL.createObjectURL(i),l=document.createElement("a");l.setAttribute("href",a),l.setAttribute("target","_blank"),l.setAttribute("download",o),l.click(),URL.revokeObjectURL(a),l.remove()}))}function W(e){const t=e.split("/").slice(0,-1).join("/");return t.startsWith("/")?t:"/"+t}function H(e,t,n){const r=W(t);if(!(n.host===e&&n.pathname.startsWith(r)))return null;const o=n.pathname.slice(r.length);return o.startsWith("/")?o.slice(1):o}var U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $=N.a.forwardRef(((e,t)=>{var{src:n}=e,r=U(e,["src"]);const i=B(),[a,l]=Object(D.useState)();Object(D.useEffect)((()=>{if(null==i)return;if(!n.startsWith("/component"))return;let e=!1;return i.sendHttpRequest({method:"GET",path:n,headers:{},body:""}).then((({statusCode:t,headers:n,body:r})=>{if(e)return;if(200!==t)return;new Blob([r],{type:n.get("Content-Type")}).text().then((t=>{e||l(t)}))})),()=>{e=!0}}),[i,n]);const s=Object(D.useCallback)((e=>{var t;const r=null===(t=e.target.contentWindow)||void 0===t?void 0:t.document;null!=r?function(e,t,n){const r=[],i=t.getElementsByTagName("script");for(const l of i){if(""===l.src)continue;const i=H(window.location.host,window.location.pathname,new URL(l.src));if(null==i)continue;const a=o.URLExt.join(n,i),s=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((({statusCode:e,headers:n,body:r})=>{if(200===e)return new Blob([r],{type:n.get("Content-Type")}).text().then((e=>{const n=t.createElement("script");n.text=e,n.type="text/javascript",n.setAttribute("data-stlite",""),l.replaceWith(n)}))}));r.push(s)}const a=t.querySelectorAll("link[rel=stylesheet]");for(const l of a){const i=H(window.location.host,window.location.pathname,new URL(l.href));if(null==i)continue;const a=o.URLExt.join(n,i),s=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((({statusCode:e,headers:n,body:r})=>{if(200===e)return new Blob([r],{type:n.get("Content-Type")}).text().then((e=>{const n=t.createElement("style");n.innerHTML=e,n.setAttribute("data-stlite",""),l.replaceWith(n)}))}));r.push(s)}Promise.all(r).then()}(i,r,W(n)):console.warn("document not found in iframe")}),[i,n]);return Object(A.jsx)("iframe",Object.assign({},r,{srcDoc:a,onLoad:s,ref:t}))}));$.displayName="InnerIFrame";const J=N.a.forwardRef(((e,t)=>{const n=function(e,t){const n=(S+"/"+e).replace(/\/$/,""),r=new RegExp(`https?://${n}(/.*?$)`),o=t.match(r);return null==o?null:o[1]}(B().basePath,e.src);return null==n?Object(A.jsx)("iframe",Object.assign({},e,{ref:t})):Object(A.jsx)($,Object.assign({},e,{src:n,ref:t}))}));J.displayName="StliteCustomComponentIFrame";var G=J},89:function(e,t,n){"use strict";var r=n(220);n.d(t,"a",(function(){return r.b}))},94:function(e,t,n){"use strict";n(16);var r=n(66);const o={halfSmFont:r.a.smPx/2+"px",twoThirdsSmFont:2*r.a.smPx/3+"px",px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem"},i=1e6,a=1000050,l={hide:-1,auto:"auto",base:0,sidebar:100,menuButton:110,balloons:i,header:999990,sidebarMobile:999995,popupMenu:1000040,fullscreenWrapper:a,tablePortal:1000110};var s=n(249),c=n(67);t.a={inSidebar:!1,breakpoints:{sm:"576px",columns:"640px",md:"768px",lg:"992px",xl:"1200px"},colors:Object(c.e)(s.a),genericColors:s.a,fonts:r.c,fontSizes:r.a,fontWeights:r.b,genericFonts:r.d,iconSizes:{xs:"0.5rem",sm:"0.75rem",md:"0.9rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},lineHeights:r.f,letterSpacings:r.e,radii:{none:"0",sm:"0.125rem",md:"0.25rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},sizes:{full:"100%",headerHeight:"2.875rem",sidebarTopSpace:"6rem",sidebar:"21rem",contentMaxWidth:"46rem"},spacing:o,zIndices:l}}},[[1107,5,6]]]);
|
|
29
|
-
//# sourceMappingURL=main.
|
|
28
|
+
}`,ki=Object(H.a)("div",{target:"e1qhdkqn0"})((({theme:e})=>({position:"fixed",display:"flex",justifyContent:"center",alignItems:"center",top:0,left:0,width:e.sizes.full,height:e.sizes.full,fontSize:"40vh",color:e.colors.red,fontWeight:e.fontWeights.bold,opacity:"0.8",textShadow:`1px 1px 10px ${e.colors.darkGray}`,transition:"opacity 0.3s ease-in-out",fontFamily:'Helvetica, Calibri, Roboto, "Open Sans", Arial, sans-serif',animation:`${vi} 1s`})),"");class Pi extends r.PureComponent{constructor(...e){super(...e),this.state={countdown:this.props.countdown},this.onAnimationEnd=async()=>{const{countdown:e}=this.state,{endCallback:t}=this.props,n=e-1;n>=0&&this.setState({countdown:n}),0===n&&t()}}render(){const{countdown:e}=this.state;return Object(h.jsx)(ki,{onAnimationEnd:this.onAnimationEnd,children:Object(h.jsx)("span",{children:e})},`frame${e}`)}}Pi.defaultProps={endCallback:()=>{}};var Ii=Pi;var Ci=function(e){class t extends r.PureComponent{constructor(...e){super(...e),this.recorder=void 0,this.state={fileName:"streamlit-screencast",recordAudio:!1,currentState:"OFF"},this.toggleRecordAudio=()=>{const{recordAudio:e}=this.state;this.setState({recordAudio:!e})},this.showDialog=e=>{const{currentState:t}=this.state;ai.isSupportedBrowser()?"OFF"===t?this.setState({fileName:e,currentState:"SETUP"}):this.stopRecording().catch((e=>Object(E.d)(`withScreencast.stopRecording threw an error: ${e}`))):this.setState({currentState:"UNSUPPORTED"})},this.startRecording=async()=>{const{recordAudio:e}=this.state;this.recorder=new ai({recordAudio:e,onErrorOrStop:()=>this.stopRecording()});try{await this.recorder.initialize()}catch(t){return Object(E.d)(`ScreenCastRecorder.initialize error: ${t}`),void this.setState({currentState:"UNSUPPORTED"})}this.setState({currentState:"COUNTDOWN"})},this.stopRecording=async()=>{let e;const{currentState:t}=this.state;"OFF"!==t&&null!=this.recorder&&("COUNTDOWN"===t&&this.setState({currentState:"OFF"}),"RECORDING"===t&&("inactive"===this.recorder.getState()?this.setState({currentState:"OFF"}):(e=await this.recorder.stop(),this.setState({outputBlob:e,currentState:"PREVIEW_FILE"}))))},this.onCountdownEnd=async()=>{if(null==this.recorder)throw new Error("Countdown finished but recorder is null");this.recorder.start()?this.setState({currentState:"RECORDING"}):this.stopRecording().catch((e=>Object(E.d)(`withScreencast.stopRecording threw an error: ${e}`)))},this.getScreenCastProps=()=>({currentState:this.state.currentState,toggleRecordAudio:this.toggleRecordAudio,startRecording:this.showDialog,stopRecording:this.stopRecording}),this.closeDialog=()=>{this.setState({currentState:"OFF"})}}render(){const{outputBlob:t,fileName:n,recordAudio:r,currentState:o}=this.state;return Object(h.jsxs)("div",{className:"withScreencast",children:[Object(h.jsx)(e,{screenCast:this.getScreenCastProps(),...this.props}),"UNSUPPORTED"===o&&Object(h.jsx)(xi,{onClose:this.closeDialog}),"SETUP"===o&&Object(h.jsx)(ui,{recordAudio:r,onClose:this.closeDialog,startRecording:this.startRecording,toggleRecordAudio:this.toggleRecordAudio}),"COUNTDOWN"===o&&Object(h.jsx)(Ii,{countdown:3,endCallback:this.onCountdownEnd}),"PREVIEW_FILE"===o&&t&&Object(h.jsx)(yi,{onClose:this.closeDialog,videoBlob:t,fileName:n})]})}}return t.displayName=`withScreencast(${e.displayName||e.name})`,_n()(t,e)};n(1105);class Vi extends r.PureComponent{constructor(e){super(e),this.sessionEventDispatcher=void 0,this.connectionManager=void 0,this.widgetMgr=void 0,this.uploadClient=void 0,this.pendingElementsBuffer=void 0,this.pendingElementsTimerRunning=void 0,this.componentRegistry=void 0,this.keyMap={RERUN:"r",CLEAR_CACHE:"c",STOP_RECORDING:{sequence:"esc",action:"keyup"}},this.keyHandlers={RERUN:()=>{this.rerunScript()},CLEAR_CACHE:()=>{(Rr()||this.props.s4aCommunication.currentState.isOwner)&&this.openClearCacheDialog()},STOP_RECORDING:this.props.screenCast.stopRecording},this.showDeployError=(e,t,n)=>{this.openDialog({type:No.DEPLOY_ERROR,title:e,msg:t,onContinue:n,onClose:()=>{},onTryAgain:this.sendLoadGitInfoBackMsg})},this.handleConnectionStateChanged=e=>{Object(E.c)(`Connection state changed from ${this.state.connectionState} to ${e}`),this.setState({connectionState:e}),e===Zn.a.CONNECTED?(Object(E.c)("Reconnected to server; requesting a script run"),this.widgetMgr.sendUpdateWidgetsMessage(),this.setState({dialog:null})):(Object(D.o)("_xsrf",""),V.a.isSet()&&V.a.clearSession())},this.handleGitInfoChanged=e=>{this.setState({gitInfo:e})},this.handleMessage=e=>{try{((e,t,n)=>{const r=e[t];if(r in n)return n[r](e[r]);throw new Error(`Cannot handle ${t} "${r}".`)})(e,"type",{newSession:e=>this.handleNewSession(e),sessionStateChanged:e=>this.handleSessionStateChanged(e),sessionEvent:e=>this.handleSessionEvent(e),delta:t=>this.handleDeltaMsg(t,e.metadata),pageConfigChanged:e=>this.handlePageConfigChanged(e),pageInfoChanged:e=>this.handlePageInfoChanged(e),pagesChanged:e=>this.handlePagesChanged(e),pageNotFound:e=>this.handlePageNotFound(e),gitInfoChanged:e=>this.handleGitInfoChanged(e),scriptFinished:e=>this.handleScriptFinished(e),pageProfile:e=>this.handlePageProfileMsg(e)})}catch(t){const e=Object(P.a)(t);Object(E.b)(e),this.showError("Bad message format",e.message)}},this.handlePageConfigChanged=e=>{const{title:t,favicon:n,layout:r,initialSidebarState:o,menuItems:i}=e;A.current.enqueue("pageConfigChanged",{favicon:n,layout:r,initialSidebarState:o}),t&&(this.props.s4aCommunication.sendMessage({type:"SET_PAGE_TITLE",title:t}),document.title=t),n&&ni(n,this.getBaseUriParts()),r!==this.state.layout&&this.setState((e=>({layout:r,userSettings:{...e.userSettings,wideMode:r===x.q.Layout.WIDE}}))),o!==this.state.initialSidebarState&&this.setState((()=>({initialSidebarState:o}))),this.setState({menuItems:i})},this.handlePageInfoChanged=e=>{const{queryString:t}=e,n=document.location.pathname+(t?`?${t}`:"");window.history.pushState({},"",n),this.props.s4aCommunication.sendMessage({type:"SET_QUERY_PARAM",queryParams:t?`?${t}`:""})},this.handlePageNotFound=e=>{var t;const{pageName:n}=e,r=n?`You have requested page /${n}, 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",`${r}. Running the app's main page.`);const o=(null===(t=this.state.appPages[0])||void 0===t?void 0:t.pageScriptHash)||"";this.setState({currentPageScriptHash:o},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:"",currentPageScriptHash:o})}))},this.handlePagesChanged=e=>{const{appPages:t}=e;this.setState({appPages:t},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_APP_PAGES",appPages:t})}))},this.handlePageProfileMsg=e=>{var t,n,r;A.current.enqueue("pageProfile",{...x.r.toObject(e),appId:V.a.current.appId,numPages:null===(t=this.state.appPages)||void 0===t?void 0:t.length,sessionId:V.a.current.sessionId,pythonVersion:V.a.current.pythonVersion,pageScriptHash:this.state.currentPageScriptHash,activeTheme:null===(n=this.props.theme)||void 0===n||null===(r=n.activeTheme)||void 0===r?void 0:r.name,totalLoadTime:Math.round(1e3*(performance.now()-this.state.latestRunTime))})},this.handleSessionStateChanged=e=>{this.setState((t=>{let{scriptRunState:n}=t,{dialog:r}=t;if(e.scriptIsRunning&&t.scriptRunState!==K.a.STOP_REQUESTED)n=K.a.RUNNING,null!=r&&r.type===No.SCRIPT_COMPILE_ERROR&&(r=void 0);else if(!e.scriptIsRunning&&t.scriptRunState!==K.a.RERUN_REQUESTED&&t.scriptRunState!==K.a.COMPILATION_ERROR){n=K.a.NOT_RUNNING,A.current.enqueue("deltaStats",A.current.getAndResetDeltaCounter());const{availableThemes:e,activeTheme:t}=this.props.theme,r=e.length>Object(p.createPresetThemes)().length;A.current.enqueue("themeStats",{activeThemeName:t.name,customThemeDefined:r});const o=A.current.getAndResetCustomComponentCounter();Object.entries(o).forEach((([e,t])=>{A.current.enqueue("customComponentStats",{name:e,count:t})}))}return{userSettings:{...t.userSettings,runOnSave:Boolean(e.runOnSave)},dialog:r,scriptRunState:n}}))},this.handleSessionEvent=e=>{if(this.sessionEventDispatcher.handleSessionEventMsg(e),"scriptCompilationException"===e.type){this.setState({scriptRunState:K.a.COMPILATION_ERROR});const t={type:No.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:()=>{}};this.openDialog(t)}else if(T.b&&"scriptChangedOnDisk"===e.type){const e={type:No.SCRIPT_CHANGED,onRerun:this.rerunScript,onClose:()=>{},allowRunOnSave:this.state.allowRunOnSave};this.openDialog(e)}},this.handleNewSession=e=>{var t;const n=e.initialize;if(Vi.hasStreamlitVersionChanged(n))return void window.location.reload();V.a.isSet()||this.handleOneTimeInitialization(e);const r=e.config,o=e.customTheme,{currentPageScriptHash:i}=this.state,a=e.pageScriptHash,l=e.appPages[0],s=null===(t=e.appPages.find((e=>e.pageScriptHash===a)))||void 0===t?void 0:t.pageName,c=a===l.pageScriptHash,u=this.getBaseUriParts();if(u){const{basePath:e}=u,t=this.getQueryString(),n=`${e?`/${e}`:""}/${c?"":s}${t?`?${t}`:""}`,r=n.endsWith("/")&&"/"!==n?n.slice(0,-1):n;window.history.pushState({},"",r)}this.processThemeInput(o),this.setState({allowRunOnSave:r.allowRunOnSave,hideTopBar:r.hideTopBar,hideSidebarNav:r.hideSidebarNav,appPages:e.appPages,currentPageScriptHash:a,latestRunTime:performance.now()},(()=>{this.props.s4aCommunication.sendMessage({type:"SET_APP_PAGES",appPages:e.appPages}),this.props.s4aCommunication.sendMessage({type:"SET_CURRENT_PAGE_NAME",currentPageName:c?"":s,currentPageScriptHash:a})}));const{appHash:d}=this.state,{scriptRunId:p,name:h,mainScriptPath:f}=e,b=Object(D.d)(V.a.current.installationId+f);document.title=`${s} \xb7 Streamlit`,ni("/favicon.png",this.getBaseUriParts()),A.current.setMetadata(this.props.s4aCommunication.currentState.streamlitShareMetadata),A.current.setAppHash(b),A.current.clearDeltaCounter(),A.current.enqueue("updateReport",{numPages:e.appPages.length,isMainPage:c}),d===b&&i===a?this.setState({scriptRunId:p}):this.clearAppState(b,p,h)},this.handleOneTimeInitialization=e=>{const t=e.initialize,n=e.config;V.a.current=V.a.fromNewSessionMessage(e),A.current.initialize({gatherUsageStats:n.gatherUsageStats}),A.current.enqueue("createReport",{pythonVersion:V.a.current.pythonVersion}),this.props.s4aCommunication.connect(),this.handleSessionStateChanged(t.sessionState)},this.setAndSendTheme=e=>{this.props.theme.setTheme(e),this.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(p.toExportedTheme)(e.emotion)})},this.createThemeHash=e=>{if(!e)return"hash_for_undefined_custom_theme";const t=Object.entries(e);return t.sort(),Object(D.d)(t.join(":"))},this.closeDialog=()=>{this.setState({dialog:void 0}),this.props.s4aCommunication.onModalReset()},this.saveSettings=e=>{const{runOnSave:t}=this.state.userSettings,{runOnSave:n}=e;if(this.setState({userSettings:e}),t!==n&&this.isServerConnected()){const e=new x.c({setRunOnSave:n});e.type="setRunOnSave",this.sendBackMsg(e)}},this.handleDeltaMsg=(e,t)=>{if(this.pendingElementsBuffer=this.pendingElementsBuffer.applyDelta(this.state.scriptRunId,e,t),!this.pendingElementsTimerRunning){this.pendingElementsTimerRunning=!0;const e=this.state.scriptRunState===K.a.RUNNING;setTimeout((()=>{this.pendingElementsTimerRunning=!1,e&&this.setState({elements:this.pendingElementsBuffer})}),10)}},this.rerunScript=(e=!1)=>{this.closeDialog(),this.isServerConnected()?this.state.scriptRunState!==K.a.RUNNING&&this.state.scriptRunState!==K.a.RERUN_REQUESTED&&(A.current.enqueue("rerunScript"),this.setState({scriptRunState:K.a.RERUN_REQUESTED}),!0===e&&this.saveSettings({...this.state.userSettings,runOnSave:!0}),this.widgetMgr.sendUpdateWidgetsMessage()):Object(E.b)("Cannot rerun script when disconnected from server.")},this.sendLoadGitInfoBackMsg=()=>{this.isServerConnected()?this.sendBackMsg(new x.c({loadGitInfo:!0})):Object(E.b)("Cannot load git information when disconnected from server.")},this.onPageChange=e=>{this.sendRerunBackMsg(void 0,e)},this.sendRerunBackMsg=(e,t)=>{const n=this.getBaseUriParts();if(!n)return void Object(E.b)("Cannot send rerun backMessage when disconnected from server.");const{currentPageScriptHash:r}=this.state,{basePath:o}=n,i=this.getQueryString();let a="";t||(r?t=r:(a=decodeURIComponent(document.location.pathname.replace(`/${o}`,"").replace(new RegExp("^/?"),"").replace(new RegExp("/$"),"")),t="")),this.sendBackMsg(new x.c({rerunScript:{queryString:i,widgetStates:e,pageScriptHash:t,pageName:a}})),Ho.record({name:"RequestedRerun",scriptRunState:this.state.scriptRunState})},this.stopScript=()=>{if(!this.isServerConnected())return void Object(E.b)("Cannot stop app when disconnected from server.");if(this.state.scriptRunState===K.a.NOT_RUNNING||this.state.scriptRunState===K.a.STOP_REQUESTED)return;const e=new x.c({stopScript:!0});e.type="stopScript",this.sendBackMsg(e),this.setState({scriptRunState:K.a.STOP_REQUESTED})},this.openClearCacheDialog=()=>{if(this.isServerConnected()){const e={type:No.CLEAR_CACHE,confirmCallback:this.clearCache,defaultAction:this.clearCache,onClose:()=>{}};this.openDialog(e)}else Object(E.b)("Cannot clear cache: disconnected from server")},this.openThemeCreatorDialog=()=>{const e={type:No.THEME_CREATOR,backToSettings:this.settingsCallback,onClose:this.closeDialog};this.openDialog(e)},this.clearCache=()=>{if(this.closeDialog(),this.isServerConnected()){A.current.enqueue("clearCache");const e=new x.c({clearCache:!0});e.type="clearCache",this.sendBackMsg(e)}else Object(E.b)("Cannot clear cache: disconnected from server")},this.sendBackMsg=e=>{this.connectionManager?(Object(E.c)(e),this.connectionManager.sendMessage(e)):Object(E.b)(`Not connected. Cannot send back message: ${e}`)},this.handleConnectionError=e=>{this.showError("Connection error",e)},this.isServerConnected=()=>!!this.connectionManager&&this.connectionManager.isConnected(),this.settingsCallback=(e=!0)=>{const t={type:No.SETTINGS,isServerConnected:this.isServerConnected(),settings:this.state.userSettings,allowRunOnSave:this.state.allowRunOnSave,onSave:this.saveSettings,onClose:()=>{},developerMode:this.state.developerMode,openThemeCreator:this.openThemeCreatorDialog,animateModal:e};this.openDialog(t)},this.aboutCallback=()=>{const{menuItems:e}=this.state,t={type:No.ABOUT,onClose:this.closeDialog,aboutSectionMd:null===e||void 0===e?void 0:e.aboutSectionMd};this.openDialog(t)},this.screencastCallback=()=>{const{scriptName:e}=this.state,{startRecording:t}=this.props.screenCast;t(`streamlit-${e}-${m()().format("YYYY-MM-DD-HH-MM-SS")}`)},this.handleFullScreen=e=>{this.setState({isFullScreen:e})},this.addScriptFinishedHandler=e=>{this.setState({scriptFinishedHandlers:Object(C.concat)(this.state.scriptFinishedHandlers,e)})},this.removeScriptFinishedHandler=e=>{this.setState({scriptFinishedHandlers:Object(C.without)(this.state.scriptFinishedHandlers,e)})},this.getBaseUriParts=()=>this.connectionManager?this.connectionManager.getBaseUriParts():void 0,this.getQueryString=()=>{const{queryParams:e}=this.props.s4aCommunication.currentState,t=e&&e.length>0?e:document.location.search;return t.startsWith("?")?t.substring(1):t},Object(y.b)(),this.state={connectionState:Zn.a.INITIAL,elements:F.empty("Please wait..."),isFullScreen:!1,scriptName:"",scriptRunId:"<null>",appHash:null,scriptRunState:K.a.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:x.q.Layout.CENTERED,initialSidebarState:x.q.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],developerMode:window.location.host.includes("localhost"),themeHash:null,gitInfo:null,formsData:Jo(),appPages:[],currentPageScriptHash:"",hideTopBar:!0,hideSidebarNav:!0,latestRunTime:performance.now()},this.sessionEventDispatcher=new Qo,this.connectionManager=null,this.widgetMgr=new Yo({sendRerunBackMsg:this.sendRerunBackMsg,formsDataChanged:e=>this.setState({formsData:e})}),this.uploadClient=new l.c({getServerUri:this.getBaseUriParts,formsWithPendingRequestsChanged:e=>this.widgetMgr.setFormsWithUploads(e),csrfEnabled:!0}),this.componentRegistry=new mt(this.getBaseUriParts),this.pendingElementsTimerRunning=!1,this.pendingElementsBuffer=this.state.elements,window.streamlitDebug={},window.streamlitDebug.closeConnection=this.closeConnection.bind(this)}componentDidMount(){this.connectionManager=new l.a({kernel:this.context.kernel,onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged}),this.uploadClient.setKernel(this.context.kernel),Object(D.e)()&&document.body.classList.add("embedded"),this.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(p.toExportedTheme)(this.props.theme.activeTheme.emotion)}),A.current.enqueue("viewReport")}componentDidUpdate(e){e.s4aCommunication.currentState.queryParams!==this.props.s4aCommunication.currentState.queryParams&&this.sendRerunBackMsg(),this.props.s4aCommunication.currentState.forcedModalClose&&this.closeDialog();const{requestedPageScriptHash:t}=this.props.s4aCommunication.currentState;null!==t&&(this.onPageChange(t),this.props.s4aCommunication.onPageChanged())}showError(e,t){Object(E.b)(t);const n={type:No.WARNING,title:e,msg:t,onClose:()=>{}};this.openDialog(n)}static hasStreamlitVersionChanged(e){if(V.a.isSet()){const{streamlitVersion:t}=V.a.current,{environmentInfo:n}=e;if(null!=n&&null!=n.streamlitVersion)return t<n.streamlitVersion}return!1}processThemeInput(e){const t=this.createThemeHash(e);if(t===this.state.themeHash)return;this.setState({themeHash:t});const n=!Object(p.isPresetTheme)(this.props.theme.activeTheme);if(e){const t=Object(p.createTheme)(p.CUSTOM_THEME_NAME,e);this.props.theme.addThemes([t]);(null===Object(p.getCachedTheme)()||n)&&this.setAndSendTheme(t)}else e||(this.props.theme.addThemes([]),n&&this.setAndSendTheme(Object(p.createAutoTheme)()))}handleScriptFinished(e){if(e===x.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY||e===x.i.ScriptFinishedStatus.FINISHED_EARLY_FOR_RERUN){const t=e===x.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY;if(window.setTimeout((()=>{this.state.scriptFinishedHandlers.map((e=>e()))}),0),t){this.setState((({scriptRunId:e})=>({elements:this.pendingElementsBuffer.clearStaleNodes(e)})),(()=>{this.pendingElementsBuffer=this.state.elements}));const e=new Set(Array.from(this.state.elements.getElements()).map((e=>Object(D.c)(e))).filter(D.n));this.widgetMgr.removeInactive(e)}null!==this.connectionManager&&this.connectionManager.incrementMessageCacheRunCount(V.a.current.maxCachedMessageAge)}}clearAppState(e,t,n){this.setState({scriptRunId:t,scriptName:n,appHash:e,elements:F.empty()},(()=>{this.pendingElementsBuffer=this.state.elements,this.widgetMgr.removeInactive(new Set([]))}))}openDialog(e){this.setState({dialog:e})}closeConnection(){if(this.isServerConnected()){const e=new x.c({closeConnection:!0});e.type="closeConnection",this.sendBackMsg(e)}}render(){var e;const{allowRunOnSave:t,connectionState:n,dialog:r,elements:o,initialSidebarState:i,menuItems:a,isFullScreen:l,layout:s,scriptRunId:c,scriptRunState:u,userSettings:d,gitInfo:p,hideTopBar:f,hideSidebarNav:b,currentPageScriptHash:m}=this.state,{hideSidebarNav:y}=this.props.s4aCommunication.currentState,O=w()("stApp",{"streamlit-embedded":Object(D.e)(),"streamlit-wide":d.wideMode}),S=r?Ro({...r,onClose:this.closeDialog}):null;return Object(h.jsx)(j.a.Provider,{value:{initialSidebarState:i,layout:s,wideMode:d.wideMode,embedded:Object(D.e)(),isFullScreen:l,setFullScreen:this.handleFullScreen,addScriptFinishedHandler:this.addScriptFinishedHandler,removeScriptFinishedHandler:this.removeScriptFinishedHandler,activeTheme:this.props.theme.activeTheme,availableThemes:this.props.theme.availableThemes,setTheme:this.setAndSendTheme,addThemes:this.props.theme.addThemes,sidebarChevronDownshift:this.props.s4aCommunication.currentState.sidebarChevronDownshift,getBaseUriParts:this.getBaseUriParts},children:Object(h.jsx)(g.HotKeys,{keyMap:this.keyMap,handlers:this.keyHandlers,attach:window,focused:!0,children:Object(h.jsxs)(ri,{className:O,children:[Object(h.jsxs)(Gr,{children:[!f&&Object(h.jsxs)(h.Fragment,{children:[Object(h.jsx)(dr,{connectionState:n,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:u,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:t}),Object(h.jsx)(Hr,{s4aToolbarItems:this.props.s4aCommunication.currentState.toolbarItems,sendS4AMessage:this.props.s4aCommunication.sendMessage})]}),Object(h.jsx)(Lr,{isServerConnected:this.isServerConnected(),quickRerunCallback:this.rerunScript,clearCacheCallback:this.openClearCacheDialog,settingsCallback:this.settingsCallback,aboutCallback:this.aboutCallback,screencastCallback:this.screencastCallback,screenCastState:this.props.screenCast.currentState,s4aMenuItems:this.props.s4aCommunication.currentState.menuItems,s4aIsOwner:this.props.s4aCommunication.currentState.isOwner,sendS4AMessage:this.props.s4aCommunication.sendMessage,gitInfo:p,showDeployError:this.showDeployError,closeDialog:this.closeDialog,isDeployErrorModalOpen:(null===(e=this.state.dialog)||void 0===e?void 0:e.type)===No.DEPLOY_ERROR,loadGitInfo:this.sendLoadGitInfoBackMsg,canDeploy:V.a.isSet()&&!V.a.isHello,menuItems:a})]}),Object(h.jsx)(qn,{elements:o,scriptRunId:c,scriptRunState:u,widgetMgr:this.widgetMgr,widgetsDisabled:n!==Zn.a.CONNECTED,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData,appPages:this.state.appPages,onPageChange:this.onPageChange,currentPageScriptHash:m,hideSidebarNav:b||y,pageLinkBaseUrl:this.props.s4aCommunication.currentState.pageLinkBaseUrl}),S]})})})}}Vi.contextType=l.e;var Ti=Wn(Ci(Vi));var Ei=()=>{const e=Object(p.getDefaultTheme)(),[t,n]=o.a.useState(e),[r,i]=o.a.useState([...Object(p.createPresetThemes)(),...Object(p.isPresetTheme)(e)?[]:[e]]),a=e=>{e!==t&&(n(e),e.name===p.AUTO_THEME_NAME?Object(p.removeCachedTheme)():Object(p.setCachedTheme)(e))},l=()=>{t.name===p.AUTO_THEME_NAME&&a(Object(p.createAutoTheme)());const e=r.filter((e=>e.name!==p.AUTO_THEME_NAME));i([Object(p.createAutoTheme)(),...e])};return o.a.useEffect((()=>{const e=window.matchMedia("(prefers-color-scheme: dark)");return e.addEventListener("change",l),()=>e.removeEventListener("change",l)}),[t,r]),Object(h.jsx)(s.a,{theme:t.baseweb,zIndex:t.emotion.zIndices.popupMenu,children:Object(h.jsxs)(f,{theme:t.emotion,baseuiTheme:t.basewebTheme,children:[Object(h.jsx)(c.a,{styles:p.globalStyles}),Object(h.jsx)(Ti,{theme:{setTheme:a,activeTheme:t,addThemes:e=>{i([...Object(p.createPresetThemes)(),...e])},availableThemes:r}}),Object(h.jsx)(oi,{id:"portal"})]})})},Ai=n(463),Di=n(135);const Ni=new Ai.a({prefix:"st-"});var Ri=function(e){return Object(h.jsx)(l.f,{kernel:e.kernel,children:Object(h.jsx)(Di.a,{value:Ni,children:Object(h.jsx)(Ei,{})})})};let Mi;{const e=window.location.href.split("/").slice(0,-1).join("/")+"/";Mi=e+"pyodide/pyodide.js"}var Fi=function(){const[e,t]=Object(r.useState)();return Object(r.useEffect)((()=>{let e=!1,n=null;return Promise.all([window.archives.readSitePackagesSnapshot(),window.archives.readStreamlitAppDirectory()]).then((([r,o])=>{if(e)return;const i={};Object.keys(o).forEach((e=>{const t=o[e];i[e]={data:t}}));const a="/tmp/site-packages-snapshot.tar.gz";n=new l.d({entrypoint:"streamlit_app.py",files:{...i,[a]:{data:r}},requirements:[],mountedSitePackagesSnapshotFilePath:a,pyodideEntrypointUrl:Mi}),t(n)})),()=>{e=!0,n&&n.dispose()}}),[]),e?Object(h.jsx)(Ri,{kernel:e}):null};a.a.render(Object(h.jsx)(o.a.StrictMode,{children:Object(h.jsx)(Fi,{})}),document.getElementById("root"))},111:function(e,t,n){"use strict";n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.c})),n.d(t,"c",(function(){return r.d})),n.d(t,"d",(function(){return i}));var r=n(104),o=(n(0),n(1));function i({label:e,children:t,disabled:n,labelVisibility:i}){return null==e?Object(o.jsx)(o.Fragment,{}):Object(o.jsxs)(r.b,{"aria-hidden":"true",disabled:n,labelVisibility:i,children:[e,t]})}},112:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));n(0);var r=n(50),o=n(1138),i=n(89),a=n(61),l=n(5);const s=Object(l.a)("div",{target:"e1j25pv60"})((({theme:e})=>({display:"flex",alignItems:"center",svg:{stroke:e.colors.fadedText40,strokeWidth:2.25},":hover":{svg:{stroke:e.colors.fadedText60}}})),"");var c=n(1);var u=function({placement:e=r.b.AUTO,iconSize:t="16",content:n,children:l,markdownProps:u}){const d=Object(a.c)();return Object(c.jsx)(s,{className:"stTooltipIcon",children:Object(c.jsx)(r.c,{content:Object(c.jsx)(i.a,{style:{fontSize:d.fontSizes.sm},source:n,allowHTML:!1,...u||{}}),placement:e,inline:!0,children:l||Object(c.jsx)(o.a,{className:"icon",size:t})})})}},116:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return f}));var r=n(1108),o=n(26),i=n(6),a=n(80),l=n(36),s=n(186),c=n.n(s),u=n(227),d=n.n(u);let p,h;!function(e){e.CategoricalIndex="categorical",e.DatetimeIndex="datetime",e.Float64Index="float64",e.Int64Index="int64",e.RangeIndex="range",e.UInt64Index="uint64",e.UnicodeIndex="unicode",e.PeriodIndex="period[Q-DEC]",e.TimedeltaIndex="time"}(p||(p={})),function(e){e.BLANK="blank",e.INDEX="index",e.COLUMNS="columns",e.DATA="data"}(h||(h={}));class f{constructor(e){this[a.c]=!0,this._index=void 0,this._columns=void 0,this._data=void 0,this._types=void 0,this._styler=void 0;const t=Object(r.a)(e.data),n=f.parseSchema(t),o=f.getRawColumns(n),i=f.parseIndex(t,n),l=f.parseColumns(n),s=f.parseData(t,l,o),c=f.parseTypes(t,n),u=e.styler?f.parseStyler(e.styler):void 0;this._index=i,this._columns=l,this._data=s,this._types=c,this._styler=u}static parseSchema(e){const t=e.schema.metadata.get("pandas");if(null==t)throw new Error("Table schema is missing.");return JSON.parse(t)}static getRawColumns(e){return e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t)))}static parseIndex(e,t){return t.index_columns.map((t=>{if(f.isRangeIndex(t)){const{start:e,stop:n,step:r}=t;return Object(l.range)(e,n,r)}const n=e.getChild(t);return n instanceof o.a&&n.type instanceof i.u?null:n})).filter((e=>null!==e))}static parseColumns(e){const t=e.column_indexes.length>1;return Object(l.unzip)(e.columns.map((e=>e.field_name)).filter((t=>!e.index_columns.includes(t))).map((e=>t?JSON.parse(e.replace(/\(/g,"[").replace(/\)/g,"]").replace(/'/g,'"')):[e])))}static parseData(e,t,n){const r=e.numRows,o=t.length>0?t[0].length:0;return 0===r||0===o?e.select([]):e.select(n)}static parseTypes(e,t){return{index:f.parseIndexType(t),data:f.parseDataType(e,t)}}static parseIndexType(e){return e.index_columns.map((t=>{if(f.isRangeIndex(t))return{pandas_type:p.RangeIndex,numpy_type:p.RangeIndex,meta:t};const n=e.columns.find((e=>e.field_name===t));if(!n)throw new Error(`${t} index not found.`);return{pandas_type:n.pandas_type,numpy_type:n.numpy_type,meta:n.metadata}}))}static parseDataType(e,t){return e.numRows>0?t.columns.filter((e=>!t.index_columns.includes(e.field_name))).map((e=>({pandas_type:e.pandas_type,numpy_type:e.numpy_type,meta:e.metadata}))):[]}static parseStyler(e){return{uuid:e.uuid,caption:e.caption,styles:e.styles,displayValues:new f({data:e.displayValues})}}concatIndexes(e,t){if(0===e.length)return this._index;if(0===this._index.length)return e;if(!f.sameIndexTypes(this._types.index,t)){const e=t.map((e=>f.getTypeName(e))),n=this._types.index.map((e=>f.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}if(0===this._types.index.length)throw new Error("There was an error while parsing index types.");if(this._types.index[0].pandas_type===p.RangeIndex){const{step:t,stop:n}=this._types.index[0].meta;e=[Object(l.range)(n,n+e[0].length*t,t)]}return Object(l.zip)(this._index,e).map((e=>e[0].concat(e[1])))}static sameIndexTypes(e,t){return e.length===t.length&&e.every(((e,n)=>n<t.length&&f.getTypeName(e)===f.getTypeName(t[n])))}concatData(e,t){if(0===e.numCols)return this._data;if(0===this._data.numCols)return e;if(!f.sameDataTypes(this._types.data,t)){const e=t.map((e=>e.pandas_type)),n=this._types.data.map((e=>e.pandas_type));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\ndata signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(e)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}const n=e.selectAt(Object(l.range)(0,this._data.numCols));return this._data.concat(n)}static sameDataTypes(e,t){return e.every(((e,n)=>{var r;return e.pandas_type===(null===(r=t[n])||void 0===r?void 0:r.pandas_type)}))}concatTypes(e){return{index:this.concatIndexTypes(e.index),data:this.concatDataTypes(e.data)}}concatIndexTypes(e){if(0===e.length)return this._types.index;if(0===this._types.index.length)return e;if(!f.sameIndexTypes(this._types.index,e)){const t=e.map((e=>f.getTypeName(e))),n=this._types.index.map((e=>f.getTypeName(e)));throw new Error(`\nUnsupported operation. The data passed into \`add_rows()\` must have the same\nindex signature as the original data.\n\nIn this case, \`add_rows()\` received \`${JSON.stringify(t)}\`\nbut was expecting \`${JSON.stringify(n)}\`.\n`)}return this._types.index.map((t=>{if(t.pandas_type===p.RangeIndex){const{stop:n,step:r}=t.meta,{start:o,stop:i,step:a}=e[0].meta,l=n+(i-o)/a*r;return{...t,meta:{...t.meta,stop:l}}}return t}))}concatDataTypes(e){return 0===this._types.data.length?e:this._types.data}static isRangeIndex(e){return"object"===typeof e&&"range"===e.kind}static formatIntervalIndex(e,t){const n=e.toJSON(),r=t.match(/interval\[(.+), (.+)\]/);if(null===r)throw new Error("Invalid interval type.");const[,o,i]=r,a="both"===i||"right"===i?"]":")";return`${("both"===i||"left"===i?"[":"(")+f.format(n.left,{pandas_type:o,numpy_type:o})}, ${f.format(n.right,{pandas_type:o,numpy_type:o})+a}`}static getTypeName(e){return"object"===e.pandas_type?e.numpy_type:e.pandas_type}static format(e,t){const n=t&&f.getTypeName(t);if(null==e)return"<NA>";const r=e instanceof Date||Number.isFinite(e);if(r&&"date"===n)return c.a.utc(e).format("YYYY-MM-DD");if(r&&"datetimetz"===n){const n=null===t||void 0===t?void 0:t.meta;let r=c()(e);return(null===n||void 0===n?void 0:n.timezone)&&(r=c.a.tz.zone(null===n||void 0===n?void 0:n.timezone)?r.tz(null===n||void 0===n?void 0:n.timezone):r.utcOffset(null===n||void 0===n?void 0:n.timezone)),r.format("YYYY-MM-DDTHH:mm:ssZ")}return r&&(null===n||void 0===n?void 0:n.startsWith("datetime"))?c.a.utc(e).format("YYYY-MM-DDTHH:mm:ss"):(null===n||void 0===n?void 0:n.startsWith("interval"))?f.formatIntervalIndex(e,n):"object"===n||(null===n||void 0===n?void 0:n.startsWith("list"))?JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)):"float64"===n&&Number.isFinite(e)?d()(e).format("0,0.0000"):String(e)}get index(){return this._index}get columns(){return this._columns}get data(){return this._data}get types(){return this._types}get cssId(){var e;if(null!=(null===(e=this._styler)||void 0===e?void 0:e.uuid))return`T_${this._styler.uuid}`}get cssStyles(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.styles)||void 0}get caption(){var e;return(null===(e=this._styler)||void 0===e?void 0:e.caption)||void 0}get dimensions(){const[e,t]=this._index.length?[this._index.length,this._index[0].length]:[1,0],[n,r]=this._columns.length?[this._columns.length,this._columns[0].length]:[1,0],[o,i]=this._data.numRows?[this._data.numRows,this._data.numCols]:[0,r];if(0!==o&&o!==t||0!==i&&i!==r)throw new Error(`Dataframe dimensions don't align: rows(${o} != ${t}) OR cols(${i} != ${r})`);return{headerRows:n,headerColumns:e,dataRows:o,dataColumns:i,rows:n+o,columns:e+i}}isEmpty(){return 0===this._index.length&&0===this._columns.length&&0===this._data.numRows&&0===this._data.numCols}getCell(e,t){var n,r;const{headerRows:o,headerColumns:i,rows:a,columns:l}=this.dimensions;if(e<0||e>=a)throw new Error(`Row index is out of range: ${e}`);if(t<0||t>=l)throw new Error(`Column index is out of range: ${t}`);const s=e>=o&&t<i,c=e<o&&t>=i;if(e<o&&t<i){const n=["blank"];return t>0&&n.push(`level${e}`),{type:h.BLANK,cssClass:n.join(" "),content:""}}if(s){var u;const n=e-o,r=(null===(u=this._styler)||void 0===u?void 0:u.uuid)?`${this.cssId}level${t}_row${n}`:void 0,i=["row_heading",`level${t}`,`row${n}`].join(" "),a=this._types.index[t],l=this.getIndexValue(n,t);return{type:h.INDEX,cssId:r,cssClass:i,content:l,contentType:a}}if(c){const n=t-i,r=["col_heading",`level${e}`,`col${n}`].join(" ");return{type:h.COLUMNS,cssClass:r,content:this._columns[e][n],contentType:{pandas_type:p.UnicodeIndex,numpy_type:"object"}}}const d=e-o,f=t-i,b=(null===(n=this._styler)||void 0===n?void 0:n.uuid)?`${this.cssId}row${d}_col${f}`:void 0,m=["data",`row${d}`,`col${f}`].join(" "),g=this._types.data[f],y=this.getDataValue(d,f),O=(null===(r=this._styler)||void 0===r?void 0:r.displayValues)?this._styler.displayValues.getCell(e,t).content:void 0;return{type:h.DATA,cssId:b,cssClass:m,content:y,contentType:g,displayContent:O}}getIndexValue(e,t){const n=this._index[t];return n instanceof o.a?n.get(e):n[e]}getDataValue(e,t){var n;return null===(n=this._data.getChildAt(t))||void 0===n?void 0:n.get(e)}addRows(e){if(this._styler||e._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(e.isEmpty())return Object(a.d)(this,(e=>e));if(this.isEmpty())return Object(a.d)(e,(e=>e));const t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);return Object(a.d)(this,(e=>{e._index=t,e._data=n,e._types=r}))}}},124:function(e,t,n){"use strict";var r=n(219);n.d(t,"a",(function(){return r.a}))},125:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(0);var r=n(51),o=n(5);const i=Object(o.a)("pre",{target:"e13yyrnc0"})((({theme:e})=>({padding:e.spacing.twoXS,whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:e.fontSizes.sm})),"");var a=n(1);var l=function(e){const{name:t,message:n,stack:o,width:l}=e,s=o?o.split("\n"):[];s.shift();const c=s.map((e=>e.trim())).join("\n");return Object(a.jsxs)(r.b,{kind:r.a.ERROR,width:l,children:[Object(a.jsxs)("strong",{children:[t,": "]}),n,o?Object(a.jsx)(i,{children:Object(a.jsx)("code",{children:c})}):null]})}},132:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(105),o=n.n(r),i=(n(610),n(227)),a=n.n(i);class l{constructor(e){this.millis=void 0,this.millis=e}getTime(){return this.millis}}class s{static nanosToDate(e){return new Date(e/1e6)}static iso8601ContainsTimezone(e){return[/[+-]\d\d\d\d$/,/[+-]\d\d$/,/[+-]\d\d:\d\d$/,/Z$/].some((t=>t.test(e)))}static iso8601ToMoment(e){return s.iso8601ContainsTimezone(e)?o.a.parseZone(e):o()(e)}static nanosToDuration(e){return new l(e/1e6)}static dateToString(e){const t=o()(e);let n="lll";return 0===t.hour()&&0===t.minute()&&0===t.second()&&(n="ll"),t.format(n)}static durationToString(e){const t=o.a.duration(e.getTime()).asMilliseconds();return o.a.utc(t).format()}}function c(e){return o.a.isMoment(e)?e.format():(t=e,Number(t)===t&&t%1!==0?a()(e).format("0,0.0000"):e instanceof Date?s.dateToString(e):e instanceof l?s.durationToString(e):e.toString());var t}},145:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return m.a}));var r=n(0),o=n.n(r),i=n(110),a=n(466),l=n(50),s=n(5),c=n(146),u=n(45);const d=Object(s.a)(u.e,{shouldForwardProp:c.a,target:"e1wbw4rs0"})((({theme:e,$isHighlighted:t})=>{const n=e.inSidebar?e.colors.bgColor:e.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:e.spacing.none,paddingBottom:e.spacing.none,background:t?n:void 0,"@media (max-width: 768px)":{minHeight:"40px",height:"auto !important"},"&:hover, &:active, &:focus":{background:n}}}),"");var p=n(1);function h(e){const{data:t,index:n,style:r}=e,{item:o,overrides:i,...a}=t[n].props;return Object(p.jsx)(d,{style:r,...a,children:Object(p.jsx)(l.a,{content:o.label,placement:l.b.AUTO,children:o.label})},o.value)}const f=o.a.forwardRef(((e,t)=>{const n=o.a.Children.toArray(e.children);if(!n[0]||!n[0].props.item){const e=n[0]?n[0].props:{};return Object(p.jsx)(i.b,{$style:{height:"90px"},ref:t,children:Object(p.jsx)(i.a,{...e})})}const r=Math.min(300,40*n.length);return Object(p.jsx)(i.b,{ref:t,$style:{paddingTop:0,paddingBottom:0},children:Object(p.jsx)(a.a,{width:"100%",height:r,itemCount:n.length,itemData:n,itemKey:(e,t)=>t[e].props.item.value,itemSize:40,children:h})})}));f.displayName="VirtualDropdown";var b=f,m=n(313)},148:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(307),o=n(467),i=n(233),a=n(234),l=n(67);const s=Object(l.d)(i.a,r.a),c=Object(l.d)(a.a,o.a)},15:function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"d",(function(){return u})),n.d(t,"u",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"s",(function(){return h})),n.d(t,"w",(function(){return f})),n.d(t,"h",(function(){return b})),n.d(t,"b",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return j})),n.d(t,"m",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return v})),n.d(t,"e",(function(){return k})),n.d(t,"p",(function(){return P})),n.d(t,"q",(function(){return I})),n.d(t,"r",(function(){return C})),n.d(t,"t",(function(){return V})),n.d(t,"v",(function(){return T})),n.d(t,"x",(function(){return E})),n.d(t,"z",(function(){return A})),n.d(t,"y",(function(){return D})),n.d(t,"A",(function(){return l}));var r=n(8);const o=r.Reader,i=r.Writer,a=r.util,l=r.roots.default||(r.roots.default={}),s=l.Alert=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.format=0,e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(16).int32(e.format),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Alert;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;case 3:r.icon=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body))return"body: string expected";if(null!=e.format&&e.hasOwnProperty("format"))switch(e.format){default:return"format: enum value expected";case 0:case 1:case 2:case 3:case 4:}return null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.Alert)return e;let t=new l.Alert;switch(null!=e.body&&(t.body=String(e.body)),e.format){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}return null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0,n.icon=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.format&&e.hasOwnProperty("format")&&(n.format=t.enums===String?l.Alert.Format[e.format]:e.format),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Format=function(){const e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="ERROR"]=1,t[e[2]="WARNING"]=2,t[e[3]="INFO"]=3,t[e[4]="SUCCESS"]=4,t}(),e})(),c=(l.AppPage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageScriptHash="",e.prototype.pageName="",e.prototype.icon="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(10).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(18).string(e.pageName),null!=e.icon&&Object.hasOwnProperty.call(e,"icon")&&t.uint32(26).string(e.icon),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.AppPage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.pageScriptHash=e.string();break;case 2:r.pageName=e.string();break;case 3:r.icon=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null!=e.icon&&e.hasOwnProperty("icon")&&!a.isString(e.icon)?"icon: string expected":null},e.fromObject=function(e){if(e instanceof l.AppPage)return e;let t=new l.AppPage;return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),null!=e.icon&&(t.icon=String(e.icon)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.pageScriptHash="",n.pageName="",n.icon=""),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),null!=e.icon&&e.hasOwnProperty("icon")&&(n.icon=e.icon),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Arrow=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.newBuffer([]),e.prototype.styler=null,e.prototype.width=0,e.prototype.height=0,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.Styler.encode(e.styler,t.uint32(18).fork()).ldelim(),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Arrow;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=e.bytes();break;case 2:r.styler=l.Styler.decode(e,e.uint32());break;case 3:r.width=e.uint32();break;case 4:r.height=e.uint32();break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||a.isString(e.data)))return"data: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){let t=l.Styler.verify(e.styler);if(t)return"styler."+t}return null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Arrow)return e;let t=new l.Arrow;if(null!=e.data&&("string"===typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".Arrow.styler: object expected");t.styler=l.Styler.fromObject(e.styler)}return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),n.styler=null,n.width=0,n.height=0,n.useContainerWidth=!1),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.Styler.toObject(e.styler,t)),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Styler=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Styler;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!a.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!a.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||a.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.Styler)return e;let t=new l.Styler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?a.base64.decode(e.displayValues,t.displayValues=a.newBuffer(a.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=a.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?a.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowNamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowNamedDataSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Arrow.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowNamedDataSet)return e;let t=new l.ArrowNamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowNamedDataSet.data: object expected");t.data=l.Arrow.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowVegaLiteChart=(()=>{function e(e){if(this.datasets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=a.emptyArray,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Arrow.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(let n=0;n<e.datasets.length;++n)l.ArrowNamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowVegaLiteChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.Arrow.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.ArrowNamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Arrow.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(let t=0;t<e.datasets.length;++t){let n=l.ArrowNamedDataSet.verify(e.datasets[t]);if(n)return"datasets."+n}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.ArrowVegaLiteChart)return e;let t=new l.ArrowVegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowVegaLiteChart.data: object expected");t.data=l.Arrow.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".ArrowVegaLiteChart.datasets: array expected");t.datasets=[];for(let n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".ArrowVegaLiteChart.datasets: object expected");t.datasets[n]=l.ArrowNamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Arrow.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(let r=0;r<e.datasets.length;++r)n.datasets[r]=l.ArrowNamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Audio=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Audio;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:r.url=e.string();break;case 3:r.startTime=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.startTime&&e.hasOwnProperty("startTime")&&!a.isInteger(e.startTime)?"startTime: integer expected":null},e.fromObject=function(e){if(e instanceof l.Audio)return e;let t=new l.Audio;return null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.startTime=0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.BackMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.clearCache=null,e.prototype.setRunOnSave=null,e.prototype.stopScript=null,e.prototype.closeConnection=null,e.prototype.rerunScript=null,e.prototype.loadGitInfo=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["clearCache","setRunOnSave","stopScript","closeConnection","rerunScript","loadGitInfo"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.clearCache&&Object.hasOwnProperty.call(e,"clearCache")&&t.uint32(40).bool(e.clearCache),null!=e.setRunOnSave&&Object.hasOwnProperty.call(e,"setRunOnSave")&&t.uint32(48).bool(e.setRunOnSave),null!=e.stopScript&&Object.hasOwnProperty.call(e,"stopScript")&&t.uint32(56).bool(e.stopScript),null!=e.closeConnection&&Object.hasOwnProperty.call(e,"closeConnection")&&t.uint32(80).bool(e.closeConnection),null!=e.rerunScript&&Object.hasOwnProperty.call(e,"rerunScript")&&l.ClientState.encode(e.rerunScript,t.uint32(90).fork()).ldelim(),null!=e.loadGitInfo&&Object.hasOwnProperty.call(e,"loadGitInfo")&&t.uint32(96).bool(e.loadGitInfo),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&t.uint32(106).string(e.debugLastBackmsgId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.BackMsg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:r.clearCache=e.bool();break;case 6:r.setRunOnSave=e.bool();break;case 7:r.stopScript=e.bool();break;case 10:r.closeConnection=e.bool();break;case 11:r.rerunScript=l.ClientState.decode(e,e.uint32());break;case 12:r.loadGitInfo=e.bool();break;case 13:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(t.type=1,"boolean"!==typeof e.clearCache))return"clearCache: boolean expected";if(null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.setRunOnSave)return"setRunOnSave: boolean expected"}if(null!=e.stopScript&&e.hasOwnProperty("stopScript")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.stopScript)return"stopScript: boolean expected"}if(null!=e.closeConnection&&e.hasOwnProperty("closeConnection")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.closeConnection)return"closeConnection: boolean expected"}if(null!=e.rerunScript&&e.hasOwnProperty("rerunScript")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ClientState.verify(e.rerunScript);if(t)return"rerunScript."+t}}if(null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.loadGitInfo)return"loadGitInfo: boolean expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!a.isString(e.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.BackMsg)return e;let t=new l.BackMsg;if(null!=e.clearCache&&(t.clearCache=Boolean(e.clearCache)),null!=e.setRunOnSave&&(t.setRunOnSave=Boolean(e.setRunOnSave)),null!=e.stopScript&&(t.stopScript=Boolean(e.stopScript)),null!=e.closeConnection&&(t.closeConnection=Boolean(e.closeConnection)),null!=e.rerunScript){if("object"!==typeof e.rerunScript)throw TypeError(".BackMsg.rerunScript: object expected");t.rerunScript=l.ClientState.fromObject(e.rerunScript)}return null!=e.loadGitInfo&&(t.loadGitInfo=Boolean(e.loadGitInfo)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.debugLastBackmsgId=""),null!=e.clearCache&&e.hasOwnProperty("clearCache")&&(n.clearCache=e.clearCache,t.oneofs&&(n.type="clearCache")),null!=e.setRunOnSave&&e.hasOwnProperty("setRunOnSave")&&(n.setRunOnSave=e.setRunOnSave,t.oneofs&&(n.type="setRunOnSave")),null!=e.stopScript&&e.hasOwnProperty("stopScript")&&(n.stopScript=e.stopScript,t.oneofs&&(n.type="stopScript")),null!=e.closeConnection&&e.hasOwnProperty("closeConnection")&&(n.closeConnection=e.closeConnection,t.oneofs&&(n.type="closeConnection")),null!=e.rerunScript&&e.hasOwnProperty("rerunScript")&&(n.rerunScript=l.ClientState.toObject(e.rerunScript,t),t.oneofs&&(n.type="rerunScript")),null!=e.loadGitInfo&&e.hasOwnProperty("loadGitInfo")&&(n.loadGitInfo=e.loadGitInfo,t.oneofs&&(n.type="loadGitInfo")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),u=(l.Balloons=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(24).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Balloons;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 3:r.show=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Balloons)return e;let t=new l.Balloons;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Block=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.vertical=null,e.prototype.horizontal=null,e.prototype.column=null,e.prototype.expandable=null,e.prototype.form=null,e.prototype.tabContainer=null,e.prototype.tab=null,e.prototype.allowEmpty=!1,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["vertical","horizontal","column","expandable","form","tabContainer","tab"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.vertical&&Object.hasOwnProperty.call(e,"vertical")&&l.Block.Vertical.encode(e.vertical,t.uint32(10).fork()).ldelim(),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&l.Block.Horizontal.encode(e.horizontal,t.uint32(18).fork()).ldelim(),null!=e.column&&Object.hasOwnProperty.call(e,"column")&&l.Block.Column.encode(e.column,t.uint32(26).fork()).ldelim(),null!=e.expandable&&Object.hasOwnProperty.call(e,"expandable")&&l.Block.Expandable.encode(e.expandable,t.uint32(34).fork()).ldelim(),null!=e.form&&Object.hasOwnProperty.call(e,"form")&&l.Block.Form.encode(e.form,t.uint32(42).fork()).ldelim(),null!=e.tabContainer&&Object.hasOwnProperty.call(e,"tabContainer")&&l.Block.TabContainer.encode(e.tabContainer,t.uint32(50).fork()).ldelim(),null!=e.tab&&Object.hasOwnProperty.call(e,"tab")&&l.Block.Tab.encode(e.tab,t.uint32(58).fork()).ldelim(),null!=e.allowEmpty&&Object.hasOwnProperty.call(e,"allowEmpty")&&t.uint32(64).bool(e.allowEmpty),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.vertical=l.Block.Vertical.decode(e,e.uint32());break;case 2:r.horizontal=l.Block.Horizontal.decode(e,e.uint32());break;case 3:r.column=l.Block.Column.decode(e,e.uint32());break;case 4:r.expandable=l.Block.Expandable.decode(e,e.uint32());break;case 5:r.form=l.Block.Form.decode(e,e.uint32());break;case 6:r.tabContainer=l.Block.TabContainer.decode(e,e.uint32());break;case 7:r.tab=l.Block.Tab.decode(e,e.uint32());break;case 8:r.allowEmpty=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.vertical&&e.hasOwnProperty("vertical")){t.type=1;{let t=l.Block.Vertical.verify(e.vertical);if(t)return"vertical."+t}}if(null!=e.horizontal&&e.hasOwnProperty("horizontal")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Horizontal.verify(e.horizontal);if(t)return"horizontal."+t}}if(null!=e.column&&e.hasOwnProperty("column")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Column.verify(e.column);if(t)return"column."+t}}if(null!=e.expandable&&e.hasOwnProperty("expandable")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Expandable.verify(e.expandable);if(t)return"expandable."+t}}if(null!=e.form&&e.hasOwnProperty("form")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Form.verify(e.form);if(t)return"form."+t}}if(null!=e.tabContainer&&e.hasOwnProperty("tabContainer")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.TabContainer.verify(e.tabContainer);if(t)return"tabContainer."+t}}if(null!=e.tab&&e.hasOwnProperty("tab")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.Tab.verify(e.tab);if(t)return"tab."+t}}return null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&"boolean"!==typeof e.allowEmpty?"allowEmpty: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block)return e;let t=new l.Block;if(null!=e.vertical){if("object"!==typeof e.vertical)throw TypeError(".Block.vertical: object expected");t.vertical=l.Block.Vertical.fromObject(e.vertical)}if(null!=e.horizontal){if("object"!==typeof e.horizontal)throw TypeError(".Block.horizontal: object expected");t.horizontal=l.Block.Horizontal.fromObject(e.horizontal)}if(null!=e.column){if("object"!==typeof e.column)throw TypeError(".Block.column: object expected");t.column=l.Block.Column.fromObject(e.column)}if(null!=e.expandable){if("object"!==typeof e.expandable)throw TypeError(".Block.expandable: object expected");t.expandable=l.Block.Expandable.fromObject(e.expandable)}if(null!=e.form){if("object"!==typeof e.form)throw TypeError(".Block.form: object expected");t.form=l.Block.Form.fromObject(e.form)}if(null!=e.tabContainer){if("object"!==typeof e.tabContainer)throw TypeError(".Block.tabContainer: object expected");t.tabContainer=l.Block.TabContainer.fromObject(e.tabContainer)}if(null!=e.tab){if("object"!==typeof e.tab)throw TypeError(".Block.tab: object expected");t.tab=l.Block.Tab.fromObject(e.tab)}return null!=e.allowEmpty&&(t.allowEmpty=Boolean(e.allowEmpty)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.allowEmpty=!1),null!=e.vertical&&e.hasOwnProperty("vertical")&&(n.vertical=l.Block.Vertical.toObject(e.vertical,t),t.oneofs&&(n.type="vertical")),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=l.Block.Horizontal.toObject(e.horizontal,t),t.oneofs&&(n.type="horizontal")),null!=e.column&&e.hasOwnProperty("column")&&(n.column=l.Block.Column.toObject(e.column,t),t.oneofs&&(n.type="column")),null!=e.expandable&&e.hasOwnProperty("expandable")&&(n.expandable=l.Block.Expandable.toObject(e.expandable,t),t.oneofs&&(n.type="expandable")),null!=e.form&&e.hasOwnProperty("form")&&(n.form=l.Block.Form.toObject(e.form,t),t.oneofs&&(n.type="form")),null!=e.tabContainer&&e.hasOwnProperty("tabContainer")&&(n.tabContainer=l.Block.TabContainer.toObject(e.tabContainer,t),t.oneofs&&(n.type="tabContainer")),null!=e.tab&&e.hasOwnProperty("tab")&&(n.tab=l.Block.Tab.toObject(e.tab,t),t.oneofs&&(n.type="tab")),null!=e.allowEmpty&&e.hasOwnProperty("allowEmpty")&&(n.allowEmpty=e.allowEmpty),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Vertical=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Vertical;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.Vertical?e:new l.Block.Vertical},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Horizontal=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(10).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Horizontal;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.gap=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gap&&e.hasOwnProperty("gap")&&!a.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Horizontal)return e;let t=new l.Block.Horizontal;return null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.gap=""),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Column=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.weight=0,e.prototype.gap="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.weight&&Object.hasOwnProperty.call(e,"weight")&&t.uint32(9).double(e.weight),null!=e.gap&&Object.hasOwnProperty.call(e,"gap")&&t.uint32(18).string(e.gap),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Column;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.weight=e.double();break;case 2:r.gap=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.weight&&e.hasOwnProperty("weight")&&"number"!==typeof e.weight?"weight: number expected":null!=e.gap&&e.hasOwnProperty("gap")&&!a.isString(e.gap)?"gap: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Column)return e;let t=new l.Block.Column;return null!=e.weight&&(t.weight=Number(e.weight)),null!=e.gap&&(t.gap=String(e.gap)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.weight=0,n.gap=""),null!=e.weight&&e.hasOwnProperty("weight")&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),null!=e.gap&&e.hasOwnProperty("gap")&&(n.gap=e.gap),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Expandable=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Expandable;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Expandable)return e;let t=new l.Block.Expandable;return null!=e.label&&(t.label=String(e.label)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label="",n.expanded=!1),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Form=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.formId="",e.prototype.clearOnSubmit=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(10).string(e.formId),null!=e.clearOnSubmit&&Object.hasOwnProperty.call(e,"clearOnSubmit")&&t.uint32(16).bool(e.clearOnSubmit),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Form;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.formId=e.string();break;case 2:r.clearOnSubmit=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&"boolean"!==typeof e.clearOnSubmit?"clearOnSubmit: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Block.Form)return e;let t=new l.Block.Form;return null!=e.formId&&(t.formId=String(e.formId)),null!=e.clearOnSubmit&&(t.clearOnSubmit=Boolean(e.clearOnSubmit)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.formId="",n.clearOnSubmit=!1),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.clearOnSubmit&&e.hasOwnProperty("clearOnSubmit")&&(n.clearOnSubmit=e.clearOnSubmit),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.TabContainer=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.TabContainer;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Block.TabContainer?e:new l.Block.TabContainer},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Tab=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Block.Tab;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null},e.fromObject=function(e){if(e instanceof l.Block.Tab)return e;let t=new l.Block.Tab;return null!=e.label&&(t.label=String(e.label)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label=""),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e})()),d=(l.BokehChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.figure="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&t.uint32(10).string(e.figure),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(16).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(26).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.BokehChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.figure=e.string();break;case 2:r.useContainerWidth=e.bool();break;case 3:r.elementId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.figure&&e.hasOwnProperty("figure")&&!a.isString(e.figure)?"figure: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!a.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.BokehChart)return e;let t=new l.BokehChart;return null!=e.figure&&(t.figure=String(e.figure)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.figure="",n.useContainerWidth=!1,n.elementId=""),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=e.figure),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Button=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.isFormSubmitter=!1,e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.isFormSubmitter&&Object.hasOwnProperty.call(e,"isFormSubmitter")&&t.uint32(48).bool(e.isFormSubmitter),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Button;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.isFormSubmitter=e.bool();break;case 7:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&"boolean"!==typeof e.isFormSubmitter?"isFormSubmitter: boolean expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Button)return e;let t=new l.Button;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.isFormSubmitter&&(t.isFormSubmitter=Boolean(e.isFormSubmitter)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.isFormSubmitter=!1,n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.isFormSubmitter&&e.hasOwnProperty("isFormSubmitter")&&(n.isFormSubmitter=e.isFormSubmitter),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CameraInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(26).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(34).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(40).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(50).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CameraInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.help=e.string();break;case 4:r.formId=e.string();break;case 5:r.disabled=e.bool();break;case 6:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.CameraInput)return e;let t=new l.CameraInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".CameraInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Checkbox=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=!1,e.prototype.setValue=!1,e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(48).bool(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Checkbox;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.bool();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&"boolean"!==typeof e.value?"value: boolean expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Checkbox)return e;let t=new l.Checkbox;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=Boolean(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.value=!1,n.setValue=!1,n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ClientState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.prototype.widgetStates=null,e.prototype.pageScriptHash="",e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),null!=e.widgetStates&&Object.hasOwnProperty.call(e,"widgetStates")&&l.WidgetStates.encode(e.widgetStates,t.uint32(18).fork()).ldelim(),null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(26).string(e.pageScriptHash),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(34).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ClientState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.queryString=e.string();break;case 2:r.widgetStates=l.WidgetStates.decode(e,e.uint32());break;case 3:r.pageScriptHash=e.string();break;case 4:r.pageName=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.queryString&&e.hasOwnProperty("queryString")&&!a.isString(e.queryString))return"queryString: string expected";if(null!=e.widgetStates&&e.hasOwnProperty("widgetStates")){let t=l.WidgetStates.verify(e.widgetStates);if(t)return"widgetStates."+t}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.ClientState)return e;let t=new l.ClientState;if(null!=e.queryString&&(t.queryString=String(e.queryString)),null!=e.widgetStates){if("object"!==typeof e.widgetStates)throw TypeError(".ClientState.widgetStates: object expected");t.widgetStates=l.WidgetStates.fromObject(e.widgetStates)}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.queryString="",n.widgetStates=null,n.pageScriptHash="",n.pageName=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),null!=e.widgetStates&&e.hasOwnProperty("widgetStates")&&(n.widgetStates=l.WidgetStates.toObject(e.widgetStates,t)),null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ColorPicker=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ColorPicker;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.ColorPicker)return e;let t=new l.ColorPicker;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".ColorPicker.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.StringArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length)for(let n=0;n<e.data.length;++n)t.uint32(10).string(e.data[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.StringArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data&&r.data.length||(r.data=[]),r.data.push(e.string());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isString(e.data[t]))return"data: string[] expected"}return null},e.fromObject=function(e){if(e instanceof l.StringArray)return e;let t=new l.StringArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".StringArray.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=String(e.data[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),p=l.DoubleArray=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.double(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DoubleArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.double())}else r.data.push(e.double());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if("number"!==typeof e.data[t])return"data: number[] expected"}return null},e.fromObject=function(e){if(e instanceof l.DoubleArray)return e;let t=new l.DoubleArray;if(e.data){if(!Array.isArray(e.data))throw TypeError(".DoubleArray.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=Number(e.data[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)n.data[r]=t.json&&!isFinite(e.data[r])?String(e.data[r]):e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),h=(l.Int32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int32Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.int32())}else r.data.push(e.int32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int32Array)return e;let t=new l.Int32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int32Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=0|e.data[n]}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Int64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.int64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int64Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.int64())}else r.data.push(e.int64());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t])&&!(e.data[t]&&a.isInteger(e.data[t].low)&&a.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.Int64Array)return e;let t=new l.Int64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".Int64Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)a.Long?(t.data[n]=a.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new a.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?a.Long.prototype.toString.call(e.data[r]):t.longs===Number?new a.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SInt64Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.sint64(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SInt64Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.sint64())}else r.data.push(e.sint64());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t])&&!(e.data[t]&&a.isInteger(e.data[t].low)&&a.isInteger(e.data[t].high)))return"data: integer|Long[] expected"}return null},e.fromObject=function(e){if(e instanceof l.SInt64Array)return e;let t=new l.SInt64Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".SInt64Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)a.Long?(t.data[n]=a.Long.fromValue(e.data[n])).unsigned=!1:"string"===typeof e.data[n]?t.data[n]=parseInt(e.data[n],10):"number"===typeof e.data[n]?t.data[n]=e.data[n]:"object"===typeof e.data[n]&&(t.data[n]=new a.LongBits(e.data[n].low>>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let r=0;r<e.data.length;++r)"number"===typeof e.data[r]?n.data[r]=t.longs===String?String(e.data[r]):e.data[r]:n.data[r]=t.longs===String?a.Long.prototype.toString.call(e.data[r]):t.longs===Number?new a.LongBits(e.data[r].low>>>0,e.data[r].high>>>0).toNumber():e.data[r]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),f=(l.UInt32Array=(()=>{function e(e){if(this.data=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.data&&e.data.length){t.uint32(10).fork();for(let n=0;n<e.data.length;++n)t.uint32(e.data[n]);t.ldelim()}return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UInt32Array;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.data.push(e.uint32())}else r.data.push(e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){if(!Array.isArray(e.data))return"data: array expected";for(let t=0;t<e.data.length;++t)if(!a.isInteger(e.data[t]))return"data: integer[] expected"}return null},e.fromObject=function(e){if(e instanceof l.UInt32Array)return e;let t=new l.UInt32Array;if(e.data){if(!Array.isArray(e.data))throw TypeError(".UInt32Array.data: array expected");t.data=[];for(let n=0;n<e.data.length;++n)t.data[n]=e.data[n]>>>0}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(let t=0;t<e.data.length;++t)n.data[t]=e.data[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.UploadedFileInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.name="",e.prototype.size=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).sint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.size&&Object.hasOwnProperty.call(e,"size")&&t.uint32(24).uint32(e.size),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UploadedFileInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.sint64();break;case 2:r.name=e.string();break;case 3:r.size=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.id||!e.hasOwnProperty("id")||a.isInteger(e.id)||e.id&&a.isInteger(e.id.low)&&a.isInteger(e.id.high)?null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.size&&e.hasOwnProperty("size")&&!a.isInteger(e.size)?"size: integer expected":null:"id: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.UploadedFileInfo)return e;let t=new l.UploadedFileInfo;return null!=e.id&&(a.Long?(t.id=a.Long.fromValue(e.id)).unsigned=!1:"string"===typeof e.id?t.id=parseInt(e.id,10):"number"===typeof e.id?t.id=e.id:"object"===typeof e.id&&(t.id=new a.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber())),null!=e.name&&(t.name=String(e.name)),null!=e.size&&(t.size=e.size>>>0),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.id=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.id=t.longs===String?"0":0;n.name="",n.size=0}return null!=e.id&&e.hasOwnProperty("id")&&("number"===typeof e.id?n.id=t.longs===String?String(e.id):e.id:n.id=t.longs===String?a.Long.prototype.toString.call(e.id):t.longs===Number?new a.LongBits(e.id.low>>>0,e.id.high>>>0).toNumber():e.id),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.size&&e.hasOwnProperty("size")&&(n.size=e.size),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),b=l.FileUploaderState=(()=>{function e(e){if(this.uploadedFileInfo=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.maxFileId=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.uploadedFileInfo=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.maxFileId&&Object.hasOwnProperty.call(e,"maxFileId")&&t.uint32(8).sint64(e.maxFileId),null!=e.uploadedFileInfo&&e.uploadedFileInfo.length)for(let n=0;n<e.uploadedFileInfo.length;++n)l.UploadedFileInfo.encode(e.uploadedFileInfo[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.FileUploaderState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.maxFileId=e.sint64();break;case 2:r.uploadedFileInfo&&r.uploadedFileInfo.length||(r.uploadedFileInfo=[]),r.uploadedFileInfo.push(l.UploadedFileInfo.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&!a.isInteger(e.maxFileId)&&!(e.maxFileId&&a.isInteger(e.maxFileId.low)&&a.isInteger(e.maxFileId.high)))return"maxFileId: integer|Long expected";if(null!=e.uploadedFileInfo&&e.hasOwnProperty("uploadedFileInfo")){if(!Array.isArray(e.uploadedFileInfo))return"uploadedFileInfo: array expected";for(let t=0;t<e.uploadedFileInfo.length;++t){let n=l.UploadedFileInfo.verify(e.uploadedFileInfo[t]);if(n)return"uploadedFileInfo."+n}}return null},e.fromObject=function(e){if(e instanceof l.FileUploaderState)return e;let t=new l.FileUploaderState;if(null!=e.maxFileId&&(a.Long?(t.maxFileId=a.Long.fromValue(e.maxFileId)).unsigned=!1:"string"===typeof e.maxFileId?t.maxFileId=parseInt(e.maxFileId,10):"number"===typeof e.maxFileId?t.maxFileId=e.maxFileId:"object"===typeof e.maxFileId&&(t.maxFileId=new a.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber())),e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(let n=0;n<e.uploadedFileInfo.length;++n){if("object"!==typeof e.uploadedFileInfo[n])throw TypeError(".FileUploaderState.uploadedFileInfo: object expected");t.uploadedFileInfo[n]=l.UploadedFileInfo.fromObject(e.uploadedFileInfo[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.uploadedFileInfo=[]),t.defaults)if(a.Long){let e=new a.Long(0,0,!1);n.maxFileId=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.maxFileId=t.longs===String?"0":0;if(null!=e.maxFileId&&e.hasOwnProperty("maxFileId")&&("number"===typeof e.maxFileId?n.maxFileId=t.longs===String?String(e.maxFileId):e.maxFileId:n.maxFileId=t.longs===String?a.Long.prototype.toString.call(e.maxFileId):t.longs===Number?new a.LongBits(e.maxFileId.low>>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){n.uploadedFileInfo=[];for(let r=0;r<e.uploadedFileInfo.length;++r)n.uploadedFileInfo[r]=l.UploadedFileInfo.toObject(e.uploadedFileInfo[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),m=(l.ComponentInstance=(()=>{function e(e){if(this.specialArgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.jsonArgs="",e.prototype.specialArgs=a.emptyArray,e.prototype.componentName="",e.prototype.url="",e.prototype.formId="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.jsonArgs&&Object.hasOwnProperty.call(e,"jsonArgs")&&t.uint32(18).string(e.jsonArgs),null!=e.specialArgs&&e.specialArgs.length)for(let n=0;n<e.specialArgs.length;++n)l.SpecialArg.encode(e.specialArgs[n],t.uint32(26).fork()).ldelim();return null!=e.componentName&&Object.hasOwnProperty.call(e,"componentName")&&t.uint32(34).string(e.componentName),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(42).string(e.url),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ComponentInstance;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.jsonArgs=e.string();break;case 3:r.specialArgs&&r.specialArgs.length||(r.specialArgs=[]),r.specialArgs.push(l.SpecialArg.decode(e,e.uint32()));break;case 4:r.componentName=e.string();break;case 5:r.url=e.string();break;case 6:r.formId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&!a.isString(e.jsonArgs))return"jsonArgs: string expected";if(null!=e.specialArgs&&e.hasOwnProperty("specialArgs")){if(!Array.isArray(e.specialArgs))return"specialArgs: array expected";for(let t=0;t<e.specialArgs.length;++t){let n=l.SpecialArg.verify(e.specialArgs[t]);if(n)return"specialArgs."+n}}return null!=e.componentName&&e.hasOwnProperty("componentName")&&!a.isString(e.componentName)?"componentName: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null},e.fromObject=function(e){if(e instanceof l.ComponentInstance)return e;let t=new l.ComponentInstance;if(null!=e.id&&(t.id=String(e.id)),null!=e.jsonArgs&&(t.jsonArgs=String(e.jsonArgs)),e.specialArgs){if(!Array.isArray(e.specialArgs))throw TypeError(".ComponentInstance.specialArgs: array expected");t.specialArgs=[];for(let n=0;n<e.specialArgs.length;++n){if("object"!==typeof e.specialArgs[n])throw TypeError(".ComponentInstance.specialArgs: object expected");t.specialArgs[n]=l.SpecialArg.fromObject(e.specialArgs[n])}}return null!=e.componentName&&(t.componentName=String(e.componentName)),null!=e.url&&(t.url=String(e.url)),null!=e.formId&&(t.formId=String(e.formId)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.specialArgs=[]),t.defaults&&(n.id="",n.jsonArgs="",n.componentName="",n.url="",n.formId=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&(n.jsonArgs=e.jsonArgs),e.specialArgs&&e.specialArgs.length){n.specialArgs=[];for(let r=0;r<e.specialArgs.length;++r)n.specialArgs[r]=l.SpecialArg.toObject(e.specialArgs[r],t)}return null!=e.componentName&&e.hasOwnProperty("componentName")&&(n.componentName=e.componentName),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SpecialArg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.key="",e.prototype.arrowDataframe=null,e.prototype.bytes=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["arrowDataframe","bytes"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.key&&Object.hasOwnProperty.call(e,"key")&&t.uint32(10).string(e.key),null!=e.arrowDataframe&&Object.hasOwnProperty.call(e,"arrowDataframe")&&l.ArrowDataframe.encode(e.arrowDataframe,t.uint32(18).fork()).ldelim(),null!=e.bytes&&Object.hasOwnProperty.call(e,"bytes")&&t.uint32(26).bytes(e.bytes),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SpecialArg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.key=e.string();break;case 2:r.arrowDataframe=l.ArrowDataframe.decode(e,e.uint32());break;case 3:r.bytes=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.key&&e.hasOwnProperty("key")&&!a.isString(e.key))return"key: string expected";if(null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")){t.value=1;{let t=l.ArrowDataframe.verify(e.arrowDataframe);if(t)return"arrowDataframe."+t}}if(null!=e.bytes&&e.hasOwnProperty("bytes")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytes&&"number"===typeof e.bytes.length||a.isString(e.bytes)))return"bytes: buffer expected"}return null},e.fromObject=function(e){if(e instanceof l.SpecialArg)return e;let t=new l.SpecialArg;if(null!=e.key&&(t.key=String(e.key)),null!=e.arrowDataframe){if("object"!==typeof e.arrowDataframe)throw TypeError(".SpecialArg.arrowDataframe: object expected");t.arrowDataframe=l.ArrowDataframe.fromObject(e.arrowDataframe)}return null!=e.bytes&&("string"===typeof e.bytes?a.base64.decode(e.bytes,t.bytes=a.newBuffer(a.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.key=""),null!=e.key&&e.hasOwnProperty("key")&&(n.key=e.key),null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")&&(n.arrowDataframe=l.ArrowDataframe.toObject(e.arrowDataframe,t),t.oneofs&&(n.value="arrowDataframe")),null!=e.bytes&&e.hasOwnProperty("bytes")&&(n.bytes=t.bytes===String?a.base64.encode(e.bytes,0,e.bytes.length):t.bytes===Array?Array.prototype.slice.call(e.bytes):e.bytes,t.oneofs&&(n.value="bytes")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowDataframe=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.height=0,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.ArrowTable.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowDataframe;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.ArrowTable.decode(e,e.uint32());break;case 2:r.height=e.uint32();break;case 3:r.width=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.ArrowTable.verify(e.data);if(t)return"data."+t}return null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowDataframe)return e;let t=new l.ArrowDataframe;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".ArrowDataframe.data: object expected");t.data=l.ArrowTable.fromObject(e.data)}return null!=e.height&&(t.height=e.height>>>0),null!=e.width&&(t.width=e.width>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null,n.height=0,n.width=0),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.ArrowTable.toObject(e.data,t)),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),g=(l.ArrowTable=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=a.newBuffer([]),e.prototype.index=a.newBuffer([]),e.prototype.columns=a.newBuffer([]),e.prototype.styler=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&t.uint32(10).bytes(e.data),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&t.uint32(18).bytes(e.index),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&t.uint32(26).bytes(e.columns),null!=e.styler&&Object.hasOwnProperty.call(e,"styler")&&l.ArrowTableStyler.encode(e.styler,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowTable;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=e.bytes();break;case 2:r.index=e.bytes();break;case 3:r.columns=e.bytes();break;case 5:r.styler=l.ArrowTableStyler.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")&&!(e.data&&"number"===typeof e.data.length||a.isString(e.data)))return"data: buffer expected";if(null!=e.index&&e.hasOwnProperty("index")&&!(e.index&&"number"===typeof e.index.length||a.isString(e.index)))return"index: buffer expected";if(null!=e.columns&&e.hasOwnProperty("columns")&&!(e.columns&&"number"===typeof e.columns.length||a.isString(e.columns)))return"columns: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){let t=l.ArrowTableStyler.verify(e.styler);if(t)return"styler."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowTable)return e;let t=new l.ArrowTable;if(null!=e.data&&("string"===typeof e.data?a.base64.decode(e.data,t.data=a.newBuffer(a.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.index&&("string"===typeof e.index?a.base64.decode(e.index,t.index=a.newBuffer(a.base64.length(e.index)),0):e.index.length&&(t.index=e.index)),null!=e.columns&&("string"===typeof e.columns?a.base64.decode(e.columns,t.columns=a.newBuffer(a.base64.length(e.columns)),0):e.columns.length&&(t.columns=e.columns)),null!=e.styler){if("object"!==typeof e.styler)throw TypeError(".ArrowTable.styler: object expected");t.styler=l.ArrowTableStyler.fromObject(e.styler)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=a.newBuffer(n.data))),t.bytes===String?n.index="":(n.index=[],t.bytes!==Array&&(n.index=a.newBuffer(n.index))),t.bytes===String?n.columns="":(n.columns=[],t.bytes!==Array&&(n.columns=a.newBuffer(n.columns))),n.styler=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?a.base64.encode(e.data,0,e.data.length):t.bytes===Array?Array.prototype.slice.call(e.data):e.data),null!=e.index&&e.hasOwnProperty("index")&&(n.index=t.bytes===String?a.base64.encode(e.index,0,e.index.length):t.bytes===Array?Array.prototype.slice.call(e.index):e.index),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=t.bytes===String?a.base64.encode(e.columns,0,e.columns.length):t.bytes===Array?Array.prototype.slice.call(e.columns):e.columns),null!=e.styler&&e.hasOwnProperty("styler")&&(n.styler=l.ArrowTableStyler.toObject(e.styler,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ArrowTableStyler=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.uuid="",e.prototype.caption="",e.prototype.styles="",e.prototype.displayValues=a.newBuffer([]),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.uuid&&Object.hasOwnProperty.call(e,"uuid")&&t.uint32(10).string(e.uuid),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.styles&&Object.hasOwnProperty.call(e,"styles")&&t.uint32(26).string(e.styles),null!=e.displayValues&&Object.hasOwnProperty.call(e,"displayValues")&&t.uint32(34).bytes(e.displayValues),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ArrowTableStyler;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.uuid=e.string();break;case 2:r.caption=e.string();break;case 3:r.styles=e.string();break;case 4:r.displayValues=e.bytes();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.uuid&&e.hasOwnProperty("uuid")&&!a.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!a.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||a.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowTableStyler)return e;let t=new l.ArrowTableStyler;return null!=e.uuid&&(t.uuid=String(e.uuid)),null!=e.caption&&(t.caption=String(e.caption)),null!=e.styles&&(t.styles=String(e.styles)),null!=e.displayValues&&("string"===typeof e.displayValues?a.base64.decode(e.displayValues,t.displayValues=a.newBuffer(a.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=a.newBuffer(n.displayValues)))),null!=e.uuid&&e.hasOwnProperty("uuid")&&(n.uuid=e.uuid),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.styles&&e.hasOwnProperty("styles")&&(n.styles=e.styles),null!=e.displayValues&&e.hasOwnProperty("displayValues")&&(n.displayValues=t.bytes===String?a.base64.encode(e.displayValues,0,e.displayValues.length):t.bytes===Array?Array.prototype.slice.call(e.displayValues):e.displayValues),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DataFrame=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.prototype.index=null,e.prototype.columns=null,e.prototype.style=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Table.encode(e.data,t.uint32(10).fork()).ldelim(),null!=e.index&&Object.hasOwnProperty.call(e,"index")&&l.Index.encode(e.index,t.uint32(18).fork()).ldelim(),null!=e.columns&&Object.hasOwnProperty.call(e,"columns")&&l.Index.encode(e.columns,t.uint32(26).fork()).ldelim(),null!=e.style&&Object.hasOwnProperty.call(e,"style")&&l.TableStyle.encode(e.style,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DataFrame;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Table.decode(e,e.uint32());break;case 2:r.index=l.Index.decode(e,e.uint32());break;case 3:r.columns=l.Index.decode(e,e.uint32());break;case 4:r.style=l.TableStyle.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Table.verify(e.data);if(t)return"data."+t}if(null!=e.index&&e.hasOwnProperty("index")){let t=l.Index.verify(e.index);if(t)return"index."+t}if(null!=e.columns&&e.hasOwnProperty("columns")){let t=l.Index.verify(e.columns);if(t)return"columns."+t}if(null!=e.style&&e.hasOwnProperty("style")){let t=l.TableStyle.verify(e.style);if(t)return"style."+t}return null},e.fromObject=function(e){if(e instanceof l.DataFrame)return e;let t=new l.DataFrame;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DataFrame.data: object expected");t.data=l.Table.fromObject(e.data)}if(null!=e.index){if("object"!==typeof e.index)throw TypeError(".DataFrame.index: object expected");t.index=l.Index.fromObject(e.index)}if(null!=e.columns){if("object"!==typeof e.columns)throw TypeError(".DataFrame.columns: object expected");t.columns=l.Index.fromObject(e.columns)}if(null!=e.style){if("object"!==typeof e.style)throw TypeError(".DataFrame.style: object expected");t.style=l.TableStyle.fromObject(e.style)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null,n.index=null,n.columns=null,n.style=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Table.toObject(e.data,t)),null!=e.index&&e.hasOwnProperty("index")&&(n.index=l.Index.toObject(e.index,t)),null!=e.columns&&e.hasOwnProperty("columns")&&(n.columns=l.Index.toObject(e.columns,t)),null!=e.style&&e.hasOwnProperty("style")&&(n.style=l.TableStyle.toObject(e.style,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.plainIndex=null,e.prototype.rangeIndex=null,e.prototype.multiIndex=null,e.prototype.datetimeIndex=null,e.prototype.timedeltaIndex=null,e.prototype.int_64Index=null,e.prototype.float_64Index=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["plainIndex","rangeIndex","multiIndex","datetimeIndex","timedeltaIndex","int_64Index","float_64Index"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.plainIndex&&Object.hasOwnProperty.call(e,"plainIndex")&&l.PlainIndex.encode(e.plainIndex,t.uint32(10).fork()).ldelim(),null!=e.rangeIndex&&Object.hasOwnProperty.call(e,"rangeIndex")&&l.RangeIndex.encode(e.rangeIndex,t.uint32(18).fork()).ldelim(),null!=e.multiIndex&&Object.hasOwnProperty.call(e,"multiIndex")&&l.MultiIndex.encode(e.multiIndex,t.uint32(34).fork()).ldelim(),null!=e.datetimeIndex&&Object.hasOwnProperty.call(e,"datetimeIndex")&&l.DatetimeIndex.encode(e.datetimeIndex,t.uint32(50).fork()).ldelim(),null!=e.timedeltaIndex&&Object.hasOwnProperty.call(e,"timedeltaIndex")&&l.TimedeltaIndex.encode(e.timedeltaIndex,t.uint32(58).fork()).ldelim(),null!=e.int_64Index&&Object.hasOwnProperty.call(e,"int_64Index")&&l.Int64Index.encode(e.int_64Index,t.uint32(74).fork()).ldelim(),null!=e.float_64Index&&Object.hasOwnProperty.call(e,"float_64Index")&&l.Float64Index.encode(e.float_64Index,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.plainIndex=l.PlainIndex.decode(e,e.uint32());break;case 2:r.rangeIndex=l.RangeIndex.decode(e,e.uint32());break;case 4:r.multiIndex=l.MultiIndex.decode(e,e.uint32());break;case 6:r.datetimeIndex=l.DatetimeIndex.decode(e,e.uint32());break;case 7:r.timedeltaIndex=l.TimedeltaIndex.decode(e,e.uint32());break;case 9:r.int_64Index=l.Int64Index.decode(e,e.uint32());break;case 11:r.float_64Index=l.Float64Index.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.plainIndex&&e.hasOwnProperty("plainIndex")){t.type=1;{let t=l.PlainIndex.verify(e.plainIndex);if(t)return"plainIndex."+t}}if(null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.RangeIndex.verify(e.rangeIndex);if(t)return"rangeIndex."+t}}if(null!=e.multiIndex&&e.hasOwnProperty("multiIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.MultiIndex.verify(e.multiIndex);if(t)return"multiIndex."+t}}if(null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DatetimeIndex.verify(e.datetimeIndex);if(t)return"datetimeIndex."+t}}if(null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TimedeltaIndex.verify(e.timedeltaIndex);if(t)return"timedeltaIndex."+t}}if(null!=e.int_64Index&&e.hasOwnProperty("int_64Index")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Index.verify(e.int_64Index);if(t)return"int_64Index."+t}}if(null!=e.float_64Index&&e.hasOwnProperty("float_64Index")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Float64Index.verify(e.float_64Index);if(t)return"float_64Index."+t}}return null},e.fromObject=function(e){if(e instanceof l.Index)return e;let t=new l.Index;if(null!=e.plainIndex){if("object"!==typeof e.plainIndex)throw TypeError(".Index.plainIndex: object expected");t.plainIndex=l.PlainIndex.fromObject(e.plainIndex)}if(null!=e.rangeIndex){if("object"!==typeof e.rangeIndex)throw TypeError(".Index.rangeIndex: object expected");t.rangeIndex=l.RangeIndex.fromObject(e.rangeIndex)}if(null!=e.multiIndex){if("object"!==typeof e.multiIndex)throw TypeError(".Index.multiIndex: object expected");t.multiIndex=l.MultiIndex.fromObject(e.multiIndex)}if(null!=e.datetimeIndex){if("object"!==typeof e.datetimeIndex)throw TypeError(".Index.datetimeIndex: object expected");t.datetimeIndex=l.DatetimeIndex.fromObject(e.datetimeIndex)}if(null!=e.timedeltaIndex){if("object"!==typeof e.timedeltaIndex)throw TypeError(".Index.timedeltaIndex: object expected");t.timedeltaIndex=l.TimedeltaIndex.fromObject(e.timedeltaIndex)}if(null!=e.int_64Index){if("object"!==typeof e.int_64Index)throw TypeError(".Index.int_64Index: object expected");t.int_64Index=l.Int64Index.fromObject(e.int_64Index)}if(null!=e.float_64Index){if("object"!==typeof e.float_64Index)throw TypeError(".Index.float_64Index: object expected");t.float_64Index=l.Float64Index.fromObject(e.float_64Index)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.plainIndex&&e.hasOwnProperty("plainIndex")&&(n.plainIndex=l.PlainIndex.toObject(e.plainIndex,t),t.oneofs&&(n.type="plainIndex")),null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")&&(n.rangeIndex=l.RangeIndex.toObject(e.rangeIndex,t),t.oneofs&&(n.type="rangeIndex")),null!=e.multiIndex&&e.hasOwnProperty("multiIndex")&&(n.multiIndex=l.MultiIndex.toObject(e.multiIndex,t),t.oneofs&&(n.type="multiIndex")),null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")&&(n.datetimeIndex=l.DatetimeIndex.toObject(e.datetimeIndex,t),t.oneofs&&(n.type="datetimeIndex")),null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")&&(n.timedeltaIndex=l.TimedeltaIndex.toObject(e.timedeltaIndex,t),t.oneofs&&(n.type="timedeltaIndex")),null!=e.int_64Index&&e.hasOwnProperty("int_64Index")&&(n.int_64Index=l.Int64Index.toObject(e.int_64Index,t),t.oneofs&&(n.type="int_64Index")),null!=e.float_64Index&&e.hasOwnProperty("float_64Index")&&(n.float_64Index=l.Float64Index.toObject(e.float_64Index,t),t.oneofs&&(n.type="float_64Index")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PlainIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.AnyArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PlainIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.AnyArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.AnyArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.PlainIndex)return e;let t=new l.PlainIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".PlainIndex.data: object expected");t.data=l.AnyArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.AnyArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.RangeIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.start=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.stop=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.start&&Object.hasOwnProperty.call(e,"start")&&t.uint32(8).int64(e.start),null!=e.stop&&Object.hasOwnProperty.call(e,"stop")&&t.uint32(16).int64(e.stop),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.RangeIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.start=e.int64();break;case 2:r.stop=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.start||!e.hasOwnProperty("start")||a.isInteger(e.start)||e.start&&a.isInteger(e.start.low)&&a.isInteger(e.start.high)?null==e.stop||!e.hasOwnProperty("stop")||a.isInteger(e.stop)||e.stop&&a.isInteger(e.stop.low)&&a.isInteger(e.stop.high)?null:"stop: integer|Long expected":"start: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.RangeIndex)return e;let t=new l.RangeIndex;return null!=e.start&&(a.Long?(t.start=a.Long.fromValue(e.start)).unsigned=!1:"string"===typeof e.start?t.start=parseInt(e.start,10):"number"===typeof e.start?t.start=e.start:"object"===typeof e.start&&(t.start=new a.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),null!=e.stop&&(a.Long?(t.stop=a.Long.fromValue(e.stop)).unsigned=!1:"string"===typeof e.stop?t.stop=parseInt(e.stop,10):"number"===typeof e.stop?t.stop=e.stop:"object"===typeof e.stop&&(t.stop=new a.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.start=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.start=t.longs===String?"0":0;if(a.Long){let e=new a.Long(0,0,!1);n.stop=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.stop=t.longs===String?"0":0}return null!=e.start&&e.hasOwnProperty("start")&&("number"===typeof e.start?n.start=t.longs===String?String(e.start):e.start:n.start=t.longs===String?a.Long.prototype.toString.call(e.start):t.longs===Number?new a.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber():e.start),null!=e.stop&&e.hasOwnProperty("stop")&&("number"===typeof e.stop?n.stop=t.longs===String?String(e.stop):e.stop:n.stop=t.longs===String?a.Long.prototype.toString.call(e.stop):t.longs===Number?new a.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber():e.stop),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.MultiIndex=(()=>{function e(e){if(this.levels=[],this.labels=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.levels=a.emptyArray,e.prototype.labels=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.levels&&e.levels.length)for(let n=0;n<e.levels.length;++n)l.Index.encode(e.levels[n],t.uint32(10).fork()).ldelim();if(null!=e.labels&&e.labels.length)for(let n=0;n<e.labels.length;++n)l.Int32Array.encode(e.labels[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.MultiIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.levels&&r.levels.length||(r.levels=[]),r.levels.push(l.Index.decode(e,e.uint32()));break;case 2:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.Int32Array.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.levels&&e.hasOwnProperty("levels")){if(!Array.isArray(e.levels))return"levels: array expected";for(let t=0;t<e.levels.length;++t){let n=l.Index.verify(e.levels[t]);if(n)return"levels."+n}}if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(let t=0;t<e.labels.length;++t){let n=l.Int32Array.verify(e.labels[t]);if(n)return"labels."+n}}return null},e.fromObject=function(e){if(e instanceof l.MultiIndex)return e;let t=new l.MultiIndex;if(e.levels){if(!Array.isArray(e.levels))throw TypeError(".MultiIndex.levels: array expected");t.levels=[];for(let n=0;n<e.levels.length;++n){if("object"!==typeof e.levels[n])throw TypeError(".MultiIndex.levels: object expected");t.levels[n]=l.Index.fromObject(e.levels[n])}}if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".MultiIndex.labels: array expected");t.labels=[];for(let n=0;n<e.labels.length;++n){if("object"!==typeof e.labels[n])throw TypeError(".MultiIndex.labels: object expected");t.labels[n]=l.Int32Array.fromObject(e.labels[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.levels=[],n.labels=[]),e.levels&&e.levels.length){n.levels=[];for(let r=0;r<e.levels.length;++r)n.levels[r]=l.Index.toObject(e.levels[r],t)}if(e.labels&&e.labels.length){n.labels=[];for(let r=0;r<e.labels.length;++r)n.labels[r]=l.Int32Array.toObject(e.labels[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DatetimeIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.StringArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DatetimeIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.StringArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.StringArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.DatetimeIndex)return e;let t=new l.DatetimeIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".DatetimeIndex.data: object expected");t.data=l.StringArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.StringArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TimedeltaIndex=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TimedeltaIndex;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.TimedeltaIndex)return e;let t=new l.TimedeltaIndex;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".TimedeltaIndex.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Int64Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.Int64Array.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Int64Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Int64Index)return e;let t=new l.Int64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Int64Index.data: object expected");t.data=l.Int64Array.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.Int64Array.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Float64Index=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DoubleArray.encode(e.data,t.uint32(10).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Float64Index;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.data=l.DoubleArray.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DoubleArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Float64Index)return e;let t=new l.Float64Index;if(null!=e.data){if("object"!==typeof e.data)throw TypeError(".Float64Index.data: object expected");t.data=l.DoubleArray.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.data=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DoubleArray.toObject(e.data,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CSSStyle=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.property="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.property&&Object.hasOwnProperty.call(e,"property")&&t.uint32(10).string(e.property),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CSSStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.property=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.property&&e.hasOwnProperty("property")&&!a.isString(e.property)?"property: string expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.CSSStyle)return e;let t=new l.CSSStyle;return null!=e.property&&(t.property=String(e.property)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.property="",n.value=""),null!=e.property&&e.hasOwnProperty("property")&&(n.property=e.property),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CellStyle=(()=>{function e(e){if(this.css=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.css=a.emptyArray,e.prototype.displayValue="",e.prototype.hasDisplayValue=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.css&&e.css.length)for(let n=0;n<e.css.length;++n)l.CSSStyle.encode(e.css[n],t.uint32(10).fork()).ldelim();return null!=e.displayValue&&Object.hasOwnProperty.call(e,"displayValue")&&t.uint32(18).string(e.displayValue),null!=e.hasDisplayValue&&Object.hasOwnProperty.call(e,"hasDisplayValue")&&t.uint32(24).bool(e.hasDisplayValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CellStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.css&&r.css.length||(r.css=[]),r.css.push(l.CSSStyle.decode(e,e.uint32()));break;case 2:r.displayValue=e.string();break;case 3:r.hasDisplayValue=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.css&&e.hasOwnProperty("css")){if(!Array.isArray(e.css))return"css: array expected";for(let t=0;t<e.css.length;++t){let n=l.CSSStyle.verify(e.css[t]);if(n)return"css."+n}}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&!a.isString(e.displayValue)?"displayValue: string expected":null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&"boolean"!==typeof e.hasDisplayValue?"hasDisplayValue: boolean expected":null},e.fromObject=function(e){if(e instanceof l.CellStyle)return e;let t=new l.CellStyle;if(e.css){if(!Array.isArray(e.css))throw TypeError(".CellStyle.css: array expected");t.css=[];for(let n=0;n<e.css.length;++n){if("object"!==typeof e.css[n])throw TypeError(".CellStyle.css: object expected");t.css[n]=l.CSSStyle.fromObject(e.css[n])}}return null!=e.displayValue&&(t.displayValue=String(e.displayValue)),null!=e.hasDisplayValue&&(t.hasDisplayValue=Boolean(e.hasDisplayValue)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.css=[]),t.defaults&&(n.displayValue="",n.hasDisplayValue=!1),e.css&&e.css.length){n.css=[];for(let r=0;r<e.css.length;++r)n.css[r]=l.CSSStyle.toObject(e.css[r],t)}return null!=e.displayValue&&e.hasOwnProperty("displayValue")&&(n.displayValue=e.displayValue),null!=e.hasDisplayValue&&e.hasOwnProperty("hasDisplayValue")&&(n.hasDisplayValue=e.hasDisplayValue),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CellStyleArray=(()=>{function e(e){if(this.styles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.styles=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.styles&&e.styles.length)for(let n=0;n<e.styles.length;++n)l.CellStyle.encode(e.styles[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CellStyleArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.styles&&r.styles.length||(r.styles=[]),r.styles.push(l.CellStyle.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.styles&&e.hasOwnProperty("styles")){if(!Array.isArray(e.styles))return"styles: array expected";for(let t=0;t<e.styles.length;++t){let n=l.CellStyle.verify(e.styles[t]);if(n)return"styles."+n}}return null},e.fromObject=function(e){if(e instanceof l.CellStyleArray)return e;let t=new l.CellStyleArray;if(e.styles){if(!Array.isArray(e.styles))throw TypeError(".CellStyleArray.styles: array expected");t.styles=[];for(let n=0;n<e.styles.length;++n){if("object"!==typeof e.styles[n])throw TypeError(".CellStyleArray.styles: object expected");t.styles[n]=l.CellStyle.fromObject(e.styles[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.styles=[]),e.styles&&e.styles.length){n.styles=[];for(let r=0;r<e.styles.length;++r)n.styles[r]=l.CellStyle.toObject(e.styles[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.AnyArray=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.strings=null,e.prototype.doubles=null,e.prototype.int64s=null,e.prototype.datetimes=null,e.prototype.timedeltas=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["strings","doubles","int64s","datetimes","timedeltas"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.strings&&Object.hasOwnProperty.call(e,"strings")&&l.StringArray.encode(e.strings,t.uint32(10).fork()).ldelim(),null!=e.doubles&&Object.hasOwnProperty.call(e,"doubles")&&l.DoubleArray.encode(e.doubles,t.uint32(18).fork()).ldelim(),null!=e.int64s&&Object.hasOwnProperty.call(e,"int64s")&&l.Int64Array.encode(e.int64s,t.uint32(26).fork()).ldelim(),null!=e.datetimes&&Object.hasOwnProperty.call(e,"datetimes")&&l.StringArray.encode(e.datetimes,t.uint32(34).fork()).ldelim(),null!=e.timedeltas&&Object.hasOwnProperty.call(e,"timedeltas")&&l.Int64Array.encode(e.timedeltas,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.AnyArray;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.strings=l.StringArray.decode(e,e.uint32());break;case 2:r.doubles=l.DoubleArray.decode(e,e.uint32());break;case 3:r.int64s=l.Int64Array.decode(e,e.uint32());break;case 4:r.datetimes=l.StringArray.decode(e,e.uint32());break;case 5:r.timedeltas=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.strings&&e.hasOwnProperty("strings")){t.type=1;{let t=l.StringArray.verify(e.strings);if(t)return"strings."+t}}if(null!=e.doubles&&e.hasOwnProperty("doubles")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DoubleArray.verify(e.doubles);if(t)return"doubles."+t}}if(null!=e.int64s&&e.hasOwnProperty("int64s")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Array.verify(e.int64s);if(t)return"int64s."+t}}if(null!=e.datetimes&&e.hasOwnProperty("datetimes")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.StringArray.verify(e.datetimes);if(t)return"datetimes."+t}}if(null!=e.timedeltas&&e.hasOwnProperty("timedeltas")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Int64Array.verify(e.timedeltas);if(t)return"timedeltas."+t}}return null},e.fromObject=function(e){if(e instanceof l.AnyArray)return e;let t=new l.AnyArray;if(null!=e.strings){if("object"!==typeof e.strings)throw TypeError(".AnyArray.strings: object expected");t.strings=l.StringArray.fromObject(e.strings)}if(null!=e.doubles){if("object"!==typeof e.doubles)throw TypeError(".AnyArray.doubles: object expected");t.doubles=l.DoubleArray.fromObject(e.doubles)}if(null!=e.int64s){if("object"!==typeof e.int64s)throw TypeError(".AnyArray.int64s: object expected");t.int64s=l.Int64Array.fromObject(e.int64s)}if(null!=e.datetimes){if("object"!==typeof e.datetimes)throw TypeError(".AnyArray.datetimes: object expected");t.datetimes=l.StringArray.fromObject(e.datetimes)}if(null!=e.timedeltas){if("object"!==typeof e.timedeltas)throw TypeError(".AnyArray.timedeltas: object expected");t.timedeltas=l.Int64Array.fromObject(e.timedeltas)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.strings&&e.hasOwnProperty("strings")&&(n.strings=l.StringArray.toObject(e.strings,t),t.oneofs&&(n.type="strings")),null!=e.doubles&&e.hasOwnProperty("doubles")&&(n.doubles=l.DoubleArray.toObject(e.doubles,t),t.oneofs&&(n.type="doubles")),null!=e.int64s&&e.hasOwnProperty("int64s")&&(n.int64s=l.Int64Array.toObject(e.int64s,t),t.oneofs&&(n.type="int64s")),null!=e.datetimes&&e.hasOwnProperty("datetimes")&&(n.datetimes=l.StringArray.toObject(e.datetimes,t),t.oneofs&&(n.type="datetimes")),null!=e.timedeltas&&e.hasOwnProperty("timedeltas")&&(n.timedeltas=l.Int64Array.toObject(e.timedeltas,t),t.oneofs&&(n.type="timedeltas")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Table=(()=>{function e(e){if(this.cols=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cols&&e.cols.length)for(let n=0;n<e.cols.length;++n)l.AnyArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Table;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.AnyArray.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(let t=0;t<e.cols.length;++t){let n=l.AnyArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.Table)return e;let t=new l.Table;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".Table.cols: array expected");t.cols=[];for(let n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".Table.cols: object expected");t.cols[n]=l.AnyArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(let r=0;r<e.cols.length;++r)n.cols[r]=l.AnyArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TableStyle=(()=>{function e(e){if(this.cols=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cols=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cols&&e.cols.length)for(let n=0;n<e.cols.length;++n)l.CellStyleArray.encode(e.cols[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TableStyle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.CellStyleArray.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cols&&e.hasOwnProperty("cols")){if(!Array.isArray(e.cols))return"cols: array expected";for(let t=0;t<e.cols.length;++t){let n=l.CellStyleArray.verify(e.cols[t]);if(n)return"cols."+n}}return null},e.fromObject=function(e){if(e instanceof l.TableStyle)return e;let t=new l.TableStyle;if(e.cols){if(!Array.isArray(e.cols))throw TypeError(".TableStyle.cols: array expected");t.cols=[];for(let n=0;n<e.cols.length;++n){if("object"!==typeof e.cols[n])throw TypeError(".TableStyle.cols: object expected");t.cols[n]=l.CellStyleArray.fromObject(e.cols[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.cols=[]),e.cols&&e.cols.length){n.cols=[];for(let r=0;r<e.cols.length;++r)n.cols[r]=l.CellStyleArray.toObject(e.cols[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DateInput=(()=>{function e(e){if(this.default=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=a.emptyArray,e.prototype.min="",e.prototype.max="",e.prototype.isRange=!1,e.prototype.help="",e.prototype.formId="",e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length)for(let n=0;n<e.default.length;++n)t.uint32(26).string(e.default[n]);if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(34).string(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(42).string(e.max),null!=e.isRange&&Object.hasOwnProperty.call(e,"isRange")&&t.uint32(48).bool(e.isRange),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.value&&e.value.length)for(let n=0;n<e.value.length;++n)t.uint32(74).string(e.value[n]);return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(80).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DateInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default&&r.default.length||(r.default=[]),r.default.push(e.string());break;case 4:r.min=e.string();break;case 5:r.max=e.string();break;case 6:r.isRange=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.value&&r.value.length||(r.value=[]),r.value.push(e.string());break;case 10:r.setValue=e.bool();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if(!a.isString(e.default[t]))return"default: string[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&!a.isString(e.min))return"min: string expected";if(null!=e.max&&e.hasOwnProperty("max")&&!a.isString(e.max))return"max: string expected";if(null!=e.isRange&&e.hasOwnProperty("isRange")&&"boolean"!==typeof e.isRange)return"isRange: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if(!a.isString(e.value[t]))return"value: string[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.DateInput)return e;let t=new l.DateInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".DateInput.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=String(e.default[n])}if(null!=e.min&&(t.min=String(e.min)),null!=e.max&&(t.max=String(e.max)),null!=e.isRange&&(t.isRange=Boolean(e.isRange)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".DateInput.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=String(e.value[n])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".DateInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.min="",n.max="",n.isRange=!1,n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=e.max),null!=e.isRange&&e.hasOwnProperty("isRange")&&(n.isRange=e.isRange),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DeckGlJsonChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.json="",e.prototype.tooltip="",e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&t.uint32(10).string(e.json),null!=e.tooltip&&Object.hasOwnProperty.call(e,"tooltip")&&t.uint32(18).string(e.tooltip),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DeckGlJsonChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.json=e.string();break;case 2:r.tooltip=e.string();break;case 4:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.json&&e.hasOwnProperty("json")&&!a.isString(e.json)?"json: string expected":null!=e.tooltip&&e.hasOwnProperty("tooltip")&&!a.isString(e.tooltip)?"tooltip: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DeckGlJsonChart)return e;let t=new l.DeckGlJsonChart;return null!=e.json&&(t.json=String(e.json)),null!=e.tooltip&&(t.tooltip=String(e.tooltip)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.json="",n.tooltip="",n.useContainerWidth=!1),null!=e.json&&e.hasOwnProperty("json")&&(n.json=e.json),null!=e.tooltip&&e.hasOwnProperty("tooltip")&&(n.tooltip=e.tooltip),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Delta=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.newElement=null,e.prototype.addBlock=null,e.prototype.addRows=null,e.prototype.arrowAddRows=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["newElement","addBlock","addRows","arrowAddRows"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.newElement&&Object.hasOwnProperty.call(e,"newElement")&&l.Element.encode(e.newElement,t.uint32(26).fork()).ldelim(),null!=e.addRows&&Object.hasOwnProperty.call(e,"addRows")&&l.NamedDataSet.encode(e.addRows,t.uint32(42).fork()).ldelim(),null!=e.addBlock&&Object.hasOwnProperty.call(e,"addBlock")&&l.Block.encode(e.addBlock,t.uint32(50).fork()).ldelim(),null!=e.arrowAddRows&&Object.hasOwnProperty.call(e,"arrowAddRows")&&l.ArrowNamedDataSet.encode(e.arrowAddRows,t.uint32(58).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Delta;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 3:r.newElement=l.Element.decode(e,e.uint32());break;case 6:r.addBlock=l.Block.decode(e,e.uint32());break;case 5:r.addRows=l.NamedDataSet.decode(e,e.uint32());break;case 7:r.arrowAddRows=l.ArrowNamedDataSet.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.newElement&&e.hasOwnProperty("newElement")){t.type=1;{let t=l.Element.verify(e.newElement);if(t)return"newElement."+t}}if(null!=e.addBlock&&e.hasOwnProperty("addBlock")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Block.verify(e.addBlock);if(t)return"addBlock."+t}}if(null!=e.addRows&&e.hasOwnProperty("addRows")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.NamedDataSet.verify(e.addRows);if(t)return"addRows."+t}}if(null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ArrowNamedDataSet.verify(e.arrowAddRows);if(t)return"arrowAddRows."+t}}return null},e.fromObject=function(e){if(e instanceof l.Delta)return e;let t=new l.Delta;if(null!=e.newElement){if("object"!==typeof e.newElement)throw TypeError(".Delta.newElement: object expected");t.newElement=l.Element.fromObject(e.newElement)}if(null!=e.addBlock){if("object"!==typeof e.addBlock)throw TypeError(".Delta.addBlock: object expected");t.addBlock=l.Block.fromObject(e.addBlock)}if(null!=e.addRows){if("object"!==typeof e.addRows)throw TypeError(".Delta.addRows: object expected");t.addRows=l.NamedDataSet.fromObject(e.addRows)}if(null!=e.arrowAddRows){if("object"!==typeof e.arrowAddRows)throw TypeError(".Delta.arrowAddRows: object expected");t.arrowAddRows=l.ArrowNamedDataSet.fromObject(e.arrowAddRows)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.newElement&&e.hasOwnProperty("newElement")&&(n.newElement=l.Element.toObject(e.newElement,t),t.oneofs&&(n.type="newElement")),null!=e.addRows&&e.hasOwnProperty("addRows")&&(n.addRows=l.NamedDataSet.toObject(e.addRows,t),t.oneofs&&(n.type="addRows")),null!=e.addBlock&&e.hasOwnProperty("addBlock")&&(n.addBlock=l.Block.toObject(e.addBlock,t),t.oneofs&&(n.type="addBlock")),null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")&&(n.arrowAddRows=l.ArrowNamedDataSet.toObject(e.arrowAddRows,t),t.oneofs&&(n.type="arrowAddRows")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DocString=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.module="",e.prototype.docString="",e.prototype.type="",e.prototype.signature="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(18).string(e.module),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&t.uint32(26).string(e.docString),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(34).string(e.type),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(42).string(e.signature),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DocString;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.module=e.string();break;case 3:r.docString=e.string();break;case 4:r.type=e.string();break;case 5:r.signature=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.module&&e.hasOwnProperty("module")&&!a.isString(e.module)?"module: string expected":null!=e.docString&&e.hasOwnProperty("docString")&&!a.isString(e.docString)?"docString: string expected":null!=e.type&&e.hasOwnProperty("type")&&!a.isString(e.type)?"type: string expected":null!=e.signature&&e.hasOwnProperty("signature")&&!a.isString(e.signature)?"signature: string expected":null},e.fromObject=function(e){if(e instanceof l.DocString)return e;let t=new l.DocString;return null!=e.name&&(t.name=String(e.name)),null!=e.module&&(t.module=String(e.module)),null!=e.docString&&(t.docString=String(e.docString)),null!=e.type&&(t.type=String(e.type)),null!=e.signature&&(t.signature=String(e.signature)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.module="",n.docString="",n.type="",n.signature=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=e.docString),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.signature&&e.hasOwnProperty("signature")&&(n.signature=e.signature),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.DownloadButton=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=!1,e.prototype.help="",e.prototype.formId="",e.prototype.url="",e.prototype.disabled=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).bool(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(56).bool(e.disabled),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.DownloadButton;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.bool();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.url=e.string();break;case 7:r.disabled=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&"boolean"!==typeof e.default?"default: boolean expected":null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId)?"formId: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.DownloadButton)return e;let t=new l.DownloadButton;return null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=Boolean(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.url&&(t.url=String(e.url)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default=!1,n.help="",n.formId="",n.url="",n.disabled=!1),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Element=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.alert=null,e.prototype.arrowDataFrame=null,e.prototype.arrowTable=null,e.prototype.arrowVegaLiteChart=null,e.prototype.audio=null,e.prototype.balloons=null,e.prototype.bokehChart=null,e.prototype.button=null,e.prototype.downloadButton=null,e.prototype.cameraInput=null,e.prototype.checkbox=null,e.prototype.colorPicker=null,e.prototype.componentInstance=null,e.prototype.dataFrame=null,e.prototype.table=null,e.prototype.dateInput=null,e.prototype.deckGlJsonChart=null,e.prototype.docString=null,e.prototype.empty=null,e.prototype.exception=null,e.prototype.favicon=null,e.prototype.fileUploader=null,e.prototype.graphvizChart=null,e.prototype.iframe=null,e.prototype.imgs=null,e.prototype.json=null,e.prototype.markdown=null,e.prototype.metric=null,e.prototype.multiselect=null,e.prototype.numberInput=null,e.prototype.plotlyChart=null,e.prototype.progress=null,e.prototype.radio=null,e.prototype.selectbox=null,e.prototype.slider=null,e.prototype.snow=null,e.prototype.spinner=null,e.prototype.text=null,e.prototype.textArea=null,e.prototype.textInput=null,e.prototype.timeInput=null,e.prototype.vegaLiteChart=null,e.prototype.video=null,e.prototype.heading=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["alert","arrowDataFrame","arrowTable","arrowVegaLiteChart","audio","balloons","bokehChart","button","downloadButton","cameraInput","checkbox","colorPicker","componentInstance","dataFrame","table","dateInput","deckGlJsonChart","docString","empty","exception","favicon","fileUploader","graphvizChart","iframe","imgs","json","markdown","metric","multiselect","numberInput","plotlyChart","progress","radio","selectbox","slider","snow","spinner","text","textArea","textInput","timeInput","vegaLiteChart","video","heading"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&l.Text.encode(e.text,t.uint32(10).fork()).ldelim(),null!=e.empty&&Object.hasOwnProperty.call(e,"empty")&&l.Empty.encode(e.empty,t.uint32(18).fork()).ldelim(),null!=e.dataFrame&&Object.hasOwnProperty.call(e,"dataFrame")&&l.DataFrame.encode(e.dataFrame,t.uint32(26).fork()).ldelim(),null!=e.progress&&Object.hasOwnProperty.call(e,"progress")&&l.Progress.encode(e.progress,t.uint32(42).fork()).ldelim(),null!=e.imgs&&Object.hasOwnProperty.call(e,"imgs")&&l.ImageList.encode(e.imgs,t.uint32(50).fork()).ldelim(),null!=e.docString&&Object.hasOwnProperty.call(e,"docString")&&l.DocString.encode(e.docString,t.uint32(58).fork()).ldelim(),null!=e.exception&&Object.hasOwnProperty.call(e,"exception")&&l.Exception.encode(e.exception,t.uint32(66).fork()).ldelim(),null!=e.vegaLiteChart&&Object.hasOwnProperty.call(e,"vegaLiteChart")&&l.VegaLiteChart.encode(e.vegaLiteChart,t.uint32(82).fork()).ldelim(),null!=e.table&&Object.hasOwnProperty.call(e,"table")&&l.DataFrame.encode(e.table,t.uint32(90).fork()).ldelim(),null!=e.balloons&&Object.hasOwnProperty.call(e,"balloons")&&l.Balloons.encode(e.balloons,t.uint32(98).fork()).ldelim(),null!=e.audio&&Object.hasOwnProperty.call(e,"audio")&&l.Audio.encode(e.audio,t.uint32(106).fork()).ldelim(),null!=e.video&&Object.hasOwnProperty.call(e,"video")&&l.Video.encode(e.video,t.uint32(114).fork()).ldelim(),null!=e.plotlyChart&&Object.hasOwnProperty.call(e,"plotlyChart")&&l.PlotlyChart.encode(e.plotlyChart,t.uint32(130).fork()).ldelim(),null!=e.bokehChart&&Object.hasOwnProperty.call(e,"bokehChart")&&l.BokehChart.encode(e.bokehChart,t.uint32(138).fork()).ldelim(),null!=e.graphvizChart&&Object.hasOwnProperty.call(e,"graphvizChart")&&l.GraphVizChart.encode(e.graphvizChart,t.uint32(146).fork()).ldelim(),null!=e.button&&Object.hasOwnProperty.call(e,"button")&&l.Button.encode(e.button,t.uint32(154).fork()).ldelim(),null!=e.checkbox&&Object.hasOwnProperty.call(e,"checkbox")&&l.Checkbox.encode(e.checkbox,t.uint32(162).fork()).ldelim(),null!=e.slider&&Object.hasOwnProperty.call(e,"slider")&&l.Slider.encode(e.slider,t.uint32(170).fork()).ldelim(),null!=e.textArea&&Object.hasOwnProperty.call(e,"textArea")&&l.TextArea.encode(e.textArea,t.uint32(178).fork()).ldelim(),null!=e.radio&&Object.hasOwnProperty.call(e,"radio")&&l.Radio.encode(e.radio,t.uint32(186).fork()).ldelim(),null!=e.textInput&&Object.hasOwnProperty.call(e,"textInput")&&l.TextInput.encode(e.textInput,t.uint32(194).fork()).ldelim(),null!=e.selectbox&&Object.hasOwnProperty.call(e,"selectbox")&&l.Selectbox.encode(e.selectbox,t.uint32(202).fork()).ldelim(),null!=e.timeInput&&Object.hasOwnProperty.call(e,"timeInput")&&l.TimeInput.encode(e.timeInput,t.uint32(210).fork()).ldelim(),null!=e.dateInput&&Object.hasOwnProperty.call(e,"dateInput")&&l.DateInput.encode(e.dateInput,t.uint32(218).fork()).ldelim(),null!=e.multiselect&&Object.hasOwnProperty.call(e,"multiselect")&&l.MultiSelect.encode(e.multiselect,t.uint32(226).fork()).ldelim(),null!=e.markdown&&Object.hasOwnProperty.call(e,"markdown")&&l.Markdown.encode(e.markdown,t.uint32(234).fork()).ldelim(),null!=e.alert&&Object.hasOwnProperty.call(e,"alert")&&l.Alert.encode(e.alert,t.uint32(242).fork()).ldelim(),null!=e.json&&Object.hasOwnProperty.call(e,"json")&&l.Json.encode(e.json,t.uint32(250).fork()).ldelim(),null!=e.numberInput&&Object.hasOwnProperty.call(e,"numberInput")&&l.NumberInput.encode(e.numberInput,t.uint32(258).fork()).ldelim(),null!=e.fileUploader&&Object.hasOwnProperty.call(e,"fileUploader")&&l.FileUploader.encode(e.fileUploader,t.uint32(266).fork()).ldelim(),null!=e.deckGlJsonChart&&Object.hasOwnProperty.call(e,"deckGlJsonChart")&&l.DeckGlJsonChart.encode(e.deckGlJsonChart,t.uint32(274).fork()).ldelim(),null!=e.colorPicker&&Object.hasOwnProperty.call(e,"colorPicker")&&l.ColorPicker.encode(e.colorPicker,t.uint32(282).fork()).ldelim(),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&l.Favicon.encode(e.favicon,t.uint32(290).fork()).ldelim(),null!=e.componentInstance&&Object.hasOwnProperty.call(e,"componentInstance")&&l.ComponentInstance.encode(e.componentInstance,t.uint32(298).fork()).ldelim(),null!=e.iframe&&Object.hasOwnProperty.call(e,"iframe")&&l.IFrame.encode(e.iframe,t.uint32(306).fork()).ldelim(),null!=e.arrowTable&&Object.hasOwnProperty.call(e,"arrowTable")&&l.Arrow.encode(e.arrowTable,t.uint32(314).fork()).ldelim(),null!=e.arrowDataFrame&&Object.hasOwnProperty.call(e,"arrowDataFrame")&&l.Arrow.encode(e.arrowDataFrame,t.uint32(322).fork()).ldelim(),null!=e.arrowVegaLiteChart&&Object.hasOwnProperty.call(e,"arrowVegaLiteChart")&&l.ArrowVegaLiteChart.encode(e.arrowVegaLiteChart,t.uint32(330).fork()).ldelim(),null!=e.metric&&Object.hasOwnProperty.call(e,"metric")&&l.Metric.encode(e.metric,t.uint32(338).fork()).ldelim(),null!=e.downloadButton&&Object.hasOwnProperty.call(e,"downloadButton")&&l.DownloadButton.encode(e.downloadButton,t.uint32(346).fork()).ldelim(),null!=e.spinner&&Object.hasOwnProperty.call(e,"spinner")&&l.Spinner.encode(e.spinner,t.uint32(354).fork()).ldelim(),null!=e.cameraInput&&Object.hasOwnProperty.call(e,"cameraInput")&&l.CameraInput.encode(e.cameraInput,t.uint32(362).fork()).ldelim(),null!=e.snow&&Object.hasOwnProperty.call(e,"snow")&&l.Snow.encode(e.snow,t.uint32(370).fork()).ldelim(),null!=e.heading&&Object.hasOwnProperty.call(e,"heading")&&l.Heading.encode(e.heading,t.uint32(378).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Element;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 30:r.alert=l.Alert.decode(e,e.uint32());break;case 40:r.arrowDataFrame=l.Arrow.decode(e,e.uint32());break;case 39:r.arrowTable=l.Arrow.decode(e,e.uint32());break;case 41:r.arrowVegaLiteChart=l.ArrowVegaLiteChart.decode(e,e.uint32());break;case 13:r.audio=l.Audio.decode(e,e.uint32());break;case 12:r.balloons=l.Balloons.decode(e,e.uint32());break;case 17:r.bokehChart=l.BokehChart.decode(e,e.uint32());break;case 19:r.button=l.Button.decode(e,e.uint32());break;case 43:r.downloadButton=l.DownloadButton.decode(e,e.uint32());break;case 45:r.cameraInput=l.CameraInput.decode(e,e.uint32());break;case 20:r.checkbox=l.Checkbox.decode(e,e.uint32());break;case 35:r.colorPicker=l.ColorPicker.decode(e,e.uint32());break;case 37:r.componentInstance=l.ComponentInstance.decode(e,e.uint32());break;case 3:r.dataFrame=l.DataFrame.decode(e,e.uint32());break;case 11:r.table=l.DataFrame.decode(e,e.uint32());break;case 27:r.dateInput=l.DateInput.decode(e,e.uint32());break;case 34:r.deckGlJsonChart=l.DeckGlJsonChart.decode(e,e.uint32());break;case 7:r.docString=l.DocString.decode(e,e.uint32());break;case 2:r.empty=l.Empty.decode(e,e.uint32());break;case 8:r.exception=l.Exception.decode(e,e.uint32());break;case 36:r.favicon=l.Favicon.decode(e,e.uint32());break;case 33:r.fileUploader=l.FileUploader.decode(e,e.uint32());break;case 18:r.graphvizChart=l.GraphVizChart.decode(e,e.uint32());break;case 38:r.iframe=l.IFrame.decode(e,e.uint32());break;case 6:r.imgs=l.ImageList.decode(e,e.uint32());break;case 31:r.json=l.Json.decode(e,e.uint32());break;case 29:r.markdown=l.Markdown.decode(e,e.uint32());break;case 42:r.metric=l.Metric.decode(e,e.uint32());break;case 28:r.multiselect=l.MultiSelect.decode(e,e.uint32());break;case 32:r.numberInput=l.NumberInput.decode(e,e.uint32());break;case 16:r.plotlyChart=l.PlotlyChart.decode(e,e.uint32());break;case 5:r.progress=l.Progress.decode(e,e.uint32());break;case 23:r.radio=l.Radio.decode(e,e.uint32());break;case 25:r.selectbox=l.Selectbox.decode(e,e.uint32());break;case 21:r.slider=l.Slider.decode(e,e.uint32());break;case 46:r.snow=l.Snow.decode(e,e.uint32());break;case 44:r.spinner=l.Spinner.decode(e,e.uint32());break;case 1:r.text=l.Text.decode(e,e.uint32());break;case 22:r.textArea=l.TextArea.decode(e,e.uint32());break;case 24:r.textInput=l.TextInput.decode(e,e.uint32());break;case 26:r.timeInput=l.TimeInput.decode(e,e.uint32());break;case 10:r.vegaLiteChart=l.VegaLiteChart.decode(e,e.uint32());break;case 14:r.video=l.Video.decode(e,e.uint32());break;case 47:r.heading=l.Heading.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.alert&&e.hasOwnProperty("alert")){t.type=1;{let t=l.Alert.verify(e.alert);if(t)return"alert."+t}}if(null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Arrow.verify(e.arrowDataFrame);if(t)return"arrowDataFrame."+t}}if(null!=e.arrowTable&&e.hasOwnProperty("arrowTable")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Arrow.verify(e.arrowTable);if(t)return"arrowTable."+t}}if(null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ArrowVegaLiteChart.verify(e.arrowVegaLiteChart);if(t)return"arrowVegaLiteChart."+t}}if(null!=e.audio&&e.hasOwnProperty("audio")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Audio.verify(e.audio);if(t)return"audio."+t}}if(null!=e.balloons&&e.hasOwnProperty("balloons")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Balloons.verify(e.balloons);if(t)return"balloons."+t}}if(null!=e.bokehChart&&e.hasOwnProperty("bokehChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.BokehChart.verify(e.bokehChart);if(t)return"bokehChart."+t}}if(null!=e.button&&e.hasOwnProperty("button")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Button.verify(e.button);if(t)return"button."+t}}if(null!=e.downloadButton&&e.hasOwnProperty("downloadButton")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DownloadButton.verify(e.downloadButton);if(t)return"downloadButton."+t}}if(null!=e.cameraInput&&e.hasOwnProperty("cameraInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.CameraInput.verify(e.cameraInput);if(t)return"cameraInput."+t}}if(null!=e.checkbox&&e.hasOwnProperty("checkbox")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Checkbox.verify(e.checkbox);if(t)return"checkbox."+t}}if(null!=e.colorPicker&&e.hasOwnProperty("colorPicker")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ColorPicker.verify(e.colorPicker);if(t)return"colorPicker."+t}}if(null!=e.componentInstance&&e.hasOwnProperty("componentInstance")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ComponentInstance.verify(e.componentInstance);if(t)return"componentInstance."+t}}if(null!=e.dataFrame&&e.hasOwnProperty("dataFrame")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DataFrame.verify(e.dataFrame);if(t)return"dataFrame."+t}}if(null!=e.table&&e.hasOwnProperty("table")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DataFrame.verify(e.table);if(t)return"table."+t}}if(null!=e.dateInput&&e.hasOwnProperty("dateInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DateInput.verify(e.dateInput);if(t)return"dateInput."+t}}if(null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DeckGlJsonChart.verify(e.deckGlJsonChart);if(t)return"deckGlJsonChart."+t}}if(null!=e.docString&&e.hasOwnProperty("docString")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.DocString.verify(e.docString);if(t)return"docString."+t}}if(null!=e.empty&&e.hasOwnProperty("empty")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Empty.verify(e.empty);if(t)return"empty."+t}}if(null!=e.exception&&e.hasOwnProperty("exception")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Exception.verify(e.exception);if(t)return"exception."+t}}if(null!=e.favicon&&e.hasOwnProperty("favicon")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Favicon.verify(e.favicon);if(t)return"favicon."+t}}if(null!=e.fileUploader&&e.hasOwnProperty("fileUploader")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.FileUploader.verify(e.fileUploader);if(t)return"fileUploader."+t}}if(null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.GraphVizChart.verify(e.graphvizChart);if(t)return"graphvizChart."+t}}if(null!=e.iframe&&e.hasOwnProperty("iframe")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.IFrame.verify(e.iframe);if(t)return"iframe."+t}}if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.ImageList.verify(e.imgs);if(t)return"imgs."+t}}if(null!=e.json&&e.hasOwnProperty("json")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Json.verify(e.json);if(t)return"json."+t}}if(null!=e.markdown&&e.hasOwnProperty("markdown")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Markdown.verify(e.markdown);if(t)return"markdown."+t}}if(null!=e.metric&&e.hasOwnProperty("metric")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Metric.verify(e.metric);if(t)return"metric."+t}}if(null!=e.multiselect&&e.hasOwnProperty("multiselect")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.MultiSelect.verify(e.multiselect);if(t)return"multiselect."+t}}if(null!=e.numberInput&&e.hasOwnProperty("numberInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.NumberInput.verify(e.numberInput);if(t)return"numberInput."+t}}if(null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PlotlyChart.verify(e.plotlyChart);if(t)return"plotlyChart."+t}}if(null!=e.progress&&e.hasOwnProperty("progress")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Progress.verify(e.progress);if(t)return"progress."+t}}if(null!=e.radio&&e.hasOwnProperty("radio")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Radio.verify(e.radio);if(t)return"radio."+t}}if(null!=e.selectbox&&e.hasOwnProperty("selectbox")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Selectbox.verify(e.selectbox);if(t)return"selectbox."+t}}if(null!=e.slider&&e.hasOwnProperty("slider")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Slider.verify(e.slider);if(t)return"slider."+t}}if(null!=e.snow&&e.hasOwnProperty("snow")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Snow.verify(e.snow);if(t)return"snow."+t}}if(null!=e.spinner&&e.hasOwnProperty("spinner")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Spinner.verify(e.spinner);if(t)return"spinner."+t}}if(null!=e.text&&e.hasOwnProperty("text")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Text.verify(e.text);if(t)return"text."+t}}if(null!=e.textArea&&e.hasOwnProperty("textArea")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TextArea.verify(e.textArea);if(t)return"textArea."+t}}if(null!=e.textInput&&e.hasOwnProperty("textInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TextInput.verify(e.textInput);if(t)return"textInput."+t}}if(null!=e.timeInput&&e.hasOwnProperty("timeInput")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.TimeInput.verify(e.timeInput);if(t)return"timeInput."+t}}if(null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.VegaLiteChart.verify(e.vegaLiteChart);if(t)return"vegaLiteChart."+t}}if(null!=e.video&&e.hasOwnProperty("video")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Video.verify(e.video);if(t)return"video."+t}}if(null!=e.heading&&e.hasOwnProperty("heading")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Heading.verify(e.heading);if(t)return"heading."+t}}return null},e.fromObject=function(e){if(e instanceof l.Element)return e;let t=new l.Element;if(null!=e.alert){if("object"!==typeof e.alert)throw TypeError(".Element.alert: object expected");t.alert=l.Alert.fromObject(e.alert)}if(null!=e.arrowDataFrame){if("object"!==typeof e.arrowDataFrame)throw TypeError(".Element.arrowDataFrame: object expected");t.arrowDataFrame=l.Arrow.fromObject(e.arrowDataFrame)}if(null!=e.arrowTable){if("object"!==typeof e.arrowTable)throw TypeError(".Element.arrowTable: object expected");t.arrowTable=l.Arrow.fromObject(e.arrowTable)}if(null!=e.arrowVegaLiteChart){if("object"!==typeof e.arrowVegaLiteChart)throw TypeError(".Element.arrowVegaLiteChart: object expected");t.arrowVegaLiteChart=l.ArrowVegaLiteChart.fromObject(e.arrowVegaLiteChart)}if(null!=e.audio){if("object"!==typeof e.audio)throw TypeError(".Element.audio: object expected");t.audio=l.Audio.fromObject(e.audio)}if(null!=e.balloons){if("object"!==typeof e.balloons)throw TypeError(".Element.balloons: object expected");t.balloons=l.Balloons.fromObject(e.balloons)}if(null!=e.bokehChart){if("object"!==typeof e.bokehChart)throw TypeError(".Element.bokehChart: object expected");t.bokehChart=l.BokehChart.fromObject(e.bokehChart)}if(null!=e.button){if("object"!==typeof e.button)throw TypeError(".Element.button: object expected");t.button=l.Button.fromObject(e.button)}if(null!=e.downloadButton){if("object"!==typeof e.downloadButton)throw TypeError(".Element.downloadButton: object expected");t.downloadButton=l.DownloadButton.fromObject(e.downloadButton)}if(null!=e.cameraInput){if("object"!==typeof e.cameraInput)throw TypeError(".Element.cameraInput: object expected");t.cameraInput=l.CameraInput.fromObject(e.cameraInput)}if(null!=e.checkbox){if("object"!==typeof e.checkbox)throw TypeError(".Element.checkbox: object expected");t.checkbox=l.Checkbox.fromObject(e.checkbox)}if(null!=e.colorPicker){if("object"!==typeof e.colorPicker)throw TypeError(".Element.colorPicker: object expected");t.colorPicker=l.ColorPicker.fromObject(e.colorPicker)}if(null!=e.componentInstance){if("object"!==typeof e.componentInstance)throw TypeError(".Element.componentInstance: object expected");t.componentInstance=l.ComponentInstance.fromObject(e.componentInstance)}if(null!=e.dataFrame){if("object"!==typeof e.dataFrame)throw TypeError(".Element.dataFrame: object expected");t.dataFrame=l.DataFrame.fromObject(e.dataFrame)}if(null!=e.table){if("object"!==typeof e.table)throw TypeError(".Element.table: object expected");t.table=l.DataFrame.fromObject(e.table)}if(null!=e.dateInput){if("object"!==typeof e.dateInput)throw TypeError(".Element.dateInput: object expected");t.dateInput=l.DateInput.fromObject(e.dateInput)}if(null!=e.deckGlJsonChart){if("object"!==typeof e.deckGlJsonChart)throw TypeError(".Element.deckGlJsonChart: object expected");t.deckGlJsonChart=l.DeckGlJsonChart.fromObject(e.deckGlJsonChart)}if(null!=e.docString){if("object"!==typeof e.docString)throw TypeError(".Element.docString: object expected");t.docString=l.DocString.fromObject(e.docString)}if(null!=e.empty){if("object"!==typeof e.empty)throw TypeError(".Element.empty: object expected");t.empty=l.Empty.fromObject(e.empty)}if(null!=e.exception){if("object"!==typeof e.exception)throw TypeError(".Element.exception: object expected");t.exception=l.Exception.fromObject(e.exception)}if(null!=e.favicon){if("object"!==typeof e.favicon)throw TypeError(".Element.favicon: object expected");t.favicon=l.Favicon.fromObject(e.favicon)}if(null!=e.fileUploader){if("object"!==typeof e.fileUploader)throw TypeError(".Element.fileUploader: object expected");t.fileUploader=l.FileUploader.fromObject(e.fileUploader)}if(null!=e.graphvizChart){if("object"!==typeof e.graphvizChart)throw TypeError(".Element.graphvizChart: object expected");t.graphvizChart=l.GraphVizChart.fromObject(e.graphvizChart)}if(null!=e.iframe){if("object"!==typeof e.iframe)throw TypeError(".Element.iframe: object expected");t.iframe=l.IFrame.fromObject(e.iframe)}if(null!=e.imgs){if("object"!==typeof e.imgs)throw TypeError(".Element.imgs: object expected");t.imgs=l.ImageList.fromObject(e.imgs)}if(null!=e.json){if("object"!==typeof e.json)throw TypeError(".Element.json: object expected");t.json=l.Json.fromObject(e.json)}if(null!=e.markdown){if("object"!==typeof e.markdown)throw TypeError(".Element.markdown: object expected");t.markdown=l.Markdown.fromObject(e.markdown)}if(null!=e.metric){if("object"!==typeof e.metric)throw TypeError(".Element.metric: object expected");t.metric=l.Metric.fromObject(e.metric)}if(null!=e.multiselect){if("object"!==typeof e.multiselect)throw TypeError(".Element.multiselect: object expected");t.multiselect=l.MultiSelect.fromObject(e.multiselect)}if(null!=e.numberInput){if("object"!==typeof e.numberInput)throw TypeError(".Element.numberInput: object expected");t.numberInput=l.NumberInput.fromObject(e.numberInput)}if(null!=e.plotlyChart){if("object"!==typeof e.plotlyChart)throw TypeError(".Element.plotlyChart: object expected");t.plotlyChart=l.PlotlyChart.fromObject(e.plotlyChart)}if(null!=e.progress){if("object"!==typeof e.progress)throw TypeError(".Element.progress: object expected");t.progress=l.Progress.fromObject(e.progress)}if(null!=e.radio){if("object"!==typeof e.radio)throw TypeError(".Element.radio: object expected");t.radio=l.Radio.fromObject(e.radio)}if(null!=e.selectbox){if("object"!==typeof e.selectbox)throw TypeError(".Element.selectbox: object expected");t.selectbox=l.Selectbox.fromObject(e.selectbox)}if(null!=e.slider){if("object"!==typeof e.slider)throw TypeError(".Element.slider: object expected");t.slider=l.Slider.fromObject(e.slider)}if(null!=e.snow){if("object"!==typeof e.snow)throw TypeError(".Element.snow: object expected");t.snow=l.Snow.fromObject(e.snow)}if(null!=e.spinner){if("object"!==typeof e.spinner)throw TypeError(".Element.spinner: object expected");t.spinner=l.Spinner.fromObject(e.spinner)}if(null!=e.text){if("object"!==typeof e.text)throw TypeError(".Element.text: object expected");t.text=l.Text.fromObject(e.text)}if(null!=e.textArea){if("object"!==typeof e.textArea)throw TypeError(".Element.textArea: object expected");t.textArea=l.TextArea.fromObject(e.textArea)}if(null!=e.textInput){if("object"!==typeof e.textInput)throw TypeError(".Element.textInput: object expected");t.textInput=l.TextInput.fromObject(e.textInput)}if(null!=e.timeInput){if("object"!==typeof e.timeInput)throw TypeError(".Element.timeInput: object expected");t.timeInput=l.TimeInput.fromObject(e.timeInput)}if(null!=e.vegaLiteChart){if("object"!==typeof e.vegaLiteChart)throw TypeError(".Element.vegaLiteChart: object expected");t.vegaLiteChart=l.VegaLiteChart.fromObject(e.vegaLiteChart)}if(null!=e.video){if("object"!==typeof e.video)throw TypeError(".Element.video: object expected");t.video=l.Video.fromObject(e.video)}if(null!=e.heading){if("object"!==typeof e.heading)throw TypeError(".Element.heading: object expected");t.heading=l.Heading.fromObject(e.heading)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.text&&e.hasOwnProperty("text")&&(n.text=l.Text.toObject(e.text,t),t.oneofs&&(n.type="text")),null!=e.empty&&e.hasOwnProperty("empty")&&(n.empty=l.Empty.toObject(e.empty,t),t.oneofs&&(n.type="empty")),null!=e.dataFrame&&e.hasOwnProperty("dataFrame")&&(n.dataFrame=l.DataFrame.toObject(e.dataFrame,t),t.oneofs&&(n.type="dataFrame")),null!=e.progress&&e.hasOwnProperty("progress")&&(n.progress=l.Progress.toObject(e.progress,t),t.oneofs&&(n.type="progress")),null!=e.imgs&&e.hasOwnProperty("imgs")&&(n.imgs=l.ImageList.toObject(e.imgs,t),t.oneofs&&(n.type="imgs")),null!=e.docString&&e.hasOwnProperty("docString")&&(n.docString=l.DocString.toObject(e.docString,t),t.oneofs&&(n.type="docString")),null!=e.exception&&e.hasOwnProperty("exception")&&(n.exception=l.Exception.toObject(e.exception,t),t.oneofs&&(n.type="exception")),null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")&&(n.vegaLiteChart=l.VegaLiteChart.toObject(e.vegaLiteChart,t),t.oneofs&&(n.type="vegaLiteChart")),null!=e.table&&e.hasOwnProperty("table")&&(n.table=l.DataFrame.toObject(e.table,t),t.oneofs&&(n.type="table")),null!=e.balloons&&e.hasOwnProperty("balloons")&&(n.balloons=l.Balloons.toObject(e.balloons,t),t.oneofs&&(n.type="balloons")),null!=e.audio&&e.hasOwnProperty("audio")&&(n.audio=l.Audio.toObject(e.audio,t),t.oneofs&&(n.type="audio")),null!=e.video&&e.hasOwnProperty("video")&&(n.video=l.Video.toObject(e.video,t),t.oneofs&&(n.type="video")),null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")&&(n.plotlyChart=l.PlotlyChart.toObject(e.plotlyChart,t),t.oneofs&&(n.type="plotlyChart")),null!=e.bokehChart&&e.hasOwnProperty("bokehChart")&&(n.bokehChart=l.BokehChart.toObject(e.bokehChart,t),t.oneofs&&(n.type="bokehChart")),null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")&&(n.graphvizChart=l.GraphVizChart.toObject(e.graphvizChart,t),t.oneofs&&(n.type="graphvizChart")),null!=e.button&&e.hasOwnProperty("button")&&(n.button=l.Button.toObject(e.button,t),t.oneofs&&(n.type="button")),null!=e.checkbox&&e.hasOwnProperty("checkbox")&&(n.checkbox=l.Checkbox.toObject(e.checkbox,t),t.oneofs&&(n.type="checkbox")),null!=e.slider&&e.hasOwnProperty("slider")&&(n.slider=l.Slider.toObject(e.slider,t),t.oneofs&&(n.type="slider")),null!=e.textArea&&e.hasOwnProperty("textArea")&&(n.textArea=l.TextArea.toObject(e.textArea,t),t.oneofs&&(n.type="textArea")),null!=e.radio&&e.hasOwnProperty("radio")&&(n.radio=l.Radio.toObject(e.radio,t),t.oneofs&&(n.type="radio")),null!=e.textInput&&e.hasOwnProperty("textInput")&&(n.textInput=l.TextInput.toObject(e.textInput,t),t.oneofs&&(n.type="textInput")),null!=e.selectbox&&e.hasOwnProperty("selectbox")&&(n.selectbox=l.Selectbox.toObject(e.selectbox,t),t.oneofs&&(n.type="selectbox")),null!=e.timeInput&&e.hasOwnProperty("timeInput")&&(n.timeInput=l.TimeInput.toObject(e.timeInput,t),t.oneofs&&(n.type="timeInput")),null!=e.dateInput&&e.hasOwnProperty("dateInput")&&(n.dateInput=l.DateInput.toObject(e.dateInput,t),t.oneofs&&(n.type="dateInput")),null!=e.multiselect&&e.hasOwnProperty("multiselect")&&(n.multiselect=l.MultiSelect.toObject(e.multiselect,t),t.oneofs&&(n.type="multiselect")),null!=e.markdown&&e.hasOwnProperty("markdown")&&(n.markdown=l.Markdown.toObject(e.markdown,t),t.oneofs&&(n.type="markdown")),null!=e.alert&&e.hasOwnProperty("alert")&&(n.alert=l.Alert.toObject(e.alert,t),t.oneofs&&(n.type="alert")),null!=e.json&&e.hasOwnProperty("json")&&(n.json=l.Json.toObject(e.json,t),t.oneofs&&(n.type="json")),null!=e.numberInput&&e.hasOwnProperty("numberInput")&&(n.numberInput=l.NumberInput.toObject(e.numberInput,t),t.oneofs&&(n.type="numberInput")),null!=e.fileUploader&&e.hasOwnProperty("fileUploader")&&(n.fileUploader=l.FileUploader.toObject(e.fileUploader,t),t.oneofs&&(n.type="fileUploader")),null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")&&(n.deckGlJsonChart=l.DeckGlJsonChart.toObject(e.deckGlJsonChart,t),t.oneofs&&(n.type="deckGlJsonChart")),null!=e.colorPicker&&e.hasOwnProperty("colorPicker")&&(n.colorPicker=l.ColorPicker.toObject(e.colorPicker,t),t.oneofs&&(n.type="colorPicker")),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=l.Favicon.toObject(e.favicon,t),t.oneofs&&(n.type="favicon")),null!=e.componentInstance&&e.hasOwnProperty("componentInstance")&&(n.componentInstance=l.ComponentInstance.toObject(e.componentInstance,t),t.oneofs&&(n.type="componentInstance")),null!=e.iframe&&e.hasOwnProperty("iframe")&&(n.iframe=l.IFrame.toObject(e.iframe,t),t.oneofs&&(n.type="iframe")),null!=e.arrowTable&&e.hasOwnProperty("arrowTable")&&(n.arrowTable=l.Arrow.toObject(e.arrowTable,t),t.oneofs&&(n.type="arrowTable")),null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")&&(n.arrowDataFrame=l.Arrow.toObject(e.arrowDataFrame,t),t.oneofs&&(n.type="arrowDataFrame")),null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")&&(n.arrowVegaLiteChart=l.ArrowVegaLiteChart.toObject(e.arrowVegaLiteChart,t),t.oneofs&&(n.type="arrowVegaLiteChart")),null!=e.metric&&e.hasOwnProperty("metric")&&(n.metric=l.Metric.toObject(e.metric,t),t.oneofs&&(n.type="metric")),null!=e.downloadButton&&e.hasOwnProperty("downloadButton")&&(n.downloadButton=l.DownloadButton.toObject(e.downloadButton,t),t.oneofs&&(n.type="downloadButton")),null!=e.spinner&&e.hasOwnProperty("spinner")&&(n.spinner=l.Spinner.toObject(e.spinner,t),t.oneofs&&(n.type="spinner")),null!=e.cameraInput&&e.hasOwnProperty("cameraInput")&&(n.cameraInput=l.CameraInput.toObject(e.cameraInput,t),t.oneofs&&(n.type="cameraInput")),null!=e.snow&&e.hasOwnProperty("snow")&&(n.snow=l.Snow.toObject(e.snow,t),t.oneofs&&(n.type="snow")),null!=e.heading&&e.hasOwnProperty("heading")&&(n.heading=l.Heading.toObject(e.heading,t),t.oneofs&&(n.type="heading")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),y=(l.Empty=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Empty;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null},e.fromObject=function(e){return e instanceof l.Empty?e:new l.Empty},e.toObject=function(){return{}},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Exception=(()=>{function e(e){if(this.stackTrace=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type="",e.prototype.message="",e.prototype.messageIsMarkdown=!1,e.prototype.stackTrace=a.emptyArray,e.prototype.isWarning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(10).string(e.type),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.stackTrace&&e.stackTrace.length)for(let n=0;n<e.stackTrace.length;++n)t.uint32(26).string(e.stackTrace[n]);return null!=e.messageIsMarkdown&&Object.hasOwnProperty.call(e,"messageIsMarkdown")&&t.uint32(32).bool(e.messageIsMarkdown),null!=e.isWarning&&Object.hasOwnProperty.call(e,"isWarning")&&t.uint32(40).bool(e.isWarning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Exception;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.type=e.string();break;case 2:r.message=e.string();break;case 4:r.messageIsMarkdown=e.bool();break;case 3:r.stackTrace&&r.stackTrace.length||(r.stackTrace=[]),r.stackTrace.push(e.string());break;case 5:r.isWarning=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.type&&e.hasOwnProperty("type")&&!a.isString(e.type))return"type: string expected";if(null!=e.message&&e.hasOwnProperty("message")&&!a.isString(e.message))return"message: string expected";if(null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&"boolean"!==typeof e.messageIsMarkdown)return"messageIsMarkdown: boolean expected";if(null!=e.stackTrace&&e.hasOwnProperty("stackTrace")){if(!Array.isArray(e.stackTrace))return"stackTrace: array expected";for(let t=0;t<e.stackTrace.length;++t)if(!a.isString(e.stackTrace[t]))return"stackTrace: string[] expected"}return null!=e.isWarning&&e.hasOwnProperty("isWarning")&&"boolean"!==typeof e.isWarning?"isWarning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Exception)return e;let t=new l.Exception;if(null!=e.type&&(t.type=String(e.type)),null!=e.message&&(t.message=String(e.message)),null!=e.messageIsMarkdown&&(t.messageIsMarkdown=Boolean(e.messageIsMarkdown)),e.stackTrace){if(!Array.isArray(e.stackTrace))throw TypeError(".Exception.stackTrace: array expected");t.stackTrace=[];for(let n=0;n<e.stackTrace.length;++n)t.stackTrace[n]=String(e.stackTrace[n])}return null!=e.isWarning&&(t.isWarning=Boolean(e.isWarning)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.stackTrace=[]),t.defaults&&(n.type="",n.message="",n.messageIsMarkdown=!1,n.isWarning=!1),null!=e.type&&e.hasOwnProperty("type")&&(n.type=e.type),null!=e.message&&e.hasOwnProperty("message")&&(n.message=e.message),e.stackTrace&&e.stackTrace.length){n.stackTrace=[];for(let t=0;t<e.stackTrace.length;++t)n.stackTrace[t]=e.stackTrace[t]}return null!=e.messageIsMarkdown&&e.hasOwnProperty("messageIsMarkdown")&&(n.messageIsMarkdown=e.messageIsMarkdown),null!=e.isWarning&&e.hasOwnProperty("isWarning")&&(n.isWarning=e.isWarning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Favicon=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Favicon;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.url=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null},e.fromObject=function(e){if(e instanceof l.Favicon)return e;let t=new l.Favicon;return null!=e.url&&(t.url=String(e.url)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.url=""),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.FileUploader=(()=>{function e(e){if(this.type=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.type=a.emptyArray,e.prototype.maxUploadSizeMb=0,e.prototype.multipleFiles=!1,e.prototype.help="",e.prototype.formId="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.type&&e.type.length)for(let n=0;n<e.type.length;++n)t.uint32(26).string(e.type[n]);return null!=e.maxUploadSizeMb&&Object.hasOwnProperty.call(e,"maxUploadSizeMb")&&t.uint32(32).int32(e.maxUploadSizeMb),null!=e.multipleFiles&&Object.hasOwnProperty.call(e,"multipleFiles")&&t.uint32(48).bool(e.multipleFiles),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(58).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(66).string(e.formId),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.FileUploader;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.type&&r.type.length||(r.type=[]),r.type.push(e.string());break;case 4:r.maxUploadSizeMb=e.int32();break;case 6:r.multipleFiles=e.bool();break;case 7:r.help=e.string();break;case 8:r.formId=e.string();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.type&&e.hasOwnProperty("type")){if(!Array.isArray(e.type))return"type: array expected";for(let t=0;t<e.type.length;++t)if(!a.isString(e.type[t]))return"type: string[] expected"}if(null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&!a.isInteger(e.maxUploadSizeMb))return"maxUploadSizeMb: integer expected";if(null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&"boolean"!==typeof e.multipleFiles)return"multipleFiles: boolean expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.FileUploader)return e;let t=new l.FileUploader;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.type){if(!Array.isArray(e.type))throw TypeError(".FileUploader.type: array expected");t.type=[];for(let n=0;n<e.type.length;++n)t.type[n]=String(e.type[n])}if(null!=e.maxUploadSizeMb&&(t.maxUploadSizeMb=0|e.maxUploadSizeMb),null!=e.multipleFiles&&(t.multipleFiles=Boolean(e.multipleFiles)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".FileUploader.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.type=[]),t.defaults&&(n.id="",n.label="",n.maxUploadSizeMb=0,n.multipleFiles=!1,n.help="",n.formId="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.type&&e.type.length){n.type=[];for(let t=0;t<e.type.length;++t)n.type[t]=e.type[t]}return null!=e.maxUploadSizeMb&&e.hasOwnProperty("maxUploadSizeMb")&&(n.maxUploadSizeMb=e.maxUploadSizeMb),null!=e.multipleFiles&&e.hasOwnProperty("multipleFiles")&&(n.multipleFiles=e.multipleFiles),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.ForwardMsg=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.hash="",e.prototype.metadata=null,e.prototype.newSession=null,e.prototype.delta=null,e.prototype.pageInfoChanged=null,e.prototype.pageConfigChanged=null,e.prototype.scriptFinished=null,e.prototype.gitInfoChanged=null,e.prototype.pageProfile=null,e.prototype.sessionStateChanged=null,e.prototype.sessionEvent=null,e.prototype.pageNotFound=null,e.prototype.pagesChanged=null,e.prototype.refHash=null,e.prototype.debugLastBackmsgId="",Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["newSession","delta","pageInfoChanged","pageConfigChanged","scriptFinished","gitInfoChanged","pageProfile","sessionStateChanged","sessionEvent","pageNotFound","pagesChanged","refHash"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.hash&&Object.hasOwnProperty.call(e,"hash")&&t.uint32(10).string(e.hash),null!=e.metadata&&Object.hasOwnProperty.call(e,"metadata")&&l.ForwardMsgMetadata.encode(e.metadata,t.uint32(18).fork()).ldelim(),null!=e.newSession&&Object.hasOwnProperty.call(e,"newSession")&&l.NewSession.encode(e.newSession,t.uint32(34).fork()).ldelim(),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&l.Delta.encode(e.delta,t.uint32(42).fork()).ldelim(),null!=e.scriptFinished&&Object.hasOwnProperty.call(e,"scriptFinished")&&t.uint32(48).int32(e.scriptFinished),null!=e.sessionStateChanged&&Object.hasOwnProperty.call(e,"sessionStateChanged")&&l.SessionState.encode(e.sessionStateChanged,t.uint32(74).fork()).ldelim(),null!=e.sessionEvent&&Object.hasOwnProperty.call(e,"sessionEvent")&&l.SessionEvent.encode(e.sessionEvent,t.uint32(82).fork()).ldelim(),null!=e.refHash&&Object.hasOwnProperty.call(e,"refHash")&&t.uint32(90).string(e.refHash),null!=e.pageInfoChanged&&Object.hasOwnProperty.call(e,"pageInfoChanged")&&l.PageInfo.encode(e.pageInfoChanged,t.uint32(98).fork()).ldelim(),null!=e.pageConfigChanged&&Object.hasOwnProperty.call(e,"pageConfigChanged")&&l.PageConfig.encode(e.pageConfigChanged,t.uint32(106).fork()).ldelim(),null!=e.gitInfoChanged&&Object.hasOwnProperty.call(e,"gitInfoChanged")&&l.GitInfo.encode(e.gitInfoChanged,t.uint32(114).fork()).ldelim(),null!=e.pageNotFound&&Object.hasOwnProperty.call(e,"pageNotFound")&&l.PageNotFound.encode(e.pageNotFound,t.uint32(122).fork()).ldelim(),null!=e.pagesChanged&&Object.hasOwnProperty.call(e,"pagesChanged")&&l.PagesChanged.encode(e.pagesChanged,t.uint32(130).fork()).ldelim(),null!=e.debugLastBackmsgId&&Object.hasOwnProperty.call(e,"debugLastBackmsgId")&&t.uint32(138).string(e.debugLastBackmsgId),null!=e.pageProfile&&Object.hasOwnProperty.call(e,"pageProfile")&&l.PageProfile.encode(e.pageProfile,t.uint32(146).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsg;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.hash=e.string();break;case 2:r.metadata=l.ForwardMsgMetadata.decode(e,e.uint32());break;case 4:r.newSession=l.NewSession.decode(e,e.uint32());break;case 5:r.delta=l.Delta.decode(e,e.uint32());break;case 12:r.pageInfoChanged=l.PageInfo.decode(e,e.uint32());break;case 13:r.pageConfigChanged=l.PageConfig.decode(e,e.uint32());break;case 6:r.scriptFinished=e.int32();break;case 14:r.gitInfoChanged=l.GitInfo.decode(e,e.uint32());break;case 18:r.pageProfile=l.PageProfile.decode(e,e.uint32());break;case 9:r.sessionStateChanged=l.SessionState.decode(e,e.uint32());break;case 10:r.sessionEvent=l.SessionEvent.decode(e,e.uint32());break;case 15:r.pageNotFound=l.PageNotFound.decode(e,e.uint32());break;case 16:r.pagesChanged=l.PagesChanged.decode(e,e.uint32());break;case 11:r.refHash=e.string();break;case 17:r.debugLastBackmsgId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.hash&&e.hasOwnProperty("hash")&&!a.isString(e.hash))return"hash: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")){let t=l.ForwardMsgMetadata.verify(e.metadata);if(t)return"metadata."+t}if(null!=e.newSession&&e.hasOwnProperty("newSession")){t.type=1;{let t=l.NewSession.verify(e.newSession);if(t)return"newSession."+t}}if(null!=e.delta&&e.hasOwnProperty("delta")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Delta.verify(e.delta);if(t)return"delta."+t}}if(null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageInfo.verify(e.pageInfoChanged);if(t)return"pageInfoChanged."+t}}if(null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageConfig.verify(e.pageConfigChanged);if(t)return"pageConfigChanged."+t}}if(null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")){if(1===t.type)return"type: multiple values";switch(t.type=1,e.scriptFinished){default:return"scriptFinished: enum value expected";case 0:case 1:case 2:}}if(null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.GitInfo.verify(e.gitInfoChanged);if(t)return"gitInfoChanged."+t}}if(null!=e.pageProfile&&e.hasOwnProperty("pageProfile")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageProfile.verify(e.pageProfile);if(t)return"pageProfile."+t}}if(null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.SessionState.verify(e.sessionStateChanged);if(t)return"sessionStateChanged."+t}}if(null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.SessionEvent.verify(e.sessionEvent);if(t)return"sessionEvent."+t}}if(null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PageNotFound.verify(e.pageNotFound);if(t)return"pageNotFound."+t}}if(null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.PagesChanged.verify(e.pagesChanged);if(t)return"pagesChanged."+t}}if(null!=e.refHash&&e.hasOwnProperty("refHash")){if(1===t.type)return"type: multiple values";if(t.type=1,!a.isString(e.refHash))return"refHash: string expected"}return null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&!a.isString(e.debugLastBackmsgId)?"debugLastBackmsgId: string expected":null},e.fromObject=function(e){if(e instanceof l.ForwardMsg)return e;let t=new l.ForwardMsg;if(null!=e.hash&&(t.hash=String(e.hash)),null!=e.metadata){if("object"!==typeof e.metadata)throw TypeError(".ForwardMsg.metadata: object expected");t.metadata=l.ForwardMsgMetadata.fromObject(e.metadata)}if(null!=e.newSession){if("object"!==typeof e.newSession)throw TypeError(".ForwardMsg.newSession: object expected");t.newSession=l.NewSession.fromObject(e.newSession)}if(null!=e.delta){if("object"!==typeof e.delta)throw TypeError(".ForwardMsg.delta: object expected");t.delta=l.Delta.fromObject(e.delta)}if(null!=e.pageInfoChanged){if("object"!==typeof e.pageInfoChanged)throw TypeError(".ForwardMsg.pageInfoChanged: object expected");t.pageInfoChanged=l.PageInfo.fromObject(e.pageInfoChanged)}if(null!=e.pageConfigChanged){if("object"!==typeof e.pageConfigChanged)throw TypeError(".ForwardMsg.pageConfigChanged: object expected");t.pageConfigChanged=l.PageConfig.fromObject(e.pageConfigChanged)}switch(e.scriptFinished){case"FINISHED_SUCCESSFULLY":case 0:t.scriptFinished=0;break;case"FINISHED_WITH_COMPILE_ERROR":case 1:t.scriptFinished=1;break;case"FINISHED_EARLY_FOR_RERUN":case 2:t.scriptFinished=2}if(null!=e.gitInfoChanged){if("object"!==typeof e.gitInfoChanged)throw TypeError(".ForwardMsg.gitInfoChanged: object expected");t.gitInfoChanged=l.GitInfo.fromObject(e.gitInfoChanged)}if(null!=e.pageProfile){if("object"!==typeof e.pageProfile)throw TypeError(".ForwardMsg.pageProfile: object expected");t.pageProfile=l.PageProfile.fromObject(e.pageProfile)}if(null!=e.sessionStateChanged){if("object"!==typeof e.sessionStateChanged)throw TypeError(".ForwardMsg.sessionStateChanged: object expected");t.sessionStateChanged=l.SessionState.fromObject(e.sessionStateChanged)}if(null!=e.sessionEvent){if("object"!==typeof e.sessionEvent)throw TypeError(".ForwardMsg.sessionEvent: object expected");t.sessionEvent=l.SessionEvent.fromObject(e.sessionEvent)}if(null!=e.pageNotFound){if("object"!==typeof e.pageNotFound)throw TypeError(".ForwardMsg.pageNotFound: object expected");t.pageNotFound=l.PageNotFound.fromObject(e.pageNotFound)}if(null!=e.pagesChanged){if("object"!==typeof e.pagesChanged)throw TypeError(".ForwardMsg.pagesChanged: object expected");t.pagesChanged=l.PagesChanged.fromObject(e.pagesChanged)}return null!=e.refHash&&(t.refHash=String(e.refHash)),null!=e.debugLastBackmsgId&&(t.debugLastBackmsgId=String(e.debugLastBackmsgId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.hash="",n.metadata=null,n.debugLastBackmsgId=""),null!=e.hash&&e.hasOwnProperty("hash")&&(n.hash=e.hash),null!=e.metadata&&e.hasOwnProperty("metadata")&&(n.metadata=l.ForwardMsgMetadata.toObject(e.metadata,t)),null!=e.newSession&&e.hasOwnProperty("newSession")&&(n.newSession=l.NewSession.toObject(e.newSession,t),t.oneofs&&(n.type="newSession")),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=l.Delta.toObject(e.delta,t),t.oneofs&&(n.type="delta")),null!=e.scriptFinished&&e.hasOwnProperty("scriptFinished")&&(n.scriptFinished=t.enums===String?l.ForwardMsg.ScriptFinishedStatus[e.scriptFinished]:e.scriptFinished,t.oneofs&&(n.type="scriptFinished")),null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")&&(n.sessionStateChanged=l.SessionState.toObject(e.sessionStateChanged,t),t.oneofs&&(n.type="sessionStateChanged")),null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")&&(n.sessionEvent=l.SessionEvent.toObject(e.sessionEvent,t),t.oneofs&&(n.type="sessionEvent")),null!=e.refHash&&e.hasOwnProperty("refHash")&&(n.refHash=e.refHash,t.oneofs&&(n.type="refHash")),null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")&&(n.pageInfoChanged=l.PageInfo.toObject(e.pageInfoChanged,t),t.oneofs&&(n.type="pageInfoChanged")),null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")&&(n.pageConfigChanged=l.PageConfig.toObject(e.pageConfigChanged,t),t.oneofs&&(n.type="pageConfigChanged")),null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")&&(n.gitInfoChanged=l.GitInfo.toObject(e.gitInfoChanged,t),t.oneofs&&(n.type="gitInfoChanged")),null!=e.pageNotFound&&e.hasOwnProperty("pageNotFound")&&(n.pageNotFound=l.PageNotFound.toObject(e.pageNotFound,t),t.oneofs&&(n.type="pageNotFound")),null!=e.pagesChanged&&e.hasOwnProperty("pagesChanged")&&(n.pagesChanged=l.PagesChanged.toObject(e.pagesChanged,t),t.oneofs&&(n.type="pagesChanged")),null!=e.debugLastBackmsgId&&e.hasOwnProperty("debugLastBackmsgId")&&(n.debugLastBackmsgId=e.debugLastBackmsgId),null!=e.pageProfile&&e.hasOwnProperty("pageProfile")&&(n.pageProfile=l.PageProfile.toObject(e.pageProfile,t),t.oneofs&&(n.type="pageProfile")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.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})()),O=l.ForwardMsgMetadata=(()=>{function e(e){if(this.deltaPath=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.cacheable=!1,e.prototype.deltaPath=a.emptyArray,e.prototype.elementDimensionSpec=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.cacheable&&Object.hasOwnProperty.call(e,"cacheable")&&t.uint32(8).bool(e.cacheable),null!=e.deltaPath&&e.deltaPath.length){t.uint32(18).fork();for(let n=0;n<e.deltaPath.length;++n)t.uint32(e.deltaPath[n]);t.ldelim()}return null!=e.elementDimensionSpec&&Object.hasOwnProperty.call(e,"elementDimensionSpec")&&l.ElementDimensionSpec.encode(e.elementDimensionSpec,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ForwardMsgMetadata;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.cacheable=e.bool();break;case 2:if(r.deltaPath&&r.deltaPath.length||(r.deltaPath=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.deltaPath.push(e.uint32())}else r.deltaPath.push(e.uint32());break;case 3:r.elementDimensionSpec=l.ElementDimensionSpec.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.cacheable&&e.hasOwnProperty("cacheable")&&"boolean"!==typeof e.cacheable)return"cacheable: boolean expected";if(null!=e.deltaPath&&e.hasOwnProperty("deltaPath")){if(!Array.isArray(e.deltaPath))return"deltaPath: array expected";for(let t=0;t<e.deltaPath.length;++t)if(!a.isInteger(e.deltaPath[t]))return"deltaPath: integer[] expected"}if(null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")){let t=l.ElementDimensionSpec.verify(e.elementDimensionSpec);if(t)return"elementDimensionSpec."+t}return null},e.fromObject=function(e){if(e instanceof l.ForwardMsgMetadata)return e;let t=new l.ForwardMsgMetadata;if(null!=e.cacheable&&(t.cacheable=Boolean(e.cacheable)),e.deltaPath){if(!Array.isArray(e.deltaPath))throw TypeError(".ForwardMsgMetadata.deltaPath: array expected");t.deltaPath=[];for(let n=0;n<e.deltaPath.length;++n)t.deltaPath[n]=e.deltaPath[n]>>>0}if(null!=e.elementDimensionSpec){if("object"!==typeof e.elementDimensionSpec)throw TypeError(".ForwardMsgMetadata.elementDimensionSpec: object expected");t.elementDimensionSpec=l.ElementDimensionSpec.fromObject(e.elementDimensionSpec)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.deltaPath=[]),t.defaults&&(n.cacheable=!1,n.elementDimensionSpec=null),null!=e.cacheable&&e.hasOwnProperty("cacheable")&&(n.cacheable=e.cacheable),e.deltaPath&&e.deltaPath.length){n.deltaPath=[];for(let t=0;t<e.deltaPath.length;++t)n.deltaPath[t]=e.deltaPath[t]}return null!=e.elementDimensionSpec&&e.hasOwnProperty("elementDimensionSpec")&&(n.elementDimensionSpec=l.ElementDimensionSpec.toObject(e.elementDimensionSpec,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),w=(l.ElementDimensionSpec=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.width=0,e.prototype.height=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(8).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(16).uint32(e.height),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ElementDimensionSpec;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.width=e.uint32();break;case 2:r.height=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height)?"height: integer expected":null},e.fromObject=function(e){if(e instanceof l.ElementDimensionSpec)return e;let t=new l.ElementDimensionSpec;return null!=e.width&&(t.width=e.width>>>0),null!=e.height&&(t.height=e.height>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.width=0,n.height=0),null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.GitInfo=(()=>{function e(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.repository="",e.prototype.branch="",e.prototype.module="",e.prototype.untrackedFiles=a.emptyArray,e.prototype.uncommittedFiles=a.emptyArray,e.prototype.state=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.repository&&Object.hasOwnProperty.call(e,"repository")&&t.uint32(10).string(e.repository),null!=e.branch&&Object.hasOwnProperty.call(e,"branch")&&t.uint32(18).string(e.branch),null!=e.module&&Object.hasOwnProperty.call(e,"module")&&t.uint32(26).string(e.module),null!=e.untrackedFiles&&e.untrackedFiles.length)for(let n=0;n<e.untrackedFiles.length;++n)t.uint32(34).string(e.untrackedFiles[n]);if(null!=e.uncommittedFiles&&e.uncommittedFiles.length)for(let n=0;n<e.uncommittedFiles.length;++n)t.uint32(42).string(e.uncommittedFiles[n]);return null!=e.state&&Object.hasOwnProperty.call(e,"state")&&t.uint32(48).int32(e.state),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.GitInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.repository=e.string();break;case 2:r.branch=e.string();break;case 3:r.module=e.string();break;case 4:r.untrackedFiles&&r.untrackedFiles.length||(r.untrackedFiles=[]),r.untrackedFiles.push(e.string());break;case 5:r.uncommittedFiles&&r.uncommittedFiles.length||(r.uncommittedFiles=[]),r.uncommittedFiles.push(e.string());break;case 6:r.state=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.repository&&e.hasOwnProperty("repository")&&!a.isString(e.repository))return"repository: string expected";if(null!=e.branch&&e.hasOwnProperty("branch")&&!a.isString(e.branch))return"branch: string expected";if(null!=e.module&&e.hasOwnProperty("module")&&!a.isString(e.module))return"module: string expected";if(null!=e.untrackedFiles&&e.hasOwnProperty("untrackedFiles")){if(!Array.isArray(e.untrackedFiles))return"untrackedFiles: array expected";for(let t=0;t<e.untrackedFiles.length;++t)if(!a.isString(e.untrackedFiles[t]))return"untrackedFiles: string[] expected"}if(null!=e.uncommittedFiles&&e.hasOwnProperty("uncommittedFiles")){if(!Array.isArray(e.uncommittedFiles))return"uncommittedFiles: array expected";for(let t=0;t<e.uncommittedFiles.length;++t)if(!a.isString(e.uncommittedFiles[t]))return"uncommittedFiles: string[] expected"}if(null!=e.state&&e.hasOwnProperty("state"))switch(e.state){default:return"state: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.GitInfo)return e;let t=new l.GitInfo;if(null!=e.repository&&(t.repository=String(e.repository)),null!=e.branch&&(t.branch=String(e.branch)),null!=e.module&&(t.module=String(e.module)),e.untrackedFiles){if(!Array.isArray(e.untrackedFiles))throw TypeError(".GitInfo.untrackedFiles: array expected");t.untrackedFiles=[];for(let n=0;n<e.untrackedFiles.length;++n)t.untrackedFiles[n]=String(e.untrackedFiles[n])}if(e.uncommittedFiles){if(!Array.isArray(e.uncommittedFiles))throw TypeError(".GitInfo.uncommittedFiles: array expected");t.uncommittedFiles=[];for(let n=0;n<e.uncommittedFiles.length;++n)t.uncommittedFiles[n]=String(e.uncommittedFiles[n])}switch(e.state){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}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.untrackedFiles=[],n.uncommittedFiles=[]),t.defaults&&(n.repository="",n.branch="",n.module="",n.state=t.enums===String?"DEFAULT":0),null!=e.repository&&e.hasOwnProperty("repository")&&(n.repository=e.repository),null!=e.branch&&e.hasOwnProperty("branch")&&(n.branch=e.branch),null!=e.module&&e.hasOwnProperty("module")&&(n.module=e.module),e.untrackedFiles&&e.untrackedFiles.length){n.untrackedFiles=[];for(let t=0;t<e.untrackedFiles.length;++t)n.untrackedFiles[t]=e.untrackedFiles[t]}if(e.uncommittedFiles&&e.uncommittedFiles.length){n.uncommittedFiles=[];for(let t=0;t<e.uncommittedFiles.length;++t)n.uncommittedFiles[t]=e.uncommittedFiles[t]}return null!=e.state&&e.hasOwnProperty("state")&&(n.state=t.enums===String?l.GitInfo.GitStates[e.state]:e.state),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.GitStates=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="HEAD_DETACHED"]=1,t[e[2]="AHEAD_OF_REMOTE"]=2,t}(),e})()),j=(l.GraphVizChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.useContainerWidth=!1,e.prototype.elementId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(32).bool(e.useContainerWidth),null!=e.elementId&&Object.hasOwnProperty.call(e,"elementId")&&t.uint32(42).string(e.elementId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.GraphVizChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 4:r.useContainerWidth=e.bool();break;case 5:r.elementId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec)?"spec: string expected":null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null!=e.elementId&&e.hasOwnProperty("elementId")&&!a.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.GraphVizChart)return e;let t=new l.GraphVizChart;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),null!=e.elementId&&(t.elementId=String(e.elementId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.spec="",n.useContainerWidth=!1,n.elementId=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),null!=e.elementId&&e.hasOwnProperty("elementId")&&(n.elementId=e.elementId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Heading=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag="",e.prototype.anchor="",e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.tag&&Object.hasOwnProperty.call(e,"tag")&&t.uint32(10).string(e.tag),null!=e.anchor&&Object.hasOwnProperty.call(e,"anchor")&&t.uint32(18).string(e.anchor),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(26).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Heading;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.tag=e.string();break;case 2:r.anchor=e.string();break;case 3:r.body=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.tag&&e.hasOwnProperty("tag")&&!a.isString(e.tag)?"tag: string expected":null!=e.anchor&&e.hasOwnProperty("anchor")&&!a.isString(e.anchor)?"anchor: string expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Heading)return e;let t=new l.Heading;return null!=e.tag&&(t.tag=String(e.tag)),null!=e.anchor&&(t.anchor=String(e.anchor)),null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.tag="",n.anchor="",n.body=""),null!=e.tag&&e.hasOwnProperty("tag")&&(n.tag=e.tag),null!=e.anchor&&e.hasOwnProperty("anchor")&&(n.anchor=e.anchor),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.IFrame=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.src=null,e.prototype.srcdoc=null,e.prototype.width=0,e.prototype.hasWidth=!1,e.prototype.height=0,e.prototype.scrolling=!1,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["src","srcdoc"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.src&&Object.hasOwnProperty.call(e,"src")&&t.uint32(10).string(e.src),null!=e.srcdoc&&Object.hasOwnProperty.call(e,"srcdoc")&&t.uint32(18).string(e.srcdoc),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(29).float(e.width),null!=e.hasWidth&&Object.hasOwnProperty.call(e,"hasWidth")&&t.uint32(32).bool(e.hasWidth),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(45).float(e.height),null!=e.scrolling&&Object.hasOwnProperty.call(e,"scrolling")&&t.uint32(56).bool(e.scrolling),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.IFrame;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.src=e.string();break;case 2:r.srcdoc=e.string();break;case 3:r.width=e.float();break;case 4:r.hasWidth=e.bool();break;case 5:r.height=e.float();break;case 7:r.scrolling=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.src&&e.hasOwnProperty("src")&&(t.type=1,!a.isString(e.src)))return"src: string expected";if(null!=e.srcdoc&&e.hasOwnProperty("srcdoc")){if(1===t.type)return"type: multiple values";if(t.type=1,!a.isString(e.srcdoc))return"srcdoc: string expected"}return null!=e.width&&e.hasOwnProperty("width")&&"number"!==typeof e.width?"width: number expected":null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&"boolean"!==typeof e.hasWidth?"hasWidth: boolean expected":null!=e.height&&e.hasOwnProperty("height")&&"number"!==typeof e.height?"height: number expected":null!=e.scrolling&&e.hasOwnProperty("scrolling")&&"boolean"!==typeof e.scrolling?"scrolling: boolean expected":null},e.fromObject=function(e){if(e instanceof l.IFrame)return e;let t=new l.IFrame;return null!=e.src&&(t.src=String(e.src)),null!=e.srcdoc&&(t.srcdoc=String(e.srcdoc)),null!=e.width&&(t.width=Number(e.width)),null!=e.hasWidth&&(t.hasWidth=Boolean(e.hasWidth)),null!=e.height&&(t.height=Number(e.height)),null!=e.scrolling&&(t.scrolling=Boolean(e.scrolling)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.width=0,n.hasWidth=!1,n.height=0,n.scrolling=!1),null!=e.src&&e.hasOwnProperty("src")&&(n.src=e.src,t.oneofs&&(n.type="src")),null!=e.srcdoc&&e.hasOwnProperty("srcdoc")&&(n.srcdoc=e.srcdoc,t.oneofs&&(n.type="srcdoc")),null!=e.width&&e.hasOwnProperty("width")&&(n.width=t.json&&!isFinite(e.width)?String(e.width):e.width),null!=e.hasWidth&&e.hasOwnProperty("hasWidth")&&(n.hasWidth=e.hasWidth),null!=e.height&&e.hasOwnProperty("height")&&(n.height=t.json&&!isFinite(e.height)?String(e.height):e.height),null!=e.scrolling&&e.hasOwnProperty("scrolling")&&(n.scrolling=e.scrolling),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Image=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.markup="",e.prototype.url="",e.prototype.caption="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(26).string(e.url),null!=e.markup&&Object.hasOwnProperty.call(e,"markup")&&t.uint32(34).string(e.markup),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Image;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 4:r.markup=e.string();break;case 3:r.url=e.string();break;case 2:r.caption=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.markup&&e.hasOwnProperty("markup")&&!a.isString(e.markup)?"markup: string expected":null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url)?"url: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!a.isString(e.caption)?"caption: string expected":null},e.fromObject=function(e){if(e instanceof l.Image)return e;let t=new l.Image;return null!=e.markup&&(t.markup=String(e.markup)),null!=e.url&&(t.url=String(e.url)),null!=e.caption&&(t.caption=String(e.caption)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.caption="",n.url="",n.markup=""),null!=e.caption&&e.hasOwnProperty("caption")&&(n.caption=e.caption),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),null!=e.markup&&e.hasOwnProperty("markup")&&(n.markup=e.markup),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),S=(l.ImageList=(()=>{function e(e){if(this.imgs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imgs=a.emptyArray,e.prototype.width=0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.imgs&&e.imgs.length)for(let n=0;n<e.imgs.length;++n)l.Image.encode(e.imgs[n],t.uint32(10).fork()).ldelim();return null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(16).int32(e.width),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.ImageList;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.imgs&&r.imgs.length||(r.imgs=[]),r.imgs.push(l.Image.decode(e,e.uint32()));break;case 2:r.width=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(!Array.isArray(e.imgs))return"imgs: array expected";for(let t=0;t<e.imgs.length;++t){let n=l.Image.verify(e.imgs[t]);if(n)return"imgs."+n}}return null!=e.width&&e.hasOwnProperty("width")&&!a.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ImageList)return e;let t=new l.ImageList;if(e.imgs){if(!Array.isArray(e.imgs))throw TypeError(".ImageList.imgs: array expected");t.imgs=[];for(let n=0;n<e.imgs.length;++n){if("object"!==typeof e.imgs[n])throw TypeError(".ImageList.imgs: object expected");t.imgs[n]=l.Image.fromObject(e.imgs[n])}}return null!=e.width&&(t.width=0|e.width),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.imgs=[]),t.defaults&&(n.width=0),e.imgs&&e.imgs.length){n.imgs=[];for(let r=0;r<e.imgs.length;++r)n.imgs[r]=l.Image.toObject(e.imgs[r],t)}return null!=e.width&&e.hasOwnProperty("width")&&(n.width=e.width),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Json=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.expanded=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.expanded&&Object.hasOwnProperty.call(e,"expanded")&&t.uint32(16).bool(e.expanded),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Json;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null!=e.expanded&&e.hasOwnProperty("expanded")&&"boolean"!==typeof e.expanded?"expanded: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Json)return e;let t=new l.Json;return null!=e.body&&(t.body=String(e.body)),null!=e.expanded&&(t.expanded=Boolean(e.expanded)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.expanded=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.expanded&&e.hasOwnProperty("expanded")&&(n.expanded=e.expanded),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.LabelVisibilityMessage=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).int32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.LabelVisibilityMessage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value"))switch(e.value){default:return"value: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.LabelVisibilityMessage)return e;let t=new l.LabelVisibilityMessage;switch(e.value){case"VISIBLE":case 0:t.value=0;break;case"HIDDEN":case 1:t.value=1;break;case"COLLAPSED":case 2:t.value=2}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.value=t.enums===String?"VISIBLE":0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.enums===String?l.LabelVisibilityMessage.LabelVisibilityOptions[e.value]:e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.LabelVisibilityOptions=function(){const e={},t=Object.create(e);return t[e[0]="VISIBLE"]=0,t[e[1]="HIDDEN"]=1,t[e[2]="COLLAPSED"]=2,t}(),e})()),x=(l.Markdown=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.allowHtml=!1,e.prototype.isCaption=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.allowHtml&&Object.hasOwnProperty.call(e,"allowHtml")&&t.uint32(16).bool(e.allowHtml),null!=e.isCaption&&Object.hasOwnProperty.call(e,"isCaption")&&t.uint32(24).bool(e.isCaption),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Markdown;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;case 2:r.allowHtml=e.bool();break;case 3:r.isCaption=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&"boolean"!==typeof e.allowHtml?"allowHtml: boolean expected":null!=e.isCaption&&e.hasOwnProperty("isCaption")&&"boolean"!==typeof e.isCaption?"isCaption: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Markdown)return e;let t=new l.Markdown;return null!=e.body&&(t.body=String(e.body)),null!=e.allowHtml&&(t.allowHtml=Boolean(e.allowHtml)),null!=e.isCaption&&(t.isCaption=Boolean(e.isCaption)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body="",n.allowHtml=!1,n.isCaption=!1),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.allowHtml&&e.hasOwnProperty("allowHtml")&&(n.allowHtml=e.allowHtml),null!=e.isCaption&&e.hasOwnProperty("isCaption")&&(n.isCaption=e.isCaption),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Metric=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.label="",e.prototype.body="",e.prototype.delta="",e.prototype.direction=0,e.prototype.color=0,e.prototype.help="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(10).string(e.label),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(18).string(e.body),null!=e.delta&&Object.hasOwnProperty.call(e,"delta")&&t.uint32(26).string(e.delta),null!=e.direction&&Object.hasOwnProperty.call(e,"direction")&&t.uint32(32).int32(e.direction),null!=e.color&&Object.hasOwnProperty.call(e,"color")&&t.uint32(40).int32(e.color),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Metric;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.label=e.string();break;case 2:r.body=e.string();break;case 3:r.delta=e.string();break;case 4:r.direction=e.int32();break;case 5:r.color=e.int32();break;case 6:r.help=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body))return"body: string expected";if(null!=e.delta&&e.hasOwnProperty("delta")&&!a.isString(e.delta))return"delta: string expected";if(null!=e.direction&&e.hasOwnProperty("direction"))switch(e.direction){default:return"direction: enum value expected";case 0:case 1:case 2:}if(null!=e.color&&e.hasOwnProperty("color"))switch(e.color){default:return"color: enum value expected";case 0:case 1:case 2:}return null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help)?"help: string expected":null},e.fromObject=function(e){if(e instanceof l.Metric)return e;let t=new l.Metric;switch(null!=e.label&&(t.label=String(e.label)),null!=e.body&&(t.body=String(e.body)),null!=e.delta&&(t.delta=String(e.delta)),e.direction){case"DOWN":case 0:t.direction=0;break;case"UP":case 1:t.direction=1;break;case"NONE":case 2:t.direction=2}switch(e.color){case"RED":case 0:t.color=0;break;case"GREEN":case 1:t.color=1;break;case"GRAY":case 2:t.color=2}return null!=e.help&&(t.help=String(e.help)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.label="",n.body="",n.delta="",n.direction=t.enums===String?"DOWN":0,n.color=t.enums===String?"RED":0,n.help=""),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.delta&&e.hasOwnProperty("delta")&&(n.delta=e.delta),null!=e.direction&&e.hasOwnProperty("direction")&&(n.direction=t.enums===String?l.Metric.MetricDirection[e.direction]:e.direction),null!=e.color&&e.hasOwnProperty("color")&&(n.color=t.enums===String?l.Metric.MetricColor[e.color]:e.color),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MetricColor=function(){const e={},t=Object.create(e);return t[e[0]="RED"]=0,t[e[1]="GREEN"]=1,t[e[2]="GRAY"]=2,t}(),e.MetricDirection=function(){const e={},t=Object.create(e);return t[e[0]="DOWN"]=0,t[e[1]="UP"]=1,t[e[2]="NONE"]=2,t}(),e})()),v=(l.MultiSelect=(()=>{function e(e){if(this.default=[],this.options=[],this.value=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=a.emptyArray,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&e.default.length){t.uint32(26).fork();for(let n=0;n<e.default.length;++n)t.int32(e.default[n]);t.ldelim()}if(null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);if(null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&e.value.length){t.uint32(58).fork();for(let n=0;n<e.value.length;++n)t.int32(e.value[n]);t.ldelim()}return null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.MultiSelect;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:if(r.default&&r.default.length||(r.default=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.default.push(e.int32())}else r.default.push(e.int32());break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:if(r.value&&r.value.length||(r.value=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.value.push(e.int32())}else r.value.push(e.int32());break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if(!a.isInteger(e.default[t]))return"default: integer[] expected"}if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if(!a.isInteger(e.value[t]))return"value: integer[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.MultiSelect)return e;let t=new l.MultiSelect;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),e.default){if(!Array.isArray(e.default))throw TypeError(".MultiSelect.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=0|e.default[n]}if(e.options){if(!Array.isArray(e.options))throw TypeError(".MultiSelect.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),e.value){if(!Array.isArray(e.value))throw TypeError(".MultiSelect.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=0|e.value[n]}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".MultiSelect.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.options=[],n.value=[]),t.defaults&&(n.id="",n.label="",n.help="",n.formId="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),e.default&&e.default.length){n.default=[];for(let t=0;t<e.default.length;++t)n.default[t]=e.default[t]}if(e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}if(null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),e.value&&e.value.length){n.value=[];for(let t=0;t<e.value.length;++t)n.value[t]=e.value[t]}return null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.NamedDataSet=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.hasName=!1,e.prototype.data=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.hasName&&Object.hasOwnProperty.call(e,"hasName")&&t.uint32(24).bool(e.hasName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NamedDataSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 3:r.hasName=e.bool();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.hasName&&e.hasOwnProperty("hasName")&&"boolean"!==typeof e.hasName)return"hasName: boolean expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DataFrame.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.NamedDataSet)return e;let t=new l.NamedDataSet;if(null!=e.name&&(t.name=String(e.name)),null!=e.hasName&&(t.hasName=Boolean(e.hasName)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".NamedDataSet.data: object expected");t.data=l.DataFrame.fromObject(e.data)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.data=null,n.hasName=!1),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),null!=e.hasName&&e.hasOwnProperty("hasName")&&(n.hasName=e.hasName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),k=(l.NewSession=(()=>{function e(e){if(this.appPages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.initialize=null,e.prototype.scriptRunId="",e.prototype.name="",e.prototype.mainScriptPath="",e.prototype.config=null,e.prototype.customTheme=null,e.prototype.appPages=a.emptyArray,e.prototype.pageScriptHash="",e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.initialize&&Object.hasOwnProperty.call(e,"initialize")&&l.Initialize.encode(e.initialize,t.uint32(10).fork()).ldelim(),null!=e.scriptRunId&&Object.hasOwnProperty.call(e,"scriptRunId")&&t.uint32(18).string(e.scriptRunId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.mainScriptPath&&Object.hasOwnProperty.call(e,"mainScriptPath")&&t.uint32(34).string(e.mainScriptPath),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&l.Config.encode(e.config,t.uint32(50).fork()).ldelim(),null!=e.customTheme&&Object.hasOwnProperty.call(e,"customTheme")&&l.CustomThemeConfig.encode(e.customTheme,t.uint32(58).fork()).ldelim(),null!=e.appPages&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(66).fork()).ldelim();return null!=e.pageScriptHash&&Object.hasOwnProperty.call(e,"pageScriptHash")&&t.uint32(74).string(e.pageScriptHash),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NewSession;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.initialize=l.Initialize.decode(e,e.uint32());break;case 2:r.scriptRunId=e.string();break;case 3:r.name=e.string();break;case 4:r.mainScriptPath=e.string();break;case 6:r.config=l.Config.decode(e,e.uint32());break;case 7:r.customTheme=l.CustomThemeConfig.decode(e,e.uint32());break;case 8:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;case 9:r.pageScriptHash=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.initialize&&e.hasOwnProperty("initialize")){let t=l.Initialize.verify(e.initialize);if(t)return"initialize."+t}if(null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&!a.isString(e.scriptRunId))return"scriptRunId: string expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&!a.isString(e.mainScriptPath))return"mainScriptPath: string expected";if(null!=e.config&&e.hasOwnProperty("config")){let t=l.Config.verify(e.config);if(t)return"config."+t}if(null!=e.customTheme&&e.hasOwnProperty("customTheme")){let t=l.CustomThemeConfig.verify(e.customTheme);if(t)return"customTheme."+t}if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(let t=0;t<e.appPages.length;++t){let n=l.AppPage.verify(e.appPages[t]);if(n)return"appPages."+n}}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&!a.isString(e.pageScriptHash)?"pageScriptHash: string expected":null},e.fromObject=function(e){if(e instanceof l.NewSession)return e;let t=new l.NewSession;if(null!=e.initialize){if("object"!==typeof e.initialize)throw TypeError(".NewSession.initialize: object expected");t.initialize=l.Initialize.fromObject(e.initialize)}if(null!=e.scriptRunId&&(t.scriptRunId=String(e.scriptRunId)),null!=e.name&&(t.name=String(e.name)),null!=e.mainScriptPath&&(t.mainScriptPath=String(e.mainScriptPath)),null!=e.config){if("object"!==typeof e.config)throw TypeError(".NewSession.config: object expected");t.config=l.Config.fromObject(e.config)}if(null!=e.customTheme){if("object"!==typeof e.customTheme)throw TypeError(".NewSession.customTheme: object expected");t.customTheme=l.CustomThemeConfig.fromObject(e.customTheme)}if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".NewSession.appPages: array expected");t.appPages=[];for(let n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".NewSession.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return null!=e.pageScriptHash&&(t.pageScriptHash=String(e.pageScriptHash)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.appPages=[]),t.defaults&&(n.initialize=null,n.scriptRunId="",n.name="",n.mainScriptPath="",n.config=null,n.customTheme=null,n.pageScriptHash=""),null!=e.initialize&&e.hasOwnProperty("initialize")&&(n.initialize=l.Initialize.toObject(e.initialize,t)),null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&(n.scriptRunId=e.scriptRunId),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&(n.mainScriptPath=e.mainScriptPath),null!=e.config&&e.hasOwnProperty("config")&&(n.config=l.Config.toObject(e.config,t)),null!=e.customTheme&&e.hasOwnProperty("customTheme")&&(n.customTheme=l.CustomThemeConfig.toObject(e.customTheme,t)),e.appPages&&e.appPages.length){n.appPages=[];for(let r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return null!=e.pageScriptHash&&e.hasOwnProperty("pageScriptHash")&&(n.pageScriptHash=e.pageScriptHash),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Initialize=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userInfo=null,e.prototype.environmentInfo=null,e.prototype.sessionState=null,e.prototype.commandLine="",e.prototype.sessionId="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.userInfo&&Object.hasOwnProperty.call(e,"userInfo")&&l.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),null!=e.environmentInfo&&Object.hasOwnProperty.call(e,"environmentInfo")&&l.EnvironmentInfo.encode(e.environmentInfo,t.uint32(26).fork()).ldelim(),null!=e.sessionState&&Object.hasOwnProperty.call(e,"sessionState")&&l.SessionState.encode(e.sessionState,t.uint32(34).fork()).ldelim(),null!=e.commandLine&&Object.hasOwnProperty.call(e,"commandLine")&&t.uint32(42).string(e.commandLine),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Initialize;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.userInfo=l.UserInfo.decode(e,e.uint32());break;case 3:r.environmentInfo=l.EnvironmentInfo.decode(e,e.uint32());break;case 4:r.sessionState=l.SessionState.decode(e,e.uint32());break;case 5:r.commandLine=e.string();break;case 6:r.sessionId=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.userInfo&&e.hasOwnProperty("userInfo")){let t=l.UserInfo.verify(e.userInfo);if(t)return"userInfo."+t}if(null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")){let t=l.EnvironmentInfo.verify(e.environmentInfo);if(t)return"environmentInfo."+t}if(null!=e.sessionState&&e.hasOwnProperty("sessionState")){let t=l.SessionState.verify(e.sessionState);if(t)return"sessionState."+t}return null!=e.commandLine&&e.hasOwnProperty("commandLine")&&!a.isString(e.commandLine)?"commandLine: string expected":null!=e.sessionId&&e.hasOwnProperty("sessionId")&&!a.isString(e.sessionId)?"sessionId: string expected":null},e.fromObject=function(e){if(e instanceof l.Initialize)return e;let t=new l.Initialize;if(null!=e.userInfo){if("object"!==typeof e.userInfo)throw TypeError(".Initialize.userInfo: object expected");t.userInfo=l.UserInfo.fromObject(e.userInfo)}if(null!=e.environmentInfo){if("object"!==typeof e.environmentInfo)throw TypeError(".Initialize.environmentInfo: object expected");t.environmentInfo=l.EnvironmentInfo.fromObject(e.environmentInfo)}if(null!=e.sessionState){if("object"!==typeof e.sessionState)throw TypeError(".Initialize.sessionState: object expected");t.sessionState=l.SessionState.fromObject(e.sessionState)}return null!=e.commandLine&&(t.commandLine=String(e.commandLine)),null!=e.sessionId&&(t.sessionId=String(e.sessionId)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.userInfo=null,n.environmentInfo=null,n.sessionState=null,n.commandLine="",n.sessionId=""),null!=e.userInfo&&e.hasOwnProperty("userInfo")&&(n.userInfo=l.UserInfo.toObject(e.userInfo,t)),null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")&&(n.environmentInfo=l.EnvironmentInfo.toObject(e.environmentInfo,t)),null!=e.sessionState&&e.hasOwnProperty("sessionState")&&(n.sessionState=l.SessionState.toObject(e.sessionState,t)),null!=e.commandLine&&e.hasOwnProperty("commandLine")&&(n.commandLine=e.commandLine),null!=e.sessionId&&e.hasOwnProperty("sessionId")&&(n.sessionId=e.sessionId),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Config=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.gatherUsageStats=!1,e.prototype.maxCachedMessageAge=0,e.prototype.mapboxToken="",e.prototype.allowRunOnSave=!1,e.prototype.hideTopBar=!1,e.prototype.hideSidebarNav=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.gatherUsageStats&&Object.hasOwnProperty.call(e,"gatherUsageStats")&&t.uint32(16).bool(e.gatherUsageStats),null!=e.maxCachedMessageAge&&Object.hasOwnProperty.call(e,"maxCachedMessageAge")&&t.uint32(24).int32(e.maxCachedMessageAge),null!=e.mapboxToken&&Object.hasOwnProperty.call(e,"mapboxToken")&&t.uint32(34).string(e.mapboxToken),null!=e.allowRunOnSave&&Object.hasOwnProperty.call(e,"allowRunOnSave")&&t.uint32(40).bool(e.allowRunOnSave),null!=e.hideTopBar&&Object.hasOwnProperty.call(e,"hideTopBar")&&t.uint32(48).bool(e.hideTopBar),null!=e.hideSidebarNav&&Object.hasOwnProperty.call(e,"hideSidebarNav")&&t.uint32(56).bool(e.hideSidebarNav),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Config;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:r.gatherUsageStats=e.bool();break;case 3:r.maxCachedMessageAge=e.int32();break;case 4:r.mapboxToken=e.string();break;case 5:r.allowRunOnSave=e.bool();break;case 6:r.hideTopBar=e.bool();break;case 7:r.hideSidebarNav=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&"boolean"!==typeof e.gatherUsageStats?"gatherUsageStats: boolean expected":null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&!a.isInteger(e.maxCachedMessageAge)?"maxCachedMessageAge: integer expected":null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&!a.isString(e.mapboxToken)?"mapboxToken: string expected":null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&"boolean"!==typeof e.allowRunOnSave?"allowRunOnSave: boolean expected":null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&"boolean"!==typeof e.hideTopBar?"hideTopBar: boolean expected":null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&"boolean"!==typeof e.hideSidebarNav?"hideSidebarNav: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Config)return e;let t=new l.Config;return null!=e.gatherUsageStats&&(t.gatherUsageStats=Boolean(e.gatherUsageStats)),null!=e.maxCachedMessageAge&&(t.maxCachedMessageAge=0|e.maxCachedMessageAge),null!=e.mapboxToken&&(t.mapboxToken=String(e.mapboxToken)),null!=e.allowRunOnSave&&(t.allowRunOnSave=Boolean(e.allowRunOnSave)),null!=e.hideTopBar&&(t.hideTopBar=Boolean(e.hideTopBar)),null!=e.hideSidebarNav&&(t.hideSidebarNav=Boolean(e.hideSidebarNav)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.mapboxToken="",n.allowRunOnSave=!1,n.hideTopBar=!1,n.hideSidebarNav=!1),null!=e.gatherUsageStats&&e.hasOwnProperty("gatherUsageStats")&&(n.gatherUsageStats=e.gatherUsageStats),null!=e.maxCachedMessageAge&&e.hasOwnProperty("maxCachedMessageAge")&&(n.maxCachedMessageAge=e.maxCachedMessageAge),null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&(n.mapboxToken=e.mapboxToken),null!=e.allowRunOnSave&&e.hasOwnProperty("allowRunOnSave")&&(n.allowRunOnSave=e.allowRunOnSave),null!=e.hideTopBar&&e.hasOwnProperty("hideTopBar")&&(n.hideTopBar=e.hideTopBar),null!=e.hideSidebarNav&&e.hasOwnProperty("hideSidebarNav")&&(n.hideSidebarNav=e.hideSidebarNav),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.CustomThemeConfig=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.primaryColor="",e.prototype.secondaryBackgroundColor="",e.prototype.backgroundColor="",e.prototype.textColor="",e.prototype.font=0,e.prototype.base=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.primaryColor&&Object.hasOwnProperty.call(e,"primaryColor")&&t.uint32(10).string(e.primaryColor),null!=e.secondaryBackgroundColor&&Object.hasOwnProperty.call(e,"secondaryBackgroundColor")&&t.uint32(18).string(e.secondaryBackgroundColor),null!=e.backgroundColor&&Object.hasOwnProperty.call(e,"backgroundColor")&&t.uint32(26).string(e.backgroundColor),null!=e.textColor&&Object.hasOwnProperty.call(e,"textColor")&&t.uint32(34).string(e.textColor),null!=e.font&&Object.hasOwnProperty.call(e,"font")&&t.uint32(40).int32(e.font),null!=e.base&&Object.hasOwnProperty.call(e,"base")&&t.uint32(48).int32(e.base),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.CustomThemeConfig;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.primaryColor=e.string();break;case 2:r.secondaryBackgroundColor=e.string();break;case 3:r.backgroundColor=e.string();break;case 4:r.textColor=e.string();break;case 5:r.font=e.int32();break;case 6:r.base=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&!a.isString(e.primaryColor))return"primaryColor: string expected";if(null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&!a.isString(e.secondaryBackgroundColor))return"secondaryBackgroundColor: string expected";if(null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&!a.isString(e.backgroundColor))return"backgroundColor: string expected";if(null!=e.textColor&&e.hasOwnProperty("textColor")&&!a.isString(e.textColor))return"textColor: string expected";if(null!=e.font&&e.hasOwnProperty("font"))switch(e.font){default:return"font: enum value expected";case 0:case 1:case 2:}if(null!=e.base&&e.hasOwnProperty("base"))switch(e.base){default:return"base: enum value expected";case 0:case 1:}return null},e.fromObject=function(e){if(e instanceof l.CustomThemeConfig)return e;let t=new l.CustomThemeConfig;switch(null!=e.primaryColor&&(t.primaryColor=String(e.primaryColor)),null!=e.secondaryBackgroundColor&&(t.secondaryBackgroundColor=String(e.secondaryBackgroundColor)),null!=e.backgroundColor&&(t.backgroundColor=String(e.backgroundColor)),null!=e.textColor&&(t.textColor=String(e.textColor)),e.font){case"SANS_SERIF":case 0:t.font=0;break;case"SERIF":case 1:t.font=1;break;case"MONOSPACE":case 2:t.font=2}switch(e.base){case"LIGHT":case 0:t.base=0;break;case"DARK":case 1:t.base=1}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.primaryColor="",n.secondaryBackgroundColor="",n.backgroundColor="",n.textColor="",n.font=t.enums===String?"SANS_SERIF":0,n.base=t.enums===String?"LIGHT":0),null!=e.primaryColor&&e.hasOwnProperty("primaryColor")&&(n.primaryColor=e.primaryColor),null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&(n.secondaryBackgroundColor=e.secondaryBackgroundColor),null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&(n.backgroundColor=e.backgroundColor),null!=e.textColor&&e.hasOwnProperty("textColor")&&(n.textColor=e.textColor),null!=e.font&&e.hasOwnProperty("font")&&(n.font=t.enums===String?l.CustomThemeConfig.FontFamily[e.font]:e.font),null!=e.base&&e.hasOwnProperty("base")&&(n.base=t.enums===String?l.CustomThemeConfig.BaseTheme[e.base]:e.base),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.BaseTheme=function(){const e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t}(),e.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}(),e})()),P=(l.UserInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.installationId="",e.prototype.installationIdV3="",e.prototype.email="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.installationId&&Object.hasOwnProperty.call(e,"installationId")&&t.uint32(10).string(e.installationId),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(18).string(e.email),null!=e.installationIdV3&&Object.hasOwnProperty.call(e,"installationIdV3")&&t.uint32(42).string(e.installationIdV3),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.UserInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.installationId=e.string();break;case 5:r.installationIdV3=e.string();break;case 2:r.email=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.installationId&&e.hasOwnProperty("installationId")&&!a.isString(e.installationId)?"installationId: string expected":null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&!a.isString(e.installationIdV3)?"installationIdV3: string expected":null!=e.email&&e.hasOwnProperty("email")&&!a.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof l.UserInfo)return e;let t=new l.UserInfo;return null!=e.installationId&&(t.installationId=String(e.installationId)),null!=e.installationIdV3&&(t.installationIdV3=String(e.installationIdV3)),null!=e.email&&(t.email=String(e.email)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.installationId="",n.email="",n.installationIdV3=""),null!=e.installationId&&e.hasOwnProperty("installationId")&&(n.installationId=e.installationId),null!=e.email&&e.hasOwnProperty("email")&&(n.email=e.email),null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&(n.installationIdV3=e.installationIdV3),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.EnvironmentInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.streamlitVersion="",e.prototype.pythonVersion="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.streamlitVersion&&Object.hasOwnProperty.call(e,"streamlitVersion")&&t.uint32(10).string(e.streamlitVersion),null!=e.pythonVersion&&Object.hasOwnProperty.call(e,"pythonVersion")&&t.uint32(18).string(e.pythonVersion),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.EnvironmentInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.streamlitVersion=e.string();break;case 2:r.pythonVersion=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&!a.isString(e.streamlitVersion)?"streamlitVersion: string expected":null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&!a.isString(e.pythonVersion)?"pythonVersion: string expected":null},e.fromObject=function(e){if(e instanceof l.EnvironmentInfo)return e;let t=new l.EnvironmentInfo;return null!=e.streamlitVersion&&(t.streamlitVersion=String(e.streamlitVersion)),null!=e.pythonVersion&&(t.pythonVersion=String(e.pythonVersion)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.streamlitVersion="",n.pythonVersion=""),null!=e.streamlitVersion&&e.hasOwnProperty("streamlitVersion")&&(n.streamlitVersion=e.streamlitVersion),null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&(n.pythonVersion=e.pythonVersion),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.NumberInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.formId="",e.prototype.format="",e.prototype.hasMin=!1,e.prototype.hasMax=!1,e.prototype.dataType=0,e.prototype.default=0,e.prototype.step=0,e.prototype.min=0,e.prototype.max=0,e.prototype.help="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(26).string(e.formId),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(66).string(e.format),null!=e.hasMin&&Object.hasOwnProperty.call(e,"hasMin")&&t.uint32(88).bool(e.hasMin),null!=e.hasMax&&Object.hasOwnProperty.call(e,"hasMax")&&t.uint32(96).bool(e.hasMax),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(104).int32(e.dataType),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(113).double(e.default),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(121).double(e.step),null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(129).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(137).double(e.max),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(146).string(e.help),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(153).double(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(160).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(168).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(178).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.NumberInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.formId=e.string();break;case 8:r.format=e.string();break;case 11:r.hasMin=e.bool();break;case 12:r.hasMax=e.bool();break;case 13:r.dataType=e.int32();break;case 14:r.default=e.double();break;case 15:r.step=e.double();break;case 16:r.min=e.double();break;case 17:r.max=e.double();break;case 18:r.help=e.string();break;case 19:r.value=e.double();break;case 20:r.setValue=e.bool();break;case 21:r.disabled=e.bool();break;case 22:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!a.isString(e.format))return"format: string expected";if(null!=e.hasMin&&e.hasOwnProperty("hasMin")&&"boolean"!==typeof e.hasMin)return"hasMin: boolean expected";if(null!=e.hasMax&&e.hasOwnProperty("hasMax")&&"boolean"!==typeof e.hasMax)return"hasMax: boolean expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:}if(null!=e.default&&e.hasOwnProperty("default")&&"number"!==typeof e.default)return"default: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: number expected";if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.NumberInput)return e;let t=new l.NumberInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.format&&(t.format=String(e.format)),null!=e.hasMin&&(t.hasMin=Boolean(e.hasMin)),null!=e.hasMax&&(t.hasMax=Boolean(e.hasMax)),e.dataType){case"INT":case 0:t.dataType=0;break;case"FLOAT":case 1:t.dataType=1}if(null!=e.default&&(t.default=Number(e.default)),null!=e.step&&(t.step=Number(e.step)),null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.help&&(t.help=String(e.help)),null!=e.value&&(t.value=Number(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".NumberInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.formId="",n.format="",n.hasMin=!1,n.hasMax=!1,n.dataType=t.enums===String?"INT":0,n.default=0,n.step=0,n.min=0,n.max=0,n.help="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.hasMin&&e.hasOwnProperty("hasMin")&&(n.hasMin=e.hasMin),null!=e.hasMax&&e.hasOwnProperty("hasMax")&&(n.hasMax=e.hasMax),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.NumberInput.DataType[e.dataType]:e.dataType),null!=e.default&&e.hasOwnProperty("default")&&(n.default=t.json&&!isFinite(e.default)?String(e.default):e.default),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t}(),e})()),I=l.PageConfig=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.favicon="",e.prototype.layout=0,e.prototype.initialSidebarState=0,e.prototype.menuItems=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.favicon&&Object.hasOwnProperty.call(e,"favicon")&&t.uint32(18).string(e.favicon),null!=e.layout&&Object.hasOwnProperty.call(e,"layout")&&t.uint32(24).int32(e.layout),null!=e.initialSidebarState&&Object.hasOwnProperty.call(e,"initialSidebarState")&&t.uint32(32).int32(e.initialSidebarState),null!=e.menuItems&&Object.hasOwnProperty.call(e,"menuItems")&&l.PageConfig.MenuItems.encode(e.menuItems,t.uint32(42).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageConfig;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.title=e.string();break;case 2:r.favicon=e.string();break;case 3:r.layout=e.int32();break;case 4:r.initialSidebarState=e.int32();break;case 5:r.menuItems=l.PageConfig.MenuItems.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.title&&e.hasOwnProperty("title")&&!a.isString(e.title))return"title: string expected";if(null!=e.favicon&&e.hasOwnProperty("favicon")&&!a.isString(e.favicon))return"favicon: string expected";if(null!=e.layout&&e.hasOwnProperty("layout"))switch(e.layout){default:return"layout: enum value expected";case 0:case 1:}if(null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState"))switch(e.initialSidebarState){default:return"initialSidebarState: enum value expected";case 0:case 1:case 2:}if(null!=e.menuItems&&e.hasOwnProperty("menuItems")){let t=l.PageConfig.MenuItems.verify(e.menuItems);if(t)return"menuItems."+t}return null},e.fromObject=function(e){if(e instanceof l.PageConfig)return e;let t=new l.PageConfig;switch(null!=e.title&&(t.title=String(e.title)),null!=e.favicon&&(t.favicon=String(e.favicon)),e.layout){case"CENTERED":case 0:t.layout=0;break;case"WIDE":case 1:t.layout=1}switch(e.initialSidebarState){case"AUTO":case 0:t.initialSidebarState=0;break;case"EXPANDED":case 1:t.initialSidebarState=1;break;case"COLLAPSED":case 2:t.initialSidebarState=2}if(null!=e.menuItems){if("object"!==typeof e.menuItems)throw TypeError(".PageConfig.menuItems: object expected");t.menuItems=l.PageConfig.MenuItems.fromObject(e.menuItems)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.title="",n.favicon="",n.layout=t.enums===String?"CENTERED":0,n.initialSidebarState=t.enums===String?"AUTO":0,n.menuItems=null),null!=e.title&&e.hasOwnProperty("title")&&(n.title=e.title),null!=e.favicon&&e.hasOwnProperty("favicon")&&(n.favicon=e.favicon),null!=e.layout&&e.hasOwnProperty("layout")&&(n.layout=t.enums===String?l.PageConfig.Layout[e.layout]:e.layout),null!=e.initialSidebarState&&e.hasOwnProperty("initialSidebarState")&&(n.initialSidebarState=t.enums===String?l.PageConfig.SidebarState[e.initialSidebarState]:e.initialSidebarState),null!=e.menuItems&&e.hasOwnProperty("menuItems")&&(n.menuItems=l.PageConfig.MenuItems.toObject(e.menuItems,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MenuItems=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.getHelpUrl="",e.prototype.hideGetHelp=!1,e.prototype.reportABugUrl="",e.prototype.hideReportABug=!1,e.prototype.aboutSectionMd="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.getHelpUrl&&Object.hasOwnProperty.call(e,"getHelpUrl")&&t.uint32(10).string(e.getHelpUrl),null!=e.hideGetHelp&&Object.hasOwnProperty.call(e,"hideGetHelp")&&t.uint32(16).bool(e.hideGetHelp),null!=e.reportABugUrl&&Object.hasOwnProperty.call(e,"reportABugUrl")&&t.uint32(26).string(e.reportABugUrl),null!=e.hideReportABug&&Object.hasOwnProperty.call(e,"hideReportABug")&&t.uint32(32).bool(e.hideReportABug),null!=e.aboutSectionMd&&Object.hasOwnProperty.call(e,"aboutSectionMd")&&t.uint32(42).string(e.aboutSectionMd),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageConfig.MenuItems;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.getHelpUrl=e.string();break;case 2:r.hideGetHelp=e.bool();break;case 3:r.reportABugUrl=e.string();break;case 4:r.hideReportABug=e.bool();break;case 5:r.aboutSectionMd=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&!a.isString(e.getHelpUrl)?"getHelpUrl: string expected":null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&"boolean"!==typeof e.hideGetHelp?"hideGetHelp: boolean expected":null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&!a.isString(e.reportABugUrl)?"reportABugUrl: string expected":null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&"boolean"!==typeof e.hideReportABug?"hideReportABug: boolean expected":null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&!a.isString(e.aboutSectionMd)?"aboutSectionMd: string expected":null},e.fromObject=function(e){if(e instanceof l.PageConfig.MenuItems)return e;let t=new l.PageConfig.MenuItems;return null!=e.getHelpUrl&&(t.getHelpUrl=String(e.getHelpUrl)),null!=e.hideGetHelp&&(t.hideGetHelp=Boolean(e.hideGetHelp)),null!=e.reportABugUrl&&(t.reportABugUrl=String(e.reportABugUrl)),null!=e.hideReportABug&&(t.hideReportABug=Boolean(e.hideReportABug)),null!=e.aboutSectionMd&&(t.aboutSectionMd=String(e.aboutSectionMd)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.getHelpUrl="",n.hideGetHelp=!1,n.reportABugUrl="",n.hideReportABug=!1,n.aboutSectionMd=""),null!=e.getHelpUrl&&e.hasOwnProperty("getHelpUrl")&&(n.getHelpUrl=e.getHelpUrl),null!=e.hideGetHelp&&e.hasOwnProperty("hideGetHelp")&&(n.hideGetHelp=e.hideGetHelp),null!=e.reportABugUrl&&e.hasOwnProperty("reportABugUrl")&&(n.reportABugUrl=e.reportABugUrl),null!=e.hideReportABug&&e.hasOwnProperty("hideReportABug")&&(n.hideReportABug=e.hideReportABug),null!=e.aboutSectionMd&&e.hasOwnProperty("aboutSectionMd")&&(n.aboutSectionMd=e.aboutSectionMd),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Layout=function(){const e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t}(),e.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})(),C=(l.PageInfo=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.queryString="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.queryString&&Object.hasOwnProperty.call(e,"queryString")&&t.uint32(10).string(e.queryString),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.queryString=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.queryString&&e.hasOwnProperty("queryString")&&!a.isString(e.queryString)?"queryString: string expected":null},e.fromObject=function(e){if(e instanceof l.PageInfo)return e;let t=new l.PageInfo;return null!=e.queryString&&(t.queryString=String(e.queryString)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.queryString=""),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PageNotFound=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.pageName="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.pageName&&Object.hasOwnProperty.call(e,"pageName")&&t.uint32(10).string(e.pageName),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageNotFound;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.pageName=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.pageName&&e.hasOwnProperty("pageName")&&!a.isString(e.pageName)?"pageName: string expected":null},e.fromObject=function(e){if(e instanceof l.PageNotFound)return e;let t=new l.PageNotFound;return null!=e.pageName&&(t.pageName=String(e.pageName)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.pageName=""),null!=e.pageName&&e.hasOwnProperty("pageName")&&(n.pageName=e.pageName),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PageProfile=(()=>{function e(e){if(this.commands=[],this.config=[],this.attributions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.commands=a.emptyArray,e.prototype.execTime=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.prepTime=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.config=a.emptyArray,e.prototype.uncaughtException="",e.prototype.attributions=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.commands&&e.commands.length)for(let n=0;n<e.commands.length;++n)l.Command.encode(e.commands[n],t.uint32(10).fork()).ldelim();if(null!=e.execTime&&Object.hasOwnProperty.call(e,"execTime")&&t.uint32(16).int64(e.execTime),null!=e.prepTime&&Object.hasOwnProperty.call(e,"prepTime")&&t.uint32(24).int64(e.prepTime),null!=e.config&&e.config.length)for(let n=0;n<e.config.length;++n)t.uint32(42).string(e.config[n]);if(null!=e.uncaughtException&&Object.hasOwnProperty.call(e,"uncaughtException")&&t.uint32(50).string(e.uncaughtException),null!=e.attributions&&e.attributions.length)for(let n=0;n<e.attributions.length;++n)t.uint32(58).string(e.attributions[n]);return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PageProfile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.commands&&r.commands.length||(r.commands=[]),r.commands.push(l.Command.decode(e,e.uint32()));break;case 2:r.execTime=e.int64();break;case 3:r.prepTime=e.int64();break;case 5:r.config&&r.config.length||(r.config=[]),r.config.push(e.string());break;case 6:r.uncaughtException=e.string();break;case 7:r.attributions&&r.attributions.length||(r.attributions=[]),r.attributions.push(e.string());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.commands&&e.hasOwnProperty("commands")){if(!Array.isArray(e.commands))return"commands: array expected";for(let t=0;t<e.commands.length;++t){let n=l.Command.verify(e.commands[t]);if(n)return"commands."+n}}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&!a.isInteger(e.execTime)&&!(e.execTime&&a.isInteger(e.execTime.low)&&a.isInteger(e.execTime.high)))return"execTime: integer|Long expected";if(null!=e.prepTime&&e.hasOwnProperty("prepTime")&&!a.isInteger(e.prepTime)&&!(e.prepTime&&a.isInteger(e.prepTime.low)&&a.isInteger(e.prepTime.high)))return"prepTime: integer|Long expected";if(null!=e.config&&e.hasOwnProperty("config")){if(!Array.isArray(e.config))return"config: array expected";for(let t=0;t<e.config.length;++t)if(!a.isString(e.config[t]))return"config: string[] expected"}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&!a.isString(e.uncaughtException))return"uncaughtException: string expected";if(null!=e.attributions&&e.hasOwnProperty("attributions")){if(!Array.isArray(e.attributions))return"attributions: array expected";for(let t=0;t<e.attributions.length;++t)if(!a.isString(e.attributions[t]))return"attributions: string[] expected"}return null},e.fromObject=function(e){if(e instanceof l.PageProfile)return e;let t=new l.PageProfile;if(e.commands){if(!Array.isArray(e.commands))throw TypeError(".PageProfile.commands: array expected");t.commands=[];for(let n=0;n<e.commands.length;++n){if("object"!==typeof e.commands[n])throw TypeError(".PageProfile.commands: object expected");t.commands[n]=l.Command.fromObject(e.commands[n])}}if(null!=e.execTime&&(a.Long?(t.execTime=a.Long.fromValue(e.execTime)).unsigned=!1:"string"===typeof e.execTime?t.execTime=parseInt(e.execTime,10):"number"===typeof e.execTime?t.execTime=e.execTime:"object"===typeof e.execTime&&(t.execTime=new a.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber())),null!=e.prepTime&&(a.Long?(t.prepTime=a.Long.fromValue(e.prepTime)).unsigned=!1:"string"===typeof e.prepTime?t.prepTime=parseInt(e.prepTime,10):"number"===typeof e.prepTime?t.prepTime=e.prepTime:"object"===typeof e.prepTime&&(t.prepTime=new a.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 n=0;n<e.config.length;++n)t.config[n]=String(e.config[n])}if(null!=e.uncaughtException&&(t.uncaughtException=String(e.uncaughtException)),e.attributions){if(!Array.isArray(e.attributions))throw TypeError(".PageProfile.attributions: array expected");t.attributions=[];for(let n=0;n<e.attributions.length;++n)t.attributions[n]=String(e.attributions[n])}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.commands=[],n.config=[],n.attributions=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.execTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.execTime=t.longs===String?"0":0;if(a.Long){let e=new a.Long(0,0,!1);n.prepTime=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.prepTime=t.longs===String?"0":0;n.uncaughtException=""}if(e.commands&&e.commands.length){n.commands=[];for(let r=0;r<e.commands.length;++r)n.commands[r]=l.Command.toObject(e.commands[r],t)}if(null!=e.execTime&&e.hasOwnProperty("execTime")&&("number"===typeof e.execTime?n.execTime=t.longs===String?String(e.execTime):e.execTime:n.execTime=t.longs===String?a.Long.prototype.toString.call(e.execTime):t.longs===Number?new a.LongBits(e.execTime.low>>>0,e.execTime.high>>>0).toNumber():e.execTime),null!=e.prepTime&&e.hasOwnProperty("prepTime")&&("number"===typeof e.prepTime?n.prepTime=t.longs===String?String(e.prepTime):e.prepTime:n.prepTime=t.longs===String?a.Long.prototype.toString.call(e.prepTime):t.longs===Number?new a.LongBits(e.prepTime.low>>>0,e.prepTime.high>>>0).toNumber():e.prepTime),e.config&&e.config.length){n.config=[];for(let t=0;t<e.config.length;++t)n.config[t]=e.config[t]}if(null!=e.uncaughtException&&e.hasOwnProperty("uncaughtException")&&(n.uncaughtException=e.uncaughtException),e.attributions&&e.attributions.length){n.attributions=[];for(let t=0;t<e.attributions.length;++t)n.attributions[t]=e.attributions[t]}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})()),V=(l.Argument=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.k="",e.prototype.t="",e.prototype.m="",e.prototype.p=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.k&&Object.hasOwnProperty.call(e,"k")&&t.uint32(10).string(e.k),null!=e.t&&Object.hasOwnProperty.call(e,"t")&&t.uint32(18).string(e.t),null!=e.m&&Object.hasOwnProperty.call(e,"m")&&t.uint32(26).string(e.m),null!=e.p&&Object.hasOwnProperty.call(e,"p")&&t.uint32(40).int32(e.p),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Argument;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.k=e.string();break;case 2:r.t=e.string();break;case 3:r.m=e.string();break;case 5:r.p=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.k&&e.hasOwnProperty("k")&&!a.isString(e.k)?"k: string expected":null!=e.t&&e.hasOwnProperty("t")&&!a.isString(e.t)?"t: string expected":null!=e.m&&e.hasOwnProperty("m")&&!a.isString(e.m)?"m: string expected":null!=e.p&&e.hasOwnProperty("p")&&!a.isInteger(e.p)?"p: integer expected":null},e.fromObject=function(e){if(e instanceof l.Argument)return e;let t=new l.Argument;return null!=e.k&&(t.k=String(e.k)),null!=e.t&&(t.t=String(e.t)),null!=e.m&&(t.m=String(e.m)),null!=e.p&&(t.p=0|e.p),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.k="",n.t="",n.m="",n.p=0),null!=e.k&&e.hasOwnProperty("k")&&(n.k=e.k),null!=e.t&&e.hasOwnProperty("t")&&(n.t=e.t),null!=e.m&&e.hasOwnProperty("m")&&(n.m=e.m),null!=e.p&&e.hasOwnProperty("p")&&(n.p=e.p),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Command=(()=>{function e(e){if(this.args=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.args=a.emptyArray,e.prototype.time=a.Long?a.Long.fromBits(0,0,!1):0,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.args&&e.args.length)for(let n=0;n<e.args.length;++n)l.Argument.encode(e.args[n],t.uint32(18).fork()).ldelim();return null!=e.time&&Object.hasOwnProperty.call(e,"time")&&t.uint32(32).int64(e.time),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Command;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.args&&r.args.length||(r.args=[]),r.args.push(l.Argument.decode(e,e.uint32()));break;case 4:r.time=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.args&&e.hasOwnProperty("args")){if(!Array.isArray(e.args))return"args: array expected";for(let t=0;t<e.args.length;++t){let n=l.Argument.verify(e.args[t]);if(n)return"args."+n}}return null==e.time||!e.hasOwnProperty("time")||a.isInteger(e.time)||e.time&&a.isInteger(e.time.low)&&a.isInteger(e.time.high)?null:"time: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.Command)return e;let t=new l.Command;if(null!=e.name&&(t.name=String(e.name)),e.args){if(!Array.isArray(e.args))throw TypeError(".Command.args: array expected");t.args=[];for(let n=0;n<e.args.length;++n){if("object"!==typeof e.args[n])throw TypeError(".Command.args: object expected");t.args[n]=l.Argument.fromObject(e.args[n])}}return null!=e.time&&(a.Long?(t.time=a.Long.fromValue(e.time)).unsigned=!1:"string"===typeof e.time?t.time=parseInt(e.time,10):"number"===typeof e.time?t.time=e.time:"object"===typeof e.time&&(t.time=new a.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.args=[]),t.defaults)if(n.name="",a.Long){let e=new a.Long(0,0,!1);n.time=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.time=t.longs===String?"0":0;if(null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),e.args&&e.args.length){n.args=[];for(let r=0;r<e.args.length;++r)n.args[r]=l.Argument.toObject(e.args[r],t)}return null!=e.time&&e.hasOwnProperty("time")&&("number"===typeof e.time?n.time=t.longs===String?String(e.time):e.time:n.time=t.longs===String?a.Long.prototype.toString.call(e.time):t.longs===Number?new a.LongBits(e.time.low>>>0,e.time.high>>>0).toNumber():e.time),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PagesChanged=(()=>{function e(e){if(this.appPages=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.appPages=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.appPages&&e.appPages.length)for(let n=0;n<e.appPages.length;++n)l.AppPage.encode(e.appPages[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PagesChanged;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.appPages&&r.appPages.length||(r.appPages=[]),r.appPages.push(l.AppPage.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.appPages&&e.hasOwnProperty("appPages")){if(!Array.isArray(e.appPages))return"appPages: array expected";for(let t=0;t<e.appPages.length;++t){let n=l.AppPage.verify(e.appPages[t]);if(n)return"appPages."+n}}return null},e.fromObject=function(e){if(e instanceof l.PagesChanged)return e;let t=new l.PagesChanged;if(e.appPages){if(!Array.isArray(e.appPages))throw TypeError(".PagesChanged.appPages: array expected");t.appPages=[];for(let n=0;n<e.appPages.length;++n){if("object"!==typeof e.appPages[n])throw TypeError(".PagesChanged.appPages: object expected");t.appPages[n]=l.AppPage.fromObject(e.appPages[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.appPages=[]),e.appPages&&e.appPages.length){n.appPages=[];for(let r=0;r<e.appPages.length;++r)n.appPages[r]=l.AppPage.toObject(e.appPages[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.PlotlyChart=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.url=null,e.prototype.figure=null,e.prototype.useContainerWidth=!1,Object.defineProperty(e.prototype,"chart",{get:a.oneOfGetter(t=["url","figure"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),null!=e.figure&&Object.hasOwnProperty.call(e,"figure")&&l.Figure.encode(e.figure,t.uint32(18).fork()).ldelim(),null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.PlotlyChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.url=e.string();break;case 2:r.figure=l.Figure.decode(e,e.uint32());break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.url&&e.hasOwnProperty("url")&&(t.chart=1,!a.isString(e.url)))return"url: string expected";if(null!=e.figure&&e.hasOwnProperty("figure")){if(1===t.chart)return"chart: multiple values";t.chart=1;{let t=l.Figure.verify(e.figure);if(t)return"figure."+t}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.PlotlyChart)return e;let t=new l.PlotlyChart;if(null!=e.url&&(t.url=String(e.url)),null!=e.figure){if("object"!==typeof e.figure)throw TypeError(".PlotlyChart.figure: object expected");t.figure=l.Figure.fromObject(e.figure)}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.useContainerWidth=!1),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url,t.oneofs&&(n.chart="url")),null!=e.figure&&e.hasOwnProperty("figure")&&(n.figure=l.Figure.toObject(e.figure,t),t.oneofs&&(n.chart="figure")),null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Figure=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.config="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.config&&Object.hasOwnProperty.call(e,"config")&&t.uint32(18).string(e.config),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Figure;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.config=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec)?"spec: string expected":null!=e.config&&e.hasOwnProperty("config")&&!a.isString(e.config)?"config: string expected":null},e.fromObject=function(e){if(e instanceof l.Figure)return e;let t=new l.Figure;return null!=e.spec&&(t.spec=String(e.spec)),null!=e.config&&(t.config=String(e.config)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.spec="",n.config=""),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.config&&e.hasOwnProperty("config")&&(n.config=e.config),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Progress=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Progress;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.uint32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value)?"value: integer expected":null},e.fromObject=function(e){if(e instanceof l.Progress)return e;let t=new l.Progress;return null!=e.value&&(t.value=e.value>>>0),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.value=0),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Radio=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.horizontal=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.horizontal&&Object.hasOwnProperty.call(e,"horizontal")&&t.uint32(80).bool(e.horizontal),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(90).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Radio;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.horizontal=e.bool();break;case 11:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.horizontal&&e.hasOwnProperty("horizontal")&&"boolean"!==typeof e.horizontal)return"horizontal: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Radio)return e;let t=new l.Radio;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Radio.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.horizontal&&(t.horizontal=Boolean(e.horizontal)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Radio.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.horizontal=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.horizontal&&e.hasOwnProperty("horizontal")&&(n.horizontal=e.horizontal),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.RootContainer=(()=>{const e={},t=Object.create(e);return t[e[0]="MAIN"]=0,t[e[1]="SIDEBAR"]=1,t})(),l.Selectbox=(()=>{function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default=0,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.formId="",e.prototype.value=0,e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(24).int32(e.default),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(34).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(42).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(50).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(56).int32(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(64).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(72).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(82).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Selectbox;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.int32();break;case 4:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 5:r.help=e.string();break;case 6:r.formId=e.string();break;case 7:r.value=e.int32();break;case 8:r.setValue=e.bool();break;case 9:r.disabled=e.bool();break;case 10:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isInteger(e.value))return"value: integer expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Selectbox)return e;let t=new l.Selectbox;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=0|e.default),e.options){if(!Array.isArray(e.options))throw TypeError(".Selectbox.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=0|e.value),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Selectbox.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.options=[]),t.defaults&&(n.id="",n.label="",n.default=0,n.help="",n.formId="",n.value=0,n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SessionEvent=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.scriptChangedOnDisk=null,e.prototype.scriptWasManuallyStopped=null,e.prototype.scriptCompilationException=null,Object.defineProperty(e.prototype,"type",{get:a.oneOfGetter(t=["scriptChangedOnDisk","scriptWasManuallyStopped","scriptCompilationException"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.scriptChangedOnDisk&&Object.hasOwnProperty.call(e,"scriptChangedOnDisk")&&t.uint32(8).bool(e.scriptChangedOnDisk),null!=e.scriptWasManuallyStopped&&Object.hasOwnProperty.call(e,"scriptWasManuallyStopped")&&t.uint32(16).bool(e.scriptWasManuallyStopped),null!=e.scriptCompilationException&&Object.hasOwnProperty.call(e,"scriptCompilationException")&&l.Exception.encode(e.scriptCompilationException,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SessionEvent;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.scriptChangedOnDisk=e.bool();break;case 2:r.scriptWasManuallyStopped=e.bool();break;case 3:r.scriptCompilationException=l.Exception.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(t.type=1,"boolean"!==typeof e.scriptChangedOnDisk))return"scriptChangedOnDisk: boolean expected";if(null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")){if(1===t.type)return"type: multiple values";if(t.type=1,"boolean"!==typeof e.scriptWasManuallyStopped)return"scriptWasManuallyStopped: boolean expected"}if(null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")){if(1===t.type)return"type: multiple values";t.type=1;{let t=l.Exception.verify(e.scriptCompilationException);if(t)return"scriptCompilationException."+t}}return null},e.fromObject=function(e){if(e instanceof l.SessionEvent)return e;let t=new l.SessionEvent;if(null!=e.scriptChangedOnDisk&&(t.scriptChangedOnDisk=Boolean(e.scriptChangedOnDisk)),null!=e.scriptWasManuallyStopped&&(t.scriptWasManuallyStopped=Boolean(e.scriptWasManuallyStopped)),null!=e.scriptCompilationException){if("object"!==typeof e.scriptCompilationException)throw TypeError(".SessionEvent.scriptCompilationException: object expected");t.scriptCompilationException=l.Exception.fromObject(e.scriptCompilationException)}return t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.scriptChangedOnDisk&&e.hasOwnProperty("scriptChangedOnDisk")&&(n.scriptChangedOnDisk=e.scriptChangedOnDisk,t.oneofs&&(n.type="scriptChangedOnDisk")),null!=e.scriptWasManuallyStopped&&e.hasOwnProperty("scriptWasManuallyStopped")&&(n.scriptWasManuallyStopped=e.scriptWasManuallyStopped,t.oneofs&&(n.type="scriptWasManuallyStopped")),null!=e.scriptCompilationException&&e.hasOwnProperty("scriptCompilationException")&&(n.scriptCompilationException=l.Exception.toObject(e.scriptCompilationException,t),t.oneofs&&(n.type="scriptCompilationException")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.SessionState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.runOnSave=!1,e.prototype.scriptIsRunning=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.runOnSave&&Object.hasOwnProperty.call(e,"runOnSave")&&t.uint32(8).bool(e.runOnSave),null!=e.scriptIsRunning&&Object.hasOwnProperty.call(e,"scriptIsRunning")&&t.uint32(16).bool(e.scriptIsRunning),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.SessionState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.runOnSave=e.bool();break;case 2:r.scriptIsRunning=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&"boolean"!==typeof e.runOnSave?"runOnSave: boolean expected":null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&"boolean"!==typeof e.scriptIsRunning?"scriptIsRunning: boolean expected":null},e.fromObject=function(e){if(e instanceof l.SessionState)return e;let t=new l.SessionState;return null!=e.runOnSave&&(t.runOnSave=Boolean(e.runOnSave)),null!=e.scriptIsRunning&&(t.scriptIsRunning=Boolean(e.scriptIsRunning)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.runOnSave=!1,n.scriptIsRunning=!1),null!=e.runOnSave&&e.hasOwnProperty("runOnSave")&&(n.runOnSave=e.runOnSave),null!=e.scriptIsRunning&&e.hasOwnProperty("scriptIsRunning")&&(n.scriptIsRunning=e.scriptIsRunning),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Slider=(()=>{function e(e){if(this.default=[],this.value=[],this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.formId="",e.prototype.label="",e.prototype.format="",e.prototype.dataType=0,e.prototype.default=a.emptyArray,e.prototype.min=0,e.prototype.max=0,e.prototype.step=0,e.prototype.value=a.emptyArray,e.prototype.setValue=!1,e.prototype.options=a.emptyArray,e.prototype.help="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(18).string(e.formId),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(34).string(e.format),null!=e.dataType&&Object.hasOwnProperty.call(e,"dataType")&&t.uint32(40).int32(e.dataType),null!=e.default&&e.default.length){t.uint32(50).fork();for(let n=0;n<e.default.length;++n)t.double(e.default[n]);t.ldelim()}if(null!=e.min&&Object.hasOwnProperty.call(e,"min")&&t.uint32(57).double(e.min),null!=e.max&&Object.hasOwnProperty.call(e,"max")&&t.uint32(65).double(e.max),null!=e.step&&Object.hasOwnProperty.call(e,"step")&&t.uint32(73).double(e.step),null!=e.value&&e.value.length){t.uint32(82).fork();for(let n=0;n<e.value.length;++n)t.double(e.value[n]);t.ldelim()}if(null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(88).bool(e.setValue),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)t.uint32(106).string(e.options[n]);return null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(114).string(e.help),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(120).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(130).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Slider;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.formId=e.string();break;case 3:r.label=e.string();break;case 4:r.format=e.string();break;case 5:r.dataType=e.int32();break;case 6:if(r.default&&r.default.length||(r.default=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.default.push(e.double())}else r.default.push(e.double());break;case 7:r.min=e.double();break;case 8:r.max=e.double();break;case 9:r.step=e.double();break;case 10:if(r.value&&r.value.length||(r.value=[]),2===(7&t)){let t=e.uint32()+e.pos;for(;e.pos<t;)r.value.push(e.double())}else r.value.push(e.double());break;case 11:r.setValue=e.bool();break;case 13:r.options&&r.options.length||(r.options=[]),r.options.push(e.string());break;case 14:r.help=e.string();break;case 15:r.disabled=e.bool();break;case 16:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!a.isString(e.format))return"format: string expected";if(null!=e.dataType&&e.hasOwnProperty("dataType"))switch(e.dataType){default:return"dataType: enum value expected";case 0:case 1:case 2:case 3:case 4:}if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(let t=0;t<e.default.length;++t)if("number"!==typeof e.default[t])return"default: number[] expected"}if(null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min)return"min: number expected";if(null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max)return"max: number expected";if(null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step)return"step: number expected";if(null!=e.value&&e.hasOwnProperty("value")){if(!Array.isArray(e.value))return"value: array expected";for(let t=0;t<e.value.length;++t)if("number"!==typeof e.value[t])return"value: number[] expected"}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(let t=0;t<e.options.length;++t)if(!a.isString(e.options[t]))return"options: string[] expected"}if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.Slider)return e;let t=new l.Slider;switch(null!=e.id&&(t.id=String(e.id)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.label&&(t.label=String(e.label)),null!=e.format&&(t.format=String(e.format)),e.dataType){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}if(e.default){if(!Array.isArray(e.default))throw TypeError(".Slider.default: array expected");t.default=[];for(let n=0;n<e.default.length;++n)t.default[n]=Number(e.default[n])}if(null!=e.min&&(t.min=Number(e.min)),null!=e.max&&(t.max=Number(e.max)),null!=e.step&&(t.step=Number(e.step)),e.value){if(!Array.isArray(e.value))throw TypeError(".Slider.value: array expected");t.value=[];for(let n=0;n<e.value.length;++n)t.value[n]=Number(e.value[n])}if(null!=e.setValue&&(t.setValue=Boolean(e.setValue)),e.options){if(!Array.isArray(e.options))throw TypeError(".Slider.options: array expected");t.options=[];for(let n=0;n<e.options.length;++n)t.options[n]=String(e.options[n])}if(null!=e.help&&(t.help=String(e.help)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".Slider.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.default=[],n.value=[],n.options=[]),t.defaults&&(n.id="",n.formId="",n.label="",n.format="",n.dataType=t.enums===String?"INT":0,n.min=0,n.max=0,n.step=0,n.setValue=!1,n.help="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.format&&e.hasOwnProperty("format")&&(n.format=e.format),null!=e.dataType&&e.hasOwnProperty("dataType")&&(n.dataType=t.enums===String?l.Slider.DataType[e.dataType]:e.dataType),e.default&&e.default.length){n.default=[];for(let r=0;r<e.default.length;++r)n.default[r]=t.json&&!isFinite(e.default[r])?String(e.default[r]):e.default[r]}if(null!=e.min&&e.hasOwnProperty("min")&&(n.min=t.json&&!isFinite(e.min)?String(e.min):e.min),null!=e.max&&e.hasOwnProperty("max")&&(n.max=t.json&&!isFinite(e.max)?String(e.max):e.max),null!=e.step&&e.hasOwnProperty("step")&&(n.step=t.json&&!isFinite(e.step)?String(e.step):e.step),e.value&&e.value.length){n.value=[];for(let r=0;r<e.value.length;++r)n.value[r]=t.json&&!isFinite(e.value[r])?String(e.value[r]):e.value[r]}if(null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),e.options&&e.options.length){n.options=[];for(let t=0;t<e.options.length;++t)n.options[t]=e.options[t]}return null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){const e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t[e[2]="DATETIME"]=2,t[e[3]="DATE"]=3,t[e[4]="TIME"]=4,t}(),e})()),T=(l.Snow=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.show=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.show&&Object.hasOwnProperty.call(e,"show")&&t.uint32(8).bool(e.show),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Snow;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.show=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.show&&e.hasOwnProperty("show")&&"boolean"!==typeof e.show?"show: boolean expected":null},e.fromObject=function(e){if(e instanceof l.Snow)return e;let t=new l.Snow;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.show=!1),null!=e.show&&e.hasOwnProperty("show")&&(n.show=e.show),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Spinner=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.text="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.text&&Object.hasOwnProperty.call(e,"text")&&t.uint32(10).string(e.text),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Spinner;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.text=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.text&&e.hasOwnProperty("text")&&!a.isString(e.text)?"text: string expected":null},e.fromObject=function(e){if(e instanceof l.Spinner)return e;let t=new l.Spinner;return null!=e.text&&(t.text=String(e.text)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.text=""),null!=e.text&&e.hasOwnProperty("text")&&(n.text=e.text),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Text=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Text;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.body=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.body&&e.hasOwnProperty("body")&&!a.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Text)return e;let t=new l.Text;return null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.body=""),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TextArea=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.height=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.placeholder&&Object.hasOwnProperty.call(e,"placeholder")&&t.uint32(82).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(88).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(98).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TextArea;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.height=e.uint32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.placeholder=e.string();break;case 11:r.disabled=e.bool();break;case 12:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.height&&e.hasOwnProperty("height")&&!a.isInteger(e.height))return"height: integer expected";if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!a.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!a.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextArea)return e;let t=new l.TextArea;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.height&&(t.height=e.height>>>0),null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextArea.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.height=0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.height&&e.hasOwnProperty("height")&&(n.height=e.height),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.TextInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.type=0,e.prototype.maxChars=0,e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.autocomplete="",e.prototype.placeholder="",e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(32).int32(e.type),null!=e.maxChars&&Object.hasOwnProperty.call(e,"maxChars")&&t.uint32(40).uint32(e.maxChars),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(50).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(58).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(66).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(72).bool(e.setValue),null!=e.autocomplete&&Object.hasOwnProperty.call(e,"autocomplete")&&t.uint32(82).string(e.autocomplete),null!=e.placeholder&&Object.hasOwnProperty.call(e,"placeholder")&&t.uint32(90).string(e.placeholder),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(96).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TextInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.type=e.int32();break;case 5:r.maxChars=e.uint32();break;case 6:r.help=e.string();break;case 7:r.formId=e.string();break;case 8:r.value=e.string();break;case 9:r.setValue=e.bool();break;case 10:r.autocomplete=e.string();break;case 11:r.placeholder=e.string();break;case 12:r.disabled=e.bool();break;case 13:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:}if(null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!a.isInteger(e.maxChars))return"maxChars: integer expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&!a.isString(e.autocomplete))return"autocomplete: string expected";if(null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!a.isString(e.placeholder))return"placeholder: string expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TextInput)return e;let t=new l.TextInput;switch(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),e.type){case"DEFAULT":case 0:t.type=0;break;case"PASSWORD":case 1:t.type=1}if(null!=e.maxChars&&(t.maxChars=e.maxChars>>>0),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.autocomplete&&(t.autocomplete=String(e.autocomplete)),null!=e.placeholder&&(t.placeholder=String(e.placeholder)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TextInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.type=t.enums===String?"DEFAULT":0,n.maxChars=0,n.help="",n.formId="",n.value="",n.setValue=!1,n.autocomplete="",n.placeholder="",n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.TextInput.Type[e.type]:e.type),null!=e.maxChars&&e.hasOwnProperty("maxChars")&&(n.maxChars=e.maxChars),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&(n.autocomplete=e.autocomplete),null!=e.placeholder&&e.hasOwnProperty("placeholder")&&(n.placeholder=e.placeholder),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t}(),e})()),E=(l.TimeInput=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.label="",e.prototype.default="",e.prototype.help="",e.prototype.formId="",e.prototype.value="",e.prototype.setValue=!1,e.prototype.disabled=!1,e.prototype.labelVisibility=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(18).string(e.label),null!=e.default&&Object.hasOwnProperty.call(e,"default")&&t.uint32(26).string(e.default),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.formId&&Object.hasOwnProperty.call(e,"formId")&&t.uint32(42).string(e.formId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(50).string(e.value),null!=e.setValue&&Object.hasOwnProperty.call(e,"setValue")&&t.uint32(56).bool(e.setValue),null!=e.disabled&&Object.hasOwnProperty.call(e,"disabled")&&t.uint32(64).bool(e.disabled),null!=e.labelVisibility&&Object.hasOwnProperty.call(e,"labelVisibility")&&l.LabelVisibilityMessage.encode(e.labelVisibility,t.uint32(74).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.TimeInput;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.label=e.string();break;case 3:r.default=e.string();break;case 4:r.help=e.string();break;case 5:r.formId=e.string();break;case 6:r.value=e.string();break;case 7:r.setValue=e.bool();break;case 8:r.disabled=e.bool();break;case 9:r.labelVisibility=l.LabelVisibilityMessage.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!a.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!a.isString(e.default))return"default: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!a.isString(e.formId))return"formId: string expected";if(null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value))return"value: string expected";if(null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue)return"setValue: boolean expected";if(null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled)return"disabled: boolean expected";if(null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")){let t=l.LabelVisibilityMessage.verify(e.labelVisibility);if(t)return"labelVisibility."+t}return null},e.fromObject=function(e){if(e instanceof l.TimeInput)return e;let t=new l.TimeInput;if(null!=e.id&&(t.id=String(e.id)),null!=e.label&&(t.label=String(e.label)),null!=e.default&&(t.default=String(e.default)),null!=e.help&&(t.help=String(e.help)),null!=e.formId&&(t.formId=String(e.formId)),null!=e.value&&(t.value=String(e.value)),null!=e.setValue&&(t.setValue=Boolean(e.setValue)),null!=e.disabled&&(t.disabled=Boolean(e.disabled)),null!=e.labelVisibility){if("object"!==typeof e.labelVisibility)throw TypeError(".TimeInput.labelVisibility: object expected");t.labelVisibility=l.LabelVisibilityMessage.fromObject(e.labelVisibility)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",n.setValue=!1,n.disabled=!1,n.labelVisibility=null),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.label&&e.hasOwnProperty("label")&&(n.label=e.label),null!=e.default&&e.hasOwnProperty("default")&&(n.default=e.default),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),null!=e.formId&&e.hasOwnProperty("formId")&&(n.formId=e.formId),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),null!=e.setValue&&e.hasOwnProperty("setValue")&&(n.setValue=e.setValue),null!=e.disabled&&e.hasOwnProperty("disabled")&&(n.disabled=e.disabled),null!=e.labelVisibility&&e.hasOwnProperty("labelVisibility")&&(n.labelVisibility=l.LabelVisibilityMessage.toObject(e.labelVisibility,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.VegaLiteChart=(()=>{function e(e){if(this.datasets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.spec="",e.prototype.data=null,e.prototype.datasets=a.emptyArray,e.prototype.useContainerWidth=!1,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.spec&&Object.hasOwnProperty.call(e,"spec")&&t.uint32(10).string(e.spec),null!=e.data&&Object.hasOwnProperty.call(e,"data")&&l.DataFrame.encode(e.data,t.uint32(18).fork()).ldelim(),null!=e.datasets&&e.datasets.length)for(let n=0;n<e.datasets.length;++n)l.NamedDataSet.encode(e.datasets[n],t.uint32(34).fork()).ldelim();return null!=e.useContainerWidth&&Object.hasOwnProperty.call(e,"useContainerWidth")&&t.uint32(40).bool(e.useContainerWidth),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.VegaLiteChart;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.spec=e.string();break;case 2:r.data=l.DataFrame.decode(e,e.uint32());break;case 4:r.datasets&&r.datasets.length||(r.datasets=[]),r.datasets.push(l.NamedDataSet.decode(e,e.uint32()));break;case 5:r.useContainerWidth=e.bool();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.spec&&e.hasOwnProperty("spec")&&!a.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){let t=l.DataFrame.verify(e.data);if(t)return"data."+t}if(null!=e.datasets&&e.hasOwnProperty("datasets")){if(!Array.isArray(e.datasets))return"datasets: array expected";for(let t=0;t<e.datasets.length;++t){let n=l.NamedDataSet.verify(e.datasets[t]);if(n)return"datasets."+n}}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&"boolean"!==typeof e.useContainerWidth?"useContainerWidth: boolean expected":null},e.fromObject=function(e){if(e instanceof l.VegaLiteChart)return e;let t=new l.VegaLiteChart;if(null!=e.spec&&(t.spec=String(e.spec)),null!=e.data){if("object"!==typeof e.data)throw TypeError(".VegaLiteChart.data: object expected");t.data=l.DataFrame.fromObject(e.data)}if(e.datasets){if(!Array.isArray(e.datasets))throw TypeError(".VegaLiteChart.datasets: array expected");t.datasets=[];for(let n=0;n<e.datasets.length;++n){if("object"!==typeof e.datasets[n])throw TypeError(".VegaLiteChart.datasets: object expected");t.datasets[n]=l.NamedDataSet.fromObject(e.datasets[n])}}return null!=e.useContainerWidth&&(t.useContainerWidth=Boolean(e.useContainerWidth)),t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.datasets=[]),t.defaults&&(n.spec="",n.data=null,n.useContainerWidth=!1),null!=e.spec&&e.hasOwnProperty("spec")&&(n.spec=e.spec),null!=e.data&&e.hasOwnProperty("data")&&(n.data=l.DataFrame.toObject(e.data,t)),e.datasets&&e.datasets.length){n.datasets=[];for(let r=0;r<e.datasets.length;++r)n.datasets[r]=l.NamedDataSet.toObject(e.datasets[r],t)}return null!=e.useContainerWidth&&e.hasOwnProperty("useContainerWidth")&&(n.useContainerWidth=e.useContainerWidth),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),l.Video=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.startTime=0,e.prototype.type=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(24).int32(e.startTime),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(50).string(e.url),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.Video;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 6:r.url=e.string();break;case 3:r.startTime=e.int32();break;case 5:r.type=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.url&&e.hasOwnProperty("url")&&!a.isString(e.url))return"url: string expected";if(null!=e.startTime&&e.hasOwnProperty("startTime")&&!a.isInteger(e.startTime))return"startTime: integer expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:}return null},e.fromObject=function(e){if(e instanceof l.Video)return e;let t=new l.Video;switch(null!=e.url&&(t.url=String(e.url)),null!=e.startTime&&(t.startTime=0|e.startTime),e.type){case"UNUSED":case 0:t.type=0;break;case"NATIVE":case 1:t.type=1;break;case"YOUTUBE_IFRAME":case 2:t.type=2}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.startTime=0,n.type=t.enums===String?"UNUSED":0,n.url=""),null!=e.startTime&&e.hasOwnProperty("startTime")&&(n.startTime=e.startTime),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.Video.Type[e.type]:e.type),null!=e.url&&e.hasOwnProperty("url")&&(n.url=e.url),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.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}(),e})()),A=l.WidgetStates=(()=>{function e(e){if(this.widgets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.widgets=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.widgets&&e.widgets.length)for(let n=0;n<e.widgets.length;++n)l.WidgetState.encode(e.widgets[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.WidgetStates;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.widgets&&r.widgets.length||(r.widgets=[]),r.widgets.push(l.WidgetState.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.widgets&&e.hasOwnProperty("widgets")){if(!Array.isArray(e.widgets))return"widgets: array expected";for(let t=0;t<e.widgets.length;++t){let n=l.WidgetState.verify(e.widgets[t]);if(n)return"widgets."+n}}return null},e.fromObject=function(e){if(e instanceof l.WidgetStates)return e;let t=new l.WidgetStates;if(e.widgets){if(!Array.isArray(e.widgets))throw TypeError(".WidgetStates.widgets: array expected");t.widgets=[];for(let n=0;n<e.widgets.length;++n){if("object"!==typeof e.widgets[n])throw TypeError(".WidgetStates.widgets: object expected");t.widgets[n]=l.WidgetState.fromObject(e.widgets[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.widgets=[]),e.widgets&&e.widgets.length){n.widgets=[];for(let r=0;r<e.widgets.length;++r)n.widgets[r]=l.WidgetState.toObject(e.widgets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})(),D=l.WidgetState=(()=>{function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.id="",e.prototype.triggerValue=null,e.prototype.boolValue=null,e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.stringValue=null,e.prototype.doubleArrayValue=null,e.prototype.intArrayValue=null,e.prototype.stringArrayValue=null,e.prototype.jsonValue=null,e.prototype.arrowValue=null,e.prototype.bytesValue=null,e.prototype.fileUploaderStateValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["triggerValue","boolValue","doubleValue","intValue","stringValue","doubleArrayValue","intArrayValue","stringArrayValue","jsonValue","arrowValue","bytesValue","fileUploaderStateValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.triggerValue&&Object.hasOwnProperty.call(e,"triggerValue")&&t.uint32(16).bool(e.triggerValue),null!=e.boolValue&&Object.hasOwnProperty.call(e,"boolValue")&&t.uint32(24).bool(e.boolValue),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(33).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(40).sint64(e.intValue),null!=e.stringValue&&Object.hasOwnProperty.call(e,"stringValue")&&t.uint32(50).string(e.stringValue),null!=e.doubleArrayValue&&Object.hasOwnProperty.call(e,"doubleArrayValue")&&l.DoubleArray.encode(e.doubleArrayValue,t.uint32(58).fork()).ldelim(),null!=e.intArrayValue&&Object.hasOwnProperty.call(e,"intArrayValue")&&l.SInt64Array.encode(e.intArrayValue,t.uint32(66).fork()).ldelim(),null!=e.stringArrayValue&&Object.hasOwnProperty.call(e,"stringArrayValue")&&l.StringArray.encode(e.stringArrayValue,t.uint32(74).fork()).ldelim(),null!=e.jsonValue&&Object.hasOwnProperty.call(e,"jsonValue")&&t.uint32(82).string(e.jsonValue),null!=e.arrowValue&&Object.hasOwnProperty.call(e,"arrowValue")&&l.ArrowTable.encode(e.arrowValue,t.uint32(90).fork()).ldelim(),null!=e.bytesValue&&Object.hasOwnProperty.call(e,"bytesValue")&&t.uint32(98).bytes(e.bytesValue),null!=e.fileUploaderStateValue&&Object.hasOwnProperty.call(e,"fileUploaderStateValue")&&l.FileUploaderState.encode(e.fileUploaderStateValue,t.uint32(106).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.WidgetState;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.id=e.string();break;case 2:r.triggerValue=e.bool();break;case 3:r.boolValue=e.bool();break;case 4:r.doubleValue=e.double();break;case 5:r.intValue=e.sint64();break;case 6:r.stringValue=e.string();break;case 7:r.doubleArrayValue=l.DoubleArray.decode(e,e.uint32());break;case 8:r.intArrayValue=l.SInt64Array.decode(e,e.uint32());break;case 9:r.stringArrayValue=l.StringArray.decode(e,e.uint32());break;case 10:r.jsonValue=e.string();break;case 11:r.arrowValue=l.ArrowTable.decode(e,e.uint32());break;case 12:r.bytesValue=e.bytes();break;case 13:r.fileUploaderStateValue=l.FileUploaderState.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.id&&e.hasOwnProperty("id")&&!a.isString(e.id))return"id: string expected";if(null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(t.value=1,"boolean"!==typeof e.triggerValue))return"triggerValue: boolean expected";if(null!=e.boolValue&&e.hasOwnProperty("boolValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"boolean"!==typeof e.boolValue)return"boolValue: boolean expected"}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")){if(1===t.value)return"value: multiple values";if(t.value=1,"number"!==typeof e.doubleValue)return"doubleValue: number expected"}if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.stringValue&&e.hasOwnProperty("stringValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isString(e.stringValue))return"stringValue: string expected"}if(null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.DoubleArray.verify(e.doubleArrayValue);if(t)return"doubleArrayValue."+t}}if(null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.SInt64Array.verify(e.intArrayValue);if(t)return"intArrayValue."+t}}if(null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.StringArray.verify(e.stringArrayValue);if(t)return"stringArrayValue."+t}}if(null!=e.jsonValue&&e.hasOwnProperty("jsonValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isString(e.jsonValue))return"jsonValue: string expected"}if(null!=e.arrowValue&&e.hasOwnProperty("arrowValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.ArrowTable.verify(e.arrowValue);if(t)return"arrowValue."+t}}if(null!=e.bytesValue&&e.hasOwnProperty("bytesValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!(e.bytesValue&&"number"===typeof e.bytesValue.length||a.isString(e.bytesValue)))return"bytesValue: buffer expected"}if(null!=e.fileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.FileUploaderState.verify(e.fileUploaderStateValue);if(t)return"fileUploaderStateValue."+t}}return null},e.fromObject=function(e){if(e instanceof l.WidgetState)return e;let t=new l.WidgetState;if(null!=e.id&&(t.id=String(e.id)),null!=e.triggerValue&&(t.triggerValue=Boolean(e.triggerValue)),null!=e.boolValue&&(t.boolValue=Boolean(e.boolValue)),null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.stringValue&&(t.stringValue=String(e.stringValue)),null!=e.doubleArrayValue){if("object"!==typeof e.doubleArrayValue)throw TypeError(".WidgetState.doubleArrayValue: object expected");t.doubleArrayValue=l.DoubleArray.fromObject(e.doubleArrayValue)}if(null!=e.intArrayValue){if("object"!==typeof e.intArrayValue)throw TypeError(".WidgetState.intArrayValue: object expected");t.intArrayValue=l.SInt64Array.fromObject(e.intArrayValue)}if(null!=e.stringArrayValue){if("object"!==typeof e.stringArrayValue)throw TypeError(".WidgetState.stringArrayValue: object expected");t.stringArrayValue=l.StringArray.fromObject(e.stringArrayValue)}if(null!=e.jsonValue&&(t.jsonValue=String(e.jsonValue)),null!=e.arrowValue){if("object"!==typeof e.arrowValue)throw TypeError(".WidgetState.arrowValue: object expected");t.arrowValue=l.ArrowTable.fromObject(e.arrowValue)}if(null!=e.bytesValue&&("string"===typeof e.bytesValue?a.base64.decode(e.bytesValue,t.bytesValue=a.newBuffer(a.base64.length(e.bytesValue)),0):e.bytesValue.length&&(t.bytesValue=e.bytesValue)),null!=e.fileUploaderStateValue){if("object"!==typeof e.fileUploaderStateValue)throw TypeError(".WidgetState.fileUploaderStateValue: object expected");t.fileUploaderStateValue=l.FileUploaderState.fromObject(e.fileUploaderStateValue)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.id=""),null!=e.id&&e.hasOwnProperty("id")&&(n.id=e.id),null!=e.triggerValue&&e.hasOwnProperty("triggerValue")&&(n.triggerValue=e.triggerValue,t.oneofs&&(n.value="triggerValue")),null!=e.boolValue&&e.hasOwnProperty("boolValue")&&(n.boolValue=e.boolValue,t.oneofs&&(n.value="boolValue")),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(n.stringValue=e.stringValue,t.oneofs&&(n.value="stringValue")),null!=e.doubleArrayValue&&e.hasOwnProperty("doubleArrayValue")&&(n.doubleArrayValue=l.DoubleArray.toObject(e.doubleArrayValue,t),t.oneofs&&(n.value="doubleArrayValue")),null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")&&(n.intArrayValue=l.SInt64Array.toObject(e.intArrayValue,t),t.oneofs&&(n.value="intArrayValue")),null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")&&(n.stringArrayValue=l.StringArray.toObject(e.stringArrayValue,t),t.oneofs&&(n.value="stringArrayValue")),null!=e.jsonValue&&e.hasOwnProperty("jsonValue")&&(n.jsonValue=e.jsonValue,t.oneofs&&(n.value="jsonValue")),null!=e.arrowValue&&e.hasOwnProperty("arrowValue")&&(n.arrowValue=l.ArrowTable.toObject(e.arrowValue,t),t.oneofs&&(n.value="arrowValue")),null!=e.bytesValue&&e.hasOwnProperty("bytesValue")&&(n.bytesValue=t.bytes===String?a.base64.encode(e.bytesValue,0,e.bytesValue.length):t.bytes===Array?Array.prototype.slice.call(e.bytesValue):e.bytesValue,t.oneofs&&(n.value="bytesValue")),null!=e.fileUploaderStateValue&&e.hasOwnProperty("fileUploaderStateValue")&&(n.fileUploaderStateValue=l.FileUploaderState.toObject(e.fileUploaderStateValue,t),t.oneofs&&(n.value="fileUploaderStateValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e})();l.openmetrics=(()=>{const e={};return e.MetricSet=function(){function e(e){if(this.metricFamilies=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.metricFamilies=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.metricFamilies&&e.metricFamilies.length)for(let n=0;n<e.metricFamilies.length;++n)l.openmetrics.MetricFamily.encode(e.metricFamilies[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricSet;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.metricFamilies&&r.metricFamilies.length||(r.metricFamilies=[]),r.metricFamilies.push(l.openmetrics.MetricFamily.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.metricFamilies&&e.hasOwnProperty("metricFamilies")){if(!Array.isArray(e.metricFamilies))return"metricFamilies: array expected";for(let t=0;t<e.metricFamilies.length;++t){let n=l.openmetrics.MetricFamily.verify(e.metricFamilies[t]);if(n)return"metricFamilies."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricSet)return e;let t=new l.openmetrics.MetricSet;if(e.metricFamilies){if(!Array.isArray(e.metricFamilies))throw TypeError(".openmetrics.MetricSet.metricFamilies: array expected");t.metricFamilies=[];for(let n=0;n<e.metricFamilies.length;++n){if("object"!==typeof e.metricFamilies[n])throw TypeError(".openmetrics.MetricSet.metricFamilies: object expected");t.metricFamilies[n]=l.openmetrics.MetricFamily.fromObject(e.metricFamilies[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.metricFamilies=[]),e.metricFamilies&&e.metricFamilies.length){n.metricFamilies=[];for(let r=0;r<e.metricFamilies.length;++r)n.metricFamilies[r]=l.openmetrics.MetricFamily.toObject(e.metricFamilies[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricFamily=function(){function e(e){if(this.metrics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.type=0,e.prototype.unit="",e.prototype.help="",e.prototype.metrics=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.unit&&Object.hasOwnProperty.call(e,"unit")&&t.uint32(26).string(e.unit),null!=e.help&&Object.hasOwnProperty.call(e,"help")&&t.uint32(34).string(e.help),null!=e.metrics&&e.metrics.length)for(let n=0;n<e.metrics.length;++n)l.openmetrics.Metric.encode(e.metrics[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricFamily;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.type=e.int32();break;case 3:r.unit=e.string();break;case 4:r.help=e.string();break;case 5:r.metrics&&r.metrics.length||(r.metrics=[]),r.metrics.push(l.openmetrics.Metric.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name))return"name: string expected";if(null!=e.type&&e.hasOwnProperty("type"))switch(e.type){default:return"type: enum value expected";case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:}if(null!=e.unit&&e.hasOwnProperty("unit")&&!a.isString(e.unit))return"unit: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!a.isString(e.help))return"help: string expected";if(null!=e.metrics&&e.hasOwnProperty("metrics")){if(!Array.isArray(e.metrics))return"metrics: array expected";for(let t=0;t<e.metrics.length;++t){let n=l.openmetrics.Metric.verify(e.metrics[t]);if(n)return"metrics."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricFamily)return e;let t=new l.openmetrics.MetricFamily;switch(null!=e.name&&(t.name=String(e.name)),e.type){case"UNKNOWN":case 0:t.type=0;break;case"GAUGE":case 1:t.type=1;break;case"COUNTER":case 2:t.type=2;break;case"STATE_SET":case 3:t.type=3;break;case"INFO":case 4:t.type=4;break;case"HISTOGRAM":case 5:t.type=5;break;case"GAUGE_HISTOGRAM":case 6:t.type=6;break;case"SUMMARY":case 7:t.type=7}if(null!=e.unit&&(t.unit=String(e.unit)),null!=e.help&&(t.help=String(e.help)),e.metrics){if(!Array.isArray(e.metrics))throw TypeError(".openmetrics.MetricFamily.metrics: array expected");t.metrics=[];for(let n=0;n<e.metrics.length;++n){if("object"!==typeof e.metrics[n])throw TypeError(".openmetrics.MetricFamily.metrics: object expected");t.metrics[n]=l.openmetrics.Metric.fromObject(e.metrics[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.metrics=[]),t.defaults&&(n.name="",n.type=t.enums===String?"UNKNOWN":0,n.unit="",n.help=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.type&&e.hasOwnProperty("type")&&(n.type=t.enums===String?l.openmetrics.MetricType[e.type]:e.type),null!=e.unit&&e.hasOwnProperty("unit")&&(n.unit=e.unit),null!=e.help&&e.hasOwnProperty("help")&&(n.help=e.help),e.metrics&&e.metrics.length){n.metrics=[];for(let r=0;r<e.metrics.length;++r)n.metrics[r]=l.openmetrics.Metric.toObject(e.metrics[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricType=function(){const e={},t=Object.create(e);return t[e[0]="UNKNOWN"]=0,t[e[1]="GAUGE"]=1,t[e[2]="COUNTER"]=2,t[e[3]="STATE_SET"]=3,t[e[4]="INFO"]=4,t[e[5]="HISTOGRAM"]=5,t[e[6]="GAUGE_HISTOGRAM"]=6,t[e[7]="SUMMARY"]=7,t}(),e.Metric=function(){function e(e){if(this.labels=[],this.metricPoints=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.labels=a.emptyArray,e.prototype.metricPoints=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.labels&&e.labels.length)for(let n=0;n<e.labels.length;++n)l.openmetrics.Label.encode(e.labels[n],t.uint32(10).fork()).ldelim();if(null!=e.metricPoints&&e.metricPoints.length)for(let n=0;n<e.metricPoints.length;++n)l.openmetrics.MetricPoint.encode(e.metricPoints[n],t.uint32(18).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Metric;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.labels&&r.labels.length||(r.labels=[]),r.labels.push(l.openmetrics.Label.decode(e,e.uint32()));break;case 2:r.metricPoints&&r.metricPoints.length||(r.metricPoints=[]),r.metricPoints.push(l.openmetrics.MetricPoint.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.labels&&e.hasOwnProperty("labels")){if(!Array.isArray(e.labels))return"labels: array expected";for(let t=0;t<e.labels.length;++t){let n=l.openmetrics.Label.verify(e.labels[t]);if(n)return"labels."+n}}if(null!=e.metricPoints&&e.hasOwnProperty("metricPoints")){if(!Array.isArray(e.metricPoints))return"metricPoints: array expected";for(let t=0;t<e.metricPoints.length;++t){let n=l.openmetrics.MetricPoint.verify(e.metricPoints[t]);if(n)return"metricPoints."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Metric)return e;let t=new l.openmetrics.Metric;if(e.labels){if(!Array.isArray(e.labels))throw TypeError(".openmetrics.Metric.labels: array expected");t.labels=[];for(let n=0;n<e.labels.length;++n){if("object"!==typeof e.labels[n])throw TypeError(".openmetrics.Metric.labels: object expected");t.labels[n]=l.openmetrics.Label.fromObject(e.labels[n])}}if(e.metricPoints){if(!Array.isArray(e.metricPoints))throw TypeError(".openmetrics.Metric.metricPoints: array expected");t.metricPoints=[];for(let n=0;n<e.metricPoints.length;++n){if("object"!==typeof e.metricPoints[n])throw TypeError(".openmetrics.Metric.metricPoints: object expected");t.metricPoints[n]=l.openmetrics.MetricPoint.fromObject(e.metricPoints[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.labels=[],n.metricPoints=[]),e.labels&&e.labels.length){n.labels=[];for(let r=0;r<e.labels.length;++r)n.labels[r]=l.openmetrics.Label.toObject(e.labels[r],t)}if(e.metricPoints&&e.metricPoints.length){n.metricPoints=[];for(let r=0;r<e.metricPoints.length;++r)n.metricPoints[r]=l.openmetrics.MetricPoint.toObject(e.metricPoints[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Label=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.name="",e.prototype.value="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(10).string(e.name),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Label;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.name=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null!=e.value&&e.hasOwnProperty("value")&&!a.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.Label)return e;let t=new l.openmetrics.Label;return null!=e.name&&(t.name=String(e.name)),null!=e.value&&(t.value=String(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.name="",n.value=""),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),null!=e.value&&e.hasOwnProperty("value")&&(n.value=e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.MetricPoint=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.unknownValue=null,e.prototype.gaugeValue=null,e.prototype.counterValue=null,e.prototype.histogramValue=null,e.prototype.stateSetValue=null,e.prototype.infoValue=null,e.prototype.summaryValue=null,e.prototype.timestamp=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["unknownValue","gaugeValue","counterValue","histogramValue","stateSetValue","infoValue","summaryValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.unknownValue&&Object.hasOwnProperty.call(e,"unknownValue")&&l.openmetrics.UnknownValue.encode(e.unknownValue,t.uint32(10).fork()).ldelim(),null!=e.gaugeValue&&Object.hasOwnProperty.call(e,"gaugeValue")&&l.openmetrics.GaugeValue.encode(e.gaugeValue,t.uint32(18).fork()).ldelim(),null!=e.counterValue&&Object.hasOwnProperty.call(e,"counterValue")&&l.openmetrics.CounterValue.encode(e.counterValue,t.uint32(26).fork()).ldelim(),null!=e.histogramValue&&Object.hasOwnProperty.call(e,"histogramValue")&&l.openmetrics.HistogramValue.encode(e.histogramValue,t.uint32(34).fork()).ldelim(),null!=e.stateSetValue&&Object.hasOwnProperty.call(e,"stateSetValue")&&l.openmetrics.StateSetValue.encode(e.stateSetValue,t.uint32(42).fork()).ldelim(),null!=e.infoValue&&Object.hasOwnProperty.call(e,"infoValue")&&l.openmetrics.InfoValue.encode(e.infoValue,t.uint32(50).fork()).ldelim(),null!=e.summaryValue&&Object.hasOwnProperty.call(e,"summaryValue")&&l.openmetrics.SummaryValue.encode(e.summaryValue,t.uint32(58).fork()).ldelim(),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(66).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.MetricPoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.unknownValue=l.openmetrics.UnknownValue.decode(e,e.uint32());break;case 2:r.gaugeValue=l.openmetrics.GaugeValue.decode(e,e.uint32());break;case 3:r.counterValue=l.openmetrics.CounterValue.decode(e,e.uint32());break;case 4:r.histogramValue=l.openmetrics.HistogramValue.decode(e,e.uint32());break;case 5:r.stateSetValue=l.openmetrics.StateSetValue.decode(e,e.uint32());break;case 6:r.infoValue=l.openmetrics.InfoValue.decode(e,e.uint32());break;case 7:r.summaryValue=l.openmetrics.SummaryValue.decode(e,e.uint32());break;case 8:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.unknownValue&&e.hasOwnProperty("unknownValue")){t.value=1;{let t=l.openmetrics.UnknownValue.verify(e.unknownValue);if(t)return"unknownValue."+t}}if(null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.GaugeValue.verify(e.gaugeValue);if(t)return"gaugeValue."+t}}if(null!=e.counterValue&&e.hasOwnProperty("counterValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.CounterValue.verify(e.counterValue);if(t)return"counterValue."+t}}if(null!=e.histogramValue&&e.hasOwnProperty("histogramValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.HistogramValue.verify(e.histogramValue);if(t)return"histogramValue."+t}}if(null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.StateSetValue.verify(e.stateSetValue);if(t)return"stateSetValue."+t}}if(null!=e.infoValue&&e.hasOwnProperty("infoValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.InfoValue.verify(e.infoValue);if(t)return"infoValue."+t}}if(null!=e.summaryValue&&e.hasOwnProperty("summaryValue")){if(1===t.value)return"value: multiple values";t.value=1;{let t=l.openmetrics.SummaryValue.verify(e.summaryValue);if(t)return"summaryValue."+t}}if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){let t=l.google.protobuf.Timestamp.verify(e.timestamp);if(t)return"timestamp."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricPoint)return e;let t=new l.openmetrics.MetricPoint;if(null!=e.unknownValue){if("object"!==typeof e.unknownValue)throw TypeError(".openmetrics.MetricPoint.unknownValue: object expected");t.unknownValue=l.openmetrics.UnknownValue.fromObject(e.unknownValue)}if(null!=e.gaugeValue){if("object"!==typeof e.gaugeValue)throw TypeError(".openmetrics.MetricPoint.gaugeValue: object expected");t.gaugeValue=l.openmetrics.GaugeValue.fromObject(e.gaugeValue)}if(null!=e.counterValue){if("object"!==typeof e.counterValue)throw TypeError(".openmetrics.MetricPoint.counterValue: object expected");t.counterValue=l.openmetrics.CounterValue.fromObject(e.counterValue)}if(null!=e.histogramValue){if("object"!==typeof e.histogramValue)throw TypeError(".openmetrics.MetricPoint.histogramValue: object expected");t.histogramValue=l.openmetrics.HistogramValue.fromObject(e.histogramValue)}if(null!=e.stateSetValue){if("object"!==typeof e.stateSetValue)throw TypeError(".openmetrics.MetricPoint.stateSetValue: object expected");t.stateSetValue=l.openmetrics.StateSetValue.fromObject(e.stateSetValue)}if(null!=e.infoValue){if("object"!==typeof e.infoValue)throw TypeError(".openmetrics.MetricPoint.infoValue: object expected");t.infoValue=l.openmetrics.InfoValue.fromObject(e.infoValue)}if(null!=e.summaryValue){if("object"!==typeof e.summaryValue)throw TypeError(".openmetrics.MetricPoint.summaryValue: object expected");t.summaryValue=l.openmetrics.SummaryValue.fromObject(e.summaryValue)}if(null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.MetricPoint.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.timestamp=null),null!=e.unknownValue&&e.hasOwnProperty("unknownValue")&&(n.unknownValue=l.openmetrics.UnknownValue.toObject(e.unknownValue,t),t.oneofs&&(n.value="unknownValue")),null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")&&(n.gaugeValue=l.openmetrics.GaugeValue.toObject(e.gaugeValue,t),t.oneofs&&(n.value="gaugeValue")),null!=e.counterValue&&e.hasOwnProperty("counterValue")&&(n.counterValue=l.openmetrics.CounterValue.toObject(e.counterValue,t),t.oneofs&&(n.value="counterValue")),null!=e.histogramValue&&e.hasOwnProperty("histogramValue")&&(n.histogramValue=l.openmetrics.HistogramValue.toObject(e.histogramValue,t),t.oneofs&&(n.value="histogramValue")),null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")&&(n.stateSetValue=l.openmetrics.StateSetValue.toObject(e.stateSetValue,t),t.oneofs&&(n.value="stateSetValue")),null!=e.infoValue&&e.hasOwnProperty("infoValue")&&(n.infoValue=l.openmetrics.InfoValue.toObject(e.infoValue,t),t.oneofs&&(n.value="infoValue")),null!=e.summaryValue&&e.hasOwnProperty("summaryValue")&&(n.summaryValue=l.openmetrics.SummaryValue.toObject(e.summaryValue,t),t.oneofs&&(n.value="summaryValue")),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.UnknownValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.UnknownValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.UnknownValue)return e;let t=new l.openmetrics.UnknownValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.GaugeValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,Object.defineProperty(e.prototype,"value",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.GaugeValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.value=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.GaugeValue)return e;let t=new l.openmetrics.GaugeValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});let n={};return null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.value="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.value="intValue")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.CounterValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.created=null,e.prototype.exemplar=null,Object.defineProperty(e.prototype,"total",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).uint64(e.intValue),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(26).fork()).ldelim(),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(34).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.CounterValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.uint64();break;case 3:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.total=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.total)return"total: multiple values";if(t.total=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){let t=l.openmetrics.Exemplar.verify(e.exemplar);if(t)return"exemplar."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.CounterValue)return e;let t=new l.openmetrics.CounterValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!0:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.CounterValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.CounterValue.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.created=null,n.exemplar=null),null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.total="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber(!0):e.intValue,t.oneofs&&(n.total="intValue")),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.HistogramValue=function(){function e(e){if(this.buckets=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.buckets=a.emptyArray,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.buckets&&e.buckets.length)for(let n=0;n<e.buckets.length;++n)l.openmetrics.HistogramValue.Bucket.encode(e.buckets[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.buckets&&r.buckets.length||(r.buckets=[]),r.buckets.push(l.openmetrics.HistogramValue.Bucket.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.buckets&&e.hasOwnProperty("buckets")){if(!Array.isArray(e.buckets))return"buckets: array expected";for(let t=0;t<e.buckets.length;++t){let n=l.openmetrics.HistogramValue.Bucket.verify(e.buckets[t]);if(n)return"buckets."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue)return e;let t=new l.openmetrics.HistogramValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.HistogramValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.buckets){if(!Array.isArray(e.buckets))throw TypeError(".openmetrics.HistogramValue.buckets: array expected");t.buckets=[];for(let n=0;n<e.buckets.length;++n){if("object"!==typeof e.buckets[n])throw TypeError(".openmetrics.HistogramValue.buckets: object expected");t.buckets[n]=l.openmetrics.HistogramValue.Bucket.fromObject(e.buckets[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.buckets=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.buckets&&e.buckets.length){n.buckets=[];for(let r=0;r<e.buckets.length;++r)n.buckets[r]=l.openmetrics.HistogramValue.Bucket.toObject(e.buckets[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Bucket=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.upperBound=0,e.prototype.exemplar=null,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(8).uint64(e.count),null!=e.upperBound&&Object.hasOwnProperty.call(e,"upperBound")&&t.uint32(17).double(e.upperBound),null!=e.exemplar&&Object.hasOwnProperty.call(e,"exemplar")&&l.openmetrics.Exemplar.encode(e.exemplar,t.uint32(26).fork()).ldelim(),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.HistogramValue.Bucket;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.count=e.uint64();break;case 2:r.upperBound=e.double();break;case 3:r.exemplar=l.openmetrics.Exemplar.decode(e,e.uint32());break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.upperBound&&e.hasOwnProperty("upperBound")&&"number"!==typeof e.upperBound)return"upperBound: number expected";if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){let t=l.openmetrics.Exemplar.verify(e.exemplar);if(t)return"exemplar."+t}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.HistogramValue.Bucket)return e;let t=new l.openmetrics.HistogramValue.Bucket;if(null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.upperBound&&(t.upperBound=Number(e.upperBound)),null!=e.exemplar){if("object"!==typeof e.exemplar)throw TypeError(".openmetrics.HistogramValue.Bucket.exemplar: object expected");t.exemplar=l.openmetrics.Exemplar.fromObject(e.exemplar)}return t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.upperBound=0,n.exemplar=null}return null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.upperBound&&e.hasOwnProperty("upperBound")&&(n.upperBound=t.json&&!isFinite(e.upperBound)?String(e.upperBound):e.upperBound),null!=e.exemplar&&e.hasOwnProperty("exemplar")&&(n.exemplar=l.openmetrics.Exemplar.toObject(e.exemplar,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.Exemplar=function(){function e(e){if(this.label=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.prototype.timestamp=null,e.prototype.label=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(9).double(e.value),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&l.google.protobuf.Timestamp.encode(e.timestamp,t.uint32(18).fork()).ldelim(),null!=e.label&&e.label.length)for(let n=0;n<e.label.length;++n)l.openmetrics.Label.encode(e.label[n],t.uint32(26).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.Exemplar;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.value=e.double();break;case 2:r.timestamp=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:r.label&&r.label.length||(r.label=[]),r.label.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value)return"value: number expected";if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){let t=l.google.protobuf.Timestamp.verify(e.timestamp);if(t)return"timestamp."+t}if(null!=e.label&&e.hasOwnProperty("label")){if(!Array.isArray(e.label))return"label: array expected";for(let t=0;t<e.label.length;++t){let n=l.openmetrics.Label.verify(e.label[t]);if(n)return"label."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.Exemplar)return e;let t=new l.openmetrics.Exemplar;if(null!=e.value&&(t.value=Number(e.value)),null!=e.timestamp){if("object"!==typeof e.timestamp)throw TypeError(".openmetrics.Exemplar.timestamp: object expected");t.timestamp=l.google.protobuf.Timestamp.fromObject(e.timestamp)}if(e.label){if(!Array.isArray(e.label))throw TypeError(".openmetrics.Exemplar.label: array expected");t.label=[];for(let n=0;n<e.label.length;++n){if("object"!==typeof e.label[n])throw TypeError(".openmetrics.Exemplar.label: object expected");t.label[n]=l.openmetrics.Label.fromObject(e.label[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.label=[]),t.defaults&&(n.value=0,n.timestamp=null),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),null!=e.timestamp&&e.hasOwnProperty("timestamp")&&(n.timestamp=l.google.protobuf.Timestamp.toObject(e.timestamp,t)),e.label&&e.label.length){n.label=[];for(let r=0;r<e.label.length;++r)n.label[r]=l.openmetrics.Label.toObject(e.label[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.StateSetValue=function(){function e(e){if(this.states=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.states=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.states&&e.states.length)for(let n=0;n<e.states.length;++n)l.openmetrics.StateSetValue.State.encode(e.states[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.states&&r.states.length||(r.states=[]),r.states.push(l.openmetrics.StateSetValue.State.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.states&&e.hasOwnProperty("states")){if(!Array.isArray(e.states))return"states: array expected";for(let t=0;t<e.states.length;++t){let n=l.openmetrics.StateSetValue.State.verify(e.states[t]);if(n)return"states."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue)return e;let t=new l.openmetrics.StateSetValue;if(e.states){if(!Array.isArray(e.states))throw TypeError(".openmetrics.StateSetValue.states: array expected");t.states=[];for(let n=0;n<e.states.length;++n){if("object"!==typeof e.states[n])throw TypeError(".openmetrics.StateSetValue.states: object expected");t.states[n]=l.openmetrics.StateSetValue.State.fromObject(e.states[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.states=[]),e.states&&e.states.length){n.states=[];for(let r=0;r<e.states.length;++r)n.states[r]=l.openmetrics.StateSetValue.State.toObject(e.states[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.State=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.enabled=!1,e.prototype.name="",e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.enabled&&Object.hasOwnProperty.call(e,"enabled")&&t.uint32(8).bool(e.enabled),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.StateSetValue.State;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.enabled=e.bool();break;case 2:r.name=e.string();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.enabled&&e.hasOwnProperty("enabled")&&"boolean"!==typeof e.enabled?"enabled: boolean expected":null!=e.name&&e.hasOwnProperty("name")&&!a.isString(e.name)?"name: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue.State)return e;let t=new l.openmetrics.StateSetValue.State;return null!=e.enabled&&(t.enabled=Boolean(e.enabled)),null!=e.name&&(t.name=String(e.name)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.enabled=!1,n.name=""),null!=e.enabled&&e.hasOwnProperty("enabled")&&(n.enabled=e.enabled),null!=e.name&&e.hasOwnProperty("name")&&(n.name=e.name),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e.InfoValue=function(){function e(e){if(this.info=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.info=a.emptyArray,e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.info&&e.info.length)for(let n=0;n<e.info.length;++n)l.openmetrics.Label.encode(e.info[n],t.uint32(10).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.InfoValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.info&&r.info.length||(r.info=[]),r.info.push(l.openmetrics.Label.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";if(null!=e.info&&e.hasOwnProperty("info")){if(!Array.isArray(e.info))return"info: array expected";for(let t=0;t<e.info.length;++t){let n=l.openmetrics.Label.verify(e.info[t]);if(n)return"info."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.InfoValue)return e;let t=new l.openmetrics.InfoValue;if(e.info){if(!Array.isArray(e.info))throw TypeError(".openmetrics.InfoValue.info: array expected");t.info=[];for(let n=0;n<e.info.length;++n){if("object"!==typeof e.info[n])throw TypeError(".openmetrics.InfoValue.info: object expected");t.info[n]=l.openmetrics.Label.fromObject(e.info[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.info=[]),e.info&&e.info.length){n.info=[];for(let r=0;r<e.info.length;++r)n.info[r]=l.openmetrics.Label.toObject(e.info[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.SummaryValue=function(){function e(e){if(this.quantile=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}let t;return e.prototype.doubleValue=null,e.prototype.intValue=null,e.prototype.count=a.Long?a.Long.fromBits(0,0,!0):0,e.prototype.created=null,e.prototype.quantile=a.emptyArray,Object.defineProperty(e.prototype,"sum",{get:a.oneOfGetter(t=["doubleValue","intValue"]),set:a.oneOfSetter(t)}),e.create=function(t){return new e(t)},e.encode=function(e,t){if(t||(t=i.create()),null!=e.doubleValue&&Object.hasOwnProperty.call(e,"doubleValue")&&t.uint32(9).double(e.doubleValue),null!=e.intValue&&Object.hasOwnProperty.call(e,"intValue")&&t.uint32(16).int64(e.intValue),null!=e.count&&Object.hasOwnProperty.call(e,"count")&&t.uint32(24).uint64(e.count),null!=e.created&&Object.hasOwnProperty.call(e,"created")&&l.google.protobuf.Timestamp.encode(e.created,t.uint32(34).fork()).ldelim(),null!=e.quantile&&e.quantile.length)for(let n=0;n<e.quantile.length;++n)l.openmetrics.SummaryValue.Quantile.encode(e.quantile[n],t.uint32(42).fork()).ldelim();return t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;case 3:r.count=e.uint64();break;case 4:r.created=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:r.quantile&&r.quantile.length||(r.quantile=[]),r.quantile.push(l.openmetrics.SummaryValue.Quantile.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){if("object"!==typeof e||null===e)return"object expected";let t={};if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(t.sum=1,"number"!==typeof e.doubleValue))return"doubleValue: number expected";if(null!=e.intValue&&e.hasOwnProperty("intValue")){if(1===t.sum)return"sum: multiple values";if(t.sum=1,!a.isInteger(e.intValue)&&!(e.intValue&&a.isInteger(e.intValue.low)&&a.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!a.isInteger(e.count)&&!(e.count&&a.isInteger(e.count.low)&&a.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){let t=l.google.protobuf.Timestamp.verify(e.created);if(t)return"created."+t}if(null!=e.quantile&&e.hasOwnProperty("quantile")){if(!Array.isArray(e.quantile))return"quantile: array expected";for(let t=0;t<e.quantile.length;++t){let n=l.openmetrics.SummaryValue.Quantile.verify(e.quantile[t]);if(n)return"quantile."+n}}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue)return e;let t=new l.openmetrics.SummaryValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(a.Long?(t.intValue=a.Long.fromValue(e.intValue)).unsigned=!1:"string"===typeof e.intValue?t.intValue=parseInt(e.intValue,10):"number"===typeof e.intValue?t.intValue=e.intValue:"object"===typeof e.intValue&&(t.intValue=new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(a.Long?(t.count=a.Long.fromValue(e.count)).unsigned=!0:"string"===typeof e.count?t.count=parseInt(e.count,10):"number"===typeof e.count?t.count=e.count:"object"===typeof e.count&&(t.count=new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0))),null!=e.created){if("object"!==typeof e.created)throw TypeError(".openmetrics.SummaryValue.created: object expected");t.created=l.google.protobuf.Timestamp.fromObject(e.created)}if(e.quantile){if(!Array.isArray(e.quantile))throw TypeError(".openmetrics.SummaryValue.quantile: array expected");t.quantile=[];for(let n=0;n<e.quantile.length;++n){if("object"!==typeof e.quantile[n])throw TypeError(".openmetrics.SummaryValue.quantile: object expected");t.quantile[n]=l.openmetrics.SummaryValue.Quantile.fromObject(e.quantile[n])}}return t},e.toObject=function(e,t){t||(t={});let n={};if((t.arrays||t.defaults)&&(n.quantile=[]),t.defaults){if(a.Long){let e=new a.Long(0,0,!0);n.count=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.count=t.longs===String?"0":0;n.created=null}if(null!=e.doubleValue&&e.hasOwnProperty("doubleValue")&&(n.doubleValue=t.json&&!isFinite(e.doubleValue)?String(e.doubleValue):e.doubleValue,t.oneofs&&(n.sum="doubleValue")),null!=e.intValue&&e.hasOwnProperty("intValue")&&("number"===typeof e.intValue?n.intValue=t.longs===String?String(e.intValue):e.intValue:n.intValue=t.longs===String?a.Long.prototype.toString.call(e.intValue):t.longs===Number?new a.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber():e.intValue,t.oneofs&&(n.sum="intValue")),null!=e.count&&e.hasOwnProperty("count")&&("number"===typeof e.count?n.count=t.longs===String?String(e.count):e.count:n.count=t.longs===String?a.Long.prototype.toString.call(e.count):t.longs===Number?new a.LongBits(e.count.low>>>0,e.count.high>>>0).toNumber(!0):e.count),null!=e.created&&e.hasOwnProperty("created")&&(n.created=l.google.protobuf.Timestamp.toObject(e.created,t)),e.quantile&&e.quantile.length){n.quantile=[];for(let r=0;r<e.quantile.length;++r)n.quantile[r]=l.openmetrics.SummaryValue.Quantile.toObject(e.quantile[r],t)}return n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Quantile=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.quantile=0,e.prototype.value=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.quantile&&Object.hasOwnProperty.call(e,"quantile")&&t.uint32(9).double(e.quantile),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(17).double(e.value),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.openmetrics.SummaryValue.Quantile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.quantile=e.double();break;case 2:r.value=e.double();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null!=e.quantile&&e.hasOwnProperty("quantile")&&"number"!==typeof e.quantile?"quantile: number expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value?"value: number expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.SummaryValue.Quantile)return e;let t=new l.openmetrics.SummaryValue.Quantile;return null!=e.quantile&&(t.quantile=Number(e.quantile)),null!=e.value&&(t.value=Number(e.value)),t},e.toObject=function(e,t){t||(t={});let n={};return t.defaults&&(n.quantile=0,n.value=0),null!=e.quantile&&e.hasOwnProperty("quantile")&&(n.quantile=t.json&&!isFinite(e.quantile)?String(e.quantile):e.quantile),null!=e.value&&e.hasOwnProperty("value")&&(n.value=t.json&&!isFinite(e.value)?String(e.value):e.value),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})(),l.google=(()=>{const e={};return e.protobuf=function(){const e={};return e.Timestamp=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=a.Long?a.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.create=function(t){return new e(t)},e.encode=function(e,t){return t||(t=i.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},e.decode=function(e,t){e instanceof o||(e=o.create(e));let n=void 0===t?e.len:e.pos+t,r=new l.google.protobuf.Timestamp;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&t)}}return r},e.decodeDelimited=function(e){return e instanceof o||(e=new o(e)),this.decode(e,e.uint32())},e.verify=function(e){return"object"!==typeof e||null===e?"object expected":null==e.seconds||!e.hasOwnProperty("seconds")||a.isInteger(e.seconds)||e.seconds&&a.isInteger(e.seconds.low)&&a.isInteger(e.seconds.high)?null!=e.nanos&&e.hasOwnProperty("nanos")&&!a.isInteger(e.nanos)?"nanos: integer expected":null:"seconds: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.google.protobuf.Timestamp)return e;let t=new l.google.protobuf.Timestamp;return null!=e.seconds&&(a.Long?(t.seconds=a.Long.fromValue(e.seconds)).unsigned=!1:"string"===typeof e.seconds?t.seconds=parseInt(e.seconds,10):"number"===typeof e.seconds?t.seconds=e.seconds:"object"===typeof e.seconds&&(t.seconds=new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber())),null!=e.nanos&&(t.nanos=0|e.nanos),t},e.toObject=function(e,t){t||(t={});let n={};if(t.defaults){if(a.Long){let e=new a.Long(0,0,!1);n.seconds=t.longs===String?e.toString():t.longs===Number?e.toNumber():e}else n.seconds=t.longs===String?"0":0;n.nanos=0}return null!=e.seconds&&e.hasOwnProperty("seconds")&&("number"===typeof e.seconds?n.seconds=t.longs===String?String(e.seconds):e.seconds:n.seconds=t.longs===String?a.Long.prototype.toString.call(e.seconds):t.longs===Number?new a.LongBits(e.seconds.low>>>0,e.seconds.high>>>0).toNumber():e.seconds),null!=e.nanos&&e.hasOwnProperty("nanos")&&(n.nanos=e.nanos),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e}(),e})()},158:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(!1)},159:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(0),o=n.n(r),i=n(1150),a=n(462),l=n(111),s=n(112),c=n(50),u=n(19),d=n(5);const p=Object(d.a)("div",{target:"e1xf8znw4"})((({theme:e})=>({fontFamily:e.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start"})),""),h=Object(d.a)("div",{target:"e1xf8znw3"})((()=>({div:{fontFamily:'"Source Sans Pro", sans-serif !important'}})),""),f=Object(d.a)("div",{target:"e1xf8znw2"})((({theme:e})=>({height:"1.8rem",borderRadius:e.radii.md,borderColor:e.colors.fadedText10,cursor:"pointer",boxShadow:"none",lineHeight:e.lineHeights.base,"&:focus":{outline:"none"},display:"flex"})),""),b=Object(d.a)("div",{target:"e1xf8znw1"})((({theme:e})=>({height:"1.8rem",width:"1.8rem",borderRadius:e.radii.md,borderColor:e.colors.fadedText10,borderWidth:"1px",borderStyle:"solid",padding:"2px 0.8rem",cursor:"pointer",lineHeight:e.lineHeights.base,"&:focus":{outline:"none"}})),""),m=Object(d.a)("div",{target:"e1xf8znw0"})((({theme:e})=>({display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"})),"");var g=n(1);class y extends o.a.PureComponent{constructor(...e){super(...e),this.state={value:this.props.value},this.onColorChange=e=>{this.setState({value:e.hex})},this.onColorClose=()=>{this.props.onChange(this.state.value)}}componentDidUpdate(e){e.value!==this.props.value&&this.props.value!==this.state.value&&this.setState({value:this.props.value})}componentDidCatch(e,t){if("SecurityError"!==(null===e||void 0===e?void 0:e.name))throw e;Object(u.d)(`Swallowing ColorPicker SecurityError '${e.name}: ${e.message}'`),this.forceUpdate()}render(){const{width:e,showValue:t,label:n,labelVisibility:r,help:o,disabled:u}=this.props,{value:d}=this.state,y=u?"not-allowed":"default",O={width:e,cursor:y},w={cursor:y,"pointer-events":u?"none":"auto"},j={backgroundColor:d,opacity:u?"0.4":""};return Object(g.jsxs)(p,{"data-testid":"stColorPicker",style:O,children:[Object(g.jsx)(l.d,{label:n,disabled:u,labelVisibility:r,children:o&&Object(g.jsx)(l.c,{children:Object(g.jsx)(s.a,{content:o,placement:c.b.TOP_RIGHT})})}),Object(g.jsx)(i.a,{onClose:this.onColorClose,content:()=>Object(g.jsx)(h,{children:Object(g.jsx)(a.a,{color:d,onChange:this.onColorChange,disableAlpha:!0})}),children:Object(g.jsxs)(f,{style:w,children:[Object(g.jsx)(b,{style:j}),t&&Object(g.jsx)(m,{children:d.toUpperCase()})]})})]})}}var O=y},16:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={transparent:"transparent",current:"currentColor",inherit:"inherit",black:"#000000",white:"#ffffff",gray10:"#fafafa",gray20:"#f0f2f6",gray30:"#e6eaf1",gray40:"#d5dae5",gray50:"#bfc5d3",gray60:"#a3a8b8",gray70:"#808495",gray80:"#555867",gray85:"#31333F",gray90:"#262730",gray100:"#0e1117",red10:"#fff0f0",red20:"#ffdede",red30:"#ffc7c7",red40:"#ffabab",red50:"#ff8c8c",red60:"#ff6c6c",red70:"#ff4b4b",red80:"#ff2b2b",red90:"#bd4043",red100:"#7d353b",orange10:"#fffae8",orange20:"#fff6d0",orange30:"#ffecb0",orange40:"#ffe08e",orange50:"#ffd16a",orange60:"#ffbd45",orange70:"#ffa421",orange80:"#ff8700",orange90:"#ed6f13",orange100:"#d95a00",yellow10:"#ffffe1",yellow20:"#ffffc2",yellow30:"#ffffa0",yellow40:"#ffff7d",yellow50:"#ffff59",yellow60:"#fff835",yellow70:"#ffe312",yellow80:"#faca2b",yellow90:"#edbb16",yellow100:"#dea816",yellow110:"#916e10",green10:"#dffde9",green20:"#c0fcd3",green30:"#9ef6bb",green40:"#7defa1",green50:"#5ce488",green60:"#3dd56d",green70:"#21c354",green80:"#09ab3b",green90:"#158237",green100:"#177233",blueGreen10:"#dcfffb",blueGreen20:"#bafff7",blueGreen30:"#93ffee",blueGreen40:"#6bfde3",blueGreen50:"#45f4d5",blueGreen60:"#20e7c5",blueGreen70:"#00d4b1",blueGreen80:"#29b09d",blueGreen90:"#2c867c",blueGreen100:"#246e69",lightBlue10:"#e0feff",lightBlue20:"#bffdff",lightBlue30:"#9af8ff",lightBlue40:"#73efff",lightBlue50:"#4be4ff",lightBlue60:"#24d4ff",lightBlue70:"#00c0f2",lightBlue80:"#00a4d4",lightBlue90:"#0d8cb5",lightBlue100:"#15799e",blue10:"#e4f5ff",blue20:"#c7ebff",blue30:"#a6dcff",blue40:"#83c9ff",blue50:"#60b4ff",blue60:"#3d9df3",blue70:"#1c83e1",blue80:"#0068c9",blue90:"#0054a3",blue100:"#004280",purple10:"#f5ebff",purple20:"#ebd6ff",purple30:"#dbbbff",purple40:"#c89dff",purple50:"#b27eff",purple60:"#9a5dff",purple70:"#803df5",purple80:"#6d3fc0",purple90:"#583f84",purple100:"#3f3163"}},169:function(e,t,n){"use strict";n.d(t,"d",(function(){return d})),n.d(t,"c",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"b",(function(){return f})),n.d(t,"f",(function(){return b})),n.d(t,"e",(function(){return y})),n.d(t,"a",(function(){return S}));var r=n(221),o=n.n(r),i=n(184),a=n(64),l=n(132);const s=new Intl.Collator("en",{numeric:!1,sensitivity:"base"});function c(e,t){return e<t?-1:e>t?1:0}function u(e,t){return s.compare(e,t)}function d(e,t,n){const r=e.get("data"),[o,i]=h(r);if(t<0||t>=i)throw new Error(`Bad sortColumnIdx ${t} (should be >= 0, < ${i})`);const l=r.getIn(["cols",t]),s=Object(a.b)(l,"type",{strings:u,doubles:c,int64s:c,datetimes:c,timedeltas:c}),d=new Array(o);for(let a=0;a<o;a+=1)d[a]=a;return d.sort(((e,o)=>{const i=m(r,t,e),a=m(r,t,o);return n?s(i,a):s(a,i)})),d}function p(e){const t=e?e.get("index"):null,n=e?e.get("data"):null,r=e?e.get("columns"):null,[o,i]=t?g(t):[0,0],[a,l]=r?g(r):[0,0],[s,c]=n?h(n):[0,l];if(0!==s&&s!==i||0!==c&&c!==l)throw new Error(`Dataframe dimensions don't align: rows(${s} != ${i}) OR cols(${c} != ${l})`);return{headerRows:a,headerCols:o,dataRows:s,dataCols:c,cols:o+c,rows:a+s}}function h(e){if(!e||!e.get("cols"))return[0,0];const t=e.get("cols").size;if(0===t)return[0,0];return[O(e.getIn(["cols",0])),t]}function f(e,t,n){const{headerRows:r,headerCols:i,dataRows:a}=p(e);if(t<i)return n<r?{contents:"",styles:{},type:"corner"}:{contents:y(e.get("index"),t,n-r),styles:{},type:"col-header"};if(n<r){let r={};if(a>0){"number"!==typeof b(e.get("data"),t-i,n)&&(r={...r,textAlign:"left"})}return{contents:y(e.get("columns"),n,t-i),styles:r,type:"row-header"}}const l=function(e,t,n){if(null==e)return;const r=e.getIn(["cols",t,"styles",n],void 0);if(null==r)return;return r.get("hasDisplayValue")?r.get("displayValue"):void 0}(e.get("style"),t-i,n-r),s=b(e.get("data"),t-i,n-r),c=null!=l?l:s;let u=function(e,t,n){if(null==e)return;const r=e.getIn(["cols",t,"styles",n,"css"],void 0);if(null==r)return;const i={};return r.forEach((e=>{const t=e.get("property");i[o()(t)]=e.get("value")})),i}(e.get("style"),t-i,n-r)||{};return"number"!==typeof s&&(u={...u,textAlign:"left"}),{contents:c,styles:u,type:"data"}}function b(e,t,n){return w(e.getIn(["cols",t]),n)}function m(e,t,n){return j(e.getIn(["cols",t])).get(n)}function g(e){return Object(a.a)(e,"type",{plainIndex:e=>[1,O(e.get("data"))],rangeIndex:e=>[1,e.get("stop")-e.get("start")],multiIndex:e=>0===e.get("labels").size?[0,0]:[e.get("labels").size,e.getIn(["labels",0,"data"]).size],int_64Index:e=>[1,e.getIn(["data","data"]).size],float_64Index:e=>[1,e.getIn(["data","data"]).size],datetimeIndex:e=>[1,e.getIn(["data","data"]).size],timedeltaIndex:e=>[1,e.getIn(["data","data"]).size]})}function y(e,t,n){const r=e.get("type");if("multiIndex"!==r&&0!==t)throw new Error(`Attempting to access level ${t} of a ${r}.`);return Object(a.a)(e,"type",{plainIndex:e=>w(e.get("data"),n),rangeIndex:e=>e.get("start")+n,multiIndex:e=>{const r=e.getIn(["levels",t]),o=e.getIn(["labels",t]).getIn(["data",n]);return o<0?"NaN":y(r,0,o)},int_64Index:e=>e.getIn(["data","data",n]),float_64Index:e=>e.getIn(["data","data",n]),datetimeIndex:e=>l.a.iso8601ToMoment(e.getIn(["data","data",n])),timedeltaIndex:e=>l.a.nanosToDuration(e.getIn(["data","data",n]))})}function O(e){return j(e).size}function w(e,t){const n=e=>e.get("data").get(t);return Object(a.a)(e,"type",{strings:n,doubles:n,int64s:n,datetimes:e=>l.a.iso8601ToMoment(n(e)),timedeltas:e=>l.a.nanosToDuration(n(e))})}function j(e){const t=e=>e.get("data");return Object(a.a)(e,"type",{strings:t,doubles:t,int64s:t,datetimes:t,timedeltas:t})}function S(e,t){const n=t.get("hasName")?t.get("name"):null,r=t.get("data"),o=function(e){return Object(a.a)(e,"type",{vegaLiteChart:e=>e.get("datasets"),_else:()=>null})}(e),[l,s]=function(e,t){if(null!=e){if(1===e.size){return[0,e.first()]}const n=e.findEntry((e=>e.get("hasName")&&e.get("name")===t));if(n)return n}return[-1,null]}(o,n);let c,u;if(t.get("hasName")){if(!s)return function(e,t){return Object(a.d)(e,"type",{vegaLiteChart:e=>e.update("datasets",(e=>e.push(t)))})}(e,t);c=s.get("data")}else{const t=function(e){return Object(a.a)(e,"type",{chart:e=>e.get("data"),dataFrame:e=>e,table:e=>e,arrowTable:e=>e,deckGlMap:e=>e.get("data"),vegaLiteChart:e=>e.get("data")})}(e);if(t)c=t;else{if(!s)return v(e,r);c=s.get("data")}}return null==c.get("data")&&(c=c.set("data",Object(i.a)({cols:[]})),c=c.set("style",Object(i.a)({cols:[]}))),u=c.get("data").get("cols").isEmpty()?r:c.update("index",(e=>function(e,t){if(0===k(e))return t;const n=e.get("type"),r=t.get("type");if(n!==r)throw new Error(`Cannot concatenate ${n} with ${r}.`);return Object(a.d)(e,"type",{plainIndex:e=>e.update("data",(e=>x(e,t.getIn(["plainIndex","data"])))),rangeIndex:e=>e.update("stop",(e=>e+k(t))),int_64Index:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["int_64Index","data","data"])))),float_64Index:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["float_64Index","data","data"])))),datetimeIndex:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["datetimeIndex","data","data"])))),timedeltaIndex:e=>e.updateIn(["data","data"],(e=>e.concat(t.getIn(["timedeltaIndex","data","data"]))))})}(e,r.get("index")))).updateIn(["data","cols"],(e=>e.zipWith(((e,t)=>x(e,t)),r.getIn(["data","cols"])))).updateIn(["style","cols"],(e=>e.zipWith(((e,t)=>function(e,t){if(0===e.get("styles").length)return t;return e.update("styles",(e=>e.concat(t.get("styles"))))}(e,t)),r.getIn(["style","cols"])))),s?function(e,t,n){return Object(a.d)(e,"type",{vegaLiteChart:e=>e.setIn(["datasets",t,"data"],n)})}(e,l,u):v(e,u)}function x(e,t){if(0===O(e))return t;const n=e.get("type"),r=t.get("type");if(n!==r)throw new Error(`Cannot concatenate ${n} and ${r}.`);return e.updateIn([n,"data"],(e=>e.concat(t.getIn([r,"data"]))))}function v(e,t){return Object(a.d)(e,"type",{chart:e=>e.set("data",t),dataFrame:()=>t,table:()=>t,arrowTable:()=>t,deckGlMap:e=>e.set("data",t),vegaLiteChart:e=>e.set("data",t)})}function k(e){return Object(a.a)(e,"type",{plainIndex:e=>O(e.get("data")),rangeIndex:e=>e.get("stop")-e.get("start"),multiIndex:e=>0===e.get("labels").size?0:e.getIn(["labels",0]).size,int_64Index:e=>e.getIn(["data","data"]).size,float_64Index:e=>e.getIn(["data","data"]).size,datetimeIndex:e=>e.getIn(["data","data"]).size,timedeltaIndex:e=>e.getIn(["data","data"]).size})}},18:function(e,t,n){"use strict";var r=n(148);n.d(t,"lightBaseUITheme",(function(){return r.b}));var o=n(346);n.d(t,"globalStyles",(function(){return o.a}));var i=n(347);n.o(i,"AUTO_THEME_NAME")&&n.d(t,"AUTO_THEME_NAME",(function(){return i.AUTO_THEME_NAME})),n.o(i,"CUSTOM_THEME_NAME")&&n.d(t,"CUSTOM_THEME_NAME",(function(){return i.CUSTOM_THEME_NAME})),n.o(i,"baseTheme")&&n.d(t,"baseTheme",(function(){return i.baseTheme})),n.o(i,"computeSpacingStyle")&&n.d(t,"computeSpacingStyle",(function(){return i.computeSpacingStyle})),n.o(i,"createAutoTheme")&&n.d(t,"createAutoTheme",(function(){return i.createAutoTheme})),n.o(i,"createPresetThemes")&&n.d(t,"createPresetThemes",(function(){return i.createPresetThemes})),n.o(i,"createTheme")&&n.d(t,"createTheme",(function(){return i.createTheme})),n.o(i,"darkTheme")&&n.d(t,"darkTheme",(function(){return i.darkTheme})),n.o(i,"getCachedTheme")&&n.d(t,"getCachedTheme",(function(){return i.getCachedTheme})),n.o(i,"getDefaultTheme")&&n.d(t,"getDefaultTheme",(function(){return i.getDefaultTheme})),n.o(i,"hasLightBackgroundColor")&&n.d(t,"hasLightBackgroundColor",(function(){return i.hasLightBackgroundColor})),n.o(i,"isPresetTheme")&&n.d(t,"isPresetTheme",(function(){return i.isPresetTheme})),n.o(i,"lightTheme")&&n.d(t,"lightTheme",(function(){return i.lightTheme})),n.o(i,"removeCachedTheme")&&n.d(t,"removeCachedTheme",(function(){return i.removeCachedTheme})),n.o(i,"setCachedTheme")&&n.d(t,"setCachedTheme",(function(){return i.setCachedTheme})),n.o(i,"toExportedTheme")&&n.d(t,"toExportedTheme",(function(){return i.toExportedTheme})),n.o(i,"toThemeInput")&&n.d(t,"toThemeInput",(function(){return i.toThemeInput}));var a=n(67);n.d(t,"AUTO_THEME_NAME",(function(){return a.a})),n.d(t,"CUSTOM_THEME_NAME",(function(){return a.b})),n.d(t,"computeSpacingStyle",(function(){return a.c})),n.d(t,"createTheme",(function(){return a.f})),n.d(t,"getCachedTheme",(function(){return a.g})),n.d(t,"getDefaultTheme",(function(){return a.h})),n.d(t,"hasLightBackgroundColor",(function(){return a.j})),n.d(t,"isPresetTheme",(function(){return a.k})),n.d(t,"removeCachedTheme",(function(){return a.l})),n.d(t,"setCachedTheme",(function(){return a.m})),n.d(t,"toExportedTheme",(function(){return a.n})),n.d(t,"toThemeInput",(function(){return a.o}));var l=n(348);n.d(t,"baseTheme",(function(){return l.a})),n.d(t,"createAutoTheme",(function(){return l.b})),n.d(t,"createPresetThemes",(function(){return l.c})),n.d(t,"darkTheme",(function(){return l.d})),n.d(t,"lightTheme",(function(){return l.e}))},19:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return l}));var r=n(68);function o(...e){r.a&&console.log(...e)}function i(...e){r.a&&console.warn(...e)}function a(...e){console.error(...e)}function l(...e){console.log(...e)}},190:function(e,t,n){"use strict";n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return g}));var r=n(0),o=n(23),i=n(1);function a(e){const{disabled:t,element:n,widgetMgr:a,hasInProgressUpload:l,width:s}=e,{formId:c}=n,u={width:s};return Object(r.useEffect)((()=>(a.incrementSubmitButtonCount(c),()=>a.decrementSubmitButtonCount(c))),[a,c]),Object(i.jsx)("div",{className:"row-widget stButton","data-testid":"stFormSubmitButton",style:u,children:Object(i.jsx)(o.a,{help:n.help,children:Object(i.jsx)(o.d,{kind:o.b.FORM_SUBMIT,size:o.c.SMALL,disabled:t||l,onClick:()=>a.submitForm(n),children:n.label})})})}var l=n(5);const s=Object(l.a)("div",{target:"epcbefy2"})((()=>({display:"flex"})),""),c=Object(l.a)("div",{target:"epcbefy1"})((({theme:e})=>({border:`1px solid ${e.colors.fadedText10}`,borderRadius:e.radii.md,padding:"calc(1em - 1px)"})),""),u=Object(l.a)("div",{target:"epcbefy0"})((({theme:e})=>({marginTop:e.spacing.lg})),"");function d(e){const{width:t}=e,n={width:t};return Object(i.jsx)(s,{className:"row-widget",style:n,children:Object(i.jsx)(a,{...e})})}var p=n(124),h=n(51),f=n(37);function b(e){const{formId:t,widgetMgr:n,hasSubmitButton:o,children:a,width:l,scriptRunState:s,clearOnSubmit:d}=e;Object(r.useEffect)((()=>{n.setFormClearOnSubmit(t,d)}),[n,t,d]);const[b,m]=Object(r.useState)(!1);let g;return o&&b?m(!1):o||b||s!==f.a.NOT_RUNNING||m(!0),b&&(g=Object(i.jsx)(u,{children:Object(i.jsx)(p.a,{body:"**Missing Submit Button**\n\nThis form has no submit button, which means that user interactions will never be sent to your Streamlit app.\n\nTo create a submit button, use the `st.form_submit_button()` function.\n\nFor more information, refer to the [documentation for forms](https://docs.streamlit.io/library/api-reference/control-flow/st.form).",kind:h.a.ERROR,width:l})})),Object(i.jsxs)(c,{"data-testid":"stForm",children:[a,g]})}var m=n(33);class g{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),Object(m.i)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}},191:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),o=n(87),i=n.n(o),a=n(61),l=n(1140),s=n(1141),c=n(41),u=n(53),d=n(5);const p=Object(d.a)("button",{target:"e19lei0e1"})((({isExpanded:e,theme:t})=>{const n=e?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:t.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:t.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:t.colors.fadedText60,borderRadius:"50%",...n,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:t.colors.bodyText,transition:"none"}}}),""),h=Object(d.a)("div",{target:"e19lei0e0"})((({theme:e,isExpanded:t})=>({"&:hover":{[p]:{opacity:1,transform:"scale(1)",transition:"none"}},...t?{position:"fixed",top:0,left:0,bottom:0,right:0,background:e.colors.bgColor,zIndex:e.zIndices.fullscreenWrapper,padding:e.spacing.md,paddingTop:e.sizes.headerHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}})),"");var f=n(1);class b extends r.PureComponent{constructor(e){super(e),this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels(this.props.theme.sizes.headerHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:r,width:o,height:i}=this.props;let a=l.a,u=this.zoomIn,d="View fullscreen";return e&&(a=s.a,u=this.zoomOut,d="Exit fullscreen"),Object(f.jsxs)(h,{isExpanded:e,children:[Object(f.jsx)(p,{onClick:u,title:d,isExpanded:e,children:Object(f.jsx)(c.b,{content:a})}),r(e?{width:t,height:n,expanded:e}:{width:o,height:i,expanded:e})]})}}b.contextType=u.a,b.isFullScreen=!1;var m=Object(a.f)(b);var g=function(e){class t extends r.PureComponent{render(){const{width:t,height:n,...r}=this.props;return Object(f.jsx)(m,{width:t,height:n,children:({width:t,height:n,expanded:o})=>Object(f.jsx)(e,{width:t,height:n,isFullScreen:o,...r})})}}return t.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,i()(t,e)}},219:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));n(0);var r=n(15),o=n(89),i=n(41),a=n(51),l=n(1);function s(e){switch(e){case r.a.Format.ERROR:return a.a.ERROR;case r.a.Format.INFO:return a.a.INFO;case r.a.Format.SUCCESS:return a.a.SUCCESS;case r.a.Format.WARNING:return a.a.WARNING;default:throw new Error(`Unexpected alert type: ${e}`)}}function c({icon:e,body:t,kind:n,width:r}){return Object(l.jsx)("div",{className:"stAlert",children:Object(l.jsxs)(a.b,{width:r,kind:n,children:[e&&Object(l.jsx)(i.a,{size:"lg",children:e}),Object(l.jsx)(o.a,{source:t,allowHTML:!1})]})})}},220:function(e,t,n){"use strict";n.d(t,"a",(function(){return Y}));var r=n(0),o=n.n(r),i=n(439),a=n.n(i),l=n(36),s=n(440),c=n.n(s),u=n(441),d=n.n(u),p=n(442),h=n.n(p),f=n(1137),b=n(443),m=n.n(b),g=n(444),y=n.n(g),O=n(53),w=n(1159),j=n(445),S=n.n(j),x=n(1136),v=n(5);const k=Object(v.a)("pre",{target:"e10mrw3y3"})((({theme:e})=>({margin:0,paddingRight:"2.75rem",color:e.colors.bodyText,".token.comment, .token.prolog, .token.doctype, .token.cdata":{color:"slategray"},".token.punctuation":{color:"#999"},".namespace":{opacity:.7},".token.attr-name, .token.property, .token.variable":{color:e.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:e.colors.green70},".token.number, .token.regex":{color:e.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:e.colors.green80},".token.operator, .token.entity":{color:e.colors.orange90},".token.url":{color:e.colors.purple80},".token.decorator, .token.atrule":{color:e.colors.orange90},".token.keyword, .token.tag":{color:e.colors.blue70},".token.function, .token.class-name, .token.selector":{color:e.colors.blue70,fontWeight:"bold"},".token.important":{color:e.colors.red70,fontWeight:"bold"},".token.comment":{color:e.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"}})),""),P=Object(v.a)("button",{target:"e10mrw3y2"})((({theme:e})=>({opacity:0,height:"2.5rem",padding:0,width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",backgroundColor:e.colors.transparent,color:e.colors.fadedText60,borderRadius:e.radii.xl,transform:"scale(0)","&:active, &:focus, &:hover":{opacity:1,transform:"scale(1)",outline:"none",color:e.colors.bodyText,transition:"none"}})),""),I=Object(v.a)("div",{target:"e10mrw3y1"})((({theme:e})=>({padding:`${e.spacing.sm} ${e.spacing.sm} 0 0`,top:0,right:0,position:"absolute",width:"2.75rem",height:"100%",backgroundColor:e.colors.transparent,zIndex:e.zIndices.sidebar+1})),""),C=Object(v.a)("div",{target:"e10mrw3y0"})((({theme:e})=>({position:"relative",marginLeft:e.spacing.none,marginRight:e.spacing.none,marginTop:e.spacing.none,marginBottom:e.spacing.lg,"&:hover":{[P]:{opacity:1,transform:"scale(1)",outline:"none",transition:"none"}}})),"");var V=n(1);class T extends r.PureComponent{constructor(...e){super(...e),this.button=Object(r.createRef)(),this.clipboard=null,this.componentDidMount=()=>{const e=this.button.current;null!==e&&(this.clipboard=new S.a(e))},this.componentWillUnmount=()=>{null!==this.clipboard&&this.clipboard.destroy()}}render(){return Object(V.jsx)(P,{title:"Copy to clipboard",ref:this.button,"data-clipboard-text":this.props.text,style:{top:0,right:0},children:Object(V.jsx)(x.a,{size:"16"})})}}var E=T;const A=({node:e,inline:t,className:n,children:r,...o})=>{const i=/language-(\w+)/.exec(n||""),a=String(r).trim().replace(/\n$/,"");return t?Object(V.jsx)("code",{className:n,...o,children:r}):Object(V.jsxs)(V.Fragment,{children:[a&&Object(V.jsx)(I,{children:Object(V.jsx)(E,{text:a})}),Object(V.jsx)(k,{children:Object(V.jsx)(w.a,{language:i&&i[1]||"",PreTag:"div",customStyle:{backgroundColor:"transparent"},style:{},children:a})})]})};function D({children:e}){return Object(V.jsx)(C,{className:"stCodeBlock",children:e})}var N=n(158),R=n(235);function M(e){return e.replace(/rem$/,"em")}const F=Object(v.a)("div",{target:"e16nr0p33"})((({theme:e,isCaption:t,isInSidebar:n})=>({fontFamily:e.genericFonts.bodyFont,marginBottom:`-${e.spacing.lg}`,a:{color:e.colors.linkText},p:{wordBreak:"break-word"},li:{margin:"0.2em 0 0.2em 1.2em",padding:"0 0 0 0.6em",fontSize:e.fontSizes.md},tr:{borderTop:`1px solid ${e.colors.fadedText10}`},"th, td":{padding:"6px 13px",border:`1px solid ${e.colors.fadedText10}`},...t?{color:n?e.colors.gray:e.colors.fadedText60,fontSize:e.fontSizes.sm,"p, ol, ul, dl, li":{fontSize:"inherit"},"h1, h2, h3, h4, h5, h6":{color:"inherit"},h1:{fontSize:n?M(e.fontSizes.xl):"2.25em"},h2:{fontSize:n?M(e.fontSizes.lg):"1.75em"},h3:{fontSize:n?"1.125em":"1.25em"},"h4, h5, h6":{fontSize:"1em"}}:{}})),""),B=Object(v.a)("div",{target:"e16nr0p32"})((()=>({position:"relative",left:"calc(-2.5rem - 0.5rem)",width:"calc(100% + 2.5rem + 0.5rem)",display:"flex",alignItems:"center",overflow:"visible",":hover":{a:{opacity:1,transform:"scale(1)",transition:"none"}}})),""),L=Object(v.a)("a",{target:"e16nr0p31"})((({theme:e})=>({position:"absolute",marginRight:"0.5rem",lineHeight:0,display:"inline-flex",alignItems:"center",justifyContent:"center",transform:"scale(0)",transition:"opacity 300ms 150ms, transform 300ms 150ms",opacity:0,height:"2.5rem",width:"2.5rem",zIndex:e.zIndices.sidebar+1,border:"none",backgroundColor:e.colors.lightenedBg05,borderRadius:"50%",svg:{stroke:e.colors.fadedText60},"&:hover svg":{stroke:e.colors.bodyText}})),""),_=Object(v.a)("span",{target:"e16nr0p30"})((()=>({position:"relative",flex:"1",marginLeft:"calc(2.5rem + 0.5rem)"})),"");n(1034);function z(e){return e}const W=Object(l.once)((e=>{e.scrollIntoView(!0)})),H=({tag:e,anchor:t,children:n,tagProps:r})=>{const i=o.a.useContext(N.a),[a,l]=o.a.useState(t),[s,c]=o.a.useState(null),{addScriptFinishedHandler:u,removeScriptFinishedHandler:d}=o.a.useContext(O.a);if(i)return o.a.createElement(e,r,n);const p=o.a.useCallback((()=>{null!==s&&window.setTimeout((()=>{W(s)}),300)}),[s]);o.a.useEffect((()=>(u(p),()=>{d(p)})),[u,d,p]);const h=o.a.useCallback((e=>{if(null===e)return;const n=t||((null===(r=e.textContent)||void 0===r?void 0:r.toLowerCase().split(/[^A-Za-z0-9]/).filter(Boolean).join("-"))||"");var r;l(n),window.location.hash.slice(1)===n&&c(e)}),[t]);return o.a.createElement(e,{...r,ref:h,id:a},Object(V.jsxs)(B,{children:[a&&Object(V.jsx)(L,{href:`#${a}`,children:Object(V.jsx)(f.a,{size:"18"})}),Object(V.jsx)(_,{children:n})]}))},U=({node:e,children:t,level:n,...r})=>{const o=r["data-anchor"];return Object(V.jsx)(H,{tag:e.tagName,anchor:o,tagProps:r,children:t})};function $({allowHTML:e,source:t,overrideComponents:n}){const r={pre:D,code:A,a:G,h1:U,h2:U,h3:U,h4:U,h5:U,h6:U,...n||{}},o=[c.a,m.a,y.a],i=[h.a];return e&&i.push(d.a),Object(V.jsx)(R.a,{children:Object(V.jsx)(a.a,{remarkPlugins:o,rehypePlugins:i,components:r,transformLinkUri:z,children:t})})}class J extends r.PureComponent{constructor(...e){super(...e),this.componentDidCatch=()=>{const{source:e}=this.props;throw Object.assign(new Error,{name:"Error parsing Markdown or HTML in this string",message:Object(V.jsx)("p",{children:e}),stack:null})}}render(){const{source:e,allowHTML:t,style:n,isCaption:r}=this.props,o=this.context;return Object(V.jsx)(F,{isCaption:Boolean(r),isInSidebar:o,style:n,"data-testid":r?"stCaptionContainer":"stMarkdownContainer",children:Object(V.jsx)($,{source:e,allowHTML:t})})}}function G(e){const{href:t}=e;if(t&&t.startsWith("#")){const{children:t,node:n,...r}=e;return Object(V.jsx)("a",{...r,children:t})}const{title:n,children:r,node:o,target:i,rel:a,...l}=e;return Object(V.jsx)("a",{href:t,title:n,target:i||"_blank",rel:a||"noopener noreferrer",...l,children:r})}function q(e,t){switch(e.toLowerCase()){case"h1":return`# ${t}`;case"h2":return`## ${t}`;case"h3":return`### ${t}`;default:throw new Error(`Unrecognized tag for header: ${e}`)}}function Y(e){const{width:t}=e,{tag:n,anchor:i,body:a}=e.element,l=o.a.useContext(N.a),[s,...c]=a.split("\n");return Object(V.jsxs)("div",{className:"stMarkdown",style:{width:t},children:[Object(V.jsx)(H,{tag:n,anchor:i,children:Object(V.jsx)($,{source:q(n,s),allowHTML:!1,overrideComponents:{p:r.Fragment,h1:r.Fragment,h2:r.Fragment,h3:r.Fragment,h4:r.Fragment,h5:r.Fragment,h6:r.Fragment}})}),c.length>0&&Object(V.jsx)(F,{isCaption:Boolean(!1),isInSidebar:l,style:{width:t},"data-testid":"stMarkdownContainer",children:Object(V.jsx)($,{source:c.join("\n"),allowHTML:!1})})]})}J.contextType=N.a;t.b=J},23:function(e,t,n){"use strict";n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return x}));n(0);var r=n(5),o=n(20);let i,a;function l(e,t){switch(e){case a.XSMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.sm}`,fontSize:t.fontSizes.sm};case a.SMALL:return{padding:`${t.spacing.twoXS} ${t.spacing.md}`};case a.LARGE:return{padding:`${t.spacing.md} ${t.spacing.md}`};default:return{padding:`${t.spacing.xs} ${t.spacing.md}`}}}!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.LINK="link",e.ICON="icon",e.BORDERLESS_ICON="borderlessIcon",e.MINIMAL="minimal",e.FORM_SUBMIT="formSubmit",e.HEADER_BUTTON="header"}(i||(i={})),function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(a||(a={}));const s=Object(r.a)("button",{target:"edgvbvh10"})((({fluidWidth:e,size:t,theme:n})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:n.fontWeights.normal,padding:`${n.spacing.xs} ${n.spacing.md}`,borderRadius:n.radii.md,margin:0,lineHeight:n.lineHeights.base,color:"inherit",width:e?"100%":"auto",userSelect:"none","&:focus":{boxShadow:`0 0 0 0.2rem ${Object(o.g)(n.colors.primary,.5)}`,outline:"none"},...l(t,n)})),""),c=Object(r.a)(s,{target:"edgvbvh9"})((({theme:e})=>({backgroundColor:e.colors.lightenedBg05,border:`1px solid ${e.colors.fadedText10}`,"&:hover":{borderColor:e.colors.primary,color:e.colors.primary},"&:active":{color:e.colors.white,borderColor:e.colors.primary,backgroundColor:e.colors.primary},"&:focus:not(:active)":{borderColor:e.colors.primary,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{borderColor:e.colors.fadedText40,backgroundColor:e.colors.transparent,color:e.colors.fadedText40,cursor:"not-allowed"}})),""),u=Object(r.a)(s,{target:"edgvbvh8"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:`1px solid ${e.colors.transparent}`,"&:hover":{borderColor:e.colors.transparent,color:e.colors.primary},"&:active":{color:e.colors.primary,borderColor:e.colors.transparent,backgroundColor:e.colors.transparent},"&:focus:not(:active)":{borderColor:e.colors.transparent,color:e.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),d=Object(r.a)(s,{target:"edgvbvh7"})((({theme:e})=>({backgroundColor:e.colors.transparent,padding:0,border:"none",color:e.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:e.colors.transparent,color:e.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),p=Object(r.a)(s,{target:"edgvbvh6"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:"none",boxShadow:"none",padding:0,"&:hover, &:active, &:focus":{color:e.colors.primary}})),""),h=Object(r.a)(c,{target:"edgvbvh5"})(""),f=Object(r.a)(s,{target:"edgvbvh4"})((({size:e,theme:t})=>{const n={[a.XSMALL]:t.spacing.threeXS,[a.SMALL]:t.spacing.twoXS,[a.MEDIUM]:t.spacing.md,[a.LARGE]:t.spacing.lg};return{backgroundColor:t.colors.transparent,border:`1px solid ${t.colors.transparent}`,padding:n[e],"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{backgroundColor:t.colors.primary,borderColor:t.colors.primary,color:t.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),b=Object(r.a)(s,{target:"edgvbvh3"})((({theme:e})=>({backgroundColor:e.colors.transparent,border:"none",padding:e.spacing.sm,fontSize:e.fontSizes.sm,marginLeft:e.spacing.threeXS,marginRight:e.spacing.threeXS,lineHeight:1,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:`0 0 0 0.2rem ${Object(o.g)(e.colors.gray90,.8)}`},"&:hover":{backgroundColor:e.colors.darkenedBgMix25},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:e.colors.lightGray,borderColor:e.colors.transparent,color:e.colors.gray}})),""),m=Object(r.a)(s,{target:"edgvbvh2"})((({size:e,theme:t})=>{const n={[a.XSMALL]:t.spacing.threeXS,[a.SMALL]:t.spacing.twoXS,[a.MEDIUM]:t.spacing.md,[a.LARGE]:t.spacing.lg};return{backgroundColor:t.colors.transparent,border:`1px solid ${t.colors.transparent}`,padding:n[e],"&:focus":{boxShadow:"none",outline:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),g=Object(r.a)("div",{target:"edgvbvh1"})((({theme:e})=>({display:"block",[`@media (max-width: ${e.breakpoints.sm})`]:{display:"none"}})),""),y=Object(r.a)("div",{target:"edgvbvh0"})((({theme:e})=>({display:"none",[`@media (max-width: ${e.breakpoints.sm})`]:{display:"block"}})),"");var O=n(1);var w=function({kind:e,size:t,disabled:n,onClick:r,fluidWidth:o,children:l,autoFocus:s}){let g=c;return e===i.SECONDARY?g=u:e===i.LINK?g=d:e===i.ICON?g=f:e===i.BORDERLESS_ICON?g=m:e===i.MINIMAL?g=p:e===i.FORM_SUBMIT?g=h:e===i.HEADER_BUTTON&&(g=b),Object(O.jsx)(g,{kind:e,size:t||a.MEDIUM,fluidWidth:o||!1,disabled:n||!1,onClick:r||(()=>{}),autoFocus:s||!1,children:l})},j=n(112),S=n(50);function x({children:e,help:t}){return t?Object(O.jsxs)("div",{className:"stTooltipIcon",children:[Object(O.jsx)(g,{children:Object(O.jsx)(j.a,{content:t,placement:S.b.TOP,children:e})}),Object(O.jsx)(y,{children:e})]}):e}},233:function(e,t,n){"use strict";var r=n(94),o=n(20),i=n(16),a={...i.a,bgColor:i.a.white,bodyText:i.a.gray85,primary:i.a.red70,disabled:i.a.gray40,lightestGray:i.a.gray20,lightGray:i.a.gray30,gray:i.a.gray60,darkGray:i.a.gray70,red:i.a.red80,blue:i.a.blue80,green:i.a.green80,yellow:i.a.yellow80,warning:"#926C05",warningBg:Object(o.g)(i.a.yellow70,.9),success:i.a.green100,successBg:Object(o.g)(i.a.green70,.9),info:i.a.blue100,infoBg:Object(o.g)(i.a.blue70,.9),danger:i.a.red100,dangerBg:Object(o.g)(i.a.red80,.91)},l=n(67);t.a={...r.a,inSidebar:!1,genericColors:{...r.a.genericColors,...a},colors:Object(l.e)({...r.a.colors,...a})}},234:function(e,t,n){"use strict";var r=n(94),o=n(20),i=n(16),a={...i.a,bgColor:i.a.gray100,secondaryBg:i.a.gray90,bodyText:i.a.gray10,warning:i.a.yellow20,warningBg:Object(o.g)(i.a.yellow70,.8),success:i.a.green10,successBg:Object(o.g)(i.a.green60,.8),info:i.a.blue20,infoBg:Object(o.g)(i.a.blue60,.8),danger:i.a.red20,dangerBg:Object(o.g)(i.a.red60,.8),primary:i.a.red70,disabled:i.a.gray70,lightestGray:i.a.gray20,lightGray:i.a.gray30,gray:i.a.gray60,darkGray:i.a.gray70,red:i.a.red80,blue:i.a.blue80,green:i.a.green80,yellow:i.a.yellow80},l=n(67);t.a={...r.a,inSidebar:!1,genericColors:{...r.a.genericColors,...a},colors:Object(l.e)({...r.a.colors,...a})}},235:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),o=n.n(r),i=n(125),a=n(19),l=n(1);class s extends o.a.PureComponent{constructor(...e){super(...e),this.state={error:null},this.componentDidCatch=(e,t)=>{Object(a.b)(`${e.name}: ${e.message}\n${e.stack}`)}}render(){const{error:e}=this.state;return e?"ChunkLoadError"===e.name?Object(l.jsx)(i.a,{width:this.props.width,name:"Network issue",message:Object(l.jsxs)("p",{children:["Cannot load Streamlit frontend code. This can happen when you update Streamlit while a Streamlit app is running.",Object(l.jsx)("br",{}),"To fix this, simply reload this app by pressing ",Object(l.jsx)("kbd",{children:"F5"}),", ",Object(l.jsx)("kbd",{children:"Ctrl+R"}),", or ",Object(l.jsx)("kbd",{children:"Cmd+R"}),".",Object(l.jsx)("br",{}),"If the error persists, try force-clearing your browser's cache as described"," ",Object(l.jsx)("a",{href:"https://en.wikipedia.org/wiki/Wikipedia:Bypass_your_cache#Cache_clearing_and_disabling",rel:"noopener noreferrer",target:"_blank",children:"here"})]})}):Object(l.jsx)(i.a,{width:this.props.width,name:e.name,message:e.message,stack:e.stack}):this.props.children}}s.getDerivedStateFromError=e=>({error:e});var c=s},249:function(e,t,n){"use strict";var r=n(20),o=n(16);t.a={...o.a,bgColor:o.a.white,secondaryBg:o.a.gray20,bodyText:o.a.gray85,warning:o.a.yellow110,warningBg:Object(r.g)(o.a.yellow80,.8),success:o.a.green100,successBg:Object(r.g)(o.a.green80,.8),infoBg:Object(r.g)(o.a.blue70,.9),info:o.a.blue100,danger:o.a.red100,dangerBg:Object(r.g)(o.a.red70,.8),primary:o.a.red70,disabled:o.a.gray40,lightestGray:o.a.gray20,lightGray:o.a.gray30,gray:o.a.gray60,darkGray:o.a.gray70,red:o.a.red80,blue:o.a.blue80,green:o.a.green80,yellow:o.a.yellow80}},301:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return o}));const r=["allow-forms","allow-modals","allow-popups","allow-popups-to-escape-sandbox","allow-same-origin","allow-scripts","allow-downloads"].join(" "),o=["accelerometer","ambient-light-sensor","autoplay","battery","camera","document-domain","encrypted-media","fullscreen","geolocation","gyroscope","layout-animations","legacy-image-formats","magnetometer","microphone","midi","oversized-images","payment","picture-in-picture","publickey-credentials-get","sync-xhr","usb","vr ","wake-lock","xr-spatial-tracking"].join("; ")},311:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);let o;!function(e){e.DANGER="danger"}(o||(o={}));const i=Object(r.a)("small",{target:"euu6i2w0"})((({kind:e,theme:t})=>{const{danger:n,fadedText60:r}=t.colors;return{color:e===o.DANGER?n:r,fontSize:t.fontSizes.sm,lineHeight:"1.25"}}),"")},313:function(e,t,n){"use strict";n.d(t,"b",(function(){return b}));var r=n(0),o=n.n(r),i=n(1109),a=n(19),l=n(145),s=n(303),c=n(36),u=n.n(c),d=n(50),p=n(112),h=n(111),f=n(1);function b(e,t){return t?u()(e).filter((e=>Object(s.a)(t,e.label))).sortBy((e=>Object(s.b)(t,e.label))).reverse().value():e}class m extends o.a.PureComponent{constructor(...e){super(...e),this.state={isEmpty:!1,value:this.props.value},this.onChange=e=>{if(0===e.value.length)return void Object(a.d)("No value selected!");const[t]=e.value;this.setState({value:parseInt(t.value,10)},(()=>this.props.onChange(this.state.value)))},this.onInputChange=e=>{const t=e.target.value;this.setState({isEmpty:!t})},this.onClose=()=>{this.setState({isEmpty:!1})},this.filterOptions=(e,t)=>b(e,t)}componentDidUpdate(e){e.value!==this.props.value&&this.state.value!==this.props.value&&this.setState({value:this.props.value})}render(){const e={width:this.props.width},{label:t,labelVisibility:n,help:r}=this.props;let{disabled:o,options:a}=this.props,s=[{label:a.length>0?a[this.state.value]:"No options to select.",value:this.state.value.toString()}];this.state.isEmpty&&(s=[]),0===a.length&&(a=["No options to select."],o=!0);const c=a.map(((e,t)=>({label:e,value:t.toString()})));return Object(f.jsxs)("div",{className:"row-widget stSelectbox",style:e,children:[Object(f.jsx)(h.d,{label:t,labelVisibility:n,disabled:o,children:r&&Object(f.jsx)(h.b,{children:Object(f.jsx)(p.a,{content:r,placement:d.b.TOP_RIGHT})})}),Object(f.jsx)(i.a,{clearable:!1,disabled:o,labelKey:"label","aria-label":t||"",onChange:this.onChange,onInputChange:this.onInputChange,onClose:this.onClose,options:c,filterOptions:this.filterOptions,value:s,valueKey:"value",overrides:{Root:{style:()=>({lineHeight:1.4})},Dropdown:{component:l.a},ControlContainer:{style:()=>({borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"})},IconsContainer:{style:()=>({paddingRight:".5rem"})},ValueContainer:{style:()=>({paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"})},Input:{style:()=>({lineHeight:1.4})},Popover:{props:{overrides:{Body:{style:()=>({marginTop:"1px"})}}}}}})]})}}t.a=m},33:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"l",(function(){return p})),n.d(t,"k",(function(){return h})),n.d(t,"d",(function(){return f})),n.d(t,"n",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return O})),n.d(t,"o",(function(){return w})),n.d(t,"c",(function(){return j})),n.d(t,"i",(function(){return S})),n.d(t,"h",(function(){return x})),n.d(t,"a",(function(){return v})),n.d(t,"j",(function(){return k}));var r=n(15),o=n(36),i=n.n(o),a=n(426),l=n.n(a),s=n(427),c=n.n(s);function u(e,t){let n;return(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{t(...r),n=null}),e)}}function d(){return"true"===l.a.parse(window.location.href,!0).query.embed}function p(e){return new r.g({alert:{body:e,format:r.a.Format.INFO}})}function h(e){return new r.g({alert:{body:e,format:r.a.Format.ERROR}})}function f(e){return c.a.h32(e,3735928559).toString(16)}function b(e){if(null==e)throw new Error("value is null");return e}function m(e){return void 0!==e}function g(e){return null!==e&&void 0!==e}function y(){return/Mac/i.test(navigator.platform)}function O(){return/^Win/i.test(navigator.platform)}function w(e,t,n){const r=t?n:new Date,o=r?`expires=${r.toUTCString()};`:"";document.cookie=`${e}=${t};${o}path=/`}function j(e){return i.a.get(e,[b(e.type),"id"])}function S(e){return null!=e&&e.length>0}function x(e){return S(e.formId)}let v;function k(e){switch(e){case r.m.LabelVisibilityOptions.VISIBLE:return v.Visible;case r.m.LabelVisibilityOptions.HIDDEN:return v.Hidden;case r.m.LabelVisibilityOptions.COLLAPSED:return v.Collapsed;default:return v.Visible}}!function(e){e[e.Visible=0]="Visible",e[e.Hidden=1]="Hidden",e[e.Collapsed=2]="Collapsed"}(v||(v={}))},346:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(40),o=n(20);const i=e=>Object(r.b)("a,a:visited{color:",e.colors.primary,";}a:hover,a:active{color:",e.colors.primary,";text-decoration:underline;}iframe{border:none;padding:0;margin:0;}code{padding:0.2em 0.4em;margin:0;border-radius:",e.radii.md,";background:",e.colors.codeHighlightColor,";color:",e.colors.codeTextColor,";}pre{margin:0 0 1rem 0;background:",e.colors.codeHighlightColor,";border-radius:",e.radii.md,";padding:1rem;code{background:transparent;border:0;display:inline;font-size:",e.fontSizes.sm,";line-height:inherit;margin:0;padding:0;white-space:pre;word-break:normal;word-wrap:normal;overflow-x:auto;color:",e.colors.codeTextColor,";}}.disabled{color:",e.colors.disabled,";}#vg-tooltip-element{font-family:",e.genericFonts.bodyFont,";color:",e.colors.bodyText,";border:1px solid ",e.colors.fadedText10,";background-color:",Object(o.g)(e.colors.bgColor,.05),";font-size:",e.fontSizes.sm,";box-shadow:rgb(0 0 0 / 16%) 0px 1px 4px;padding:",e.spacing.xs," ",e.spacing.md,";border-radius:",e.radii.md,";z-index:",e.zIndices.fullscreenWrapper,";}#vg-tooltip-element td{border:none;}#vg-tooltip-element table tr td.key{color:",e.colors.fadedText60,";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}body.embedded{overflow:hidden;}body.embedded:hover{overflow:auto;}*,*::before,*::after{box-sizing:border-box;}body{margin:0;font-family:",e.genericFonts.bodyFont,";font-weight:",e.fontWeights.normal,";line-height:",e.lineHeights.base,";color:",e.colors.bodyText,";background-color:",e.colors.bgColor,";-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:",Object(o.g)(e.colors.black,1),';-webkit-font-smoothing:auto;}[tabindex="-1"]:focus:not(:focus-visible){outline:0!important;}hr{margin:2em 0;padding:0;color:inherit;background-color:transparent;border:none;border-bottom:1px solid ',e.colors.fadedText10,";}hr:not([size]){height:1px;}h1{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.extrabold,";color:",e.colors.headingColor,";padding:1.25rem 0 1rem 0;margin:0;line-height:1.2;}h2{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:1rem 0 1rem 0;margin:0;line-height:1.2;}h3{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";letter-spacing:-0.005em;padding:0.5rem 0 1rem 0;margin:0;line-height:1.2;}h4{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0.75rem 0 1rem 0;margin:0;line-height:1.2;}h5{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}h6{font-family:",e.genericFonts.headingFont,";font-weight:",e.fontWeights.bold,";color:",e.colors.headingColor,";padding:0 0 1rem 0;margin:0;line-height:1.2;}abbr[title],abbr[data-original-title]{text-decoration:underline;text-decoration:underline dotted;cursor:help;text-decoration-skip-ink:none;}address{margin-bottom:1rem;font-style:normal;line-height:inherit;}p,ol,ul,dl{margin:0 0 1rem 0;padding:0;font-size:1rem;font-weight:400;}ol ol,ul ul,ol ul,ul ol{margin-bottom:0;}dt{font-size:1rem;font-weight:600;margin:1em 0 0.2em 0;padding:0;}dd{margin:0 0 0.2em 1.2em;font-size:1rem;}b,strong{font-weight:",e.fontWeights.bold,";}mark{padding:0.2em;background-color:",e.colors.secondaryBg,";}sub,sup{position:relative;line-height:0;vertical-align:baseline;}sub{bottom:-0.25em;}sup{top:-0.5em;}a{color:",e.colors.primary,";text-decoration:underline;&:hover{color:",Object(o.a)(e.colors.primary,.15),";}}a:not([href]):not([class]){&,&:hover{color:inherit;text-decoration:none;}}pre,code,kbd{font-family:",e.genericFonts.codeFont,";}samp{font-family:",e.genericFonts.codeFont,";}samp,blockquote{margin:1em 0 1em -1px;padding:0 0 0 1.2em;font-size:1rem;border-left:1px solid ",e.colors.lightGray,";}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;color:",Object(o.e)(e.colors.bgColor),";-ms-overflow-style:scrollbar;code{color:inherit;word-break:normal;}}code{color:",e.colors.codeTextColor,";word-wrap:break-word;a>&{color:inherit;}}kbd{padding:0.2rem 0.4rem;color:",e.colors.codeTextColor,";background-color:",e.colors.codeHighlightColor,";}figure{margin:0 0 1rem;}img,svg{vertical-align:middle;}table{caption-side:bottom;border-collapse:collapse;}table caption{padding-top:",e.spacing.sm,";padding-bottom:0;color:",e.colors.gray60,';text-align:left;}th{text-align:inherit;text-align:-webkit-match-parent;}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0;}label{display:inline-block;}button{border-radius:0;}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color;}input,button,select,optgroup,textarea{margin:0;font-family:inherit;line-height:inherit;}button,input{overflow:visible;}button,select{text-transform:none;}[role="button"]{cursor:pointer;}select{word-wrap:normal;}[list]::-webkit-calendar-picker-indicator{display:none;}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button;}::-moz-focus-inner{padding:0;border-style:none;}textarea{resize:vertical;}fieldset{min-width:0;padding:0;margin:0;border:0;}legend{float:left;width:100%;padding:0;margin-bottom:',e.spacing.sm,';line-height:inherit;white-space:normal;+*{clear:left;}}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0;}::-webkit-inner-spin-button{height:auto;}[type="search"]{outline-offset:-2px;-webkit-appearance:textfield;}::-webkit-search-decoration{-webkit-appearance:none;}::-webkit-color-swatch-wrapper{padding:0;}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button;}output{display:inline-block;}iframe{border:0;}summary{display:list-item;cursor:pointer;}progress{vertical-align:baseline;}[hidden]{display:none!important;}::-webkit-scrollbar{background:transparent;border-radius:100px;height:6px;width:6px;}::-webkit-scrollbar:active{background:',e.colors.fadedText10,";}:hover::-webkit-scrollbar-thumb:vertical,:hover::-webkit-scrollbar-thumb:horizontal{background:",e.colors.fadedText40,";border-radius:100px;}","")},347:function(e,t){},348:function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return f})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return m}));var r=n(308),o=n(307),i=n(1110),a=n(467),l=n(148),s=n(94),c=n(233),u=n(234),d=n(67);const p={name:"base",emotion:s.a,baseweb:r.a,basewebTheme:l.b,primitives:o.a},h={name:"Dark",emotion:u.a,baseweb:i.a,basewebTheme:l.a,primitives:a.a},f={name:"Light",emotion:c.a,baseweb:r.a,basewebTheme:l.b,primitives:o.a},b=()=>({...Object(d.i)(),name:d.a}),m=()=>[b(),f,h]},35:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(33);class o{static get current(){if(!o.singleton)throw new Error("Tried to use SessionInfo before it was initialized");return o.singleton}static set current(e){o.singleton=e}static isSet(){return null!=o.singleton}static get isHello(){return"streamlit hello"===this.current.commandLine}static clearSession(){o.singleton=void 0}static fromNewSessionMessage(e){const t=e.initialize,n=e.config,i=t.userInfo,a=t.environmentInfo;return new o({appId:Object(r.d)(i.installationIdV3+e.mainScriptPath),sessionId:t.sessionId,streamlitVersion:a.streamlitVersion,pythonVersion:a.pythonVersion,installationId:i.installationId,installationIdV3:i.installationIdV3,authorEmail:i.email,maxCachedMessageAge:n.maxCachedMessageAge,commandLine:t.commandLine,userMapboxToken:n.mapboxToken})}constructor({appId:e,sessionId:t,streamlitVersion:n,pythonVersion:r,installationId:o,installationIdV3:i,authorEmail:a,maxCachedMessageAge:l,commandLine:s,userMapboxToken:c}){if(this.appId=void 0,this.sessionId=void 0,this.streamlitVersion=void 0,this.pythonVersion=void 0,this.installationId=void 0,this.installationIdV3=void 0,this.authorEmail=void 0,this.maxCachedMessageAge=void 0,this.commandLine=void 0,this.userMapboxToken=void 0,null==e||null==t||null==n||null==r||null==o||null==i||null==a||null==l||null==s||null==c)throw new Error("SessionInfo arguments must be non-null");this.appId=e,this.sessionId=t,this.streamlitVersion=n,this.pythonVersion=r,this.installationId=o,this.installationIdV3=i,this.authorEmail=a,this.maxCachedMessageAge=l,this.commandLine=s,this.userMapboxToken=c}}o.singleton=void 0},37:function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.NOT_RUNNING="notRunning",e.RUNNING="running",e.RERUN_REQUESTED="rerunRequested",e.STOP_REQUESTED="stopRequested",e.COMPILATION_ERROR="compilationError"}(r||(r={}))},407:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(0);const o=e=>{const t=Object(r.useRef)();return Object(r.useEffect)((()=>{t.current=e}),[e]),t.current},i=e=>{const{current:t}=e,[n,o]=Object(r.useState)(!1);return Object(r.useEffect)((()=>{if(t){const{scrollHeight:e,clientHeight:n}=t;o(e>n)}})),n}},41:function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return u}));n(0);var r=n(5),o=n(146),i=n(18);const a=Object(r.a)("span",{shouldForwardProp:e=>Object(o.a)(e)&&!["size","as"].includes(e),target:"e1fb0mya1"})((({color:e,size:t,margin:n,padding:r,theme:o})=>({color:o.colors[e],fill:"currentColor",display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:o.iconSizes[t],width:o.iconSizes[t],height:o.iconSizes[t],margin:Object(i.computeSpacingStyle)(n,o),padding:Object(i.computeSpacingStyle)(r,o)})),""),l=Object(r.a)("span",{target:"e1fb0mya0"})((({size:e,margin:t,padding:n,theme:r})=>({display:"inline-flex",alignItems:"center",justifyContents:"center",fontSize:r.iconSizes[e],width:r.iconSizes[e],height:r.iconSizes[e],margin:Object(i.computeSpacingStyle)(t,r),padding:Object(i.computeSpacingStyle)(n,r)})),"");var s=n(1);const c=({size:e,margin:t,padding:n})=>({size:e||"md",margin:t||"",padding:n||""}),u=({size:e,margin:t,padding:n,children:r})=>Object(s.jsx)(l,{"aria-hidden":"true",...c({size:e,margin:t,padding:n}),children:r});var d=({content:e,color:t,size:n,margin:r,padding:o})=>Object(s.jsx)(a,{as:e,color:t||"inherit","aria-hidden":"true",...c({size:n,margin:r,padding:o})})},44:function(e,t,n){"use strict";n.d(t,"i",(function(){return r})),n.d(t,"f",(function(){return o})),n.d(t,"h",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return l})),n.d(t,"j",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return d})),n.d(t,"c",(function(){return p}));const r="https://streamlit.io",o="https://share.streamlit.io/deploy",i="https://streamlit.io/cloud",a="https://docs.streamlit.io",l="https://discuss.streamlit.io",s="https://streamlit.io/for-teams",c="https://github.com/streamlit/streamlit/issues/new/choose",u="https://docs.streamlit.io/library/components",d="https://docs.streamlit.io/knowledge-base/using-streamlit/enable-camera",p=["devel.streamlit.test","share.streamlit.io","share-demo.streamlit.io","share-head.streamlit.io","share-staging.streamlit.io","*.demo.streamlit.run","*.head.streamlit.run","*.staging.streamlit.run","*.streamlitapp.test","*.streamlitapp.com","*.streamlit.run"]},50:function(e,t,n){"use strict";n.d(t,"c",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"a",(function(){return g}));var r=n(0),o=n.n(r),i=n(61),a=n(18),l=n(1160),s=n(29),c=n(5),u=n(20);const d=Object(c.a)("div",{target:"e1wqxbhn2"})({name:"87mhkc",styles:"display:table;table-layout:fixed;width:100%"}),p=Object(c.a)("div",{target:"e1wqxbhn1"})({"@media (min-width: 768px)":{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},display:"table-cell"},""),h=Object(c.a)("div",{target:"e1wqxbhn0"})((({theme:e})=>({boxSizing:"border-box",fontSize:`${e.fontSizes.sm}`,maxWidth:`calc(${e.sizes.contentMaxWidth} - 4rem)`,maxHeight:"300px",overflow:["auto","overlay"],padding:`${e.spacing.xs} ${e.spacing.md}`,[`@media (max-width: ${e.breakpoints.sm})`]:{maxWidth:"calc(100% - 2rem)"},img:{maxWidth:"100%"},code:{background:Object(u.g)(e.colors.darkenedBgMix100,.8)},"*":{fontSize:`${e.fontSizes.sm} !important`}})),"");var f=n(1);let b;!function(e){e.AUTO="auto",e.TOP_LEFT="topLeft",e.TOP="top",e.TOP_RIGHT="topRight",e.RIGHT_TOP="rightTop",e.RIGHT="right",e.RIGHT_BOTTOM="rightBottom",e.BOTTOM_RIGHT="bottomRight",e.BOTTOM="bottom",e.BOTTOM_LEFT="bottomLeft",e.LEFT_BOTTOM="leftBottom",e.LEFT="left",e.LEFT_TOP="leftTop"}(b||(b={}));var m=function({content:e,placement:t,children:n,inline:r,style:o}){const c=Object(i.c)(),{colors:u,fontSizes:d}=c;return Object(f.jsx)(l.a,{content:e?Object(f.jsx)(h,{children:e}):null,placement:s.f[t],accessibilityType:s.a.tooltip,showArrow:!1,popoverMargin:10,overrides:{Body:{style:{borderTopLeftRadius:"0.25rem",borderTopRightRadius:"0.25rem",borderBottomLeftRadius:"0.25rem",borderBottomRightRadius:"0.25rem",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important",backgroundColor:"transparent"}},Inner:{style:{backgroundColor:Object(a.hasLightBackgroundColor)(c)?u.bgColor:u.secondaryBg,color:u.bodyText,fontSize:d.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:Object(f.jsx)("div",{style:{display:"flex",flexDirection:"row",justifyContent:r?"flex-end":"",...o},"data-testid":"tooltipHoverTarget",children:n})})};var g=function({content:e,placement:t,children:n,inline:i,style:a}){const l=o.a.useRef(null),[s,c]=Object(r.useState)(!1);return o.a.useEffect((()=>{const e=!!(null===l||void 0===l?void 0:l.current)&&l.current.offsetWidth<l.current.scrollWidth;e!==s&&c(e)}),[n,s]),Object(f.jsx)(m,{content:s?e:"",placement:t,inline:i,children:Object(f.jsx)(d,{children:Object(f.jsx)(p,{ref:l,style:a,children:n})})})}},51:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return s}));n(0);var r=n(48),o=n(1161),i=n(5);const a=Object(i.a)("div",{target:"e13vu3m50"})((({theme:e})=>({display:"flex",gap:e.spacing.sm,"& > span":{position:"relative",top:"2px"},pre:{backgroundColor:e.colors.transparent,paddingTop:e.spacing.lg,paddingBottom:e.spacing.lg,paddingRight:e.spacing.lg,paddingLeft:e.spacing.lg,border:`1px solid ${e.colors.fadedText10}`,"pre, code":{backgroundColor:e.colors.transparent,color:"inherit"}},code:{backgroundColor:e.colors.transparent,padding:e.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}})),"");var l=n(1);let s;function c(e){switch(e){case s.ERROR:return r.a.negative;case s.INFO:return r.a.info;case s.SUCCESS:return r.a.positive;case s.WARNING:return r.a.warning;default:throw new Error(`Unexpected alert type: ${e}`)}}function u({kind:e,width:t,children:n}){return Object(l.jsx)(o.a,{kind:c(e),overrides:{Body:{style:{marginTop:0,marginBottom:0,width:t?t.toString():void 0,border:0}},InnerContainer:{style:{width:"100%",lineHeight:"1.5"}}},children:Object(l.jsx)(a,{children:n})})}!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(s||(s={}))},53:function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(15),a=n(18),l=n(85);t.a=o.a.createContext({wideMode:!1,layout:i.q.Layout.CENTERED,initialSidebarState:i.q.SidebarState.AUTO,embedded:!1,isFullScreen:!1,setFullScreen:e=>{},addScriptFinishedHandler:e=>{},removeScriptFinishedHandler:e=>{},activeTheme:a.baseTheme,setTheme:e=>{},availableThemes:[],addThemes:e=>{},sidebarChevronDownshift:0,getBaseUriParts:l.c})},58:function(e,t,n){"use strict";let r;n.d(t,"a",(function(){return r})),function(e){e.CONNECTED="CONNECTED",e.DISCONNECTED_FOREVER="DISCONNECTED_FOREVER",e.INITIAL="INITIAL",e.PINGING_SERVER="PINGING_SERVER",e.CONNECTING="CONNECTING"}(r||(r={}))},64:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"b",(function(){return l}));var r=n(184);function o(e,t){const n=e.toObject(t,{defaults:!0,oneofs:!0});return Object(r.a)(n)}function i(e,t,n){const r=e.get(t);if(r in n)return n[r](e.get(r));if(n._else)return n._else();throw new Error(`Cannot handle ${t} "${r}".`)}function a(e,t,n){const r=e.get(t);if(r in n)return e.update(r,n[r]);throw new Error(`Cannot handle ${t} "${r}".`)}function l(e,t,n){const r=e.get(t);if(r in n)return n[r];throw new Error(`Cannot handle ${t} "${r}".`)}},66:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"e",(function(){return s}));const r={sansSerif:'"Source Sans Pro", sans-serif',monospace:'"Source Code Pro", monospace',serif:'"Source Serif Pro", serif'},o={bodyFont:r.sansSerif,codeFont:r.monospace,headingFont:r.sansSerif},i={twoSm:"12px",sm:"14px",md:"1rem",mdLg:"1.125rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.75rem",threeXL:"2.25rem",fourXL:"2.75rem",twoSmPx:12,smPx:14},a={normal:400,bold:600,extrabold:700},l={normal:"normal",none:1,tight:1.25,table:1.5,base:1.6,menuItem:2},s={tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"}},67:function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return j})),n.d(t,"k",(function(){return S})),n.d(t,"d",(function(){return k})),n.d(t,"e",(function(){return I})),n.d(t,"o",(function(){return V})),n.d(t,"n",(function(){return T})),n.d(t,"f",(function(){return A})),n.d(t,"i",(function(){return D})),n.d(t,"g",(function(){return R})),n.d(t,"m",(function(){return M})),n.d(t,"l",(function(){return F})),n.d(t,"h",(function(){return B})),n.d(t,"c",(function(){return _})),n.d(t,"j",(function(){return z}));var r=n(307),o=n(1130),i=n(20),a=n(221),l=n.n(a),s=n(428),c=n.n(s),u=n(299),d=n.n(u),p=n(218),h=n.n(p),f=n(15),b=n(19);const m=`stActiveTheme-${window.location.pathname}`,g={CACHED_THEME_VERSION:1,CACHED_THEME_BASE_KEY:m,ACTIVE_THEME:`${m}-v1`};var y=n(18),O=n(66);const w="Use system setting",j="Custom Theme",S=e=>Object(y.createPresetThemes)().map((e=>e.name)).includes(e.name),x=e=>{const t=Object.keys(O.c).find((t=>O.c[t]===e)),n=f.e.FontFamily.SANS_SERIF;if(t){const e=c()(t).toUpperCase();return e in f.e.FontFamily?f.e.FontFamily[e]:n}return n},v=e=>null!==e&&void 0!==e&&e in f.e.FontFamily?O.c[l()(f.e.FontFamily[e].toString())]:void 0,k=(e,t=r.a)=>Object(o.a)(((e,t)=>{const{colors:n,genericFonts:r}=t;return{...e,primaryFontFamily:r.bodyFont,primary100:n.primary,primary200:n.primary,primary300:n.primary,primary400:n.primary,primary500:n.primary,primary600:n.primary,primary700:n.primary,mono100:n.bgColor,mono200:n.secondaryBg,mono300:n.lightGray,mono400:n.lightGray,mono500:n.gray,mono600:n.fadedText40,mono700:n.gray,mono800:n.bodyText,mono900:n.bodyText,mono1000:n.black,rating200:"#FFE1A5",rating400:"#FFC043"}})(t,e),(e=>{const{inSidebar:t,colors:n,genericFonts:r,fontSizes:o,lineHeights:a,radii:l}=e,s={fontFamily:r.bodyFont,fontSize:o.md,fontSizeSm:o.sm,fontWeight:"normal",lineHeight:a.base,lineHeightTight:a.tight};return{borders:{radius100:l.md,radius200:l.md,radius300:l.md,radius400:l.md,buttonBorderRadius:l.md,inputBorderRadius:l.md,popoverBorderRadius:l.md,surfaceBorderRadius:l.md},typography:{font100:{},font150:{...s},font200:{},font250:{},font300:{...s},font350:{...s},font400:{...s},font450:{...s},font460:{...s},font470:{...s},font500:{...s},font600:{},LabelXSmall:{...s},LabelSmall:{...s},LabelMedium:{...s},LabelLarge:{...s},ParagraphSmall:{...s}},colors:{white:n.white,black:n.black,primary:n.primary,primaryA:n.primary,backgroundPrimary:n.bgColor,backgroundSecondary:n.secondaryBg,backgroundTertiary:n.bgColor,borderOpaque:n.darkenedBgMix25,accent:Object(i.g)(n.primary,.5),tagPrimarySolidBackground:n.primary,tagPrimaryFontDisabled:n.fadedText40,tagPrimaryOutlinedDisabled:n.transparent,borderFocus:n.primary,contentPrimary:n.bodyText,inputPlaceholder:n.fadedText60,tickFillDisabled:n.fadedText40,tickMarkFill:n.lightestGray,tickFillSelected:n.primary,datepickerBackground:t?n.secondaryBg:n.bgColor,calendarBackground:t?n.secondaryBg:n.bgColor,calendarForeground:n.bodyText,calendarDayForegroundPseudoSelected:n.bodyText,calendarHeaderBackground:t?n.bgColor:n.secondaryBg,calendarHeaderBackgroundActive:t?n.bgColor:n.secondaryBg,calendarHeaderForeground:n.bodyText,calendarHeaderForegroundDisabled:n.gray40,calendarDayBackgroundSelected:n.primary,calendarDayBackgroundSelectedHighlighted:n.primary,calendarDayForegroundSelected:n.white,calendarDayForegroundSelectedHighlighted:n.white,calendarDayForegroundPseudoSelectedHighlighted:n.bodyText,menuFontHighlighted:n.bodyText,modalCloseColor:n.bodyText,notificationInfoBackground:n.alertInfoBackgroundColor,notificationInfoText:n.alertInfoTextColor,notificationPositiveBackground:n.alertSuccessBackgroundColor,notificationPositiveText:n.alertSuccessTextColor,notificationWarningBackground:n.alertWarningBackgroundColor,notificationWarningText:n.alertWarningTextColor,notificationNegativeBackground:n.alertErrorBackgroundColor,notificationNegativeText:n.alertErrorTextColor,progressbarTrackFill:n.secondaryBg,tickFill:n.lightenedBg05,tickMarkFillDisabled:n.lightenedBg05,menuFill:e.inSidebar?n.secondaryBg:n.bgColor,buttonDisabledFill:n.lightenedBg05,tickFillHover:n.secondaryBg,inputFillDisabled:n.secondaryBg,inputFillActive:n.secondaryBg,toggleTrackFillDisabled:n.secondaryBg,tickFillActive:n.secondaryBg,sliderTrackFillDisabled:n.secondaryBg,inputBorder:n.secondaryBg,inputFill:n.secondaryBg,inputEnhanceFill:n.secondaryBg,inputEnhancerFillDisabled:n.secondaryBg,buttonDisabledSpinnerBackground:n.gray40,toggleTrackFill:n.gray40,sliderTrackFill:n.gray40,sliderHandleInnerFill:n.gray40,sliderHandleInnerFillDisabled:n.gray40}}})(e)),P=e=>{const{bodyText:t,secondaryBg:n,bgColor:r}=e,o=Object(i.b)(r)>.5,a=o?e.blue:Object(i.c)(e.blue,.2),l=Object(i.g)(t,.9),s=Object(i.g)(t,.8),c=Object(i.g)(t,.7),u=Object(i.g)(t,.6),d=Object(i.g)(t,.4),p=Object(i.d)(r,n,.5),h=o?Object(i.a)(p,.3):Object(i.c)(p,.6);return{linkText:a,fadedText05:l,fadedText10:s,fadedText20:c,fadedText40:u,fadedText60:d,bgMix:p,darkenedBgMix100:h,darkenedBgMix25:Object(i.g)(h,.75),darkenedBgMix15:Object(i.g)(h,.85),lightenedBg05:Object(i.c)(r,.025)}},I=e=>{const t=P(e);return{...e,...t,alertErrorBorderColor:e.dangerBg,alertErrorBackgroundColor:e.dangerBg,alertErrorTextColor:e.danger,alertInfoBorderColor:e.infoBg,alertInfoBackgroundColor:e.infoBg,alertInfoTextColor:e.info,alertSuccessBorderColor:e.successBg,alertSuccessBackgroundColor:e.successBg,alertSuccessTextColor:e.success,alertWarningBorderColor:e.warningBg,alertWarningBackgroundColor:e.warningBg,alertWarningTextColor:e.warning,codeTextColor:e.green80,codeHighlightColor:t.bgMix,docStringModuleText:e.bodyText,docStringContainerBackground:Object(i.g)(e.secondaryBg,.6),headingColor:e.bodyText}},C=e=>{const t=(new Option).style;return t.color=e,""!==t.color},V=e=>{const{colors:t,genericFonts:n}=e;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,font:x(n.bodyFont)}},T=e=>{const{genericColors:t}=e,n=V(e);return{primaryColor:n.primaryColor,backgroundColor:n.backgroundColor,secondaryBackgroundColor:n.secondaryBackgroundColor,textColor:n.textColor,base:(r=n.backgroundColor,void 0===r||Object(i.b)(r)>.5?"light":"dark"),font:v(n.font),...P(t)};var r},E=(e,t)=>new f.e({...V(t.emotion),...e}),A=(e,t,n,r=!1)=>{const o=(t=n?E(t,n):t.base===f.e.BaseTheme.DARK?E(t,y.darkTheme):E(t,y.lightTheme)).backgroundColor,a=h()(d()(Object(i.b)(o)>.5?y.lightTheme:y.darkTheme),{emotion:{inSidebar:r}}),l=((e,t=y.baseTheme)=>{const{genericColors:n,genericFonts:r}=t.emotion,{font:o,...i}=e,a=v(o),l=Object.entries(i).reduce(((e,[t,n])=>(C(n)?e[t]=n:C(`#${n}`)&&(e[t]=`#${n}`),e)),{}),{secondaryBackgroundColor:s,backgroundColor:c,primaryColor:u,textColor:d}=l,p={...n,...u&&{primary:u},...d&&{bodyText:d},...s&&{secondaryBg:s},...c&&{bgColor:c}};return{...t.emotion,colors:I(p),genericColors:p,genericFonts:{...r,...a&&{bodyFont:a,headingFont:a}}}})(t,a);return{...a,name:e,emotion:l,basewebTheme:k(l,a.primitives)}},D=()=>window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?y.darkTheme:y.lightTheme,N=()=>{const e="testData";try{const{localStorage:t}=window;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch(t){return!1}return!0},R=()=>{if(!N())return null;const e=window.localStorage.getItem(g.ACTIVE_THEME);if(!e)return null;const{name:t,themeInput:n}=JSON.parse(e);switch(t){case y.lightTheme.name:return y.lightTheme;case y.darkTheme.name:return y.darkTheme;default:return A(t,n)}},M=e=>{if(!N())return;(()=>{const{CACHED_THEME_VERSION:e,CACHED_THEME_BASE_KEY:t}=g,{localStorage:n}=window;n.removeItem("stActiveTheme"),n.removeItem(t);for(let r=1;r<e;r++)n.removeItem(`${t}-v${e}`)})();const t={name:e.name,...!S(e)&&{themeInput:V(e.emotion)}};window.localStorage.setItem(g.ACTIVE_THEME,JSON.stringify(t))},F=()=>{N()&&window.localStorage.removeItem(g.ACTIVE_THEME)},B=()=>{const e=R();return e&&e.name!==w?e:Object(y.createAutoTheme)()},L=/\s+/;function _(e,t){return""===e?"":e.split(L).map((e=>"0"===e?t.spacing.none:e in t.spacing?t.spacing[e]:(Object(b.b)(`Invalid spacing value: ${e}`),t.spacing.none))).join(" ")}function z(e){return Object(i.b)(e.colors.bgColor)>.5}},68:function(e,t,n){"use strict";n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return i}));const r=8501,o=3e3===+window.location.port,i=!1},75:function(e,t,n){"use strict";function r(e){return e instanceof Error?e:new Error(`${e}`)}n.d(t,"a",(function(){return r}))},85:function(e,t,n){"use strict";n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return c})),n.d(t,"e",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"d",(function(){return f}));n(36);var r=n(68),o=n(425),i=n.n(o);const a=/\/+$/,l=/^\/+/;function s(){const e=window.location.hostname;let t;t=r.a?r.c:window.location.port?Number(window.location.port):d()?443:80;return{host:e,port:t,basePath:window.location.pathname.replace(a,"").replace(l,"")}}function c({host:e,port:t,basePath:n},r){return`${d()?"https":"http"}://${e}:${t}/${u(n,r)}`}function u(e,t){return e=e.replace(a,"").replace(l,""),t=t.replace(a,"").replace(l,""),0===e.length?t:`${e}/${t}`}function d(){return window.location.href.startsWith("https://")}function p(e){const t=e.substring("data:image/svg+xml,".length);return i.a.sanitize(t,{})}function h(e,t){return t||(t=s()),e.startsWith("/media")?c(t,e):e}function f(e,t){if(e===t)return!0;const n=e.split("."),r=t.split(".");return n.length===r.length&&n.every(((e,t)=>"*"===e||e===r[t]))}},88:function(e,t,n){"use strict";n.d(t,"d",(function(){return f})),n.d(t,"a",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"e",(function(){return R})),n.d(t,"f",(function(){return F})),n.d(t,"i",(function(){return B})),n.d(t,"h",(function(){return L})),n.d(t,"j",(function(){return _})),n.d(t,"g",(function(){return z})),n.d(t,"b",(function(){return G}));var r=n(298),o=n(156);function i(e,t){if(function(e){try{return new URL(e),!0}catch(t){return!1}}(e))return e;if(e.startsWith("./")){if(null==t)throw new Error("baseUrl is null");return o.URLExt.join(t,e)}const n=t?new URL(t).origin:window.location.origin;return o.URLExt.join(n,e)}var a=n.p+"pypi/tornado-6.2-py3-none-any.whl",l=n.p+"pypi/stlite_pyarrow-0.1.0-py3-none-any.whl",s=n.p+"pypi/streamlit-1.13.0-py2.py3-none-any.whl",c=n(424),u=n.n(c);function d(){return u()('!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=3)}([function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var s=i>=0?arguments[i]:e.cwd();if("string"!==typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,o="/"===s.charAt(0))}return(o?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),s="/"===o(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&s&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var o=r(e.split("/")),i=r(n.split("/")),s=Math.min(o.length,i.length),a=s,l=0;l<s;l++)if(o[l]!==i[l]){a=l;break}var c=[];for(l=a;l<o.length;l++)c.push("..");return(c=c.concat(i.slice(a))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),n=47===t,r=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){r=i;break}}else o=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){n=t+1;break}}else-1===r&&(o=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,o=!0,i=0,s=e.length-1;s>=0;--s){var a=e.charCodeAt(s);if(47!==a)-1===r&&(o=!1,r=s+1),46===a?-1===t?t=s:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){n=s+1;break}}return-1===t||-1===r||0===i||1===i&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(2))},function(e,t,n){!function(e){"use strict";e.JSONExt=void 0,function(e){function t(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function r(e){return!t(e)&&!n(e)}function o(e,r){if(e===r)return!0;if(t(e)||t(r))return!1;var o=n(e),i=n(r);return o===i&&(o&&i?s(e,r):a(e,r))}function i(e){return t(e)?e:n(e)?l(e):c(e)}function s(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;++n)if(!o(e[n],t[n]))return!1;return!0}function a(e,t){if(e===t)return!0;for(var n in e)if(void 0!==e[n]&&!(n in t))return!1;for(var n in t)if(void 0!==t[n]&&!(n in e))return!1;for(var n in e){var r=e[n],i=t[n];if(void 0!==r||void 0!==i){if(void 0===r||void 0===i)return!1;if(!o(r,i))return!1}}return!0}function l(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=i(e[n]);return t}function c(e){var t={};for(var n in e){var r=e[n];void 0!==r&&(t[n]=i(r))}return t}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=r,e.deepEqual=o,e.deepCopy=i}(e.JSONExt||(e.JSONExt={}));var t=function(){function e(){this._types=[],this._values=[]}return e.prototype.types=function(){return this._types.slice()},e.prototype.hasData=function(e){return-1!==this._types.indexOf(e)},e.prototype.getData=function(e){var t=this._types.indexOf(e);return-1!==t?this._values[t]:void 0},e.prototype.setData=function(e,t){this.clearData(e),this._types.push(e),this._values.push(t)},e.prototype.clearData=function(e){var t=this._types.indexOf(e);-1!==t&&(this._types.splice(t,1),this._values.splice(t,1))},e.prototype.clear=function(){this._types.length=0,this._values.length=0},e}(),n=function(){function e(){var e=this;this.promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return e.prototype.resolve=function(e){(0,this._resolve)(e)},e.prototype.reject=function(e){(0,this._reject)(e)},e}(),r=function(){function e(e){this.name=e,this._tokenStructuralPropertyT=null}return e}();function o(e){for(var t=0,n=0,r=e.length;n<r;++n)n%4===0&&(t=4294967295*Math.random()>>>0),e[n]=255&t,t>>>=8}function i(e){for(var t=new Uint8Array(16),n=new Array(256),r=0;r<16;++r)n[r]="0"+r.toString(16);for(r=16;r<256;++r)n[r]=r.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}e.Random=void 0,(e.Random||(e.Random={})).getRandomValues=function(){var e="undefined"!==typeof window&&(window.crypto||window.msCrypto)||null;return e&&"function"===typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:o}(),e.UUID=void 0,(e.UUID||(e.UUID={})).uuid4=i(e.Random.getRandomValues),e.MimeData=t,e.PromiseDelegate=n,e.Token=r,Object.defineProperty(e,"__esModule",{value:!0})}(t)},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"===typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var l,c=[],u=!1,d=-1;function p(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&f())}function f(){if(!u){var e=a(p);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d<t;)l&&l[d].run();d=-1,t=c.length}l=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function g(e,t){this.fun=e,this.array=t}function h(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new g(e,t)),1!==c.length||u||a(f)},g.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=h,o.addListener=h,o.once=h,o.off=h,o.removeListener=h,o.removeAllListeners=h,o.emit=h,o.prependListener=h,o.prependOnceListener=h,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(0),i=n.n(o);function s(e,t){const n=i.a.normalize(t),r=i.a.dirname(n).split("/"),o=[];for(const i of r){o.push(i);const t=o.join("/");if(e.FS.analyzePath(t).exists){if(e.FS.isDir(t))throw new Error(`"${t}" already exists and is not a directory.`)}else try{e.FS.mkdir(t)}catch(s){throw console.error(`Failed to create a directory "${t}"`),s}}}function a(e,t,n,r){s(e,t),e.FS.writeFile(t,n,r)}function l(e){e.forEach((e=>{let t;try{t=new URL(e)}catch(n){return}if("emfs:"===t.protocol||"file:"===t.protocol)throw new Error(`"emfs:" and "file:" protocols are not allowed for the requirement (${e})`)}))}var c=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function s(e){try{l(r.next(e))}catch(t){i(t)}}function a(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}l((r=r.apply(e,t||[])).next())}))};let u,d;const p=self,f=new r.PromiseDelegate;function g(e){p.postMessage({type:"event:progress",data:{message:e}})}const h=function(){return c(this,void 0,void 0,(function*(){const{entrypoint:e,files:t,requirements:n,wheels:r,mountedSitePackagesSnapshotFilePath:o,pyodideEntrypointUrl:i}=yield f.promise;if(g("Loading Pyodide."),console.debug("Import the entrypoint script."),importScripts(null!==i&&void 0!==i?i:"https://cdn.jsdelivr.net/pyodide/v0.21.3/full/pyodide.js"),console.debug("Loading Pyodide"),u=yield loadPyodide({stdout:console.log,stderr:console.error}),console.debug("Loaded Pyodide"),g("Mounting files."),Object.keys(t).forEach((e=>{const{data:n,opts:r}=t[e];console.debug(`Write a file "${e}"`),a(u,e,n,r)})),g("Loading the initially required packages."),console.debug("Loading the initially necessary packages"),yield u.loadPackage(["ssl"]),console.debug("Loaded the initially necessary packages"),o)g("Restoring the snapshot."),yield u.runPythonAsync("import tarfile, shutil, site"),yield u.runPythonAsync("\\n site_packages_dirs = site.getsitepackages()\\n for site_packages in site_packages_dirs:\\n shutil.rmtree(site_packages)\\n "),console.debug(`Unarchive ${o}`),yield u.runPythonAsync(`\\n with tarfile.open("${o}", "r") as tar_gz_file:\\n tar_gz_file.extractall("/")\\n `),console.debug("Restored the snapshot");else{if(!r)throw new Error("Neither snapshot nor wheel files are provided.");{g("Installing streamlit and its dependencies."),console.debug("Loading tornado, pyarrow, and streamlit"),yield u.loadPackage("micropip");const e=u.pyimport("micropip");yield e.install.callKwargs([r.tornado,r.pyarrow],{keep_going:!0}),yield e.install.callKwargs([r.streamlit],{keep_going:!0}),console.debug("Loaded tornado, pyarrow, and streamlit"),g("Installing the requirements."),console.debug("Installing the requirements:",n),l(n),yield e.install.callKwargs(n,{keep_going:!0}),console.debug("Installed the requirements:",n)}}yield u.runPythonAsync("\\n import importlib\\n importlib.invalidate_caches()\\n "),g("Loading streamlit package."),console.debug("Loading the Streamlit package"),yield u.runPythonAsync("\\n import streamlit.runtime\\n import streamlit.web\\n "),console.debug("Loaded the Streamlit package"),g("Setting up the loggers."),console.debug("Setting the loggers"),yield u.runPythonAsync("\\n import logging\\n import streamlit.logger\\n\\n streamlit.logger.get_logger = logging.getLogger\\n streamlit.logger.setup_formatter = None\\n streamlit.logger.update_formatter = lambda *a, **k: None\\n streamlit.logger.set_log_level = lambda *a, **k: None\\n ");self.__logCallback__=e=>{e.startsWith("CRITICAL")||e.startsWith("ERROR")?console.error(e):e.startsWith("WARNING")?console.warn(e):e.startsWith("INFO")?console.info(e):e.startsWith("DEBUG")?console.debug(e):console.log(e)},yield u.runPythonAsync(\'\\n from js import __logCallback__\\n\\n\\n class JsHandler(logging.Handler):\\n def emit(self, record):\\n msg = self.format(record)\\n __logCallback__(msg)\\n\\n\\n main_formatter = logging.Formatter("%(levelname)s:%(name)s:%(message)s")\\n\\n js_handler = JsHandler()\\n js_handler.setFormatter(main_formatter)\\n\\n root_logger = logging.getLogger()\\n root_logger.handlers.clear()\\n root_logger.addHandler(js_handler)\\n root_logger.setLevel(logging.DEBUG)\\n\\n streamlit_handler = logging.getLogger("streamlit")\\n streamlit_handler.setLevel(logging.DEBUG)\\n \'),console.debug("Set the loggers"),g("Mocking some Streamlit functions for the browser environment."),console.debug("Mocking some Streamlit functions"),yield u.runPythonAsync("\\n import streamlit\\n import contextlib\\n\\n @contextlib.contextmanager\\n def spinner(*args, **kwargs):\\n yield\\n\\n streamlit.spinner = spinner\\n "),console.debug("Mocked some Streamlit functions"),g("Booting up the Streamlit server."),console.debug("Defining the bootstrap functions"),yield u.runPythonAsync(\'\\n import asyncio\\n import os\\n import streamlit\\n import streamlit.web.bootstrap as bootstrap\\n from streamlit.web.server import Server\\n\\n\\n class BadArgumentUsage(Exception):\\n pass\\n\\n\\n class BadParameter(Exception):\\n pass\\n\\n\\n # Mimic streamlit.web.bootstrap.run() but exclude some code unnecessary for stlite environment\\n def run(\\n main_script_path,\\n command_line,\\n args,\\n flag_options,\\n ) -> None:\\n bootstrap._fix_sys_path(main_script_path)\\n bootstrap._fix_matplotlib_crash()\\n bootstrap._fix_sys_argv(main_script_path, args)\\n bootstrap._fix_pydeck_mapbox_api_warning()\\n bootstrap._install_pages_watcher(main_script_path)\\n\\n # Create the server. It won\\\'t start running yet.\\n server = Server(main_script_path, command_line)\\n\\n # Run the server.\\n asyncio.get_event_loop().create_task(server.start())\\n\\n\\n def _get_command_line_as_string():\\n return "" # TODO\\n\\n\\n def _main_run(file, args=None, flag_options=None):\\n if args is None:\\n args = []\\n\\n if flag_options is None:\\n flag_options = {}\\n\\n command_line = _get_command_line_as_string()\\n\\n # Set a global flag indicating that we\\\'re "within" streamlit.\\n streamlit._is_running_with_streamlit = True\\n\\n # check_credentials() # Disable credential check on Pyodide\\n\\n run(file, command_line, args, flag_options) # Call this customized run function instead of the original bootstrap.run.\\n\\n\\n def main_hello(**kwargs):\\n """Runs the Hello World script."""\\n from streamlit.hello import Hello\\n\\n bootstrap.load_config_options(flag_options=kwargs)\\n filename = Hello.__file__\\n _main_run(filename, flag_options=kwargs)\\n\\n\\n ACCEPTED_FILE_EXTENSIONS = ("py", "py3")\\n\\n\\n def main_run(target, args=None, **kwargs):\\n """Run a Python script, piping stderr to Streamlit.\\n\\n The script can be local or it can be an url. In the latter case, Streamlit\\n will download the script to a temporary file and runs this file.\\n\\n """\\n bootstrap.load_config_options(flag_options=kwargs)\\n\\n _, extension = os.path.splitext(target)\\n if extension[1:] not in ACCEPTED_FILE_EXTENSIONS:\\n if extension[1:] == "":\\n raise BadArgumentUsage(\\n "Streamlit requires raw Python (.py) files, but the provided file has no extension.\\\\nFor more information, please see https://docs.streamlit.io"\\n )\\n else:\\n raise BadArgumentUsage(\\n "Streamlit requires raw Python (.py) files, not %s.\\\\nFor more information, please see https://docs.streamlit.io"\\n % extension\\n )\\n\\n # stlite deals with the URL input in the JS layer,\\n # so Python code does not take care of it and\\n # `target` here can be assumed to be a file path, not a URL.\\n\\n if not os.path.exists(target):\\n raise BadParameter("File does not exist: {}".format(target))\\n _main_run(target, args, flag_options=kwargs)\\n \'),console.debug("Defined the bootstrap functions"),console.debug("Booting up the Streamlit server"),yield u.runPythonAsync(\'\\n command_kwargs = {\\n "server.headless": True, # Not to open the browser after launching\\n "global.dataFrameSerialization": "legacy", # Not to use PyArrow\\n "server.enableXsrfProtection": False, # Disable XSRF protection as it relies on cookies\\n "browser.gatherUsageStats": False,\\n }\\n \'),yield u.runPythonAsync(`main_run("${e}", **command_kwargs)`),console.debug("Booted up the Streamlit server"),console.debug("Setting up the HTTP server"),yield u.runPythonAsync("\\n from tornado.httpserver import HTTP_SERVER\\n "),d=u.globals.get("HTTP_SERVER").copy(),console.debug("Set up the HTTP server"),p.postMessage({type:"event:loaded"})}))}().catch((e=>{throw p.postMessage({type:"event:error",data:{error:e}}),e}));self.onmessage=e=>c(void 0,void 0,void 0,(function*(){const t=e.data;if("initData"===t.type)return void f.resolve(t.data);yield h;const n=e.ports[0];try{switch(t.type){case"websocket:connect":{console.debug("websocket:connect",t.data);const{path:e}=t.data;d.start_websocket(e,((e,t)=>{if(t){const t=e.getBuffer("u8");e.destroy();const n=new Uint8ClampedArray(t.data.buffer,t.data.byteOffset,t.data.byteLength);p.postMessage({type:"websocket:message",data:{payload:new Uint8Array(n)}})}else p.postMessage({type:"websocket:message",data:{payload:e}})})),n.postMessage({type:"reply"});break}case"websocket:send":{console.debug("websocket:send",t.data);const{payload:e}=t.data;d.receive_websocket_from_js(e);break}case"http:request":{console.debug("http:request",t.data);const{request:e}=t.data,r=(e,t,r)=>{const o=t.toJs(),i=r.toJs();console.debug({statusCode:e,headers:o,body:i});const s={type:"http:response",data:{response:{statusCode:e,headers:o,body:i}}};n.postMessage(s)};d.receive_http_from_js(e.method,e.path,e.headers,e.body,r);break}case"file:write":{const{path:e,data:r,opts:o}=t.data;console.debug(`Write a file "${e}"`),a(u,e,r,o),n.postMessage({type:"reply"});break}case"file:rename":{const{oldPath:e,newPath:r}=t.data;console.debug(`Rename "${e}" to ${r}`),function(e,t,n){s(e,n),e.FS.rename(t,n)}(u,e,r),n.postMessage({type:"reply"});break}case"file:unlink":{const{path:e}=t.data;console.debug(`Remove "${e}`),u.FS.unlink(e),n.postMessage({type:"reply"});break}case"install":{const{requirements:e}=t.data,r=u.pyimport("micropip");console.debug("Install the requirements:",e),l(e),yield r.install.callKwargs(e,{keep_going:!0}).then((()=>{if(e.includes("matplotlib"))return u.runPythonAsync("\\n bootstrap._fix_matplotlib_crash()\\n ")})).then((()=>{console.debug("Successfully installed"),n.postMessage({type:"reply"})}))}}}catch(r){n.postMessage({type:"reply",error:r})}})),p.postMessage({type:"event:start"})}]);\n',"Worker",void 0,void 0)}const p=/\/+$/,h=/^\/+/;class f{constructor(e){var t;let n;if(this._isDisposed=!1,this._loaded=new r.PromiseDelegate,this.handleWebSocketMessage=null,this.basePath=(null!==(t=e.basePath)&&void 0!==t?t:window.location.pathname).replace(p,"").replace(h,""),this.onProgress=e.onProgress,this.onLoad=e.onLoad,this.onError=e.onError,this._worker=new d,this._worker.onmessage=e=>{this._processWorkerMessage(e.data)},null==e.mountedSitePackagesSnapshotFilePath){console.debug("Custom wheel URLs:",{TORNADO_WHEEL:a,PYARROW_WHEEL:l,STREAMLIT_WHEEL:s});n={tornado:i(a,e.wheelBaseUrl),pyarrow:i(l,e.wheelBaseUrl),streamlit:i(s,e.wheelBaseUrl)},console.debug("Custom wheel resolved URLs:",n)}this._workerInitData={entrypoint:e.entrypoint,files:e.files,requirements:e.requirements,pyodideEntrypointUrl:e.pyodideEntrypointUrl,wheels:n,mountedSitePackagesSnapshotFilePath:e.mountedSitePackagesSnapshotFilePath}}get loaded(){return this._loaded.promise}connectWebSocket(e){return this._asyncPostMessage({type:"websocket:connect",data:{path:e}})}sendWebSocketMessage(e){this._worker.postMessage({type:"websocket:send",data:{payload:e}})}onWebSocketMessage(e){this.handleWebSocketMessage=e}sendHttpRequest(e){return this._asyncPostMessage({type:"http:request",data:{request:e}},"http:response").then((e=>e.response))}writeFile(e,t,n){return this._asyncPostMessage({type:"file:write",data:{path:e,data:t,opts:n}})}renameFile(e,t){return this._asyncPostMessage({type:"file:rename",data:{oldPath:e,newPath:t}})}unlink(e){return this._asyncPostMessage({type:"file:unlink",data:{path:e}})}install(e){return this._asyncPostMessage({type:"install",data:{requirements:e}})}_asyncPostMessage(e,t="reply"){return new Promise(((n,r)=>{const o=new MessageChannel;o.port1.onmessage=e=>{o.port1.close();const i=e.data;if(i.error)r(i.error);else{if(i.type!==t)throw new Error(`Unexpected reply type "${i.type}"`);n(i.data)}},this._worker.postMessage(e,[o.port2])}))}_processWorkerMessage(e){switch(e.type){case"event:start":this._worker.postMessage({type:"initData",data:this._workerInitData});break;case"event:progress":this.onProgress&&this.onProgress(e.data.message);break;case"event:error":this.onError&&this.onError(e.data.error);break;case"event:loaded":this._loaded.resolve(),this.onLoad&&this.onLoad();break;case"websocket:message":{const{payload:t}=e.data;this.handleWebSocketMessage&&this.handleWebSocketMessage(t);break}}}get isDisposed(){return this._isDisposed}dispose(){this.isDisposed||(this._worker.terminate(),this._isDisposed=!0)}}var b=n(15),m=n(58),g=n(19),y=n(85),O=n(75);class w{getAge(e){return e-this.scriptRunCount}constructor(e,t){this.encodedMsg=void 0,this.scriptRunCount=0,this.encodedMsg=e,this.scriptRunCount=t}}class j{constructor(e){this.messages=new Map,this.getServerUri=void 0,this.scriptRunCount=0,this.getServerUri=e}incrementRunCount(e){this.scriptRunCount+=1,this.messages.forEach(((t,n)=>{t.getAge(this.scriptRunCount)>e&&(Object(g.c)(`Removing expired ForwardMsg [hash=${n}]`),this.messages.delete(n))}))}async processMessagePayload(e,t){if(this.maybeCacheMessage(e,t),"refHash"!==e.type)return e;let n=this.getCachedMessage(e.refHash,!0);if(null!=n)Object(g.c)(`Cached ForwardMsg HIT [hash=${e.refHash}]`);else{Object(g.c)(`Cached ForwardMsg MISS [hash=${e.refHash}]`);const t=await this.fetchMessagePayload(e.refHash);try{n=b.i.decode(t)}catch(r){throw new Error(`Failed to decode ForwardMsg (hash=${e.refHash}): ${Object(O.a)(r).message}`)}this.maybeCacheMessage(n,t)}if(!e.metadata)throw new Error("ForwardMsg has no metadata");return n.metadata=b.i.decode(t).metadata,n}async fetchMessagePayload(e){const t=this.getServerUri();if(void 0===t)throw new Error("Cannot retrieve uncached message: not connected to a server");const n=Object(y.a)(t,`message?hash=${e}`),r=await fetch(n);if(!r.ok)throw new Error(`Failed to retrieve ForwardMsg (hash=${e}): ${r.statusText}`);const o=await r.arrayBuffer();return new Uint8Array(o)}maybeCacheMessage(e,t){"refHash"!==e.type&&e.metadata&&e.metadata.cacheable&&void 0===this.getCachedMessage(e.hash,!0)&&(Object(g.c)(`Caching ForwardMsg [hash=${e.hash}]`),this.messages.set(e.hash,new w(t,this.scriptRunCount)))}getCachedMessage(e,t){const n=this.messages.get(e);if(null!=n)return t&&(n.scriptRunCount=this.scriptRunCount),b.i.decode(n.encodedMsg)}}const S="xxx:"+99999..toString();var x=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};class v{constructor(e){this.connectionState=m.a.INITIAL,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.setConnectionState=(e,t)=>{this.connectionState!==e&&(this.connectionState=e,this.props.connectionStateChanged(e)),(t||e===m.a.DISCONNECTED_FOREVER)&&this.props.onConnectionError(t||"unknown")},this.props=e,this.cache=new j((()=>this.getBaseUriParts())),this.props.kernel.onWebSocketMessage((e=>{"string"!==typeof e?this.handleMessage(e):console.error("Unexpected payload type.")})),this.props.kernel.loaded.then((()=>{console.log("The kernel has been loaded. Start connecting."),this.connect()}))}isConnected(){return this.connectionState===m.a.CONNECTED}getBaseUriParts(){if(this.connectionState===m.a.CONNECTED)return{host:"xxx",port:99999,basePath:this.props.kernel.basePath}}sendMessage(e){this.isConnected()?this.props.kernel.sendWebSocketMessage(b.c.encode(b.c.create(e)).finish()):console.error(`Cannot send message when server is disconnected: ${e}`)}incrementMessageCacheRunCount(e){this.cache.incrementRunCount(e)}handleMessage(e){return x(this,void 0,void 0,(function*(){const t=this.nextMessageIndex;this.nextMessageIndex+=1;const n=new Uint8Array(e),r=b.i.decode(n);for(this.messageQueue[t]=yield this.cache.processMessagePayload(r,n);this.lastDispatchedMessageIndex+1 in this.messageQueue;){const e=this.lastDispatchedMessageIndex+1;this.props.onMessage(this.messageQueue[e]),delete this.messageQueue[e],this.lastDispatchedMessageIndex=e}}))}connect(){return x(this,void 0,void 0,(function*(){try{yield this.props.kernel.connectWebSocket("/stream"),this.setConnectionState(m.a.CONNECTED)}catch(e){const t=Object(O.a)(e);console.error(t.message),this.setConnectionState(m.a.DISCONNECTED_FOREVER,t.message)}}))}}var k=n(35),P=n(36),I=n.n(P),C=n(1156),V=n(33),T=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((r=r.apply(e,t||[])).next())}))};class E{constructor(e){this.formsWithPendingRequests=new Map,this.pendingFormUploadsChanged=e.formsWithPendingRequestsChanged}setKernel(e){this.kernel=e}uploadFile(e,t,n,r){return T(this,void 0,void 0,(function*(){const n=new FormData;n.append("sessionId",k.a.current.sessionId),n.append("widgetId",e.id),n.append(t.name,t),this.offsetPendingRequestCount(e.formId,1);const r=new C.a(n);return new Blob(r,{type:r.contentType}).arrayBuffer().then((t=>{if(null==this.kernel)throw new Error("Kernel not ready");return this.kernel.sendHttpRequest({method:"POST",path:"/upload_file",body:t,headers:Object.assign({},r.headers)}).then((e=>{const t=(new TextDecoder).decode(e.body);if("number"===typeof t)return t;if("string"===typeof t){const e=parseInt(t,10);if(!Number.isNaN(e))return e}throw new Error(`Bad uploadFile response: expected a number but got '${t}'`)})).finally((()=>this.offsetPendingRequestCount(e.formId,-1)))}))}))}getFormIdSet(){return new Set(this.formsWithPendingRequests.keys())}offsetPendingRequestCount(e,t){var n;if(0===t)return;if(!Object(V.i)(e))return;const r=null!==(n=this.formsWithPendingRequests.get(e))&&void 0!==n?n:0,o=r+t;if(o<0)throw new Error(`Can't offset pendingRequestCount below 0 (formId=${e}, curCount=${r}, offset=${t})`);const i=this.getFormIdSet();0===o?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,o);const a=this.getFormIdSet();I.a.isEqual(a,i)||this.pendingFormUploadsChanged(a)}}var A=n(1),D=n(0),N=n.n(D);const R=N.a.createContext(void 0),M=R.Provider;function F(e){const{children:t,kernel:n}=e,r=Object(D.useMemo)((()=>({kernel:n})),[n]);return Object(A.jsx)(M,Object.assign({value:r},{children:t}))}function B(){const e=Object(D.useContext)(R);if(null==e)throw new Error("useStliteKernel() must be inside <StliteKernelProvider />");return e.kernel}function L(e){const[t,n]=Object(D.useState)(e),r=B();return Object(D.useEffect)((()=>{if(null==r)return;let t=!1;const o=[],i=e.map((e=>{const n=e;return n.url.startsWith("/media")?r.sendHttpRequest({method:"GET",path:n.url,headers:{},body:""}).then((({statusCode:e,headers:r,body:i})=>{if(t)return n;if(200!==e)return n;const a=new Blob([i],{type:r.get("Content-Type")}),l=URL.createObjectURL(a);return o.push(l),new b.l(Object.assign(Object.assign({},n),{url:l}))})):n}));return Promise.all(i).then((e=>{t||n(e)})),()=>{t=!0,o.forEach((e=>{URL.revokeObjectURL(e)}))}}),[r,e]),t}function _(e){const t=B(),[n,r]=Object(D.useState)(e);return Object(D.useEffect)((()=>{if(null==t)return;if(!e.startsWith("/media"))return;let n,o=!1;return t.sendHttpRequest({method:"GET",path:e,headers:{},body:""}).then((({statusCode:e,headers:t,body:i})=>{if(o)return;if(200!==e)return;const a=new Blob([i],{type:t.get("Content-Type")});n=URL.createObjectURL(a),r(n)})),()=>{o=!0,null!=n&&URL.revokeObjectURL(n)}}),[t,e]),n}function z(e,t){e.sendHttpRequest({method:"GET",path:`${t}?title=${encodeURIComponent(document.title)}`,headers:{},body:""}).then((({statusCode:e,headers:t,body:n})=>{if(200!==e)return;const r=t.get("Content-Disposition"),o=null!=r?function(e){const t=/filename="([^"]*?)"/.exec(e);return null==t?"":t[1]}(r):"",i=new Blob([n],{type:t.get("Content-Type")}),a=URL.createObjectURL(i),l=document.createElement("a");l.setAttribute("href",a),l.setAttribute("target","_blank"),l.setAttribute("download",o),l.click(),URL.revokeObjectURL(a),l.remove()}))}function W(e){const t=e.split("/").slice(0,-1).join("/");return t.startsWith("/")?t:"/"+t}function H(e,t,n){const r=W(t);if(!(n.host===e&&n.pathname.startsWith(r)))return null;const o=n.pathname.slice(r.length);return o.startsWith("/")?o.slice(1):o}var U=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};const $=N.a.forwardRef(((e,t)=>{var{src:n}=e,r=U(e,["src"]);const i=B(),[a,l]=Object(D.useState)();Object(D.useEffect)((()=>{if(null==i)return;if(!n.startsWith("/component"))return;let e=!1;return i.sendHttpRequest({method:"GET",path:n,headers:{},body:""}).then((({statusCode:t,headers:n,body:r})=>{if(e)return;if(200!==t)return;new Blob([r],{type:n.get("Content-Type")}).text().then((t=>{e||l(t)}))})),()=>{e=!0}}),[i,n]);const s=Object(D.useCallback)((e=>{var t;const r=null===(t=e.target.contentWindow)||void 0===t?void 0:t.document;null!=r?function(e,t,n){const r=[],i=t.getElementsByTagName("script");for(const l of i){if(""===l.src)continue;const i=H(window.location.host,window.location.pathname,new URL(l.src));if(null==i)continue;const a=o.URLExt.join(n,i),s=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((({statusCode:e,headers:n,body:r})=>{if(200===e)return new Blob([r],{type:n.get("Content-Type")}).text().then((e=>{const n=t.createElement("script");n.text=e,n.type="text/javascript",n.setAttribute("data-stlite",""),l.replaceWith(n)}))}));r.push(s)}const a=t.querySelectorAll("link[rel=stylesheet]");for(const l of a){const i=H(window.location.host,window.location.pathname,new URL(l.href));if(null==i)continue;const a=o.URLExt.join(n,i),s=e.sendHttpRequest({method:"GET",headers:{},path:a,body:""}).then((({statusCode:e,headers:n,body:r})=>{if(200===e)return new Blob([r],{type:n.get("Content-Type")}).text().then((e=>{const n=t.createElement("style");n.innerHTML=e,n.setAttribute("data-stlite",""),l.replaceWith(n)}))}));r.push(s)}Promise.all(r).then()}(i,r,W(n)):console.warn("document not found in iframe")}),[i,n]);return Object(A.jsx)("iframe",Object.assign({},r,{srcDoc:a,onLoad:s,ref:t}))}));$.displayName="InnerIFrame";const J=N.a.forwardRef(((e,t)=>{const n=function(e,t){const n=(S+"/"+e).replace(/\/$/,""),r=new RegExp(`https?://${n}(/.*?$)`),o=t.match(r);return null==o?null:o[1]}(B().basePath,e.src);return null==n?Object(A.jsx)("iframe",Object.assign({},e,{ref:t})):Object(A.jsx)($,Object.assign({},e,{src:n,ref:t}))}));J.displayName="StliteCustomComponentIFrame";var G=J},89:function(e,t,n){"use strict";var r=n(220);n.d(t,"a",(function(){return r.b}))},94:function(e,t,n){"use strict";n(16);var r=n(66);const o={halfSmFont:r.a.smPx/2+"px",twoThirdsSmFont:2*r.a.smPx/3+"px",px:"1px",none:"0",threeXS:"0.125rem",twoXS:"0.25rem",xs:"0.375rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.25rem",twoXL:"1.5rem",threeXL:"2rem",fourXL:"4rem"},i=1e6,a=1000050,l={hide:-1,auto:"auto",base:0,sidebar:100,menuButton:110,balloons:i,header:999990,sidebarMobile:999995,popupMenu:1000040,fullscreenWrapper:a,tablePortal:1000110};var s=n(249),c=n(67);t.a={inSidebar:!1,breakpoints:{sm:"576px",columns:"640px",md:"768px",lg:"992px",xl:"1200px"},colors:Object(c.e)(s.a),genericColors:s.a,fonts:r.c,fontSizes:r.a,fontWeights:r.b,genericFonts:r.d,iconSizes:{xs:"0.5rem",sm:"0.75rem",md:"0.9rem",lg:"1.25rem",xl:"1.5rem",twoXL:"1.8rem",threeXL:"2.3rem"},lineHeights:r.f,letterSpacings:r.e,radii:{none:"0",sm:"0.125rem",md:"0.25rem",lg:"0.5rem",xl:"0.75rem",full:"9999px"},sizes:{full:"100%",headerHeight:"2.875rem",sidebarTopSpace:"6rem",sidebar:"21rem",contentMaxWidth:"46rem"},spacing:o,zIndices:l}}},[[1107,5,6]]]);
|
|
29
|
+
//# sourceMappingURL=main.d0b308e0.chunk.js.map
|