streamlit-nightly 1.42.3.dev20250224__py2.py3-none-any.whl → 1.42.3.dev20250225__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.
Files changed (86) hide show
  1. streamlit/elements/arrow.py +16 -8
  2. streamlit/elements/widgets/data_editor.py +12 -7
  3. streamlit/runtime/caching/hashing.py +67 -5
  4. streamlit/static/index.html +1 -1
  5. streamlit/static/static/js/{FileDownload.esm.Db6P60XC.js → FileDownload.esm.BlYgQAwd.js} +1 -1
  6. streamlit/static/static/js/{FileHelper.LHDgAkEu.js → FileHelper.Da-FUCX4.js} +1 -1
  7. streamlit/static/static/js/{FormClearHelper.BkPbs0OF.js → FormClearHelper.B4WYSqDL.js} +1 -1
  8. streamlit/static/static/js/{Hooks.CW1Ujj-E.js → Hooks.BoeFlDaA.js} +1 -1
  9. streamlit/static/static/js/{InputInstructions.CHpHVupe.js → InputInstructions.DiPa6u6x.js} +1 -1
  10. streamlit/static/static/js/{ProgressBar.CSZV-k_M.js → ProgressBar.B-iCNc1a.js} +1 -1
  11. streamlit/static/static/js/{RenderInPortalIfExists.CrI9B0Qh.js → RenderInPortalIfExists.DPgp77ia.js} +1 -1
  12. streamlit/static/static/js/{Toolbar.CfNF-56q.js → Toolbar.9G2Er6_r.js} +1 -1
  13. streamlit/static/static/js/{base-input.BBFJwxWO.js → base-input.z22leTiB.js} +3 -3
  14. streamlit/static/static/js/checkbox.DT5JbCKx.js +9 -0
  15. streamlit/static/static/js/{createSuper.rz8EjYR0.js → createSuper.9dngDO4F.js} +1 -1
  16. streamlit/static/static/js/data-grid-overlay-editor.DnBgrJEy.js +1 -0
  17. streamlit/static/static/js/{downloader.DEY2_Oao.js → downloader.BgiOz4Dy.js} +1 -1
  18. streamlit/static/static/js/{es6.Cbt8Qb0v.js → es6.C2nbxS8x.js} +2 -2
  19. streamlit/static/static/js/{iframeResizer.contentWindow.DlY1zPt7.js → iframeResizer.contentWindow.XvWZp7Dg.js} +1 -1
  20. streamlit/static/static/js/{index.BtBNIxWC.js → index.B5-iXfzx.js} +1 -1
  21. streamlit/static/static/js/{index.7HEH_7fJ.js → index.BDSGWkr0.js} +3 -3
  22. streamlit/static/static/js/{index.I2Ij_yHL.js → index.BFYGskaf.js} +1 -1
  23. streamlit/static/static/js/{index.Df3vkO_v.js → index.BNc20KTN.js} +1 -1
  24. streamlit/static/static/js/{index.D1sfL1bE.js → index.BTK3gx3H.js} +1 -1
  25. streamlit/static/static/js/{index.C41AtD-D.js → index.BdtKHTgl.js} +1 -1
  26. streamlit/static/static/js/{index.LmMDdxLh.js → index.Bgn4z-Mp.js} +1 -1
  27. streamlit/static/static/js/{index.jj20zRA4.js → index.BiPYzGZi.js} +1 -1
  28. streamlit/static/static/js/{index.D2PC_wwi.js → index.BkyYp5Em.js} +1 -1
  29. streamlit/static/static/js/{index.LypQPPkP.js → index.BxYliQ9c.js} +1 -1
  30. streamlit/static/static/js/{index.C3FZ8TOb.js → index.C5bx6jEW.js} +2 -2
  31. streamlit/static/static/js/index.CAC6FyHh.js +1 -0
  32. streamlit/static/static/js/{index.B5Q1lb1E.js → index.CBYIbEuv.js} +1 -1
  33. streamlit/static/static/js/{index.BcIDRdbw.js → index.CBoIJv6M.js} +1 -1
  34. streamlit/static/static/js/{index.InwDjRN5.js → index.CMvo7Iwl.js} +1 -1
  35. streamlit/static/static/js/{index.CUFUpykP.js → index.CrNuA-BG.js} +2 -2
  36. streamlit/static/static/js/index.D-9nQW74.js +1 -0
  37. streamlit/static/static/js/{index.DEz7mrAp.js → index.D5wciRNz.js} +1 -1
  38. streamlit/static/static/js/{index.DxvQWdtj.js → index.D9bqDCB_.js} +18 -18
  39. streamlit/static/static/js/index.DC6PJYZU.js +1 -0
  40. streamlit/static/static/js/{index.CgZ_3VRU.js → index.DMreumKF.js} +1 -1
  41. streamlit/static/static/js/{index.BFFhpOhV.js → index.DTP3exjF.js} +1 -1
  42. streamlit/static/static/js/{index.D8mp5ppE.js → index.DV46EgCO.js} +1 -1
  43. streamlit/static/static/js/{index.CjN5S59O.js → index.DZ_FHOJd.js} +1 -1
  44. streamlit/static/static/js/{index.8pg9ijwI.js → index.DcXXaGYK.js} +1 -1
  45. streamlit/static/static/js/index.DjTdTgti.js +197 -0
  46. streamlit/static/static/js/{index.Bv1JbhEf.js → index.DkwDCuk1.js} +1 -1
  47. streamlit/static/static/js/{index.RDHMaPCV.js → index.DyyHt_xV.js} +1 -1
  48. streamlit/static/static/js/{index.Bhf5i-o4.js → index.Hnms5TSS.js} +1 -1
  49. streamlit/static/static/js/{index.CUepHEom.js → index.JgS0whqe.js} +1 -1
  50. streamlit/static/static/js/{index.DPZJrrNj.js → index.T5vKsEVA.js} +1 -1
  51. streamlit/static/static/js/{index.DuUcgXrv.js → index.UrE-Phqy.js} +1 -1
  52. streamlit/static/static/js/index.bDDanN90.js +2 -0
  53. streamlit/static/static/js/{index.C9kvqGu0.js → index.exPoJHIW.js} +1 -1
  54. streamlit/static/static/js/index.pWHQEj0Q.js +1 -0
  55. streamlit/static/static/js/index.qC8qMz0q.js +3865 -0
  56. streamlit/static/static/js/{index.CIDueoC2.js → index.rECpAXqX.js} +1 -1
  57. streamlit/static/static/js/{input.QeLiGsyn.js → input.mCBQrtCY.js} +1 -1
  58. streamlit/static/static/js/{memory.0fYVo8Wx.js → memory.Te_zHgq3.js} +1 -1
  59. streamlit/static/static/js/{mergeWith.AOqADio_.js → mergeWith.Di9Yv3PE.js} +1 -1
  60. streamlit/static/static/js/number-overlay-editor.Du6B2U8c.js +9 -0
  61. streamlit/static/static/js/{possibleConstructorReturn.C4RsC1R8.js → possibleConstructorReturn.DqqPe-iu.js} +1 -1
  62. streamlit/static/static/js/{sandbox.DT2p3KTe.js → sandbox.iqWXuowq.js} +1 -1
  63. streamlit/static/static/js/{textarea.DQh9RYKV.js → textarea.DUN7d2zN.js} +1 -1
  64. streamlit/static/static/js/{timepicker.Br_cR0hi.js → timepicker.BkmEJ-b8.js} +1 -1
  65. streamlit/static/static/js/{toConsumableArray.CzYSWELu.js → toConsumableArray.D4OFzlWy.js} +1 -1
  66. streamlit/static/static/js/uniqueId.6OlKTkzK.js +1 -0
  67. streamlit/static/static/js/{useBasicWidgetState.6R32QW2v.js → useBasicWidgetState.Btr3rzhN.js} +1 -1
  68. streamlit/static/static/js/{useOnInputChange.C4OiWI1_.js → useOnInputChange.BM7LVpC-.js} +1 -1
  69. streamlit/static/static/js/{withFullScreenWrapper.BLeP_b5i.js → withFullScreenWrapper.BCTIo1o2.js} +1 -1
  70. streamlit/user_info.py +4 -12
  71. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250225.dist-info}/METADATA +1 -1
  72. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250225.dist-info}/RECORD +76 -75
  73. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250225.dist-info}/WHEEL +1 -1
  74. streamlit/static/static/js/data-grid-overlay-editor.DUagmDpG.js +0 -1
  75. streamlit/static/static/js/index.C29vTftb.js +0 -3865
  76. streamlit/static/static/js/index.CUWXxL_C.js +0 -1
  77. streamlit/static/static/js/index.C_SUbLL7.js +0 -1
  78. streamlit/static/static/js/index.CdiPATR3.js +0 -197
  79. streamlit/static/static/js/index.Con6tiNg.js +0 -1
  80. streamlit/static/static/js/index.DymllY6d.js +0 -2
  81. streamlit/static/static/js/index.G1PSqufB.js +0 -9
  82. streamlit/static/static/js/number-overlay-editor.DAvAckzz.js +0 -9
  83. streamlit/static/static/js/uniqueId.BdUnRe3-.js +0 -1
  84. {streamlit_nightly-1.42.3.dev20250224.data → streamlit_nightly-1.42.3.dev20250225.data}/scripts/streamlit.cmd +0 -0
  85. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250225.dist-info}/entry_points.txt +0 -0
  86. {streamlit_nightly-1.42.3.dev20250224.dist-info → streamlit_nightly-1.42.3.dev20250225.dist-info}/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ import{r as o,E as X,_ as q,cB as I,L as b,N as J,as as ut,n as x,y as ct,bh as dt,cr as pt,B as N,j as u,bs as ft,bF as bt,bt as mt,ba as gt,bu as ht,bp as G}from"./index.BDSGWkr0.js";import{u as yt}from"./uniqueId.6OlKTkzK.js";import{u as It}from"./FormClearHelper.B4WYSqDL.js";import{I as Tt}from"./InputInstructions.DiPa6u6x.js";import{s as wt}from"./sprintf.D7DtBTRn.js";import{I as Ct}from"./input.mCBQrtCY.js";import"./base-input.z22leTiB.js";var Q=o.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return o.createElement(X,q({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),o.createElement("path",{d:"M0 3v2h8V3H0z"}))});Q.displayName="Minus";var Y=o.forwardRef(function(t,e){var r={fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"};return o.createElement(X,q({iconAttrs:r,iconVerticalAlign:"middle",iconViewBox:"0 0 8 8"},t,{ref:e}),o.createElement("path",{d:"M3 0v3H0v2h3v3h2V5h3V3H5V0H3z"}))});Y.displayName="Plus";const vt=ut.getLogger("NumberInput");function St(t){return b(t)||t===""?void 0:t}const z=({value:t,format:e,step:r,dataType:f})=>{if(b(t))return null;let n=St(e);if(b(n)&&J(r)){const d=r.toString();f===I.DataType.FLOAT&&r!==0&&d.includes(".")&&(n=`%0.${d.split(".")[1].length}f`)}if(b(n))return t.toString();try{return wt.sprintf(n,t)}catch(d){return vt.warn(`Error in sprintf(${n}, ${t}): ${d}`),String(t)}},Vt=(t,e,r)=>b(t)?!1:t-e>=r,kt=(t,e,r)=>b(t)?!1:t+e<=r,xt=t=>(t.element.dataType===I.DataType.INT?t.widgetMgr.getIntValue(t.element):t.widgetMgr.getDoubleValue(t.element))??t.element.default??null,M=({step:t,dataType:e})=>t||(e===I.DataType.INT?1:.01),Rt=x("div",{target:"e5tuigk0"})(({theme:t})=>({display:"flex",flexDirection:"row",flexWrap:"nowrap",alignItems:"center",height:t.sizes.minElementHeight,borderWidth:t.sizes.borderWidth,borderStyle:"solid",borderColor:t.colors.widgetBorderColor??t.colors.secondaryBg,transitionDuration:"200ms",transitionProperty:"border",transitionTimingFunction:"cubic-bezier(0.2, 0.8, 0.4, 1)",borderRadius:t.radii.default,overflow:"hidden","&.focused":{borderColor:t.colors.primary},input:{MozAppearance:"textfield","&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{WebkitAppearance:"none",margin:t.spacing.none}}})),Dt=x("div",{target:"e5tuigk1"})({display:"flex",flexDirection:"row",alignSelf:"stretch"}),K=x("button",{target:"e5tuigk2"})(({theme:t})=>({margin:t.spacing.none,border:"none",height:t.sizes.full,display:"flex",alignItems:"center",width:t.sizes.numberInputControlsWidth,justifyContent:"center",color:t.colors.bodyText,transition:"color 300ms, backgroundColor 300ms",backgroundColor:t.colors.secondaryBg,"&:hover:enabled, &:focus:enabled":{color:t.colors.white,backgroundColor:t.colors.primary,transition:"none",outline:"none"},"&:active":{outline:"none",border:"none"},"&:last-of-type":{borderTopRightRadius:t.radii.default,borderBottomRightRadius:t.radii.default},"&:disabled":{cursor:"not-allowed",color:t.colors.fadedText40}})),Et=x("div",{target:"e5tuigk3"})(({theme:t,clearable:e})=>({position:"absolute",marginRight:t.spacing.twoXS,left:0,right:`calc(${t.sizes.numberInputControlsWidth} * 2 + ${e?"1em":"0em"})`})),Ft=({disabled:t,element:e,widgetMgr:r,fragmentId:f})=>{var j;const n=ct(),{dataType:d,id:C,formId:p,default:B,format:W}=e,m=e.hasMin?e.min:-1/0,g=e.hasMax?e.max:1/0,{values:[L],elementRef:Z}=dt(o.useMemo(()=>["width"],[])),[s,tt]=o.useState(M(e)),A=xt({element:e,widgetMgr:r}),[h,T]=o.useState(!1),[i,w]=o.useState(A),[H,v]=o.useState(z({value:A,...e,step:s})),[P,U]=o.useState(!1),R=o.useRef(null),$=o.useRef(yt("number_input_")),S=Vt(i,s,m),V=kt(i,s,g),O=pt({formId:p}),et=O?r.allowFormEnterToSubmit(p):h,ot=P&&L>n.breakpoints.hideWidgetDetails;o.useEffect(()=>{tt(M({step:e.step,dataType:e.dataType}))},[e.dataType,e.step]);const l=o.useCallback(({value:a,source:c})=>{var y;if(J(a)&&(m>a||a>g))(y=R.current)==null||y.reportValidity();else{const k=a??B??null;switch(d){case I.DataType.INT:r.setIntValue({id:C,formId:p},k,c,f);break;case I.DataType.FLOAT:r.setDoubleValue({id:C,formId:p},k,c,f);break;default:throw new Error("Invalid data type")}T(!1),w(k),v(z({value:k,dataType:d,format:W,step:s}))}},[m,g,R,r,f,s,d,C,p,B,W]),rt=o.useCallback(()=>{h&&l({value:i,source:{fromUi:!0}}),U(!1)},[h,i,l]),nt=o.useCallback(()=>{U(!0)},[]),_=o.useCallback(()=>{const{value:a}=e;e.setValue=!1,w(a??null),v(z({value:a??null,...e,step:s})),l({value:a??null,source:{fromUi:!1}})},[e,s,l]);o.useEffect(()=>{e.setValue?_():l({value:i,source:{fromUi:!1}})},[]),e.setValue&&_();const D=b(e.default)&&!t,at=o.useCallback(()=>{const a=e.default??null;w(a),l({value:a,source:{fromUi:!0}})},[e]);It({element:e,widgetMgr:r,onFormCleared:at});const st=a=>{const{value:c}=a.target;if(c==="")T(!0),w(null),v(null);else{let y;e.dataType===I.DataType.INT?y=parseInt(c,10):y=parseFloat(c),T(!0),w(y),v(c)}},E=o.useCallback(()=>{V&&(T(!0),l({value:(i??m)+s,source:{fromUi:!0}}))},[i,m,s,V]),F=o.useCallback(()=>{S&&(T(!0),l({value:(i??g)-s,source:{fromUi:!0}}))},[i,g,s,S]),it=o.useCallback(a=>{const{key:c}=a;switch(c){case"ArrowUp":a.preventDefault(),E();break;case"ArrowDown":a.preventDefault(),F();break}},[E,F]),lt=o.useCallback(a=>{a.key==="Enter"&&(h&&l({value:i,source:{fromUi:!0}}),r.allowFormEnterToSubmit(p)&&r.submitForm(p,f))},[h,i,l,r,p,f]);return N("div",{className:"stNumberInput","data-testid":"stNumberInput",ref:Z,children:[u(ht,{label:e.label,disabled:t,labelVisibility:ft((j=e.labelVisibility)==null?void 0:j.value),htmlFor:$.current,children:e.help&&u(bt,{children:u(mt,{content:e.help,placement:gt.TOP_RIGHT})})}),N(Rt,{className:P?"focused":"","data-testid":"stNumberInputContainer",children:[u(Ct,{type:"number",inputRef:R,value:H??"",placeholder:e.placeholder,onBlur:rt,onFocus:nt,onChange:st,onKeyPress:lt,onKeyDown:it,clearable:D,clearOnEscape:D,disabled:t,"aria-label":e.label,id:$.current,overrides:{ClearIconContainer:{style:{padding:0}},ClearIcon:{props:{overrides:{Svg:{style:{color:n.colors.darkGray,padding:n.spacing.threeXS,height:n.sizes.clearIconSize,width:n.sizes.clearIconSize,":hover":{fill:n.colors.bodyText}}}}}},Input:{props:{"data-testid":"stNumberInputField",step:s,min:m,max:g,type:"number",inputMode:""},style:{lineHeight:n.lineHeights.inputWidget,paddingRight:n.spacing.sm,paddingLeft:n.spacing.sm,paddingBottom:n.spacing.sm,paddingTop:n.spacing.sm}},InputContainer:{style:()=>({borderTopRightRadius:0,borderBottomRightRadius:0})},Root:{style:{borderTopRightRadius:0,borderBottomRightRadius:0,borderTopLeftRadius:0,borderBottomLeftRadius:0,borderLeftWidth:0,borderRightWidth:0,borderTopWidth:0,borderBottomWidth:0,paddingRight:0}}}}),L>n.breakpoints.hideNumberInputControls&&N(Dt,{children:[u(K,{"data-testid":"stNumberInputStepDown",onClick:F,disabled:!S||t,tabIndex:-1,children:u(G,{content:Q,size:"xs",color:S?"inherit":n.colors.disabled})}),u(K,{"data-testid":"stNumberInputStepUp",onClick:E,disabled:!V||t,tabIndex:-1,children:u(G,{content:Y,size:"xs",color:V?"inherit":n.colors.disabled})})]})]}),ot&&u(Et,{clearable:D,children:u(Tt,{dirty:h,value:H??"",inForm:O,allowEnterToSubmit:et})})]})},Pt=o.memo(Ft);export{Pt as default};
@@ -1 +1 @@
1
- import{n as P,r as s,bh as U,y as k,cr as g,B,j as u,bs as H,bF as L,bt as D,ba as O,bu as j,cs as w}from"./index.7HEH_7fJ.js";import{u as _}from"./uniqueId.BdUnRe3-.js";import{u as K,a as $,b as q}from"./useOnInputChange.C4OiWI1_.js";import{a as A}from"./useBasicWidgetState.6R32QW2v.js";import{I as G}from"./InputInstructions.CHpHVupe.js";import{I as N}from"./input.QeLiGsyn.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.BkPbs0OF.js";import"./base-input.BBFJwxWO.js";const J=P("div",{target:"e1o1zy6o0"})("position:relative;");function M({disabled:e,element:t,widgetMgr:a,fragmentId:n}){var f;const[r,l]=s.useState(I(a,t)??null),{values:[S],elementRef:y}=U(s.useMemo(()=>["width"],[])),[i,d]=s.useState(!1),W=s.useCallback(()=>{l(t.default??null),d(!0)},[t.default]),[T,c]=A({getStateFromWidgetMgr:I,getDefaultStateFromProto:Q,getCurrStateFromProto:X,updateWidgetMgrState:Y,element:t,widgetMgr:a,fragmentId:n,onFormCleared:W});K(T,r,l,i);const[x,m]=s.useState(!1),o=k(),[h]=s.useState(()=>_("text_input_")),{placeholder:C,formId:b}=t,p=s.useCallback(()=>{d(!1),c({value:r,fromUi:!0})},[r,c]),F=g({formId:b})?a.allowFormEnterToSubmit(b):i,V=x&&S>o.breakpoints.hideWidgetDetails,v=s.useCallback(()=>{i&&p(),m(!1)},[i,p]),R=s.useCallback(()=>{m(!0)},[]),z=$({formId:t.formId,maxChars:t.maxChars,setDirty:d,setUiValue:l,setValueWithSource:c}),E=q(t.formId,p,i,a,n);return B(J,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[u(j,{label:t.label,disabled:e,labelVisibility:H((f=t.labelVisibility)==null?void 0:f.value),htmlFor:h,children:t.help&&u(L,{children:u(D,{content:t.help,placement:O.TOP_RIGHT})})}),u(N,{value:r??"",placeholder:C,onBlur:v,onFocus:R,onChange:z,onKeyPress:E,"aria-label":t.label,disabled:e,id:h,type:Z(t),autoComplete:t.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:o.lineHeights.inputWidget,paddingRight:o.spacing.sm,paddingLeft:o.spacing.sm,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:o.sizes.minElementHeight,borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth}}}}),V&&u(G,{dirty:i,value:r??"",maxLength:t.maxChars,inForm:g({formId:t.formId}),allowEnterToSubmit:F})]})}function I(e,t){return e.getStringValue(t)??null}function Q(e){return e.default??null}function X(e){return e.value??null}function Y(e,t,a,n){t.setStringValue(e,a.value,{fromUi:a.fromUi},n)}function Z(e){return e.type===w.Type.PASSWORD?"password":"text"}const lt=s.memo(M);export{lt as default};
1
+ import{n as P,r as s,bh as U,y as k,cr as g,B,j as u,bs as H,bF as L,bt as D,ba as O,bu as j,cs as w}from"./index.BDSGWkr0.js";import{u as _}from"./uniqueId.6OlKTkzK.js";import{u as K,a as $,b as q}from"./useOnInputChange.BM7LVpC-.js";import{a as A}from"./useBasicWidgetState.Btr3rzhN.js";import{I as G}from"./InputInstructions.DiPa6u6x.js";import{I as N}from"./input.mCBQrtCY.js";import"./inputUtils.CQWz5UKz.js";import"./FormClearHelper.B4WYSqDL.js";import"./base-input.z22leTiB.js";const J=P("div",{target:"e1o1zy6o0"})("position:relative;");function M({disabled:e,element:t,widgetMgr:a,fragmentId:n}){var f;const[r,l]=s.useState(I(a,t)??null),{values:[S],elementRef:y}=U(s.useMemo(()=>["width"],[])),[i,d]=s.useState(!1),W=s.useCallback(()=>{l(t.default??null),d(!0)},[t.default]),[T,c]=A({getStateFromWidgetMgr:I,getDefaultStateFromProto:Q,getCurrStateFromProto:X,updateWidgetMgrState:Y,element:t,widgetMgr:a,fragmentId:n,onFormCleared:W});K(T,r,l,i);const[x,m]=s.useState(!1),o=k(),[h]=s.useState(()=>_("text_input_")),{placeholder:C,formId:b}=t,p=s.useCallback(()=>{d(!1),c({value:r,fromUi:!0})},[r,c]),F=g({formId:b})?a.allowFormEnterToSubmit(b):i,V=x&&S>o.breakpoints.hideWidgetDetails,v=s.useCallback(()=>{i&&p(),m(!1)},[i,p]),R=s.useCallback(()=>{m(!0)},[]),z=$({formId:t.formId,maxChars:t.maxChars,setDirty:d,setUiValue:l,setValueWithSource:c}),E=q(t.formId,p,i,a,n);return B(J,{className:"stTextInput","data-testid":"stTextInput",ref:y,children:[u(j,{label:t.label,disabled:e,labelVisibility:H((f=t.labelVisibility)==null?void 0:f.value),htmlFor:h,children:t.help&&u(L,{children:u(D,{content:t.help,placement:O.TOP_RIGHT})})}),u(N,{value:r??"",placeholder:C,onBlur:v,onFocus:R,onChange:z,onKeyPress:E,"aria-label":t.label,disabled:e,id:h,type:Z(t),autoComplete:t.autocomplete,overrides:{Input:{style:{minWidth:0,"::placeholder":{opacity:"0.7"},lineHeight:o.lineHeights.inputWidget,paddingRight:o.spacing.sm,paddingLeft:o.spacing.sm,paddingBottom:o.spacing.sm,paddingTop:o.spacing.sm}},Root:{props:{"data-testid":"stTextInputRootElement"},style:{height:o.sizes.minElementHeight,borderLeftWidth:o.sizes.borderWidth,borderRightWidth:o.sizes.borderWidth,borderTopWidth:o.sizes.borderWidth,borderBottomWidth:o.sizes.borderWidth}}}}),V&&u(G,{dirty:i,value:r??"",maxLength:t.maxChars,inForm:g({formId:t.formId}),allowEnterToSubmit:F})]})}function I(e,t){return e.getStringValue(t)??null}function Q(e){return e.default??null}function X(e){return e.value??null}function Y(e,t,a,n){t.setStringValue(e,a.value,{fromUi:a.fromUi},n)}function Z(e){return e.type===w.Type.PASSWORD?"password":"text"}const lt=s.memo(M);export{lt as default};
@@ -1 +1 @@
1
- import{r as u,R as f,aD as m,b5 as i,j as t,b6 as b,bq as B,b4 as p,b7 as D}from"./index.7HEH_7fJ.js";import{c as w}from"./createDownloadLinkElement.DZMwyjvU.js";function h(n,o,e){return w({enforceDownloadInNewTab:e,url:n.buildMediaURL(o),filename:""})}function R(n){const{disabled:o,element:e,widgetMgr:l,endpoints:s,fragmentId:r}=n,{libConfig:{enforceDownloadInNewTab:d=!1}}=f.useContext(m);let a=i.SECONDARY;e.type==="primary"?a=i.PRIMARY:e.type==="tertiary"&&(a=i.TERTIARY);const c=()=>{e.ignoreRerun||l.setTriggerValue(e,{fromUi:!0},r),h(s,e.url,d).click()};return t("div",{className:"stDownloadButton","data-testid":"stDownloadButton",children:t(b,{help:e.help,children:t(B,{kind:a,size:p.SMALL,disabled:o,onClick:c,fluidWidth:e.useContainerWidth||!!e.help,children:t(D,{icon:e.icon,label:e.label})})})})}const L=u.memo(R);export{L as default};
1
+ import{r as u,R as f,aD as m,b5 as i,j as t,b6 as b,bq as B,b4 as p,b7 as D}from"./index.BDSGWkr0.js";import{c as w}from"./createDownloadLinkElement.DZMwyjvU.js";function h(n,o,e){return w({enforceDownloadInNewTab:e,url:n.buildMediaURL(o),filename:""})}function R(n){const{disabled:o,element:e,widgetMgr:l,endpoints:s,fragmentId:r}=n,{libConfig:{enforceDownloadInNewTab:d=!1}}=f.useContext(m);let a=i.SECONDARY;e.type==="primary"?a=i.PRIMARY:e.type==="tertiary"&&(a=i.TERTIARY);const c=()=>{e.ignoreRerun||l.setTriggerValue(e,{fromUi:!0},r),h(s,e.url,d).click()};return t("div",{className:"stDownloadButton","data-testid":"stDownloadButton",children:t(b,{help:e.help,children:t(B,{kind:a,size:p.SMALL,disabled:o,onClick:c,fluidWidth:e.useContainerWidth||!!e.help,children:t(D,{icon:e.icon,label:e.label})})})})}const L=u.memo(R);export{L as default};
@@ -1,4 +1,4 @@
1
- import{ax as xP,n as wP,G as Qe,aF as EP,aG as SE,aH as SP,aI as _P,aJ as ga,aK as Td,L as $P,y as AP,r as wt,K as nb,ac as kP,an as CP,aj as _E,ak as $E,V as FP,aL as TP,M as AE,aA as kE,ar as Zk,B as MP,j as lm,aM as OP}from"./index.7HEH_7fJ.js";import{S as CE,T as RP}from"./Toolbar.CfNF-56q.js";import{u as eC,E as tC,w as DP}from"./withFullScreenWrapper.BLeP_b5i.js";import{m as NP}from"./mergeWith.AOqADio_.js";import{a as tc,n as LP,b as PP,c as rg,t as Os,p as zP,d as IP,e as BP,i as jo,f as og,g as FE,l as $u,h as ib,j as sg,k as TE,m as ho,o as Ha,q as UP,r as qo,s as jP,u as qP,v as WP,w as HP}from"./threshold.DjX0wlsa.js";import{f as GP,a as X0,b as nC,c as VP,R as ag,r as iC,d as rb,e as ob,C as sb,g as ME,h as OE,i as ug,j as K0,n as Bt,k as Tc,l as YP,m as XP,o as KP,p as JP,q as QP,s as ZP,t as ez,u as tz,v as nz,w as iz,x as rz,y as Md}from"./value.CgPGBV_l.js";import{P as oz,i as sz,a as az,b as uz,p as ab,T as lz,n as cz,t as fz,d as dz}from"./timer.CAwTRJ_g.js";import{u as hz}from"./FormClearHelper.BkPbs0OF.js";const gz=e=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,backgroundColor:xP(e.colors.bgColor,.05),fontSize:e.fontSizes.twoSm,boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px",maxWidth:e.sizes.maxChartTooltipWidth,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.default,zIndex:e.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:e.spacing.none,marginBottom:e.spacing.sm,fontSize:e.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:e.spacing.threeXS,paddingBottom:e.spacing.threeXS},"td.key":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.4)`,textAlign:"right",color:e.colors.fadedText60,whiteSpace:"nowrap",paddingRight:e.spacing.twoXS},"td.value":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),pz=wP("div",{target:"e1xm3y80"})(({theme:e,useContainerWidth:t,isFullScreen:n})=>({width:t||n?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,zIndex:e.zIndices.popup,top:`calc(${e.iconSizes.md} + 2 * ${e.spacing.xs} + ${e.spacing.xs})`,right:0,backgroundColor:e.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`${e.sizes.borderWidth} solid ${e.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:e.radii.default,a:{fontFamily:e.genericFonts.bodyFont,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,margin:0,padding:`${e.spacing.twoXS} ${e.spacing.twoXL}`,color:e.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:e.colors.secondaryBg,color:e.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:e.spacing.xs,height:"auto",zIndex:e.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:e.radii.default,color:e.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:e.colors.bodyText,opacity:"1 !important",background:e.colors.darkenedBgMix25},svg:{width:e.iconSizes.md,height:e.iconSizes.md}}}}));function RE(e,t){const n={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:Qe(t.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.md),titleColor:ga(t),titleFontStyle:"normal",labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),labelFontStyle:"normal"},axis:{labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.sm),titleColor:ga(t),titleFontStyle:"normal",ticks:!1,gridColor:Td(t),domain:!1,domainWidth:1,domainColor:Td(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Qe(t.spacing.lg),labelPadding:Qe(t.spacing.lg),labelSeparation:Qe(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Qe(t.fontSizes.sm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),titleFontSize:Qe(t.fontSizes.sm),titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:ga(t),titlePadding:5,labelPadding:Qe(t.spacing.lg),columnPadding:Qe(t.spacing.sm),rowPadding:Qe(t.spacing.twoXS),padding:7,symbolStrokeWidth:Qe(t.spacing.twoXS)},range:{category:_P(t),diverging:SP(t),ramp:SE(t),heatmap:SE(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:{content:"encoding"},color:EP(t)},bar:{binSpacing:Qe(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?NP({},n,e,(i,r)=>Array.isArray(r)?r:void 0):n}function mz(e,t){const{colors:n,fontSizes:i,genericFonts:r}=t,o={labelFont:r.bodyFont,titleFont:r.bodyFont,labelFontSize:Qe(i.twoSm),titleFontSize:Qe(i.twoSm)},s={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Td(t),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Td(t),continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},mark:{tooltip:!0}};return e?$P({},s,e):s}const yz=20;function bz(e){"params"in e&&"encoding"in e&&e.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&nb(t.select.encodings)&&(t.select.encodings=Object.keys(e.encoding)))})}const vz=(e,t,n,i,r,o,s,a)=>{var l,c;const u=JSON.parse(e);if(n==="streamlit"?u.config=RE(u.config,r):((c=(l=u.usermeta)==null?void 0:l.embedOptions)==null?void 0:c.theme)==="streamlit"?(u.config=RE(u.config,r),u.usermeta.embedOptions.theme=void 0):u.config=mz(u.config,r),o?(u.width=s,u.height=a,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})):t&&(u.width=s,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})),u.padding||(u.padding={}),nb(u.padding.bottom)&&(u.padding.bottom=yz),u.datasets)throw new Error("Datasets should not be passed as part of the spec");return i.length>0&&bz(u),u},xz=e=>{const t=AP(),{expanded:n,width:i,height:r}=eC(tC),{id:o,formId:s,spec:a,data:u,datasets:l,useContainerWidth:c,vegaLiteTheme:f,selectionMode:d}=e,h=wt.useMemo(()=>d,[JSON.stringify(d)]),g=wt.useMemo(()=>vz(a,c,f,h,t,n,i||0,r),[a,c,f,h,t,n,i,r]);return{id:o,formId:s,vegaLiteTheme:f,spec:g,selectionMode:h,data:u,datasets:l,useContainerWidth:c}};function $n(e,t,n){return e.fields=t||[],e.fname=n,e}function Je(e){return e==null?null:e.fname}function qt(e){return e==null?null:e.fields}function rC(e){return e.length===1?wz(e[0]):Ez(e)}const wz=e=>function(t){return t[e]},Ez=e=>{const t=e.length;return function(n){for(let i=0;i<t;++i)n=n[e[i]];return n}};function N(e){throw Error(e)}function ar(e){const t=[],n=e.length;let i=null,r=0,o="",s,a,u;e=e+"";function l(){t.push(o+e.substring(s,a)),o="",s=a+1}for(s=a=0;a<n;++a)if(u=e[a],u==="\\")o+=e.substring(s,a++),s=a;else if(u===i)l(),i=null,r=-1;else{if(i)continue;s===r&&u==='"'||s===r&&u==="'"?(s=a+1,i=u):u==="."&&!r?a>s?l():s=a+1:u==="["?(a>s&&l(),r=s=a+1):u==="]"&&(r||N("Access path missing open bracket: "+e),r>0&&l(),r=0,s=a+1)}return r&&N("Access path missing closing bracket: "+e),i&&N("Access path missing closing quote: "+e),a>s&&(a++,l()),t}function Qn(e,t,n){const i=ar(e);return e=i.length===1?i[0]:e,$n((n&&n.get||rC)(i),[e],t||e)}const Mc=Qn("id"),Vt=$n(e=>e,[],"identity"),fo=$n(()=>0,[],"zero"),Au=$n(()=>1,[],"one"),Pn=$n(()=>!0,[],"true"),io=$n(()=>!1,[],"false");function Sz(e,t,n){const i=[t].concat([].slice.call(n));console[e].apply(console,i)}const oC=0,ub=1,lb=2,sC=3,aC=4;function cb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sz,i=e||oC;return{level(r){return arguments.length?(i=+r,this):i},error(){return i>=ub&&n(t||"error","ERROR",arguments),this},warn(){return i>=lb&&n(t||"warn","WARN",arguments),this},info(){return i>=sC&&n(t||"log","INFO",arguments),this},debug(){return i>=aC&&n(t||"log","DEBUG",arguments),this}}}var P=Array.isArray;function Y(e){return e===Object(e)}const DE=e=>e!=="__proto__";function ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((i,r)=>{for(const o in r)if(o==="signals")i.signals=_z(i.signals,r.signals);else{const s=o==="legend"?{layout:1}:o==="style"?!0:null;Cu(i,o,r[o],s)}return i},{})}function Cu(e,t,n,i){if(!DE(t))return;let r,o;if(Y(n)&&!P(n)){o=Y(e[t])?e[t]:e[t]={};for(r in n)i&&(i===!0||i[r])?Cu(o,r,n[r]):DE(r)&&(o[r]=n[r])}else e[t]=n}function _z(e,t){if(e==null)return t;const n={},i=[];function r(o){n[o.name]||(n[o.name]=1,i.push(o))}return t.forEach(r),e.forEach(r),i}function Ee(e){return e[e.length-1]}function Ut(e){return e==null||e===""?null:+e}const uC=e=>t=>e*Math.exp(t),lC=e=>t=>Math.log(e*t),cC=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e)),fC=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e,Od=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function lg(e,t,n,i){const r=n(e[0]),o=n(Ee(e)),s=(o-r)*t;return[i(r-s),i(o-s)]}function dC(e,t){return lg(e,t,Ut,Vt)}function hC(e,t){var n=Math.sign(e[0]);return lg(e,t,lC(n),uC(n))}function gC(e,t,n){return lg(e,t,Od(n),Od(1/n))}function pC(e,t,n){return lg(e,t,cC(n),fC(n))}function cg(e,t,n,i,r){const o=i(e[0]),s=i(Ee(e)),a=t!=null?i(t):(o+s)/2;return[r(a+(o-a)*n),r(a+(s-a)*n)]}function fb(e,t,n){return cg(e,t,n,Ut,Vt)}function db(e,t,n){const i=Math.sign(e[0]);return cg(e,t,n,lC(i),uC(i))}function Rd(e,t,n,i){return cg(e,t,n,Od(i),Od(1/i))}function hb(e,t,n,i){return cg(e,t,n,cC(i),fC(i))}function mC(e){return 1+~~(new Date(e).getMonth()/3)}function yC(e){return 1+~~(new Date(e).getUTCMonth()/3)}function X(e){return e!=null?P(e)?e:[e]:[]}function bC(e,t,n){let i=e[0],r=e[1],o;return r<i&&(o=r,r=i,i=o),o=r-i,o>=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-o),i+o]}function ge(e){return typeof e=="function"}const $z="descending";function gb(e,t,n){n=n||{},t=X(t)||[];const i=[],r=[],o={},s=n.comparator||Az;return X(e).forEach((a,u)=>{a!=null&&(i.push(t[u]===$z?-1:1),r.push(a=ge(a)?a:Qn(a,null,n)),(qt(a)||[]).forEach(l=>o[l]=1))}),r.length===0?null:$n(s(r,i),Object.keys(o))}const fg=(e,t)=>(e<t||e==null)&&t!=null?-1:(e>t||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,(e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0),Az=(e,t)=>e.length===1?kz(e[0],t[0]):Cz(e,t,e.length),kz=(e,t)=>function(n,i){return fg(e(n),e(i))*t},Cz=(e,t,n)=>(t.push(0),function(i,r){let o,s=0,a=-1;for(;s===0&&++a<n;)o=e[a],s=fg(o(i),o(r));return s*t[a]});function Yt(e){return ge(e)?e:()=>e}function pb(e,t){let n;return i=>{n&&clearTimeout(n),n=setTimeout(()=>(t(i),n=null),e)}}function he(e){for(let t,n,i=1,r=arguments.length;i<r;++i){t=arguments[i];for(n in t)e[n]=t[n]}return e}function Qi(e,t){let n=0,i,r,o,s;if(e&&(i=e.length))if(t==null){for(r=e[n];n<i&&(r==null||r!==r);r=e[++n]);for(o=s=r;n<i;++n)r=e[n],r!=null&&(r<o&&(o=r),r>s&&(s=r))}else{for(r=t(e[n]);n<i&&(r==null||r!==r);r=t(e[++n]));for(o=s=r;n<i;++n)r=t(e[n]),r!=null&&(r<o&&(o=r),r>s&&(s=r))}return[o,s]}function vC(e,t){const n=e.length;let i=-1,r,o,s,a,u;if(t==null){for(;++i<n;)if(o=e[i],o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=e[i],o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}else{for(;++i<n;)if(o=t(e[i],i,e),o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=t(e[i],i,e),o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}return[a,u]}const Fz=Object.prototype.hasOwnProperty;function J(e,t){return Fz.call(e,t)}const Ef={};function Fu(e){let t={},n;function i(o){return J(t,o)&&t[o]!==Ef}const r={size:0,empty:0,object:t,has:i,get(o){return i(o)?t[o]:void 0},set(o,s){return i(o)||(++r.size,t[o]===Ef&&--r.empty),t[o]=s,this},delete(o){return i(o)&&(--r.size,++r.empty,t[o]=Ef),this},clear(){r.size=r.empty=0,r.object=t={}},test(o){return arguments.length?(n=o,r):n},clean(){const o={};let s=0;for(const a in t){const u=t[a];u!==Ef&&(!n||!n(u))&&(o[a]=u,++s)}r.size=s,r.empty=0,r.object=t=o}};return e&&Object.keys(e).forEach(o=>{r.set(o,e[o])}),r}function xC(e,t,n,i,r,o){if(!n&&n!==0)return o;const s=+n;let a=e[0],u=Ee(e),l;u<a&&(l=a,a=u,u=l),l=Math.abs(t-a);const c=Math.abs(u-t);return l<c&&l<=s?i:c<=s?r:o}function G(e,t,n){const i=e.prototype=Object.create(t.prototype);return Object.defineProperty(i,"constructor",{value:e,writable:!0,enumerable:!0,configurable:!0}),he(i,n)}function Fa(e,t,n,i){let r=t[0],o=t[t.length-1],s;return r>o&&(s=r,r=o,o=s),n=n===void 0||n,i=i===void 0||i,(n?r<=e:r<e)&&(i?e<=o:e<o)}function Wo(e){return typeof e=="boolean"}function So(e){return Object.prototype.toString.call(e)==="[object Date]"}function wC(e){return e&&ge(e[Symbol.iterator])}function $e(e){return typeof e=="number"}function EC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function K(e){return typeof e=="string"}function mb(e,t,n){e&&(e=t?X(e).map(a=>a.replace(/\\(.)/g,"$1")):X(e));const i=e&&e.length,r=n&&n.get||rC,o=a=>r(t?[a]:ar(a));let s;if(!i)s=function(){return""};else if(i===1){const a=o(e[0]);s=function(u){return""+a(u)}}else{const a=e.map(o);s=function(u){let l=""+a[0](u),c=0;for(;++c<i;)l+="|"+a[c](u);return l}}return $n(s,e,"key")}function SC(e,t){const n=e[0],i=Ee(e),r=+t;return r?r===1?i:n+r*(i-n):n}const Tz=1e4;function _C(e){e=+e||Tz;let t,n,i;const r=()=>{t={},n={},i=0},o=(s,a)=>(++i>e&&(n=t,t={},i=1),t[s]=a);return r(),{clear:r,has:s=>J(t,s)||J(n,s),get:s=>J(t,s)?t[s]:J(n,s)?o(s,n[s]):void 0,set:(s,a)=>J(t,s)?t[s]=a:o(s,a)}}function $C(e,t,n,i){const r=t.length,o=n.length;if(!o)return t;if(!r)return n;const s=i||new t.constructor(r+o);let a=0,u=0,l=0;for(;a<r&&u<o;++l)s[l]=e(t[a],n[u])>0?n[u++]:t[a++];for(;a<r;++a,++l)s[l]=t[a];for(;u<o;++u,++l)s[l]=n[u];return s}function xl(e,t){let n="";for(;--t>=0;)n+=e;return n}function AC(e,t,n,i){const r=n||" ",o=e+"",s=t-o.length;return s<=0?o:i==="left"?xl(r,s)+o:i==="center"?xl(r,~~(s/2))+o+xl(r,Math.ceil(s/2)):o+xl(r,s)}function Oc(e){return e&&Ee(e)-e[0]||0}function H(e){return P(e)?"["+e.map(H)+"]":Y(e)||K(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function yb(e){return e==null||e===""?null:!e||e==="false"||e==="0"?!1:!!e}const Mz=e=>$e(e)||So(e)?e:Date.parse(e);function bb(e,t){return t=t||Mz,e==null||e===""?null:t(e)}function vb(e){return e==null||e===""?null:e+""}function xi(e){const t={},n=e.length;for(let i=0;i<n;++i)t[e[i]]=!0;return t}function kC(e,t,n,i){const r=i??"…",o=e+"",s=o.length,a=Math.max(0,t-r.length);return s<=t?o:n==="left"?r+o.slice(s-a):n==="center"?o.slice(0,Math.ceil(a/2))+r+o.slice(s-~~(a/2)):o.slice(0,a)+r}function so(e,t,n){if(e)if(t){const i=e.length;for(let r=0;r<i;++r){const o=t(e[r]);o&&n(o,r,e)}}else e.forEach(n)}var NE={},cm={},fm=34,Ku=10,dm=13;function CC(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function Oz(e,t){var n=CC(e);return function(i,r){return t(n(i),r,e)}}function LE(e){var t=Object.create(null),n=[];return e.forEach(function(i){for(var r in i)r in t||n.push(t[r]=r)}),n}function hn(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function Rz(e){return e<0?"-"+hn(-e,6):e>9999?"+"+hn(e,6):hn(e,4)}function Dz(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),r=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":Rz(e.getUTCFullYear())+"-"+hn(e.getUTCMonth()+1,2)+"-"+hn(e.getUTCDate(),2)+(r?"T"+hn(t,2)+":"+hn(n,2)+":"+hn(i,2)+"."+hn(r,3)+"Z":i?"T"+hn(t,2)+":"+hn(n,2)+":"+hn(i,2)+"Z":n||t?"T"+hn(t,2)+":"+hn(n,2)+"Z":"")}function Nz(e){var t=new RegExp('["'+e+`
1
+ import{I as xP,n as wP,G as Qe,aF as EP,aG as SE,aH as SP,aI as _P,aJ as ga,aK as Td,M as $P,y as AP,r as wt,L as nb,ad as kP,ao as CP,ak as _E,al as $E,W as FP,aL as TP,N as AE,aA as kE,as as Zk,B as MP,j as lm,aM as OP}from"./index.BDSGWkr0.js";import{S as CE,T as RP}from"./Toolbar.9G2Er6_r.js";import{u as eC,E as tC,w as DP}from"./withFullScreenWrapper.BCTIo1o2.js";import{m as NP}from"./mergeWith.Di9Yv3PE.js";import{a as tc,n as LP,b as PP,c as rg,t as Os,p as zP,d as IP,e as BP,i as jo,f as og,g as FE,l as $u,h as ib,j as sg,k as TE,m as ho,o as Ha,q as UP,r as qo,s as jP,u as qP,v as WP,w as HP}from"./threshold.DjX0wlsa.js";import{f as GP,a as X0,b as nC,c as VP,R as ag,r as iC,d as rb,e as ob,C as sb,g as ME,h as OE,i as ug,j as K0,n as Bt,k as Tc,l as YP,m as XP,o as KP,p as JP,q as QP,s as ZP,t as ez,u as tz,v as nz,w as iz,x as rz,y as Md}from"./value.CgPGBV_l.js";import{P as oz,i as sz,a as az,b as uz,p as ab,T as lz,n as cz,t as fz,d as dz}from"./timer.CAwTRJ_g.js";import{u as hz}from"./FormClearHelper.B4WYSqDL.js";const gz=e=>({"#vg-tooltip-element":{visibility:"hidden",position:"fixed",fontFamily:e.genericFonts.bodyFont,color:e.colors.bodyText,border:`${e.sizes.borderWidth} solid ${e.colors.borderColor}`,backgroundColor:xP(e.colors.bgColor,.05),fontSize:e.fontSizes.twoSm,boxShadow:"rgb(0 0 0 / 16%) 0px 1px 4px",maxWidth:e.sizes.maxChartTooltipWidth,padding:`${e.spacing.xs} ${e.spacing.md}`,borderRadius:e.radii.default,zIndex:e.zIndices.popup,"&.visible":{visibility:"visible"},h2:{marginTop:e.spacing.none,marginBottom:e.spacing.sm,fontSize:e.fontSizes.sm},td:{border:"none"},table:{borderSpacing:0,tr:{border:"none",td:{overflow:"hidden",textOverflow:"ellipsis",paddingTop:e.spacing.threeXS,paddingBottom:e.spacing.threeXS},"td.key":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.4)`,textAlign:"right",color:e.colors.fadedText60,whiteSpace:"nowrap",paddingRight:e.spacing.twoXS},"td.value":{maxWidth:`calc((${e.sizes.maxChartTooltipWidth} - 2 * ${e.spacing.md}) * 0.6)`,textAlign:"left",display:"-webkit-box",WebkitLineClamp:"5",WebkitBoxOrient:"vertical",lineClamp:"5",wordWrap:"break-word"}}}}}),pz=wP("div",{target:"e1xm3y80"})(({theme:e,useContainerWidth:t,isFullScreen:n})=>({width:t||n?"100%":"auto",height:n?"100%":"auto","&.vega-embed":{position:"relative",display:"inline-block",boxSizing:"border-box","details:not([open]) > :not(summary)":{display:"none !important"},"details[open] summary":{opacity:.7},"&:hover summary, .vega-embed:focus summary":{background:"transparent"},"&:hover summary, &:focus-within summary":{opacity:"1 !important",transition:"opacity 0.2s ease"},"&.has-actions":{paddingRight:0},".vega-actions":{position:"absolute",display:"flex",flexDirection:"column",paddingBottom:e.spacing.sm,paddingTop:e.spacing.sm,zIndex:e.zIndices.popup,top:`calc(${e.iconSizes.md} + 2 * ${e.spacing.xs} + ${e.spacing.xs})`,right:0,backgroundColor:e.colors.bgColor,boxShadow:"rgb(0 0 0 / 16%) 0px 4px 16px",border:`${e.sizes.borderWidth} solid ${e.colors.fadedText10}`,animationDuration:"0.15s",animationName:"scale-in",animationTimingFunction:"cubic-bezier(0.2, 0, 0.13, 1.5)",textAlign:"left",borderRadius:e.radii.default,a:{fontFamily:e.genericFonts.bodyFont,fontWeight:e.fontWeights.normal,fontSize:e.fontSizes.md,margin:0,padding:`${e.spacing.twoXS} ${e.spacing.twoXL}`,color:e.colors.bodyText,whiteSpace:"nowrap",textDecoration:"none"},"a:hover, a:focus":{backgroundColor:e.colors.secondaryBg,color:e.colors.bodyText},":before":{content:"none"},":after":{content:"none"}},"@keyframes scale-in":{from:{opacity:0,transform:"scale(0.6)"},to:{opacity:1,transform:"scale(1)"}},".chart-wrapper":{"&.fit-x":{width:"100%"},"&.fit-y":{height:"100%"}},summary:{position:"absolute",top:0,right:0,opacity:0,listStyle:"none",cursor:"pointer",display:"list-item",padding:e.spacing.xs,height:"auto",zIndex:e.zIndices.menuButton,border:"none",boxShadow:"none",borderRadius:e.radii.default,color:e.colors.fadedText10,backgroundColor:"transparent",transition:"opacity 300ms 150ms,transform 300ms 150ms",lineHeight:0,"&::-webkit-details-marker":{display:"none"},"&:active, &:focus-visible, &:hover":{border:"none",boxShadow:"none",color:e.colors.bodyText,opacity:"1 !important",background:e.colors.darkenedBgMix25},svg:{width:e.iconSizes.md,height:e.iconSizes.md}}}}));function RE(e,t){const n={font:t.genericFonts.bodyFont,background:t.colors.bgColor,fieldTitle:"verbal",autosize:{type:"fit",contains:"padding"},title:{align:"left",anchor:"start",color:t.colors.headingColor,titleFontStyle:"normal",fontWeight:t.fontWeights.bold,fontSize:Qe(t.fontSizes.md),orient:"top",offset:26},header:{titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.md),titleColor:ga(t),titleFontStyle:"normal",labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),labelFontStyle:"normal"},axis:{labelFontSize:Qe(t.fontSizes.twoSm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),labelFontStyle:"normal",titleFontWeight:t.fontWeights.normal,titleFontSize:Qe(t.fontSizes.sm),titleColor:ga(t),titleFontStyle:"normal",ticks:!1,gridColor:Td(t),domain:!1,domainWidth:1,domainColor:Td(t),labelFlush:!0,labelFlushOffset:1,labelBound:!1,labelLimit:100,titlePadding:Qe(t.spacing.lg),labelPadding:Qe(t.spacing.lg),labelSeparation:Qe(t.spacing.twoXS),labelOverlap:!0},legend:{labelFontSize:Qe(t.fontSizes.sm),labelFontWeight:t.fontWeights.normal,labelColor:ga(t),titleFontSize:Qe(t.fontSizes.sm),titleFontWeight:t.fontWeights.normal,titleFontStyle:"normal",titleColor:ga(t),titlePadding:5,labelPadding:Qe(t.spacing.lg),columnPadding:Qe(t.spacing.sm),rowPadding:Qe(t.spacing.twoXS),padding:7,symbolStrokeWidth:Qe(t.spacing.twoXS)},range:{category:_P(t),diverging:SP(t),ramp:SE(t),heatmap:SE(t)},view:{columns:1,strokeWidth:0,stroke:"transparent",continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},concat:{columns:1},facet:{columns:1},mark:{tooltip:{content:"encoding"},color:EP(t)},bar:{binSpacing:Qe(t.spacing.twoXS),discreteBandSize:{band:.85}},axisDiscrete:{grid:!1},axisXPoint:{grid:!1},axisTemporal:{grid:!1},axisXBand:{grid:!1}};return e?NP({},n,e,(i,r)=>Array.isArray(r)?r:void 0):n}function mz(e,t){const{colors:n,fontSizes:i,genericFonts:r}=t,o={labelFont:r.bodyFont,titleFont:r.bodyFont,labelFontSize:Qe(i.twoSm),titleFontSize:Qe(i.twoSm)},s={background:n.bgColor,axis:{labelColor:n.bodyText,titleColor:n.bodyText,gridColor:Td(t),...o},legend:{labelColor:n.bodyText,titleColor:n.bodyText,...o},title:{color:n.bodyText,subtitleColor:n.bodyText,...o},header:{labelColor:n.bodyText,titleColor:n.bodyText,...o},view:{stroke:Td(t),continuousHeight:Qe(t.sizes.defaultChartHeight),continuousWidth:Qe(t.sizes.defaultChartWidth)},mark:{tooltip:!0}};return e?$P({},s,e):s}const yz=20;function bz(e){"params"in e&&"encoding"in e&&e.params.forEach(t=>{"select"in t&&(["interval","point"].includes(t.select)&&(t.select={type:t.select}),"type"in t.select&&t.select.type==="point"&&!("encodings"in t.select)&&nb(t.select.encodings)&&(t.select.encodings=Object.keys(e.encoding)))})}const vz=(e,t,n,i,r,o,s,a)=>{var l,c;const u=JSON.parse(e);if(n==="streamlit"?u.config=RE(u.config,r):((c=(l=u.usermeta)==null?void 0:l.embedOptions)==null?void 0:c.theme)==="streamlit"?(u.config=RE(u.config,r),u.usermeta.embedOptions.theme=void 0):u.config=mz(u.config,r),o?(u.width=s,u.height=a,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})):t&&(u.width=s,"vconcat"in u&&u.vconcat.forEach(f=>{f.width=s})),u.padding||(u.padding={}),nb(u.padding.bottom)&&(u.padding.bottom=yz),u.datasets)throw new Error("Datasets should not be passed as part of the spec");return i.length>0&&bz(u),u},xz=e=>{const t=AP(),{expanded:n,width:i,height:r}=eC(tC),{id:o,formId:s,spec:a,data:u,datasets:l,useContainerWidth:c,vegaLiteTheme:f,selectionMode:d}=e,h=wt.useMemo(()=>d,[JSON.stringify(d)]),g=wt.useMemo(()=>vz(a,c,f,h,t,n,i||0,r),[a,c,f,h,t,n,i,r]);return{id:o,formId:s,vegaLiteTheme:f,spec:g,selectionMode:h,data:u,datasets:l,useContainerWidth:c}};function $n(e,t,n){return e.fields=t||[],e.fname=n,e}function Je(e){return e==null?null:e.fname}function qt(e){return e==null?null:e.fields}function rC(e){return e.length===1?wz(e[0]):Ez(e)}const wz=e=>function(t){return t[e]},Ez=e=>{const t=e.length;return function(n){for(let i=0;i<t;++i)n=n[e[i]];return n}};function N(e){throw Error(e)}function ar(e){const t=[],n=e.length;let i=null,r=0,o="",s,a,u;e=e+"";function l(){t.push(o+e.substring(s,a)),o="",s=a+1}for(s=a=0;a<n;++a)if(u=e[a],u==="\\")o+=e.substring(s,a++),s=a;else if(u===i)l(),i=null,r=-1;else{if(i)continue;s===r&&u==='"'||s===r&&u==="'"?(s=a+1,i=u):u==="."&&!r?a>s?l():s=a+1:u==="["?(a>s&&l(),r=s=a+1):u==="]"&&(r||N("Access path missing open bracket: "+e),r>0&&l(),r=0,s=a+1)}return r&&N("Access path missing closing bracket: "+e),i&&N("Access path missing closing quote: "+e),a>s&&(a++,l()),t}function Qn(e,t,n){const i=ar(e);return e=i.length===1?i[0]:e,$n((n&&n.get||rC)(i),[e],t||e)}const Mc=Qn("id"),Vt=$n(e=>e,[],"identity"),fo=$n(()=>0,[],"zero"),Au=$n(()=>1,[],"one"),Pn=$n(()=>!0,[],"true"),io=$n(()=>!1,[],"false");function Sz(e,t,n){const i=[t].concat([].slice.call(n));console[e].apply(console,i)}const oC=0,ub=1,lb=2,sC=3,aC=4;function cb(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Sz,i=e||oC;return{level(r){return arguments.length?(i=+r,this):i},error(){return i>=ub&&n(t||"error","ERROR",arguments),this},warn(){return i>=lb&&n(t||"warn","WARN",arguments),this},info(){return i>=sC&&n(t||"log","INFO",arguments),this},debug(){return i>=aC&&n(t||"log","DEBUG",arguments),this}}}var P=Array.isArray;function Y(e){return e===Object(e)}const DE=e=>e!=="__proto__";function ku(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((i,r)=>{for(const o in r)if(o==="signals")i.signals=_z(i.signals,r.signals);else{const s=o==="legend"?{layout:1}:o==="style"?!0:null;Cu(i,o,r[o],s)}return i},{})}function Cu(e,t,n,i){if(!DE(t))return;let r,o;if(Y(n)&&!P(n)){o=Y(e[t])?e[t]:e[t]={};for(r in n)i&&(i===!0||i[r])?Cu(o,r,n[r]):DE(r)&&(o[r]=n[r])}else e[t]=n}function _z(e,t){if(e==null)return t;const n={},i=[];function r(o){n[o.name]||(n[o.name]=1,i.push(o))}return t.forEach(r),e.forEach(r),i}function Ee(e){return e[e.length-1]}function Ut(e){return e==null||e===""?null:+e}const uC=e=>t=>e*Math.exp(t),lC=e=>t=>Math.log(e*t),cC=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e)),fC=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e,Od=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function lg(e,t,n,i){const r=n(e[0]),o=n(Ee(e)),s=(o-r)*t;return[i(r-s),i(o-s)]}function dC(e,t){return lg(e,t,Ut,Vt)}function hC(e,t){var n=Math.sign(e[0]);return lg(e,t,lC(n),uC(n))}function gC(e,t,n){return lg(e,t,Od(n),Od(1/n))}function pC(e,t,n){return lg(e,t,cC(n),fC(n))}function cg(e,t,n,i,r){const o=i(e[0]),s=i(Ee(e)),a=t!=null?i(t):(o+s)/2;return[r(a+(o-a)*n),r(a+(s-a)*n)]}function fb(e,t,n){return cg(e,t,n,Ut,Vt)}function db(e,t,n){const i=Math.sign(e[0]);return cg(e,t,n,lC(i),uC(i))}function Rd(e,t,n,i){return cg(e,t,n,Od(i),Od(1/i))}function hb(e,t,n,i){return cg(e,t,n,cC(i),fC(i))}function mC(e){return 1+~~(new Date(e).getMonth()/3)}function yC(e){return 1+~~(new Date(e).getUTCMonth()/3)}function X(e){return e!=null?P(e)?e:[e]:[]}function bC(e,t,n){let i=e[0],r=e[1],o;return r<i&&(o=r,r=i,i=o),o=r-i,o>=n-t?[t,n]:[i=Math.min(Math.max(i,t),n-o),i+o]}function ge(e){return typeof e=="function"}const $z="descending";function gb(e,t,n){n=n||{},t=X(t)||[];const i=[],r=[],o={},s=n.comparator||Az;return X(e).forEach((a,u)=>{a!=null&&(i.push(t[u]===$z?-1:1),r.push(a=ge(a)?a:Qn(a,null,n)),(qt(a)||[]).forEach(l=>o[l]=1))}),r.length===0?null:$n(s(r,i),Object.keys(o))}const fg=(e,t)=>(e<t||e==null)&&t!=null?-1:(e>t||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,(e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0),Az=(e,t)=>e.length===1?kz(e[0],t[0]):Cz(e,t,e.length),kz=(e,t)=>function(n,i){return fg(e(n),e(i))*t},Cz=(e,t,n)=>(t.push(0),function(i,r){let o,s=0,a=-1;for(;s===0&&++a<n;)o=e[a],s=fg(o(i),o(r));return s*t[a]});function Yt(e){return ge(e)?e:()=>e}function pb(e,t){let n;return i=>{n&&clearTimeout(n),n=setTimeout(()=>(t(i),n=null),e)}}function he(e){for(let t,n,i=1,r=arguments.length;i<r;++i){t=arguments[i];for(n in t)e[n]=t[n]}return e}function Qi(e,t){let n=0,i,r,o,s;if(e&&(i=e.length))if(t==null){for(r=e[n];n<i&&(r==null||r!==r);r=e[++n]);for(o=s=r;n<i;++n)r=e[n],r!=null&&(r<o&&(o=r),r>s&&(s=r))}else{for(r=t(e[n]);n<i&&(r==null||r!==r);r=t(e[++n]));for(o=s=r;n<i;++n)r=t(e[n]),r!=null&&(r<o&&(o=r),r>s&&(s=r))}return[o,s]}function vC(e,t){const n=e.length;let i=-1,r,o,s,a,u;if(t==null){for(;++i<n;)if(o=e[i],o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=e[i],o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}else{for(;++i<n;)if(o=t(e[i],i,e),o!=null&&o>=o){r=s=o;break}if(i===n)return[-1,-1];for(a=u=i;++i<n;)o=t(e[i],i,e),o!=null&&(r>o&&(r=o,a=i),s<o&&(s=o,u=i))}return[a,u]}const Fz=Object.prototype.hasOwnProperty;function J(e,t){return Fz.call(e,t)}const Ef={};function Fu(e){let t={},n;function i(o){return J(t,o)&&t[o]!==Ef}const r={size:0,empty:0,object:t,has:i,get(o){return i(o)?t[o]:void 0},set(o,s){return i(o)||(++r.size,t[o]===Ef&&--r.empty),t[o]=s,this},delete(o){return i(o)&&(--r.size,++r.empty,t[o]=Ef),this},clear(){r.size=r.empty=0,r.object=t={}},test(o){return arguments.length?(n=o,r):n},clean(){const o={};let s=0;for(const a in t){const u=t[a];u!==Ef&&(!n||!n(u))&&(o[a]=u,++s)}r.size=s,r.empty=0,r.object=t=o}};return e&&Object.keys(e).forEach(o=>{r.set(o,e[o])}),r}function xC(e,t,n,i,r,o){if(!n&&n!==0)return o;const s=+n;let a=e[0],u=Ee(e),l;u<a&&(l=a,a=u,u=l),l=Math.abs(t-a);const c=Math.abs(u-t);return l<c&&l<=s?i:c<=s?r:o}function G(e,t,n){const i=e.prototype=Object.create(t.prototype);return Object.defineProperty(i,"constructor",{value:e,writable:!0,enumerable:!0,configurable:!0}),he(i,n)}function Fa(e,t,n,i){let r=t[0],o=t[t.length-1],s;return r>o&&(s=r,r=o,o=s),n=n===void 0||n,i=i===void 0||i,(n?r<=e:r<e)&&(i?e<=o:e<o)}function Wo(e){return typeof e=="boolean"}function So(e){return Object.prototype.toString.call(e)==="[object Date]"}function wC(e){return e&&ge(e[Symbol.iterator])}function $e(e){return typeof e=="number"}function EC(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function K(e){return typeof e=="string"}function mb(e,t,n){e&&(e=t?X(e).map(a=>a.replace(/\\(.)/g,"$1")):X(e));const i=e&&e.length,r=n&&n.get||rC,o=a=>r(t?[a]:ar(a));let s;if(!i)s=function(){return""};else if(i===1){const a=o(e[0]);s=function(u){return""+a(u)}}else{const a=e.map(o);s=function(u){let l=""+a[0](u),c=0;for(;++c<i;)l+="|"+a[c](u);return l}}return $n(s,e,"key")}function SC(e,t){const n=e[0],i=Ee(e),r=+t;return r?r===1?i:n+r*(i-n):n}const Tz=1e4;function _C(e){e=+e||Tz;let t,n,i;const r=()=>{t={},n={},i=0},o=(s,a)=>(++i>e&&(n=t,t={},i=1),t[s]=a);return r(),{clear:r,has:s=>J(t,s)||J(n,s),get:s=>J(t,s)?t[s]:J(n,s)?o(s,n[s]):void 0,set:(s,a)=>J(t,s)?t[s]=a:o(s,a)}}function $C(e,t,n,i){const r=t.length,o=n.length;if(!o)return t;if(!r)return n;const s=i||new t.constructor(r+o);let a=0,u=0,l=0;for(;a<r&&u<o;++l)s[l]=e(t[a],n[u])>0?n[u++]:t[a++];for(;a<r;++a,++l)s[l]=t[a];for(;u<o;++u,++l)s[l]=n[u];return s}function xl(e,t){let n="";for(;--t>=0;)n+=e;return n}function AC(e,t,n,i){const r=n||" ",o=e+"",s=t-o.length;return s<=0?o:i==="left"?xl(r,s)+o:i==="center"?xl(r,~~(s/2))+o+xl(r,Math.ceil(s/2)):o+xl(r,s)}function Oc(e){return e&&Ee(e)-e[0]||0}function H(e){return P(e)?"["+e.map(H)+"]":Y(e)||K(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function yb(e){return e==null||e===""?null:!e||e==="false"||e==="0"?!1:!!e}const Mz=e=>$e(e)||So(e)?e:Date.parse(e);function bb(e,t){return t=t||Mz,e==null||e===""?null:t(e)}function vb(e){return e==null||e===""?null:e+""}function xi(e){const t={},n=e.length;for(let i=0;i<n;++i)t[e[i]]=!0;return t}function kC(e,t,n,i){const r=i??"…",o=e+"",s=o.length,a=Math.max(0,t-r.length);return s<=t?o:n==="left"?r+o.slice(s-a):n==="center"?o.slice(0,Math.ceil(a/2))+r+o.slice(s-~~(a/2)):o.slice(0,a)+r}function so(e,t,n){if(e)if(t){const i=e.length;for(let r=0;r<i;++r){const o=t(e[r]);o&&n(o,r,e)}}else e.forEach(n)}var NE={},cm={},fm=34,Ku=10,dm=13;function CC(e){return new Function("d","return {"+e.map(function(t,n){return JSON.stringify(t)+": d["+n+'] || ""'}).join(",")+"}")}function Oz(e,t){var n=CC(e);return function(i,r){return t(n(i),r,e)}}function LE(e){var t=Object.create(null),n=[];return e.forEach(function(i){for(var r in i)r in t||n.push(t[r]=r)}),n}function hn(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function Rz(e){return e<0?"-"+hn(-e,6):e>9999?"+"+hn(e,6):hn(e,4)}function Dz(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),r=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":Rz(e.getUTCFullYear())+"-"+hn(e.getUTCMonth()+1,2)+"-"+hn(e.getUTCDate(),2)+(r?"T"+hn(t,2)+":"+hn(n,2)+":"+hn(i,2)+"."+hn(r,3)+"Z":i?"T"+hn(t,2)+":"+hn(n,2)+":"+hn(i,2)+"Z":n||t?"T"+hn(t,2)+":"+hn(n,2)+"Z":"")}function Nz(e){var t=new RegExp('["'+e+`
2
2
  \r]`),n=e.charCodeAt(0);function i(f,d){var h,g,p=r(f,function(m,y){if(h)return h(m,y-1);g=m,h=d?Oz(m,d):CC(m)});return p.columns=g||[],p}function r(f,d){var h=[],g=f.length,p=0,m=0,y,b=g<=0,v=!1;f.charCodeAt(g-1)===Ku&&--g,f.charCodeAt(g-1)===dm&&--g;function x(){if(b)return cm;if(v)return v=!1,NE;var S,w=p,_;if(f.charCodeAt(w)===fm){for(;p++<g&&f.charCodeAt(p)!==fm||f.charCodeAt(++p)===fm;);return(S=p)>=g?b=!0:(_=f.charCodeAt(p++))===Ku?v=!0:_===dm&&(v=!0,f.charCodeAt(p)===Ku&&++p),f.slice(w+1,S-1).replace(/""/g,'"')}for(;p<g;){if((_=f.charCodeAt(S=p++))===Ku)v=!0;else if(_===dm)v=!0,f.charCodeAt(p)===Ku&&++p;else if(_!==n)continue;return f.slice(w,S)}return b=!0,f.slice(w,g)}for(;(y=x())!==cm;){for(var E=[];y!==NE&&y!==cm;)E.push(y),y=x();d&&(E=d(E,m++))==null||h.push(E)}return h}function o(f,d){return f.map(function(h){return d.map(function(g){return c(h[g])}).join(e)})}function s(f,d){return d==null&&(d=LE(f)),[d.map(c).join(e)].concat(o(f,d)).join(`
3
3
  `)}function a(f,d){return d==null&&(d=LE(f)),o(f,d).join(`
4
4
  `)}function u(f){return f.map(l).join(`
@@ -1 +1 @@
1
- import{n as V,bi as U,r as i,bj as P,j as l}from"./index.7HEH_7fJ.js";const R=V("iframe",{target:"eymnmwl0"})(({theme:a})=>({colorScheme:"normal",border:"none",padding:a.spacing.none,margin:a.spacing.none,width:"100%",aspectRatio:"16 / 9"})),w=528;function A({element:a,width:f,endpoints:m,elementMgr:c}){const n=i.useRef(null),{type:E,url:p,startTime:o,subtitles:y,endTime:d,loop:u,autoplay:T,muted:h}=a,S=i.useMemo(()=>{if(!a.id)return!0;const e=c.getElementState(a.id,"preventAutoplay");return e||c.setElementState(a.id,"preventAutoplay",!0),e??!1},[a.id,c]);i.useEffect(()=>{n.current&&(n.current.currentTime=o)},[o]),i.useEffect(()=>{const e=n.current,t=()=>{e&&(e.currentTime=a.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[a]),i.useEffect(()=>{const e=n.current;if(!e)return;let t=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=o||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,o]),i.useEffect(()=>{const e=n.current;if(!e)return;const t=()=>{u&&(e.currentTime=o||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[u,o]);const g=e=>{const{startTime:t,endTime:s,loop:L,autoplay:b,muted:N}=a,r=new URL(e);if(t&&!isNaN(t)&&r.searchParams.append("start",t.toString()),s&&!isNaN(s)&&r.searchParams.append("end",s.toString()),L){r.searchParams.append("loop","1");const v=r.pathname.split("/").pop();v&&r.searchParams.append("playlist",v)}return b&&r.searchParams.append("autoplay","1"),N&&r.searchParams.append("mute","1"),r.toString()};return E===P.Type.YOUTUBE_IFRAME?l(R,{className:"stVideo","data-testid":"stVideo",title:p,src:g(p),allow:"autoplay; encrypted-media",allowFullScreen:!0}):l("video",{className:"stVideo","data-testid":"stVideo",ref:n,controls:!0,muted:h,autoPlay:T&&!S,src:m.buildMediaURL(p),style:{width:f,height:f===0?w:void 0},crossOrigin:void 0,children:y&&y.map((e,t)=>l("track",{kind:"captions",src:m.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0},t))})}const $=U(i.memo(A));export{$ as default};
1
+ import{n as V,bi as U,r as i,bj as P,j as l}from"./index.BDSGWkr0.js";const R=V("iframe",{target:"eymnmwl0"})(({theme:a})=>({colorScheme:"normal",border:"none",padding:a.spacing.none,margin:a.spacing.none,width:"100%",aspectRatio:"16 / 9"})),w=528;function A({element:a,width:f,endpoints:m,elementMgr:c}){const n=i.useRef(null),{type:E,url:p,startTime:o,subtitles:y,endTime:d,loop:u,autoplay:T,muted:h}=a,S=i.useMemo(()=>{if(!a.id)return!0;const e=c.getElementState(a.id,"preventAutoplay");return e||c.setElementState(a.id,"preventAutoplay",!0),e??!1},[a.id,c]);i.useEffect(()=>{n.current&&(n.current.currentTime=o)},[o]),i.useEffect(()=>{const e=n.current,t=()=>{e&&(e.currentTime=a.startTime)};return e&&e.addEventListener("loadedmetadata",t),()=>{e&&e.removeEventListener("loadedmetadata",t)}},[a]),i.useEffect(()=>{const e=n.current;if(!e)return;let t=!1;const s=()=>{d>0&&e.currentTime>=d&&(u?(e.currentTime=o||0,e.play()):t||(t=!0,e.pause()))};return d>0&&e.addEventListener("timeupdate",s),()=>{e&&d>0&&e.removeEventListener("timeupdate",s)}},[d,u,o]),i.useEffect(()=>{const e=n.current;if(!e)return;const t=()=>{u&&(e.currentTime=o||0,e.play())};return e.addEventListener("ended",t),()=>{e&&e.removeEventListener("ended",t)}},[u,o]);const g=e=>{const{startTime:t,endTime:s,loop:L,autoplay:b,muted:N}=a,r=new URL(e);if(t&&!isNaN(t)&&r.searchParams.append("start",t.toString()),s&&!isNaN(s)&&r.searchParams.append("end",s.toString()),L){r.searchParams.append("loop","1");const v=r.pathname.split("/").pop();v&&r.searchParams.append("playlist",v)}return b&&r.searchParams.append("autoplay","1"),N&&r.searchParams.append("mute","1"),r.toString()};return E===P.Type.YOUTUBE_IFRAME?l(R,{className:"stVideo","data-testid":"stVideo",title:p,src:g(p),allow:"autoplay; encrypted-media",allowFullScreen:!0}):l("video",{className:"stVideo","data-testid":"stVideo",ref:n,controls:!0,muted:h,autoPlay:T&&!S,src:m.buildMediaURL(p),style:{width:f,height:f===0?w:void 0},crossOrigin:void 0,children:y&&y.map((e,t)=>l("track",{kind:"captions",src:m.buildMediaURL(`${e.url}`),label:`${e.label}`,default:t===0},t))})}const $=U(i.memo(A));export{$ as default};
@@ -1 +1 @@
1
- import{n as o,bn as S,i as f,r as g,R as l,j as r,B as u,c5 as $,aC as m}from"./index.7HEH_7fJ.js";const x=o(S,{shouldForwardProp:f,target:"e12gfcky0"})(({theme:e})=>({fontSize:e.fontSizes.sm,width:e.sizes.spinnerSize,height:e.sizes.spinnerSize,borderWidth:e.sizes.spinnerThickness,justifyContents:"center",padding:e.spacing.none,margin:e.spacing.none,borderColor:e.colors.borderColor,borderTopColor:e.colors.secondary,flexGrow:0,flexShrink:0})),y=o("div",{target:"e12gfcky1"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),T=o("div",{target:"e12gfcky2"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),h=o("div",{target:"e12gfcky3"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),b=e=>{const s=Math.floor(e/3600),n=Math.floor(e%3600/60),t=e%60;if(s===0&&n===0)return`(${t.toFixed(1)} seconds)`;if(s===0){const d=`${n} minute${n===1?"":"s"}`,p=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${d}${p})`}const i=`${s} hour${s===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${i}${a}${c})`};function z({element:e}){const{cache:s,showTime:n}=e,[t,i]=l.useState(0);return l.useEffect(()=>{if(!n)return;const a=setInterval(()=>{i(c=>c+.1)},100);return()=>clearInterval(a)},[n]),r(y,{className:$({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:u(h,{children:[r(x,{}),r(m,{source:e.text,allowHTML:!1}),n&&r(T,{children:b(t)})]})})}const k=g.memo(z);export{k as default};
1
+ import{n as o,bn as S,i as f,r as g,R as l,j as r,B as u,c5 as $,aC as m}from"./index.BDSGWkr0.js";const x=o(S,{shouldForwardProp:f,target:"e12gfcky0"})(({theme:e})=>({fontSize:e.fontSizes.sm,width:e.sizes.spinnerSize,height:e.sizes.spinnerSize,borderWidth:e.sizes.spinnerThickness,justifyContents:"center",padding:e.spacing.none,margin:e.spacing.none,borderColor:e.colors.borderColor,borderTopColor:e.colors.secondary,flexGrow:0,flexShrink:0})),y=o("div",{target:"e12gfcky1"})(({theme:e,cache:s})=>({...s?{paddingBottom:e.spacing.lg,background:`linear-gradient(to bottom, ${e.colors.bgColor} 0%, ${e.colors.bgColor} 80%, transparent 100%)`}:null})),T=o("div",{target:"e12gfcky2"})(({theme:e})=>({opacity:.6,fontSize:e.fontSizes.sm})),h=o("div",{target:"e12gfcky3"})(({theme:e})=>({display:"flex",gap:e.spacing.sm,alignItems:"center",width:"100%"})),b=e=>{const s=Math.floor(e/3600),n=Math.floor(e%3600/60),t=e%60;if(s===0&&n===0)return`(${t.toFixed(1)} seconds)`;if(s===0){const d=`${n} minute${n===1?"":"s"}`,p=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${d}${p})`}const i=`${s} hour${s===1?"":"s"}`,a=n===0?"":`, ${n} minute${n===1?"":"s"}`,c=t===0?"":`, ${t.toFixed(1)} seconds`;return`(${i}${a}${c})`};function z({element:e}){const{cache:s,showTime:n}=e,[t,i]=l.useState(0);return l.useEffect(()=>{if(!n)return;const a=setInterval(()=>{i(c=>c+.1)},100);return()=>clearInterval(a)},[n]),r(y,{className:$({stSpinner:!0,stCacheSpinner:s}),"data-testid":"stSpinner",cache:s,children:u(h,{children:[r(x,{}),r(m,{source:e.text,allowHTML:!1}),n&&r(T,{children:b(t)})]})})}const k=g.memo(z);export{k as default};