streamlit-nightly 1.29.1.dev20231208__py2.py3-none-any.whl → 1.29.1.dev20231212__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "files": {
3
3
  "main.css": "./static/css/main.77d1c464.css",
4
- "main.js": "./static/js/main.de0c9f3c.js",
4
+ "main.js": "./static/js/main.67a09f4e.js",
5
5
  "static/js/9336.2d95d840.chunk.js": "./static/js/9336.2d95d840.chunk.js",
6
6
  "static/js/9330.c0dd1723.chunk.js": "./static/js/9330.c0dd1723.chunk.js",
7
7
  "static/js/2736.ec449a3a.chunk.js": "./static/js/2736.ec449a3a.chunk.js",
@@ -14,11 +14,11 @@
14
14
  "static/js/7323.a0a246cc.chunk.js": "./static/js/7323.a0a246cc.chunk.js",
15
15
  "static/js/4185.90e929dc.chunk.js": "./static/js/4185.90e929dc.chunk.js",
16
16
  "static/js/7805.51638fbc.chunk.js": "./static/js/7805.51638fbc.chunk.js",
17
- "static/js/4500.dfb7a155.chunk.js": "./static/js/4500.dfb7a155.chunk.js",
17
+ "static/js/4500.d1151e3d.chunk.js": "./static/js/4500.d1151e3d.chunk.js",
18
18
  "static/js/1307.8ea033f1.chunk.js": "./static/js/1307.8ea033f1.chunk.js",
19
19
  "static/js/2469.3e9c3ce9.chunk.js": "./static/js/2469.3e9c3ce9.chunk.js",
20
- "static/js/1168.acbe5860.chunk.js": "./static/js/1168.acbe5860.chunk.js",
21
- "static/js/178.7c7b322b.chunk.js": "./static/js/178.7c7b322b.chunk.js",
20
+ "static/js/1168.3df5f3bc.chunk.js": "./static/js/1168.3df5f3bc.chunk.js",
21
+ "static/js/178.9aed59c0.chunk.js": "./static/js/178.9aed59c0.chunk.js",
22
22
  "static/js/1792.16c16498.chunk.js": "./static/js/1792.16c16498.chunk.js",
23
23
  "static/js/3513.57cff89c.chunk.js": "./static/js/3513.57cff89c.chunk.js",
24
24
  "static/js/7602.25235256.chunk.js": "./static/js/7602.25235256.chunk.js",
@@ -149,6 +149,6 @@
149
149
  },
150
150
  "entrypoints": [
151
151
  "static/css/main.77d1c464.css",
152
- "static/js/main.de0c9f3c.js"
152
+ "static/js/main.67a09f4e.js"
153
153
  ]
154
154
  }
@@ -1 +1 @@
1
- <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.de0c9f3c.js"></script><link href="./static/css/main.77d1c464.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1
+ <!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.67a09f4e.js"></script><link href="./static/css/main.77d1c464.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1168],{71168:(l,e,o)=>{o.r(e),o.d(e,{default:()=>b});var r=o(66845),t=o(25621),c=o(62622),a=o(42736),n=o(72706),i=o(27466),p=o(63765),s=o(23849);function f(l,e,o){return l=function(l,e){return(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll("#000032",(0,i.By)(e))).replaceAll("#000033",(0,i.He)(e))).replaceAll("#000034",(0,i.Iy)(e)?e.colors.blue80:e.colors.blue40)).replaceAll("#000035",(0,i.ny)(e))).replaceAll("#000036",(0,i.Xy)(e))).replaceAll("#000037",(0,i.yq)(e))).replaceAll("#000038",e.colors.bgColor)).replaceAll("#000039",e.colors.fadedText05)).replaceAll("#000040",e.colors.bgMix)}(l,e),l=function(l,e,o){const r="#000001",t="#000002",c="#000003",a="#000004",n="#000005",p="#000006",s="#000007",f="#000008",y="#000009",d="#000010";if("streamlit"===o){const o=(0,i.iY)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#636efa")).replaceAll(t,"#EF553B")).replaceAll(c,"#00cc96")).replaceAll(a,"#ab63fa")).replaceAll(n,"#FFA15A")).replaceAll(p,"#19d3f3")).replaceAll(s,"#FF6692")).replaceAll(f,"#B6E880")).replaceAll(y,"#FF97FF")).replaceAll(d,"#FECB52");return l}(l,e,o),l=function(l,e,o){const r="#000011",t="#000012",c="#000013",a="#000014",n="#000015",p="#000016",s="#000017",f="#000018",y="#000019",d="#000020";if("streamlit"===o){const o=(0,i.Gy)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#0d0887")).replaceAll(t,"#46039f")).replaceAll(c,"#7201a8")).replaceAll(a,"#9c179e")).replaceAll(n,"#bd3786")).replaceAll(p,"#d8576b")).replaceAll(s,"#ed7953")).replaceAll(f,"#fb9f3a")).replaceAll(y,"#fdca26")).replaceAll(d,"#f0f921");return l}(l,e,o),l=function(l,e,o){const r="#000021",t="#000022",c="#000023",a="#000024",n="#000025",p="#000026",s="#000027",f="#000028",y="#000029",d="#000030",A="#000031";if("streamlit"===o){const o=(0,i.ru)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])).replaceAll(A,o[10])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#8e0152")).replaceAll(t,"#c51b7d")).replaceAll(c,"#de77ae")).replaceAll(a,"#f1b6da")).replaceAll(n,"#fde0ef")).replaceAll(p,"#f7f7f7")).replaceAll(s,"#e6f5d0")).replaceAll(f,"#b8e186")).replaceAll(y,"#7fbc41")).replaceAll(d,"#4d9221")).replaceAll(A,"#276419");return l}(l,e,o),l}function y(l,e){try{!function(l,e){const{genericFonts:o,colors:r,fontSizes:t}=e,c={font:{color:(0,i.Xy)(e),family:o.bodyFont,size:t.twoSmPx},title:{color:r.headingColor,subtitleColor:r.bodyText,font:{family:o.headingFont,size:t.mdPx,color:r.headingColor},pad:{l:e.spacing.twoXSPx},xanchor:"left",x:0},legend:{title:{font:{size:t.twoSmPx,color:(0,i.Xy)(e)},side:"top"},valign:"top",bordercolor:r.transparent,borderwidth:e.spacing.nonePx,font:{size:t.twoSmPx,color:(0,i.yq)(e)}},paper_bgcolor:r.bgColor,plot_bgcolor:r.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,i.ny)(e),title:{font:{color:(0,i.Xy)(e),size:t.smPx},standoff:e.spacing.twoXLPx},tickcolor:(0,i.ny)(e),tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx},gridcolor:(0,i.ny)(e),minor:{gridcolor:(0,i.ny)(e)},automargin:!0},xaxis:{zerolinecolor:(0,i.ny)(e),gridcolor:(0,i.ny)(e),showgrid:!1,tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx},tickcolor:(0,i.ny)(e),title:{font:{color:(0,i.Xy)(e),size:t.smPx},standoff:e.spacing.xlPx},minor:{gridcolor:(0,i.ny)(e)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:r.bgColor,bordercolor:(0,i.ny)(e),borderwidth:1,x:0}},margin:{pad:e.spacing.smPx,r:e.spacing.nonePx,l:e.spacing.nonePx},hoverlabel:{bgcolor:r.bgColor,bordercolor:r.fadedText10,font:{color:(0,i.Xy)(e),family:o.bodyFont,size:t.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:e.spacing.twoXLPx,ticklabelposition:"outside",outlinecolor:r.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,i.Xy)(e),size:t.smPx}},tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx}}},ternary:{gridcolor:(0,i.Xy)(e),bgcolor:r.bgColor,title:{font:{family:o.bodyFont,size:t.smPx}},color:(0,i.Xy)(e),aaxis:{gridcolor:(0,i.Xy)(e),linecolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}},baxis:{linecolor:(0,i.Xy)(e),gridcolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}},caxis:{linecolor:(0,i.Xy)(e),gridcolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}}}};(0,n.merge)(l,c)}(l.layout.template.layout,e)}catch(o){const l=(0,p.b)(o);(0,s.H)(l)}"title"in l.layout&&(l.layout.title=(0,n.merge)(l.layout.title,{text:"<b>".concat(l.layout.title.text,"</b>")}))}var d=o(40864);const A=450;function u(l){return!!l}function g(l){let{element:e,width:o,height:c}=l;const n=e.figure,i=(0,t.u)(),p=(0,r.useCallback)((()=>{const l=JSON.parse(f(n.spec,i,e.theme)),r=l.layout.height,t=l.layout.width;return u(c)?(l.layout.width=o,l.layout.height=c):e.useContainerWidth?l.layout.width=o:(l.layout.width=t,l.layout.height=r),"streamlit"===e.theme?y(l,i):l.layout=function(l,e){const{colors:o,genericFonts:r}=e,t={font:{color:o.bodyText,family:r.bodyFont},paper_bgcolor:o.bgColor,plot_bgcolor:o.secondaryBg};return{...l,font:{...t.font,...l.font},paper_bgcolor:l.paper_bgcolor||t.paper_bgcolor,plot_bgcolor:l.plot_bgcolor||t.plot_bgcolor}}(l.layout,i),l}),[e.theme,e.useContainerWidth,n.spec,c,i,o]),[s,A]=(0,r.useState)(JSON.parse(n.config)),[g,b]=(0,r.useState)(p());(0,r.useLayoutEffect)((()=>{A(JSON.parse(n.config)),b(p())}),[e,i,c,o,n.config,p]);const{data:h,layout:m,frames:x}=g;return(0,d.jsx)(a.Z,{className:"stPlotlyChart",data:h,layout:m,config:s,frames:x},u(c)?"fullscreen":"original")}const b=(0,c.Z)((function(l){let{width:e,element:o,height:r}=l;switch(o.chart){case"url":return function(l){let{url:e,width:o,height:r}=l;const t=r||A;return(0,d.jsx)("iframe",{title:"Plotly",src:e,style:{width:o,height:t}})}({url:o.url,height:r,width:e});case"figure":return(0,d.jsx)(g,{width:e,element:o,height:r});default:throw new Error("Unrecognized PlotlyChart type: ".concat(o.chart))}}))}}]);
1
+ "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[1168],{71168:(l,e,o)=>{o.r(e),o.d(e,{default:()=>b});var r=o(66845),t=o(25621),c=o(62622),a=o(42736),n=o(72706),i=o(27466),p=o(63765),s=o(23849);function f(l,e,o){return l=function(l,e){return(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll("#000032",(0,i.By)(e))).replaceAll("#000033",(0,i.He)(e))).replaceAll("#000034",(0,i.Iy)(e)?e.colors.blue80:e.colors.blue40)).replaceAll("#000035",(0,i.ny)(e))).replaceAll("#000036",(0,i.Xy)(e))).replaceAll("#000037",(0,i.yq)(e))).replaceAll("#000038",e.colors.bgColor)).replaceAll("#000039",e.colors.fadedText05)).replaceAll("#000040",e.colors.bgMix)}(l,e),l=function(l,e,o){const r="#000001",t="#000002",c="#000003",a="#000004",n="#000005",p="#000006",s="#000007",f="#000008",y="#000009",d="#000010";if("streamlit"===o){const o=(0,i.iY)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#636efa")).replaceAll(t,"#EF553B")).replaceAll(c,"#00cc96")).replaceAll(a,"#ab63fa")).replaceAll(n,"#FFA15A")).replaceAll(p,"#19d3f3")).replaceAll(s,"#FF6692")).replaceAll(f,"#B6E880")).replaceAll(y,"#FF97FF")).replaceAll(d,"#FECB52");return l}(l,e,o),l=function(l,e,o){const r="#000011",t="#000012",c="#000013",a="#000014",n="#000015",p="#000016",s="#000017",f="#000018",y="#000019",d="#000020";if("streamlit"===o){const o=(0,i.Gy)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#0d0887")).replaceAll(t,"#46039f")).replaceAll(c,"#7201a8")).replaceAll(a,"#9c179e")).replaceAll(n,"#bd3786")).replaceAll(p,"#d8576b")).replaceAll(s,"#ed7953")).replaceAll(f,"#fb9f3a")).replaceAll(y,"#fdca26")).replaceAll(d,"#f0f921");return l}(l,e,o),l=function(l,e,o){const r="#000021",t="#000022",c="#000023",a="#000024",n="#000025",p="#000026",s="#000027",f="#000028",y="#000029",d="#000030",A="#000031";if("streamlit"===o){const o=(0,i.ru)(e);l=(l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,o[0])).replaceAll(t,o[1])).replaceAll(c,o[2])).replaceAll(a,o[3])).replaceAll(n,o[4])).replaceAll(p,o[5])).replaceAll(s,o[6])).replaceAll(f,o[7])).replaceAll(y,o[8])).replaceAll(d,o[9])).replaceAll(A,o[10])}else l=(l=(l=(l=(l=(l=(l=(l=(l=(l=(l=l.replaceAll(r,"#8e0152")).replaceAll(t,"#c51b7d")).replaceAll(c,"#de77ae")).replaceAll(a,"#f1b6da")).replaceAll(n,"#fde0ef")).replaceAll(p,"#f7f7f7")).replaceAll(s,"#e6f5d0")).replaceAll(f,"#b8e186")).replaceAll(y,"#7fbc41")).replaceAll(d,"#4d9221")).replaceAll(A,"#276419");return l}(l,e,o),l}function y(l,e){try{!function(l,e){const{genericFonts:o,colors:r,fontSizes:t}=e,c={font:{color:(0,i.Xy)(e),family:o.bodyFont,size:t.twoSmPx},title:{color:r.headingColor,subtitleColor:r.bodyText,font:{family:o.headingFont,size:t.mdPx,color:r.headingColor},pad:{l:e.spacing.twoXSPx},xanchor:"left",x:0},legend:{title:{font:{size:t.twoSmPx,color:(0,i.Xy)(e)},side:"top"},valign:"top",bordercolor:r.transparent,borderwidth:e.spacing.nonePx,font:{size:t.twoSmPx,color:(0,i.yq)(e)}},paper_bgcolor:r.bgColor,plot_bgcolor:r.bgColor,yaxis:{ticklabelposition:"outside",zerolinecolor:(0,i.ny)(e),title:{font:{color:(0,i.Xy)(e),size:t.smPx},standoff:e.spacing.twoXLPx},tickcolor:(0,i.ny)(e),tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx},gridcolor:(0,i.ny)(e),minor:{gridcolor:(0,i.ny)(e)},automargin:!0},xaxis:{zerolinecolor:(0,i.ny)(e),gridcolor:(0,i.ny)(e),showgrid:!1,tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx},tickcolor:(0,i.ny)(e),title:{font:{color:(0,i.Xy)(e),size:t.smPx},standoff:e.spacing.xlPx},minor:{gridcolor:(0,i.ny)(e)},zeroline:!1,automargin:!0,rangeselector:{bgcolor:r.bgColor,bordercolor:(0,i.ny)(e),borderwidth:1,x:0}},margin:{pad:e.spacing.smPx,r:e.spacing.nonePx,l:e.spacing.nonePx},hoverlabel:{bgcolor:r.bgColor,bordercolor:r.fadedText10,font:{color:(0,i.Xy)(e),family:o.bodyFont,size:t.twoSmPx}},coloraxis:{colorbar:{thickness:16,xpad:e.spacing.twoXLPx,ticklabelposition:"outside",outlinecolor:r.transparent,outlinewidth:8,len:.75,y:.5745,title:{font:{color:(0,i.Xy)(e),size:t.smPx}},tickfont:{color:(0,i.Xy)(e),size:t.twoSmPx}}},ternary:{gridcolor:(0,i.Xy)(e),bgcolor:r.bgColor,title:{font:{family:o.bodyFont,size:t.smPx}},color:(0,i.Xy)(e),aaxis:{gridcolor:(0,i.Xy)(e),linecolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}},baxis:{linecolor:(0,i.Xy)(e),gridcolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}},caxis:{linecolor:(0,i.Xy)(e),gridcolor:(0,i.Xy)(e),tickfont:{family:o.bodyFont,size:t.twoSmPx}}}};(0,n.merge)(l,c)}(l.layout.template.layout,e)}catch(o){const l=(0,p.b)(o);(0,s.H)(l)}"title"in l.layout&&(l.layout.title=(0,n.merge)(l.layout.title,{text:"<b>".concat(l.layout.title.text,"</b>")}))}var d=o(40864);const A=450;function u(l){return!!l}function g(l){let{element:e,width:o,height:c}=l;const n=e.figure,i=(0,t.u)(),p=(0,r.useCallback)((()=>{const l=JSON.parse(f(n.spec,i,e.theme)),r=l.layout.height,t=l.layout.width;return u(c)?(l.layout.width=o,l.layout.height=c):e.useContainerWidth?l.layout.width=o:(l.layout.width=t,l.layout.height=r),"streamlit"===e.theme?y(l,i):l.layout=function(l,e){const{colors:o,genericFonts:r}=e,t={font:{color:o.bodyText,family:r.bodyFont},paper_bgcolor:o.bgColor,plot_bgcolor:o.secondaryBg};return{...l,font:{...t.font,...l.font},paper_bgcolor:l.paper_bgcolor||t.paper_bgcolor,plot_bgcolor:l.plot_bgcolor||t.plot_bgcolor}}(l.layout,i),l}),[e.theme,e.useContainerWidth,n.spec,c,i,o]),[s,A]=(0,r.useState)(JSON.parse(n.config)),[g,b]=(0,r.useState)(p());(0,r.useLayoutEffect)((()=>{A(JSON.parse(n.config)),b(p())}),[e,i,c,o,n.config,p]);const{data:h,layout:m,frames:x}=g;return(0,d.jsx)(a.Z,{className:"stPlotlyChart",data:h,layout:m,config:s,frames:x},u(c)?"fullscreen":"original")}const b=(0,c.Z)((function(l){let{width:e,element:o,height:r}=l;switch(o.chart){case"url":return function(l){let{url:e,width:o,height:r}=l;const t=r||A;return(0,d.jsx)("iframe",{title:"Plotly",src:e,style:{width:o,height:t,colorScheme:"light dark"}})}({url:o.url,height:r,width:e});case"figure":return(0,d.jsx)(g,{width:e,element:o,height:r});default:throw new Error("Unrecognized PlotlyChart type: ".concat(o.chart))}}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[178],{178:(e,t,r)=>{r.r(t),r.d(t,{default:()=>c});var a=r(66845),s=r(16295),n=r(40864);const i=528;function c(e){let{element:t,width:r,endpoints:c}=e;const d=(0,a.useRef)(null),{type:l,url:o,startTime:u}=t;(0,a.useEffect)((()=>{d.current&&(d.current.currentTime=u)}),[u]),(0,a.useEffect)((()=>{const e=d.current,r=()=>{e&&(e.currentTime=t.startTime)};return e&&e.addEventListener("loadedmetadata",r),()=>{e&&e.removeEventListener("loadedmetadata",r)}}),[t]);const m=e=>{const{startTime:r}=t;return r?"".concat(e,"?start=").concat(r):e};if(l===s.nk.Type.YOUTUBE_IFRAME){const e=0!==r?.75*r:i;return(0,n.jsx)("iframe",{"data-testid":"stVideo",title:o,src:m(o),width:r,height:e,style:{colorScheme:"light dark"},frameBorder:"0",allow:"autoplay; encrypted-media",allowFullScreen:!0})}return(0,n.jsx)("video",{"data-testid":"stVideo",ref:d,controls:!0,src:c.buildMediaURL(o),className:"stVideo",style:{width:r,height:0===r?i:void 0}})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[4500],{54500:(t,e,l)=>{l.r(e),l.d(e,{default:()=>r});var s=l(90994),i=(l(66845),l(40864));function r(t){let{element:e,width:l}=t;const r=e.hasWidth?e.width:l;let n,o;e.scrolling?(n="auto",o={}):(n="no",o={overflow:"hidden"}),o.colorScheme="light dark";const c=a(e.src),d=null!=c?void 0:a(e.srcdoc);return(0,i.jsx)("iframe",{"data-testid":"stIFrame",allow:s.p,style:o,src:c,srcDoc:d,width:r,height:e.height,scrolling:n,sandbox:s.T,title:"st.iframe"})}function a(t){return null==t||""===t?void 0:t}}}]);