/*! For license information please see main.970d3503.chunk.js.LICENSE.txt */ (this["webpackJsonpstreamlit-browser"]=this["webpackJsonpstreamlit-browser"]||[]).push([[3],{112:function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n(16),o=n(17),a=n(35),i=n(36),l=n(71),s=n(6),c=n(33),u=n(0),d=n.n(u),p=n(1013),f=n.n(p),h=n(47),m=n(1014),b=n.n(m),y=n(1015),g=n.n(y),O=n(1016),w=n.n(O),v=n(139),j=n(1017),S=n.n(j),x=n(1018),k=n.n(x),I=n(67),C=n(1020),P=n(1019),T=n.n(P),V=n(30),E=n(11),A=n.n(E),D=A()("pre",{target:"e10mrw3y3"})((function(e){var t=e.theme;return{margin:0,paddingRight:"2.75rem",color:t.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:t.colors.lightBlue80},".token.boolean, .token.constant, .token.symbol":{color:t.colors.green70},".token.number, .token.regex":{color:t.colors.blueGreen80},".token.string, .token.char, .token.attr-value":{color:t.colors.green80},".token.operator, .token.entity":{color:t.colors.orange90},".token.url":{color:t.colors.purple80},".token.decorator, .token.atrule":{color:t.colors.orange90},".token.keyword, .token.tag":{color:t.colors.blue70},".token.function, .token.class-name, .token.selector":{color:t.colors.blue70,fontWeight:"bold"},".token.important":{color:t.colors.red70,fontWeight:"bold"},".token.comment":{color:t.colors.gray70,fontStyle:"italic"},".token.italic":{fontStyle:"italic"},".token.entity":{cursor:"help"}}}),""),R=A()("button",{target:"e10mrw3y2"})((function(e){var t=e.theme;return{opacity:0,height:"2.5rem",padding:0,width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",backgroundColor:t.colors.transparent,color:t.colors.fadedText60,borderRadius:t.radii.xl,transform:"scale(0)","&:active, &:focus, &:hover":{opacity:1,transform:"scale(1)",outline:"none",color:t.colors.bodyText,transition:"none"}}}),""),N=A()("div",{target:"e10mrw3y1"})((function(e){var t=e.theme;return{padding:"".concat(t.spacing.sm," ").concat(t.spacing.sm," 0 0"),top:0,right:0,position:"absolute",width:"2.75rem",height:"100%",backgroundColor:t.colors.transparent,zIndex:t.zIndices.sidebar+1}}),""),F=A()("div",{target:"e10mrw3y0"})((function(e){var t=e.theme;return{position:"relative",marginLeft:t.spacing.none,marginRight:t.spacing.none,marginTop:t.spacing.none,marginBottom:t.spacing.lg,"&:hover":Object(V.a)({},R,{opacity:1,transform:"scale(1)",outline:"none",transition:"none"})}}),""),M=n(5),B=function(e){Object(a.a)(n,e);var t=Object(i.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=c)throw new Error("Row index is out of range.");if(t<0||t>=u)throw new Error("Column index is out of range.");var d=e>=l&&t=s;if(e0&&f.push("level".concat(e)),{type:o.BLANK,cssClass:f.join(" "),content:""}}if(d){var h,m=e-l,b=(null===(h=this._styler)||void 0===h?void 0:h.uuid)?"".concat(this.cssId,"level").concat(t,"_row").concat(m):void 0,y=["row_heading","level".concat(t),"row".concat(m)].join(" "),g=this._types.index[t],O=this.getIndexValue(m,t);return{type:o.INDEX,cssId:b,cssClass:y,content:O,contentType:g}}if(p){var w=t-s,v=["col_heading","level".concat(e),"col".concat(w)].join(" ");return{type:o.COLUMNS,cssClass:v,content:this._columns[e][w],contentType:{pandas_type:r.UnicodeIndex,numpy_type:"object"}}}var j=e-l,S=t-s,x=(null===(n=this._styler)||void 0===n?void 0:n.uuid)?"".concat(this.cssId,"row").concat(j,"_col").concat(S):void 0,k=["data","row".concat(j),"col".concat(S)].join(" "),I=this._types.data[S],C=this.getDataValue(j,S),P=(null===(a=this._styler)||void 0===a?void 0:a.displayValues)?this._styler.displayValues.getCell(e,t).content:void 0;return{type:o.DATA,cssId:x,cssClass:k,content:C,contentType:I,displayContent:P}}},{key:"getIndexValue",value:function(e,t){var n=this._index[t];return n instanceof c.Vector?n.get(e):n[e]}},{key:"getDataValue",value:function(e,t){var n;return null===(n=this._data.getChildAt(t))||void 0===n?void 0:n.get(e)}},{key:"addRows",value:function(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(u.produce)(this,(function(e){return e}));if(this.isEmpty())return Object(u.produce)(e,(function(e){return e}));var t=this.concatIndexes(e._index,e._types.index),n=this.concatData(e._data,e._types.data),r=this.concatTypes(e._types);return Object(u.produce)(this,(function(e){e._index=t,e._data=n,e._types=r}))}}],[{key:"parseSchema",value:function(e){var t=e.schema.metadata.get("pandas");if(null==t)throw new Error("Table schema is missing.");return JSON.parse(t)}},{key:"getRawColumns",value:function(e){return e.columns.map((function(e){return e.field_name})).filter((function(t){return!e.index_columns.includes(t)}))}},{key:"parseIndex",value:function(t,n){return n.index_columns.map((function(n){if(e.isRangeIndex(n)){var r=n.start,o=n.stop,a=n.step;return Object(d.range)(r,o,a)}var i=t.getChild(n);return i instanceof c.Vector&&i.type instanceof c.Null?null:i})).filter((function(e){return null!==e}))}},{key:"parseColumns",value:function(e){var t=e.column_indexes.length>1;return Object(d.unzip)(e.columns.map((function(e){return e.field_name})).filter((function(t){return!e.index_columns.includes(t)})).map((function(e){return t?JSON.parse(e.replace(/\(/g,"[").replace(/\)/g,"]").replace(/'/g,'"')):[e]})))}},{key:"parseData",value:function(e,t,n){var r=e.numRows,o=t.length>0?t[0].length:0;return 0===r||0===o?e.select([]):e.select(n)}},{key:"parseTypes",value:function(t,n){return{index:e.parseIndexType(n),data:e.parseDataType(t,n)}}},{key:"parseIndexType",value:function(t){return t.index_columns.map((function(n){if(e.isRangeIndex(n))return{pandas_type:r.RangeIndex,numpy_type:r.RangeIndex,meta:n};var o=t.columns.find((function(e){return e.field_name===n}));if(!o)throw new Error("".concat(n," index not found."));return{pandas_type:o.pandas_type,numpy_type:o.numpy_type,meta:o.metadata}}))}},{key:"parseDataType",value:function(e,t){return e.numRows>0?t.columns.filter((function(e){return!t.index_columns.includes(e.field_name)})).map((function(e){return{pandas_type:e.pandas_type,numpy_type:e.numpy_type,meta:e.metadata}})):[]}},{key:"parseStyler",value:function(t){return{uuid:t.uuid,caption:t.caption,styles:t.styles,displayValues:new e({data:t.displayValues})}}},{key:"sameIndexTypes",value:function(t,n){return t.length===n.length&&t.every((function(t,r){return r";var o=t instanceof Date||Number.isFinite(t);if(o&&"date"===r)return f.a.utc(t).format("YYYY-MM-DD");if(o&&"datetimetz"===r){var a=null===n||void 0===n?void 0:n.meta,i=f()(t);return(null===a||void 0===a?void 0:a.timezone)&&(i=f.a.tz.zone(null===a||void 0===a?void 0:a.timezone)?i.tz(null===a||void 0===a?void 0:a.timezone):i.utcOffset(null===a||void 0===a?void 0:a.timezone)),i.format("YYYY-MM-DDTHH:mm:ssZ")}return o&&(null===r||void 0===r?void 0:r.startsWith("datetime"))?f.a.utc(t).format("YYYY-MM-DDTHH:mm:ss"):(null===r||void 0===r?void 0:r.startsWith("interval"))?e.formatIntervalIndex(t,r):"object"===r||(null===r||void 0===r?void 0:r.startsWith("list"))?JSON.stringify(t):"float64"===r&&Number.isFinite(t)?m()(t).format("0,0.0000"):String(t)}}]),e}()},149:function(e,t,n){"use strict";var r=n(275);n.d(t,"a",(function(){return r.a}))},150:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));n(0);var r=n(60),o=n(11),a=n.n(o)()("pre",{target:"e13yyrnc0"})((function(e){var t=e.theme;return{padding:t.spacing.twoXS,whiteSpace:"pre-wrap",wordWrap:"break-word",color:"inherit",fontSize:t.fontSizes.sm}}),""),i=n(5);var l=function(e){var t=e.name,n=e.message,o=e.stack,l=e.width,s=o?o.split("\n"):[];s.shift();var c=s.map((function(e){return e.trim()})).join("\n");return Object(i.jsxs)(r.b,{kind:r.a.ERROR,width:l,children:[Object(i.jsxs)("strong",{children:[t,": "]}),n,o?Object(i.jsx)(a,{children:Object(i.jsx)("code",{children:c})}):null]})}},153:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(16),o=n(17),a=n(98),i=n.n(a),l=(n(1250),n(282)),s=n.n(l),c=function(){function e(t){Object(r.a)(this,e),this.millis=void 0,this.millis=t}return Object(o.a)(e,[{key:"getTime",value:function(){return this.millis}}]),e}(),u=function(){function e(){Object(r.a)(this,e)}return Object(o.a)(e,null,[{key:"nanosToDate",value:function(e){return new Date(e/1e6)}},{key:"iso8601ContainsTimezone",value:function(e){return[/[+-]\d\d\d\d$/,/[+-]\d\d$/,/[+-]\d\d:\d\d$/,/Z$/].some((function(t){return t.test(e)}))}},{key:"iso8601ToMoment",value:function(t){return e.iso8601ContainsTimezone(t)?i.a.parseZone(t):i()(t)}},{key:"nanosToDuration",value:function(e){return new c(e/1e6)}},{key:"dateToString",value:function(e){var t=i()(e),n="lll";return 0===t.hour()&&0===t.minute()&&0===t.second()&&(n="ll"),t.format(n)}},{key:"durationToString",value:function(e){var t=i.a.duration(e.getTime()).asMilliseconds();return i.a.utc(t).format()}}]),e}();function d(e){return i.a.isMoment(e)?e.format():(t=e,Number(t)===t&&t%1!==0?s()(e).format("0,0.0000"):e instanceof Date?u.dateToString(e):e instanceof c?u.durationToString(e):e.toString());var t}},156: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 a}));var r=n(125),o=(n(0),n(5));function a(e){var t=e.label,n=e.children,a=e.disabled;return null==t?Object(o.jsx)(o.Fragment,{}):Object(o.jsxs)(r.b,{disabled:a,children:[t,n]})}},157:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(6),o=(n(0),n(80)),a=n(139),i=n(112),l=n(37),s=n(11),c=n.n(s)()("div",{target:"e1j25pv60"})((function(e){var t=e.theme;return{display:"flex",alignItems:"center",svg:{stroke:t.colors.fadedText40,strokeWidth:2.25},":hover":{svg:{stroke:t.colors.fadedText60}}}}),""),u=n(5);var d=function(e){var t=e.placement,n=void 0===t?o.b.AUTO:t,s=e.iconSize,d=void 0===s?"16":s,p=e.content,f=e.children,h=e.markdownProps,m=Object(l.useTheme)();return Object(u.jsx)(c,{className:"stTooltipIcon",children:Object(u.jsx)(o.d,{content:Object(u.jsx)(i.a,Object(r.a)({style:{fontSize:m.fontSizes.sm},source:p,allowHTML:!1},h||{})),placement:n,inline:!0,children:f||Object(u.jsx)(a.HelpCircle,{className:"icon",size:d})})})}},174:function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return w.a}));var r=n(6),o=n(71),a=n(0),i=n.n(a),l=n(129),s=n(1027),c=n(11),u=n.n(c),d=n(218),p=n.n(d),f=n(55);var h=u()("span",{target:"e1wbw4rs1"})({name:"ucb1au",styles:"overflow:hidden;white-space:nowrap;text-overflow:ellipsis"}),m=u()(f.e,{shouldForwardProp:p.a,target:"e1wbw4rs0"})((function(e){var t=e.theme,n=e.$isHighlighted,r=t.inSidebar?t.colors.bgColor:t.colors.secondaryBg;return{display:"flex",alignItems:"center",paddingTop:t.spacing.none,paddingBottom:t.spacing.none,background:n?r:void 0,"&:hover, &:active, &:focus":{background:r}}}),""),b=n(5);function y(e){var t=e.data,n=e.index,a=e.style,i=t[n].props,l=i.item,s=(i.overrides,Object(o.a)(i,["item","overrides"]));return Object(b.jsx)(m,Object(r.a)(Object(r.a)({style:a},s),{},{children:Object(b.jsx)(h,{children:l.label})}),l.value)}var g=i.a.forwardRef((function(e,t){var n=i.a.Children.toArray(e.children);if(!n[0]||!n[0].props.item){var o=n[0]?n[0].props:{};return Object(b.jsx)(l.b,{$style:{height:"".concat(90,"px")},ref:t,children:Object(b.jsx)(l.a,Object(r.a)({},o))})}var a=Math.min(300,40*n.length);return Object(b.jsx)(l.b,{ref:t,children:Object(b.jsx)(s.FixedSizeList,{width:"100%",height:a,itemCount:n.length,itemData:n,itemKey:function(e,t){return t[e].props.item.value},itemSize:40,children:y})})}));g.displayName="VirtualDropdown";var O=g,w=n(408)},177:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n(394),o=n(1033),a=n(286),i=n(287),l=n(88),s=Object(l.d)(a.a,r.a),c=Object(l.d)(i.a,o.a)},18: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,"r",(function(){return d})),n.d(t,"f",(function(){return p})),n.d(t,"p",(function(){return f})),n.d(t,"t",(function(){return h})),n.d(t,"h",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"i",(function(){return g})),n.d(t,"j",(function(){return O})),n.d(t,"k",(function(){return w})),n.d(t,"l",(function(){return v})),n.d(t,"m",(function(){return j})),n.d(t,"e",(function(){return S})),n.d(t,"n",(function(){return x})),n.d(t,"o",(function(){return k})),n.d(t,"q",(function(){return I})),n.d(t,"s",(function(){return C})),n.d(t,"u",(function(){return P})),n.d(t,"w",(function(){return T})),n.d(t,"v",(function(){return V})),n.d(t,"x",(function(){return l}));var r=n(12),o=r.Reader,a=r.Writer,i=r.util,l=r.roots.default||(r.roots.default={}),s=l.Alert=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.body=e.string();break;case 2:r.format=e.int32();break;default:e.skipType(7&a)}}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")&&!i.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.fromObject=function(e){if(e instanceof l.Alert)return e;var 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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.body="",n.format=t.enums===String?"UNUSED":0),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Format=function(){var 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.Arrow=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data=e.bytes();break;case 2:r.styler=l.Styler.decode(e,e.uint32());break;default:e.skipType(7&a)}}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||i.isString(e.data)))return"data: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){var t=l.Styler.verify(e.styler);if(t)return"styler."+t}return null},e.fromObject=function(e){if(e instanceof l.Arrow)return e;var t=new l.Arrow;if(null!=e.data&&("string"===typeof e.data?i.base64.decode(e.data,t.data=i.newBuffer(i.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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=i.newBuffer(n.data))),n.styler=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?i.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)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Styler=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!i.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||i.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.Styler)return e;var 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?i.base64.decode(e.displayValues,t.displayValues=i.newBuffer(i.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=i.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?i.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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.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")){var t=l.Arrow.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowNamedDataSet)return e;var 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={});var 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(){function e(e){if(this.datasets=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){var 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(var n=0;n>>3){case 5:r.url=e.string();break;case 3:r.startTime=e.int32();break;default:e.skipType(7&a)}}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")&&!i.isString(e.url)?"url: string expected":null!=e.startTime&&e.hasOwnProperty("startTime")&&!i.isInteger(e.startTime)?"startTime: integer expected":null},e.fromObject=function(e){if(e instanceof l.Audio)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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";var 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;var n=l.ClientState.verify(e.rerunScript);if(n)return"rerunScript."+n}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.fromObject=function(e){if(e instanceof l.BackMsg)return e;var 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)),t},e.toObject=function(e,t){t||(t={});var n={};return 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")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),u=(l.Balloons=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 3:r.show=e.bool();break;default:e.skipType(7&a)}}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;var t=new l.Balloons;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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.allowEmpty=e.bool();break;default:e.skipType(7&a)}}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";var t={};if(null!=e.vertical&&e.hasOwnProperty("vertical")){t.type=1;var n=l.Block.Vertical.verify(e.vertical);if(n)return"vertical."+n}if(null!=e.horizontal&&e.hasOwnProperty("horizontal")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Block.Horizontal.verify(e.horizontal);if(r)return"horizontal."+r}if(null!=e.column&&e.hasOwnProperty("column")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Block.Column.verify(e.column);if(o)return"column."+o}if(null!=e.expandable&&e.hasOwnProperty("expandable")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.Block.Expandable.verify(e.expandable);if(a)return"expandable."+a}if(null!=e.form&&e.hasOwnProperty("form")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Block.Form.verify(e.form);if(i)return"form."+i}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;var 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)}return null!=e.allowEmpty&&(t.allowEmpty=Boolean(e.allowEmpty)),t},e.toObject=function(e,t){t||(t={});var 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.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(var t=Object.keys(e),n=0;n>>3){case 1:r.weight=e.double();break;default:e.skipType(7&a)}}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.fromObject=function(e){if(e instanceof l.Block.Column)return e;var t=new l.Block.Column;return null!=e.weight&&(t.weight=Number(e.weight)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.weight=0),null!=e.weight&&e.hasOwnProperty("weight")&&(n.weight=t.json&&!isFinite(e.weight)?String(e.weight):e.weight),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),e.Expandable=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.label=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&a)}}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")&&!i.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;var 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={});var 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(var t=Object.keys(e),n=0;n>>3){case 1:r.formId=e.string();break;case 2:r.clearOnSubmit=e.bool();break;default:e.skipType(7&a)}}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")&&!i.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;var 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={});var 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}()),d=(l.BokehChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.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")&&!i.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.BokehChart)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.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")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.CameraInput)return e;var t=new l.CameraInput;return 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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.help="",n.formId="",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.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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Checkbox=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.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")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.queryString=e.string();break;case 2:r.widgetStates=l.WidgetStates.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")&&!i.isString(e.queryString))return"queryString: string expected";if(null!=e.widgetStates&&e.hasOwnProperty("widgetStates")){var t=l.WidgetStates.verify(e.widgetStates);if(t)return"widgetStates."+t}return null},e.fromObject=function(e){if(e instanceof l.ClientState)return e;var 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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.queryString="",n.widgetStates=null),null!=e.queryString&&e.hasOwnProperty("queryString")&&(n.queryString=e.queryString),null!=e.widgetStates&&e.hasOwnProperty("widgetStates")&&(n.widgetStates=l.WidgetStates.toObject(e.widgetStates,t)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.ColorPicker=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default)?"default: string expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string 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.ColorPicker)return e;var t=new l.ColorPicker;return 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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",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.StringArray=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data&&r.data.length||(r.data=[]),r.data.push(e.string());break;default:e.skipType(7&a)}}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(var t=0;t>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r>>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(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>0,e.data[n].high>>>0).toNumber())}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r>>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}()),h=(l.UInt32Array=function(){function e(e){if(this.data=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:if(r.data&&r.data.length||(r.data=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>0}return t},e.toObject=function(e,t){t||(t={});var n={};if((t.arrays||t.defaults)&&(n.data=[]),e.data&&e.data.length){n.data=[];for(var r=0;r>>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&a)}}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")||i.isInteger(e.id)||e.id&&i.isInteger(e.id.low)&&i.isInteger(e.id.high)?null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name)?"name: string expected":null!=e.size&&e.hasOwnProperty("size")&&!i.isInteger(e.size)?"size: integer expected":null:"id: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.UploadedFileInfo)return e;var t=new l.UploadedFileInfo;return null!=e.id&&(i.Long?(t.id=i.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 i.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={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.id=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}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?i.Long.prototype.toString.call(e.id):t.longs===Number?new i.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}()),m=l.FileUploaderState=function(){function e(e){if(this.uploadedFileInfo=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isInteger(e.maxFileId)&&!(e.maxFileId&&i.isInteger(e.maxFileId.low)&&i.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(var t=0;t>>0,e.maxFileId.high>>>0).toNumber())),e.uploadedFileInfo){if(!Array.isArray(e.uploadedFileInfo))throw TypeError(".FileUploaderState.uploadedFileInfo: array expected");t.uploadedFileInfo=[];for(var n=0;n>>0,e.maxFileId.high>>>0).toNumber():e.maxFileId),e.uploadedFileInfo&&e.uploadedFileInfo.length){n.uploadedFileInfo=[];for(var o=0;o>>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&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.jsonArgs&&e.hasOwnProperty("jsonArgs")&&!i.isString(e.jsonArgs))return"jsonArgs: string expected";if(null!=e.specialArgs&&e.hasOwnProperty("specialArgs")){if(!Array.isArray(e.specialArgs))return"specialArgs: array expected";for(var t=0;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&a)}}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";var t={};if(null!=e.key&&e.hasOwnProperty("key")&&!i.isString(e.key))return"key: string expected";if(null!=e.arrowDataframe&&e.hasOwnProperty("arrowDataframe")){t.value=1;var n=l.ArrowDataframe.verify(e.arrowDataframe);if(n)return"arrowDataframe."+n}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||i.isString(e.bytes)))return"bytes: buffer expected"}return null},e.fromObject=function(e){if(e instanceof l.SpecialArg)return e;var 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?i.base64.decode(e.bytes,t.bytes=i.newBuffer(i.base64.length(e.bytes)),0):e.bytes.length&&(t.bytes=e.bytes)),t},e.toObject=function(e,t){t||(t={});var 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?i.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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")){var t=l.ArrowTable.verify(e.data);if(t)return"data."+t}return null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null!=e.width&&e.hasOwnProperty("width")&&!i.isInteger(e.width)?"width: integer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowDataframe)return e;var 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={});var 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}()),y=(l.ArrowTable=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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||i.isString(e.data)))return"data: buffer expected";if(null!=e.index&&e.hasOwnProperty("index")&&!(e.index&&"number"===typeof e.index.length||i.isString(e.index)))return"index: buffer expected";if(null!=e.columns&&e.hasOwnProperty("columns")&&!(e.columns&&"number"===typeof e.columns.length||i.isString(e.columns)))return"columns: buffer expected";if(null!=e.styler&&e.hasOwnProperty("styler")){var t=l.ArrowTableStyler.verify(e.styler);if(t)return"styler."+t}return null},e.fromObject=function(e){if(e instanceof l.ArrowTable)return e;var t=new l.ArrowTable;if(null!=e.data&&("string"===typeof e.data?i.base64.decode(e.data,t.data=i.newBuffer(i.base64.length(e.data)),0):e.data.length&&(t.data=e.data)),null!=e.index&&("string"===typeof e.index?i.base64.decode(e.index,t.index=i.newBuffer(i.base64.length(e.index)),0):e.index.length&&(t.index=e.index)),null!=e.columns&&("string"===typeof e.columns?i.base64.decode(e.columns,t.columns=i.newBuffer(i.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={});var n={};return t.defaults&&(t.bytes===String?n.data="":(n.data=[],t.bytes!==Array&&(n.data=i.newBuffer(n.data))),t.bytes===String?n.index="":(n.index=[],t.bytes!==Array&&(n.index=i.newBuffer(n.index))),t.bytes===String?n.columns="":(n.columns=[],t.bytes!==Array&&(n.columns=i.newBuffer(n.columns))),n.styler=null),null!=e.data&&e.hasOwnProperty("data")&&(n.data=t.bytes===String?i.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?i.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?i.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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.uuid)?"uuid: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null!=e.styles&&e.hasOwnProperty("styles")&&!i.isString(e.styles)?"styles: string expected":null!=e.displayValues&&e.hasOwnProperty("displayValues")&&!(e.displayValues&&"number"===typeof e.displayValues.length||i.isString(e.displayValues))?"displayValues: buffer expected":null},e.fromObject=function(e){if(e instanceof l.ArrowTableStyler)return e;var 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?i.base64.decode(e.displayValues,t.displayValues=i.newBuffer(i.base64.length(e.displayValues)),0):e.displayValues.length&&(t.displayValues=e.displayValues)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.uuid="",n.caption="",n.styles="",t.bytes===String?n.displayValues="":(n.displayValues=[],t.bytes!==Array&&(n.displayValues=i.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?i.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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")){var t=l.Table.verify(e.data);if(t)return"data."+t}if(null!=e.index&&e.hasOwnProperty("index")){var n=l.Index.verify(e.index);if(n)return"index."+n}if(null!=e.columns&&e.hasOwnProperty("columns")){var r=l.Index.verify(e.columns);if(r)return"columns."+r}if(null!=e.style&&e.hasOwnProperty("style")){var o=l.TableStyle.verify(e.style);if(o)return"style."+o}return null},e.fromObject=function(e){if(e instanceof l.DataFrame)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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";var t={};if(null!=e.plainIndex&&e.hasOwnProperty("plainIndex")){t.type=1;var n=l.PlainIndex.verify(e.plainIndex);if(n)return"plainIndex."+n}if(null!=e.rangeIndex&&e.hasOwnProperty("rangeIndex")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.RangeIndex.verify(e.rangeIndex);if(r)return"rangeIndex."+r}if(null!=e.multiIndex&&e.hasOwnProperty("multiIndex")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.MultiIndex.verify(e.multiIndex);if(o)return"multiIndex."+o}if(null!=e.datetimeIndex&&e.hasOwnProperty("datetimeIndex")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.DatetimeIndex.verify(e.datetimeIndex);if(a)return"datetimeIndex."+a}if(null!=e.timedeltaIndex&&e.hasOwnProperty("timedeltaIndex")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.TimedeltaIndex.verify(e.timedeltaIndex);if(i)return"timedeltaIndex."+i}if(null!=e.int_64Index&&e.hasOwnProperty("int_64Index")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.Int64Index.verify(e.int_64Index);if(s)return"int_64Index."+s}if(null!=e.float_64Index&&e.hasOwnProperty("float_64Index")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.Float64Index.verify(e.float_64Index);if(c)return"float_64Index."+c}return null},e.fromObject=function(e){if(e instanceof l.Index)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data=l.AnyArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")){var t=l.AnyArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.PlainIndex)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.start=e.int64();break;case 2:r.stop=e.int64();break;default:e.skipType(7&a)}}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")||i.isInteger(e.start)||e.start&&i.isInteger(e.start.low)&&i.isInteger(e.start.high)?null==e.stop||!e.hasOwnProperty("stop")||i.isInteger(e.stop)||e.stop&&i.isInteger(e.stop.low)&&i.isInteger(e.stop.high)?null:"stop: integer|Long expected":"start: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.RangeIndex)return e;var t=new l.RangeIndex;return null!=e.start&&(i.Long?(t.start=i.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 i.LongBits(e.start.low>>>0,e.start.high>>>0).toNumber())),null!=e.stop&&(i.Long?(t.stop=i.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 i.LongBits(e.stop.low>>>0,e.stop.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.start=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}else n.start=t.longs===String?"0":0;if(i.Long){var o=new i.Long(0,0,!1);n.stop=t.longs===String?o.toString():t.longs===Number?o.toNumber():o}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?i.Long.prototype.toString.call(e.start):t.longs===Number?new i.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?i.Long.prototype.toString.call(e.stop):t.longs===Number?new i.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(){function e(e){if(this.levels=[],this.labels=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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(var t=0;t>>3){case 1:r.data=l.StringArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")){var t=l.StringArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.DatetimeIndex)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")){var t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.TimedeltaIndex)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data=l.Int64Array.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")){var t=l.Int64Array.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Int64Index)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.data=l.DoubleArray.decode(e,e.uint32());break;default:e.skipType(7&a)}}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")){var t=l.DoubleArray.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.Float64Index)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.property=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.property)?"property: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.CSSStyle)return e;var 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={});var 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(){function e(e){if(this.css=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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(var t=0;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&a)}}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(var t=0;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&a)}}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";var t={};if(null!=e.strings&&e.hasOwnProperty("strings")){t.type=1;var n=l.StringArray.verify(e.strings);if(n)return"strings."+n}if(null!=e.doubles&&e.hasOwnProperty("doubles")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.DoubleArray.verify(e.doubles);if(r)return"doubles."+r}if(null!=e.int64s&&e.hasOwnProperty("int64s")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Int64Array.verify(e.int64s);if(o)return"int64s."+o}if(null!=e.datetimes&&e.hasOwnProperty("datetimes")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.StringArray.verify(e.datetimes);if(a)return"datetimes."+a}if(null!=e.timedeltas&&e.hasOwnProperty("timedeltas")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Int64Array.verify(e.timedeltas);if(i)return"timedeltas."+i}return null},e.fromObject=function(e){if(e instanceof l.AnyArray)return e;var 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={});var 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(){function e(e){if(this.cols=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.cols&&r.cols.length||(r.cols=[]),r.cols.push(l.AnyArray.decode(e,e.uint32()));break;default:e.skipType(7&a)}}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(var t=0;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&a)}}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(var t=0;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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")){if(!Array.isArray(e.default))return"default: array expected";for(var t=0;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&a)}}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")&&!i.isString(e.json)?"json: string expected":null!=e.tooltip&&e.hasOwnProperty("tooltip")&&!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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";var t={};if(null!=e.newElement&&e.hasOwnProperty("newElement")){t.type=1;var n=l.Element.verify(e.newElement);if(n)return"newElement."+n}if(null!=e.addBlock&&e.hasOwnProperty("addBlock")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Block.verify(e.addBlock);if(r)return"addBlock."+r}if(null!=e.addRows&&e.hasOwnProperty("addRows")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.NamedDataSet.verify(e.addRows);if(o)return"addRows."+o}if(null!=e.arrowAddRows&&e.hasOwnProperty("arrowAddRows")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.ArrowNamedDataSet.verify(e.arrowAddRows);if(a)return"arrowAddRows."+a}return null},e.fromObject=function(e){if(e instanceof l.Delta)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.name)?"name: string expected":null!=e.module&&e.hasOwnProperty("module")&&!i.isString(e.module)?"module: string expected":null!=e.docString&&e.hasOwnProperty("docString")&&!i.isString(e.docString)?"docString: string expected":null!=e.type&&e.hasOwnProperty("type")&&!i.isString(e.type)?"type: string expected":null!=e.signature&&e.hasOwnProperty("signature")&&!i.isString(e.signature)?"signature: string expected":null},e.fromObject=function(e){if(e instanceof l.DocString)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.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")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.url&&e.hasOwnProperty("url")&&!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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";var t={};if(null!=e.alert&&e.hasOwnProperty("alert")){t.type=1;var n=l.Alert.verify(e.alert);if(n)return"alert."+n}if(null!=e.arrowDataFrame&&e.hasOwnProperty("arrowDataFrame")){if(1===t.type)return"type: multiple values";t.type=1;var r=l.Arrow.verify(e.arrowDataFrame);if(r)return"arrowDataFrame."+r}if(null!=e.arrowTable&&e.hasOwnProperty("arrowTable")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Arrow.verify(e.arrowTable);if(o)return"arrowTable."+o}if(null!=e.arrowVegaLiteChart&&e.hasOwnProperty("arrowVegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.ArrowVegaLiteChart.verify(e.arrowVegaLiteChart);if(a)return"arrowVegaLiteChart."+a}if(null!=e.audio&&e.hasOwnProperty("audio")){if(1===t.type)return"type: multiple values";t.type=1;var i=l.Audio.verify(e.audio);if(i)return"audio."+i}if(null!=e.balloons&&e.hasOwnProperty("balloons")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.Balloons.verify(e.balloons);if(s)return"balloons."+s}if(null!=e.bokehChart&&e.hasOwnProperty("bokehChart")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.BokehChart.verify(e.bokehChart);if(c)return"bokehChart."+c}if(null!=e.button&&e.hasOwnProperty("button")){if(1===t.type)return"type: multiple values";t.type=1;var u=l.Button.verify(e.button);if(u)return"button."+u}if(null!=e.downloadButton&&e.hasOwnProperty("downloadButton")){if(1===t.type)return"type: multiple values";t.type=1;var d=l.DownloadButton.verify(e.downloadButton);if(d)return"downloadButton."+d}if(null!=e.cameraInput&&e.hasOwnProperty("cameraInput")){if(1===t.type)return"type: multiple values";t.type=1;var p=l.CameraInput.verify(e.cameraInput);if(p)return"cameraInput."+p}if(null!=e.checkbox&&e.hasOwnProperty("checkbox")){if(1===t.type)return"type: multiple values";t.type=1;var f=l.Checkbox.verify(e.checkbox);if(f)return"checkbox."+f}if(null!=e.colorPicker&&e.hasOwnProperty("colorPicker")){if(1===t.type)return"type: multiple values";t.type=1;var h=l.ColorPicker.verify(e.colorPicker);if(h)return"colorPicker."+h}if(null!=e.componentInstance&&e.hasOwnProperty("componentInstance")){if(1===t.type)return"type: multiple values";t.type=1;var m=l.ComponentInstance.verify(e.componentInstance);if(m)return"componentInstance."+m}if(null!=e.dataFrame&&e.hasOwnProperty("dataFrame")){if(1===t.type)return"type: multiple values";t.type=1;var b=l.DataFrame.verify(e.dataFrame);if(b)return"dataFrame."+b}if(null!=e.table&&e.hasOwnProperty("table")){if(1===t.type)return"type: multiple values";t.type=1;var y=l.DataFrame.verify(e.table);if(y)return"table."+y}if(null!=e.dateInput&&e.hasOwnProperty("dateInput")){if(1===t.type)return"type: multiple values";t.type=1;var g=l.DateInput.verify(e.dateInput);if(g)return"dateInput."+g}if(null!=e.deckGlJsonChart&&e.hasOwnProperty("deckGlJsonChart")){if(1===t.type)return"type: multiple values";t.type=1;var O=l.DeckGlJsonChart.verify(e.deckGlJsonChart);if(O)return"deckGlJsonChart."+O}if(null!=e.docString&&e.hasOwnProperty("docString")){if(1===t.type)return"type: multiple values";t.type=1;var w=l.DocString.verify(e.docString);if(w)return"docString."+w}if(null!=e.empty&&e.hasOwnProperty("empty")){if(1===t.type)return"type: multiple values";t.type=1;var v=l.Empty.verify(e.empty);if(v)return"empty."+v}if(null!=e.exception&&e.hasOwnProperty("exception")){if(1===t.type)return"type: multiple values";t.type=1;var j=l.Exception.verify(e.exception);if(j)return"exception."+j}if(null!=e.favicon&&e.hasOwnProperty("favicon")){if(1===t.type)return"type: multiple values";t.type=1;var S=l.Favicon.verify(e.favicon);if(S)return"favicon."+S}if(null!=e.fileUploader&&e.hasOwnProperty("fileUploader")){if(1===t.type)return"type: multiple values";t.type=1;var x=l.FileUploader.verify(e.fileUploader);if(x)return"fileUploader."+x}if(null!=e.graphvizChart&&e.hasOwnProperty("graphvizChart")){if(1===t.type)return"type: multiple values";t.type=1;var k=l.GraphVizChart.verify(e.graphvizChart);if(k)return"graphvizChart."+k}if(null!=e.iframe&&e.hasOwnProperty("iframe")){if(1===t.type)return"type: multiple values";t.type=1;var I=l.IFrame.verify(e.iframe);if(I)return"iframe."+I}if(null!=e.imgs&&e.hasOwnProperty("imgs")){if(1===t.type)return"type: multiple values";t.type=1;var C=l.ImageList.verify(e.imgs);if(C)return"imgs."+C}if(null!=e.json&&e.hasOwnProperty("json")){if(1===t.type)return"type: multiple values";t.type=1;var P=l.Json.verify(e.json);if(P)return"json."+P}if(null!=e.markdown&&e.hasOwnProperty("markdown")){if(1===t.type)return"type: multiple values";t.type=1;var 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;var V=l.Metric.verify(e.metric);if(V)return"metric."+V}if(null!=e.multiselect&&e.hasOwnProperty("multiselect")){if(1===t.type)return"type: multiple values";t.type=1;var E=l.MultiSelect.verify(e.multiselect);if(E)return"multiselect."+E}if(null!=e.numberInput&&e.hasOwnProperty("numberInput")){if(1===t.type)return"type: multiple values";t.type=1;var A=l.NumberInput.verify(e.numberInput);if(A)return"numberInput."+A}if(null!=e.plotlyChart&&e.hasOwnProperty("plotlyChart")){if(1===t.type)return"type: multiple values";t.type=1;var D=l.PlotlyChart.verify(e.plotlyChart);if(D)return"plotlyChart."+D}if(null!=e.progress&&e.hasOwnProperty("progress")){if(1===t.type)return"type: multiple values";t.type=1;var R=l.Progress.verify(e.progress);if(R)return"progress."+R}if(null!=e.radio&&e.hasOwnProperty("radio")){if(1===t.type)return"type: multiple values";t.type=1;var N=l.Radio.verify(e.radio);if(N)return"radio."+N}if(null!=e.selectbox&&e.hasOwnProperty("selectbox")){if(1===t.type)return"type: multiple values";t.type=1;var F=l.Selectbox.verify(e.selectbox);if(F)return"selectbox."+F}if(null!=e.slider&&e.hasOwnProperty("slider")){if(1===t.type)return"type: multiple values";t.type=1;var M=l.Slider.verify(e.slider);if(M)return"slider."+M}if(null!=e.snow&&e.hasOwnProperty("snow")){if(1===t.type)return"type: multiple values";t.type=1;var B=l.Snow.verify(e.snow);if(B)return"snow."+B}if(null!=e.spinner&&e.hasOwnProperty("spinner")){if(1===t.type)return"type: multiple values";t.type=1;var L=l.Spinner.verify(e.spinner);if(L)return"spinner."+L}if(null!=e.text&&e.hasOwnProperty("text")){if(1===t.type)return"type: multiple values";t.type=1;var z=l.Text.verify(e.text);if(z)return"text."+z}if(null!=e.textArea&&e.hasOwnProperty("textArea")){if(1===t.type)return"type: multiple values";t.type=1;var W=l.TextArea.verify(e.textArea);if(W)return"textArea."+W}if(null!=e.textInput&&e.hasOwnProperty("textInput")){if(1===t.type)return"type: multiple values";t.type=1;var U=l.TextInput.verify(e.textInput);if(U)return"textInput."+U}if(null!=e.timeInput&&e.hasOwnProperty("timeInput")){if(1===t.type)return"type: multiple values";t.type=1;var _=l.TimeInput.verify(e.timeInput);if(_)return"timeInput."+_}if(null!=e.vegaLiteChart&&e.hasOwnProperty("vegaLiteChart")){if(1===t.type)return"type: multiple values";t.type=1;var H=l.VegaLiteChart.verify(e.vegaLiteChart);if(H)return"vegaLiteChart."+H}if(null!=e.video&&e.hasOwnProperty("video")){if(1===t.type)return"type: multiple values";t.type=1;var J=l.Video.verify(e.video);if(J)return"video."+J}return null},e.fromObject=function(e){if(e instanceof l.Element)return e;var 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)}return t},e.toObject=function(e,t){t||(t={});var 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")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}()),g=(l.Empty=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.type))return"type: string expected";if(null!=e.message&&e.hasOwnProperty("message")&&!i.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(var t=0;t>>3){case 1:r.url=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.url)?"url: string expected":null},e.fromObject=function(e){if(e instanceof l.Favicon)return e;var t=new l.Favicon;return null!=e.url&&(t.url=String(e.url)),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(this.type=[],e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.type&&e.hasOwnProperty("type")){if(!Array.isArray(e.type))return"type: array expected";for(var t=0;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 9:r.sessionStateChanged=l.SessionState.decode(e,e.uint32());break;case 10:r.sessionEvent=l.SessionEvent.decode(e,e.uint32());break;case 11:r.refHash=e.string();break;default:e.skipType(7&a)}}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";var t={};if(null!=e.hash&&e.hasOwnProperty("hash")&&!i.isString(e.hash))return"hash: string expected";if(null!=e.metadata&&e.hasOwnProperty("metadata")){var n=l.ForwardMsgMetadata.verify(e.metadata);if(n)return"metadata."+n}if(null!=e.newSession&&e.hasOwnProperty("newSession")){t.type=1;var r=l.NewSession.verify(e.newSession);if(r)return"newSession."+r}if(null!=e.delta&&e.hasOwnProperty("delta")){if(1===t.type)return"type: multiple values";t.type=1;var o=l.Delta.verify(e.delta);if(o)return"delta."+o}if(null!=e.pageInfoChanged&&e.hasOwnProperty("pageInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;var a=l.PageInfo.verify(e.pageInfoChanged);if(a)return"pageInfoChanged."+a}if(null!=e.pageConfigChanged&&e.hasOwnProperty("pageConfigChanged")){if(1===t.type)return"type: multiple values";t.type=1;var s=l.PageConfig.verify(e.pageConfigChanged);if(s)return"pageConfigChanged."+s}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:}}if(null!=e.gitInfoChanged&&e.hasOwnProperty("gitInfoChanged")){if(1===t.type)return"type: multiple values";t.type=1;var c=l.GitInfo.verify(e.gitInfoChanged);if(c)return"gitInfoChanged."+c}if(null!=e.sessionStateChanged&&e.hasOwnProperty("sessionStateChanged")){if(1===t.type)return"type: multiple values";t.type=1;var u=l.SessionState.verify(e.sessionStateChanged);if(u)return"sessionStateChanged."+u}if(null!=e.sessionEvent&&e.hasOwnProperty("sessionEvent")){if(1===t.type)return"type: multiple values";t.type=1;var d=l.SessionEvent.verify(e.sessionEvent);if(d)return"sessionEvent."+d}if(null!=e.refHash&&e.hasOwnProperty("refHash")){if(1===t.type)return"type: multiple values";if(t.type=1,!i.isString(e.refHash))return"refHash: string expected"}return null},e.fromObject=function(e){if(e instanceof l.ForwardMsg)return e;var 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}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.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)}return null!=e.refHash&&(t.refHash=String(e.refHash)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.hash="",n.metadata=null),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")),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.ScriptFinishedStatus=function(){var e={},t=Object.create(e);return t[e[0]="FINISHED_SUCCESSFULLY"]=0,t[e[1]="FINISHED_WITH_COMPILE_ERROR"]=1,t}(),e}()),O=l.ForwardMsgMetadata=function(){function e(e){if(this.deltaPath=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.cacheable=e.bool();break;case 2:if(r.deltaPath&&r.deltaPath.length||(r.deltaPath=[]),2===(7&a))for(var i=e.uint32()+e.pos;e.pos>>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={});var 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(var r=0;r>>3){case 1:r.width=e.uint32();break;case 2:r.height=e.uint32();break;default:e.skipType(7&a)}}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")&&!i.isInteger(e.width)?"width: integer expected":null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null},e.fromObject=function(e){if(e instanceof l.ElementDimensionSpec)return e;var 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={});var 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(){function e(e){if(this.untrackedFiles=[],this.uncommittedFiles=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.repository))return"repository: string expected";if(null!=e.branch&&e.hasOwnProperty("branch")&&!i.isString(e.branch))return"branch: string expected";if(null!=e.module&&e.hasOwnProperty("module")&&!i.isString(e.module))return"module: string expected";if(null!=e.untrackedFiles&&e.hasOwnProperty("untrackedFiles")){if(!Array.isArray(e.untrackedFiles))return"untrackedFiles: array expected";for(var t=0;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&a)}}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")&&!i.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")&&!i.isString(e.elementId)?"elementId: string expected":null},e.fromObject=function(e){if(e instanceof l.GraphVizChart)return e;var 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={});var 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.IFrame=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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";var t={};if(null!=e.src&&e.hasOwnProperty("src")&&(t.type=1,!i.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,!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.markup)?"markup: string expected":null!=e.url&&e.hasOwnProperty("url")&&!i.isString(e.url)?"url: string expected":null!=e.caption&&e.hasOwnProperty("caption")&&!i.isString(e.caption)?"caption: string expected":null},e.fromObject=function(e){if(e instanceof l.Image)return e;var 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={});var 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}(),l.ImageList=function(){function e(e){if(this.imgs=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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(var t=0;t>>3){case 1:r.body=e.string();break;case 2:r.expanded=e.bool();break;default:e.skipType(7&a)}}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")&&!i.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;var 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={});var 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.Markdown=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.label))return"label: string expected";if(null!=e.body&&e.hasOwnProperty("body")&&!i.isString(e.body))return"body: string expected";if(null!=e.delta&&e.hasOwnProperty("delta")&&!i.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.fromObject=function(e){if(e instanceof l.Metric)return e;var 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 t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.label="",n.body="",n.delta="",n.direction=t.enums===String?"DOWN":0,n.color=t.enums===String?"RED":0),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.MetricColor=function(){var 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(){var e={},t=Object.create(e);return t[e[0]="DOWN"]=0,t[e[1]="UP"]=1,t[e[2]="NONE"]=2,t}(),e}()),j=(l.MultiSelect=function(){function e(e){if(this.default=[],this.options=[],this.value=[],e)for(var t=Object.keys(e),n=0;n>>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&a))for(var i=e.uint32()+e.pos;e.pos>>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&a)}}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")&&!i.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")){var t=l.DataFrame.verify(e.data);if(t)return"data."+t}return null},e.fromObject=function(e){if(e instanceof l.NamedDataSet)return e;var 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={});var 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}()),S=(l.NewSession=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")){var t=l.Initialize.verify(e.initialize);if(t)return"initialize."+t}if(null!=e.scriptRunId&&e.hasOwnProperty("scriptRunId")&&!i.isString(e.scriptRunId))return"scriptRunId: string expected";if(null!=e.name&&e.hasOwnProperty("name")&&!i.isString(e.name))return"name: string expected";if(null!=e.mainScriptPath&&e.hasOwnProperty("mainScriptPath")&&!i.isString(e.mainScriptPath))return"mainScriptPath: string expected";if(null!=e.config&&e.hasOwnProperty("config")){var n=l.Config.verify(e.config);if(n)return"config."+n}if(null!=e.customTheme&&e.hasOwnProperty("customTheme")){var r=l.CustomThemeConfig.verify(e.customTheme);if(r)return"customTheme."+r}return null},e.fromObject=function(e){if(e instanceof l.NewSession)return e;var 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)}return t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.initialize=null,n.scriptRunId="",n.name="",n.mainScriptPath="",n.config=null,n.customTheme=null),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)),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.Initialize=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")){var t=l.UserInfo.verify(e.userInfo);if(t)return"userInfo."+t}if(null!=e.environmentInfo&&e.hasOwnProperty("environmentInfo")){var n=l.EnvironmentInfo.verify(e.environmentInfo);if(n)return"environmentInfo."+n}if(null!=e.sessionState&&e.hasOwnProperty("sessionState")){var r=l.SessionState.verify(e.sessionState);if(r)return"sessionState."+r}return null!=e.commandLine&&e.hasOwnProperty("commandLine")&&!i.isString(e.commandLine)?"commandLine: string expected":null!=e.sessionId&&e.hasOwnProperty("sessionId")&&!i.isString(e.sessionId)?"sessionId: string expected":null},e.fromObject=function(e){if(e instanceof l.Initialize)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isInteger(e.maxCachedMessageAge)?"maxCachedMessageAge: integer expected":null!=e.mapboxToken&&e.hasOwnProperty("mapboxToken")&&!i.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.fromObject=function(e){if(e instanceof l.Config)return e;var 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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.gatherUsageStats=!1,n.maxCachedMessageAge=0,n.mapboxToken="",n.allowRunOnSave=!1,n.hideTopBar=!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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.CustomThemeConfig=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.primaryColor))return"primaryColor: string expected";if(null!=e.secondaryBackgroundColor&&e.hasOwnProperty("secondaryBackgroundColor")&&!i.isString(e.secondaryBackgroundColor))return"secondaryBackgroundColor: string expected";if(null!=e.backgroundColor&&e.hasOwnProperty("backgroundColor")&&!i.isString(e.backgroundColor))return"backgroundColor: string expected";if(null!=e.textColor&&e.hasOwnProperty("textColor")&&!i.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;var 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={});var 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(){var e={},t=Object.create(e);return t[e[0]="LIGHT"]=0,t[e[1]="DARK"]=1,t}(),e.FontFamily=function(){var e={},t=Object.create(e);return t[e[0]="SANS_SERIF"]=0,t[e[1]="SERIF"]=1,t[e[2]="MONOSPACE"]=2,t}(),e}()),x=(l.UserInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.installationId)?"installationId: string expected":null!=e.installationIdV3&&e.hasOwnProperty("installationIdV3")&&!i.isString(e.installationIdV3)?"installationIdV3: string expected":null!=e.email&&e.hasOwnProperty("email")&&!i.isString(e.email)?"email: string expected":null},e.fromObject=function(e){if(e instanceof l.UserInfo)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.streamlitVersion=e.string();break;case 2:r.pythonVersion=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.streamlitVersion)?"streamlitVersion: string expected":null!=e.pythonVersion&&e.hasOwnProperty("pythonVersion")&&!i.isString(e.pythonVersion)?"pythonVersion: string expected":null},e.fromObject=function(e){if(e instanceof l.EnvironmentInfo)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId))return"formId: string expected";if(null!=e.format&&e.hasOwnProperty("format")&&!i.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:}return null!=e.default&&e.hasOwnProperty("default")&&"number"!==typeof e.default?"default: number expected":null!=e.step&&e.hasOwnProperty("step")&&"number"!==typeof e.step?"step: number expected":null!=e.min&&e.hasOwnProperty("min")&&"number"!==typeof e.min?"min: number expected":null!=e.max&&e.hasOwnProperty("max")&&"number"!==typeof e.max?"max: number expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.value&&e.hasOwnProperty("value")&&"number"!==typeof e.value?"value: number 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.NumberInput)return e;var 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}return 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)),t},e.toObject=function(e,t){t||(t={});var 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),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.DataType=function(){var e={},t=Object.create(e);return t[e[0]="INT"]=0,t[e[1]="FLOAT"]=1,t}(),e}()),k=l.PageConfig=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.title))return"title: string expected";if(null!=e.favicon&&e.hasOwnProperty("favicon")&&!i.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")){var 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;var 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={});var 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(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.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")&&!i.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")&&!i.isString(e.aboutSectionMd)?"aboutSectionMd: string expected":null},e.fromObject=function(e){if(e instanceof l.PageConfig.MenuItems)return e;var 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={});var 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(){var e={},t=Object.create(e);return t[e[0]="CENTERED"]=0,t[e[1]="WIDE"]=1,t}(),e.SidebarState=function(){var e={},t=Object.create(e);return t[e[0]="AUTO"]=0,t[e[1]="EXPANDED"]=1,t[e[2]="COLLAPSED"]=2,t}(),e}(),I=(l.PageInfo=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.queryString=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.queryString)?"queryString: string expected":null},e.fromObject=function(e){if(e instanceof l.PageInfo)return e;var t=new l.PageInfo;return null!=e.queryString&&(t.queryString=String(e.queryString)),t},e.toObject=function(e,t){t||(t={});var 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.PlotlyChart=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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&a)}}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";var t={};if(null!=e.url&&e.hasOwnProperty("url")&&(t.chart=1,!i.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;var n=l.Figure.verify(e.figure);if(n)return"figure."+n}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;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.spec=e.string();break;case 2:r.config=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.spec)?"spec: string expected":null!=e.config&&e.hasOwnProperty("config")&&!i.isString(e.config)?"config: string expected":null},e.fromObject=function(e){if(e instanceof l.Figure)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.value=e.uint32();break;default:e.skipType(7&a)}}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")&&!i.isInteger(e.value)?"value: integer expected":null},e.fromObject=function(e){if(e instanceof l.Progress)return e;var t=new l.Progress;return null!=e.value&&(t.value=e.value>>>0),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(this.options=[],e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var t=0;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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.isInteger(e.default))return"default: integer expected";if(null!=e.options&&e.hasOwnProperty("options")){if(!Array.isArray(e.options))return"options: array expected";for(var t=0;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&a)}}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";var 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;var n=l.Exception.verify(e.scriptCompilationException);if(n)return"scriptCompilationException."+n}return null},e.fromObject=function(e){if(e instanceof l.SessionEvent)return e;var 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={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.runOnSave=e.bool();break;case 2:r.scriptIsRunning=e.bool();break;default:e.skipType(7&a)}}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;var 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={});var 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(){function e(e){if(this.default=[],this.value=[],this.options=[],e)for(var t=Object.keys(e),n=0;n>>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&a))for(var i=e.uint32()+e.pos;e.pos>>3){case 1:r.show=e.bool();break;default:e.skipType(7&a)}}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;var t=new l.Snow;return null!=e.show&&(t.show=Boolean(e.show)),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.text=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.text)?"text: string expected":null},e.fromObject=function(e){if(e instanceof l.Spinner)return e;var t=new l.Spinner;return null!=e.text&&(t.text=String(e.text)),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.body=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.body)?"body: string expected":null},e.fromObject=function(e){if(e instanceof l.Text)return e;var t=new l.Text;return null!=e.body&&(t.body=String(e.body)),t},e.toObject=function(e,t){t||(t={});var 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(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default)?"default: string expected":null!=e.height&&e.hasOwnProperty("height")&&!i.isInteger(e.height)?"height: integer expected":null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars)?"maxChars: integer expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!i.isString(e.placeholder)?"placeholder: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.TextArea)return e;var t=new l.TextArea;return 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)),t},e.toObject=function(e,t){t||(t={});var 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),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e}(),l.TextInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id))return"id: string expected";if(null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label))return"label: string expected";if(null!=e.default&&e.hasOwnProperty("default")&&!i.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:}return null!=e.maxChars&&e.hasOwnProperty("maxChars")&&!i.isInteger(e.maxChars)?"maxChars: integer expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null!=e.setValue&&e.hasOwnProperty("setValue")&&"boolean"!==typeof e.setValue?"setValue: boolean expected":null!=e.autocomplete&&e.hasOwnProperty("autocomplete")&&!i.isString(e.autocomplete)?"autocomplete: string expected":null!=e.placeholder&&e.hasOwnProperty("placeholder")&&!i.isString(e.placeholder)?"placeholder: string expected":null!=e.disabled&&e.hasOwnProperty("disabled")&&"boolean"!==typeof e.disabled?"disabled: boolean expected":null},e.fromObject=function(e){if(e instanceof l.TextInput)return e;var 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}return 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)),t},e.toObject=function(e,t){t||(t={});var 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),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),n},e.prototype.toJSON=function(){return this.constructor.toObject(this,r.util.toJSONOptions)},e.Type=function(){var e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="PASSWORD"]=1,t}(),e}()),P=(l.TimeInput=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>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;default:e.skipType(7&a)}}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")&&!i.isString(e.id)?"id: string expected":null!=e.label&&e.hasOwnProperty("label")&&!i.isString(e.label)?"label: string expected":null!=e.default&&e.hasOwnProperty("default")&&!i.isString(e.default)?"default: string expected":null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help)?"help: string expected":null!=e.formId&&e.hasOwnProperty("formId")&&!i.isString(e.formId)?"formId: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string 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.TimeInput)return e;var t=new l.TimeInput;return 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)),t},e.toObject=function(e,t){t||(t={});var n={};return t.defaults&&(n.id="",n.label="",n.default="",n.help="",n.formId="",n.value="",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.VegaLiteChart=function(){function e(e){if(this.datasets=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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")&&!i.isString(e.spec))return"spec: string expected";if(null!=e.data&&e.hasOwnProperty("data")){var 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(var n=0;n>>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&a)}}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")&&!i.isString(e.url))return"url: string expected";if(null!=e.startTime&&e.hasOwnProperty("startTime")&&!i.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;var 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={});var 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(){var e={},t=Object.create(e);return t[e[0]="UNUSED"]=0,t[e[1]="NATIVE"]=1,t[e[2]="YOUTUBE_IFRAME"]=2,t}(),e}()),T=l.WidgetStates=function(){function e(e){if(this.widgets=[],e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.widgets&&r.widgets.length||(r.widgets=[]),r.widgets.push(l.WidgetState.decode(e,e.uint32()));break;default:e.skipType(7&a)}}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(var t=0;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&a)}}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";var t={};if(null!=e.id&&e.hasOwnProperty("id")&&!i.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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.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,!i.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;var n=l.DoubleArray.verify(e.doubleArrayValue);if(n)return"doubleArrayValue."+n}if(null!=e.intArrayValue&&e.hasOwnProperty("intArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;var r=l.SInt64Array.verify(e.intArrayValue);if(r)return"intArrayValue."+r}if(null!=e.stringArrayValue&&e.hasOwnProperty("stringArrayValue")){if(1===t.value)return"value: multiple values";t.value=1;var o=l.StringArray.verify(e.stringArrayValue);if(o)return"stringArrayValue."+o}if(null!=e.jsonValue&&e.hasOwnProperty("jsonValue")){if(1===t.value)return"value: multiple values";if(t.value=1,!i.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;var a=l.ArrowTable.verify(e.arrowValue);if(a)return"arrowValue."+a}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||i.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;var s=l.FileUploaderState.verify(e.fileUploaderStateValue);if(s)return"fileUploaderStateValue."+s}return null},e.fromObject=function(e){if(e instanceof l.WidgetState)return e;var 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&&(i.Long?(t.intValue=i.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 i.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?i.base64.decode(e.bytesValue,t.bytesValue=i.newBuffer(i.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={});var 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?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.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?i.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=function(){var e={};return e.MetricSet=function(){function e(e){if(this.metricFamilies=[],e)for(var t=Object.keys(e),n=0;n>>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&a)}}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(var t=0;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&a)}}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")&&!i.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")&&!i.isString(e.unit))return"unit: string expected";if(null!=e.help&&e.hasOwnProperty("help")&&!i.isString(e.help))return"help: string expected";if(null!=e.metrics&&e.hasOwnProperty("metrics")){if(!Array.isArray(e.metrics))return"metrics: array expected";for(var t=0;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&a)}}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(var t=0;t>>3){case 1:r.name=e.string();break;case 2:r.value=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.name)?"name: string expected":null!=e.value&&e.hasOwnProperty("value")&&!i.isString(e.value)?"value: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.Label)return e;var 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={});var 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(var t=Object.keys(e),n=0;n>>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&a)}}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";var t={};if(null!=e.unknownValue&&e.hasOwnProperty("unknownValue")){t.value=1;var n=l.openmetrics.UnknownValue.verify(e.unknownValue);if(n)return"unknownValue."+n}if(null!=e.gaugeValue&&e.hasOwnProperty("gaugeValue")){if(1===t.value)return"value: multiple values";t.value=1;var r=l.openmetrics.GaugeValue.verify(e.gaugeValue);if(r)return"gaugeValue."+r}if(null!=e.counterValue&&e.hasOwnProperty("counterValue")){if(1===t.value)return"value: multiple values";t.value=1;var o=l.openmetrics.CounterValue.verify(e.counterValue);if(o)return"counterValue."+o}if(null!=e.histogramValue&&e.hasOwnProperty("histogramValue")){if(1===t.value)return"value: multiple values";t.value=1;var a=l.openmetrics.HistogramValue.verify(e.histogramValue);if(a)return"histogramValue."+a}if(null!=e.stateSetValue&&e.hasOwnProperty("stateSetValue")){if(1===t.value)return"value: multiple values";t.value=1;var i=l.openmetrics.StateSetValue.verify(e.stateSetValue);if(i)return"stateSetValue."+i}if(null!=e.infoValue&&e.hasOwnProperty("infoValue")){if(1===t.value)return"value: multiple values";t.value=1;var s=l.openmetrics.InfoValue.verify(e.infoValue);if(s)return"infoValue."+s}if(null!=e.summaryValue&&e.hasOwnProperty("summaryValue")){if(1===t.value)return"value: multiple values";t.value=1;var c=l.openmetrics.SummaryValue.verify(e.summaryValue);if(c)return"summaryValue."+c}if(null!=e.timestamp&&e.hasOwnProperty("timestamp")){var u=l.google.protobuf.Timestamp.verify(e.timestamp);if(u)return"timestamp."+u}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.MetricPoint)return e;var 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={});var 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(var t=Object.keys(e),n=0;n>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&a)}}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";var 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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.UnknownValue)return e;var t=new l.openmetrics.UnknownValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.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 i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var 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?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.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(var t=Object.keys(e),n=0;n>>3){case 1:r.doubleValue=e.double();break;case 2:r.intValue=e.int64();break;default:e.skipType(7&a)}}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";var 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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.GaugeValue)return e;var t=new l.openmetrics.GaugeValue;return null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.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 i.LongBits(e.intValue.low>>>0,e.intValue.high>>>0).toNumber())),t},e.toObject=function(e,t){t||(t={});var 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?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.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(var t=Object.keys(e),n=0;n>>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&a)}}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";var 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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.exemplar&&e.hasOwnProperty("exemplar")){var r=l.openmetrics.Exemplar.verify(e.exemplar);if(r)return"exemplar."+r}return null},e.fromObject=function(e){if(e instanceof l.openmetrics.CounterValue)return e;var t=new l.openmetrics.CounterValue;if(null!=e.doubleValue&&(t.doubleValue=Number(e.doubleValue)),null!=e.intValue&&(i.Long?(t.intValue=i.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 i.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={});var 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?i.Long.prototype.toString.call(e.intValue):t.longs===Number?new i.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(var t=Object.keys(e),n=0;n>>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&a)}}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";var 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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.buckets&&e.hasOwnProperty("buckets")){if(!Array.isArray(e.buckets))return"buckets: array expected";for(var r=0;r>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(i.Long?(t.count=i.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 i.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(var n=0;n>>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?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.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(var o=0;o>>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&a)}}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")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.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")){var 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;var t=new l.openmetrics.HistogramValue.Bucket;if(null!=e.count&&(i.Long?(t.count=i.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 i.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={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!0);n.count=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}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?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.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(var t=Object.keys(e),n=0;n>>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&a)}}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")){var 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(var n=0;n>>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&a)}}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(var t=0;t>>3){case 1:r.enabled=e.bool();break;case 2:r.name=e.string();break;default:e.skipType(7&a)}}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")&&!i.isString(e.name)?"name: string expected":null},e.fromObject=function(e){if(e instanceof l.openmetrics.StateSetValue.State)return e;var 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={});var 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(var t=Object.keys(e),n=0;n>>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&a)}}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(var t=0;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&a)}}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";var 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,!i.isInteger(e.intValue)&&!(e.intValue&&i.isInteger(e.intValue.low)&&i.isInteger(e.intValue.high)))return"intValue: integer|Long expected"}if(null!=e.count&&e.hasOwnProperty("count")&&!i.isInteger(e.count)&&!(e.count&&i.isInteger(e.count.low)&&i.isInteger(e.count.high)))return"count: integer|Long expected";if(null!=e.created&&e.hasOwnProperty("created")){var n=l.google.protobuf.Timestamp.verify(e.created);if(n)return"created."+n}if(null!=e.quantile&&e.hasOwnProperty("quantile")){if(!Array.isArray(e.quantile))return"quantile: array expected";for(var r=0;r>>0,e.intValue.high>>>0).toNumber())),null!=e.count&&(i.Long?(t.count=i.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 i.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(var n=0;n>>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?i.Long.prototype.toString.call(e.count):t.longs===Number?new i.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(var o=0;o>>3){case 1:r.quantile=e.double();break;case 2:r.value=e.double();break;default:e.skipType(7&a)}}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;var 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={});var 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=function(){var e={};return e.protobuf=function(){var e={};return e.Timestamp=function(){function e(e){if(e)for(var t=Object.keys(e),n=0;n>>3){case 1:r.seconds=e.int64();break;case 2:r.nanos=e.int32();break;default:e.skipType(7&a)}}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")||i.isInteger(e.seconds)||e.seconds&&i.isInteger(e.seconds.low)&&i.isInteger(e.seconds.high)?null!=e.nanos&&e.hasOwnProperty("nanos")&&!i.isInteger(e.nanos)?"nanos: integer expected":null:"seconds: integer|Long expected"},e.fromObject=function(e){if(e instanceof l.google.protobuf.Timestamp)return e;var t=new l.google.protobuf.Timestamp;return null!=e.seconds&&(i.Long?(t.seconds=i.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 i.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={});var n={};if(t.defaults){if(i.Long){var r=new i.Long(0,0,!1);n.seconds=t.longs===String?r.toString():t.longs===Number?r.toNumber():r}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?i.Long.prototype.toString.call(e.seconds):t.longs===Number?new i.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}()},185:function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(16),o=n(17),a=n(35),i=n(36),l=n(0),s=n.n(l),c=n(3690),u=n(1029),d=n(156),p=n(157),f=n(80),h=n(19),m=n(11),b=n.n(m),y=b()("div",{target:"e1xf8znw4"})((function(e){return{fontFamily:e.theme.genericFonts.bodyFont,display:"flex",flexDirection:"column",alignItems:"flex-start"}}),""),g=b()("div",{target:"e1xf8znw3"})((function(){return{div:{fontFamily:'"Source Sans Pro", sans-serif !important'}}}),""),O=b()("div",{target:"e1xf8znw2"})((function(e){var t=e.theme;return{height:"1.8rem",borderRadius:t.radii.md,borderColor:t.colors.fadedText10,cursor:"pointer",boxShadow:"none",lineHeight:t.lineHeights.base,"&:focus":{outline:"none"},display:"flex"}}),""),w=b()("div",{target:"e1xf8znw1"})((function(e){var t=e.theme;return{height:"1.8rem",width:"1.8rem",borderRadius:t.radii.md,borderColor:t.colors.fadedText10,borderWidth:"1px",borderStyle:"solid",padding:"2px 0.8rem",cursor:"pointer",lineHeight:t.lineHeights.base,"&:focus":{outline:"none"}}}),""),v=b()("div",{target:"e1xf8znw0"})((function(e){e.theme;return{display:"flex",alignItems:"center",padding:"0 0.8rem",width:"95px"}}),""),j=n(5),S=function(e){Object(a.a)(n,e);var t=Object(i.a)(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;it?1:0}function p(e,t){return u.compare(e,t)}function f(e,t,n){var r=e.get("data"),a=m(r),i=Object(o.a)(a,2),l=i[0],c=i[1];if(t<0||t>=c)throw new Error("Bad sortColumnIdx ".concat(t," (should be >= 0, < ").concat(c,")"));for(var u=r.getIn(["cols",t]),f=Object(s.b)(u,"type",{strings:p,doubles:d,int64s:d,datetimes:d,timedeltas:d}),h=new Array(l),b=0;b0)"number"!==typeof y(e.get("data"),t-l,n)&&(c=Object(r.a)(Object(r.a)({},c),{},{textAlign:"left"}));return{contents:w(e.get("columns"),n,t-l),styles:c,type:"row-header"}}var u=function(e,t,n){if(null==e)return;var 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-l,n-a),d=y(e.get("data"),t-l,n-a),p=null!=u?u:d,f=function(e,t,n){if(null==e)return;var r=e.getIn(["cols",t,"styles",n,"css"],void 0);if(null==r)return;var o={};return r.forEach((function(e){var t=e.get("property");o[i()(t)]=e.get("value")})),o}(e.get("style"),t-l,n-a)||{};return"number"!==typeof d&&(f=Object(r.a)(Object(r.a)({},f),{},{textAlign:"left"})),{contents:p,styles:f,type:"data"}}function y(e,t,n){return j(e.getIn(["cols",t]),n)}function g(e,t,n){return S(e.getIn(["cols",t])).get(n)}function O(e){return Object(s.a)(e,"type",{plainIndex:function(e){return[1,v(e.get("data"))]},rangeIndex:function(e){return[1,e.get("stop")-e.get("start")]},multiIndex:function(e){return 0===e.get("labels").size?[0,0]:[e.get("labels").size,e.getIn(["labels",0,"data"]).size]},int_64Index:function(e){return[1,e.getIn(["data","data"]).size]},float_64Index:function(e){return[1,e.getIn(["data","data"]).size]},datetimeIndex:function(e){return[1,e.getIn(["data","data"]).size]},timedeltaIndex:function(e){return[1,e.getIn(["data","data"]).size]}})}function w(e,t,n){var r=e.get("type");if("multiIndex"!==r&&0!==t)throw new Error("Attempting to access level ".concat(t," of a ").concat(r,"."));return Object(s.a)(e,"type",{plainIndex:function(e){return j(e.get("data"),n)},rangeIndex:function(e){return e.get("start")+n},multiIndex:function(e){var r=e.getIn(["levels",t]),o=e.getIn(["labels",t]).getIn(["data",n]);return o<0?"NaN":w(r,0,o)},int_64Index:function(e){return e.getIn(["data","data",n])},float_64Index:function(e){return e.getIn(["data","data",n])},datetimeIndex:function(e){return c.a.iso8601ToMoment(e.getIn(["data","data",n]))},timedeltaIndex:function(e){return c.a.nanosToDuration(e.getIn(["data","data",n]))}})}function v(e){return S(e).size}function j(e,t){var n=function(e){return e.get("data").get(t)};return Object(s.a)(e,"type",{strings:n,doubles:n,int64s:n,datetimes:function(e){return c.a.iso8601ToMoment(n(e))},timedeltas:function(e){return c.a.nanosToDuration(n(e))}})}function S(e){var t=function(e){return e.get("data")};return Object(s.a)(e,"type",{strings:t,doubles:t,int64s:t,datetimes:t,timedeltas:t})}function x(e,t){var n,r,a=t.get("hasName")?t.get("name"):null,i=t.get("data"),c=function(e,t){if(null!=e){if(1===e.size)return[0,e.first()];var n=e.findEntry((function(e){return e.get("hasName")&&e.get("name")===t}));if(n)return n}return[-1,null]}(function(e){return Object(s.a)(e,"type",{vegaLiteChart:function(e){return e.get("datasets")},_else:function(){return null}})}(e),a),u=Object(o.a)(c,2),d=u[0],p=u[1];if(t.get("hasName")){if(!p)return function(e,t){return Object(s.d)(e,"type",{vegaLiteChart:function(e){return e.update("datasets",(function(e){return e.push(t)}))}})}(e,t);n=p.get("data")}else{var f=function(e){return Object(s.a)(e,"type",{chart:function(e){return e.get("data")},dataFrame:function(e){return e},table:function(e){return e},arrowTable:function(e){return e},deckGlMap:function(e){return e.get("data")},vegaLiteChart:function(e){return e.get("data")}})}(e);if(f)n=f;else{if(!p)return I(e,i);n=p.get("data")}}return null==n.get("data")&&(n=(n=n.set("data",Object(l.fromJS)({cols:[]}))).set("style",Object(l.fromJS)({cols:[]}))),r=n.get("data").get("cols").isEmpty()?i:n.update("index",(function(e){return function(e,t){if(0===C(e))return t;var n=e.get("type"),r=t.get("type");if(n!==r)throw new Error("Cannot concatenate ".concat(n," with ").concat(r,"."));return Object(s.d)(e,"type",{plainIndex:function(e){return e.update("data",(function(e){return k(e,t.getIn(["plainIndex","data"]))}))},rangeIndex:function(e){return e.update("stop",(function(e){return e+C(t)}))},int_64Index:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["int_64Index","data","data"]))}))},float_64Index:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["float_64Index","data","data"]))}))},datetimeIndex:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["datetimeIndex","data","data"]))}))},timedeltaIndex:function(e){return e.updateIn(["data","data"],(function(e){return e.concat(t.getIn(["timedeltaIndex","data","data"]))}))}})}(e,i.get("index"))})).updateIn(["data","cols"],(function(e){return e.zipWith((function(e,t){return k(e,t)}),i.getIn(["data","cols"]))})).updateIn(["style","cols"],(function(e){return e.zipWith((function(e,t){return function(e,t){if(0===e.get("styles").length)return t;return e.update("styles",(function(e){return e.concat(t.get("styles"))}))}(e,t)}),i.getIn(["style","cols"]))})),p?function(e,t,n){return Object(s.d)(e,"type",{vegaLiteChart:function(e){return e.setIn(["datasets",t,"data"],n)}})}(e,d,r):I(e,r)}function k(e,t){if(0===v(e))return t;var n=e.get("type"),r=t.get("type");if(n!==r)throw new Error("Cannot concatenate ".concat(n," and ").concat(r,"."));return e.updateIn([n,"data"],(function(e){return e.concat(t.getIn([r,"data"]))}))}function I(e,t){return Object(s.d)(e,"type",{chart:function(e){return e.set("data",t)},dataFrame:function(){return t},table:function(){return t},arrowTable:function(){return t},deckGlMap:function(e){return e.set("data",t)},vegaLiteChart:function(e){return e.set("data",t)}})}function C(e){return Object(s.a)(e,"type",{plainIndex:function(e){return v(e.get("data"))},rangeIndex:function(e){return e.get("stop")-e.get("start")},multiIndex:function(e){return 0===e.get("labels").size?0:e.getIn(["labels",0]).size},int_64Index:function(e){return e.getIn(["data","data"]).size},float_64Index:function(e){return e.getIn(["data","data"]).size},datetimeIndex:function(e){return e.getIn(["data","data"]).size},timedeltaIndex:function(e){return e.getIn(["data","data"]).size}})}},20:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var 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"}},221:function(e,t,n){"use strict";var r=n(0),o=n.n(r);t.a=o.a.createContext(!1)},227:function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return j}));var r=n(0),o=n(29),a=n(5);function i(e){var t=e.disabled,n=e.element,i=e.widgetMgr,l=e.hasInProgressUpload,s=e.width,c=n.formId,u={width:s};return Object(r.useEffect)((function(){return i.incrementSubmitButtonCount(c),function(){return i.decrementSubmitButtonCount(c)}}),[i,c]),Object(a.jsx)("div",{className:"row-widget stButton","data-testid":"stFormSubmitButton",style:u,children:Object(a.jsx)(o.a,{help:n.help,children:Object(a.jsx)(o.d,{kind:o.b.FORM_SUBMIT,size:o.c.SMALL,disabled:t||l,onClick:function(){return i.submitForm(n)},children:n.label})})})}var l=n(6),s=n(11),c=n.n(s),u=c()("div",{target:"epcbefy2"})((function(){return{display:"flex"}}),""),d=c()("div",{target:"epcbefy1"})((function(e){var t=e.theme;return{border:"1px solid ".concat(t.colors.fadedText10),borderRadius:t.radii.md,padding:"calc(1em - 1px)"}}),""),p=c()("div",{target:"epcbefy0"})((function(e){return{marginTop:e.theme.spacing.lg}}),"");function f(e){var t={width:e.width};return Object(a.jsx)(u,{className:"row-widget",style:t,children:Object(a.jsx)(i,Object(l.a)({},e))})}var h=n(33),m=n(149),b=n(60),y=n(41);function g(e){var t=e.formId,n=e.widgetMgr,o=e.hasSubmitButton,i=e.children,l=e.width,s=e.scriptRunState,c=e.clearOnSubmit;Object(r.useEffect)((function(){n.setFormClearOnSubmit(t,c)}),[n,t,c]);var u,f=Object(r.useState)(!1),g=Object(h.a)(f,2),O=g[0],w=g[1];return o&&O?w(!1):o||O||s!==y.a.NOT_RUNNING||w(!0),O&&(u=Object(a.jsx)(p,{children:Object(a.jsx)(m.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:b.a.ERROR,width:l})})),Object(a.jsxs)(d,{"data-testid":"stForm",children:[i,u]})}var O=n(16),w=n(17),v=n(42),j=function(){function e(){Object(O.a)(this,e),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}return Object(w.a)(e,[{key:"manageFormClearListener",value:function(e,t,n){null!=this.formClearListener&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),Object(v.i)(t)&&(this.formClearListener=e.addFormClearedListener(t,n),this.lastWidgetMgr=e,this.lastFormId=t))}},{key:"disconnect",value:function(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}]),e}()},228:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(6),o=n(71),a=n(16),i=n(17),l=n(35),s=n(36),c=n(0),u=n(124),d=n.n(u),p=n(37),f=n(97),h=n(81),m=n(67),b=n(30),y=n(11),g=n.n(y),O=g()("button",{target:"e19lei0e1"})((function(e){var t=e.isExpanded,n=e.theme,o=t?{right:"1rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:n.colors.lightenedBg05};return Object(r.a)(Object(r.a)({position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:n.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:n.colors.fadedText60,borderRadius:"50%"},o),{},{"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:n.colors.bodyText,transition:"none"}})}),""),w=g()("div",{target:"e19lei0e0"})((function(e){var t=e.theme,n=e.isExpanded;return Object(r.a)({"&:hover":Object(b.a)({},O,{opacity:1,transform:"scale(1)",transition:"none"})},n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.headerHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{})}),""),v=n(5),j=function(e){Object(l.a)(n,e);var t=Object(s.a)(n);function n(e){var o;return Object(a.a)(this,n),(o=t.call(this,e)).controlKeys=function(e){var t=o.state.expanded;27===e.keyCode&&t&&o.zoomOut()},o.zoomIn=function(){document.body.style.overflow="hidden",o.context.setFullScreen(!0),o.setState({expanded:!0})},o.zoomOut=function(){document.body.style.overflow="unset",o.context.setFullScreen(!1),o.setState({expanded:!1})},o.convertScssRemValueToPixels=function(e){return parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize)},o.getWindowDimensions=function(){var e=o.convertScssRemValueToPixels(o.props.theme.spacing.md),t=o.convertScssRemValueToPixels(o.props.theme.sizes.headerHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},o.updateWindowDimensions=function(){o.setState(o.getWindowDimensions())},o.state=Object(r.a)({expanded:!1},o.getWindowDimensions()),o}return Object(i.a)(n,[{key:"componentDidMount",value:function(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}},{key:"render",value:function(){var e=this.state,t=e.expanded,n=e.fullWidth,r=e.fullHeight,o=this.props,a=o.children,i=o.width,l=o.height,s=f.FullscreenEnter,c=this.zoomIn,u="View fullscreen";return t&&(s=f.FullscreenExit,c=this.zoomOut,u="Exit fullscreen"),Object(v.jsxs)(w,{isExpanded:t,children:[Object(v.jsx)(O,{onClick:c,title:u,isExpanded:t,children:Object(v.jsx)(h.a,{content:s})}),a(t?{width:n,height:r,expanded:t}:{width:i,height:l,expanded:t})]})}}]),n}(c.PureComponent);j.contextType=m.a,j.isFullScreen=!1;var S=Object(p.withTheme)(j);var x=function(e){var t=function(t){Object(l.a)(c,t);var n=Object(s.a)(c);function c(){return Object(a.a)(this,c),n.apply(this,arguments)}return Object(i.a)(c,[{key:"render",value:function(){var t=this.props,n=t.width,a=t.height,i=Object(o.a)(t,["width","height"]);return Object(v.jsx)(S,{width:n,height:a,children:function(t){var n=t.width,o=t.height,a=t.expanded;return Object(v.jsx)(e,Object(r.a)({width:n,height:o,isFullScreen:a},i))}})}}]),c}(c.PureComponent);return t.displayName="withFullScreenWrapper(".concat(e.displayName||e.name,")"),d()(t,e)}},25:function(e,t,n){"use strict";var r=n(177);n.d(t,"lightBaseUITheme",(function(){return r.b}));var o=n(439);n.d(t,"globalStyles",(function(){return o.a}));var a=n(443);n.o(a,"AUTO_THEME_NAME")&&n.d(t,"AUTO_THEME_NAME",(function(){return a.AUTO_THEME_NAME})),n.o(a,"CUSTOM_THEME_NAME")&&n.d(t,"CUSTOM_THEME_NAME",(function(){return a.CUSTOM_THEME_NAME})),n.o(a,"baseTheme")&&n.d(t,"baseTheme",(function(){return a.baseTheme})),n.o(a,"computeSpacingStyle")&&n.d(t,"computeSpacingStyle",(function(){return a.computeSpacingStyle})),n.o(a,"createAutoTheme")&&n.d(t,"createAutoTheme",(function(){return a.createAutoTheme})),n.o(a,"createPresetThemes")&&n.d(t,"createPresetThemes",(function(){return a.createPresetThemes})),n.o(a,"createTheme")&&n.d(t,"createTheme",(function(){return a.createTheme})),n.o(a,"darkTheme")&&n.d(t,"darkTheme",(function(){return a.darkTheme})),n.o(a,"getCachedTheme")&&n.d(t,"getCachedTheme",(function(){return a.getCachedTheme})),n.o(a,"getDefaultTheme")&&n.d(t,"getDefaultTheme",(function(){return a.getDefaultTheme})),n.o(a,"isPresetTheme")&&n.d(t,"isPresetTheme",(function(){return a.isPresetTheme})),n.o(a,"lightTheme")&&n.d(t,"lightTheme",(function(){return a.lightTheme})),n.o(a,"removeCachedTheme")&&n.d(t,"removeCachedTheme",(function(){return a.removeCachedTheme})),n.o(a,"setCachedTheme")&&n.d(t,"setCachedTheme",(function(){return a.setCachedTheme})),n.o(a,"toExportedTheme")&&n.d(t,"toExportedTheme",(function(){return a.toExportedTheme})),n.o(a,"toThemeInput")&&n.d(t,"toThemeInput",(function(){return a.toThemeInput}));var i=n(88);n.d(t,"AUTO_THEME_NAME",(function(){return i.a})),n.d(t,"CUSTOM_THEME_NAME",(function(){return i.b})),n.d(t,"computeSpacingStyle",(function(){return i.c})),n.d(t,"createTheme",(function(){return i.f})),n.d(t,"getCachedTheme",(function(){return i.g})),n.d(t,"getDefaultTheme",(function(){return i.h})),n.d(t,"isPresetTheme",(function(){return i.j})),n.d(t,"removeCachedTheme",(function(){return i.k})),n.d(t,"setCachedTheme",(function(){return i.l})),n.d(t,"toExportedTheme",(function(){return i.m})),n.d(t,"toThemeInput",(function(){return i.n}));var l=n(444);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}))},275:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return s}));n(0);var r=n(18),o=n(112),a=n(60),i=n(5);function l(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: ".concat(e))}}function s(e){var t=e.body,n=e.kind,r=e.width;return Object(i.jsx)("div",{className:"stAlert",children:Object(i.jsx)(a.b,{width:r,kind:n,children:Object(i.jsx)(o.a,{source:t,allowHTML:!1})})})}},286:function(e,t,n){"use strict";var r=n(6),o=n(115),a=n(20),i=Object(r.a)(Object(r.a)({},a.a),{},{bgColor:a.a.white,bodyText:a.a.gray85,danger:"#9d292d",info:"#1e6777",success:"#176c36",warning:"#947c2d",primary:a.a.red70,disabled:a.a.gray40,lightestGray:a.a.gray20,lightGray:a.a.gray30,gray:a.a.gray60,darkGray:a.a.gray70,red:a.a.red80,blue:a.a.blue80,green:a.a.green80,yellow:a.a.yellow80}),l=n(88);t.a=Object(r.a)(Object(r.a)({},o.a),{},{inSidebar:!1,genericColors:Object(r.a)(Object(r.a)({},o.a.genericColors),i),colors:Object(l.e)(Object(r.a)(Object(r.a)({},o.a.colors),i))})},287:function(e,t,n){"use strict";var r=n(6),o=n(115),a=n(32),i=n(20),l=Object(r.a)(Object(r.a)({},i.a),{},{bgColor:i.a.gray100,secondaryBg:i.a.gray90,bodyText:i.a.gray10,warning:i.a.yellow90,warningBg:Object(a.transparentize)(i.a.yellow80,.8),success:i.a.green70,successBg:Object(a.transparentize)(i.a.green80,.8),info:i.a.blue60,infoBg:Object(a.transparentize)(i.a.blue70,.9),danger:i.a.red70,dangerBg:Object(a.transparentize)(i.a.red70,.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}),s=n(88);t.a=Object(r.a)(Object(r.a)({},o.a),{},{inSidebar:!1,genericColors:Object(r.a)(Object(r.a)({},o.a.genericColors),l),colors:Object(s.e)(Object(r.a)(Object(r.a)({},o.a.colors),l))})},29:function(e,t,n){"use strict";n.d(t,"d",(function(){return j})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return k}));n(0);var r,o,a=n(30),i=n(6),l=n(11),s=n.n(l),c=n(32);!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"}(r||(r={})),function(e){e.XSMALL="xsmall",e.SMALL="small",e.MEDIUM="medium",e.LARGE="large"}(o||(o={}));var u=s()("button",{target:"edgvbvh10"})((function(e){var t=e.fluidWidth,n=e.size,r=e.theme;return Object(i.a)({display:"inline-flex",alignItems:"center",justifyContent:"center",fontWeight:r.fontWeights.normal,padding:"".concat(r.spacing.xs," ").concat(r.spacing.md),borderRadius:r.radii.md,margin:0,lineHeight:r.lineHeights.base,color:"inherit",width:t?"100%":"auto",userSelect:"none","&:focus":{boxShadow:"0 0 0 0.2rem ".concat(Object(c.transparentize)(r.colors.primary,.5)),outline:"none"}},function(e,t){switch(e){case o.XSMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.sm),fontSize:t.fontSizes.sm};case o.SMALL:return{padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.md)};case o.LARGE:return{padding:"".concat(t.spacing.md," ").concat(t.spacing.md)};default:return{padding:"".concat(t.spacing.xs," ").concat(t.spacing.md)}}}(n,r))}),""),d=s()(u,{target:"edgvbvh9"})((function(e){var t=e.theme;return{backgroundColor:t.colors.lightenedBg05,border:"1px solid ".concat(t.colors.fadedText10),"&:hover":{borderColor:t.colors.primary,color:t.colors.primary},"&:active":{color:t.colors.white,borderColor:t.colors.primary,backgroundColor:t.colors.primary},"&:focus:not(:active)":{borderColor:t.colors.primary,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{color:t.colors.fadedText40,cursor:"not-allowed"}}}),""),p=s()(u,{target:"edgvbvh8"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"1px solid ".concat(t.colors.transparent),"&:hover":{borderColor:t.colors.transparent,color:t.colors.primary},"&:active":{color:t.colors.primary,borderColor:t.colors.transparent,backgroundColor:t.colors.transparent},"&:focus:not(:active)":{borderColor:t.colors.transparent,color:t.colors.primary},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),f=s()(u,{target:"edgvbvh7"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,padding:0,border:"none",color:t.colors.primary,"&:hover":{textDecoration:"underline"},"&:active":{backgroundColor:t.colors.transparent,color:t.colors.primary,textDecoration:"underline"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),h=s()(u,{target:"edgvbvh6"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"none",boxShadow:"none",padding:0,"&:hover, &:active, &:focus":{color:t.colors.primary}}}),""),m=s()(d,{target:"edgvbvh5"})(""),b=s()(u,{target:"edgvbvh4"})((function(e){var t,n=e.size,r=e.theme,i=(t={},Object(a.a)(t,o.XSMALL,r.spacing.threeXS),Object(a.a)(t,o.SMALL,r.spacing.twoXS),Object(a.a)(t,o.MEDIUM,r.spacing.md),Object(a.a)(t,o.LARGE,r.spacing.lg),t);return{backgroundColor:r.colors.transparent,border:"1px solid ".concat(r.colors.transparent),padding:i[n],"&:hover":{borderColor:r.colors.primary,color:r.colors.primary},"&:active":{backgroundColor:r.colors.primary,borderColor:r.colors.primary,color:r.colors.white},"&:not(:active)":{boxShadow:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:r.colors.lightGray,borderColor:r.colors.transparent,color:r.colors.gray}}}),""),y=s()(u,{target:"edgvbvh3"})((function(e){var t=e.theme;return{backgroundColor:t.colors.transparent,border:"none",padding:t.spacing.sm,fontSize:t.fontSizes.sm,marginLeft:t.spacing.threeXS,marginRight:t.spacing.threeXS,lineHeight:1,"&:focus":{outline:"none"},"&:focus-visible":{boxShadow:"0 0 0 0.2rem ".concat(Object(c.transparentize)(t.colors.gray90,.8))},"&:hover":{backgroundColor:t.colors.transparentDarkenedBgMix60},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:t.colors.lightGray,borderColor:t.colors.transparent,color:t.colors.gray}}}),""),g=s()(u,{target:"edgvbvh2"})((function(e){var t,n=e.size,r=e.theme,i=(t={},Object(a.a)(t,o.XSMALL,r.spacing.threeXS),Object(a.a)(t,o.SMALL,r.spacing.twoXS),Object(a.a)(t,o.MEDIUM,r.spacing.md),Object(a.a)(t,o.LARGE,r.spacing.lg),t);return{backgroundColor:r.colors.transparent,border:"1px solid ".concat(r.colors.transparent),padding:i[n],"&:focus":{boxShadow:"none",outline:"none"},"&:disabled, &:disabled:hover, &:disabled:active":{backgroundColor:r.colors.lightGray,borderColor:r.colors.transparent,color:r.colors.gray}}}),""),O=s()("div",{target:"edgvbvh1"})((function(e){var t=e.theme;return Object(a.a)({display:"block"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"none"})}),""),w=s()("div",{target:"edgvbvh0"})((function(e){var t=e.theme;return Object(a.a)({display:"none"},"@media (max-width: ".concat(t.breakpoints.sm,")"),{display:"block"})}),""),v=n(5);var j=function(e){var t=e.kind,n=e.size,a=e.disabled,i=e.onClick,l=e.fluidWidth,s=e.children,c=e.autoFocus,u=d;return t===r.SECONDARY?u=p:t===r.LINK?u=f:t===r.ICON?u=b:t===r.BORDERLESS_ICON?u=g:t===r.MINIMAL?u=h:t===r.FORM_SUBMIT?u=m:t===r.HEADER_BUTTON&&(u=y),Object(v.jsx)(u,{kind:t,size:n||o.MEDIUM,fluidWidth:l||!1,disabled:a||!1,onClick:i||function(){},autoFocus:c||!1,children:s})},S=n(157),x=n(80);function k(e){var t=e.children,n=e.help;return n?Object(v.jsxs)("div",{className:"stTooltipIcon",children:[Object(v.jsx)(O,{children:Object(v.jsx)(S.a,{content:n,placement:x.b.TOP,children:t})}),Object(v.jsx)(w,{children:t})]}):t}},296:function(e,t,n){"use strict";var r=n(6),o=n(32),a=n(20);t.a=Object(r.a)(Object(r.a)({},a.a),{},{bgColor:a.a.white,secondaryBg:a.a.gray20,bodyText:a.a.gray85,warning:a.a.yellow110,warningBg:Object(o.transparentize)(a.a.yellow80,.8),success:a.a.green100,successBg:Object(o.transparentize)(a.a.green80,.8),info:a.a.blue100,infoBg:Object(o.transparentize)(a.a.blue70,.9),danger:a.a.red100,dangerBg:Object(o.transparentize)(a.a.red70,.8),primary:a.a.red70,disabled:a.a.gray40,lightestGray:a.a.gray20,lightGray:a.a.gray30,gray:a.a.gray60,darkGray:a.a.gray70,red:a.a.red80,blue:a.a.blue80,green:a.a.green80,yellow:a.a.yellow80})},3651:function(e,t,n){},3674:function(e,t,n){"use strict";n.r(t);var r=n(0),o=n.n(r),a=n(111),i=n.n(a),l=n(1031),s=n(155),c=n(100),u=n(33),d=n(3691),p=n(37),f=n(219),h=n(25),m=n(5);var b=function(e){var t=e.theme,n=e.baseuiTheme,r=e.children;return Object(m.jsx)(f.b,{theme:n||h.lightBaseUITheme,children:Object(m.jsx)(p.ThemeProvider,{theme:t,children:r})})},y=n(6),g=n(16),O=n(17),w=n(274),v=n(35),j=n(36),S=n(98),x=n.n(S),k=n(126),I=n(152),C=n(108),P=n.n(C),T=n(241),V=n.n(T),E=n(67),A=n(406),D=n(281),R=n(18),N=n(137),F=n(198),M=n(96),B=n(73),L=n(47),z=n.n(L),W=n(40),U=n(89),_=n(19),H=function(){function e(){var t=this;Object(g.a)(this,e),this.initialized=!1,this.actuallySendMetrics=!1,this.pendingEvents=[],this.pendingDeltaCounter={},this.pendingCustomComponentCounter={},this.appHash="Not initialized",this.metadata={},this.setAppHash=function(e){t.appHash=e}}return Object(O.a)(e,[{key:"initialize",value:function(t){var n=t.gatherUsageStats;if(this.initialized=!0,this.actuallySendMetrics=n,this.actuallySendMetrics){!function(){var 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(){for(var n=arguments.length,r=new Array(n),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};this.initialized&&W.a.isSet()?this.actuallySendMetrics&&(this.pendingEvents.length&&this.sendPendingEvents(),this.send(e,t)):this.pendingEvents.push([e,t])}},{key:"clearDeltaCounter",value:function(){this.pendingDeltaCounter={}}},{key:"incrementDeltaCounter",value:function(e){null==this.pendingDeltaCounter[e]?this.pendingDeltaCounter[e]=1:this.pendingDeltaCounter[e]++}},{key:"getAndResetDeltaCounter",value:function(){var e=this.pendingDeltaCounter;return this.clearDeltaCounter(),e}},{key:"clearCustomComponentCounter",value:function(){this.pendingCustomComponentCounter={}}},{key:"incrementCustomComponentCounter",value:function(e){null==this.pendingCustomComponentCounter[e]?this.pendingCustomComponentCounter[e]=1:this.pendingCustomComponentCounter[e]++}},{key:"getAndResetCustomComponentCounter",value:function(){var e=this.pendingCustomComponentCounter;return this.clearCustomComponentCounter(),e}},{key:"send",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(y.a)(Object(y.a)(Object(y.a)(Object(y.a)({},n),this.getHostTrackingData()),e.getInstallationData()),{},{reportHash:this.appHash,dev:U.a,source:"browser",streamlitVersion:W.a.current.streamlitVersion});U.a?Object(_.a)("[Dev mode] Not tracking stat datapoint: ",t,r):this.track(t,r)}},{key:"sendPendingEvents",value:function(){var e=this;this.pendingEvents.forEach((function(t){var n=Object(u.a)(t,2),r=n[0],o=n[1];e.send(r,o)})),this.pendingEvents=[]}},{key:"identify",value:function(e,t){U.a?Object(_.a)("[Dev mode] Not sending id: ",e,t):analytics.identify(e,t)}},{key:"track",value:function(e,t){analytics.track(e,t)}},{key:"setMetadata",value:function(e){this.metadata=e}},{key:"getHostTrackingData",value:function(){return this.metadata?Object(L.pick)(this.metadata,["hostedAt","owner","repo","branch","mainModule","creatorId"]):{}}}],[{key:"getInstallationData",value:function(){return{machineIdV3:W.a.current.installationIdV3}}}]),e}();H.current=new H;var J=n(42),G="NO_SCRIPT_RUN_ID",q=function(){function e(t,n,r){Object(g.a)(this,e),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=t,this.metadata=n,this.scriptRunId=r}return Object(O.a)(e,[{key:"immutableElement",get:function(){if(void 0!==this.lazyImmutableElement)return this.lazyImmutableElement;var e=Object(B.c)(R.g,this.element);return this.lazyImmutableElement=e,e}},{key:"quiverElement",get:function(){if(void 0!==this.lazyQuiverElement)return this.lazyQuiverElement;if("arrowTable"!==this.element.type&&"arrowDataFrame"!==this.element.type)throw new Error("elementType '".concat(this.element.type,"' is not a valid Quiver element!"));var e=new N.b(this.element[this.element.type]);return this.lazyQuiverElement=e,e}},{key:"vegaLiteChartElement",get:function(){if(void 0!==this.lazyVegaLiteChartElement)return this.lazyVegaLiteChartElement;if("arrowVegaLiteChart"!==this.element.type)throw new Error("elementType '".concat(this.element.type,"' is not a valid VegaLiteChartElement!"));var e=this.element.arrowVegaLiteChart,t=e.data?new N.b(e.data):null,n=e.datasets.length>0?e.datasets.map((function(e){return{hasName:e.hasName,name:e.name,data:new N.b(e.data)}})):[],r={data:t,spec:e.spec,datasets:n,useContainerWidth:e.useContainerWidth};return this.lazyVegaLiteChartElement=r,r}},{key:"getIn",value:function(e){}},{key:"setIn",value:function(e,t,n){throw new Error("'setIn' cannot be called on an ElementNode")}},{key:"clearStaleNodes",value:function(e){return this.scriptRunId===e?this:void 0}},{key:"getElements",value:function(e){return null==e&&(e=new Set),e.add(this.element),e}},{key:"addRows",value:function(t,n){var r=new e(this.element,this.metadata,n);return r.lazyImmutableElement=Object(F.a)(this.immutableElement,Object(B.c)(R.m,t)),r}},{key:"arrowAddRows",value:function(t,n){var r=this.element.type,o=new e(this.element,this.metadata,n);switch(r){case"arrowTable":case"arrowDataFrame":o.lazyQuiverElement=e.quiverAddRowsHelper(this.quiverElement,t);break;case"arrowVegaLiteChart":o.lazyVegaLiteChartElement=e.vegaLiteChartAddRowsHelper(this.vegaLiteChartElement,t);break;default:throw new Error("elementType '".concat(this.element.type,"' is not a valid arrowAddRows target!"))}return o}}],[{key:"quiverAddRowsHelper",value:function(e,t){if(t.hasName)throw new Error("Add rows cannot be used with a named dataset for this element.");var n=new N.b(t.data);return e.addRows(n)}},{key:"vegaLiteChartAddRowsHelper",value:function(e,t){var n=t.hasName?t.name:null,r=new N.b(t.data);return Object(C.produce)(e,(function(e){var t=function(e,t){if(1===e.length)return e[0];return e.find((function(e){return e.hasName&&e.name===t}))}(e.datasets,n);t?t.data=t.data.addRows(r):e.data=e.data?e.data.addRows(r):r}))}}]),e}();var Y=function(){function e(t,n,r){Object(g.a)(this,e),this.children=void 0,this.deltaBlock=void 0,this.scriptRunId=void 0,this.children=null!==t&&void 0!==t?t:[],this.deltaBlock=null!==n&&void 0!==n?n:new R.d({}),this.scriptRunId=null!==r&&void 0!==r?r:G}return Object(O.a)(e,[{key:"isEmpty",get:function(){return 0===this.children.length}},{key:"getIn",value:function(e){if(0!==e.length){var t=e[0];if(!(t<0||t>=this.children.length))return 1===e.length?this.children[t]:this.children[t].getIn(e.slice(1))}}},{key:"setIn",value:function(t,n,r){if(0===t.length)throw new Error("empty path!");var o=t[0];if(o<0||o>this.children.length)throw new Error("Bad 'setIn' index ".concat(o," (should be between [0, ").concat(this.children.length,"])"));var a=this.children.slice();return 1===t.length?a[o]=n:a[o]=a[o].setIn(t.slice(1),n,r),new e(a,this.deltaBlock,r)}},{key:"clearStaleNodes",value:function(t){if(this.scriptRunId===t){var n=this.children.map((function(e){return e.clearStaleNodes(t)})).filter(J.l);if(0!==n.length||this.deltaBlock.allowEmpty)return new e(n,this.deltaBlock,t)}}},{key:"getElements",value:function(e){null==e&&(e=new Set);var t,n=Object(D.a)(this.children);try{for(n.s();!(t=n.n()).done;){t.value.getElements(e)}}catch(r){n.e(r)}finally{n.f()}return e}}]),e}(),X=function(){function e(t){if(Object(g.a)(this,e),this.root=void 0,this.root=t,2!==this.root.children.length||null==this.main||null==this.sidebar)throw new Error("Invalid root node children! ".concat(t))}return Object(O.a)(e,[{key:"main",get:function(){return this.root.children[R.x.RootContainer.MAIN]}},{key:"sidebar",get:function(){return this.root.children[R.x.RootContainer.SIDEBAR]}},{key:"applyDelta",value:function(e,t,n){var r=n.deltaPath;switch(H.current.incrementDeltaCounter(function(e){if(e.length>0)switch(e[0]){case R.x.RootContainer.MAIN:return"main";case R.x.RootContainer.SIDEBAR:return"sidebar"}throw new Error("Unrecognized RootContainer in deltaPath: ".concat(e))}(r)),t.type){case"newElement":var o=t.newElement;if(null!=o.type&&H.current.incrementDeltaCounter(o.type),"componentInstance"===o.type){var a,i=null===(a=o.componentInstance)||void 0===a?void 0:a.componentName;null!=i&&H.current.incrementCustomComponentCounter(i)}return this.addElement(r,e,o,n);case"addBlock":return H.current.incrementDeltaCounter("new block"),this.addBlock(r,t.addBlock,e);case"addRows":return H.current.incrementDeltaCounter("add rows"),this.addRows(r,t.addRows,e);case"arrowAddRows":H.current.incrementDeltaCounter("arrow add rows");try{return this.arrowAddRows(r,t.arrowAddRows,e)}catch(s){var l=Object(J.j)(Object(M.a)(s).message);return this.addElement(r,e,l,n)}default:throw new Error("Unrecognized deltaType: '".concat(t.type,"'"))}}},{key:"clearStaleNodes",value:function(t){var n=this.main.clearStaleNodes(t)||new Y,r=this.sidebar.clearStaleNodes(t)||new Y;return new e(new Y([n,r],new R.d({allowEmpty:!0}),t))}},{key:"getElements",value:function(){var e=new Set;return this.main.getElements(e),this.sidebar.getElements(e),e}},{key:"addElement",value:function(t,n,r,o){var a=new q(r,o,n);return new e(this.root.setIn(t,a,n))}},{key:"addBlock",value:function(t,n,r){var o=this.root.getIn(t),a=o instanceof Y?o.children:[],i=new Y(a,n,r);return new e(this.root.setIn(t,i,r))}},{key:"addRows",value:function(t,n,r){var o=this.root.getIn(t);if(null==o)throw new Error("Can't addRows: invalid deltaPath: ".concat(t));var a=o.addRows(n,r);return new e(this.root.setIn(t,a,r))}},{key:"arrowAddRows",value:function(t,n,r){var o=this.root.getIn(t);if(null==o)throw new Error("Can't arrowAddRows: invalid deltaPath: ".concat(t));var a=o.arrowAddRows(n,r);return new e(this.root.setIn(t,a,r))}}],[{key:"empty",value:function(t){var n;null!=t?n=[new q(Object(J.k)(t),R.j.create({}),G)]:n=[];var r=new Y(n,new R.d({allowEmpty:!0}),G),o=new Y([],new R.d({allowEmpty:!0}),G);return new e(new Y([r,o]))}}]),e}();var K=n(71),Q=n(3688),Z=n(3695),$=n(11),ee=n.n($),te=ee()("div",{target:"e1s6o5jp0"})((function(e){var t=e.theme;return{".streamlit-expanderHeader:hover svg":{fill:t.colors.primary},".streamlit-expander.empty":{"div[aria-expanded='true'] + .streamlit-expanderContent":{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.sm,textAlign:"center",paddingBottom:t.spacing.lg,paddingTop:t.spacing.lg,"&:before":{content:'"empty"'}}}}}),"");var ne=function(e){return function(t){var n=t.label,o=t.expanded,a=t.empty,i=t.widgetsDisabled,l=t.isStale,s=Object(K.a)(t,["label","expanded","empty","widgetsDisabled","isStale"]),c=Object(r.useState)(o),d=Object(u.a)(c,2),f=d[0],h=d[1];Object(r.useEffect)((function(){h(o)}),[n,o]);var b=Object(p.useTheme)(),g=b.colors,O=b.radii,w=b.spacing,v=b.fontSizes;return Object(m.jsx)(te,{"data-testid":"stExpander",children:Object(m.jsx)(Q.a,{onChange:function(){return h(!f)},expanded:f?["panel"]:[],disabled:i,overrides:{Content:{style:function(e){var t=e.$expanded;return{backgroundColor:g.transparent,marginLeft:w.none,marginRight:w.none,marginTop:w.none,marginBottom:w.none,overflow:"visible",paddingLeft:w.lg,paddingRight:w.lg,paddingTop:0,paddingBottom:t?w.lg:0,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none"}},props:{className:"streamlit-expanderContent"}},PanelContainer:{style:function(){return{marginLeft:"".concat(w.none," !important"),marginRight:"".concat(w.none," !important"),marginTop:"".concat(w.none," !important"),marginBottom:"".concat(w.none," !important"),paddingLeft:"".concat(w.none," !important"),paddingRight:"".concat(w.none," !important"),paddingTop:"".concat(w.none," !important"),paddingBottom:"".concat(w.none," !important")}}},Header:{style:function(e){var t=e.$disabled;return Object(y.a)({marginBottom:w.none,marginLeft:w.none,marginRight:w.none,marginTop:w.none,backgroundColor:g.transparent,color:t?g.disabled:g.bodyText,fontSize:v.sm,borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",paddingBottom:w.md,paddingTop:w.md,paddingRight:w.lg,paddingLeft:w.lg},l?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{})},props:{className:"streamlit-expanderHeader",isStale:l}},ToggleIcon:{style:function(e){return{color:e.$disabled?g.disabled:g.bodyText}}},Root:{props:{className:V()("streamlit-expander",{empty:a}),isStale:l},style:Object(y.a)({borderStyle:"solid",borderWidth:"1px",borderColor:g.fadedText10,borderRadius:O.md},l?{borderColor:g.fadedText05,transition:"border 1s ease-in 0.5s"}:{})}},children:Object(m.jsx)(Z.a,{title:n,children:Object(m.jsx)(e,Object(y.a)(Object(y.a)({},s),{},{disabled:i}))},"panel")})})}},re=n(227),oe=n(41);function ae(e,t){return"empty"!==e||t!==oe.a.RUNNING}function ie(e,t,n,r){return!e||function(e,t,n){return t===oe.a.RERUN_REQUESTED||t===oe.a.RUNNING&&e.scriptRunId!==n}(t,n,r)}var le=n(1021),se=n.n(le),ce=n(149),ue=n(228),de=ee()("div",{target:"edw49t14"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,fontFamily:t.fonts.sansSerif,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.xs),lineHeight:t.lineHeights.table}}),""),pe=ee()("table",{target:"edw49t13"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse",border:"1px solid ".concat(t.colors.fadedText05)}}),""),fe=function(e){return{borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),verticalAlign:"middle",padding:"".concat(e.spacing.twoXS," ").concat(e.spacing.xs),fontWeight:e.fontWeights.normal}},he=ee()("td",{target:"edw49t12"})((function(e){var t=e.theme;return fe(t)}),""),me=ee()("th",{target:"edw49t11"})((function(e){var t=e.theme;return Object(y.a)(Object(y.a)({},fe(t)),{},{color:t.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),be=ee()(he,{target:"edw49t10"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),"");function ye(e,t,n){return Object(m.jsx)("tr",{children:Object(L.range)(n).map((function(n){return function(e,t,n){var r,o=e.getCell(t,n),a=o.type,i=o.cssId,l=o.cssClass,s=o.content,c=o.contentType,u=o.displayContent||N.b.format(s,c),d=e.dimensions.headerColumns,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(a){case"blank":return Object(m.jsx)(me,{className:l,children:"\xa0"},n);case"index":return Object(m.jsx)(me,{scope:"row",id:i,className:l,children:u},n);case"columns":return Object(m.jsx)(me,{scope:"col",className:l,style:f,children:u},n);case"data":return Object(m.jsx)(he,{id:i,style:f,children:u},n);default:throw new Error('Cannot parse type "'.concat(a,'".'))}}(e,t,n)}))},t)}var ge=Object(ue.a)((function(e){var t=e.element,n=t.cssId,r=t.cssStyles,o=t.caption,a=t.dimensions,i=a.headerRows,l=a.rows,s=a.columns,c=Object(L.range)(l),u=c.slice(0,i),d=c.slice(i);return Object(m.jsxs)(de,{"data-testid":"stTable",children:[r&&Object(m.jsx)("style",{children:r}),Object(m.jsxs)(pe,{id:n,children:[o&&Object(m.jsx)("caption",{children:Object(m.jsx)("small",{children:o})}),u.length>0&&Object(m.jsx)("thead",{children:u.map((function(e){return ye(t,e,s)}))}),Object(m.jsx)("tbody",{children:0===d.length?Object(m.jsx)("tr",{children:Object(m.jsx)(be,{colSpan:s||1,children:"empty"})}):d.map((function(e){return ye(t,e,s)}))})]})]})}));var Oe=ee()("span",{target:"e17gupbm4"})((function(e){return{color:e.theme.colors.docStringModuleText}}),""),we=ee()("span",{target:"e17gupbm3"})((function(e){return{fontWeight:e.theme.fontWeights.bold}}),""),ve=ee()("span",{target:"e17gupbm2"})((function(e){var t=e.theme,n=e.width;return{backgroundColor:t.colors.docStringContainerBackground,padding:"".concat(t.spacing.sm," ").concat(t.spacing.lg),fontFamily:t.fonts.monospace,fontSize:t.fontSizes.sm,overflowX:"auto",width:n}}),""),je=ee()("div",{target:"e17gupbm1"})((function(e){var t=e.theme;return{paddingBottom:t.spacing.sm,marginBottom:t.spacing.sm,borderBottom:"1px solid ".concat(t.colors.fadedText10)}}),""),Se=ee()("div",{target:"e17gupbm0"})({name:"o572a0",styles:"white-space:pre"});function xe(e){var t=e.width,n=e.element,r=n.name,o=n.module,a=n.docString,i=n.type,l=n.signature,s=Object(m.jsxs)(Oe,{children:[o,"."]},"module"),c=Object(m.jsx)(we,{children:r},"name"),u=Object(m.jsx)("span",{className:"doc-signature",children:l},"signature"),d=Object(m.jsx)("span",{className:"doc-type",children:i},"type");return Object(m.jsxs)(ve,{width:t,"data-testid":"stDocstring",children:[Object(m.jsx)(je,{children:r?[o?s:"",c,l?u:""]:[d]}),Object(m.jsx)(Se,{children:a})]})}var ke=n(150),Ie=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){var e;Object(g.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?Object(m.jsx)(Ne,{stackTrace:t.stackTrace}):null]})})}var Me=n(32),Be=n(1022),Le=n.n(Be),ze=n(1023),We=n.n(ze);function Ue(e){var t,n=e.width,r=e.element,o={width:n},a=Object(p.useTheme)();try{t=JSON.parse(r.body)}catch(c){var i=Object(M.a)(c);try{t=Le.a.parse(r.body)}catch(u){var l=parseInt(i.message.replace(/[^0-9]/g,""),10);return i.message+="\n".concat(r.body.substr(0,l+1)," \u2190 here"),Object(m.jsx)(ke.a,{name:"Json Parse Error",message:i.message})}}var s=Object(Me.getLuminance)(a.colors.bgColor)>.5?"rjv-default":"monokai";return Object(m.jsx)("div",{"data-testid":"stJson",style:o,children:Object(m.jsx)(We.a,{src:t,collapsed:!r.expanded,displayDataTypes:!1,displayObjectSize:!1,name:!1,theme:s,style:{fontFamily:a.genericFonts.codeFont,fontSize:a.fontSizes.sm,backgroundColor:a.colors.bgColor}})})}function _e(e){var t=e.width,n=e.element,r={width:t};return Object(m.jsx)("div",{className:"stMarkdown",style:r,children:Object(m.jsx)(Te.a,{isCaption:n.isCaption,source:n.body,allowHTML:n.allowHtml})})}var He=n(81),Je=n(213),Ge=n(125),qe=ee()("div",{target:"e16fv1kl3"})((function(e){var t=e.theme;return{overflowWrap:"normal",textOverflow:"ellipsis",width:"100%",overflow:"hidden",whiteSpace:"nowrap",fontFamily:t.genericFonts.bodyFont,lineHeight:t.lineHeights.normal}}),""),Ye=ee()(Ge.b,{target:"e16fv1kl2"})((function(e){e.theme;return{marginBottom:0}}),""),Xe=ee()("div",{target:"e16fv1kl1"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.threeXL,color:t.colors.textColor,paddingBottom:t.spacing.twoXS}}),""),Ke=ee()("div",{target:"e16fv1kl0"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,display:"flex",flexDirection:"row",alignItems:"center",fontWeight:t.fontWeights.normal}}),"");function Qe(e){var t=e.element,n=Object(p.useTheme)().colors,r=R.l.MetricColor,o=R.l.MetricDirection,a=null,i="";switch(t.color){case r.RED:i=n.red;break;case r.GREEN:i=n.green;break;default:i=n.fadedText60}switch(t.direction){case o.DOWN:a=Je.ArrowDownward;break;case o.UP:a=Je.ArrowUpward;break;default:a=null}var l={color:i},s=""!==t.delta;return Object(m.jsxs)("div",{"data-testid":"metric-container",children:[Object(m.jsx)(Ye,{"data-testid":"stMetricLabel",children:Object(m.jsxs)(qe,{children:[" ",t.label," "]})}),Object(m.jsx)(Xe,{"data-testid":"stMetricValue",children:Object(m.jsxs)(qe,{children:[" ",t.body," "]})}),s&&Object(m.jsxs)(Ke,{"data-testid":"stMetricDelta",style:l,children:[Object(m.jsx)(He.a,{content:a,size:"lg",margin:"0 threeXS 0 0"}),Object(m.jsxs)(qe,{children:[" ",t.delta," "]})]})]})}var Ze=n(153),$e=ee()("div",{target:"e1ynspad4"})((function(e){var t=e.theme;return{fontSize:t.fontSizes.md,fontFamily:t.fonts.sansSerif,padding:"".concat(t.spacing.twoXS," ").concat(t.spacing.md),lineHeight:t.lineHeights.table}}),""),et=ee()("table",{target:"e1ynspad3"})((function(e){var t=e.theme;return{width:t.sizes.full,marginBottom:t.spacing.lg,color:t.colors.bodyText,borderCollapse:"collapse",border:"1px solid ".concat(t.colors.fadedText05)}}),""),tt=function(e){return{borderBottom:"1px solid ".concat(e.colors.fadedText05),borderRight:"1px solid ".concat(e.colors.fadedText05),verticalAlign:"middle",padding:"".concat(e.spacing.twoXS," ").concat(e.spacing.md),fontWeight:e.fontWeights.normal}},nt=ee()("td",{target:"e1ynspad2"})((function(e){var t=e.theme;return tt(t)}),""),rt=ee()("th",{target:"e1ynspad1"})((function(e){var t=e.theme;return Object(y.a)(Object(y.a)({},tt(t)),{},{color:t.colors.fadedText60,"@media print":{"@-moz-document url-prefix()":{fontWeight:"normal"}}})}),""),ot=ee()(nt,{target:"e1ynspad0"})((function(e){var t=e.theme;return{color:t.colors.darkGray,fontStyle:"italic",fontSize:t.fontSizes.md,textAlign:"center"}}),"");function at(e,t,n){return Object(m.jsx)("tr",{children:Object(L.range)(n).map((function(n){return function(e,t,n){var r=Object(F.b)(e,n,t),o=r.contents,a=r.styles,i=r.type,l=Object(Ze.b)(o);switch(i){case"corner":return Object(m.jsx)(rt,{children:"\xa0"},n);case"row-header":return Object(m.jsx)(rt,{scope:"row",children:l},n);case"col-header":return Object(m.jsx)(rt,{scope:"column",children:l},n);case"data":return Object(m.jsx)(nt,{style:a,children:l},n);default:throw new Error('Cannot parse type "'.concat(i,'".'))}}(e,t,n)}))},t)}var it=Object(ue.a)((function(e){var t=e.element,n=Object(F.c)(t),r=n.headerRows,o=n.rows,a=n.cols,i=Object(L.range)(o),l=i.slice(0,r),s=i.slice(r);return Object(m.jsx)($e,{"data-testid":"stTable",children:Object(m.jsxs)(et,{children:[l.length>0&&Object(m.jsx)("thead",{children:l.map((function(e){return at(t,e,a)}))}),Object(m.jsxs)("tbody",{children:[s.map((function(e){return at(t,e,a)})),0===s.length&&Object(m.jsx)("tr",{children:Object(m.jsx)(ot,{colSpan:a||1,children:"empty"})})]})]})})})),lt=ee()("div",{target:"eyqtai90"})((function(e){var t=e.theme;return{fontFamily:t.fonts.monospace,whiteSpace:"pre",fontSize:t.fontSizes.sm,overflowX:"auto"}}),"");function st(e){var t=e.width,n=e.element,r={width:t};return Object(m.jsx)(lt,{"data-testid":"stText",style:r,children:n.body})}var ct,ut,dt=n(390),pt=function(){function e(){Object(g.a)(this,e),this.timerHandle=void 0,this.duration=0,this.startTime=0,this.running=!1}return Object(O.a)(e,[{key:"isRunning",get:function(){return this.running}},{key:"remainingTime",get:function(){if(!this.running)return 0;var e=Date.now()-this.startTime;return Math.max(this.duration-e,0)}},{key:"setTimeout",value:function(e,t){var n=this;this.cancel(),this.startTime=Date.now(),this.duration=t,this.running=!0,this.timerHandle=window.setTimeout((function(){n.running=!1,e()}),t)}},{key:"cancel",value:function(){void 0!==this.timerHandle&&(window.clearTimeout(this.timerHandle),this.timerHandle=void 0,this.running=!1)}}]),e}(),ft=n(1024),ht=n.n(ft),mt=n(54);!function(e){e.COMPONENT_READY="streamlit:componentReady",e.SET_COMPONENT_VALUE="streamlit:setComponentValue",e.SET_FRAME_HEIGHT="streamlit:setFrameHeight"}(ct||(ct={})),function(e){e.RENDER="streamlit:render"}(ut||(ut={}));var bt=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var o;return Object(g.a)(this,n),(o=t.call(this,e)).iframeRef=Object(r.createRef)(),o.componentReady=!1,o.curArgs={},o.curDataframeArgs=[],o.frameHeight=0,o.contentWindow=void 0,o.componentReadyWarningTimer=new pt,o.componentDidMount=function(){o.maybeRegisterIFrameListener(),o.componentReadyWarningTimer.setTimeout((function(){return o.setState({readyTimeout:!0})}),3e3)},o.componentWillUnmount=function(){o.deregisterIFrameListener(),o.componentReadyWarningTimer.cancel()},o.componentDidUpdate=function(){o.maybeRegisterIFrameListener()},o.maybeRegisterIFrameListener=function(){var e=o.getIFrameContentWindow();if(o.contentWindow!==e){if(o.deregisterIFrameListener(),null==e)return Object(_.b)("ComponentInstance iframe does not have a contentWindow, and will not receive messages!"),void(o.contentWindow=void 0);o.contentWindow=e,o.props.registry.registerListener(o.contentWindow,o.onBackMsg)}},o.deregisterIFrameListener=function(){null!=o.contentWindow&&(o.props.registry.deregisterListener(o.contentWindow),o.contentWindow=void 0)},o.onBackMsg=function(e,t){switch(e){case ct.COMPONENT_READY:var n=t.apiVersion;1!==n?o.setState({componentError:new Error("Unrecognized component API version: '".concat(n,"'"))}):(o.componentReady=!0,o.sendRenderMessage()),o.componentReadyWarningTimer.cancel(),o.setState({readyTimeout:!1});break;case ct.SET_COMPONENT_VALUE:o.componentReady?o.handleSetComponentValue(t,{fromUi:!0}):Object(_.d)("Got ".concat(e," before ").concat(ct.COMPONENT_READY,"!"));break;case ct.SET_FRAME_HEIGHT:o.componentReady?o.handleSetFrameHeight(t):Object(_.d)("Got ".concat(e," before ").concat(ct.COMPONENT_READY,"!"));break;default:Object(_.d)("Unrecognized ComponentBackMsgType: ".concat(e))}},o.handleSetComponentValue=function(e,t){var n=yt(e,"value");if(void 0!==n){var r=o.props.element,a=e.dataType;"dataframe"===a?o.props.widgetMgr.setArrowValue(r,n,t):"bytes"===a?o.props.widgetMgr.setBytesValue(r,n,t):o.props.widgetMgr.setJsonValue(r,n,t)}else Object(_.d)("handleSetComponentValue: missing 'value' prop")},o.handleSetFrameHeight=function(e){var t=yt(e,"height");void 0!==t?t!==o.frameHeight&&(null!=o.iframeRef.current?(o.frameHeight=t,o.iframeRef.current.height=o.frameHeight.toString()):Object(_.d)("handleSetFrameHeight: missing our iframeRef!")):Object(_.d)("handleSetFrameHeight: missing 'height' prop")},o.sendForwardMsg=function(e,t){null!=o.iframeRef.current?null!=o.iframeRef.current.contentWindow?o.iframeRef.current.contentWindow.postMessage(Object(y.a)({type:e},t),"*"):Object(_.d)("Can't send ForwardMsg; iframe has no contentWindow!"):Object(_.d)("Can't send ForwardMsg; missing our iframe!")},o.sendRenderMessage=function(){o.sendForwardMsg(ut.RENDER,{args:o.curArgs,dfs:o.curDataframeArgs,disabled:o.props.disabled,theme:Object(h.toExportedTheme)(o.props.theme)})},o.renderError=function(e){return Object(m.jsx)(ke.a,{name:e.name,message:e.message})},o.renderComponentReadyTimeoutWarning=function(){var e="Your app is having trouble loading the **".concat(o.props.element.componentName,"** component. ")+"\n\n(The app is attempting to load the component from **".concat(o.props.element.url,"**, and hasn't ")+'received its **"'.concat(ct.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](".concat(mt.e,") ")+"or visit our [forums](".concat(mt.d,").");return Object(m.jsx)(ce.a,{width:o.props.width,body:e,kind:Pe.a.WARNING})},o.state={componentError:void 0,readyTimeout:!1},o}return Object(O.a)(n,[{key:"getIFrameContentWindow",value:function(){var e;return null===(e=this.iframeRef.current)||void 0===e?void 0:e.contentWindow}},{key:"render",value:function(){if(null!=this.state.componentError)return this.renderError(this.state.componentError);var e,t,n,r=this.state.readyTimeout?this.renderComponentReadyTimeoutWarning():null,o=[];try{n=this.props.element.componentName;var a=this.props.element.url;t=null!=a&&""!==a?a:this.props.registry.getComponentURL(n,"index.html"),t=ht.a.stringifyUrl({url:t,query:{streamlitUrl:window.location.href}}),e=JSON.parse(this.props.element.jsonArgs),this.props.element.specialArgs.forEach((function(t){var n=t,r=n.key;switch(n.value){case"arrowDataframe":o.push({key:r,value:R.b.toObject(n.arrowDataframe)});break;case"bytes":e[r]=n.bytes;break;default:throw new Error("Unrecognized SpecialArg type: ".concat(n.value))}}))}catch(l){var i=Object(M.a)(l);return this.setState({componentError:i}),this.renderError(i)}return this.curArgs=e,this.curDataframeArgs=o,this.componentReady&&this.sendRenderMessage(),Object(m.jsxs)(m.Fragment,{children:[r,Object(m.jsx)("iframe",{allow:dt.a,ref:this.iframeRef,src:t,width:this.props.width,height:this.frameHeight,scrolling:"no",sandbox:dt.b,title:n})]})}}]),n}(o.a.PureComponent);function yt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return e.hasOwnProperty(t)?e[t]:n}var gt=Object(p.withTheme)(bt),Ot=n(78),wt=function e(t){var n=this;Object(g.a)(this,e),this.getServerUri=void 0,this.msgListeners=new Map,this.cachedServerUri=void 0,this.registerListener=function(e,t){n.msgListeners.has(e)&&Object(_.d)("MessageEventSource registered multiple times!",e),n.msgListeners.set(e,t)},this.deregisterListener=function(e){n.msgListeners.delete(e)||Object(_.d)("Could not deregister unregistered MessageEventSource!")},this.getComponentURL=function(e,t){var r=n.getServerUri();if(void 0===r){if(void 0===n.cachedServerUri)throw new Error("Can't fetch component: not connected to a server");r=n.cachedServerUri}return n.cachedServerUri=r,Object(Ot.a)(r,"component/".concat(e,"/").concat(t))},this.onMessageEvent=function(e){if(null!=e.data&&e.data.hasOwnProperty("isStreamlitMessage"))if(null!=e.source){var t=n.msgListeners.get(e.source);if(null!=t){var r=e.data.type;null!=r?t(r,e.data):Object(_.d)("Received Streamlit message with no type!",e.data)}else Object(_.d)("Received component message for unregistered ComponentInstance!",e.data)}else Object(_.d)("Received component message with no eventSource!",e.data)},this.getServerUri=t,window.addEventListener("message",this.onMessageEvent)},vt=n(275),jt=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(){return Object(g.a)(this,n),t.apply(this,arguments)}return Object(O.a)(n,[{key:"shouldComponentUpdate",value:function(e,t,n){return this.props.enable||e.enable}},{key:"render",value:function(){return this.props.children}}]),n}(o.a.Component),St=n(30),xt=ee()("div",{target:"e1tzin5v4"})((function(e){return{display:"flex",flexWrap:"wrap",flexGrow:1,alignItems:"stretch",gap:e.theme.spacing.lg}}),""),kt=ee()("div",{target:"e1tzin5v3"})((function(e){var t=e.theme,n=e.isStale,r=e.width,o=e.elementType;return Object(y.a)(Object(y.a)(Object(y.a)({width:r,position:"relative","@media print":{"@-moz-document url-prefix()":{display:"block"},overflow:"visible"}},n?{opacity:.33,transition:"opacity 1s ease-in 0.5s"}:{}),"empty"===o?{display:"none"}:{}),"balloons"===o?{marginBottom:"-".concat(t.spacing.lg)}:{})}),""),It=ee()("div",{target:"e1tzin5v2"})((function(e){var t=e.weight,n=e.theme,r="calc(".concat(100*t,"% - ").concat(n.spacing.lg,")");return Object(St.a)({width:r,flex:"1 1 ".concat(r)},"@media (max-width: ".concat(n.breakpoints.columns,")"),{minWidth:"calc(100% - ".concat(n.spacing.twoXL,")")})}),""),Ct=(ee()("div",{target:"e1tzin5v1"})((function(e){var t=e.theme;return{padding:t.spacing.lg,border:"1px solid ".concat(t.colors.fadedText10),borderRadius:t.radii.md}}),""),{display:"flex",flexDirection:"column",flex:1}),Pt=ee()("div",{target:"e1tzin5v0"})((function(e){return{width:e.width,position:"relative",display:"flex",flex:1,flexDirection:"column",gap:e.theme.spacing.lg}}),""),Tt=o.a.lazy((function(){return n.e(28).then(n.bind(null,6723))})),Vt=o.a.lazy((function(){return n.e(12).then(n.bind(null,6706))})),Et=o.a.lazy((function(){return n.e(13).then(n.bind(null,6710))})),At=o.a.lazy((function(){return n.e(26).then(n.bind(null,6711))})),Dt=o.a.lazy((function(){return Promise.all([n.e(1),n.e(27)]).then(n.bind(null,6715))})),Rt=o.a.lazy((function(){return n.e(29).then(n.bind(null,6724))})),Nt=se()(Rt,100),Ft=o.a.lazy((function(){return n.e(30).then(n.bind(null,6707))})),Mt=o.a.lazy((function(){return Promise.all([n.e(7),n.e(10)]).then(n.bind(null,6708))})),Bt=o.a.lazy((function(){return Promise.all([n.e(9),n.e(15)]).then(n.bind(null,6716))})),Lt=o.a.lazy((function(){return n.e(31).then(n.bind(null,6725))})),zt=o.a.lazy((function(){return Promise.all([n.e(8),n.e(23)]).then(n.bind(null,6717))})),Wt=o.a.lazy((function(){return Promise.all([n.e(22),n.e(32)]).then(n.bind(null,6726))})),Ut=o.a.lazy((function(){return Promise.all([n.e(1),n.e(34)]).then(n.bind(null,6718))})),_t=o.a.lazy((function(){return n.e(35).then(n.bind(null,6727))})),Ht=o.a.lazy((function(){return n.e(36).then(n.bind(null,6728))})),Jt=o.a.lazy((function(){return n.e(40).then(n.bind(null,6729))})),Gt=o.a.lazy((function(){return Promise.all([n.e(6),n.e(20)]).then(n.bind(null,6712))})),qt=o.a.lazy((function(){return n.e(37).then(n.bind(null,6713))})),Yt=o.a.lazy((function(){return n.e(38).then(n.bind(null,6730))})),Xt=o.a.lazy((function(){return Promise.all([n.e(0),n.e(2),n.e(17),n.e(39)]).then(n.bind(null,6731))})),Kt=o.a.lazy((function(){return n.e(11).then(n.bind(null,6732))})),Qt=o.a.lazy((function(){return n.e(18).then(n.bind(null,6733))})),Zt=o.a.lazy((function(){return n.e(33).then(n.bind(null,6719))})),$t=o.a.lazy((function(){return n.e(41).then(n.bind(null,6709))})),en=o.a.lazy((function(){return n.e(42).then(n.bind(null,6734))})),tn=o.a.lazy((function(){return Promise.all([n.e(14),n.e(43)]).then(n.bind(null,6720))})),nn=o.a.lazy((function(){return Promise.all([n.e(25),n.e(21)]).then(n.bind(null,6705))})),rn=o.a.lazy((function(){return Promise.all([n.e(0),n.e(24)]).then(n.bind(null,6714))})),on=o.a.lazy((function(){return Promise.all([n.e(0),n.e(19)]).then(n.bind(null,6721))})),an=o.a.lazy((function(){return Promise.all([n.e(2),n.e(44)]).then(n.bind(null,6735))})),ln=o.a.lazy((function(){return Promise.all([n.e(0),n.e(16)]).then(n.bind(null,6722))})),sn=function(e){var t,n=e.node;if(!n)throw new Error("ElementNode not found.");var r,o={widgetMgr:e.widgetMgr,disabled:e.widgetsDisabled},a=null!==(t=e.width)&&void 0!==t?t:0;switch(n.metadata.elementDimensionSpec&&(n.metadata.elementDimensionSpec.width&&n.metadata.elementDimensionSpec.width>0&&(a=Math.min(n.metadata.elementDimensionSpec.width,a)),n.metadata.elementDimensionSpec.height&&n.metadata.elementDimensionSpec.height>0&&(r=n.metadata.elementDimensionSpec.height)),n.element.type){case"alert":var i=n.element.alert;return Object(m.jsx)(ce.a,{width:a,body:i.body,kind:Object(vt.b)(i.format)});case"audio":return Object(m.jsx)(Tt,{width:a,element:n.element.audio});case"balloons":return Object(m.jsx)(Vt,{scriptRunId:e.scriptRunId});case"arrowDataFrame":return Object(m.jsx)(At,{element:n.quiverElement,width:a,height:r});case"arrowTable":return Object(m.jsx)(ge,{element:n.quiverElement});case"arrowVegaLiteChart":return Object(m.jsx)(Dt,{element:n.vegaLiteChartElement,width:a});case"bokehChart":return Object(m.jsx)(Nt,{width:a,element:n.element.bokehChart});case"dataFrame":return Object(m.jsx)(Ft,{element:n.immutableElement.get("dataFrame"),width:a,height:r});case"deckGlJsonChart":return Object(m.jsx)(Mt,{width:a,element:n.element.deckGlJsonChart});case"docString":return Object(m.jsx)(xe,{width:a,element:n.element.docString});case"empty":return Object(m.jsx)("div",{className:"stHidden"});case"exception":return Object(m.jsx)(Fe,{width:a,element:n.element.exception});case"graphvizChart":return Object(m.jsx)(Bt,{element:n.element.graphvizChart,width:a});case"iframe":return Object(m.jsx)(Lt,{element:n.element.iframe,width:a});case"imgs":return Object(m.jsx)(zt,{width:a,element:n.element.imgs});case"json":return Object(m.jsx)(Ue,{width:a,element:n.element.json});case"markdown":return Object(m.jsx)(_e,{width:a,element:n.element.markdown});case"plotlyChart":return Object(m.jsx)(Wt,{width:a,height:r,element:n.element.plotlyChart});case"progress":return Object(m.jsx)(Qt,{width:a,element:n.element.progress});case"spinner":return Object(m.jsx)(Zt,{width:a,element:n.element.spinner});case"table":return Object(m.jsx)(it,{element:n.immutableElement.get("table"),width:a});case"text":return Object(m.jsx)(st,{width:a,element:n.element.text});case"metric":return Object(m.jsx)(Qe,{element:n.element.metric});case"vegaLiteChart":return Object(m.jsx)(Ut,{element:n.immutableElement.get("vegaLiteChart"),width:a});case"video":return Object(m.jsx)(_t,{width:a,element:n.element.video});case"button":var l=n.element.button;if(o.disabled=o.disabled||l.disabled,l.isFormSubmitter){var s=l.formId,c=e.formsData.formsWithUploads.has(s);return Object(m.jsx)(re.c,Object(y.a)({element:l,width:a,hasInProgressUpload:c},o))}return Object(m.jsx)(Ht,Object(y.a)({element:l,width:a},o));case"downloadButton":var u=n.element.downloadButton;return o.disabled=o.disabled||u.disabled,Object(m.jsx)(Jt,Object(y.a)({element:u,width:a},o),u.id);case"cameraInput":var d=n.element.cameraInput;return o.disabled=o.disabled||d.disabled,Object(m.jsx)(Gt,Object(y.a)({element:d,uploadClient:e.uploadClient,width:a},o),d.id);case"checkbox":var p=n.element.checkbox;return o.disabled=o.disabled||p.disabled,Object(m.jsx)(qt,Object(y.a)({element:p,width:a},o),p.id);case"colorPicker":var f=n.element.colorPicker;return o.disabled=o.disabled||f.disabled,Object(m.jsx)(Yt,Object(y.a)({element:f,width:a},o),f.id);case"componentInstance":return Object(m.jsx)(gt,Object(y.a)({registry:e.componentRegistry,element:n.element.componentInstance,width:a},o));case"dateInput":var h=n.element.dateInput;return o.disabled=o.disabled||h.disabled,Object(m.jsx)(Xt,Object(y.a)({element:h,width:a},o),h.id);case"fileUploader":var b=n.element.fileUploader;return o.disabled=o.disabled||b.disabled,Object(m.jsx)(nn,{element:b,width:a,widgetMgr:o.widgetMgr,uploadClient:e.uploadClient,disabled:o.disabled},b.id);case"multiselect":var g=n.element.multiselect;return o.disabled=o.disabled||g.disabled,Object(m.jsx)(Kt,Object(y.a)({element:g,width:a},o),g.id);case"numberInput":var O=n.element.numberInput;return o.disabled=o.disabled||O.disabled,Object(m.jsx)(ln,Object(y.a)({element:O,width:a},o),O.id);case"radio":var w=n.element.radio;return o.disabled=o.disabled||w.disabled,Object(m.jsx)($t,Object(y.a)({element:w,width:a},o),w.id);case"selectbox":var v=n.element.selectbox;return o.disabled=o.disabled||v.disabled,Object(m.jsx)(en,Object(y.a)({element:v,width:a},o),v.id);case"slider":var j=n.element.slider;return o.disabled=o.disabled||j.disabled,Object(m.jsx)(tn,Object(y.a)({element:j,width:a},o),j.id);case"snow":return Object(m.jsx)(Et,{scriptRunId:e.scriptRunId});case"textArea":var S=n.element.textArea;return o.disabled=o.disabled||S.disabled,Object(m.jsx)(rn,Object(y.a)({element:S,width:a},o),S.id);case"textInput":var x=n.element.textInput;return o.disabled=o.disabled||x.disabled,Object(m.jsx)(on,Object(y.a)({element:x,width:a},o),x.id);case"timeInput":var k=n.element.timeInput;return o.disabled=o.disabled||k.disabled,Object(m.jsx)(an,Object(y.a)({element:k,width:a},o),k.id);default:throw new Error("Unrecognized Element type ".concat(n.element.type))}},cn=function(e){var t,n=e.node,o=n.element.type||"",a=ae(o,e.scriptRunState),i=ie(a,n,e.scriptRunState,e.scriptRunId),l=null!==(t=e.width)&&void 0!==t?t:0;return Object(m.jsx)(jt,{enable:a,children:Object(m.jsx)(kt,{"data-stale":i,isStale:i,width:l,className:"element-container",elementType:o,children:Object(m.jsx)(Ce,{width:l,children:Object(m.jsx)(r.Suspense,{fallback:Object(m.jsx)(ce.a,{body:"Loading...",kind:Pe.a.INFO,width:l}),children:Object(m.jsx)(sn,Object(y.a)({},e))})})})})},un=ne(mn),dn=function(e){var t=e.node;if(t.isEmpty&&!t.deltaBlock.column)return Object(m.jsx)(m.Fragment,{});var n,r=ie(ae("",e.scriptRunState),t,e.scriptRunState,e.scriptRunId),o=t.deltaBlock.expandable?Object(y.a)({empty:t.isEmpty,isStale:r},t.deltaBlock.expandable):{},a=Object(y.a)(Object(y.a)(Object(y.a)({},e),o),{node:t}),i=t.deltaBlock.expandable?Object(m.jsx)(un,Object(y.a)({},a)):Object(m.jsx)(mn,Object(y.a)({},a));if("form"===t.deltaBlock.type){var l=t.deltaBlock.form,s=l.formId,c=l.clearOnSubmit,u=e.formsData.submitButtonCount.get(s),d=void 0!==u&&u>0;return Object(m.jsx)(re.a,{formId:s,clearOnSubmit:c,width:e.width,hasSubmitButton:d,scriptRunState:e.scriptRunState,widgetMgr:e.widgetMgr,children:i})}return t.deltaBlock.column?Object(m.jsx)(It,{weight:null!==(n=t.deltaBlock.column.weight)&&void 0!==n?n:0,"data-testid":"column",children:i}):i},pn=function(e){return Object(m.jsx)(m.Fragment,{children:e.node.children.map((function(t,n){if(t instanceof q){var r=Object(y.a)(Object(y.a)({},e),{node:t}),o=Object(J.c)(t.element)||n;return Object(m.jsx)(cn,Object(y.a)({},r),o)}if(t instanceof Y){var a=Object(y.a)(Object(y.a)({},e),{node:t});return Object(m.jsx)(dn,Object(y.a)({},a),n)}throw new Error("Unrecognized AppNode: ".concat(t))}))})},fn=function(e){return Object(m.jsx)(A.AutoSizer,{disableHeight:!0,style:Ct,children:function(t){var n=t.width,r=Object(y.a)(Object(y.a)({},e),{width:n});return Object(m.jsx)(Pt,{width:n,"data-testid":"stVerticalBlock",children:Object(m.jsx)(pn,Object(y.a)({},r))})}})},hn=function(e){return Object(m.jsx)(xt,{"data-testid":"stHorizontalBlock",children:Object(m.jsx)(pn,Object(y.a)({},e))})};function mn(e){return e.node.deltaBlock.horizontal?Object(m.jsx)(hn,Object(y.a)({},e)):Object(m.jsx)(fn,Object(y.a)({},e))}var bn=fn,yn=n(97),gn=n(29),On=ee()("section",{target:"e1fqkh3o3"})((function(e){var t,n,r=e.theme;return n={},Object(St.a)(n,"@media (max-width: ".concat(r.breakpoints.md,")"),{marginLeft:r.spacing.none,position:"absolute",top:0,left:0,right:0,bottom:0}),Object(St.a)(n,"::-webkit-scrollbar-thumb:vertical,\n ::-webkit-scrollbar-thumb:horizontal,\n ::-webkit-scrollbar-thumb:vertical:active,\n ::-webkit-scrollbar-thumb:horizontal:active",{background:r.colors.transparent}),Object(St.a)(n,"&:hover",(t={},Object(St.a)(t,"::-webkit-scrollbar-thumb:vertical,\n ::-webkit-scrollbar-thumb:horizontal",{background:"rgba(0, 0, 0, 0.5)"}),Object(St.a)(t,"::-webkit-scrollbar-thumb:vertical:active,\n ::-webkit-scrollbar-thumb:horizontal:active",{background:"rgba(0, 0, 0, 0.61)",borderRadius:"100px"}),t)),n}),""),wn=ee()("div",{target:"e1fqkh3o2"})((function(e){var t,n=e.isCollapsed,r=e.theme;return t={backgroundColor:r.colors.bgColor,backgroundAttachment:"fixed",flexShrink:0,height:"calc(100vh - 2px)",top:"2px",overflow:"auto",padding:"6rem ".concat(r.spacing.lg),position:"relative",transition:"margin-left 300ms, box-shadow 300ms",width:r.sizes.sidebar,zIndex:r.zIndices.header+1,marginLeft:n?"-".concat(r.sizes.sidebar):r.spacing.none,"&:focus":{outline:"none"}},Object(St.a)(t,"@media (max-width: ".concat(r.breakpoints.md,")"),{boxShadow:"-2rem 0 2rem 2rem ".concat(n?"transparent":"#00000029"),zIndex:r.zIndices.sidebarMobile}),Object(St.a)(t,"& h1",{fontSize:r.fontSizes.xl,fontWeight:600}),Object(St.a)(t,"& h2",{fontSize:r.fontSizes.lg,fontWeight:600}),Object(St.a)(t,"& h3",{fontSize:r.fontSizes.mdLg,fontWeight:600}),Object(St.a)(t,"& h4",{fontSize:r.fontSizes.md,fontWeight:600}),Object(St.a)(t,"& h5",{fontSize:r.fontSizes.sm,fontWeight:600}),Object(St.a)(t,"& h6",{fontSize:r.fontSizes.twoSm,fontWeight:600}),t}),""),vn=ee()("div",{target:"e1fqkh3o1"})((function(e){var t=e.theme;return{position:"absolute",top:t.spacing.sm,right:t.spacing.sm,zIndex:1,color:t.colors.fadedText40,"&:hover button":{backgroundColor:Object(Me.transparentize)(t.colors.fadedText60,.5)}}}),""),jn=ee()("div",{target:"e1fqkh3o0"})((function(e){var t=e.chevronDownshift,n=e.isCollapsed,r=e.theme;return Object(St.a)({position:"fixed",top:t?"".concat(t,"px"):r.spacing.sm,left:n?r.spacing.sm:"-".concat(r.spacing.sm),zIndex:r.zIndices.header,transition:"left 300ms",transitionDelay:"left 300ms",color:r.colors.fadedText40},"@media (max-width: ".concat(r.breakpoints.md,")"),{color:r.colors.bodyText})}),""),Sn=n(221),xn=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e)).mediumBreakpointPx=void 0,r.sidebarRef=o.a.createRef(),r.handleClickOutside=function(e){if(r.sidebarRef&&window){var t=r.sidebarRef.current,n=window.innerWidth;t&&!t.contains(e.target)&&n<=r.mediumBreakpointPx&&r.setState({collapsedSidebar:!0})}},r.checkMobileOnResize=function(){if(!window)return!1;var e=window.innerWidth;return e.5?"":"invert(1)";return{opacity:.4,width:"1.6rem",height:"1.6rem",marginRight:"-".concat(t.spacing.sm),filter:n}}),""),qn=ee()("div",{target:"ehezqtx1"})((function(e){e.theme;return{"&.StatusWidget-appear":{opacity:0},"&.StatusWidget-appear-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-enter":{opacity:0},"&.StatusWidget-enter-active":{opacity:1,transition:"opacity 200ms ease-out"},"&.StatusWidget-exit":{opacity:1},"&.StatusWidget-exit-active":{opacity:0,transition:"opacity 200ms ease-out"}}}),""),Yn=ee()("div",{target:"ehezqtx0"})((function(e){e.theme;return{"&::first-letter":{textDecoration:"underline"}}}),""),Xn=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e)).sessionEventConn=void 0,r.curView=void 0,r.minimizePromptTimer=new pt,r.keyHandlers=void 0,r.handleScroll=function(){r.setState({statusMinimized:n.shouldMinimize()})},r.onAppPromptHover=function(){r.setState({promptHovered:!0})},r.onAppPromptUnhover=function(){r.setState({promptHovered:!1,promptMinimized:!1}),r.minimizePromptAfterTimeout(1e3)},r.handleStopScriptClick=function(){r.props.stopScript()},r.handleRerunClick=function(){r.props.rerunScript(!1)},r.handleAlwaysRerunClick=function(){r.props.allowRunOnSave&&r.props.rerunScript(!0)},r.state={statusMinimized:n.shouldMinimize(),promptMinimized:!1,scriptChangedOnDisk:!1,promptHovered:!1},r.keyHandlers={a:r.handleAlwaysRerunClick},r}return Object(O.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.sessionEventConn=this.props.sessionEventDispatcher.onSessionEvent.connect((function(t){return e.handleSessionEvent(t)})),window.addEventListener("scroll",this.handleScroll)}},{key:"componentWillUnmount",value:function(){void 0!==this.sessionEventConn&&(this.sessionEventConn.disconnect(),this.sessionEventConn=void 0),this.minimizePromptTimer.cancel(),window.removeEventListener("scroll",this.handleScroll)}},{key:"isConnected",value:function(){return this.props.connectionState===Fn.CONNECTED}},{key:"handleSessionEvent",value:function(e){"scriptChangedOnDisk"===e.type&&(this.setState({scriptChangedOnDisk:!0,promptMinimized:!1}),this.minimizePromptAfterTimeout(15e3))}},{key:"minimizePromptAfterTimeout",value:function(e){var t=this;e>this.minimizePromptTimer.remainingTime&&this.minimizePromptTimer.setTimeout((function(){t.setState({promptMinimized:!0})}),e)}},{key:"render",value:function(){var e,t,n=this.curView;return this.curView=this.renderWidget(),null==n&&null==this.curView?null:(null!=this.curView?(e=!0,t=this.curView):(e=!1,t=n),Object(m.jsx)(Bn.CSSTransition,{appear:!0,in:e,timeout:200,unmountOnExit:!0,classNames:"StatusWidget",children:Object(m.jsx)(qn,{"data-testid":"stStatusWidget",children:t},"StatusWidget")}))}},{key:"renderWidget",value:function(){if(this.isConnected()){if(this.props.scriptRunState===oe.a.RUNNING||this.props.scriptRunState===oe.a.RERUN_REQUESTED)return this.renderScriptIsRunning();if(!U.b&&this.state.scriptChangedOnDisk)return this.renderRerunScriptPrompt()}return this.renderConnectionStatus()}},{key:"renderConnectionStatus",value:function(){var e=n.getConnectionStateUI(this.props.connectionState);return void 0===e?null:Object(m.jsx)(Ln.d,{content:e.tooltip,placement:Ln.b.BOTTOM,children:Object(m.jsxs)(zn,{"data-testid":"stConnectionStatus",children:[Object(m.jsx)(He.a,{size:"sm",content:e.icon}),Object(m.jsx)(Wn,{isMinimized:this.state.statusMinimized,children:e.label})]})})}},{key:"renderScriptIsRunning",value:function(){var e=this.state.statusMinimized,t=this.props.scriptRunState===oe.a.STOP_REQUESTED,r=n.promptButton(t?"Stopping...":"Stop",t,this.handleStopScriptClick,e),o=Object(m.jsx)(Gn,{src:"data:image/gif;base64,R0lGODlhgACAAPAAAAAAAAAAACH5BAkUAAEAIf8LTkVUU0NBUEUyLjADAQAAACwAAAAAgACAAAAC/oyPqcvtD6OctNqLs968+w+G4kiW5omm6sq27gvH8kzX9o3nKcD3vA5s+Ia9oNFATAKOQKWSiXM6oTbpkzqzTrEx7ZX78ibBYfGYzDKf0So1kZ12/+Ar+Zy+s+Pr7j1f7ffnFRinRegiddg1pNho5OMIKbhGZpXXl6N3YrdlwvlF8ik6SioZWoqaauap2ur6xvoqm4oya1t6easL2Lbra1j2+5sp3ApWjKmI7Bghy1zh/DwRLd38Wi1Bje2gvc3Q7a0AHo4wTo50fb5gfs5O7h4O7y2/TY9tX40vrf/Mz+wfKZ26BAAbFVQmcOCBg4cYEnIYCKIfiXso4rFIByMcnY1sOKLxWCmhwgCWhCQaufDkN5UoS67s1JKlOJkKXa6jOdDmTJgjdRLEqc5nOaDtiJI0Gs+o0KBKkc5ryrMmVFA9p1KqGnVoVqZb0XV9ZxUWyqNflxYt67ReWEZjyVL9+TUp2rhP577NudZUTLtXpfIVu/duSrpq/7Id6zRtYcAvGQfWy60vYsgPDre9jDmz5s2cO3v+DDq06NEnCgAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4P1AGGxGGwV0wSjzmlE8C0PZ/R2XRahV2vWdcW22V9qeHV2FlWnclp0xrddr+T8dN8WZff8/o5v3/2BzgmOMhVaAiHaAe2qEbnGCk56XBHSLlgaYl5oOmJ6Rk6GUoaSVrqeIpaqLoq2OqaBxtbNyv6eljZyprbAMvL5vuLG8wwTKxofIxcBLGM2Oz8zKm8S/0wfZ0wq62r2i1sDa6QPc49Ti6O3lkObFR9Opq8rc6sBB/v3kj/rb/PXi/Om0wB2/jh10/WQQTtumxCaGsekocMI2758QmixfZiNxbi28ixxpoIIC91NCmtZC+RXyiobCkFpsuX/2TIrEAz5IubOHNK3Hkxg897NIJuGIrHptGjSIuubPLUS9STNaVWpapTzFWsP1tM5UpUadaYW82U1bA05dhHa4V+JXg2RVoPc721RVGXQ96PkMTetbAX7t9EST8EFtzV69sLh9PFlbu4Z2SNff0OVps43GXChd1OphzNaWNsPEl+xotS8umKj9mOdvwadGcrqUnXlhAbciDbt3Gv1j0QoEfVmbUMRfvbtUqmm82+7NDaOEjDYSdaDBEayPV1wmlxz8dd88jwvnOTP48+vfr17Nu7fw8/vnz4BQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/IG1PaMc/a+537FC9Z+xIfwWEwmjkylkgl1FqFN6Y9atc6wWW2Mi/TKwELxmMwzf9E99YvddrvgQ/kcbofh828yf431FxK2ECjowcVAeKgDxsjC9phCJ2lCV1c5eImZ2bEZ16nxmRaaMRpUenFaljqxutja8NoVqzAbVWt7i5trsJuYOxuAVivsS1xqfBDZqYxAKfkquyko7TDKtxpxasctge3m7foZTq56KUdtCq2G3ojcvofomC4PQpVtr0ma594ryu4fBn8CB+orCOQgwnHMYuH7ppAGLxQRn1WkcFGiuv5p8Axu9GRNUcOE2t450+UH4y6AvwBcSwmx5bmWnFAa2kazJoScoGxOfMnTZUxgPn8uuQkUqUV6RpQmpXXUaFFWOB9yhFoV6zKpS7U+hRUVLEOvw8g6HUt1as+ZadXq7IpKo1ircuMW8srVAt1jYte1hcvP7T1aeT3+5Xu4bGKWacn6tRsWMuAbIrr0BXlYquPH/DZzXqs482WTpEZjDrx17uJ5cU2TXmvUM+MesmdTnnw7NeoRGU/Dhur69V4SYGOv/tCxRHHgx1kTtfTXuGTiMKFPl76bd3Xl0ZlP187U+m7soCtvp37de3bz4bmnX/6dfXvw49WXH1wmuO3ciK/fx0fOin6fvaVZc3VRVhtboBX4n29tJEhSfH1BqBJVFGa1Xn9CiWSgXosUZliGEYoYImoXfnXfiCR62J2AO53IYYcYZgfiUDLOuCKO/OnmoltvHZjjVZed9WKNJTYo5HHPFQmjjin6uONdRPJo5ICmzZckTRQF9WOWK00SlIK33CHTkeK0UOZ+H5FZknMEnWGOfOf5EJB7VeKw5EJ67slnn37+CWiggg5KaKGGMlIAACH5BAkUAAEALAAAAACAAIAAAAL+jI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8cyBNT2jHP2vud+xQvefsSG8AgoKhFI5HLZPD6LUefUV5Vec1nhFtfVfmFh75hc5p3R6do61na/X/HknJ6+s8P6fbUPlwUo8zc4I2aYqLjI2Ehk5rhSGGlSRilSd+lRJ6eZwdnjCQQaJCpBimi6gNqkqsAq6GoAG6tKy2d6aymqi6vZu3sJ7BuZN0sr3JWgSzm5zOwYxTAc3bpKzSh9ja2o/To8ZOj9DB7eN34AGtAGiH6cyXnnvp75Hj82f5+u/pVfz8TviruAAPU9GWiwYJwtCBc6+HfQmkJjD9gJtELOYoTpYFMw7oO40VlHSBMpjiLZL9Q3hxtUZgMpa0LCmCFh0qw48+ZDgjp3kuqJExXQaciGZmRltKTQpPSgGf3DsmcsjVLHUb0p0iTWhsqqSlTq8Y1LCrWOfj0zj+hZs6lSElsZFm5chjBFbpt7sZw5I2vz6rVDo+/Iv4CDtqX795TgwXoV4/XLLfBjyL1kLkbrtObhdj/JXhanVTPKX5/5TvZUGENappI3szY8+nXr2LJ9uq59lzbu3KV2i+7tGzbw4KZvE29qnPjq48h1M19+HLry0sGlV6d+3Tnz5mO3y+3kvWL48eTLmz8PoQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHQ4DRWDseiQalc8l6PoXSKgBllQKz1RJX2/taRWLwrjz2oM25dbfjdvLibAxdrrvXK3pou49nAeiHM6h0YXiVl4jEZxjG6Dj4EzmRSARo+cgUoCdxydlEFwEa2jn6UGp66gYxuYqA2vAKeyDL0FercLtwp9sb5+D7uxs820oMjHz8lSxs/PzmHL32STjNDI0Nl7vNseltpxquWUluzdh4npp+uJ7drv4eGz81b1u/R56fts6f5e8fwHACm20rKAYbwjLOulFD03BZOYYRDYqzOI3Lt/aB++x98HgvpMiRJEuaPIkypcqKIDVw3NDPBUREMwVRTDEMnUR22khk4ukJKK+P4/AVFQWO28KlP2EyferwItSpPSVRvXqTJtatGjNw/RrTZldltBKYKzZWa1iyQ9EGfdhSbFx4NUm1xSXNZSAK1dRinCjvxlqpc1caPow4seLFjBs7hqTP7169kXFm5VsXc0IVb13dxVs1RFO6oc1GBXGW3lFWZTeCBav0NWzKsl/Trv31Nu6tundf7V2Y9WjVrYkPBhzcaGfQy9kmt1vZbV+d0z1HB0w4rebNVgPbOC73+ePx5MubP48+vfr17Nu7fw8/vvzGBQAAIfkECRQAAQAsAAAAAIAAgAAAAv6Mj6nL7Q+jnLTai7PevPsPhuJIluaJphPAAuoLI+3cxrZJ5+7Ne/q/6wkvQN3wSCn+kEyHEtiMJp5LqZVqtEaxVS2Sm/UewTnxlzwzn9HqNbk9RgfhPTY9jr27n3omv99UBKiVNmh4iJiouMjY6FhX9hijJJnCVVnyhhkit/khx+LJARoqmkFaY0qEOqcqwVrq+gobK+tEW2u7gJuqu8ub62sA3Cs8TBxsi1wovMys7PysGh05TV29eQ1Vqf2H2N35jXyMKg4sw3o4jl5ueK4Aq07bEO+efts+eI9PKp/PUM/eP3j7BPYDWFDcAU0EBzZiyO4gNzC/JE681DBcNvCKGSFi8kgO5MU8HUmaEmnHGsYpHF2hXOmyZURKul7S/JjM5raRrUJSqdjlUZiZ3ohKY7TTqKCSyRTdVJp0ITakRaXCtNrUXFWsWwMUo3qV69OFkjSyNLnRLNShZR36HPsw4NmfQuchROs07Aq9+vjuxdsX8CrBd2RuMFzYLwbEbRiPcutH8WHIQxx/ogyJ7omEeOBmwmxDswrOmaOOBv3C82mLQkzDkNt6amjYpXvOpm1srcjcXnnxZopa1rrfvd8RL47ruNjg0HATd36ceW5Qyh+krE5PMva3Qbfz6+79O43wSdiShyD7PPqv6tsbKgAAOw==",alt:"Running..."});return Object(m.jsxs)(Un,{children:[e?Object(m.jsx)(Ln.d,{placement:Ln.b.BOTTOM,content:"This script is currently running",children:o}):o,Object(m.jsx)(Hn,{isMinimized:this.state.statusMinimized,isPrompt:!1,children:"Running..."}),r]})}},{key:"renderRerunScriptPrompt",value:function(){var e=this.props.scriptRunState===oe.a.RERUN_REQUESTED,t=this.state.promptMinimized&&!this.state.promptHovered,r=this.props.theme.colors;return Object(m.jsx)(k.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsx)("div",{onMouseEnter:this.onAppPromptHover,onMouseLeave:this.onAppPromptUnhover,children:Object(m.jsxs)(Un,{children:[Object(m.jsx)(He.a,{content:yn.Info,margin:"0 sm 0 0",color:r.bodyText}),Object(m.jsx)(Hn,{isMinimized:t,isPrompt:!0,children:"Source file changed."}),n.promptButton(Object(m.jsx)(Yn,{children:"Rerun"}),e,this.handleRerunClick,t),this.props.allowRunOnSave&&n.promptButton(Object(m.jsx)(Yn,{children:"Always rerun"}),e,this.handleAlwaysRerunClick,t)]})})})}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.scriptRunState===oe.a.RUNNING?{scriptChangedOnDisk:!1,promptHovered:!1}:null}},{key:"shouldMinimize",value:function(){return window.scrollY>32}},{key:"promptButton",value:function(e,t,n,r){return Object(m.jsx)(Jn,{isMinimized:r,children:Object(m.jsx)(gn.d,{kind:gn.b.HEADER_BUTTON,disabled:t,fluidWidth:!0,onClick:n,children:e})})}},{key:"getConnectionStateUI",value:function(e){switch(e){case Fn.INITIAL:case Fn.PINGING_SERVER:case Fn.CONNECTING:return{icon:yn.Ellipses,label:"Connecting",tooltip:"Connecting to Streamlit server"};case Fn.CONNECTED:return;case Fn.DISCONNECTED_FOREVER:default:return{icon:yn.Warning,label:"Error",tooltip:"Unable to connect to Streamlit server"}}}}]),n}(r.PureComponent),Kn=Object(p.withTheme)(Xn),Qn=n(3692),Zn=n(3690),$n=n(39);var er=function(){return{title:"Unable to deploy app",body:Object(m.jsx)(m.Fragment,{children:Object(m.jsx)("p",{children:"This Git repo has uncommitted changes. You may want to commit them before continuing."})})}};var tr=function(){return{title:"Unable to deploy app",body:Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("p",{children:"This Git tree is in a detached HEAD state."}),Object(m.jsx)("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}};var nr=function(){return{title:"Unable to deploy app",body:Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("p",{children:"This Git repo has untracked files. You may want to commit them before continuing."}),Object(m.jsxs)("p",{children:["Alternatively, you can either delete the files (if they're not needed) or add them to your ",Object(m.jsx)("strong",{children:".gitignore"}),"."]})]})}};var rr=function(e){return{title:"Unable to deploy app",body:Object(m.jsxs)(m.Fragment,{children:[Object(m.jsxs)("p",{children:["The file ",Object(m.jsx)("code",{children:e})," has not been added to the repo."]}),Object(m.jsx)("p",{children:"Please add it and push to GitHub to continue."})]})}};var or=function(e){var t=e.split("/").slice(1).join("/");return{title:"Unable to deploy app",body:Object(m.jsxs)(m.Fragment,{children:[Object(m.jsxs)("p",{children:["Your repository ",Object(m.jsx)("code",{children:t})," has uncommitted changes."]}),Object(m.jsx)("p",{children:"Please commit the latest changes and push to GitHub to continue."})]})}};var ar,ir=function(){return{title:"Unable to deploy app",body:Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)("p",{children:"Could not find a remote repository hosted on GitHub. Are you sure you are on a branch that is tracking a remote GitHub branch?"}),Object(m.jsx)("p",{children:"How Streamlit Cloud works:"}),Object(m.jsxs)("ul",{children:[Object(m.jsxs)("li",{children:["To deploy a public app, you must first put it in a public GitHub repo. See"," ",Object(m.jsx)("a",{href:mt.g,rel:"noopener noreferrer",target:"_blank",children:"our documentation"})," ","for more details."]}),Object(m.jsxs)("li",{children:["If you'd like to deploy a private app,"," ",Object(m.jsx)("a",{href:mt.j,target:"_blank",rel:"noopener noreferrer",children:"sign up for Streamlit for Teams"}),"."]})]})]})}},lr=n(230),sr=function(e){return Object(p.keyframes)(ar||(ar=Object(lr.a)(["\n0% {\n box-shadow: 0 0 "," ",";\n}\n50% {\n box-shadow: 0 0 "," "," ",";\n}\n100% {\n box-shadow: 0 0 "," ",";\n}"])),e.spacing.twoXS,e.colors.red,e.spacing.sm,e.spacing.twoXS,e.colors.red,e.spacing.twoXS,e.colors.red)},cr=ee()("div",{target:"e1pxm3bq7"})((function(e){var t=e.theme;return{position:"absolute",bottom:t.spacing.lg,right:t.spacing.sm,width:t.spacing.sm,height:t.spacing.sm,backgroundColor:"red",borderRadius:t.radii.full,boxShadow:"0 0 ".concat(t.spacing.twoXS," ").concat(t.colors.red),animation:"".concat(sr(t)," 2s linear infinite")}}),""),ur=ee()("div",{target:"e1pxm3bq6"})((function(e){var t=e.theme;return{borderTop:"1px solid ".concat(t.colors.fadedText10),margin:"".concat(t.spacing.sm," ").concat(t.spacing.none)}}),""),dr=ee()("span",{target:"e1pxm3bq5"})((function(e){var t=e.isRecording,n=e.theme;return{color:t?n.colors.red:n.colors.fadedText60,fontSize:n.fontSizes.sm,marginTop:n.spacing.twoXS,fontVariant:"small-caps",textTransform:"uppercase"}}),""),pr=ee()("ul",{target:"e1pxm3bq4"})((function(e){var t=e.isDisabled,n=e.isRecording,r=e.theme,o=t?{backgroundColor:r.colors.transparent,color:r.colors.fadedText60,cursor:"not-allowed"}:{"&:active":Object(St.a)({backgroundColor:r.colors.primary,color:r.colors.white,outline:"none"},dr,{color:r.colors.white}),"&:focus":{backgroundColor:r.colors.primary,color:r.colors.white}},a=n&&{color:r.colors.red,fontWeight:r.fontWeights.bold};return Object(y.a)(Object(y.a)({display:"block",flexDirection:"row",alignItems:"flex-start",cursor:"pointer"},a||{}),o)}),""),fr=ee()("li",{target:"e1pxm3bq3"})((function(e){var t=e.isHighlighted,n=e.styleProps,r=e.theme,o=t&&{backgroundColor:r.colors.secondaryBg},a=(null===n||void 0===n?void 0:n.margin)||0,i=(null===n||void 0===n?void 0:n.padding)||"".concat(r.spacing.twoXS," ").concat(r.spacing.twoXL),l=(null===n||void 0===n?void 0:n.backgroundColor)||r.colors.primaryBg,s=(null===n||void 0===n?void 0:n.fontSize)||r.fontSizes.md;return Object(y.a)(Object(y.a)({margin:a,padding:i,backgroundColor:l,fontSize:s},o||{}),{},{display:"block"})}),""),hr=ee()("li",{target:"e1pxm3bq2"})((function(e){var t=e.isHighlighted,n=e.styleProps,r=e.theme,o=t&&{backgroundColor:r.colors.primaryBg},a=(null===n||void 0===n?void 0:n.margin)||0,i=(null===n||void 0===n?void 0:n.padding)||"".concat(r.spacing.twoXS," ").concat(r.spacing.twoXL),l=(null===n||void 0===n?void 0:n.backgroundColor)||r.colors.secondaryBg,s=(null===n||void 0===n?void 0:n.fontSize)||r.fontSizes.md;return Object(y.a)(Object(y.a)({margin:a,padding:i,backgroundColor:l,fontSize:s},o||{}),{},{display:"block"})}),""),mr=ee()("span",{target:"e1pxm3bq1"})((function(e){var t=e.theme;return{marginRight:t.spacing.md,flexGrow:1,fontFamily:t.fonts.sansSerif}}),""),br=ee()("ul",{target:"e1pxm3bq0"})((function(e){e.theme;return{borderBottom:"$1px solid rgba(38, 39, 48, 0.2)",borderTop:"$1px solid rgba(38, 39, 48, 0.2)",margin:"-.20rem 0 -.5rem 0"}}),""),yr=R.k.GitStates,gr={COUNTDOWN:"Cancel screencast",RECORDING:"Stop recording"},Or=function(e){return function(){window.open(e,"_blank")}},wr=function(e){if(e){var t=new URL(mt.f);return t.searchParams.set("repository",e.repository||""),t.searchParams.set("branch",e.branch||""),t.searchParams.set("mainModule",e.module||""),Or(t.toString())}return Or(mt.h)},vr=function(){return"localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname};function jr(e){var t=Object(r.forwardRef)((function(t,n){var r=t.item,o=t["aria-selected"],a=t.onClick,i=t.onMouseEnter,l=t.$disabled,s=t.$isHighlighted,c=r.label,u=r.shortcut,d=r.hasDividerAbove,p=r.styleProps,f=r.noHighlight,h=r.interactions,b={isDisabled:l,isRecording:Boolean(r.stopRecordingIndicator)},g={isHighlighted:!f&&s,styleProps:p},O=h||(l?{}:{onClick:function(e){H.current.enqueue("menuClick",{label:c}),a(e)},onMouseEnter:i});return Object(m.jsxs)(m.Fragment,{children:[d&&Object(m.jsx)(ur,{}),Object(m.jsx)(pr,Object(y.a)(Object(y.a)(Object(y.a)({ref:n,role:"option","aria-selected":o,"aria-disabled":l},b),O),{},{children:Object(m.jsxs)(e,Object(y.a)(Object(y.a)({},g),{},{children:[Object(m.jsx)(mr,Object(y.a)(Object(y.a)({},b),{},{children:c})),u&&Object(m.jsx)(dr,Object(y.a)(Object(y.a)({},b),{},{children:u}))]}))}))]})}));return t.displayName="MenuItem",t}var Sr=function(e){var t=e.menuItems,n=e.closeMenu,r=e.isDevMenu,o=Object(p.useTheme)().colors,a=r?hr:fr;return Object(m.jsx)(Qn.a,{items:t,onItemSelect:function(e){e.item.onClick(),n()},overrides:{Option:jr(a),List:{props:{"data-testid":"main-menu-list"},style:{":focus":{outline:"none"},border:"1px solid ".concat(o.fadedText10)}}}})};function xr(e){var t,n,o,a,i=!e.isServerConnected,l=Object(r.useCallback)((function(){var t=e.showDeployError,n=e.closeDialog,r=e.isDeployErrorModalOpen,o=e.gitInfo;if(o){var a=o.repository,i=o.branch,l=o.module,s=o.untrackedFiles,c=o.uncommittedFiles,u=o.state;if((!a||!i||!l)&&u===yr.DEFAULT){var d=ir();t(d.title,d.body)}else if(u!==yr.HEAD_DETACHED)if(l&&(null===s||void 0===s?void 0:s.includes(l))){var p=rr(l);t(p.title,p.body)}else if(a&&(null===c||void 0===c?void 0:c.length)){var f=or(a);t(f.title,f.body)}else if(u!==yr.AHEAD_OF_REMOTE)if(null===s||void 0===s?void 0:s.length){var h=nr();t(h.title,h.body,wr(o))}else r&&n(),wr(o)();else{var m=er();t(m.title,m.body,wr(o))}else{var b=tr();t(b.title,b.body)}}else{var y=ir();t(y.title,y.body)}}),[e]);Object(r.useEffect)((function(){e.gitInfo&&e.isDeployErrorModalOpen&&l()}),[e.gitInfo,e.isDeployErrorModalOpen,l]);var s,u=Object(y.a)(Object(y.a)(Object(y.a)({DIVIDER:{isDivider:!0},rerun:{disabled:i,onClick:e.quickRerunCallback,label:"Rerun",shortcut:"r"},recordScreencast:{onClick:e.screencastCallback,label:gr[e.screenCastState]||"Record a screencast",shortcut:gr[e.screenCastState]?"esc":"",stopRecordingIndicator:Boolean(gr[e.screenCastState])},saveSnapshot:{disabled:i,label:"Save a snapshot"}},!(null===(t=e.menuItems)||void 0===t?void 0:t.hideGetHelp)&&{community:{onClick:Or((null===(n=e.menuItems)||void 0===n?void 0:n.getHelpUrl)||mt.d),label:"Get help"}}),!(null===(o=e.menuItems)||void 0===o?void 0:o.hideReportABug)&&{report:{onClick:Or((null===(a=e.menuItems)||void 0===a?void 0:a.reportABugUrl)||mt.a),label:"Report a bug"}}),{},{settings:{onClick:e.settingsCallback,label:"Settings"},about:{onClick:e.aboutCallback,label:"About"}}),d={DIVIDER:{isDivider:!0},deployApp:{onClick:l,label:"Deploy this app"},developerOptions:{label:"Developer options",noHighlight:!0,interactions:{},styleProps:{fontSize:"0.75rem",margin:"-.5rem 0 0 0",padding:".25rem 0 .25rem 1.5rem",pointerEvents:"none"}},clearCache:{disabled:i,onClick:e.clearCacheCallback,label:"Clear cache",shortcut:"c"},s4t:{onClick:Or(mt.j),label:"Streamlit Cloud"},reportSt:{onClick:Or(mt.a),label:"Report a Streamlit bug"},documentation:{onClick:Or(mt.g),label:"Visit Streamlit docs"},visitStForum:{onClick:Or(mt.d),label:"Visit Streamlit forums",styleProps:{margin:"0 0 -.5rem 0",padding:".25rem 0 .25rem 1.5rem"}}},p=e.s4aMenuItems.map((function(t){if("separator"===t.type)return u.DIVIDER;var n,r;if("reportBug"===t.key&&(null===(n=e.menuItems)||void 0===n?void 0:n.hideGetHelp))return null;if("about"===t.key&&""!==(null===(r=e.menuItems)||void 0===r?void 0:r.aboutSectionMd))return null;return{onClick:function(){return e.sendS4AMessage({type:"MENU_ITEM_CALLBACK",key:t.key})},label:t.label}}),[]),f=!!p.length,h=vr()&&!f&&e.canDeploy,b=[u.rerun,u.settings,u.DIVIDER,u.recordScreencast,u.DIVIDER,u.report,u.community].concat(Object(c.a)(f?p:[u.DIVIDER]),[u.about]),g=[d.developerOptions,d.clearCache,h&&d.deployApp,vr()&&d.s4t,d.reportSt,d.documentation,d.visitStForum],O=[],w=null,v=Object(D.a)(b);try{for(v.s();!(s=v.n()).done;){var j=s.value;j&&(j!==u.DIVIDER&&(w===u.DIVIDER?O.push(Object(y.a)(Object(y.a)({},j),{},{hasDividerAbove:!0})):O.push(j)),w=j)}}catch(T){v.e(T)}finally{v.f()}for(var S=[],x=null,k=0,I=g;k ul":{paddingLeft:"1.4rem"}}}),""),oo=ee()("div",{target:"es2f1e70"})((function(){return{padding:"0 0 1rem 0",overflowY:"scroll"}}),""),ao=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e)).keyHandlers=void 0,r.rerun=function(){r.props.onRerun(!1)},r.alwaysRerun=function(){r.props.onRerun(!0)},r.keyHandlers={a:r.alwaysRerun},r}return Object(O.a)(n,[{key:"render",value:function(){return Object(m.jsx)(k.HotKeys,{handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsxs)(_r,{isOpen:!0,onClose:this.props.onClose,children:[Object(m.jsx)(Lr,{children:"App changed"}),Object(m.jsx)(zr,{children:Object(m.jsx)("div",{children:"The source files for this app have changed on disk."})}),Object(m.jsxs)(Wr,{children:[this.props.allowRunOnSave?Object(m.jsx)(Ur,{kind:gn.b.SECONDARY,onClick:this.alwaysRerun,children:Object(m.jsx)(Yr,{children:"Always rerun"})}):null,Object(m.jsx)(Ur,{kind:gn.b.PRIMARY,onClick:this.rerun,children:Object(m.jsx)(Yr,{children:"Rerun"})})]})]})})}}]),n}(r.PureComponent),io=n(174),lo=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e)).activeSettings=void 0,r.renderThemeCreatorButton=function(){return r.props.developerMode&&Object(m.jsx)("div",{children:Object(m.jsx)(gn.d,{onClick:r.props.openThemeCreator,kind:gn.b.PRIMARY,children:"Edit active theme"})})},r.changeSingleSetting=function(e,t){r.setState((function(n){return Object(y.a)(Object(y.a)({},n),{},Object(St.a)({},e,t))}),r.saveSettings)},r.handleCheckboxChange=function(e){r.changeSingleSetting(e.target.name,e.target.checked)},r.handleThemeChange=function(e){var t=r.context,n=t.activeTheme,o=t.availableThemes[e];H.current.enqueue("themeChanged",{oldThemeName:n.name,newThemeName:o.name}),r.context.setTheme(o)},r.handleCancelButtonClick=function(){r.props.onClose()},r.saveSettings=function(){r.activeSettings=Object(y.a)({},r.state),r.props.onSave(r.activeSettings)},r.state=Object(y.a)({},r.props.settings),r.activeSettings=Object(y.a)({},r.props.settings),r}return Object(O.a)(n,[{key:"render",value:function(){var e=this,t=this.context.availableThemes.findIndex((function(t){return t.name===e.context.activeTheme.name}));return Object(m.jsxs)(_r,{animate:this.props.animateModal,isOpen:!0,onClose:this.handleCancelButtonClick,children:[Object(m.jsx)(Lr,{children:"Settings"}),Object(m.jsx)(zr,{children:Object(m.jsxs)(Kr,{children:[this.props.allowRunOnSave&&Object(m.jsxs)(o.a.Fragment,{children:[Object(m.jsxs)(Qr,{children:[Object(m.jsx)(Zr,{children:"Development"}),Object(m.jsxs)("label",{children:[Object(m.jsx)(no,{disabled:!this.props.isServerConnected,type:"checkbox",name:"runOnSave",checked:this.state.runOnSave&&this.props.isServerConnected,onChange:this.handleCheckboxChange})," ","Run on save"]}),Object(m.jsx)(eo,{children:"Automatically updates the app when the underlying code is updated."})]}),Object(m.jsx)(Qr,{children:Object(m.jsx)(to,{})})]}),Object(m.jsxs)(Qr,{children:[Object(m.jsx)(Zr,{children:"Appearance"}),Object(m.jsxs)("label",{children:[Object(m.jsx)(no,{type:"checkbox",name:"wideMode",checked:this.state.wideMode,onChange:this.handleCheckboxChange})," ","Wide mode"]}),Object(m.jsx)(eo,{children:"Turn on to make this app occupy the entire width of the screen"})]}),this.context.availableThemes.length&&Object(m.jsxs)(Qr,{children:[Object(m.jsx)($r,{children:"Theme"}),Object(m.jsx)(eo,{children:"Choose app and font colors/styles"}),Object(m.jsx)(io.b,{options:this.context.availableThemes.map((function(e){return e.name})),disabled:!1,onChange:this.handleThemeChange,value:t}),this.renderThemeCreatorButton()]})]})})]})}},{key:"componentDidMount",value:function(){this.setState(Object(y.a)({},this.activeSettings))}}]),n}(r.PureComponent);lo.contextType=E.a;var so,co=n(392),uo=n.n(co),po=n(393),fo=n.n(po),ho=n(185),mo=function(e,t){return Object(Me.toHex)(e).toUpperCase()},bo=function(e){return uo()(R.e.FontFamily[e])},yo={primaryColor:{help:"Primary accent color for interactive elements.",title:"Primary color",component:ho.a,getValue:mo},backgroundColor:{help:"Background color for the main content area.",title:"Background color",component:ho.a,getValue:mo},secondaryBackgroundColor:{help:"Background color used for the sidebar and most interactive widgets.",title:"Secondary background color",component:ho.a,getValue:mo},textColor:{help:"Color used for almost all text.",title:"Text color",component:ho.a,getValue:mo},font:{help:"Font family for all text in the app, except code blocks.",title:"Font family",options:Object.keys(R.e.FontFamily).map((function(e){return uo()(e)})),getValue:function(e,t){return t.options&&t.options.findIndex((function(t){return t===bo(e)}))||0},component:io.b}},go=function(e,t){var n=function(e){return"string"===typeof e?e.toLowerCase():e},r=fo()(Object(h.toThemeInput)(t),n),o=[];return(e=fo()(e,n)).primaryColor!==r.primaryColor&&o.push('primaryColor="'.concat(e.primaryColor,'"')),e.backgroundColor!==r.backgroundColor&&o.push('backgroundColor="'.concat(e.backgroundColor,'"')),e.secondaryBackgroundColor!==r.secondaryBackgroundColor&&o.push('secondaryBackgroundColor="'.concat(e.secondaryBackgroundColor,'"')),e.textColor!==r.textColor&&o.push('textColor="'.concat(e.textColor,'"')),o},Oo=function(e){var t=o.a.useState(!1),n=Object(u.a)(t,2),r=n[0],a=n[1],i=o.a.useContext(E.a),l=i.activeTheme,s=i.addThemes,d=i.setTheme,p=Object(h.toThemeInput)(l.emotion),f=function(e,t){!function(e){s([e]),d(e)}(Object(h.createTheme)(h.CUSTOM_THEME_NAME,Object(y.a)(Object(y.a)({},p),{},Object(St.a)({},e,t)))),a(!1)},b=function(e){var t=["[theme]"],n=go(e,h.lightTheme.emotion),r=go(e,h.darkTheme.emotion),o=n.length,a=r.length;if(o===a?t.push.apply(t,Object(c.a)(n)):oe&&(Object(_.c)("Removing expired ForwardMsg [hash=".concat(r,"]")),t.messages.delete(r))}))}},{key:"processMessagePayload",value:function(){var e=Object(So.a)(jo.a.mark((function e(t){var n;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.maybeCacheMessage(t),"refHash"===t.type){e.next=3;break}return e.abrupt("return",t);case 3:if(null==(n=this.getCachedMessage(t.refHash,!0))){e.next=8;break}Object(_.c)("Cached ForwardMsg HIT [hash=".concat(t.refHash,"]")),e.next=13;break;case 8:return Object(_.c)("Cached ForwardMsg MISS [hash=".concat(t.refHash,"]")),e.next=11,this.fetchMessagePayload(t.refHash);case 11:n=e.sent,this.maybeCacheMessage(n);case 13:if(t.metadata){e.next=15;break}throw new Error("ForwardMsg has no metadata");case 15:return n.metadata=R.j.create(t.metadata),e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"fetchMessagePayload",value:function(){var e=Object(So.a)(jo.a.mark((function e(t){var n,r,o,a,i;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0!==(n=this.getServerUri())){e.next=3;break}throw new Error("Cannot retrieve uncached message: not connected to a server");case 3:return r=Object(Ot.a)(n,"message?hash=".concat(t)),e.next=6,fetch(r);case 6:if((o=e.sent).ok){e.next=9;break}throw new Error("Failed to retrieve ForwardMsg (hash=".concat(t,"): ").concat(o.statusText));case 9:return e.next=11,o.arrayBuffer();case 11:return a=e.sent,i=new Uint8Array(a),e.prev=13,e.abrupt("return",R.i.decode(i));case 17:throw e.prev=17,e.t0=e.catch(13),new Error("Failed to decode ForwardMsg (hash=".concat(t,"): ").concat(Object(M.a)(e.t0).message));case 20:case"end":return e.stop()}}),e,this,[[13,17]])})));return function(t){return e.apply(this,arguments)}}()},{key:"maybeCacheMessage",value:function(e){"refHash"!==e.type&&e.metadata&&e.metadata.cacheable&&void 0===this.getCachedMessage(e.hash,!0)&&(Object(_.c)("Caching ForwardMsg [hash=".concat(e.hash,"]")),this.messages.set(e.hash,new Io(R.i.create(e),this.scriptRunCount)))}},{key:"getCachedMessage",value:function(e,t){var n=this.messages.get(e);if(null!=n)return t&&(n.scriptRunCount=this.scriptRunCount),R.i.create(n.msg)}}]),e}();function Po(e,t,n){for(var r="number"===typeof t?t:e.indexOf(t);r=0;--r){if(n(e[r]))return r}}function Vo(e){return void 0!==e.messageIndex}function Eo(e,t){return Math.abs(t.timestamp-e.timestamp)}var Ao=function e(t,n){var r=this;Object(g.a)(this,e),this.rerunEvents=void 0,this.requestedRerun=void 0,this.getResults=function(){var e=new Set;if(r.rerunEvents.forEach((function(t){Vo(t)&&e.add(t.messageIndex)})),0===e.size)return"No rerun messages found!";var t=Array.from(e).sort(Do),n=r.rerunEvents[r.rerunEvents.length-1],o=r.rerunEvents[0],a={messages:t.map(r.getMessageAnalysis),rerunDuration:Eo(o,n)};return void 0!==r.requestedRerun&&(a.requestedRerun=!0,a.scriptRunStateAtStart=r.requestedRerun.scriptRunState,a.requestToRerunStart=Eo(r.requestedRerun,o)),a},this.getMessageAnalysis=function(e){for(var t=[],n=0;nt?1:0}function Ro(e,t,n){return Po(e,t,(function(e){return Vo(e)&&e.messageIndex===n}))}var No=function(){function e(){Object(g.a)(this,e)}return Object(O.a)(e,null,[{key:"record",value:function(e){var t,n;this.enabled&&(e.timestamp=performance.now(),this.events.push(e),"DispatchedMessage"===e.name&&"scriptFinished"===e.messageType&&(Object(_.c)("Rerun results",(t=this.events,new Ao(t,null!==n&&void 0!==n?n:t.length-1).getResults())),this.events=[]))}}]),e}();No.enabled=!1,No.events=[];var Fo=function e(){var t=this;Object(g.a)(this,e),this.resolve=void 0,this.reject=void 0,this.promise=void 0,this.resolve=function(){},this.reject=function(){},this.promise=new Promise((function(e,n){t.resolve=e,t.reject=n}))};var Mo="WebsocketConnection",Bo=function(){function e(t){var n=this;Object(g.a)(this,e),this.args=void 0,this.cache=void 0,this.uriIndex=0,this.lastDispatchedMessageIndex=-1,this.nextMessageIndex=0,this.messageQueue={},this.state=Fn.INITIAL,this.websocket=void 0,this.wsConnectionTimeoutId=void 0,this.args=t,this.cache=new Co((function(){return n.getBaseUriParts()})),this.stepFsm("INITIALIZED")}return Object(O.a)(e,[{key:"getBaseUriParts",value:function(){if(this.state===Fn.CONNECTED)return this.args.baseUriPartsList[this.uriIndex]}},{key:"setFsmState",value:function(e,t){switch(Object(_.c)(Mo,"New state: ".concat(e)),this.state=e,this.state){case Fn.PINGING_SERVER:this.pingServer(W.a.isSet()?W.a.current.commandLine:void 0)}switch(this.args.onConnectionStateChange(e,t),this.state){case Fn.CONNECTING:this.connectToWebSocket();break;case Fn.DISCONNECTED_FOREVER:this.cancelConnectionAttempt()}}},{key:"stepFsm",value:function(e,t){if(Object(_.c)(Mo,"State: ".concat(this.state,"; Event: ").concat(e)),"FATAL_ERROR"!==e||this.state===Fn.DISCONNECTED_FOREVER){switch(this.state){case Fn.INITIAL:if("INITIALIZED"===e)return void this.setFsmState(Fn.CONNECTING);break;case Fn.CONNECTING:if("CONNECTION_SUCCEEDED"===e)return void this.setFsmState(Fn.CONNECTED);if("CONNECTION_TIMED_OUT"===e||"CONNECTION_ERROR"===e||"CONNECTION_CLOSED"===e)return void this.setFsmState(Fn.PINGING_SERVER);break;case Fn.CONNECTED:if("CONNECTION_CLOSED"===e||"CONNECTION_ERROR"===e)return void this.setFsmState(Fn.PINGING_SERVER);break;case Fn.PINGING_SERVER:if("SERVER_PING_SUCCEEDED"===e)return void this.setFsmState(Fn.CONNECTING);break;case Fn.DISCONNECTED_FOREVER:return void Object(_.d)(Mo,"Discarding ".concat(e," while in ").concat(Fn.DISCONNECTED_FOREVER))}throw new Error("Unsupported state transition.\n"+"State: ".concat(this.state,"\n")+"Event: ".concat(e))}this.setFsmState(Fn.DISCONNECTED_FOREVER,t)}},{key:"pingServer",value:function(){var e=Object(So.a)(jo.a.mark((function e(t){var n,r=this;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.args.baseUriPartsList.map((function(e,t){return Object(Ot.a)(r.args.baseUriPartsList[t],"healthz")})),e.next=3,zo(n,500,6e4,this.args.onRetry,t);case 3:this.uriIndex=e.sent,this.stepFsm("SERVER_PING_SUCCEEDED");case 5:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectToWebSocket",value:function(){var e=this,t=Object(Ot.c)(this.args.baseUriPartsList[this.uriIndex],"stream");if(null!=this.websocket)throw new Error("Websocket already exists");Object(_.c)(Mo,"creating WebSocket"),this.websocket=new WebSocket(t),this.websocket.binaryType="arraybuffer",this.setConnectionTimeout(t);var n=this.websocket,r=function(){return n===e.websocket};this.websocket.onmessage=function(t){r()&&e.handleMessage(t.data).catch((function(t){var n="Failed to process a Websocket message (".concat(t,")");Object(_.b)(Mo,n),e.stepFsm("FATAL_ERROR",n)}))},this.websocket.onopen=function(){r()&&(Object(_.c)(Mo,"WebSocket onopen"),e.stepFsm("CONNECTION_SUCCEEDED"))},this.websocket.onclose=function(){r()&&(Object(_.d)(Mo,"WebSocket onclose"),e.cancelConnectionAttempt(),e.stepFsm("CONNECTION_CLOSED"))},this.websocket.onerror=function(){r()&&(Object(_.b)(Mo,"WebSocket onerror"),e.cancelConnectionAttempt(),e.stepFsm("CONNECTION_ERROR"))}}},{key:"setConnectionTimeout",value:function(e){var t=this;if(null!=this.wsConnectionTimeoutId)throw new Error("WS timeout is already set");var n=this.websocket;this.wsConnectionTimeoutId=window.setTimeout((function(){if(n===t.websocket){if(null!=t.wsConnectionTimeoutId)return null==t.websocket?(t.cancelConnectionAttempt(),void t.stepFsm("FATAL_ERROR","Null Websocket in setConnectionTimeout")):void(0===t.websocket.readyState&&(Object(_.c)(Mo,"".concat(e," timed out")),t.cancelConnectionAttempt(),t.stepFsm("CONNECTION_TIMED_OUT")));Object(_.d)(Mo,"Timeout fired after cancellation")}}),1e3),Object(_.c)(Mo,"Set WS timeout ".concat(this.wsConnectionTimeoutId))}},{key:"cancelConnectionAttempt",value:function(){this.websocket&&(this.websocket.close(),this.websocket=void 0),null!=this.wsConnectionTimeoutId&&(Object(_.c)(Mo,"Clearing WS timeout ".concat(this.wsConnectionTimeoutId)),window.clearTimeout(this.wsConnectionTimeoutId),this.wsConnectionTimeoutId=void 0)}},{key:"sendMessage",value:function(e){if(this.websocket){var t=R.c.create(e),n=R.c.encode(t).finish();this.websocket.send(n)}}},{key:"incrementMessageCacheRunCount",value:function(e){this.cache.incrementRunCount(e)}},{key:"handleMessage",value:function(){var e=Object(So.a)(jo.a.mark((function e(t){var n,r,o;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.nextMessageIndex,this.nextMessageIndex+=1,No.record({name:"BeginHandleMessage",messageIndex:n}),r=R.i.decode(new Uint8Array(t)),No.record({name:"DecodedMessage",messageIndex:n,messageType:r.type,len:t.byteLength}),e.next=7,this.cache.processMessagePayload(r);case 7:for(this.messageQueue[n]=e.sent,No.record({name:"GotCachedPayload",messageIndex:n});this.lastDispatchedMessageIndex+1 in this.messageQueue;)o=this.lastDispatchedMessageIndex+1,this.args.onMessage(this.messageQueue[o]),No.record({name:"DispatchedMessage",messageIndex:o,messageType:this.messageQueue[o].type}),delete this.messageQueue[o],this.lastDispatchedMessageIndex=o;case 10:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Lo=ee()("code",{target:"eutrmpn0"})({name:"28m1rt",styles:'&::before{content:"$";margin-right:1ex;}'});function zo(e,t,n,o,a){var i=new Fo,l=0,s=0,c=function(){},u=function(){++s>=e.length&&(s=0),c()},d=function(e){var r=.4*Math.random()-.2,a=1===l?t:t*Math.pow(2,l-1)*(1+r),i=Math.min(n,a);o(l,i,e),window.setTimeout(u,i)},p=function(){if("localhost"===new URL(e[s]).hostname){var t=a||"streamlit run yourscript.py";d(Object(m.jsxs)(r.Fragment,{children:[Object(m.jsx)("p",{children:"Is Streamlit still running? If you accidentally stopped Streamlit, just restart it in your terminal:"}),Object(m.jsx)("pre",{children:Object(m.jsx)(Lo,{children:t})})]}))}else d("Connection failed with status 0.")};return(c=function(){var n=e[s];Object(_.c)(Mo,"Attempting to connect to ".concat(n,".")),0===s&&l++,ko.a.get(n,{timeout:t}).then((function(){i.resolve(s)})).catch((function(e){if("ECONNABORTED"===e.code)return d("Connection timed out.");if(e.response){var t=e.response,n=t.data,o=t.status;return 0===o?p():403===o?void d(Object(m.jsxs)(r.Fragment,{children:[Object(m.jsx)("p",{children:"Cannot connect to Streamlit (HTTP status: 403)."}),Object(m.jsxs)("p",{children:["If you are trying to access a Streamlit app running on another server, this could be due to the app's"," ",Object(m.jsx)("a",{href:"https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS",children:"CORS"})," settings."]})]})):d("Connection failed with status ".concat(o,", ")+'and response "'.concat(n,'".'))}return e.request?p():d(e.message)}))})(),i.promise}var Wo=function(){function e(t){var n=this;Object(g.a)(this,e),this.props=void 0,this.connection=void 0,this.connectionState=Fn.INITIAL,this.setConnectionState=function(e,t){n.connectionState!==e&&(n.connectionState=e,n.props.connectionStateChanged(e)),(t||e===Fn.DISCONNECTED_FOREVER)&&n.props.onConnectionError(t||"unknown")},this.showRetryError=function(e,t){30===e&&n.props.onConnectionError(t)},this.props=t,this.connect()}return Object(O.a)(e,[{key:"isConnected",value:function(){return this.connectionState===Fn.CONNECTED}},{key:"getBaseUriParts",value:function(){if(this.connection instanceof Bo)return this.connection.getBaseUriParts()}},{key:"sendMessage",value:function(e){this.connection instanceof Bo&&this.isConnected()?this.connection.sendMessage(e):Object(_.b)("Cannot send message when server is disconnected: ".concat(e))}},{key:"incrementMessageCacheRunCount",value:function(e){this.connection instanceof Bo&&this.connection.incrementMessageCacheRunCount(e)}},{key:"connect",value:function(){var e=Object(So.a)(jo.a.mark((function e(){var t;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.connectToRunningServer();case 3:this.connection=e.sent,e.next=11;break;case 6:e.prev=6,e.t0=e.catch(0),t=Object(M.a)(e.t0),Object(_.b)(t.message),this.setConnectionState(Fn.DISCONNECTED_FOREVER,t.message);case 11:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(){return e.apply(this,arguments)}}()},{key:"connectToRunningServer",value:function(){var e=Object(Ot.d)();return new Bo({baseUriPartsList:[e],onMessage:this.props.onMessage,onConnectionStateChange:this.setConnectionState,onRetry:this.showRetryError})}}]),e}(),Uo=n(1030),_o=n(285);function Ho(){return{formsWithPendingChanges:new Set,formsWithUploads:new Set,submitButtonCount:new Map}}var Jo=function(){function e(){Object(g.a)(this,e),this.widgetStates=new Map}return Object(O.a)(e,[{key:"createState",value:function(e){var t=new R.v({id:e});return this.widgetStates.set(e,t),t}},{key:"getState",value:function(e){return this.widgetStates.get(e)}},{key:"deleteState",value:function(e){this.widgetStates.delete(e)}},{key:"removeInactive",value:function(e){var t=this;this.widgetStates.forEach((function(n,r){e.has(r)||t.widgetStates.delete(r)}))}},{key:"clear",value:function(){this.widgetStates.clear()}},{key:"isEmpty",get:function(){return 0===this.widgetStates.size}},{key:"createWidgetStatesMsg",value:function(){var e=new R.w;return this.widgetStates.forEach((function(t){return e.widgets.push(t)})),e}},{key:"copyFrom",value:function(e){var t=this;e.widgetStates.forEach((function(e,n){t.widgetStates.set(n,e)}))}},{key:"forEach",value:function(e){this.widgetStates.forEach(e)}}]),e}(),Go=function(){function e(){Object(g.a)(this,e),this.widgetStates=new Jo,this.clearOnSubmit=!1,this.formCleared=new _o.Signal}return Object(O.a)(e,[{key:"hasPendingChanges",get:function(){return!this.widgetStates.isEmpty}}]),e}(),qo=function(){function e(t){Object(g.a)(this,e),this.props=void 0,this.widgetStates=new Jo,this.forms=new Map,this.formsData=void 0,this.props=t,this.formsData=Ho()}return Object(O.a)(e,[{key:"addFormClearedListener",value:function(e,t){return this.getOrCreateFormState(e).formCleared.connect(t)}},{key:"setFormClearOnSubmit",value:function(e,t){this.getOrCreateFormState(e).clearOnSubmit=t}},{key:"submitForm",value:function(e){var t=e.formId;if(!Object(J.i)(t))throw new Error("invalid formID '".concat(t,"'"));var n=this.getOrCreateFormState(t);this.createWidgetState(e,{fromUi:!0}).triggerValue=!0,this.widgetStates.copyFrom(n.widgetStates),n.widgetStates.clear(),this.sendUpdateWidgetsMessage(),this.syncFormsWithPendingChanges(),this.deleteWidgetState(e.id),n.clearOnSubmit&&n.formCleared.emit()}},{key:"setTriggerValue",value:function(e,t){this.createWidgetState(e,t).triggerValue=!0,this.onWidgetValueChanged(e.formId,t),this.deleteWidgetState(e.id)}},{key:"getBoolValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"boolValue"===t.value)return t.boolValue}},{key:"setBoolValue",value:function(e,t,n){this.createWidgetState(e,n).boolValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getIntValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"intValue"===t.value)return Yo(t.intValue)}},{key:"setIntValue",value:function(e,t,n){this.createWidgetState(e,n).intValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getDoubleValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"doubleValue"===t.value)return t.doubleValue}},{key:"setDoubleValue",value:function(e,t,n){this.createWidgetState(e,n).doubleValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getStringValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"stringValue"===t.value)return t.stringValue}},{key:"setStringValue",value:function(e,t,n){this.createWidgetState(e,n).stringValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"setStringArrayValue",value:function(e,t,n){this.createWidgetState(e,n).stringArrayValue=new R.r({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getStringArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"stringArrayValue"===t.value&&null!=t.stringArrayValue&&null!=t.stringArrayValue.data)return t.stringArrayValue.data}},{key:"getDoubleArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"doubleArrayValue"===t.value&&null!=t.doubleArrayValue&&null!=t.doubleArrayValue.data)return t.doubleArrayValue.data}},{key:"setDoubleArrayValue",value:function(e,t,n){this.createWidgetState(e,n).doubleArrayValue=new R.f({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getIntArrayValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"intArrayValue"===t.value&&null!=t.intArrayValue&&null!=t.intArrayValue.data)return t.intArrayValue.data.map(Yo)}},{key:"setIntArrayValue",value:function(e,t,n){this.createWidgetState(e,n).intArrayValue=new R.p({data:t}),this.onWidgetValueChanged(e.formId,n)}},{key:"getJsonValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"jsonValue"===t.value)return t.jsonValue}},{key:"setJsonValue",value:function(e,t,n){this.createWidgetState(e,n).jsonValue=JSON.stringify(t),this.onWidgetValueChanged(e.formId,n)}},{key:"setArrowValue",value:function(e,t,n){this.createWidgetState(e,n).arrowValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getArrowValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"arrowValue"===t.value&&null!=t.arrowValue)return t.arrowValue}},{key:"setBytesValue",value:function(e,t,n){this.createWidgetState(e,n).bytesValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getBytesValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"bytesValue"===t.value)return t.bytesValue}},{key:"setFileUploaderStateValue",value:function(e,t,n){this.createWidgetState(e,n).fileUploaderStateValue=t,this.onWidgetValueChanged(e.formId,n)}},{key:"getFileUploaderStateValue",value:function(e){var t=this.getWidgetState(e);if(null!=t&&"fileUploaderStateValue"===t.value)return t.fileUploaderStateValue}},{key:"onWidgetValueChanged",value:function(e,t){Object(J.i)(e)?this.syncFormsWithPendingChanges():t.fromUi&&this.sendUpdateWidgetsMessage()}},{key:"syncFormsWithPendingChanges",value:function(){var e=new Set;this.forms.forEach((function(t,n){t.hasPendingChanges&&e.add(n)})),this.updateFormsData((function(t){t.formsWithPendingChanges=e}))}},{key:"sendUpdateWidgetsMessage",value:function(){this.props.sendRerunBackMsg(this.widgetStates.createWidgetStatesMsg())}},{key:"removeInactive",value:function(e){this.widgetStates.removeInactive(e),this.forms.forEach((function(t){return t.widgetStates.removeInactive(e)}))}},{key:"createWidgetState",value:function(e,t){return(Object(J.i)(e.formId)&&t.fromUi?this.getOrCreateFormState(e.formId).widgetStates:this.widgetStates).createState(e.id)}},{key:"getWidgetState",value:function(e){if(Object(J.i)(e.formId)){var t,n=null===(t=this.forms.get(e.formId))||void 0===t?void 0:t.widgetStates.getState(e.id);if(null!=n)return n}return this.widgetStates.getState(e.id)}},{key:"deleteWidgetState",value:function(e){this.widgetStates.deleteState(e)}},{key:"getOrCreateFormState",value:function(e){var t=this.forms.get(e);return null!=t||(t=new Go,this.forms.set(e,t)),t}},{key:"setFormsWithUploads",value:function(e){this.updateFormsData((function(t){t.formsWithUploads=e}))}},{key:"incrementSubmitButtonCount",value:function(t){this.setSubmitButtonCount(t,e.getSubmitButtonCount(this.formsData,t)+1)}},{key:"decrementSubmitButtonCount",value:function(t){this.setSubmitButtonCount(t,e.getSubmitButtonCount(this.formsData,t)-1)}},{key:"setSubmitButtonCount",value:function(e,t){if(t<0)throw new Error("Bad submitButtonCount value ".concat(t," (must be >= 0)"));this.updateFormsData((function(n){n.submitButtonCount.set(e,t)}))}},{key:"updateFormsData",value:function(e){var t=P()(this.formsData,e);this.formsData!==t&&(this.formsData=t,this.props.formsDataChanged(this.formsData))}}],[{key:"getSubmitButtonCount",value:function(e,t){var n=e.submitButtonCount.get(t);return void 0!==n?n:0}}]),e}();function Yo(e){if("number"===typeof e)return e;var t=Uo.util.LongBits.from(e).toNumber();if(Number.isSafeInteger(t))return t;throw new Error("value ".concat(e," cannot be converted to number without a loss of precision!"))}var Xo=function(){function e(){Object(g.a)(this,e),this.onSessionEvent=new _o.Signal}return Object(O.a)(e,[{key:"handleSessionEventMsg",value:function(e){this.onSessionEvent.emit(e)}}]),e}(),Ko=function(e){Object(v.a)(n,e);var t=Object(j.a)(n);function n(e){var r;return Object(g.a)(this,n),(r=t.call(this,e.getServerUri,e.csrfEnabled)).formsWithPendingRequests=new Map,r.pendingFormUploadsChanged=void 0,r.pendingFormUploadsChanged=e.formsWithPendingRequestsChanged,r}return Object(O.a)(n,[{key:"uploadFile",value:function(){var e=Object(So.a)(jo.a.mark((function e(t,n,r,o){var a,i=this;return jo.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(a=new FormData).append("sessionId",W.a.current.sessionId),a.append("widgetId",t.id),a.append(n.name,n),this.offsetPendingRequestCount(t.formId,1),e.abrupt("return",this.request("upload_file",{cancelToken:o,method:"POST",data:a,responseType:"text",onUploadProgress:r}).then((function(e){if("number"===typeof e.data)return e.data;throw new Error("Bad uploadFile response: expected a number but got '".concat(e.data,"'"))})).finally((function(){return i.offsetPendingRequestCount(t.formId,-1)})));case 6:case"end":return e.stop()}}),e,this)})));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"getFormIdSet",value:function(){return new Set(this.formsWithPendingRequests.keys())}},{key:"offsetPendingRequestCount",value:function(e,t){var n;if(0!==t&&Object(J.i)(e)){var 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=".concat(e,", curCount=").concat(r,", offset=").concat(t,")"));var a=this.getFormIdSet();0===o?this.formsWithPendingRequests.delete(e):this.formsWithPendingRequests.set(e,o);var i=this.getFormIdSet();z.a.isEqual(i,a)||this.pendingFormUploadsChanged(i)}}}]),n}(function(){function e(t,n){Object(g.a)(this,e),this.getServerUri=void 0,this.csrfEnabled=void 0,this.getServerUri=t,this.csrfEnabled=n}return Object(O.a)(e,[{key:"request",value:function(e,t){var n=this.getServerUri();if(void 0===n)throw new Error("Cannot complete request: not connected to a server");if(t.url=Object(Ot.a)(n,e),this.csrfEnabled){var r=Object(J.b)("_xsrf");null!=r&&(t.headers=Object(y.a)({"X-Xsrftoken":r},t.headers||{}),t.withCredentials=!0)}return ko.a.request(t)}}]),e}()),Qo=n(184),Zo=n.n(Qo);var $o=/\uFE0F/g,ea=String.fromCharCode(8205);function ta(e){var t,n,r=function(e){var t=e.replace("-","_");if(Zo.a.hasEmoji(Zo.a.get(t)))return Zo.a.get(t);if(Zo.a.hasEmoji(e))return e;return""}(e);if(r){var o=function(e,t){for(var n=[],r=0,o=0,a=0;a=0&&e.setState({countdown:o}),0===o&&r();case 5:case"end":return t.stop()}}),t)}))),e}return Object(O.a)(n,[{key:"render",value:function(){var e=this.state.countdown;return Object(m.jsx)(ja,{onAnimationEnd:this.onAnimationEnd,children:Object(m.jsx)("span",{children:e})},"frame".concat(e))}}]),n}(r.PureComponent);Sa.defaultProps={endCallback:function(){}};var xa=Sa;var ka=function(e){var t=function(t){Object(v.a)(r,t);var n=Object(j.a)(r);function r(){var e;Object(g.a)(this,r);for(var t=arguments.length,o=new Array(t),a=0;aObject(h.createPresetThemes)().length;H.current.enqueue("themeStats",{activeThemeName:l.name,customThemeDefined:s});var c=H.current.getAndResetCustomComponentCounter();Object.entries(c).forEach((function(e){var t=Object(u.a)(e,2),n=t[0],r=t[1];H.current.enqueue("customComponentStats",{name:n,count:r})}))}return{userSettings:Object(y.a)(Object(y.a)({},t.userSettings),{},{runOnSave:Boolean(e.runOnSave)}),dialog:o,scriptRunState:n}}))},r.handleSessionEvent=function(e){if(r.sessionEventDispatcher.handleSessionEventMsg(e),"scriptCompilationException"===e.type){r.setState({scriptRunState:oe.a.COMPILATION_ERROR});var t={type:so.SCRIPT_COMPILE_ERROR,exception:e.scriptCompilationException,onClose:function(){}};r.openDialog(t)}else if(U.b&&"scriptChangedOnDisk"===e.type){var n={type:so.SCRIPT_CHANGED,onRerun:r.rerunScript,onClose:function(){},allowRunOnSave:r.state.allowRunOnSave};r.openDialog(n)}},r.handleNewSession=function(e){var t=e.initialize,o=e.config,a=e.customTheme;if(n.hasStreamlitVersionChanged(t))window.location.reload();else{W.a.isSet()||r.handleOneTimeInitialization(e),r.processThemeInput(a),r.setState({allowRunOnSave:o.allowRunOnSave,hideTopBar:o.hideTopBar});var i=r.state.appHash,l=e.scriptRunId,s=e.name,c=e.mainScriptPath,u=Object(J.d)(W.a.current.installationId+c);document.title="".concat(s," \xb7 Streamlit"),ta("".concat(".","/favicon.png")),H.current.setMetadata(r.props.s4aCommunication.currentState.streamlitShareMetadata),H.current.setAppHash(u),H.current.clearDeltaCounter(),H.current.enqueue("updateReport"),i===u?r.setState({scriptRunId:l}):r.clearAppState(u,l,s)}},r.handleOneTimeInitialization=function(e){var t=e.initialize,n=e.config;W.a.current=W.a.fromNewSessionMessage(e),H.current.initialize({gatherUsageStats:n.gatherUsageStats}),H.current.enqueue("createReport",{pythonVersion:W.a.current.pythonVersion}),r.props.s4aCommunication.connect(),r.handleSessionStateChanged(t.sessionState)},r.setAndSendTheme=function(e){r.props.theme.setTheme(e),r.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(h.toExportedTheme)(e.emotion)})},r.createThemeHash=function(e){if(!e)return"hash_for_undefined_custom_theme";var t=Object.entries(e);return t.sort(),Object(J.d)(t.join(":"))},r.closeDialog=function(){r.setState({dialog:void 0}),r.props.s4aCommunication.onModalReset()},r.saveSettings=function(e){var t=r.state.userSettings.runOnSave,n=e.runOnSave;if(r.setState({userSettings:e}),t!==n&&r.isServerConnected()){var o=new R.c({setRunOnSave:n});o.type="setRunOnSave",r.sendBackMsg(o)}},r.handleDeltaMsg=function(e,t){if(r.pendingElementsBuffer=r.pendingElementsBuffer.applyDelta(r.state.scriptRunId,e,t),!r.pendingElementsTimerRunning){r.pendingElementsTimerRunning=!0;var n=r.state.scriptRunState===oe.a.RUNNING;setTimeout((function(){r.pendingElementsTimerRunning=!1,n&&r.setState({elements:r.pendingElementsBuffer})}),10)}},r.rerunScript=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];r.closeDialog(),r.isServerConnected()?r.state.scriptRunState!==oe.a.RUNNING&&r.state.scriptRunState!==oe.a.RERUN_REQUESTED&&(H.current.enqueue("rerunScript"),r.setState({scriptRunState:oe.a.RERUN_REQUESTED}),!0===e&&r.saveSettings(Object(y.a)(Object(y.a)({},r.state.userSettings),{},{runOnSave:!0})),r.widgetMgr.sendUpdateWidgetsMessage()):Object(_.b)("Cannot rerun script when disconnected from server.")},r.sendLoadGitInfoBackMsg=function(){r.isServerConnected()?r.sendBackMsg(new R.c({loadGitInfo:!0})):Object(_.b)("Cannot load git information when disconnected from server.")},r.sendRerunBackMsg=function(e){var t=r.props.s4aCommunication.currentState.queryParams,n=t&&t.length>0?t:document.location.search;n.startsWith("?")&&(n=n.substring(1)),r.sendBackMsg(new R.c({rerunScript:{queryString:n,widgetStates:e}})),No.record({name:"RequestedRerun",scriptRunState:r.state.scriptRunState})},r.stopScript=function(){if(r.isServerConnected()){if(r.state.scriptRunState!==oe.a.NOT_RUNNING&&r.state.scriptRunState!==oe.a.STOP_REQUESTED){var e=new R.c({stopScript:!0});e.type="stopScript",r.sendBackMsg(e),r.setState({scriptRunState:oe.a.STOP_REQUESTED})}}else Object(_.b)("Cannot stop app when disconnected from server.")},r.openClearCacheDialog=function(){if(r.isServerConnected()){var e={type:so.CLEAR_CACHE,confirmCallback:r.clearCache,defaultAction:r.clearCache,onClose:function(){}};r.openDialog(e)}else Object(_.b)("Cannot clear cache: disconnected from server")},r.openThemeCreatorDialog=function(){var e={type:so.THEME_CREATOR,backToSettings:r.settingsCallback,onClose:r.closeDialog};r.openDialog(e)},r.clearCache=function(){if(r.closeDialog(),r.isServerConnected()){H.current.enqueue("clearCache");var e=new R.c({clearCache:!0});e.type="clearCache",r.sendBackMsg(e)}else Object(_.b)("Cannot clear cache: disconnected from server")},r.sendBackMsg=function(e){r.connectionManager?(Object(_.c)(e),r.connectionManager.sendMessage(e)):Object(_.b)("Not connected. Cannot send back message: ".concat(e))},r.handleConnectionError=function(e){r.showError("Connection error",e)},r.isServerConnected=function(){return!!r.connectionManager&&r.connectionManager.isConnected()},r.settingsCallback=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={type:so.SETTINGS,isServerConnected:r.isServerConnected(),settings:r.state.userSettings,allowRunOnSave:r.state.allowRunOnSave,onSave:r.saveSettings,onClose:function(){},developerMode:r.state.developerMode,openThemeCreator:r.openThemeCreatorDialog,animateModal:e};r.openDialog(t)},r.aboutCallback=function(){var e=r.state.menuItems,t={type:so.ABOUT,onClose:r.closeDialog,aboutSectionMd:null===e||void 0===e?void 0:e.aboutSectionMd};r.openDialog(t)},r.screencastCallback=function(){var e=r.state.scriptName,t=r.props.screenCast.startRecording,n=x()().format("YYYY-MM-DD-HH-MM-SS");t("streamlit-".concat(e,"-").concat(n))},r.handleFullScreen=function(e){r.setState({isFullScreen:e})},r.addScriptFinishedHandler=function(e){r.setState({scriptFinishedHandlers:Object(L.concat)(r.state.scriptFinishedHandlers,e)})},r.removeScriptFinishedHandler=function(e){r.setState({scriptFinishedHandlers:Object(L.without)(r.state.scriptFinishedHandlers,e)})},Object(C.enableAllPlugins)(),r.state={connectionState:Fn.INITIAL,elements:X.empty("Please wait..."),isFullScreen:!1,scriptName:"",scriptRunId:"",appHash:null,scriptRunState:oe.a.NOT_RUNNING,userSettings:{wideMode:!1,runOnSave:!1},layout:R.o.Layout.CENTERED,initialSidebarState:R.o.SidebarState.AUTO,menuItems:void 0,allowRunOnSave:!0,scriptFinishedHandlers:[],developerMode:window.location.host.includes("localhost"),themeHash:null,gitInfo:null,formsData:Ho(),hideTopBar:!0},r.sessionEventDispatcher=new Xo,r.connectionManager=null,r.widgetMgr=new qo({sendRerunBackMsg:r.sendRerunBackMsg,formsDataChanged:function(e){return r.setState({formsData:e})}}),r.uploadClient=new Ko({getServerUri:function(){return r.connectionManager?r.connectionManager.getBaseUriParts():void 0},formsWithPendingRequestsChanged:function(e){return r.widgetMgr.setFormsWithUploads(e)},csrfEnabled:!0}),r.componentRegistry=new wt((function(){return r.connectionManager?r.connectionManager.getBaseUriParts():void 0})),r.pendingElementsTimerRunning=!1,r.pendingElementsBuffer=r.state.elements,window.streamlitDebug={},window.streamlitDebug.closeConnection=r.closeConnection.bind(Object(w.a)(r)),r}return Object(O.a)(n,[{key:"componentDidMount",value:function(){this.connectionManager=new Wo({onMessage:this.handleMessage,onConnectionError:this.handleConnectionError,connectionStateChanged:this.handleConnectionStateChanged}),Object(J.e)()&&document.body.classList.add("embedded"),this.props.s4aCommunication.sendMessage({type:"SET_THEME_CONFIG",themeInfo:Object(h.toExportedTheme)(this.props.theme.activeTheme.emotion)}),H.current.enqueue("viewReport")}},{key:"componentDidUpdate",value:function(e){e.s4aCommunication.currentState.queryParams!==this.props.s4aCommunication.currentState.queryParams&&this.sendRerunBackMsg(),this.props.s4aCommunication.currentState.forcedModalClose&&this.closeDialog()}},{key:"showError",value:function(e,t){Object(_.b)(t);var n={type:so.WARNING,title:e,msg:t,onClose:function(){}};this.openDialog(n)}},{key:"processThemeInput",value:function(e){var t=this.createThemeHash(e);if(t!==this.state.themeHash){this.setState({themeHash:t});var n=!Object(h.isPresetTheme)(this.props.theme.activeTheme);if(e){var r=Object(h.createTheme)(h.CUSTOM_THEME_NAME,e);this.props.theme.addThemes([r]),(null===Object(h.getCachedTheme)()||n)&&this.setAndSendTheme(r)}else e||(this.props.theme.addThemes([]),n&&this.setAndSendTheme(Object(h.createAutoTheme)()))}}},{key:"handleScriptFinished",value:function(e){var t=this;if(e===R.i.ScriptFinishedStatus.FINISHED_SUCCESSFULLY){window.setTimeout((function(){t.state.scriptFinishedHandlers.map((function(e){return e()}))}),0),this.setState((function(e){var n=e.scriptRunId;return{elements:t.pendingElementsBuffer.clearStaleNodes(n)}}),(function(){t.pendingElementsBuffer=t.state.elements}));var n=new Set(Array.from(this.state.elements.getElements()).map((function(e){return Object(J.c)(e)})).filter(J.l));this.widgetMgr.removeInactive(n),null!==this.connectionManager&&this.connectionManager.incrementMessageCacheRunCount(W.a.current.maxCachedMessageAge)}}},{key:"clearAppState",value:function(e,t,n){var r=this;this.setState({scriptRunId:t,scriptName:n,appHash:e,elements:X.empty()},(function(){r.pendingElementsBuffer=r.state.elements,r.widgetMgr.removeInactive(Object(I.fromJS)([]))}))}},{key:"openDialog",value:function(e){this.setState({dialog:e})}},{key:"closeConnection",value:function(){if(this.isServerConnected()){var e=new R.c({closeConnection:!0});e.type="closeConnection",this.sendBackMsg(e)}}},{key:"render",value:function(){var e,t=this.state,n=t.allowRunOnSave,r=t.connectionState,o=t.dialog,a=t.elements,i=t.initialSidebarState,l=t.menuItems,s=t.isFullScreen,c=t.layout,u=t.scriptRunId,d=t.scriptRunState,p=t.userSettings,f=t.gitInfo,h=t.hideTopBar,b=V()("stApp",{"streamlit-embedded":Object(J.e)(),"streamlit-wide":p.wideMode}),g=o?wo(Object(y.a)(Object(y.a)({},o),{},{onClose:this.closeDialog})):null;return Object(m.jsx)(E.a.Provider,{value:{initialSidebarState:i,layout:c,wideMode:p.wideMode,embedded:Object(J.e)(),isFullScreen:s,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},children:Object(m.jsx)(k.HotKeys,{keyMap:this.keyMap,handlers:this.keyHandlers,attach:window,focused:!0,children:Object(m.jsxs)(na,{className:b,children:[Object(m.jsxs)(Dr,{children:[!h&&Object(m.jsxs)(m.Fragment,{children:[Object(m.jsx)(Kn,{connectionState:r,sessionEventDispatcher:this.sessionEventDispatcher,scriptRunState:d,rerunScript:this.rerunScript,stopScript:this.stopScript,allowRunOnSave:n}),Object(m.jsx)(Tr,{s4aToolbarItems:this.props.s4aCommunication.currentState.toolbarItems,sendS4AMessage:this.props.s4aCommunication.sendMessage})]}),Object(m.jsx)(kr,{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:f,showDeployError:this.showDeployError,closeDialog:this.closeDialog,isDeployErrorModalOpen:(null===(e=this.state.dialog)||void 0===e?void 0:e.type)===so.DEPLOY_ERROR,loadGitInfo:this.sendLoadGitInfoBackMsg,canDeploy:W.a.isSet()&&!W.a.isHello,menuItems:l})]}),Object(m.jsx)(Mn,{elements:a,scriptRunId:u,scriptRunState:d,widgetMgr:this.widgetMgr,widgetsDisabled:r!==Fn.CONNECTED,uploadClient:this.uploadClient,componentRegistry:this.componentRegistry,formsData:this.state.formsData}),g]})})})}}],[{key:"hasStreamlitVersionChanged",value:function(e){if(W.a.isSet()){var t=W.a.current.streamlitVersion,n=e.environmentInfo;if(null!=n&&null!=n.streamlitVersion)return t0?i[this.state.value]:"No options to select.",value:this.state.value.toString()}];this.state.isEmpty&&(l=[]),0===i.length&&(i=["No options to select."],a=!0);var s=i.map((function(e,t){return{label:e,value:t.toString()}}));return Object(O.jsxs)("div",{className:"row-widget stSelectbox",style:e,children:[Object(O.jsx)(g.d,{label:n,disabled:a,children:r&&Object(O.jsx)(g.b,{children:Object(O.jsx)(y.a,{content:r,placement:b.b.TOP_RIGHT})})}),Object(O.jsx)(u.a,{clearable:!1,disabled:a,labelKey:"label",onChange:this.onChange,onInputChange:this.onInputChange,onClose:this.onClose,options:s,filterOptions:this.filterOptions,value:l,valueKey:"value",overrides:{Dropdown:{component:p.a}}})]})}}]),n}(c.a.PureComponent);t.a=v},41:function(e,t,n){"use strict";var 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={}))},42:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"e",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"j",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"l",(function(){return b})),n.d(t,"f",(function(){return y})),n.d(t,"g",(function(){return g})),n.d(t,"b",(function(){return O})),n.d(t,"m",(function(){return w})),n.d(t,"c",(function(){return v})),n.d(t,"i",(function(){return j})),n.d(t,"h",(function(){return S}));var r=n(18),o=n(47),a=n.n(o),i=n(1008),l=n.n(i),s=n(1009),c=n.n(s);function u(e,t){var n;return function(){for(var r=arguments.length,o=new Array(r),a=0;a0}function S(e){return j(e.formId)}},439:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(37),o=n(32),a=function(e){return Object(r.css)("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 td{border:none;}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.transparentize)(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.4;}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.4;}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.4;}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.4;}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.4;}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.4;}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.darken)(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.readableColor)(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;}","")}},443:function(e,t){},444:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"b",(function(){return b})),n.d(t,"c",(function(){return y}));var r=n(6),o=n(395),a=n(394),i=n(3676),l=n(1033),s=n(177),c=n(115),u=n(286),d=n(287),p=n(88),f={name:"base",emotion:c.a,baseweb:o.a,basewebTheme:s.b,primitives:a.a},h={name:"Dark",emotion:d.a,baseweb:i.a,basewebTheme:s.a,primitives:l.a},m={name:"Light",emotion:u.a,baseweb:o.a,basewebTheme:s.b,primitives:a.a},b=function(){return Object(r.a)(Object(r.a)({},Object(p.i)()),{},{name:p.a})},y=function(){return[b(),m,h]}},54: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 a})),n.d(t,"g",(function(){return i})),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}));var r="https://streamlit.io",o="https://share.streamlit.io/deploy",a="https://streamlit.io/cloud",i="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","*.streamlitapp.com","*.streamlit.run"]},60:function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return r}));n(0);var r,o=n(37),a=n(59),i=n(3694),l=n(11),s=n.n(l)()("div",{target:"e13vu3m50"})((function(e){var t=e.theme;return{pre:{backgroundColor:t.colors.transparent,paddingTop:t.spacing.lg,paddingBottom:t.spacing.lg,paddingRight:t.spacing.lg,paddingLeft:t.spacing.lg,border:"1px solid ".concat(t.colors.fadedText10),"pre, code":{backgroundColor:t.colors.transparent,color:"inherit"}},code:{backgroundColor:t.colors.transparent,padding:t.spacing.none},"pre, code":{color:"inherit"},a:{color:"inherit",textDecoration:"underline"}}}),""),c=n(5);function u(e,t){var n="1px solid ";switch(e){case r.ERROR:return n+t.colors.alertErrorBorderColor;case r.INFO:return n+t.colors.alertInfoBorderColor;case r.SUCCESS:return n+t.colors.alertSuccessBorderColor;case r.WARNING:return n+t.colors.alertWarningBorderColor;default:throw new Error("Unexpected alert type: ".concat(e))}}function d(e){switch(e){case r.ERROR:return a.a.negative;case r.INFO:return a.a.info;case r.SUCCESS:return a.a.positive;case r.WARNING:return a.a.warning;default:throw new Error("Unexpected alert type: ".concat(e))}}function p(e){var t=e.kind,n=e.width,r=e.children,a=Object(o.useTheme)();return Object(c.jsx)(i.a,{kind:d(t),overrides:{Body:{style:{marginTop:0,marginBottom:0,width:n,border:u(t,a)}},InnerContainer:{style:{width:"100%"}}},children:Object(c.jsx)(s,{children:r})})}!function(e){e.ERROR="error",e.INFO="info",e.SUCCESS="success",e.WARNING="warning"}(r||(r={}))},67:function(e,t,n){"use strict";var r=n(0),o=n.n(r),a=n(18),i=n(25);t.a=o.a.createContext({wideMode:!1,layout:a.o.Layout.CENTERED,initialSidebarState:a.o.SidebarState.AUTO,embedded:!1,isFullScreen:!1,setFullScreen:function(e){},addScriptFinishedHandler:function(e){},removeScriptFinishedHandler:function(e){},activeTheme:i.baseTheme,setTheme:function(e){},availableThemes:[],addThemes:function(e){},sidebarChevronDownshift:0})},73:function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return l}));var r=n(152);function o(e,t){var n=e.toObject(t,{defaults:!0,oneofs:!0});return Object(r.fromJS)(n)}function a(e,t,n){var 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 ".concat(t,' "').concat(r,'".'))}function i(e,t,n){var r=e.get(t);if(r in n)return e.update(r,n[r]);throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}function l(e,t,n){var r=e.get(t);if(r in n)return n[r];throw new Error("Cannot handle ".concat(t,' "').concat(r,'".'))}},78:function(e,t,n){"use strict";n.d(t,"d",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return m}));var r=n(89),o=n(1025),a=n.n(o),i=/\/+$/,l=/^\/+/;function s(){return{host:window.location.hostname,port:r.a?r.c:window.location.port?Number(window.location.port):p()?443:80,basePath:window.location.pathname.replace(i,"").replace(l,"")}}function c(e,t){var n=e.host,r=e.port,o=e.basePath,a=p()?"wss":"ws",i=d(o,t);return"".concat(a,"://").concat(n,":").concat(r,"/").concat(i)}function u(e,t){var n=e.host,r=e.port,o=e.basePath,a=p()?"https":"http",i=d(o,t);return"".concat(a,"://").concat(n,":").concat(r,"/").concat(i)}function d(e,t){return e=e.replace(i,"").replace(l,""),t=t.replace(i,"").replace(l,""),0===e.length?t:"".concat(e,"/").concat(t)}function p(){return window.location.href.startsWith("https://")}function f(e){var t=e.substring("data:image/svg+xml,".length);return a.a.sanitize(t)}function h(e){return e.startsWith("/media")?u(s(),e):e}function m(e,t){if(e===t)return!0;var n=e.split("."),r=t.split(".");return n.length===r.length&&n.every((function(e,t){return"*"===e||e===r[t]}))}},80:function(e,t,n){"use strict";n.d(t,"d",(function(){return g})),n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return m}));var r=n(6),o=n(0),a=n.n(o),i=n(37),l=n(3693),s=n(39),c=n(30),u=n(11),d=n.n(u),p=n(32);var f,h=d()("div",{target:"e1wqxbhn2"})({name:"87mhkc",styles:"display:table;table-layout:fixed;width:100%"}),m=d()("div",{target:"e1wqxbhn1"})({name:"ps6290",styles:"overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:table-cell"}),b=d()("div",{target:"e1wqxbhn0"})((function(e){var t,n=e.theme;return t={boxSizing:"border-box",fontSize:"".concat(n.fontSizes.sm),maxWidth:"calc(".concat(n.sizes.contentMaxWidth," - 4rem)"),maxHeight:"300px",overflow:["auto","overlay"],padding:"".concat(n.spacing.xs," ").concat(n.spacing.md)},Object(c.a)(t,"@media (max-width: ".concat(n.breakpoints.sm,")"),{maxWidth:"calc(100% - 2rem)"}),Object(c.a)(t,"img",{maxWidth:"100%"}),Object(c.a)(t,"code",{background:Object(p.transparentize)(n.colors.darkenedBgMix60,.8)}),Object(c.a)(t,"*",{fontSize:"".concat(n.fontSizes.sm," !important")}),t}),""),y=n(5);!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"}(f||(f={}));var g=function(e){var t=e.content,n=e.placement,o=e.children,a=e.inline,c=e.style,u=Object(i.useTheme)(),d=u.colors,p=u.fontSizes;return Object(y.jsx)(l.a,{content:t?Object(y.jsx)(b,{children:t}):null,placement:s.f[n],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",border:"1px solid ".concat(d.fadedText10),backgroundColor:d.fadedText10}},Inner:{style:{backgroundColor:d.bgColor,color:d.bodyText,fontSize:p.sm,fontWeight:"normal",paddingTop:"0 !important",paddingBottom:"0 !important",paddingLeft:"0 !important",paddingRight:"0 !important"}}},children:Object(y.jsx)("div",{style:Object(r.a)({display:"flex",flexDirection:"row",justifyContent:a?"flex-end":""},c),"data-testid":"tooltipHoverTarget",children:o})})},O=n(33);var w=function(e){var t=e.content,n=e.placement,r=e.children,i=e.inline,l=e.style,s=a.a.useRef(null),c=Object(o.useState)(!1),u=Object(O.a)(c,2),d=u[0],p=u[1];return a.a.useEffect((function(){var e=!!(null===s||void 0===s?void 0:s.current)&&s.current.offsetWidth1&&void 0!==arguments[1]?arguments[1]:i.a;return Object(l.a)(P(t,e),T(e))},E=function(e){var t=e.bodyText,n=e.secondaryBg,r=e.bgColor,o=Object(s.getLuminance)(r)>.5,a=o?e.blue:Object(s.lighten)(e.blue,.2),i=Object(s.transparentize)(t,.9),l=Object(s.transparentize)(t,.8),c=Object(s.transparentize)(t,.6),u=Object(s.transparentize)(t,.4),d=Object(s.mix)(r,n,.5),p=o?Object(s.darken)(d,.3):Object(s.lighten)(d,.6);return{linkText:a,fadedText05:i,fadedText10:l,fadedText40:c,fadedText60:u,bgMix:d,darkenedBgMix60:p,transparentDarkenedBgMix60:Object(s.transparentize)(p,.75),lightenedBg05:Object(s.lighten)(r,.025)}},A=function(e){var t=E(e);return Object(a.a)(Object(a.a)(Object(a.a)({},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(s.transparentize)(e.secondaryBg,.6),headingColor:e.bodyText})},D=function(e){var t=(new Option).style;return t.color=e,""!==t.color},R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:v.baseTheme,n=t.emotion,i=n.genericColors,l=n.genericFonts,s=e.font,c=Object(o.a)(e,["font"]),u=C(s),d=Object.entries(c).reduce((function(e,t){var n=Object(r.a)(t,2),o=n[0],a=n[1];return D(a)?e[o]=a:D("#".concat(a))&&(e[o]="#".concat(a)),e}),{}),p=d.secondaryBackgroundColor,f=d.backgroundColor,h=d.primaryColor,m=d.textColor,b=Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},i),h&&{primary:h}),m&&{bodyText:m}),p&&{secondaryBg:p}),f&&{bgColor:f});return Object(a.a)(Object(a.a)({},t.emotion),{},{colors:A(b),genericColors:b,genericFonts:Object(a.a)(Object(a.a)({},l),u&&{bodyFont:u,headingFont:u})})},N=function(e){var t=e.colors,n=e.genericFonts;return{primaryColor:t.primary,backgroundColor:t.bgColor,secondaryBackgroundColor:t.secondaryBg,textColor:t.bodyText,font:I(n.bodyFont)}},F=function(e){var t,n=e.genericColors,r=N(e);return Object(a.a)({primaryColor:r.primaryColor,backgroundColor:r.backgroundColor,secondaryBackgroundColor:r.secondaryBackgroundColor,textColor:r.textColor,base:(t=r.backgroundColor,void 0===t||Object(s.getLuminance)(t)>.5?"light":"dark"),font:C(r.font)},E(n))},M=function(e,t){return new y.e(Object(a.a)(Object(a.a)({},N(t.emotion)),e))},B=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=(t=n?M(t,n):t.base===y.e.BaseTheme.DARK?M(t,v.darkTheme):M(t,v.lightTheme)).backgroundColor,i=b()(h()(Object(s.getLuminance)(o)>.5?v.lightTheme:v.darkTheme),{emotion:{inSidebar:r}}),l=R(t,i);return Object(a.a)(Object(a.a)({},i),{},{name:e,emotion:l,basewebTheme:V(l,i.primitives)})},L=function(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?v.darkTheme:v.lightTheme},z=function(){var e="testData";try{var t=window.localStorage;t.setItem(e,e),t.getItem(e),t.removeItem(e)}catch(n){return!1}return!0},W=function(){if(!z())return null;var e=window.localStorage.getItem(w.ACTIVE_THEME);if(!e)return null;var t=JSON.parse(e),n=t.name,r=t.themeInput;switch(n){case v.lightTheme.name:return v.lightTheme;case v.darkTheme.name:return v.darkTheme;default:return B(n,r)}},U=function(e){if(z()){!function(){var e=w.CACHED_THEME_VERSION,t=w.CACHED_THEME_BASE_KEY,n=window.localStorage;n.removeItem("stActiveTheme"),n.removeItem(t);for(var r=1;r