@marimo-team/frontend 0.22.5-dev22 → 0.22.5-dev24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CellStatus-BlPM618y.js → CellStatus-CNNGwOIK.js} +1 -1
- package/dist/assets/{JsonOutput-fX_t4kob.js → JsonOutput-9XtRRx5l.js} +2 -2
- package/dist/assets/{MarimoErrorOutput-BWZIVKfh.js → MarimoErrorOutput-Bc9JufDr.js} +1 -1
- package/dist/assets/{RenderHTML-DHi_NcqM.js → RenderHTML-0dk6-mYI.js} +1 -1
- package/dist/assets/{add-cell-with-ai-BFWfrIDT.js → add-cell-with-ai-CLklC7KS.js} +1 -1
- package/dist/assets/{add-connection-dialog-DhD4Nslx.js → add-connection-dialog-ux7eCDRM.js} +1 -1
- package/dist/assets/{agent-panel-Db14RXuw.js → agent-panel-CiMrqUfl.js} +1 -1
- package/dist/assets/{ai-model-dropdown-DK0jvNeC.js → ai-model-dropdown-CRtaHcCu.js} +1 -1
- package/dist/assets/{app-config-button-ChOMoYZB.js → app-config-button-CnX21edo.js} +1 -1
- package/dist/assets/{cell-editor-ByEIKpU_.js → cell-editor-D7IQ3F4W.js} +1 -1
- package/dist/assets/{cell-link-Ci0BxazH.js → cell-link-CcAqXeeg.js} +1 -1
- package/dist/assets/{cells-CmiuS2Us.js → cells-EJo3u4za.js} +2 -2
- package/dist/assets/{chat-display-QHJlAad0.js → chat-display-BxDRpNsl.js} +1 -1
- package/dist/assets/{chat-panel-DdVD5b8J.js → chat-panel-dBoLqgjH.js} +1 -1
- package/dist/assets/{chat-ui-BAYy1pnJ.js → chat-ui-DdZo1L-v.js} +1 -1
- package/dist/assets/{column-preview-BD9FgWWN.js → column-preview-DrU255Z3.js} +1 -1
- package/dist/assets/{command-palette-_LjHuhEv.js → command-palette-n6NnK6GP.js} +1 -1
- package/dist/assets/{common-BTshJ1XI.js → common-Bty2yo-n.js} +1 -1
- package/dist/assets/{components-B6JSwyVJ.js → components-B8TZ_vT_.js} +1 -1
- package/dist/assets/{components-CLTwiWUR.js → components-Dh-L-jYg.js} +1 -1
- package/dist/assets/{datasource-DcKEJh0J.js → datasource-DY0N42ZB.js} +1 -1
- package/dist/assets/{dependency-graph-panel-_c0_a9O1.js → dependency-graph-panel-C23HsAdh.js} +1 -1
- package/dist/assets/{documentation-panel-CJQhh3mV.js → documentation-panel-okcEKCQM.js} +1 -1
- package/dist/assets/{download-CoP6Jndb.js → download-TSo32ofd.js} +1 -1
- package/dist/assets/{edit-page-B-QbMCYD.js → edit-page-RhmoqI7E.js} +3 -3
- package/dist/assets/{error-panel-sqHK1YIQ.js → error-panel-aq2j0jIa.js} +1 -1
- package/dist/assets/{file-explorer-panel-6pc2qA_Z.js → file-explorer-panel-CzYUz358.js} +1 -1
- package/dist/assets/{file-icons-D73064oq.js → file-icons-DBaXCICA.js} +1 -1
- package/dist/assets/{floating-outline-CztoJoAm.js → floating-outline-BTmyhMGv.js} +1 -1
- package/dist/assets/{focus-oWwbhXMU.js → focus-DXeddo75.js} +1 -1
- package/dist/assets/{form-Bfu7g23-.js → form-BiDLPu7R.js} +1 -1
- package/dist/assets/{home-page-qzErWwFK.js → home-page-BntiR5eS.js} +1 -1
- package/dist/assets/{hooks-BcJBkgfh.js → hooks-BgwM3Mb2.js} +1 -1
- package/dist/assets/{html-to-image-DRz7fjt_.js → html-to-image-BJiJlwQY.js} +1 -1
- package/dist/assets/{index-CQ0aAUTn.js → index-CMEhtk8a.js} +4 -4
- package/dist/assets/{kiosk-mode-mgrpFwQ-.js → kiosk-mode-JCcLyeoQ.js} +1 -1
- package/dist/assets/{layout-1KFHhkOF.js → layout-CF-7BNtf.js} +1 -1
- package/dist/assets/{logs-panel-BarTHrDL.js → logs-panel-BzhPrie8.js} +1 -1
- package/dist/assets/{markdown-renderer-BzPN8MW4.js → markdown-renderer-B9RsGqHb.js} +1 -1
- package/dist/assets/{name-cell-input-xHvjjUrD.js → name-cell-input-CYsY4A1G.js} +1 -1
- package/dist/assets/{outline-panel-D56eqBW2.js → outline-panel-BCAWCKi6.js} +1 -1
- package/dist/assets/{packages-panel-CRPKv2g1.js → packages-panel-5axf3DuF.js} +1 -1
- package/dist/assets/{panels-CVuW7WaC.js → panels-7-kbDRzv.js} +1 -1
- package/dist/assets/{process-output-DmjGMo3l.js → process-output-DqiZsqG9.js} +1 -1
- package/dist/assets/{readonly-python-code-CxvXDGBS.js → readonly-python-code-D8ITm60r.js} +1 -1
- package/dist/assets/{run-page-CfCgYWcm.js → run-page-9OQqe8IY.js} +1 -1
- package/dist/assets/{scratchpad-panel-CBMHZjXp.js → scratchpad-panel-DkqxnSH6.js} +1 -1
- package/dist/assets/{session-panel-maUzbOL4.js → session-panel-BuzMiMf3.js} +1 -1
- package/dist/assets/{snippets-panel-C87xXbH3.js → snippets-panel--mh2FUXA.js} +1 -1
- package/dist/assets/{state-DNRh59rT.js → state-6D_2UAw3.js} +1 -1
- package/dist/assets/{state-16EGv7AG.js → state-BDrig0S2.js} +1 -1
- package/dist/assets/{textarea-NrWjAX-x.js → textarea-Cfp3upzK.js} +1 -1
- package/dist/assets/{tracing-CEb8mD1j.js → tracing-BExYhl1z.js} +1 -1
- package/dist/assets/{tracing-panel-DbBjrYZR.js → tracing-panel-Co5DeX-F.js} +2 -2
- package/dist/assets/{useAddCell-DiOrQo7h.js → useAddCell-BaTlDxTu.js} +1 -1
- package/dist/assets/{useCellActionButton-DS91ZXRv.js → useCellActionButton-DftkIqUl.js} +1 -1
- package/dist/assets/{useDeleteCell-BGyrTpcv.js → useDeleteCell-d6yWnL3H.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-Bn1hk2_w.js → useDependencyPanelTab-BaVcOBM4.js} +1 -1
- package/dist/assets/{useNotebookActions-ChawZjnl.js → useNotebookActions-DihtSJ4g.js} +1 -1
- package/dist/assets/{useRunCells-BbUvom42.js → useRunCells-d2edY6Tu.js} +1 -1
- package/dist/assets/{useSplitCell-B3Wpl0ev.js → useSplitCell-DOiFyMgH.js} +1 -1
- package/dist/index.html +22 -22
- package/package.json +1 -1
- package/src/components/editor/Output.tsx +1 -1
- package/src/components/editor/__tests__/Output.test.tsx +36 -1
- package/src/core/cells/__tests__/cells.test.ts +41 -0
- package/src/core/cells/__tests__/collapseConsoleOutputs.test.ts +38 -0
- package/src/core/cells/cells.ts +1 -1
- package/src/core/cells/collapseConsoleOutputs.tsx +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-Bj1aDYRI.js";import{dt as F}from"./cells-CmiuS2Us.js";import{t as O}from"./compiler-runtime-B3qBwwSJ.js";import{_ as B}from"./useEventListener-DGjKht0c.js";import{t as L}from"./jsx-runtime-Blw4afVn.js";import{t as _}from"./tooltip-DmqhBBs6.js";import{t as V}from"./createLucideIcon-w-Qo9n0R.js";import{c as G,l as A,n as J,t as M}from"./toDate-BGIVWsZ9.js";import{t as K}from"./ellipsis-DidENKDy.js";import{t as R}from"./refresh-cw-CiOe0azG.js";import{t as Q}from"./workflow-BAgKBPlq.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-JRtp5zfw.js";import{t as E}from"./useDateFormatter-BEz9SEXo.js";import{t as H}from"./multi-icon-CGRsWmew.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=M(n)-+M(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return M(n)-+M(e)}function le(n,e){let t=M(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=M(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=M(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),D=(C(m)-C(b))/1e3,p=Math.round((x-D)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:D,uninstantiated:p}=n;if(!t)return null;let T=x??D,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(_,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(_,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(_,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(_,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),D;return e[2]===x?D=e[3]:(D=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=D),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",D]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
|
|
1
|
+
import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-Bj1aDYRI.js";import{dt as F}from"./cells-EJo3u4za.js";import{t as O}from"./compiler-runtime-B3qBwwSJ.js";import{_ as B}from"./useEventListener-DGjKht0c.js";import{t as L}from"./jsx-runtime-Blw4afVn.js";import{t as _}from"./tooltip-DmqhBBs6.js";import{t as V}from"./createLucideIcon-w-Qo9n0R.js";import{c as G,l as A,n as J,t as M}from"./toDate-BGIVWsZ9.js";import{t as K}from"./ellipsis-DidENKDy.js";import{t as R}from"./refresh-cw-CiOe0azG.js";import{t as Q}from"./workflow-BAgKBPlq.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-JRtp5zfw.js";import{t as E}from"./useDateFormatter-BEz9SEXo.js";import{t as H}from"./multi-icon-CGRsWmew.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=M(n)-+M(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return M(n)-+M(e)}function le(n,e){let t=M(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=M(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=M(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),D=(C(m)-C(b))/1e3,p=Math.round((x-D)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:D,uninstantiated:p}=n;if(!t)return null;let T=x??D,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(_,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(_,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(_,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(_,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),D;return e[2]===x?D=e[3]:(D=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=D),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",D]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-vega-BfEZWy9T.js","./react-vega-BVBnH7ue.js","./precisionRound-CU2C3Vxx.js","./defaultLocale-JieDVWC_.js","./linear-BICTUQLW.js","./timer-DBQ_H0G1.js","./chunk-LvLJmgfZ.js","./init-AtRnKt23.js","./time-DLcLlk0u.js","./defaultLocale-BLne0bXb.js","./range-1DwpgXvM.js","./vega-loader.browser-DXARUlxo.js","./treemap-DqSsE4KM.js","./path-BMloFSsK.js","./colors-C3_wIR8c.js","./ordinal-DuTuuUgV.js","./arc-3DY1fURi.js","./math-BIeW4iGV.js","./array-BF0shS9G.js","./step-COhf-b0R.js","./line-BCZzhM6G.js","./jsx-runtime-Blw4afVn.js","./react-Bj1aDYRI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Zx=Object.defineProperty;var eb=(b,s,gt)=>s in b?Zx(b,s,{enumerable:!0,configurable:!0,writable:!0,value:gt}):b[s]=gt;var On=(b,s,gt)=>eb(b,typeof s!="symbol"?s+"":s,gt);import{s as zr,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as tb,c as nb,f as Eu,g as rb,h as lb,l as Vr,n as at,p as Pe,s as ab,u as $n}from"./useEvent-D91BmmQi.js";import{t as ob}from"./react-Bj1aDYRI.js";import{At as ib,G as Pu,Lt as Dr,Mi as Ou,Ni as sb,Ot as cb,Pi as ub,Yn as db,cr as mb,ct as pb,ei as fb,f as gb,hr as hb,ii as $u,ni as yb,qn as Tu,ti as xb,vt as zu,wi as bb,__tla as vb}from"./cells-CmiuS2Us.js";import{t as wb}from"./react-dom-CSu739Rf.js";import{t as L}from"./compiler-runtime-B3qBwwSJ.js";import{t as Sb}from"./range-D-0CV4c0.js";import{_ as ot,d as Lr,v as Cb}from"./useEventListener-DGjKht0c.js";import{t as ft}from"./invariant-CkiqGLcK.js";import{r as jb}from"./utils-8btzWeZg.js";import{S as Vu,n as kb}from"./config-DoZCLcOb.js";import{t as Hr}from"./ErrorBoundary-dxChUL02.js";import{n as Tn}from"./clsx-XrBBnd7s.js";import{n as _b,t as $}from"./cn-DYvqRARy.js";import{t as Rb}from"./jsx-runtime-Blw4afVn.js";import{C as Du,S as Mb,a as Nb,b as rn,h as Fb,n as Ab,r as Lu,t as Ib,v as Hu}from"./fullscreen-k58KVlT-.js";import{a as Eb,c as Pb,i as Ua,l as Ob,o as $b,r as Bu,s as Tb}from"./menu-items-Dtw5N98_.js";import{i as zb,n as Vb,r as Db}from"./multi-map-MSuUqmbC.js";import{a as Lb,c as Hb,i as Br,n as Bb,o as Wb,r as Wr,s as Gb,t as Gr,u as qb}from"./popover-AtoFZ7i4.js";import{c as Kb,i as Xa,n as Ub,o as Xb,s as Jb,t as Yb}from"./select--zcABebs.js";import{A as Qb,C as Zb,D as ev,E as tv,O as nv,S as rv,T as lv,_ as av,a as Z,b as ov,c as ln,d as qr,f as Wu,g as iv,h as sv,j as Gu,k as cv,o as Ja,p as Kr,r as Ur,s as Xr,t as Jr,u as zn,v as uv,w as dv,x as mv,y as pv}from"./dropdown-menu-DrHAuMTb.js";import{d as fv,h as gv,i as hv,m as qu,p as yv}from"./download-CoP6Jndb.js";import{t as Ce}from"./tooltip-DmqhBBs6.js";import{r as qe,t as de}from"./button-BKVLeSTX.js";import{at as Ku}from"./dist-VwkX7yeV.js";import{t as xv}from"./arrays-DAC2orgH.js";import{n as bv,t as vv}from"./once-hq2TLzOp.js";import{t as wv}from"./createReducer-CYlwteGD.js";import{n as Sv}from"./useNonce-CbdaHKzX.js";import{i as kt,n as Cv,r as jv}from"./strings-pfr2N700.js";import{t as Uu}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{t as kv,__tla as _v}from"./LazyAnyLanguageCodeMirror-CoYqQxHb.js";import{n as Rv,r as Mv,t as Xu}from"./table-qC3alE1r.js";import{t as Nv}from"./check-B-sKate2.js";import{r as Yr,t as Qr}from"./x-Bv2rCglF.js";import{t as Fv}from"./chevron-right-CgvDWFE3.js";import{n as Ju,r as Av,t as Iv}from"./maps-B4xARV9R.js";import{d as Ev,f as Zr,i as Pv,n as Ov,o as $v,s as Tv,t as zv,__tla as Vv}from"./markdown-renderer-BzPN8MW4.js";import{t as el}from"./copy-DFMsQ6MJ.js";import{t as Dv}from"./ellipsis-DidENKDy.js";import{n as Lv,t as Yu}from"./spinner-C5wIpWgQ.js";import{t as Hv}from"./message-circle-DiHwtSG8.js";import{i as Bv,n as Wv,r as Gv,t as qv}from"./MarimoErrorOutput-BWZIVKfh.js";import{dt as Qu,o as Zu,r as Kv}from"./input-Bg12i6qY.js";import{t as Uv}from"./badge-CwbVR_sO.js";import{t as Xv}from"./preload-helper-D2MJg03u.js";import{t as tl}from"./use-toast-BDYuj3zG.js";import{a as Jv}from"./session-DdnWW30b.js";import{r as nl}from"./useTheme-DCDmxPD0.js";import{a as Yv,n as Qv,r as Zv,t as ew}from"./dates-stqTIkXD.js";import{t as ed}from"./isValid-U-UFA9KI.js";import{n as an}from"./copy-Bizk-4hH.js";import{t as tw}from"./copy-icon-BGs1Pbai.js";import{t as rl}from"./useDateFormatter-BEz9SEXo.js";import{t as Ke}from"./context-DGqo1TbK.js";import{t as nw}from"./useNumberFormatter-wQU1z0W_.js";import{t as Ya}from"./RenderHTML-DHi_NcqM.js";import{i as Qa,n as rw,r as Oe,t as lw}from"./numbers--nDjbAPa.js";import{r as aw}from"./errors-CZb6hI2x.js";import{a as ow,i as Za,r as iw,s as sw,t as cw}from"./utils-BZwMGX81.js";import{n as uw}from"./vega-loader.browser-DXARUlxo.js";import{c as dw,i as mw,l as pw,o as fw,u as gw}from"./react-icons.esm-BUYTQ32a.js";import{n as hw,t as yw}from"./emotion-is-prop-valid.esm-DYxi7n2b.js";import{t as xw}from"./extends-Co37_JfG.js";import{t as bw}from"./kbd-BUtlbGdu.js";import{r as vw}from"./cell-link-Ci0BxazH.js";import{t as ww}from"./useIframeCapabilities-C8jvQ1Lj.js";import{n as td,t as Sw}from"./error-banner-bXc_9BBZ.js";import{n as Cw}from"./useAsyncData-aCoWDe-l.js";import{a as nd,o as eo,r as rd,s as ld,t as ad}from"./command-DvF_4mQa.js";import{t as jw}from"./formats-BQHP_yQk.js";import{a as kw,i as _w,n as Rw,o as to,r as od,t as Mw}from"./table-B03CpBmt.js";import{r as Nw,t as Fw}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";let no,ro,ll,lo,id,Vn,sd,al,cd,ao,oo,io,ud,so,co,uo,mo,dd,md,pd,po,fd,fo,ol,gd,go,hd,yd,ho,il,xd,yo,xo,bd,bo,sl,cl,ul,dl,vo,wo,So,Dn,vd,wd,Co,jo,ko,_o,ml,Ro,Mo,zt,No,Ln,Vt,Fo,Ao,_t,Io,Eo,on,sn,Po,Oo,Sd,Cd,$o,To,zo,pl,Vo,Hn,Aw=Promise.all([(()=>{try{return vb}catch{}})(),(()=>{try{return _v}catch{}})(),(()=>{try{return Vv}catch{}})()]).then(async()=>{var $t;var b=zr(ob(),1),s=zr(Rb(),1),gt="ContextMenu",[jd,Iw]=Mb(gt,[Gu]),be=Gu(),[kd,Do]=jd(gt),Lo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:l,modal:a=!0}=e,[o,i]=b.useState(!1),c=be(t),u=Fb(r),m=b.useCallback(p=>{i(p),u(p)},[u]);return(0,s.jsx)(kd,{scope:t,open:o,onOpenChange:m,modal:a,children:(0,s.jsx)(tv,{...c,dir:l,open:o,onOpenChange:m,modal:a,children:n})})};Lo.displayName=gt;var Ho="ContextMenuTrigger",Bo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...l}=e,a=Do(Ho,n),o=be(n),i=b.useRef({x:0,y:0}),c=b.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=b.useRef(0),m=b.useCallback(()=>window.clearTimeout(u.current),[]),p=d=>{i.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return b.useEffect(()=>m,[m]),b.useEffect(()=>{r&&m()},[r,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sv,{...o,virtualRef:c}),(0,s.jsx)(Du.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...l,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:rn(e.onContextMenu,d=>{m(),p(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:rn(e.onPointerDown,Bn(d=>{m(),u.current=window.setTimeout(()=>p(d),700)})),onPointerMove:r?e.onPointerMove:rn(e.onPointerMove,Bn(m)),onPointerCancel:r?e.onPointerCancel:rn(e.onPointerCancel,Bn(m)),onPointerUp:r?e.onPointerUp:rn(e.onPointerUp,Bn(m))})]})});Bo.displayName=Ho;var _d="ContextMenuPortal",Wo=e=>{let{__scopeContextMenu:t,...n}=e,r=be(t);return(0,s.jsx)(Zb,{...r,...n})};Wo.displayName=_d;var Go="ContextMenuContent",qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=Do(Go,n),a=be(n),o=b.useRef(!1);return(0,s.jsx)(uv,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,i),!i.defaultPrevented&&o.current&&i.preventDefault(),o.current=!1},onInteractOutside:i=>{var c;(c=e.onInteractOutside)==null||c.call(e,i),!i.defaultPrevented&&!l.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qo.displayName=Go;var Rd="ContextMenuGroup",Md=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(pv,{...l,...r,ref:t})});Md.displayName=Rd;var Nd="ContextMenuLabel",Ko=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(rv,{...l,...r,ref:t})});Ko.displayName=Nd;var Fd="ContextMenuItem",Uo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ov,{...l,...r,ref:t})});Uo.displayName=Fd;var Ad="ContextMenuCheckboxItem",Xo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(av,{...l,...r,ref:t})});Xo.displayName=Ad;var Id="ContextMenuRadioGroup",Ed=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(dv,{...l,...r,ref:t})});Ed.displayName=Id;var Pd="ContextMenuRadioItem",Jo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(lv,{...l,...r,ref:t})});Jo.displayName=Pd;var Od="ContextMenuItemIndicator",Yo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(mv,{...l,...r,ref:t})});Yo.displayName=Od;var $d="ContextMenuSeparator",Qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ev,{...l,...r,ref:t})});Qo.displayName=$d;var Td="ContextMenuArrow",zd=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(iv,{...l,...r,ref:t})});zd.displayName=Td;var Zo="ContextMenuSub",Vd=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:l,defaultOpen:a}=e,o=be(t),[i,c]=Hu({prop:l,defaultProp:a??!1,onChange:r,caller:Zo});return(0,s.jsx)(nv,{...o,open:i,onOpenChange:c,children:n})};Vd.displayName=Zo;var Dd="ContextMenuSubTrigger",ei=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(Qb,{...l,...r,ref:t})});ei.displayName=Dd;var Ld="ContextMenuSubContent",ti=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(cv,{...l,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ti.displayName=Ld;function Bn(e){return t=>t.pointerType==="mouse"?void 0:e(t)}var Hd=Lo,Bd=Bo,Wd=Wo,ni=qo,ri=Ko,li=Uo,ai=Xo,oi=Jo,ii=Yo,si=Qo,ci=ei,ui=ti,di="Toggle",mi=b.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:l,...a}=e,[o,i]=Hu({prop:n,onChange:l,defaultProp:r??!1,caller:di});return(0,s.jsx)(Du.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:rn(e.onClick,()=>{e.disabled||i(!o)})})});mi.displayName=di;var pi=mi,fi=new WeakMap;function Gd(e,t){let n=Eu(t),r=gi(n);for(let[l,...a]of e)(!r.has(l)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(l),n.set(l,...a))}let gi,hi,yi,fl,xi,bi,vi,wi,Si,Ci,ji,ki,gl,_i,Ri,Mi,Ni;gi=e=>{let t=fi.get(e);return t||(t=new WeakSet,fi.set(e,t)),t},Vo=ne("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),hi=ne("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),yi=ne("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),fl=ne("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),xi=ne("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),$o=ne("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ho=ne("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),bi=ne("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),wo=ne("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),vi=ne("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),wi=ne("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Si=ne("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),Dn=ne("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Ro=ne("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Ci=ne("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),ji=ne("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ki=ne("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),gl=ne("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),_i=ne("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),Ri=ne("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Mi=ne("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),Ni=ne("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),Fo=ne("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]);function qd(e){return{all:e||(e=new Map),on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(l){l(n)}),(r=e.get("*"))&&r.slice().map(function(l){l(t,n)})}}}let Wn,Fi,Ai,hl,yl,Ii,Ei,Pi,Oi,xl;Wn=(0,b.createContext)(null),_o=e=>{let{controller:t}=(0,b.useContext)(Wn),n=b.useRef(Symbol("fill"));return(0,b.useEffect)(()=>(t.mount({name:e.name,ref:n.current,children:e.children}),()=>{t.unmount({name:e.name,ref:n.current})}),[]),(0,b.useEffect)(()=>{t.update({name:e.name,ref:n.current,children:e.children})}),null},Fi=Object.defineProperty,Ai=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t,n)=>(Ai(e,typeof t=="symbol"?t:t+"",n),n),yl=console,Ii=class{constructor(e){hl(this,"_bus"),hl(this,"_db"),this._bus=e,this.handleFillMount=this.handleFillMount.bind(this),this.handleFillUpdated=this.handleFillUpdated.bind(this),this.handleFillUnmount=this.handleFillUnmount.bind(this),this._db={byName:new Map,byFill:new Map}}mount(){this._bus.on("fill-mount",this.handleFillMount),this._bus.on("fill-updated",this.handleFillUpdated),this._bus.on("fill-unmount",this.handleFillUnmount)}unmount(){this._bus.off("fill-mount",this.handleFillMount),this._bus.off("fill-updated",this.handleFillUpdated),this._bus.off("fill-unmount",this.handleFillUnmount)}handleFillMount({fill:e}){let t=b.Children.toArray(e.children),n=e.name,r={fill:e,children:t,name:n},l=this._db.byName.get(n);l?(l.components.push(r),l.listeners.forEach(a=>a([...l.components]))):this._db.byName.set(n,{listeners:[],components:[r]}),this._db.byFill.set(e.ref,r)}handleFillUpdated({fill:e}){let t=this._db.byFill.get(e.ref),n=b.Children.toArray(e.children);if(t){t.children=n;let r=this._db.byName.get(t.name);if(r)r.listeners.forEach(l=>l([...r.components]));else throw Error("registration was expected to be defined")}else{yl.error("[handleFillUpdated] component was expected to be defined");return}}handleFillUnmount({fill:e}){let t=this._db.byFill.get(e.ref);if(!t){yl.error("[handleFillUnmount] component was expected to be defined");return}let n=t.name,r=this._db.byName.get(n);if(!r)throw Error("registration was expected to be defined");r.components=r.components.filter(l=>l!==t),this._db.byFill.delete(e.ref),r.listeners.length===0&&r.components.length===0?this._db.byName.delete(n):r.listeners.forEach(l=>l([...r.components]))}onComponentsChange(e,t){let n=this._db.byName.get(e);n?(n.listeners.push(t),t(n.components)):(this._db.byName.set(e,{listeners:[t],components:[]}),t([]))}getFillsByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.fill):[]}getChildrenByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.children).reduce((n,r)=>n.concat(r),[]):[]}removeOnComponentsChange(e,t){let n=this._db.byName.get(e);if(!n)throw Error("expected registration to be defined");let r=n.listeners;r.splice(r.indexOf(t),1)}},Ei=Object.defineProperty,Pi=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oi=(e,t,n)=>(Pi(e,typeof t=="symbol"?t:t+"",n),n),xl=class{constructor(){Oi(this,"bus",qd())}mount(e){this.bus.emit("fill-mount",{fill:e})}unmount(e){this.bus.emit("fill-unmount",{fill:e})}update(e){this.bus.emit("fill-updated",{fill:e})}};function Kd(e){let t=e||new xl;return{controller:t,manager:new Ii(t.bus)}}Sd=({controller:e,children:t})=>{let[n]=b.useState(()=>{let r=Kd(e);return r.manager.mount(),r});return b.useEffect(()=>()=>{n.manager.unmount()},[]),b.createElement(Wn.Provider,{value:n},t)},dl=function(e,t){let[n,r]=(0,b.useState)([]),{manager:l}=(0,b.useContext)(Wn);return(0,b.useEffect)(()=>(l.onComponentsChange(e,r),()=>{l.removeOnComponentsChange(e,r)}),[e]),n.flatMap((a,o)=>{let{children:i}=a;return i.map((c,u)=>{if(typeof c=="number"||typeof c=="string")throw Error("Only element children will work here");return b.cloneElement(c,{key:o.toString()+u.toString(),...t})})})},sl=e=>{let t=dl(e.name,e.childProps);if(typeof e.children=="function"){let n=e.children(t);if(b.isValidElement(n)||n===null)return n;throw Error("Slot rendered with function must return a valid React Element.")}return t},bd=new xl,on={SIDEBAR:"sidebar",CONTEXT_AWARE_PANEL:"context-aware-panel",CONTEXT_AWARE_PANEL_HEADER:"context-aware-panel-header"},Ln=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},xd=function(){return ft(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files},wd=function(){var e;return(e=window==null?void 0:window.__MARIMO_STATIC__)==null?void 0:e.modelNotifications};var Ud=!1;function Xd(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jd(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yd=(function(){function e(n){var r=this;this._insertTag=function(l){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(l,a),r.tags.push(l)},this.isSpeedy=n.speedy===void 0?!Ud:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Jd(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=Xd(r);try{l.insertRule(n,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ve="-ms-",Gn="-moz-",H="-webkit-",$i="comm",bl="rule",vl="decl",Qd="@import",Ti="@keyframes",Zd="@layer",em=Math.abs,qn=String.fromCharCode,tm=Object.assign;function nm(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function zi(e){return e.trim()}function rm(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function wl(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function cn(e,t,n){return e.slice(t,n)}function Ue(e){return e.length}function Sl(e){return e.length}function Kn(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var Un=1,Dt=1,Vi=0,ke=0,ie=0,Lt="";function Xn(e,t,n,r,l,a,o){return{value:e,root:t,parent:n,type:r,props:l,children:a,line:Un,column:Dt,length:o,return:""}}function un(e,t){return tm(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function am(){return ie}function om(){return ie=ke>0?ge(Lt,--ke):0,Dt--,ie===10&&(Dt=1,Un--),ie}function Me(){return ie=ke<Vi?ge(Lt,ke++):0,Dt++,ie===10&&(Dt=1,Un++),ie}function Xe(){return ge(Lt,ke)}function Jn(){return ke}function dn(e,t){return cn(Lt,e,t)}function mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return Un=Dt=1,Vi=Ue(Lt=e),ke=0,[]}function Li(e){return Lt="",e}function Yn(e){return zi(dn(ke-1,Cl(e===91?e+2:e===40?e+1:e)))}function im(e){for(;(ie=Xe())&&ie<33;)Me();return mn(e)>2||mn(ie)>3?"":" "}function sm(e,t){for(;--t&&Me()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return dn(e,Jn()+(t<6&&Xe()==32&&Me()==32))}function Cl(e){for(;Me();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&Cl(ie);break;case 40:e===41&&Cl(e);break;case 92:Me();break}return ke}function cm(e,t){for(;Me()&&e+ie!==57&&!(e+ie===84&&Xe()===47););return"/*"+dn(t,ke-1)+"*"+qn(e===47?e:Me())}function um(e){for(;!mn(Xe());)Me();return dn(e,ke)}function dm(e){return Li(Qn("",null,null,null,[""],e=Di(e),0,[0],e))}function Qn(e,t,n,r,l,a,o,i,c){for(var u=0,m=0,p=o,d=0,g=0,f=0,x=1,w=1,y=1,S=0,v="",j=l,k=a,C=r,N=v;w;)switch(f=S,S=Me()){case 40:if(f!=108&&ge(N,p-1)==58){wl(N+=B(Yn(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Yn(S);break;case 9:case 10:case 13:case 32:N+=im(f);break;case 92:N+=sm(Jn()-1,7);continue;case 47:switch(Xe()){case 42:case 47:Kn(mm(cm(Me(),Jn()),t,n),c);break;default:N+="/"}break;case 123*x:i[u++]=Ue(N)*y;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:y==-1&&(N=B(N,/\f/g,"")),g>0&&Ue(N)-p&&Kn(g>32?Bi(N+";",r,n,p-1):Bi(B(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(Kn(C=Hi(N,t,n,u,m,l,i,v,j=[],k=[],p),a),S===123)if(m===0)Qn(N,t,C,C,j,a,p,i,k);else switch(d===99&&ge(N,3)===110?100:d){case 100:case 108:case 109:case 115:Qn(e,C,C,r&&Kn(Hi(e,C,C,0,0,l,i,v,l,j=[],p),k),l,k,p,i,r?j:k);break;default:Qn(N,C,C,C,[""],k,0,i,k)}}u=m=g=0,x=y=1,v=N="",p=o;break;case 58:p=1+Ue(N),g=f;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&om()==125)continue}switch(N+=qn(S),S*x){case 38:y=m>0?1:(N+="\f",-1);break;case 44:i[u++]=(Ue(N)-1)*y,y=1;break;case 64:Xe()===45&&(N+=Yn(Me())),d=Xe(),m=p=Ue(v=N+=um(Jn())),S++;break;case 45:f===45&&Ue(N)==2&&(x=0)}}return a}function Hi(e,t,n,r,l,a,o,i,c,u,m){for(var p=l-1,d=l===0?a:[""],g=Sl(d),f=0,x=0,w=0;f<r;++f)for(var y=0,S=cn(e,p+1,p=em(x=o[f])),v=e;y<g;++y)(v=zi(x>0?d[y]+" "+S:B(S,/&\f/g,d[y])))&&(c[w++]=v);return Xn(e,t,n,l===0?bl:i,c,u,m)}function mm(e,t,n){return Xn(e,t,n,$i,qn(am()),cn(e,2,-2),0)}function Bi(e,t,n,r){return Xn(e,t,n,vl,cn(e,0,r),cn(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Sl(e),l=0;l<r;l++)n+=t(e[l],l,e,t)||"";return n}function pm(e,t,n,r){switch(e.type){case Zd:if(e.children.length)break;case Qd:case vl:return e.return=e.return||e.value;case $i:return"";case Ti:return e.return=e.value+"{"+Ht(e.children,r)+"}";case bl:e.value=e.props.join(",")}return Ue(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function fm(e){var t=Sl(e);return function(n,r,l,a){for(var o="",i=0;i<t;i++)o+=e[i](n,r,l,a)||"";return o}}function gm(e){return function(t){t.root||(t=t.return)&&e(t)}}var hm=function(e,t,n){for(var r=0,l=0;r=l,l=Xe(),r===38&&l===12&&(t[n]=1),!mn(l);)Me();return dn(e,ke)},ym=function(e,t){var n=-1,r=44;do switch(mn(r)){case 0:r===38&&Xe()===12&&(t[n]=1),e[n]+=hm(ke-1,t,n);break;case 2:e[n]+=Yn(r);break;case 4:if(r===44){e[++n]=Xe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qn(r)}while(r=Me());return e},xm=function(e,t){return Li(ym(Di(e),t))},Wi=new WeakMap,bm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wi.get(n))&&!r){Wi.set(e,!0);for(var l=[],a=xm(t,l),o=n.props,i=0,c=0;i<a.length;i++)for(var u=0;u<o.length;u++,c++)e.props[c]=l[i]?a[i].replace(/&\f/g,o[u]):o[u]+" "+a[i]}}},vm=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Gi(e,t){switch(nm(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Gn+e+ve+e+e;case 6828:case 4268:return H+e+ve+e+e;case 6165:return H+e+ve+"flex-"+e+e;case 5187:return H+e+B(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return H+e+ve+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return H+e+ve+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+ve+B(e,"shrink","negative")+e;case 5292:return H+e+ve+B(e,"basis","preferred-size")+e;case 6060:return H+"box-"+B(e,"-grow","")+H+e+ve+B(e,"grow","positive")+e;case 4554:return H+B(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Gn+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wl(e,"stretch")?Gi(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,Ue(e)-3-(~wl(e,"!important")&&10))){case 107:return B(e,":",":"+H)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(ge(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+ve+e+e}return e}var wm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vl:e.return=Gi(e.value,e.length);break;case Ti:return Ht([un(e,{value:B(e.value,"@","@"+H)})],r);case bl:if(e.length)return lm(e.props,function(l){switch(rm(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([un(e,{props:[B(l,/:(read-\w+)/,":"+Gn+"$1")]})],r);case"::placeholder":return Ht([un(e,{props:[B(l,/:(plac\w+)/,":"+H+"input-$1")]}),un(e,{props:[B(l,/:(plac\w+)/,":"+Gn+"$1")]}),un(e,{props:[B(l,/:(plac\w+)/,ve+"input-$1")]})],r)}return""})}}],jl=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||wm,l={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)l[x[w]]=!0;o.push(f)});var i,c=[bm,vm],u,m=[pm,gm(function(f){u.insert(f)})],p=fm(c.concat(r,m)),d=function(f){return Ht(dm(f),p)};i=function(f,x,w,y){u=w,d(f?f+"{"+x.styles+"}":x.styles),y&&(g.inserted[x.name]=!0)};var g={key:t,sheet:new Yd({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return g.sheet.hydrate(o),g},Sm=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C){var N=C.$$typeof;switch(N){case n:switch(C=C.type,C){case u:case m:case l:case o:case a:case d:return C;default:switch(C&&(C=C.$$typeof),C){case c:case p:case x:case f:case i:return C;default:return N}}case r:return N}}}function k(C){return j(C)===m}e.AsyncMode=u,e.ConcurrentMode=m,e.ContextConsumer=c,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=l,e.Lazy=x,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(C){return k(C)||j(C)===u},e.isConcurrentMode=k,e.isContextConsumer=function(C){return j(C)===c},e.isContextProvider=function(C){return j(C)===i},e.isElement=function(C){return typeof C=="object"&&!!C&&C.$$typeof===n},e.isForwardRef=function(C){return j(C)===p},e.isFragment=function(C){return j(C)===l},e.isLazy=function(C){return j(C)===x},e.isMemo=function(C){return j(C)===f},e.isPortal=function(C){return j(C)===r},e.isProfiler=function(C){return j(C)===o},e.isStrictMode=function(C){return j(C)===a},e.isSuspense=function(C){return j(C)===d},e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===m||C===o||C===a||C===d||C===g||typeof C=="object"&&!!C&&(C.$$typeof===x||C.$$typeof===f||C.$$typeof===i||C.$$typeof===c||C.$$typeof===p||C.$$typeof===y||C.$$typeof===S||C.$$typeof===v||C.$$typeof===w)},e.typeOf=j})),Cm=Tt(((e,t)=>{t.exports=Sm()})),jm=Tt(((e,t)=>{var n=Cm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=o;function c(w){return n.isMemo(w)?o:i[w.$$typeof]||r}var u=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function x(w,y,S){if(typeof y!="string"){if(f){var v=g(y);v&&v!==f&&x(w,v,S)}var j=m(y);p&&(j=j.concat(p(y)));for(var k=c(w),C=c(y),N=0;N<j.length;++N){var R=j[N];if(!l[R]&&!(S&&S[R])&&!(C&&C[R])&&!(k&&k[R])){var _=d(y,R);try{u(w,R,_)}catch{}}}}return w}t.exports=x})),km=!0;function qi(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]===void 0?l&&(r+=l+" "):t.push(e[l]+";")}),r}var kl=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||km===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_l=function(e,t,n){kl(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var l=t;do e.insert(t===l?"."+r:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function _m(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mm=!1,Nm=/[A-Z]|^ms/g,Fm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ki=function(e){return e.charCodeAt(1)===45},Ui=function(e){return e!=null&&typeof e!="boolean"},Rl=hw(function(e){return Ki(e)?e:e.replace(Nm,"-$&").toLowerCase()}),Xi=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Fm,function(n,r,l){return Je={name:r,styles:l,next:Je},r})}return Rm[e]!==1&&!Ki(e)&&typeof t=="number"&&t!==0?t+"px":t},Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var l=n;if(l.anim===1)return Je={name:l.name,styles:l.styles,next:Je},l.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return a.styles+";"}return Im(e,t,n);case"function":if(e!==void 0){var i=Je,c=n(e);return Je=i,pn(e,t,c)}break}var u=n;if(t==null)return u;var m=t[u];return m===void 0?u:m}function Im(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=pn(e,t,n[l])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var i=o;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Ui(i)&&(r+=Rl(a)+":"+Xi(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Mm)throw Error(Am);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ui(o[c])&&(r+=Rl(a)+":"+Xi(a,o[c])+";");else{var u=pn(e,t,o);switch(a){case"animation":case"animationName":r+=Rl(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}}}return r}var Ji=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function Zn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";Je=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,l+=pn(n,t,a)):l+=a[0];for(var o=1;o<e.length;o++)l+=pn(n,t,e[o]),r&&(l+=a[o]);Ji.lastIndex=0;for(var i="",c;(c=Ji.exec(l))!==null;)i+="-"+c[1];return{name:_m(l)+i,styles:l,next:Je}}var Em=function(e){return e()},Yi=b.useInsertionEffect?b.useInsertionEffect:!1,Qi=Yi||Em,Zi=Yi||b.useLayoutEffect,es=b.createContext(typeof HTMLElement<"u"?jl({key:"css"}):null),Pm=es.Provider,Ml=function(e){return(0,b.forwardRef)(function(t,n){return e(t,(0,b.useContext)(es),n)})},fn=b.createContext({}),Nl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Om=function(e,t){var n={};for(var r in t)Nl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},Tm=Ml(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[Fl],a=[r],o="";typeof e.className=="string"?o=qi(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var i=Zn(a,void 0,b.useContext(fn));o+=t.key+"-"+i.name;var c={};for(var u in e)Nl.call(e,u)&&u!=="css"&&u!==Fl&&(c[u]=e[u]);return c.className=o,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement($m,{cache:t,serialized:i,isStringTag:typeof l=="string"}),b.createElement(l,c))});jm();var zm=function(e,t){var n=arguments;if(t==null||!Nl.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,l=Array(r);l[0]=Tm,l[1]=Om(e,t);for(var a=2;a<r;a++)l[a]=n[a];return b.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zm||(zm={}));var Vm=Ml(function(e,t){var n=e.styles,r=Zn([n],void 0,b.useContext(fn)),l=b.useRef();return Zi(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",a),o.hydrate([c])),l.current=[o,i],function(){o.flush()}},[t]),Zi(function(){var a=l.current,o=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&_l(t,r.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",r,o,!1)},[t,r.name]),null}),Dm=L();Io=e=>{let t=(0,Dm.c)(6),{container:n,children:r}=e,l;e:{if(!n){let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=jl({key:"mo",prepend:!0}),t[0]=c):c=t[0],l=c;break e}let i;if(t[1]!==n){let c=n.querySelector("style");c||(c=document.createElement("style"),n.append(c)),i=jl({key:"mo",prepend:!0,container:c}),t[1]=n,t[2]=i}else i=t[2];l=i}let a=l,o;return t[3]!==a||t[4]!==r?(o=(0,s.jsx)(Pm,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=o):o=t[5],o};var gn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Gt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},hn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Lm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ht(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",Hm=!1,Bm=yw,Wm=function(e){return e!=="theme"},ts=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Bm:Wm},ns=function(e,t,n){var r;if(t){var l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?function(a){return e.__emotion_forwardProp(a)&&l(a)}:l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},Gm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},qm=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var i=ns(t,n,r),c=i||ts(l),u=!c("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var x=Ml(function(w,y,S){var v=u&&w.as||l,j="",k=[],C=w;if(w.theme==null){for(var N in C={},w)C[N]=w[N];C.theme=b.useContext(fn)}typeof w.className=="string"?j=qi(y.registered,k,w.className):w.className!=null&&(j=w.className+" ");var R=Zn(p.concat(k),y.registered,C);j+=y.key+"-"+R.name,o!==void 0&&(j+=" "+o);var _=u&&i===void 0?ts(v):c,h={};for(var M in w)u&&M==="as"||_(M)&&(h[M]=w[M]);return h.className=j,S&&(h.ref=S),b.createElement(b.Fragment,null,b.createElement(Gm,{cache:y,serialized:R,isStringTag:typeof v=="string"}),b.createElement(v,h))});return x.displayName=a===void 0?"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")":a,x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=p,x.__emotion_forwardProp=i,Object.defineProperty(x,"toString",{value:function(){return o===void 0&&Hm?"NO_COMPONENT_SELECTOR":"."+o}}),x.withComponent=function(w,y){return e(w,xw({},n,y,{shouldForwardProp:ns(x,y,!0)})).apply(void 0,p)},x}},Km="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),Al=qm.bind(null);Km.forEach(function(e){Al[e]=Al(e)});function Um(e){return e==null||Object.keys(e).length===0}function rs(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(Vm,{styles:typeof t=="function"?r=>t(Um(r)?n:r):t})}function ls(e,t){return Al(e,t)}function Xm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var as=[];function yt(e){return as[0]=e,Zn(as)}var Jm=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===c||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===u||d.$$typeof===a||d.$$typeof===l||d.$$typeof===o||d.$$typeof===p||d.getModuleId!==void 0))}})),os=Tt(((e,t)=>{t.exports=Jm()}))();function Ye(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function is(e){if(b.isValidElement(e)||(0,os.isValidElementType)(e)||!Ye(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=is(e[n])}),t}function Ne(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ye(e)&&Ye(t)&&Object.keys(t).forEach(l=>{b.isValidElement(t[l])||(0,os.isValidElementType)(t[l])?r[l]=t[l]:Ye(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ye(e[l])?r[l]=Ne(e[l],t[l],n):n.clone?r[l]=Ye(t[l])?is(t[l]):t[l]:r[l]=t[l]}),r}var Ym=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Qm(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,a=Ym(t),o=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,g){let f=o.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[o[f]]=="number"?t[o[f]]:g)-r/100}${n})`}function m(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):i(d)}function p(d){let g=o.indexOf(d);return g===0?i(o[1]):g===o.length-1?c(o[g]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:i,down:c,between:u,only:m,not:p,unit:n,...l}}function ss(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,i;let a=/min-width:\s*([0-9.]+)/;return(((o=r.match(a))==null?void 0:o[1])||0)-+(((i=l.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,l)=>{let a=t[l];return delete r[l],r[l]=a,r},{...t}):t}function Zm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ep(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,l]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(a)}function tp(e){let t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function n(a,o){a.up=(...i)=>t(e.breakpoints.up(...i),o),a.down=(...i)=>t(e.breakpoints.down(...i),o),a.between=(...i)=>t(e.breakpoints.between(...i),o),a.only=(...i)=>t(e.breakpoints.only(...i),o),a.not=(...i)=>{let c=t(e.breakpoints.not(...i),o);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let r={},l=a=>(n(r,a),r);return n(l),{...e,containerQueries:l}}var np={borderRadius:4};function rp(e,t){return t?Ne(e,t,{clone:!1}):e}var yn=rp;const er={xs:0,sm:600,md:900,lg:1200,xl:1536};var cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${er[e]}px)`},lp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:er[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let l=r.breakpoints||cs;return t.reduce((a,o,i)=>(a[l.up(l.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let l=r.breakpoints||cs;return Object.keys(t).reduce((a,o)=>{if(Zm(l.keys,o)){let i=ep(r.containerQueries?r:lp,o);i&&(a[i]=n(t[o],o))}else if(Object.keys(l.values||er).includes(o)){let i=l.up(o);a[i]=n(t[o],o)}else{let i=o;a[i]=t[i]}return a},{})}return n(t)}function ap(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let l=e.up(r);return n[l]={},n},{}))||{}}function us(e,t){return e.reduce((n,r)=>{let l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Il(e){if(typeof e!="string")throw Error(ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((l,a)=>l&&l[a]?l[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function nr(e,t,n,r=n){let l;return l=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:tr(e,n)||r,t&&(l=t(l,r,e)),l}function op(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,a=o=>{if(o[t]==null)return null;let i=o[t],c=o.theme,u=tr(c,r)||{};return it(o,i,m=>{let p=nr(u,l,m);return m===p&&typeof m=="string"&&(p=nr(u,l,`${t}${m==="default"?"":Il(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var ae=op;function ip(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var sp={m:"margin",p:"padding"},cp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ds={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},up=ip(e=>{if(e.length>2)if(ds[e])e=ds[e];else return[e];let[t,n]=e.split(""),r=sp[t],l=cp[n]||"";return Array.isArray(l)?l.map(a=>r+a):[r+l]});const El=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var ms=[...El,...Pl];function xn(e,t,n,r){let l=tr(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?a=>typeof a=="string"?a:typeof l=="string"?`calc(${a} * ${l})`:l*a:Array.isArray(l)?a=>{if(typeof a=="string")return a;let o=l[Math.abs(a)];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof l=="function"?l:()=>{}}function Ol(e){return xn(e,"spacing",8,"spacing")}function bn(e,t){return typeof t=="string"||t==null?t:e(t)}function dp(e,t){return n=>e.reduce((r,l)=>(r[l]=bn(t,n),r),{})}function mp(e,t,n,r){if(!t.includes(n))return null;let l=dp(up(n),r),a=e[n];return it(e,a,l)}function $l(e,t){let n=Ol(e.theme);return Object.keys(e).map(r=>mp(e,t,r,n)).reduce(yn,{})}function re(e){return $l(e,El)}re.propTypes={},re.filterProps=El;function le(e){return $l(e,Pl)}le.propTypes={},le.filterProps=Pl;function ps(e){return $l(e,ms)}ps.propTypes={},ps.filterProps=ms;function fs(e=8,t=Ol({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(l=>{let a=t(l);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function pp(...e){let t=e.reduce((r,l)=>(l.filterProps.forEach(a=>{r[a]=l}),r),{}),n=r=>Object.keys(r).reduce((l,a)=>t[a]?yn(l,t[a](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}var rr=pp;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Te(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fp=Te("border",$e),gp=Te("borderTop",$e),hp=Te("borderRight",$e),yp=Te("borderBottom",$e),xp=Te("borderLeft",$e),bp=Te("borderColor"),vp=Te("borderTopColor"),wp=Te("borderRightColor"),Sp=Te("borderBottomColor"),Cp=Te("borderLeftColor"),jp=Te("outline",$e),kp=Te("outlineColor"),lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=xn(e.theme,"shape.borderRadius",4,"borderRadius");return it(e,e.borderRadius,n=>({borderRadius:bn(t,n)}))}return null};lr.propTypes={},lr.filterProps=["borderRadius"],rr(fp,gp,hp,yp,xp,bp,vp,wp,Sp,Cp,lr,jp,kp);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){let t=xn(e.theme,"spacing",8,"gap");return it(e,e.gap,n=>({gap:bn(t,n)}))}return null};ar.propTypes={},ar.filterProps=["gap"];const or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=xn(e.theme,"spacing",8,"columnGap");return it(e,e.columnGap,n=>({columnGap:bn(t,n)}))}return null};or.propTypes={},or.filterProps=["columnGap"];const ir=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=xn(e.theme,"spacing",8,"rowGap");return it(e,e.rowGap,n=>({rowGap:bn(t,n)}))}return null};ir.propTypes={},ir.filterProps=["rowGap"],rr(ar,or,ir,ae({prop:"gridColumn"}),ae({prop:"gridRow"}),ae({prop:"gridAutoFlow"}),ae({prop:"gridAutoColumns"}),ae({prop:"gridAutoRows"}),ae({prop:"gridTemplateColumns"}),ae({prop:"gridTemplateRows"}),ae({prop:"gridTemplateAreas"}),ae({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}rr(ae({prop:"color",themeKey:"palette",transform:Ut}),ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),ae({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const _p=ae({prop:"width",transform:Fe}),Tl=e=>e.maxWidth!==void 0&&e.maxWidth!==null?it(e,e.maxWidth,t=>{var r,l,a,o,i;let n=((a=(l=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:l.values)==null?void 0:a[t])||er[t];return n?((i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Fe(t)}}):null;Tl.filterProps=["maxWidth"];const Rp=ae({prop:"minWidth",transform:Fe}),Mp=ae({prop:"height",transform:Fe}),Np=ae({prop:"maxHeight",transform:Fe}),Fp=ae({prop:"minHeight",transform:Fe});ae({prop:"size",cssProperty:"width",transform:Fe}),ae({prop:"size",cssProperty:"height",transform:Fe}),rr(_p,Tl,Rp,Mp,Np,Fp,ae({prop:"boxSizing"}));var vn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lr},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:ir},columnGap:{style:or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Tl},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ap(...e){let t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ip(e,t){return typeof e=="function"?e(t):e}function Ep(){function e(n,r,l,a){let o={[n]:r,theme:l},i=a[n];if(!i)return{[n]:r};let{cssProperty:c=n,themeKey:u,transform:m,style:p}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};let d=tr(l,u)||{};return p?p(o):it(o,r,g=>{let f=nr(d,m,g);return g===f&&typeof g=="string"&&(f=nr(d,m,`${n}${g==="default"?"":Il(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){let{sx:r,theme:l={},nested:a}=n||{};if(!r)return null;let o=l.unstable_sxConfig??vn;function i(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;let m=ap(l.breakpoints),p=Object.keys(m),d=m;return Object.keys(u).forEach(g=>{let f=Ip(u[g],l);if(f!=null)if(typeof f=="object")if(o[g])d=yn(d,e(g,f,l,o));else{let x=it({theme:l},f,w=>({[g]:w}));Ap(x,f)?d[g]=t({sx:f,theme:l,nested:!0}):d=yn(d,x)}else d=yn(d,e(g,f,l,o))}),!a&&l.modularCssLayers?{"@layer sx":ss(l,us(p,d))}:ss(l,us(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var gs=Ep();gs.filterProps=["sx"];var Mt=gs;function Pp(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function Op(e={},...t){let{breakpoints:n={},palette:r={},spacing:l,shape:a={},...o}=e,i=Qm(n),c=fs(l),u=Ne({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...np,...a}},o);return u=tp(u),u.applyStyles=Pp,u=t.reduce((m,p)=>Ne(m,p),u),u.unstable_sxConfig={...vn,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return Mt({sx:m,theme:this})},u}var zl=Op;function $p(e){return Object.keys(e).length===0}function Tp(e=null){let t=b.useContext(fn);return!t||$p(t)?e:t}var Vl=Tp;const zp=zl();function Vp(e=zp){return Vl(e)}var Dl=Vp;function hs(e){let t=yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Dp({styles:e,themeId:t,defaultTheme:n={}}){let r=Dl(n),l=t&&r[t]||r,a=typeof e=="function"?e(l):e;return l.modularCssLayers&&(a=Array.isArray(a)?a.map(o=>hs(typeof o=="function"?o(l):o)):hs(a)),(0,s.jsx)(rs,{styles:a})}var ys=Dp,Lp=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??vn;return Object.keys(e).forEach(l=>{n[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function Hp(e){let{sx:t,...n}=e,{systemProps:r,otherProps:l}=Lp(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...o)=>{let i=t(...o);return Ye(i)?{...r,...i}:r}:{...r,...t},{...l,sx:a}}var xs=e=>e,bs=(()=>{let e=xs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xs}}})();function Bp(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:l}=e,a=ls("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Mt);return b.forwardRef(function(o,i){let c=Dl(n),{className:u,component:m="div",...p}=Hp(o);return(0,s.jsx)(a,{as:m,ref:i,className:Tn(u,l?l(r):r),theme:t&&c[t]||c,...p})})}const Wp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sr(e,t,n="Mui"){let r=Wp[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function cr(e,t,n="Mui"){let r={};return t.forEach(l=>{r[l]=sr(e,l,n)}),r}function vs(e){let{variants:t,...n}=e,r={variants:t,style:yt(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=yt(l.style))}),r}const Gp=zl();function Ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function qp(e){return e?(t,n)=>n[e]:null}function Kp(e,t,n){e.theme=Xp(e.theme)?n:e.theme[t]||e.theme}function ur(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>ur(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?Nt(r.style,n):r.style;else{let{variants:a,...o}=r;l=n?Nt(yt(o),n):o}return ws(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?Nt(yt(r.style),n):r.style:n?Nt(yt(r),n):r}function ws(e,t,n=[],r=void 0){var a;let l;e:for(let o=0;o<t.length;o+=1){let i=t[o];if(typeof i.props=="function"){if(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(l))continue}else for(let c in i.props)if(e[c]!==i.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==i.props[c])continue e;typeof i.style=="function"?(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(yt(i.style(l)),r):i.style(l))):n.push(r?Nt(yt(i.style),r):i.style)}return n}function Up(e={}){let{themeId:t,defaultTheme:n=Gp,rootShouldForwardProp:r=Ll,slotShouldForwardProp:l=Ll}=e;function a(o){Kp(o,t,n)}return(o,i={})=>{Xm(o,k=>k.filter(C=>C!==Mt));let{name:c,slot:u,skipVariantsResolver:m,skipSx:p,overridesResolver:d=qp(Yp(u)),...g}=i,f=c&&c.startsWith("Mui")||u?"components":"custom",x=m===void 0?u&&u!=="Root"&&u!=="root"||!1:m,w=p||!1,y=Ll;u==="Root"||u==="root"?y=r:u?y=l:Jp(o)&&(y=void 0);let S=ls(o,{shouldForwardProp:y,label:void 0,...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(C){return ur(C,k,C.theme.modularCssLayers?f:void 0)};if(Ye(k)){let C=vs(k);return function(N){return C.variants?ur(N,C,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?Nt(C.style,f):C.style}}return k},j=(...k)=>{let C=[],N=k.map(v),R=[];if(C.push(a),c&&d&&R.push(function(h){var I,z;let M=(z=(I=h.theme.components)==null?void 0:I[c])==null?void 0:z.styleOverrides;if(!M)return null;let A={};for(let V in M)A[V]=ur(h,M[V],h.theme.modularCssLayers?"theme":void 0);return d(h,A)}),c&&!x&&R.push(function(h){var A,I,z;let M=(z=(I=(A=h.theme)==null?void 0:A.components)==null?void 0:I[c])==null?void 0:z.variants;return M?ws(h,M,[],h.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(N[0])){let h=N.shift(),M=Array(C.length).fill(""),A=Array(R.length).fill(""),I;I=[...M,...h,...A],I.raw=[...M,...h.raw,...A],C.unshift(I)}let _=S(...C,...N,...R);return o.muiName&&(_.muiName=o.muiName),_};return S.withConfig&&(j.withConfig=S.withConfig),j}}function Xp(e){for(let t in e)return!1;return!0}function Jp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Hl(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let l=r;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){let a=e[l],o=t[l];if(!o)n[l]=a||{};else if(!a)n[l]=o;else for(let i in n[l]={...o},a)if(Object.prototype.hasOwnProperty.call(a,i)){let c=i;n[l][c]=Hl(a[c],o[c])}}else n[l]===void 0&&(n[l]=e[l])}return n}var Ft=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Qp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Zp=Qp;function Bl(e,t=0,n=1){return Zp(e,t,n)}function ef(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xt(e){if(e.type)return e;if(e.charAt(0)==="#")return xt(ef(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(ht(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw Error(ht(10,l))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:l}}const tf=e=>{let t=xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wn=(e,t)=>{try{return tf(e)}catch{return e}};function dr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((l,a)=>a<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ss(e){e=xt(e);let{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,a=r*Math.min(l,1-l),o=(u,m=(u+n/30)%12)=>l-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),dr({type:i,values:c})}function Wl(e){e=xt(e);let t=e.type==="hsl"||e.type==="hsla"?xt(Ss(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nf(e,t){let n=Wl(e),r=Wl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gl(e,t){return e=xt(e),t=Bl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dr(e)}function mr(e,t,n){try{return Gl(e,t)}catch{return e}}function ql(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dr(e)}function q(e,t,n){try{return ql(e,t)}catch{return e}}function Kl(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dr(e)}function K(e,t,n){try{return Kl(e,t)}catch{return e}}function rf(e,t=.15){return Wl(e)>.5?ql(e,t):Kl(e,t)}function pr(e,t,n){try{return rf(e,t)}catch{return e}}function lf(e,t=166){let n;function r(...l){clearTimeout(n),n=setTimeout(()=>{e.apply(this,l)},t)}return r.clear=()=>{clearTimeout(n)},r}function af(e){return e&&e.ownerDocument||document}function Cs(e){return af(e).defaultView||window}var js=0;function of(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(js+=1,n(`mui-${js}`))},[t]),r}var ks={...b}.useId;function sf(e){if(ks!==void 0){let t=ks();return e??t}return of(e)}function cf(e){let t=b.useRef(e);return Ft(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}var uf=cf;function _s(...e){let t=b.useRef(void 0),n=b.useCallback(r=>{let l=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let o=a,i=o(r);return typeof i=="function"?i:()=>{o(null)}}return a.current=r,()=>{a.current=null}});return()=>{l.forEach(a=>a==null?void 0:a())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function Ul(e,t,n=void 0){let r={};for(let l in e){let a=e[l],o="",i=!0;for(let c=0;c<a.length;c+=1){let u=a[c];u&&(o+=(i===!0?"":" ")+t(u),i=!1,n&&n[u]&&(o+=" "+n[u]))}r[l]=o}return r}var Rs=b.createContext(null);function Xl(){return b.useContext(Rs)}var df=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function mf(e,t){return typeof t=="function"?t(e):{...e,...t}}function pf(e){let{children:t,theme:n}=e,r=Xl(),l=b.useMemo(()=>{let a=r===null?{...n}:mf(r,n);return a!=null&&(a[df]=r!==null),a},[n,r]);return(0,s.jsx)(Rs.Provider,{value:l,children:t})}var ff=pf,gf=b.createContext();function hf({value:e,...t}){return(0,s.jsx)(gf.Provider,{value:e??!0,...t})}var yf=hf,Ms=b.createContext(void 0);function xf({value:e,children:t}){return(0,s.jsx)(Ms.Provider,{value:e,children:t})}function bf(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let l=t.components[n];return l.defaultProps?Hl(l.defaultProps,r):!l.styleOverrides&&!l.variants?Hl(l,r):r}function vf({props:e,name:t}){return bf({props:e,name:t,theme:{components:b.useContext(Ms)}})}var wf=xf;function Sf(e){let t=Vl(),n=sf()||"",{modularCssLayers:r}=e,l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return l=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,l):`@layer ${l};`,Ft(()=>{var i,c;let a=document.querySelector("head");if(!a)return;let o=a.firstChild;if(l){if(o&&((i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order"))&&o.getAttribute("data-mui-layer-order")===n)return;let u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=l,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[l,n]),l?(0,s.jsx)(ys,{styles:l}):null}var Ns={};function Fs(e,t,n,r=!1){return b.useMemo(()=>{let l=e&&t[e]||t;if(typeof n=="function"){let a=n(l),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Cf(e){let{children:t,theme:n,themeId:r}=e,l=Vl(Ns),a=Xl()||Ns,o=Fs(r,l,n),i=Fs(r,a,n,!0),c=(r?o[r]:o).direction==="rtl",u=Sf(o);return(0,s.jsx)(ff,{theme:i,children:(0,s.jsx)(fn.Provider,{value:o,children:(0,s.jsx)(yf,{value:c,children:(0,s.jsxs)(wf,{value:r?o[r].components:o.components,children:[u,t]})})})})}var As=Cf,Is={theme:void 0};function jf(e){let t,n;return function(r){let l=t;return(l===void 0||r.theme!==n)&&(Is.theme=r.theme,l=vs(e(Is)),t=l,n=r.theme),l}}const Jl="mode",Yl="color-scheme";function kf(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=Jl,colorSchemeStorageKey:a=Yl,attribute:o="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:c}=e||{},u="",m=o;if(o==="class"&&(m=".%s"),o==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);u+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
|
|
2
|
+
var Zx=Object.defineProperty;var eb=(b,s,gt)=>s in b?Zx(b,s,{enumerable:!0,configurable:!0,writable:!0,value:gt}):b[s]=gt;var On=(b,s,gt)=>eb(b,typeof s!="symbol"?s+"":s,gt);import{s as zr,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as tb,c as nb,f as Eu,g as rb,h as lb,l as Vr,n as at,p as Pe,s as ab,u as $n}from"./useEvent-D91BmmQi.js";import{t as ob}from"./react-Bj1aDYRI.js";import{At as ib,G as Pu,Lt as Dr,Mi as Ou,Ni as sb,Ot as cb,Pi as ub,Yn as db,cr as mb,ct as pb,ei as fb,f as gb,hr as hb,ii as $u,ni as yb,qn as Tu,ti as xb,vt as zu,wi as bb,__tla as vb}from"./cells-EJo3u4za.js";import{t as wb}from"./react-dom-CSu739Rf.js";import{t as L}from"./compiler-runtime-B3qBwwSJ.js";import{t as Sb}from"./range-D-0CV4c0.js";import{_ as ot,d as Lr,v as Cb}from"./useEventListener-DGjKht0c.js";import{t as ft}from"./invariant-CkiqGLcK.js";import{r as jb}from"./utils-8btzWeZg.js";import{S as Vu,n as kb}from"./config-DoZCLcOb.js";import{t as Hr}from"./ErrorBoundary-dxChUL02.js";import{n as Tn}from"./clsx-XrBBnd7s.js";import{n as _b,t as $}from"./cn-DYvqRARy.js";import{t as Rb}from"./jsx-runtime-Blw4afVn.js";import{C as Du,S as Mb,a as Nb,b as rn,h as Fb,n as Ab,r as Lu,t as Ib,v as Hu}from"./fullscreen-k58KVlT-.js";import{a as Eb,c as Pb,i as Ua,l as Ob,o as $b,r as Bu,s as Tb}from"./menu-items-Dtw5N98_.js";import{i as zb,n as Vb,r as Db}from"./multi-map-MSuUqmbC.js";import{a as Lb,c as Hb,i as Br,n as Bb,o as Wb,r as Wr,s as Gb,t as Gr,u as qb}from"./popover-AtoFZ7i4.js";import{c as Kb,i as Xa,n as Ub,o as Xb,s as Jb,t as Yb}from"./select--zcABebs.js";import{A as Qb,C as Zb,D as ev,E as tv,O as nv,S as rv,T as lv,_ as av,a as Z,b as ov,c as ln,d as qr,f as Wu,g as iv,h as sv,j as Gu,k as cv,o as Ja,p as Kr,r as Ur,s as Xr,t as Jr,u as zn,v as uv,w as dv,x as mv,y as pv}from"./dropdown-menu-DrHAuMTb.js";import{d as fv,h as gv,i as hv,m as qu,p as yv}from"./download-TSo32ofd.js";import{t as Ce}from"./tooltip-DmqhBBs6.js";import{r as qe,t as de}from"./button-BKVLeSTX.js";import{at as Ku}from"./dist-VwkX7yeV.js";import{t as xv}from"./arrays-DAC2orgH.js";import{n as bv,t as vv}from"./once-hq2TLzOp.js";import{t as wv}from"./createReducer-CYlwteGD.js";import{n as Sv}from"./useNonce-CbdaHKzX.js";import{i as kt,n as Cv,r as jv}from"./strings-pfr2N700.js";import{t as Uu}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{t as kv,__tla as _v}from"./LazyAnyLanguageCodeMirror-CoYqQxHb.js";import{n as Rv,r as Mv,t as Xu}from"./table-qC3alE1r.js";import{t as Nv}from"./check-B-sKate2.js";import{r as Yr,t as Qr}from"./x-Bv2rCglF.js";import{t as Fv}from"./chevron-right-CgvDWFE3.js";import{n as Ju,r as Av,t as Iv}from"./maps-B4xARV9R.js";import{d as Ev,f as Zr,i as Pv,n as Ov,o as $v,s as Tv,t as zv,__tla as Vv}from"./markdown-renderer-B9RsGqHb.js";import{t as el}from"./copy-DFMsQ6MJ.js";import{t as Dv}from"./ellipsis-DidENKDy.js";import{n as Lv,t as Yu}from"./spinner-C5wIpWgQ.js";import{t as Hv}from"./message-circle-DiHwtSG8.js";import{i as Bv,n as Wv,r as Gv,t as qv}from"./MarimoErrorOutput-Bc9JufDr.js";import{dt as Qu,o as Zu,r as Kv}from"./input-Bg12i6qY.js";import{t as Uv}from"./badge-CwbVR_sO.js";import{t as Xv}from"./preload-helper-D2MJg03u.js";import{t as tl}from"./use-toast-BDYuj3zG.js";import{a as Jv}from"./session-DdnWW30b.js";import{r as nl}from"./useTheme-DCDmxPD0.js";import{a as Yv,n as Qv,r as Zv,t as ew}from"./dates-stqTIkXD.js";import{t as ed}from"./isValid-U-UFA9KI.js";import{n as an}from"./copy-Bizk-4hH.js";import{t as tw}from"./copy-icon-BGs1Pbai.js";import{t as rl}from"./useDateFormatter-BEz9SEXo.js";import{t as Ke}from"./context-DGqo1TbK.js";import{t as nw}from"./useNumberFormatter-wQU1z0W_.js";import{t as Ya}from"./RenderHTML-0dk6-mYI.js";import{i as Qa,n as rw,r as Oe,t as lw}from"./numbers--nDjbAPa.js";import{r as aw}from"./errors-CZb6hI2x.js";import{a as ow,i as Za,r as iw,s as sw,t as cw}from"./utils-BZwMGX81.js";import{n as uw}from"./vega-loader.browser-DXARUlxo.js";import{c as dw,i as mw,l as pw,o as fw,u as gw}from"./react-icons.esm-BUYTQ32a.js";import{n as hw,t as yw}from"./emotion-is-prop-valid.esm-DYxi7n2b.js";import{t as xw}from"./extends-Co37_JfG.js";import{t as bw}from"./kbd-BUtlbGdu.js";import{r as vw}from"./cell-link-CcAqXeeg.js";import{t as ww}from"./useIframeCapabilities-C8jvQ1Lj.js";import{n as td,t as Sw}from"./error-banner-bXc_9BBZ.js";import{n as Cw}from"./useAsyncData-aCoWDe-l.js";import{a as nd,o as eo,r as rd,s as ld,t as ad}from"./command-DvF_4mQa.js";import{t as jw}from"./formats-BQHP_yQk.js";import{a as kw,i as _w,n as Rw,o as to,r as od,t as Mw}from"./table-B03CpBmt.js";import{r as Nw,t as Fw}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";let no,ro,ll,lo,id,Vn,sd,al,cd,ao,oo,io,ud,so,co,uo,mo,dd,md,pd,po,fd,fo,ol,gd,go,hd,yd,ho,il,xd,yo,xo,bd,bo,sl,cl,ul,dl,vo,wo,So,Dn,vd,wd,Co,jo,ko,_o,ml,Ro,Mo,zt,No,Ln,Vt,Fo,Ao,_t,Io,Eo,on,sn,Po,Oo,Sd,Cd,$o,To,zo,pl,Vo,Hn,Aw=Promise.all([(()=>{try{return vb}catch{}})(),(()=>{try{return _v}catch{}})(),(()=>{try{return Vv}catch{}})()]).then(async()=>{var $t;var b=zr(ob(),1),s=zr(Rb(),1),gt="ContextMenu",[jd,Iw]=Mb(gt,[Gu]),be=Gu(),[kd,Do]=jd(gt),Lo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:l,modal:a=!0}=e,[o,i]=b.useState(!1),c=be(t),u=Fb(r),m=b.useCallback(p=>{i(p),u(p)},[u]);return(0,s.jsx)(kd,{scope:t,open:o,onOpenChange:m,modal:a,children:(0,s.jsx)(tv,{...c,dir:l,open:o,onOpenChange:m,modal:a,children:n})})};Lo.displayName=gt;var Ho="ContextMenuTrigger",Bo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...l}=e,a=Do(Ho,n),o=be(n),i=b.useRef({x:0,y:0}),c=b.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=b.useRef(0),m=b.useCallback(()=>window.clearTimeout(u.current),[]),p=d=>{i.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return b.useEffect(()=>m,[m]),b.useEffect(()=>{r&&m()},[r,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sv,{...o,virtualRef:c}),(0,s.jsx)(Du.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...l,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:rn(e.onContextMenu,d=>{m(),p(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:rn(e.onPointerDown,Bn(d=>{m(),u.current=window.setTimeout(()=>p(d),700)})),onPointerMove:r?e.onPointerMove:rn(e.onPointerMove,Bn(m)),onPointerCancel:r?e.onPointerCancel:rn(e.onPointerCancel,Bn(m)),onPointerUp:r?e.onPointerUp:rn(e.onPointerUp,Bn(m))})]})});Bo.displayName=Ho;var _d="ContextMenuPortal",Wo=e=>{let{__scopeContextMenu:t,...n}=e,r=be(t);return(0,s.jsx)(Zb,{...r,...n})};Wo.displayName=_d;var Go="ContextMenuContent",qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=Do(Go,n),a=be(n),o=b.useRef(!1);return(0,s.jsx)(uv,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,i),!i.defaultPrevented&&o.current&&i.preventDefault(),o.current=!1},onInteractOutside:i=>{var c;(c=e.onInteractOutside)==null||c.call(e,i),!i.defaultPrevented&&!l.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qo.displayName=Go;var Rd="ContextMenuGroup",Md=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(pv,{...l,...r,ref:t})});Md.displayName=Rd;var Nd="ContextMenuLabel",Ko=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(rv,{...l,...r,ref:t})});Ko.displayName=Nd;var Fd="ContextMenuItem",Uo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ov,{...l,...r,ref:t})});Uo.displayName=Fd;var Ad="ContextMenuCheckboxItem",Xo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(av,{...l,...r,ref:t})});Xo.displayName=Ad;var Id="ContextMenuRadioGroup",Ed=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(dv,{...l,...r,ref:t})});Ed.displayName=Id;var Pd="ContextMenuRadioItem",Jo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(lv,{...l,...r,ref:t})});Jo.displayName=Pd;var Od="ContextMenuItemIndicator",Yo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(mv,{...l,...r,ref:t})});Yo.displayName=Od;var $d="ContextMenuSeparator",Qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ev,{...l,...r,ref:t})});Qo.displayName=$d;var Td="ContextMenuArrow",zd=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(iv,{...l,...r,ref:t})});zd.displayName=Td;var Zo="ContextMenuSub",Vd=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:l,defaultOpen:a}=e,o=be(t),[i,c]=Hu({prop:l,defaultProp:a??!1,onChange:r,caller:Zo});return(0,s.jsx)(nv,{...o,open:i,onOpenChange:c,children:n})};Vd.displayName=Zo;var Dd="ContextMenuSubTrigger",ei=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(Qb,{...l,...r,ref:t})});ei.displayName=Dd;var Ld="ContextMenuSubContent",ti=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(cv,{...l,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ti.displayName=Ld;function Bn(e){return t=>t.pointerType==="mouse"?void 0:e(t)}var Hd=Lo,Bd=Bo,Wd=Wo,ni=qo,ri=Ko,li=Uo,ai=Xo,oi=Jo,ii=Yo,si=Qo,ci=ei,ui=ti,di="Toggle",mi=b.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:l,...a}=e,[o,i]=Hu({prop:n,onChange:l,defaultProp:r??!1,caller:di});return(0,s.jsx)(Du.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:rn(e.onClick,()=>{e.disabled||i(!o)})})});mi.displayName=di;var pi=mi,fi=new WeakMap;function Gd(e,t){let n=Eu(t),r=gi(n);for(let[l,...a]of e)(!r.has(l)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(l),n.set(l,...a))}let gi,hi,yi,fl,xi,bi,vi,wi,Si,Ci,ji,ki,gl,_i,Ri,Mi,Ni;gi=e=>{let t=fi.get(e);return t||(t=new WeakSet,fi.set(e,t)),t},Vo=ne("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),hi=ne("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),yi=ne("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),fl=ne("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),xi=ne("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),$o=ne("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ho=ne("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),bi=ne("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),wo=ne("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),vi=ne("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),wi=ne("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Si=ne("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),Dn=ne("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Ro=ne("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Ci=ne("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),ji=ne("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ki=ne("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),gl=ne("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),_i=ne("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),Ri=ne("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Mi=ne("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),Ni=ne("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),Fo=ne("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]);function qd(e){return{all:e||(e=new Map),on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(l){l(n)}),(r=e.get("*"))&&r.slice().map(function(l){l(t,n)})}}}let Wn,Fi,Ai,hl,yl,Ii,Ei,Pi,Oi,xl;Wn=(0,b.createContext)(null),_o=e=>{let{controller:t}=(0,b.useContext)(Wn),n=b.useRef(Symbol("fill"));return(0,b.useEffect)(()=>(t.mount({name:e.name,ref:n.current,children:e.children}),()=>{t.unmount({name:e.name,ref:n.current})}),[]),(0,b.useEffect)(()=>{t.update({name:e.name,ref:n.current,children:e.children})}),null},Fi=Object.defineProperty,Ai=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t,n)=>(Ai(e,typeof t=="symbol"?t:t+"",n),n),yl=console,Ii=class{constructor(e){hl(this,"_bus"),hl(this,"_db"),this._bus=e,this.handleFillMount=this.handleFillMount.bind(this),this.handleFillUpdated=this.handleFillUpdated.bind(this),this.handleFillUnmount=this.handleFillUnmount.bind(this),this._db={byName:new Map,byFill:new Map}}mount(){this._bus.on("fill-mount",this.handleFillMount),this._bus.on("fill-updated",this.handleFillUpdated),this._bus.on("fill-unmount",this.handleFillUnmount)}unmount(){this._bus.off("fill-mount",this.handleFillMount),this._bus.off("fill-updated",this.handleFillUpdated),this._bus.off("fill-unmount",this.handleFillUnmount)}handleFillMount({fill:e}){let t=b.Children.toArray(e.children),n=e.name,r={fill:e,children:t,name:n},l=this._db.byName.get(n);l?(l.components.push(r),l.listeners.forEach(a=>a([...l.components]))):this._db.byName.set(n,{listeners:[],components:[r]}),this._db.byFill.set(e.ref,r)}handleFillUpdated({fill:e}){let t=this._db.byFill.get(e.ref),n=b.Children.toArray(e.children);if(t){t.children=n;let r=this._db.byName.get(t.name);if(r)r.listeners.forEach(l=>l([...r.components]));else throw Error("registration was expected to be defined")}else{yl.error("[handleFillUpdated] component was expected to be defined");return}}handleFillUnmount({fill:e}){let t=this._db.byFill.get(e.ref);if(!t){yl.error("[handleFillUnmount] component was expected to be defined");return}let n=t.name,r=this._db.byName.get(n);if(!r)throw Error("registration was expected to be defined");r.components=r.components.filter(l=>l!==t),this._db.byFill.delete(e.ref),r.listeners.length===0&&r.components.length===0?this._db.byName.delete(n):r.listeners.forEach(l=>l([...r.components]))}onComponentsChange(e,t){let n=this._db.byName.get(e);n?(n.listeners.push(t),t(n.components)):(this._db.byName.set(e,{listeners:[t],components:[]}),t([]))}getFillsByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.fill):[]}getChildrenByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.children).reduce((n,r)=>n.concat(r),[]):[]}removeOnComponentsChange(e,t){let n=this._db.byName.get(e);if(!n)throw Error("expected registration to be defined");let r=n.listeners;r.splice(r.indexOf(t),1)}},Ei=Object.defineProperty,Pi=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oi=(e,t,n)=>(Pi(e,typeof t=="symbol"?t:t+"",n),n),xl=class{constructor(){Oi(this,"bus",qd())}mount(e){this.bus.emit("fill-mount",{fill:e})}unmount(e){this.bus.emit("fill-unmount",{fill:e})}update(e){this.bus.emit("fill-updated",{fill:e})}};function Kd(e){let t=e||new xl;return{controller:t,manager:new Ii(t.bus)}}Sd=({controller:e,children:t})=>{let[n]=b.useState(()=>{let r=Kd(e);return r.manager.mount(),r});return b.useEffect(()=>()=>{n.manager.unmount()},[]),b.createElement(Wn.Provider,{value:n},t)},dl=function(e,t){let[n,r]=(0,b.useState)([]),{manager:l}=(0,b.useContext)(Wn);return(0,b.useEffect)(()=>(l.onComponentsChange(e,r),()=>{l.removeOnComponentsChange(e,r)}),[e]),n.flatMap((a,o)=>{let{children:i}=a;return i.map((c,u)=>{if(typeof c=="number"||typeof c=="string")throw Error("Only element children will work here");return b.cloneElement(c,{key:o.toString()+u.toString(),...t})})})},sl=e=>{let t=dl(e.name,e.childProps);if(typeof e.children=="function"){let n=e.children(t);if(b.isValidElement(n)||n===null)return n;throw Error("Slot rendered with function must return a valid React Element.")}return t},bd=new xl,on={SIDEBAR:"sidebar",CONTEXT_AWARE_PANEL:"context-aware-panel",CONTEXT_AWARE_PANEL_HEADER:"context-aware-panel-header"},Ln=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},xd=function(){return ft(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files},wd=function(){var e;return(e=window==null?void 0:window.__MARIMO_STATIC__)==null?void 0:e.modelNotifications};var Ud=!1;function Xd(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jd(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yd=(function(){function e(n){var r=this;this._insertTag=function(l){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(l,a),r.tags.push(l)},this.isSpeedy=n.speedy===void 0?!Ud:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Jd(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=Xd(r);try{l.insertRule(n,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ve="-ms-",Gn="-moz-",H="-webkit-",$i="comm",bl="rule",vl="decl",Qd="@import",Ti="@keyframes",Zd="@layer",em=Math.abs,qn=String.fromCharCode,tm=Object.assign;function nm(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function zi(e){return e.trim()}function rm(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function wl(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function cn(e,t,n){return e.slice(t,n)}function Ue(e){return e.length}function Sl(e){return e.length}function Kn(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var Un=1,Dt=1,Vi=0,ke=0,ie=0,Lt="";function Xn(e,t,n,r,l,a,o){return{value:e,root:t,parent:n,type:r,props:l,children:a,line:Un,column:Dt,length:o,return:""}}function un(e,t){return tm(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function am(){return ie}function om(){return ie=ke>0?ge(Lt,--ke):0,Dt--,ie===10&&(Dt=1,Un--),ie}function Me(){return ie=ke<Vi?ge(Lt,ke++):0,Dt++,ie===10&&(Dt=1,Un++),ie}function Xe(){return ge(Lt,ke)}function Jn(){return ke}function dn(e,t){return cn(Lt,e,t)}function mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return Un=Dt=1,Vi=Ue(Lt=e),ke=0,[]}function Li(e){return Lt="",e}function Yn(e){return zi(dn(ke-1,Cl(e===91?e+2:e===40?e+1:e)))}function im(e){for(;(ie=Xe())&&ie<33;)Me();return mn(e)>2||mn(ie)>3?"":" "}function sm(e,t){for(;--t&&Me()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return dn(e,Jn()+(t<6&&Xe()==32&&Me()==32))}function Cl(e){for(;Me();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&Cl(ie);break;case 40:e===41&&Cl(e);break;case 92:Me();break}return ke}function cm(e,t){for(;Me()&&e+ie!==57&&!(e+ie===84&&Xe()===47););return"/*"+dn(t,ke-1)+"*"+qn(e===47?e:Me())}function um(e){for(;!mn(Xe());)Me();return dn(e,ke)}function dm(e){return Li(Qn("",null,null,null,[""],e=Di(e),0,[0],e))}function Qn(e,t,n,r,l,a,o,i,c){for(var u=0,m=0,p=o,d=0,g=0,f=0,x=1,w=1,y=1,S=0,v="",j=l,k=a,C=r,N=v;w;)switch(f=S,S=Me()){case 40:if(f!=108&&ge(N,p-1)==58){wl(N+=B(Yn(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Yn(S);break;case 9:case 10:case 13:case 32:N+=im(f);break;case 92:N+=sm(Jn()-1,7);continue;case 47:switch(Xe()){case 42:case 47:Kn(mm(cm(Me(),Jn()),t,n),c);break;default:N+="/"}break;case 123*x:i[u++]=Ue(N)*y;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:y==-1&&(N=B(N,/\f/g,"")),g>0&&Ue(N)-p&&Kn(g>32?Bi(N+";",r,n,p-1):Bi(B(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(Kn(C=Hi(N,t,n,u,m,l,i,v,j=[],k=[],p),a),S===123)if(m===0)Qn(N,t,C,C,j,a,p,i,k);else switch(d===99&&ge(N,3)===110?100:d){case 100:case 108:case 109:case 115:Qn(e,C,C,r&&Kn(Hi(e,C,C,0,0,l,i,v,l,j=[],p),k),l,k,p,i,r?j:k);break;default:Qn(N,C,C,C,[""],k,0,i,k)}}u=m=g=0,x=y=1,v=N="",p=o;break;case 58:p=1+Ue(N),g=f;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&om()==125)continue}switch(N+=qn(S),S*x){case 38:y=m>0?1:(N+="\f",-1);break;case 44:i[u++]=(Ue(N)-1)*y,y=1;break;case 64:Xe()===45&&(N+=Yn(Me())),d=Xe(),m=p=Ue(v=N+=um(Jn())),S++;break;case 45:f===45&&Ue(N)==2&&(x=0)}}return a}function Hi(e,t,n,r,l,a,o,i,c,u,m){for(var p=l-1,d=l===0?a:[""],g=Sl(d),f=0,x=0,w=0;f<r;++f)for(var y=0,S=cn(e,p+1,p=em(x=o[f])),v=e;y<g;++y)(v=zi(x>0?d[y]+" "+S:B(S,/&\f/g,d[y])))&&(c[w++]=v);return Xn(e,t,n,l===0?bl:i,c,u,m)}function mm(e,t,n){return Xn(e,t,n,$i,qn(am()),cn(e,2,-2),0)}function Bi(e,t,n,r){return Xn(e,t,n,vl,cn(e,0,r),cn(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Sl(e),l=0;l<r;l++)n+=t(e[l],l,e,t)||"";return n}function pm(e,t,n,r){switch(e.type){case Zd:if(e.children.length)break;case Qd:case vl:return e.return=e.return||e.value;case $i:return"";case Ti:return e.return=e.value+"{"+Ht(e.children,r)+"}";case bl:e.value=e.props.join(",")}return Ue(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function fm(e){var t=Sl(e);return function(n,r,l,a){for(var o="",i=0;i<t;i++)o+=e[i](n,r,l,a)||"";return o}}function gm(e){return function(t){t.root||(t=t.return)&&e(t)}}var hm=function(e,t,n){for(var r=0,l=0;r=l,l=Xe(),r===38&&l===12&&(t[n]=1),!mn(l);)Me();return dn(e,ke)},ym=function(e,t){var n=-1,r=44;do switch(mn(r)){case 0:r===38&&Xe()===12&&(t[n]=1),e[n]+=hm(ke-1,t,n);break;case 2:e[n]+=Yn(r);break;case 4:if(r===44){e[++n]=Xe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qn(r)}while(r=Me());return e},xm=function(e,t){return Li(ym(Di(e),t))},Wi=new WeakMap,bm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wi.get(n))&&!r){Wi.set(e,!0);for(var l=[],a=xm(t,l),o=n.props,i=0,c=0;i<a.length;i++)for(var u=0;u<o.length;u++,c++)e.props[c]=l[i]?a[i].replace(/&\f/g,o[u]):o[u]+" "+a[i]}}},vm=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Gi(e,t){switch(nm(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Gn+e+ve+e+e;case 6828:case 4268:return H+e+ve+e+e;case 6165:return H+e+ve+"flex-"+e+e;case 5187:return H+e+B(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return H+e+ve+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return H+e+ve+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+ve+B(e,"shrink","negative")+e;case 5292:return H+e+ve+B(e,"basis","preferred-size")+e;case 6060:return H+"box-"+B(e,"-grow","")+H+e+ve+B(e,"grow","positive")+e;case 4554:return H+B(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Gn+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wl(e,"stretch")?Gi(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,Ue(e)-3-(~wl(e,"!important")&&10))){case 107:return B(e,":",":"+H)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(ge(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+ve+e+e}return e}var wm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vl:e.return=Gi(e.value,e.length);break;case Ti:return Ht([un(e,{value:B(e.value,"@","@"+H)})],r);case bl:if(e.length)return lm(e.props,function(l){switch(rm(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([un(e,{props:[B(l,/:(read-\w+)/,":"+Gn+"$1")]})],r);case"::placeholder":return Ht([un(e,{props:[B(l,/:(plac\w+)/,":"+H+"input-$1")]}),un(e,{props:[B(l,/:(plac\w+)/,":"+Gn+"$1")]}),un(e,{props:[B(l,/:(plac\w+)/,ve+"input-$1")]})],r)}return""})}}],jl=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||wm,l={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)l[x[w]]=!0;o.push(f)});var i,c=[bm,vm],u,m=[pm,gm(function(f){u.insert(f)})],p=fm(c.concat(r,m)),d=function(f){return Ht(dm(f),p)};i=function(f,x,w,y){u=w,d(f?f+"{"+x.styles+"}":x.styles),y&&(g.inserted[x.name]=!0)};var g={key:t,sheet:new Yd({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return g.sheet.hydrate(o),g},Sm=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C){var N=C.$$typeof;switch(N){case n:switch(C=C.type,C){case u:case m:case l:case o:case a:case d:return C;default:switch(C&&(C=C.$$typeof),C){case c:case p:case x:case f:case i:return C;default:return N}}case r:return N}}}function k(C){return j(C)===m}e.AsyncMode=u,e.ConcurrentMode=m,e.ContextConsumer=c,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=l,e.Lazy=x,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(C){return k(C)||j(C)===u},e.isConcurrentMode=k,e.isContextConsumer=function(C){return j(C)===c},e.isContextProvider=function(C){return j(C)===i},e.isElement=function(C){return typeof C=="object"&&!!C&&C.$$typeof===n},e.isForwardRef=function(C){return j(C)===p},e.isFragment=function(C){return j(C)===l},e.isLazy=function(C){return j(C)===x},e.isMemo=function(C){return j(C)===f},e.isPortal=function(C){return j(C)===r},e.isProfiler=function(C){return j(C)===o},e.isStrictMode=function(C){return j(C)===a},e.isSuspense=function(C){return j(C)===d},e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===m||C===o||C===a||C===d||C===g||typeof C=="object"&&!!C&&(C.$$typeof===x||C.$$typeof===f||C.$$typeof===i||C.$$typeof===c||C.$$typeof===p||C.$$typeof===y||C.$$typeof===S||C.$$typeof===v||C.$$typeof===w)},e.typeOf=j})),Cm=Tt(((e,t)=>{t.exports=Sm()})),jm=Tt(((e,t)=>{var n=Cm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=o;function c(w){return n.isMemo(w)?o:i[w.$$typeof]||r}var u=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function x(w,y,S){if(typeof y!="string"){if(f){var v=g(y);v&&v!==f&&x(w,v,S)}var j=m(y);p&&(j=j.concat(p(y)));for(var k=c(w),C=c(y),N=0;N<j.length;++N){var R=j[N];if(!l[R]&&!(S&&S[R])&&!(C&&C[R])&&!(k&&k[R])){var _=d(y,R);try{u(w,R,_)}catch{}}}}return w}t.exports=x})),km=!0;function qi(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]===void 0?l&&(r+=l+" "):t.push(e[l]+";")}),r}var kl=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||km===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_l=function(e,t,n){kl(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var l=t;do e.insert(t===l?"."+r:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function _m(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mm=!1,Nm=/[A-Z]|^ms/g,Fm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ki=function(e){return e.charCodeAt(1)===45},Ui=function(e){return e!=null&&typeof e!="boolean"},Rl=hw(function(e){return Ki(e)?e:e.replace(Nm,"-$&").toLowerCase()}),Xi=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Fm,function(n,r,l){return Je={name:r,styles:l,next:Je},r})}return Rm[e]!==1&&!Ki(e)&&typeof t=="number"&&t!==0?t+"px":t},Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var l=n;if(l.anim===1)return Je={name:l.name,styles:l.styles,next:Je},l.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return a.styles+";"}return Im(e,t,n);case"function":if(e!==void 0){var i=Je,c=n(e);return Je=i,pn(e,t,c)}break}var u=n;if(t==null)return u;var m=t[u];return m===void 0?u:m}function Im(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=pn(e,t,n[l])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var i=o;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Ui(i)&&(r+=Rl(a)+":"+Xi(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Mm)throw Error(Am);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ui(o[c])&&(r+=Rl(a)+":"+Xi(a,o[c])+";");else{var u=pn(e,t,o);switch(a){case"animation":case"animationName":r+=Rl(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}}}return r}var Ji=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function Zn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";Je=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,l+=pn(n,t,a)):l+=a[0];for(var o=1;o<e.length;o++)l+=pn(n,t,e[o]),r&&(l+=a[o]);Ji.lastIndex=0;for(var i="",c;(c=Ji.exec(l))!==null;)i+="-"+c[1];return{name:_m(l)+i,styles:l,next:Je}}var Em=function(e){return e()},Yi=b.useInsertionEffect?b.useInsertionEffect:!1,Qi=Yi||Em,Zi=Yi||b.useLayoutEffect,es=b.createContext(typeof HTMLElement<"u"?jl({key:"css"}):null),Pm=es.Provider,Ml=function(e){return(0,b.forwardRef)(function(t,n){return e(t,(0,b.useContext)(es),n)})},fn=b.createContext({}),Nl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Om=function(e,t){var n={};for(var r in t)Nl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},Tm=Ml(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[Fl],a=[r],o="";typeof e.className=="string"?o=qi(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var i=Zn(a,void 0,b.useContext(fn));o+=t.key+"-"+i.name;var c={};for(var u in e)Nl.call(e,u)&&u!=="css"&&u!==Fl&&(c[u]=e[u]);return c.className=o,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement($m,{cache:t,serialized:i,isStringTag:typeof l=="string"}),b.createElement(l,c))});jm();var zm=function(e,t){var n=arguments;if(t==null||!Nl.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,l=Array(r);l[0]=Tm,l[1]=Om(e,t);for(var a=2;a<r;a++)l[a]=n[a];return b.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zm||(zm={}));var Vm=Ml(function(e,t){var n=e.styles,r=Zn([n],void 0,b.useContext(fn)),l=b.useRef();return Zi(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",a),o.hydrate([c])),l.current=[o,i],function(){o.flush()}},[t]),Zi(function(){var a=l.current,o=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&_l(t,r.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",r,o,!1)},[t,r.name]),null}),Dm=L();Io=e=>{let t=(0,Dm.c)(6),{container:n,children:r}=e,l;e:{if(!n){let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=jl({key:"mo",prepend:!0}),t[0]=c):c=t[0],l=c;break e}let i;if(t[1]!==n){let c=n.querySelector("style");c||(c=document.createElement("style"),n.append(c)),i=jl({key:"mo",prepend:!0,container:c}),t[1]=n,t[2]=i}else i=t[2];l=i}let a=l,o;return t[3]!==a||t[4]!==r?(o=(0,s.jsx)(Pm,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=o):o=t[5],o};var gn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Gt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},hn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Lm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ht(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",Hm=!1,Bm=yw,Wm=function(e){return e!=="theme"},ts=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Bm:Wm},ns=function(e,t,n){var r;if(t){var l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?function(a){return e.__emotion_forwardProp(a)&&l(a)}:l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},Gm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},qm=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var i=ns(t,n,r),c=i||ts(l),u=!c("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var x=Ml(function(w,y,S){var v=u&&w.as||l,j="",k=[],C=w;if(w.theme==null){for(var N in C={},w)C[N]=w[N];C.theme=b.useContext(fn)}typeof w.className=="string"?j=qi(y.registered,k,w.className):w.className!=null&&(j=w.className+" ");var R=Zn(p.concat(k),y.registered,C);j+=y.key+"-"+R.name,o!==void 0&&(j+=" "+o);var _=u&&i===void 0?ts(v):c,h={};for(var M in w)u&&M==="as"||_(M)&&(h[M]=w[M]);return h.className=j,S&&(h.ref=S),b.createElement(b.Fragment,null,b.createElement(Gm,{cache:y,serialized:R,isStringTag:typeof v=="string"}),b.createElement(v,h))});return x.displayName=a===void 0?"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")":a,x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=p,x.__emotion_forwardProp=i,Object.defineProperty(x,"toString",{value:function(){return o===void 0&&Hm?"NO_COMPONENT_SELECTOR":"."+o}}),x.withComponent=function(w,y){return e(w,xw({},n,y,{shouldForwardProp:ns(x,y,!0)})).apply(void 0,p)},x}},Km="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),Al=qm.bind(null);Km.forEach(function(e){Al[e]=Al(e)});function Um(e){return e==null||Object.keys(e).length===0}function rs(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(Vm,{styles:typeof t=="function"?r=>t(Um(r)?n:r):t})}function ls(e,t){return Al(e,t)}function Xm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var as=[];function yt(e){return as[0]=e,Zn(as)}var Jm=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===c||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===u||d.$$typeof===a||d.$$typeof===l||d.$$typeof===o||d.$$typeof===p||d.getModuleId!==void 0))}})),os=Tt(((e,t)=>{t.exports=Jm()}))();function Ye(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function is(e){if(b.isValidElement(e)||(0,os.isValidElementType)(e)||!Ye(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=is(e[n])}),t}function Ne(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ye(e)&&Ye(t)&&Object.keys(t).forEach(l=>{b.isValidElement(t[l])||(0,os.isValidElementType)(t[l])?r[l]=t[l]:Ye(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ye(e[l])?r[l]=Ne(e[l],t[l],n):n.clone?r[l]=Ye(t[l])?is(t[l]):t[l]:r[l]=t[l]}),r}var Ym=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Qm(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,a=Ym(t),o=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,g){let f=o.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[o[f]]=="number"?t[o[f]]:g)-r/100}${n})`}function m(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):i(d)}function p(d){let g=o.indexOf(d);return g===0?i(o[1]):g===o.length-1?c(o[g]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:i,down:c,between:u,only:m,not:p,unit:n,...l}}function ss(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,i;let a=/min-width:\s*([0-9.]+)/;return(((o=r.match(a))==null?void 0:o[1])||0)-+(((i=l.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,l)=>{let a=t[l];return delete r[l],r[l]=a,r},{...t}):t}function Zm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ep(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,l]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(a)}function tp(e){let t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function n(a,o){a.up=(...i)=>t(e.breakpoints.up(...i),o),a.down=(...i)=>t(e.breakpoints.down(...i),o),a.between=(...i)=>t(e.breakpoints.between(...i),o),a.only=(...i)=>t(e.breakpoints.only(...i),o),a.not=(...i)=>{let c=t(e.breakpoints.not(...i),o);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let r={},l=a=>(n(r,a),r);return n(l),{...e,containerQueries:l}}var np={borderRadius:4};function rp(e,t){return t?Ne(e,t,{clone:!1}):e}var yn=rp;const er={xs:0,sm:600,md:900,lg:1200,xl:1536};var cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${er[e]}px)`},lp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:er[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let l=r.breakpoints||cs;return t.reduce((a,o,i)=>(a[l.up(l.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let l=r.breakpoints||cs;return Object.keys(t).reduce((a,o)=>{if(Zm(l.keys,o)){let i=ep(r.containerQueries?r:lp,o);i&&(a[i]=n(t[o],o))}else if(Object.keys(l.values||er).includes(o)){let i=l.up(o);a[i]=n(t[o],o)}else{let i=o;a[i]=t[i]}return a},{})}return n(t)}function ap(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let l=e.up(r);return n[l]={},n},{}))||{}}function us(e,t){return e.reduce((n,r)=>{let l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Il(e){if(typeof e!="string")throw Error(ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((l,a)=>l&&l[a]?l[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function nr(e,t,n,r=n){let l;return l=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:tr(e,n)||r,t&&(l=t(l,r,e)),l}function op(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,a=o=>{if(o[t]==null)return null;let i=o[t],c=o.theme,u=tr(c,r)||{};return it(o,i,m=>{let p=nr(u,l,m);return m===p&&typeof m=="string"&&(p=nr(u,l,`${t}${m==="default"?"":Il(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var ae=op;function ip(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var sp={m:"margin",p:"padding"},cp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ds={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},up=ip(e=>{if(e.length>2)if(ds[e])e=ds[e];else return[e];let[t,n]=e.split(""),r=sp[t],l=cp[n]||"";return Array.isArray(l)?l.map(a=>r+a):[r+l]});const El=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var ms=[...El,...Pl];function xn(e,t,n,r){let l=tr(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?a=>typeof a=="string"?a:typeof l=="string"?`calc(${a} * ${l})`:l*a:Array.isArray(l)?a=>{if(typeof a=="string")return a;let o=l[Math.abs(a)];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof l=="function"?l:()=>{}}function Ol(e){return xn(e,"spacing",8,"spacing")}function bn(e,t){return typeof t=="string"||t==null?t:e(t)}function dp(e,t){return n=>e.reduce((r,l)=>(r[l]=bn(t,n),r),{})}function mp(e,t,n,r){if(!t.includes(n))return null;let l=dp(up(n),r),a=e[n];return it(e,a,l)}function $l(e,t){let n=Ol(e.theme);return Object.keys(e).map(r=>mp(e,t,r,n)).reduce(yn,{})}function re(e){return $l(e,El)}re.propTypes={},re.filterProps=El;function le(e){return $l(e,Pl)}le.propTypes={},le.filterProps=Pl;function ps(e){return $l(e,ms)}ps.propTypes={},ps.filterProps=ms;function fs(e=8,t=Ol({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(l=>{let a=t(l);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function pp(...e){let t=e.reduce((r,l)=>(l.filterProps.forEach(a=>{r[a]=l}),r),{}),n=r=>Object.keys(r).reduce((l,a)=>t[a]?yn(l,t[a](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}var rr=pp;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Te(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fp=Te("border",$e),gp=Te("borderTop",$e),hp=Te("borderRight",$e),yp=Te("borderBottom",$e),xp=Te("borderLeft",$e),bp=Te("borderColor"),vp=Te("borderTopColor"),wp=Te("borderRightColor"),Sp=Te("borderBottomColor"),Cp=Te("borderLeftColor"),jp=Te("outline",$e),kp=Te("outlineColor"),lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=xn(e.theme,"shape.borderRadius",4,"borderRadius");return it(e,e.borderRadius,n=>({borderRadius:bn(t,n)}))}return null};lr.propTypes={},lr.filterProps=["borderRadius"],rr(fp,gp,hp,yp,xp,bp,vp,wp,Sp,Cp,lr,jp,kp);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){let t=xn(e.theme,"spacing",8,"gap");return it(e,e.gap,n=>({gap:bn(t,n)}))}return null};ar.propTypes={},ar.filterProps=["gap"];const or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=xn(e.theme,"spacing",8,"columnGap");return it(e,e.columnGap,n=>({columnGap:bn(t,n)}))}return null};or.propTypes={},or.filterProps=["columnGap"];const ir=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=xn(e.theme,"spacing",8,"rowGap");return it(e,e.rowGap,n=>({rowGap:bn(t,n)}))}return null};ir.propTypes={},ir.filterProps=["rowGap"],rr(ar,or,ir,ae({prop:"gridColumn"}),ae({prop:"gridRow"}),ae({prop:"gridAutoFlow"}),ae({prop:"gridAutoColumns"}),ae({prop:"gridAutoRows"}),ae({prop:"gridTemplateColumns"}),ae({prop:"gridTemplateRows"}),ae({prop:"gridTemplateAreas"}),ae({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}rr(ae({prop:"color",themeKey:"palette",transform:Ut}),ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),ae({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const _p=ae({prop:"width",transform:Fe}),Tl=e=>e.maxWidth!==void 0&&e.maxWidth!==null?it(e,e.maxWidth,t=>{var r,l,a,o,i;let n=((a=(l=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:l.values)==null?void 0:a[t])||er[t];return n?((i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Fe(t)}}):null;Tl.filterProps=["maxWidth"];const Rp=ae({prop:"minWidth",transform:Fe}),Mp=ae({prop:"height",transform:Fe}),Np=ae({prop:"maxHeight",transform:Fe}),Fp=ae({prop:"minHeight",transform:Fe});ae({prop:"size",cssProperty:"width",transform:Fe}),ae({prop:"size",cssProperty:"height",transform:Fe}),rr(_p,Tl,Rp,Mp,Np,Fp,ae({prop:"boxSizing"}));var vn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lr},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:ir},columnGap:{style:or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Tl},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ap(...e){let t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ip(e,t){return typeof e=="function"?e(t):e}function Ep(){function e(n,r,l,a){let o={[n]:r,theme:l},i=a[n];if(!i)return{[n]:r};let{cssProperty:c=n,themeKey:u,transform:m,style:p}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};let d=tr(l,u)||{};return p?p(o):it(o,r,g=>{let f=nr(d,m,g);return g===f&&typeof g=="string"&&(f=nr(d,m,`${n}${g==="default"?"":Il(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){let{sx:r,theme:l={},nested:a}=n||{};if(!r)return null;let o=l.unstable_sxConfig??vn;function i(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;let m=ap(l.breakpoints),p=Object.keys(m),d=m;return Object.keys(u).forEach(g=>{let f=Ip(u[g],l);if(f!=null)if(typeof f=="object")if(o[g])d=yn(d,e(g,f,l,o));else{let x=it({theme:l},f,w=>({[g]:w}));Ap(x,f)?d[g]=t({sx:f,theme:l,nested:!0}):d=yn(d,x)}else d=yn(d,e(g,f,l,o))}),!a&&l.modularCssLayers?{"@layer sx":ss(l,us(p,d))}:ss(l,us(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var gs=Ep();gs.filterProps=["sx"];var Mt=gs;function Pp(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function Op(e={},...t){let{breakpoints:n={},palette:r={},spacing:l,shape:a={},...o}=e,i=Qm(n),c=fs(l),u=Ne({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...np,...a}},o);return u=tp(u),u.applyStyles=Pp,u=t.reduce((m,p)=>Ne(m,p),u),u.unstable_sxConfig={...vn,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return Mt({sx:m,theme:this})},u}var zl=Op;function $p(e){return Object.keys(e).length===0}function Tp(e=null){let t=b.useContext(fn);return!t||$p(t)?e:t}var Vl=Tp;const zp=zl();function Vp(e=zp){return Vl(e)}var Dl=Vp;function hs(e){let t=yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Dp({styles:e,themeId:t,defaultTheme:n={}}){let r=Dl(n),l=t&&r[t]||r,a=typeof e=="function"?e(l):e;return l.modularCssLayers&&(a=Array.isArray(a)?a.map(o=>hs(typeof o=="function"?o(l):o)):hs(a)),(0,s.jsx)(rs,{styles:a})}var ys=Dp,Lp=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??vn;return Object.keys(e).forEach(l=>{n[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function Hp(e){let{sx:t,...n}=e,{systemProps:r,otherProps:l}=Lp(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...o)=>{let i=t(...o);return Ye(i)?{...r,...i}:r}:{...r,...t},{...l,sx:a}}var xs=e=>e,bs=(()=>{let e=xs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xs}}})();function Bp(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:l}=e,a=ls("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Mt);return b.forwardRef(function(o,i){let c=Dl(n),{className:u,component:m="div",...p}=Hp(o);return(0,s.jsx)(a,{as:m,ref:i,className:Tn(u,l?l(r):r),theme:t&&c[t]||c,...p})})}const Wp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sr(e,t,n="Mui"){let r=Wp[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function cr(e,t,n="Mui"){let r={};return t.forEach(l=>{r[l]=sr(e,l,n)}),r}function vs(e){let{variants:t,...n}=e,r={variants:t,style:yt(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=yt(l.style))}),r}const Gp=zl();function Ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function qp(e){return e?(t,n)=>n[e]:null}function Kp(e,t,n){e.theme=Xp(e.theme)?n:e.theme[t]||e.theme}function ur(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>ur(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?Nt(r.style,n):r.style;else{let{variants:a,...o}=r;l=n?Nt(yt(o),n):o}return ws(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?Nt(yt(r.style),n):r.style:n?Nt(yt(r),n):r}function ws(e,t,n=[],r=void 0){var a;let l;e:for(let o=0;o<t.length;o+=1){let i=t[o];if(typeof i.props=="function"){if(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(l))continue}else for(let c in i.props)if(e[c]!==i.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==i.props[c])continue e;typeof i.style=="function"?(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(yt(i.style(l)),r):i.style(l))):n.push(r?Nt(yt(i.style),r):i.style)}return n}function Up(e={}){let{themeId:t,defaultTheme:n=Gp,rootShouldForwardProp:r=Ll,slotShouldForwardProp:l=Ll}=e;function a(o){Kp(o,t,n)}return(o,i={})=>{Xm(o,k=>k.filter(C=>C!==Mt));let{name:c,slot:u,skipVariantsResolver:m,skipSx:p,overridesResolver:d=qp(Yp(u)),...g}=i,f=c&&c.startsWith("Mui")||u?"components":"custom",x=m===void 0?u&&u!=="Root"&&u!=="root"||!1:m,w=p||!1,y=Ll;u==="Root"||u==="root"?y=r:u?y=l:Jp(o)&&(y=void 0);let S=ls(o,{shouldForwardProp:y,label:void 0,...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(C){return ur(C,k,C.theme.modularCssLayers?f:void 0)};if(Ye(k)){let C=vs(k);return function(N){return C.variants?ur(N,C,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?Nt(C.style,f):C.style}}return k},j=(...k)=>{let C=[],N=k.map(v),R=[];if(C.push(a),c&&d&&R.push(function(h){var I,z;let M=(z=(I=h.theme.components)==null?void 0:I[c])==null?void 0:z.styleOverrides;if(!M)return null;let A={};for(let V in M)A[V]=ur(h,M[V],h.theme.modularCssLayers?"theme":void 0);return d(h,A)}),c&&!x&&R.push(function(h){var A,I,z;let M=(z=(I=(A=h.theme)==null?void 0:A.components)==null?void 0:I[c])==null?void 0:z.variants;return M?ws(h,M,[],h.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(N[0])){let h=N.shift(),M=Array(C.length).fill(""),A=Array(R.length).fill(""),I;I=[...M,...h,...A],I.raw=[...M,...h.raw,...A],C.unshift(I)}let _=S(...C,...N,...R);return o.muiName&&(_.muiName=o.muiName),_};return S.withConfig&&(j.withConfig=S.withConfig),j}}function Xp(e){for(let t in e)return!1;return!0}function Jp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Hl(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let l=r;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){let a=e[l],o=t[l];if(!o)n[l]=a||{};else if(!a)n[l]=o;else for(let i in n[l]={...o},a)if(Object.prototype.hasOwnProperty.call(a,i)){let c=i;n[l][c]=Hl(a[c],o[c])}}else n[l]===void 0&&(n[l]=e[l])}return n}var Ft=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Qp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Zp=Qp;function Bl(e,t=0,n=1){return Zp(e,t,n)}function ef(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xt(e){if(e.type)return e;if(e.charAt(0)==="#")return xt(ef(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(ht(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw Error(ht(10,l))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:l}}const tf=e=>{let t=xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wn=(e,t)=>{try{return tf(e)}catch{return e}};function dr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((l,a)=>a<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ss(e){e=xt(e);let{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,a=r*Math.min(l,1-l),o=(u,m=(u+n/30)%12)=>l-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),dr({type:i,values:c})}function Wl(e){e=xt(e);let t=e.type==="hsl"||e.type==="hsla"?xt(Ss(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nf(e,t){let n=Wl(e),r=Wl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gl(e,t){return e=xt(e),t=Bl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dr(e)}function mr(e,t,n){try{return Gl(e,t)}catch{return e}}function ql(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dr(e)}function q(e,t,n){try{return ql(e,t)}catch{return e}}function Kl(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dr(e)}function K(e,t,n){try{return Kl(e,t)}catch{return e}}function rf(e,t=.15){return Wl(e)>.5?ql(e,t):Kl(e,t)}function pr(e,t,n){try{return rf(e,t)}catch{return e}}function lf(e,t=166){let n;function r(...l){clearTimeout(n),n=setTimeout(()=>{e.apply(this,l)},t)}return r.clear=()=>{clearTimeout(n)},r}function af(e){return e&&e.ownerDocument||document}function Cs(e){return af(e).defaultView||window}var js=0;function of(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(js+=1,n(`mui-${js}`))},[t]),r}var ks={...b}.useId;function sf(e){if(ks!==void 0){let t=ks();return e??t}return of(e)}function cf(e){let t=b.useRef(e);return Ft(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}var uf=cf;function _s(...e){let t=b.useRef(void 0),n=b.useCallback(r=>{let l=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let o=a,i=o(r);return typeof i=="function"?i:()=>{o(null)}}return a.current=r,()=>{a.current=null}});return()=>{l.forEach(a=>a==null?void 0:a())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function Ul(e,t,n=void 0){let r={};for(let l in e){let a=e[l],o="",i=!0;for(let c=0;c<a.length;c+=1){let u=a[c];u&&(o+=(i===!0?"":" ")+t(u),i=!1,n&&n[u]&&(o+=" "+n[u]))}r[l]=o}return r}var Rs=b.createContext(null);function Xl(){return b.useContext(Rs)}var df=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function mf(e,t){return typeof t=="function"?t(e):{...e,...t}}function pf(e){let{children:t,theme:n}=e,r=Xl(),l=b.useMemo(()=>{let a=r===null?{...n}:mf(r,n);return a!=null&&(a[df]=r!==null),a},[n,r]);return(0,s.jsx)(Rs.Provider,{value:l,children:t})}var ff=pf,gf=b.createContext();function hf({value:e,...t}){return(0,s.jsx)(gf.Provider,{value:e??!0,...t})}var yf=hf,Ms=b.createContext(void 0);function xf({value:e,children:t}){return(0,s.jsx)(Ms.Provider,{value:e,children:t})}function bf(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let l=t.components[n];return l.defaultProps?Hl(l.defaultProps,r):!l.styleOverrides&&!l.variants?Hl(l,r):r}function vf({props:e,name:t}){return bf({props:e,name:t,theme:{components:b.useContext(Ms)}})}var wf=xf;function Sf(e){let t=Vl(),n=sf()||"",{modularCssLayers:r}=e,l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return l=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,l):`@layer ${l};`,Ft(()=>{var i,c;let a=document.querySelector("head");if(!a)return;let o=a.firstChild;if(l){if(o&&((i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order"))&&o.getAttribute("data-mui-layer-order")===n)return;let u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=l,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[l,n]),l?(0,s.jsx)(ys,{styles:l}):null}var Ns={};function Fs(e,t,n,r=!1){return b.useMemo(()=>{let l=e&&t[e]||t;if(typeof n=="function"){let a=n(l),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Cf(e){let{children:t,theme:n,themeId:r}=e,l=Vl(Ns),a=Xl()||Ns,o=Fs(r,l,n),i=Fs(r,a,n,!0),c=(r?o[r]:o).direction==="rtl",u=Sf(o);return(0,s.jsx)(ff,{theme:i,children:(0,s.jsx)(fn.Provider,{value:o,children:(0,s.jsx)(yf,{value:c,children:(0,s.jsxs)(wf,{value:r?o[r].components:o.components,children:[u,t]})})})})}var As=Cf,Is={theme:void 0};function jf(e){let t,n;return function(r){let l=t;return(l===void 0||r.theme!==n)&&(Is.theme=r.theme,l=vs(e(Is)),t=l,n=r.theme),l}}const Jl="mode",Yl="color-scheme";function kf(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=Jl,colorSchemeStorageKey:a=Yl,attribute:o="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:c}=e||{},u="",m=o;if(o==="class"&&(m=".%s"),o==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);u+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
|
|
3
3
|
${i}.classList.add('${d}'.replace('%s', colorScheme));`}let p=m.match(/\[([^\]]+)\]/);if(p){let[d,g]=p[1].split("=");g||(u+=`${i}.removeAttribute('${d}'.replace('%s', light));
|
|
4
4
|
${i}.removeAttribute('${d}'.replace('%s', dark));`),u+=`
|
|
5
5
|
${i}.setAttribute('${d}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else u+=`${i}.setAttribute('${m}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
@@ -46,4 +46,4 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
46
46
|
`,i=l.from;return e.dispatch({changes:{from:i,to:i,insert:o},selection:{anchor:i+o.length-1,head:i+o.length-1},scrollIntoView:!0,effects:[Ku.scrollIntoView(i,{y:"center"})]}),e.focus(),!0}var Su=L(),Cu="item";const Cx=e=>{var Se;let t=(0,Su.c)(47),{onRefactorWithAI:n,traceback:r,cellId:l}=e,a;t[0]===r?a=t[1]:(a=Ya({html:r,additionalReplacements:[kx,_x]}),t[0]=r,t[1]=a);let o=a,[i,c]=(0,b.useState)(!0),u=jx(r),m=$n(jb),p;t[2]===r?p=t[3]:(p=(Se=xb(r))==null?void 0:Se.at(0),t[2]=r,t[3]=p);let d=p,g;t[4]!==l||t[5]!==d?(g=d&&d.kind==="cell"&&!Vu()&&!Ln()&&l!=="__scratch__",t[4]=l,t[5]=d,t[6]=g):g=t[6];let f=g,x;t[7]!==m||t[8]!==n?(x=n&&m&&!Ln(),t[7]=m,t[8]=n,t[9]=x):x=t[9];let w=x,y=!Ln(),S=ue=>{n==null||n({prompt:`My code gives the following error:
|
|
47
47
|
|
|
48
48
|
${u}`,triggerImmediately:ue})},[v,j]=u.split(":",2),k=i?Cu:"",C;t[10]===Symbol.for("react.memo_cache_sentinel")?(C=()=>c(Mx),t[10]=C):C=t[10];let N=i?"rotate-180":"rotate-0",R;t[11]===N?R=t[12]:(R=$("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0",N),t[11]=N,t[12]=R);let _;t[13]===R?_=t[14]:(_=(0,s.jsx)(Yr,{className:R}),t[13]=R,t[14]=_);let h=v||"Error",M;t[15]===h?M=t[16]:(M=(0,s.jsxs)("span",{className:"text-destructive",children:[h,":"]}),t[15]=h,t[16]=M);let A;t[17]!==j||t[18]!==M?(A=(0,s.jsxs)("div",{className:"text-sm inline font-mono",children:[M," ",j]}),t[17]=j,t[18]=M,t[19]=A):A=t[19];let I;t[20]!==A||t[21]!==_?(I=(0,s.jsxs)("div",{className:"flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",onClick:C,children:[_,A]}),t[20]=A,t[21]=_,t[22]=I):I=t[22];let z;t[23]===o?z=t[24]:(z=(0,s.jsx)(Db,{className:"text-muted-foreground px-4 pt-2 text-xs overflow-auto",children:o}),t[23]=o,t[24]=z);let V;t[25]!==I||t[26]!==z?(V=(0,s.jsxs)(zb,{value:Cu,className:"border-none",children:[I,z]}),t[25]=I,t[26]=z,t[27]=V):V=t[27];let U;t[28]!==V||t[29]!==k?(U=(0,s.jsx)(Vb,{type:"single",collapsible:!0,value:k,children:V}),t[28]=V,t[29]=k,t[30]=U):U=t[30];let ee;t[31]!==S||t[32]!==w?(ee=w&&(0,s.jsx)(Bv,{tooltip:"Fix with AI",openPrompt:()=>S(!1),applyAutofix:()=>S(!0)}),t[31]=S,t[32]=w,t[33]=ee):ee=t[33];let Y;t[34]!==f||t[35]!==d?(Y=f&&(0,s.jsx)(Ce,{content:"Attach pdb to the exception point.",children:(0,s.jsxs)(de,{size:"xs",variant:"outline",onClick:()=>{Uu().sendPdb({cellId:d.cellId})},children:[(0,s.jsx)(fl,{className:"h-3 w-3 mr-2"}),"Launch debugger"]})}),t[34]=f,t[35]=d,t[36]=Y):Y=t[36];let se;t[37]!==u||t[38]!==r?(se=y&&(0,s.jsxs)(Jr,{children:[(0,s.jsx)(Kr,{asChild:!0,children:(0,s.jsxs)(de,{size:"xs",variant:"text",children:["Get help",(0,s.jsx)(Yr,{className:"h-3 w-3 ml-1"})]})}),(0,s.jsxs)(Ur,{align:"end",className:"w-56",children:[(0,s.jsx)(Z,{asChild:!0,children:(0,s.jsxs)("a",{target:"_blank",href:`https://www.google.com/search?q=${encodeURIComponent(u)}`,rel:"noreferrer",children:[(0,s.jsx)(Qu,{className:"h-4 w-4 mr-2"}),"Search on Google",(0,s.jsx)(Ju,{className:"h-3 w-3 ml-auto"})]})}),(0,s.jsx)(Z,{asChild:!0,children:(0,s.jsxs)("a",{target:"_blank",href:"https://marimo.io/discord?ref=notebook",rel:"noopener",children:[(0,s.jsx)(Hv,{className:"h-4 w-4 mr-2"}),"Ask in Discord",(0,s.jsx)(Ju,{className:"h-3 w-3 ml-auto"})]})}),(0,s.jsxs)(Z,{onClick:()=>{let ue=document.createElement("div");ue.innerHTML=zu(r),an(ue.textContent||"")},children:[(0,s.jsx)(el,{className:"h-4 w-4 mr-2"}),"Copy to clipboard"]})]})]}),t[37]=u,t[38]=r,t[39]=se):se=t[39];let W;t[40]!==ee||t[41]!==Y||t[42]!==se?(W=(0,s.jsxs)("div",{className:"flex gap-2",children:[ee,Y,se]}),t[40]=ee,t[41]=Y,t[42]=se,t[43]=W):W=t[43];let X;return t[44]!==U||t[45]!==W?(X=(0,s.jsxs)("div",{className:"flex flex-col gap-2 min-w-full w-fit",children:[U,W]}),t[44]=U,t[45]=W,t[46]=X):X=t[46],X};function jx(e){var n,r;let t=document.createElement("div");return t.innerHTML=zu(e),((r=(n=t.textContent)==null?void 0:n.split(`
|
|
49
|
-
`).filter(Boolean))==null?void 0:r.at(-1))||""}const kx=e=>{let t=yb(e);if((t==null?void 0:t.kind)==="cell"){let n=(0,s.jsx)(Rx,{});return(0,s.jsx)("span",{className:"nb",children:(0,s.jsxs)("span",{className:"inline-flex items-center",children:[(0,s.jsx)(vw,{cellId:t.cellId,lineNumber:t.lineNumber}),!Vu()&&(0,s.jsx)(Ce,{content:n,children:(0,s.jsx)("button",{type:"button",className:"ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",children:(0,s.jsx)(fl,{onClick:()=>{let r=gb(t.cellId);r&&Sx(r,t.lineNumber)},className:"h-3 w-3"})})})]})})}if((t==null?void 0:t.kind)==="file")return(0,s.jsx)("div",{className:"inline-block cursor-pointer text-destructive hover:underline",onClick:n=>{Uu().openFile({path:t.filePath,lineNumber:t.lineNumber})},children:(0,s.jsxs)("span",{className:"nb",children:['"',t.filePath,'"']})})},_x=e=>{var t;if(e instanceof $u.Text&&((t=e.nodeValue)!=null&&t.includes("File"))&&e.next instanceof $u.Element&&fb(e.next))return(0,s.jsx)(s.Fragment,{children:e.nodeValue.replace("File","Cell")})};var Rx=()=>{let e=(0,Su.c)(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)(s.Fragment,{children:["Insert a ",(0,s.jsx)(bw,{className:"inline",children:"breakpoint()"})," at this line"]}),e[0]=t):t=e[0],t};function Mx(e){return!e}function Nx(e){switch(e){case"text/html":return"\u{1F310}";case"text/plain":return"\u{1F4C4}";case"application/json":return"\u{1F4E6}";case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":return"\u{1F5BC}\uFE0F";case"image/svg+xml":return"\u{1F3A8}";case"video/mp4":case"video/mpeg":return"\u{1F3A5}";case"application/vnd.marimo+error":return"\u{1F6A8}";case"application/vnd.marimo+traceback":return"\u{1F40D}";case"text/csv":return"\u{1F4CA}";case"text/markdown":return"\u{1F4DD}";case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":return"\u{1F4CA}";case"application/vnd.marimo+mimebundle":return"\u{1F4E6}";default:return"\u2753"}}var In=L(),ju="__metadata__";_t=(0,b.memo)(e=>{let t=(0,In.c)(54),{message:n,onRefactorWithAI:r,cellId:l,wrapText:a,metadata:o,renderFallback:i}=e,{theme:c}=nl(),u;e:{let f=n.data;switch(n.mimetype){case"application/json":case"application/vnd.marimo+mimebundle":case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let x;t[0]===f?x=t[1]:(x=typeof f=="string"?JSON.parse(f):f,t[0]=f,t[1]=x),u=x;break e}default:u=void 0}}let m=u,{channel:p,data:d,mimetype:g}=n;if(d==null)return null;switch(g){case"text/html":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[2]!==p||t[3]!==d?(f=(0,s.jsx)(zt,{className:p,html:d,alwaysSanitizeHtml:!1}),t[2]=p,t[3]=d,t[4]=f):f=t[4],f}case"text/plain":case"text/password":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[5]!==p||t[6]!==d||t[7]!==a?(f=(0,s.jsx)(e0,{channel:p,text:d,wrapText:a}),t[5]=p,t[6]=d,t[7]=a,t[8]=f):f=t[8],f}case"application/json":{let f;return t[9]!==p||t[10]!==m?(f=(0,s.jsx)(sn,{className:p,data:m,format:"auto"}),t[9]=p,t[10]=m,t[11]=f):f=t[11],f}case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":case"image/svg+xml":{if(ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`),g==="image/svg+xml"&&!d.startsWith("data:image/svg+xml;base64,")){let y;return t[12]===d?y=t[13]:(y=Ya({html:d,alwaysSanitizeHtml:!0}),t[12]=d,t[13]=y),y}let f=o==null?void 0:o.width,x=o==null?void 0:o.height,w;return t[14]!==p||t[15]!==d||t[16]!==f||t[17]!==x?(w=(0,s.jsx)(mc,{className:p,src:d,alt:"",width:f,height:x}),t[14]=p,t[15]=d,t[16]=f,t[17]=x,t[18]=w):w=t[18],w}case"video/mp4":case"video/mpeg":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[19]!==p||t[20]!==d?(f=(0,s.jsx)(pc,{className:p,src:d}),t[19]=p,t[20]=d,t[21]=f):f=t[21],f}case"application/vnd.marimo+error":{ft(Array.isArray(d),"Expected array data");let f;return t[22]!==l||t[23]!==d?(f=(0,s.jsx)(qv,{cellId:l,errors:d}),t[22]=l,t[23]=d,t[24]=f):f=t[24],f}case"application/vnd.marimo+traceback":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[25]!==l||t[26]!==d||t[27]!==r?(f=(0,s.jsx)(Cx,{onRefactorWithAI:r,traceback:d,cellId:l}),t[25]=l,t[26]=d,t[27]=r,t[28]=f):f=t[28],f}case"text/csv":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[29]===d?f=t[30]:(f=(0,s.jsx)(Ka,{contents:d}),t[29]=d,t[30]=f),f}case"text/latex":case"text/markdown":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[31]!==p||t[32]!==d?(f=(0,s.jsx)(zt,{className:p,html:d,alwaysSanitizeHtml:!0}),t[31]=p,t[32]=d,t[33]=f):f=t[33],f}case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let f;t[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(no,{}),t[34]=f):f=t[34];let x=m,w;t[35]===m?w=t[36]:(w=cw(m),t[35]=m,t[36]=w);let y=c==="dark"?"dark":void 0,S;t[37]===y?S=t[38]:(S={theme:y,mode:"vega-lite",tooltip:iw.call,renderer:"canvas"},t[37]=y,t[38]=S);let v;return t[39]!==x||t[40]!==w||t[41]!==S?(v=(0,s.jsx)(b.Suspense,{fallback:f,children:(0,s.jsx)(cl,{spec:x,"data-container-width":w,options:S})}),t[39]=x,t[40]=w,t[41]=S,t[42]=v):v=t[42],v}case"application/vnd.marimo+mimebundle":{let f=m,x;return t[43]!==p||t[44]!==f?(x=(0,s.jsx)(ku,{channel:p,data:f}),t[43]=p,t[44]=f,t[45]=x):x=t[45],x}case"application/vnd.jupyter.widget-view+json":{let f;t[46]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("b",{children:"Jupyter widgets are not supported in marimo."}),t[46]=f):f=t[46];let x;t[47]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("br",{}),t[47]=x):x=t[47];let w;return t[48]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsxs)(Sw,{kind:"warn",children:[f," ",x,"Please migrate this widget to"," ",(0,s.jsx)("a",{href:"https://github.com/manzt/anywidget",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-(--amber-12)",children:"anywidget"}),"."]}),t[48]=w):w=t[48],w}default:{if(kt(g),i){let x;return t[49]!==g||t[50]!==i?(x=i(g),t[49]=g,t[50]=i,t[51]=x):x=t[51],x}let f;return t[52]===g?f=t[53]:(f=(0,s.jsxs)("div",{className:"text-destructive",children:["Unsupported mimetype: ",g]}),t[52]=g,t[53]=f),f}}}),_t.displayName="OutputRenderer";var ku=(0,b.memo)(e=>{var j;let t=(0,In.c)(31),{data:n,channel:r,cellId:l}=e,a=Array.isArray(n)?n[0]:n,{mode:o}=$n(pb),i=o==="present"||o==="read",c=a[ju],u,m,p,d,g,f,x,w;if(t[0]!==i||t[1]!==l||t[2]!==r||t[3]!==c||t[4]!==a){w=Symbol.for("react.early_return_sentinel");e:{let{entries:k}=i0(Lr.entries(a).filter(Fx).map(Ax)),C=(j=k[0])==null?void 0:j[0];if(!C){w=null;break e}if(k.length===1){w=(0,s.jsx)(_t,{cellId:l,message:{channel:r,data:k[0][1],mimetype:C},metadata:c==null?void 0:c[C]});break e}u=Lb,f=C,x="vertical",d="flex";let N=i&&"mt-4",R;t[13]===N?R=t[14]:(R=$("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0",N),t[13]=N,t[14]=R),g=(0,s.jsx)(Gb,{className:R,children:k.map(Ix)}),m="flex-1 w-full";let _;t[15]!==l||t[16]!==r||t[17]!==c?(_=h=>{let[M,A]=h;return(0,s.jsx)(Wb,{value:M,children:(0,s.jsx)(Hr,{children:(0,s.jsx)(_t,{cellId:l,message:{channel:r,data:A,mimetype:M},metadata:c==null?void 0:c[M]})})},M)},t[15]=l,t[16]=r,t[17]=c,t[18]=_):_=t[18],p=k.map(_)}t[0]=i,t[1]=l,t[2]=r,t[3]=c,t[4]=a,t[5]=u,t[6]=m,t[7]=p,t[8]=d,t[9]=g,t[10]=f,t[11]=x,t[12]=w}else u=t[5],m=t[6],p=t[7],d=t[8],g=t[9],f=t[10],x=t[11],w=t[12];if(w!==Symbol.for("react.early_return_sentinel"))return w;let y;t[19]!==m||t[20]!==p?(y=(0,s.jsx)("div",{className:m,children:p}),t[19]=m,t[20]=p,t[21]=y):y=t[21];let S;t[22]!==d||t[23]!==g||t[24]!==y?(S=(0,s.jsxs)("div",{className:d,children:[g,y]}),t[22]=d,t[23]=g,t[24]=y,t[25]=S):S=t[25];let v;return t[26]!==u||t[27]!==f||t[28]!==x||t[29]!==S?(v=(0,s.jsx)(u,{defaultValue:f,orientation:x,children:S}),t[26]=u,t[27]=f,t[28]=x,t[29]=S,t[30]=v):v=t[30],v});ku.displayName="MimeBundleOutputRenderer",Mo=b.memo(e=>{let t=(0,In.c)(17),{output:n,cellId:r,stale:l,loading:a,allowExpand:o,forceExpand:i,className:c}=e;if(n===null||n.channel==="output"&&n.data==="")return null;let u=l?"This output is stale":void 0,m=o?Ru:_u,p;t[0]===r?p=t[1]:(p=bb.create(r),t[0]=r,t[1]=p);let d=l&&"marimo-output-stale",g=a&&"marimo-output-loading",f;t[2]!==c||t[3]!==d||t[4]!==g?(f=$(d,g,c),t[2]=c,t[3]=d,t[4]=g,t[5]=f):f=t[5];let x;t[6]!==r||t[7]!==n?(x=(0,s.jsx)(_t,{cellId:r,message:n}),t[6]=r,t[7]=n,t[8]=x):x=t[8];let w;return t[9]!==m||t[10]!==r||t[11]!==i||t[12]!==p||t[13]!==f||t[14]!==x||t[15]!==u?(w=(0,s.jsx)(Hr,{children:(0,s.jsx)(m,{title:u,cellId:r,forceExpand:i,id:p,className:f,children:x})}),t[9]=m,t[10]=r,t[11]=i,t[12]=p,t[13]=f,t[14]=x,t[15]=u,t[16]=w):w=t[16],w}),Mo.displayName="OutputArea";var _u=b.forwardRef((e,t)=>{let n=(0,In.c)(3),r;return n[0]!==e||n[1]!==t?(r=(0,s.jsx)("div",{ref:t,...e}),n[0]=e,n[1]=t,n[2]=r):r=n[2],r});_u.displayName="Div";var Ru=b.memo(e=>{let t=(0,In.c)(24),{cellId:n,children:r,forceExpand:l,...a}=e,o=(0,b.useRef)(null),[i,c]=Ev(n),u=Po(o),{hasFullscreen:m}=ww(),p;t[0]===m?p=t[1]:(p=m&&(0,s.jsx)(Ce,{content:"Fullscreen",side:"left",children:(0,s.jsx)(de,{"data-testid":"fullscreen-output-button",className:"hover-action hover:bg-muted p-1 hover:border-border border border-transparent",onClick:async()=>{var j;await((j=o.current)==null?void 0:j.requestFullscreen())},onMouseDown:qe.preventFocus,size:"xs",variant:"text",children:(0,s.jsx)(vi,{className:"size-4 opacity-60 hover:opacity-80",strokeWidth:1.25})})}),t[0]=m,t[1]=p);let d;t[2]!==l||t[3]!==i||t[4]!==u||t[5]!==c?(d=(u||i)&&!l&&(0,s.jsx)(de,{"data-testid":"expand-output-button",className:$("hover:border-border border border-transparent hover:bg-muted",!i&&"hover-action"),onClick:()=>c(!i),size:"xs",variant:"text",children:i?(0,s.jsx)(Ce,{content:"Collapse output",side:"left",children:(0,s.jsx)(Av,{className:"h-4 w-4"})}):(0,s.jsx)(Ce,{content:"Expand output",side:"left",children:(0,s.jsx)(Zr,{className:"h-4 w-4 opacity-60"})})}),t[2]=l,t[3]=i,t[4]=u,t[5]=c,t[6]=d):d=t[6];let g;t[7]!==p||t[8]!==d?(g=(0,s.jsx)("div",{className:"relative print:hidden",children:(0,s.jsxs)("div",{className:"absolute -right-9 top-1 z-1 flex flex-col gap-1",children:[p,d]})}),t[7]=p,t[8]=d,t[9]=g):g=t[9];let f=$("relative fullscreen:bg-background fullscreen:flex fullscreen:items-center fullscreen:justify-center","fullscreen:items-center-safe",a.className),x;t[10]!==l||t[11]!==i?(x=i||l?{maxHeight:"none"}:void 0,t[10]=l,t[11]=i,t[12]=x):x=t[12];let w;t[13]!==r||t[14]!==a||t[15]!==f||t[16]!==x?(w=(0,s.jsx)("div",{...a,"data-cell-role":"output",className:f,ref:o,style:x,children:r}),t[13]=r,t[14]=a,t[15]=f,t[16]=x,t[17]=w):w=t[17];let y;t[18]!==g||t[19]!==w?(y=(0,s.jsxs)("div",{children:[g,w]}),t[18]=g,t[19]=w,t[20]=y):y=t[20];let S;t[21]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)("div",{className:"increase-pointer-area-x contents print:hidden"}),t[21]=S):S=t[21];let v;return t[22]===y?v=t[23]:(v=(0,s.jsxs)(s.Fragment,{children:[y,S]}),t[22]=y,t[23]=v),v});Ru.displayName="ExpandableOutput";function Fx(e){let[t]=e;return t!==ju}function Ax(e){let[t,n]=e;return[t,n]}function Ix(e){let[t]=e;return(0,s.jsx)(Hb,{value:t,className:"flex items-center space-x-2",children:(0,s.jsx)(Ce,{delayDuration:200,content:t,side:"right",children:(0,s.jsx)("span",{children:Nx(t)})})},t)}var En=L(),Mu=e=>{let t=(0,En.c)(8),{value:n}=e,r=typeof n=="string"&&(n.startsWith("text/html:")||n.startsWith("image/")||n.startsWith("video/")),[l,a]=(0,b.useState)(!1),o;t[0]===n?o=t[1]:(o=async p=>{p.stopPropagation(),await an(n),a(!0),setTimeout(()=>a(!1),1e3)},t[0]=n,t[1]=o);let i=o;if(r)return null;let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=$("inline-flex ml-2 copy-button rounded w-6 h-3 justify-center items-center relative"),t[2]=c):c=t[2];let u;t[3]===l?u=t[4]:(u=l?(0,s.jsx)(Nv,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}):(0,s.jsx)(el,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}),t[3]=l,t[4]=u);let m;return t[5]!==i||t[6]!==u?(m=(0,s.jsx)("button",{onClick:i,className:c,"aria-label":"Copy to clipboard",type:"button",children:u}),t[5]=i,t[6]=u,t[7]=m):m=t[7],m},Zt=e=>{let t=(0,En.c)(5),n;t[0]===e.value?n=t[1]:(n=JSON.stringify(e.value,null,2),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Mu,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r},en=e=>{let t=(0,En.c)(5),n;t[0]===e.value?n=t[1]:(n=Yx(e.value),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Mu,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r};sn=(0,b.memo)(e=>{let t=(0,En.c)(23),{data:n,format:r,name:l,valueTypes:a,className:o}=e,i=r===void 0?"auto":r,c=l===void 0?!1:l,u=a===void 0?"python":a,{theme:m}=nl();i==="auto"&&(i=Ex(n));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={python:qx,json:Kx},t[0]=p):p=t[0];let d=p;switch(i){case"tree":{let g;t[1]===o?g=t[2]:(g=$("marimo-json-output",o),t[1]=o,t[2]=g);let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f={backgroundColor:"transparent"},t[3]=f):f=t[3];let x=d[u],w;t[4]===n?w=t[5]:(w=Qx(n),t[4]=n,t[5]=w);let y;return t[6]!==n||t[7]!==c||t[8]!==g||t[9]!==x||t[10]!==w||t[11]!==m?(y=(0,s.jsx)(Jh,{className:g,rootName:c,theme:m,displayDataTypes:!1,value:n,style:f,collapseStringsAfterLength:$r,valueTypes:x,groupArraysAfterLength:2**53-1,enableClipboard:!1,maxDisplayLength:w}),t[6]=n,t[7]=c,t[8]=g,t[9]=x,t[10]=w,t[11]=m,t[12]=y):y=t[12],y}case"raw":{let g;t[13]===n?g=t[14]:(g=JSON.stringify(n,null,2),t[13]=n,t[14]=g);let f;return t[15]!==o||t[16]!==g?(f=(0,s.jsx)("pre",{className:o,children:g}),t[15]=o,t[16]=g,t[17]=f):f=t[17],f}default:{kt(i);let g;t[18]===n?g=t[19]:(g=JSON.stringify(n,null,2),t[18]=n,t[19]=g);let f;return t[20]!==o||t[21]!==g?(f=(0,s.jsx)("pre",{className:o,children:g}),t[20]=o,t[21]=g,t[22]=f):f=t[22],f}}}),sn.displayName="JsonOutput";function Ex(e){return typeof e=="object"&&e?"tree":"raw"}var $r=100,Px=e=>{let t=(0,En.c)(11),[n,r]=(0,b.useState)(!0);if(e.text.length<=$r){let o;return t[0]===e.text?o=t[1]:(o=(0,s.jsx)("span",{className:"break-all",children:e.text}),t[0]=e.text,t[1]=o),o}if(n){let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(!1),t[2]=o):o=t[2];let i;t[3]===e.text?i=t[4]:(i=e.text.slice(0,$r),t[3]=e.text,t[4]=i);let c=e.text.length>$r&&"...",u;return t[5]!==i||t[6]!==c?(u=(0,s.jsxs)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:o,children:[i,c]}),t[5]=i,t[6]=c,t[7]=u):u=t[7],u}let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=()=>r(!0),t[8]=l):l=t[8];let a;return t[9]===e.text?a=t[10]:(a=(0,s.jsx)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:l,children:e.text}),t[9]=e.text,t[10]=a),a},Nu={"image/":e=>(0,s.jsx)(mc,{src:e}),"video/":e=>(0,s.jsx)(pc,{src:e}),"text/html:":e=>(0,s.jsx)(zt,{html:e,inline:!0,alwaysSanitizeHtml:!1}),"text/markdown:":e=>(0,s.jsx)(zt,{html:e,inline:!0,alwaysSanitizeHtml:!0}),"text/plain+float:":e=>(0,s.jsx)("span",{children:e}),"text/plain+bigint:":e=>(0,s.jsx)("span",{children:e}),"text/plain+set:":e=>(0,s.jsxs)("span",{children:["set",e]}),"text/plain+tuple:":e=>(0,s.jsx)("span",{children:e}),"text/plain:":e=>(0,s.jsx)(Px,{text:e}),"application/json:":e=>(0,s.jsx)(sn,{data:JSON.parse(e),format:"auto"}),"application/":(e,t)=>(0,s.jsx)(_t,{message:{channel:"output",data:e,mimetype:t},renderFallback:()=>(0,s.jsxs)("span",{children:[t,":",e]})})},Ox=Object.entries(Nu).map(([e,t])=>({is:n=>typeof n=="string"&&n.startsWith(e),PostComponent:en,Component:n=>Ux(n.value,t)})),$x=Le({...ma,PostComponent:en,Component:({value:e})=>(0,s.jsx)("span",{children:e?"True":"False"})}),Tx=Le({...pa,PostComponent:en,Component:()=>(0,s.jsx)("span",{children:"None"})}),zx=Le({...ma,PostComponent:Zt}),Vx=Le({...pa,PostComponent:Zt,Component:()=>(0,s.jsx)("span",{children:"null"})}),Dx=Le({...wr,is:e=>Jv(e),PostComponent:en,Component:({value:e})=>(0,s.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-link hover:underline",children:e})}),Fu=Le({...ic,PostComponent:Zt}),Lx=Le({...oc,PostComponent:Zt}),Hx=Le({...wr,PostComponent:en}),Bx=Le({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(en,{...e})]})}),Wx=Le({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(Zt,{...e})]})}),Gx=Le({...wr,PostComponent:Zt}),qx=[Fu,$x,Tx,...Ox,Dx,Bx,Hx].toReversed(),Kx=[Fu,Lx,zx,Vx,Wx,Gx].toReversed();function Pn(e){return Au(e)[0]}function Au(e){let t=e.indexOf(":");return t===-1?[e,void 0]:[e.slice(t+1),e.slice(0,t)]}function Ux(e,t){let[n,r]=Au(e);return r?t(n,r):(0,s.jsx)("span",{children:e})}var Xx=Object.keys(Nu),St="<marimo-replace>",Ct="</marimo-replace>";function Jx(e,t){return t==null?`${St}None${Ct}`:typeof t=="object"?t:typeof t=="bigint"?`${St}${t}${Ct}`:Array.isArray(t)?t:typeof t=="string"?t.startsWith("text/plain+float:")?`${St}${Pn(t)}${Ct}`:t.startsWith("text/plain+bigint:")?`${St}${BigInt(Pn(t))}${Ct}`:t.startsWith("text/plain+tuple:")?`${St}(${Pn(t).slice(1,-1)})${Ct}`:t.startsWith("text/plain+set:")?`${St}{${Pn(t).slice(1,-1)}}${Ct}`:Xx.some(n=>t.startsWith(n))?Pn(t):t:typeof t=="boolean"?`${St}${t?"True":"False"}${Ct}`:t}function Yx(e){return JSON.stringify(e,Jx,2).replaceAll(`"${St}`,"").replaceAll(`${Ct}"`,"")}function Qx(e){if(Array.isArray(e)){let t=e.slice(0,15),n=0;for(let r of t)if(Array.isArray(r)){let l=r.slice(0,5);for(let a of l)if(Array.isArray(a))return 5;n=Math.max(n,r.length)}return n<=20?void 0:n>=50?5:10}}});export{no as $,ro as A,ll as B,lo as C,id as D,Vn as E,sd as F,al as G,cd as H,ao as I,oo as J,io as K,ud as L,so as M,co as N,uo as O,mo as P,dd as Q,md as R,pd as S,po as T,fd as U,fo as V,ol as W,gd as X,go as Y,hd as Z,yd as _,Aw as __tla,ho as _t,il as a,xd as at,yo as b,xo as c,bd as ct,bo as d,sl as dt,cl as et,ul as f,dl as ft,vo as g,wo as gt,So as h,Dn as ht,vd as i,wd as it,Co as j,jo as k,ko as l,_o as lt,ml as m,Ro as mt,Mo as n,zt as nt,No as o,Ln as ot,Vt as p,Fo as pt,Ao as q,_t as r,Io as rt,Eo as s,on as st,sn as t,Po as tt,Oo as u,Sd as ut,Cd as v,$o as vt,To as w,zo as x,pl as y,Vo as yt,Hn as z};
|
|
49
|
+
`).filter(Boolean))==null?void 0:r.at(-1))||""}const kx=e=>{let t=yb(e);if((t==null?void 0:t.kind)==="cell"){let n=(0,s.jsx)(Rx,{});return(0,s.jsx)("span",{className:"nb",children:(0,s.jsxs)("span",{className:"inline-flex items-center",children:[(0,s.jsx)(vw,{cellId:t.cellId,lineNumber:t.lineNumber}),!Vu()&&(0,s.jsx)(Ce,{content:n,children:(0,s.jsx)("button",{type:"button",className:"ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",children:(0,s.jsx)(fl,{onClick:()=>{let r=gb(t.cellId);r&&Sx(r,t.lineNumber)},className:"h-3 w-3"})})})]})})}if((t==null?void 0:t.kind)==="file")return(0,s.jsx)("div",{className:"inline-block cursor-pointer text-destructive hover:underline",onClick:n=>{Uu().openFile({path:t.filePath,lineNumber:t.lineNumber})},children:(0,s.jsxs)("span",{className:"nb",children:['"',t.filePath,'"']})})},_x=e=>{var t;if(e instanceof $u.Text&&((t=e.nodeValue)!=null&&t.includes("File"))&&e.next instanceof $u.Element&&fb(e.next))return(0,s.jsx)(s.Fragment,{children:e.nodeValue.replace("File","Cell")})};var Rx=()=>{let e=(0,Su.c)(1),t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,s.jsxs)(s.Fragment,{children:["Insert a ",(0,s.jsx)(bw,{className:"inline",children:"breakpoint()"})," at this line"]}),e[0]=t):t=e[0],t};function Mx(e){return!e}function Nx(e){switch(e){case"text/html":return"\u{1F310}";case"text/plain":return"\u{1F4C4}";case"application/json":return"\u{1F4E6}";case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":return"\u{1F5BC}\uFE0F";case"image/svg+xml":return"\u{1F3A8}";case"video/mp4":case"video/mpeg":return"\u{1F3A5}";case"application/vnd.marimo+error":return"\u{1F6A8}";case"application/vnd.marimo+traceback":return"\u{1F40D}";case"text/csv":return"\u{1F4CA}";case"text/markdown":return"\u{1F4DD}";case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":return"\u{1F4CA}";case"application/vnd.marimo+mimebundle":return"\u{1F4E6}";default:return"\u2753"}}var In=L(),ju="__metadata__";_t=(0,b.memo)(e=>{let t=(0,In.c)(54),{message:n,onRefactorWithAI:r,cellId:l,wrapText:a,metadata:o,renderFallback:i}=e,{theme:c}=nl(),u;e:{let f=n.data;switch(n.mimetype){case"application/json":case"application/vnd.marimo+mimebundle":case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let x;t[0]===f?x=t[1]:(x=typeof f=="string"?JSON.parse(f):f,t[0]=f,t[1]=x),u=x;break e}default:u=void 0}}let m=u,{channel:p,data:d,mimetype:g}=n;if(d==null)return null;switch(g){case"text/html":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[2]!==p||t[3]!==d?(f=(0,s.jsx)(zt,{className:p,html:d,alwaysSanitizeHtml:!1}),t[2]=p,t[3]=d,t[4]=f):f=t[4],f}case"text/plain":case"text/password":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[5]!==p||t[6]!==d||t[7]!==a?(f=(0,s.jsx)(e0,{channel:p,text:d,wrapText:a}),t[5]=p,t[6]=d,t[7]=a,t[8]=f):f=t[8],f}case"application/json":{let f;return t[9]!==p||t[10]!==m?(f=(0,s.jsx)(sn,{className:p,data:m,format:"auto"}),t[9]=p,t[10]=m,t[11]=f):f=t[11],f}case"image/png":case"image/tiff":case"image/avif":case"image/bmp":case"image/gif":case"image/jpeg":case"image/svg+xml":{if(ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`),g==="image/svg+xml"&&!d.startsWith("data:image/svg+xml;base64,")){let y;return t[12]===d?y=t[13]:(y=Ya({html:d,alwaysSanitizeHtml:!0}),t[12]=d,t[13]=y),y}let f=o==null?void 0:o.width,x=o==null?void 0:o.height,w;return t[14]!==p||t[15]!==d||t[16]!==f||t[17]!==x?(w=(0,s.jsx)(mc,{className:p,src:d,alt:"",width:f,height:x}),t[14]=p,t[15]=d,t[16]=f,t[17]=x,t[18]=w):w=t[18],w}case"video/mp4":case"video/mpeg":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[19]!==p||t[20]!==d?(f=(0,s.jsx)(pc,{className:p,src:d}),t[19]=p,t[20]=d,t[21]=f):f=t[21],f}case"application/vnd.marimo+error":{ft(Array.isArray(d),"Expected array data");let f;return t[22]!==l||t[23]!==d?(f=(0,s.jsx)(qv,{cellId:l,errors:d}),t[22]=l,t[23]=d,t[24]=f):f=t[24],f}case"application/vnd.marimo+traceback":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[25]!==l||t[26]!==d||t[27]!==r?(f=(0,s.jsx)(Cx,{onRefactorWithAI:r,traceback:d,cellId:l}),t[25]=l,t[26]=d,t[27]=r,t[28]=f):f=t[28],f}case"text/csv":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[29]===d?f=t[30]:(f=(0,s.jsx)(Ka,{contents:d}),t[29]=d,t[30]=f),f}case"text/latex":case"text/markdown":{ft(typeof d=="string",`Expected string data for mime=${g}. Got ${typeof d}`);let f;return t[31]!==p||t[32]!==d?(f=(0,s.jsx)(zt,{className:p,html:d,alwaysSanitizeHtml:!0}),t[31]=p,t[32]=d,t[33]=f):f=t[33],f}case"application/vnd.vegalite.v5+json":case"application/vnd.vega.v5+json":case"application/vnd.vegalite.v6+json":case"application/vnd.vega.v6+json":{let f;t[34]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)(no,{}),t[34]=f):f=t[34];let x=m,w;t[35]===m?w=t[36]:(w=cw(m),t[35]=m,t[36]=w);let y=c==="dark"?"dark":void 0,S;t[37]===y?S=t[38]:(S={theme:y,mode:"vega-lite",tooltip:iw.call,renderer:"canvas"},t[37]=y,t[38]=S);let v;return t[39]!==x||t[40]!==w||t[41]!==S?(v=(0,s.jsx)(b.Suspense,{fallback:f,children:(0,s.jsx)(cl,{spec:x,"data-container-width":w,options:S})}),t[39]=x,t[40]=w,t[41]=S,t[42]=v):v=t[42],v}case"application/vnd.marimo+mimebundle":{let f=m,x;return t[43]!==p||t[44]!==f?(x=(0,s.jsx)(ku,{channel:p,data:f}),t[43]=p,t[44]=f,t[45]=x):x=t[45],x}case"application/vnd.jupyter.widget-view+json":{let f;t[46]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsx)("b",{children:"Jupyter widgets are not supported in marimo."}),t[46]=f):f=t[46];let x;t[47]===Symbol.for("react.memo_cache_sentinel")?(x=(0,s.jsx)("br",{}),t[47]=x):x=t[47];let w;return t[48]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsxs)(Sw,{kind:"warn",children:[f," ",x,"Please migrate this widget to"," ",(0,s.jsx)("a",{href:"https://github.com/manzt/anywidget",target:"_blank",rel:"noopener noreferrer",className:"underline hover:text-(--amber-12)",children:"anywidget"}),"."]}),t[48]=w):w=t[48],w}default:{if(kt(g),i){let x;return t[49]!==g||t[50]!==i?(x=i(g),t[49]=g,t[50]=i,t[51]=x):x=t[51],x}let f;return t[52]===g?f=t[53]:(f=(0,s.jsxs)("div",{className:"text-destructive",children:["Unsupported mimetype: ",g]}),t[52]=g,t[53]=f),f}}}),_t.displayName="OutputRenderer";var ku=(0,b.memo)(e=>{var j;let t=(0,In.c)(31),{data:n,channel:r,cellId:l}=e,a=Array.isArray(n)?n[0]:n,{mode:o}=$n(pb),i=o==="present"||o==="read",c=a[ju],u,m,p,d,g,f,x,w;if(t[0]!==i||t[1]!==l||t[2]!==r||t[3]!==c||t[4]!==a){w=Symbol.for("react.early_return_sentinel");e:{let{entries:k}=i0(Lr.entries(a).filter(Fx).map(Ax)),C=(j=k[0])==null?void 0:j[0];if(!C){w=null;break e}if(k.length===1){w=(0,s.jsx)(_t,{cellId:l,message:{channel:r,data:k[0][1],mimetype:C},metadata:c==null?void 0:c[C]});break e}u=Lb,f=C,x="vertical",d="flex";let N=i&&"mt-4",R;t[13]===N?R=t[14]:(R=$("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0",N),t[13]=N,t[14]=R),g=(0,s.jsx)(Gb,{className:R,children:k.map(Ix)}),m="flex-1 w-full";let _;t[15]!==l||t[16]!==r||t[17]!==c?(_=h=>{let[M,A]=h;return(0,s.jsx)(Wb,{value:M,children:(0,s.jsx)(Hr,{children:(0,s.jsx)(_t,{cellId:l,message:{channel:r,data:A,mimetype:M},metadata:c==null?void 0:c[M]})})},M)},t[15]=l,t[16]=r,t[17]=c,t[18]=_):_=t[18],p=k.map(_)}t[0]=i,t[1]=l,t[2]=r,t[3]=c,t[4]=a,t[5]=u,t[6]=m,t[7]=p,t[8]=d,t[9]=g,t[10]=f,t[11]=x,t[12]=w}else u=t[5],m=t[6],p=t[7],d=t[8],g=t[9],f=t[10],x=t[11],w=t[12];if(w!==Symbol.for("react.early_return_sentinel"))return w;let y;t[19]!==m||t[20]!==p?(y=(0,s.jsx)("div",{className:m,children:p}),t[19]=m,t[20]=p,t[21]=y):y=t[21];let S;t[22]!==d||t[23]!==g||t[24]!==y?(S=(0,s.jsxs)("div",{className:d,children:[g,y]}),t[22]=d,t[23]=g,t[24]=y,t[25]=S):S=t[25];let v;return t[26]!==u||t[27]!==f||t[28]!==x||t[29]!==S?(v=(0,s.jsx)(u,{defaultValue:f,orientation:x,children:S}),t[26]=u,t[27]=f,t[28]=x,t[29]=S,t[30]=v):v=t[30],v});ku.displayName="MimeBundleOutputRenderer",Mo=b.memo(e=>{let t=(0,In.c)(17),{output:n,cellId:r,stale:l,loading:a,allowExpand:o,forceExpand:i,className:c}=e;if(n==null||n.channel==="output"&&n.data==="")return null;let u=l?"This output is stale":void 0,m=o?Ru:_u,p;t[0]===r?p=t[1]:(p=bb.create(r),t[0]=r,t[1]=p);let d=l&&"marimo-output-stale",g=a&&"marimo-output-loading",f;t[2]!==c||t[3]!==d||t[4]!==g?(f=$(d,g,c),t[2]=c,t[3]=d,t[4]=g,t[5]=f):f=t[5];let x;t[6]!==r||t[7]!==n?(x=(0,s.jsx)(_t,{cellId:r,message:n}),t[6]=r,t[7]=n,t[8]=x):x=t[8];let w;return t[9]!==m||t[10]!==r||t[11]!==i||t[12]!==p||t[13]!==f||t[14]!==x||t[15]!==u?(w=(0,s.jsx)(Hr,{children:(0,s.jsx)(m,{title:u,cellId:r,forceExpand:i,id:p,className:f,children:x})}),t[9]=m,t[10]=r,t[11]=i,t[12]=p,t[13]=f,t[14]=x,t[15]=u,t[16]=w):w=t[16],w}),Mo.displayName="OutputArea";var _u=b.forwardRef((e,t)=>{let n=(0,In.c)(3),r;return n[0]!==e||n[1]!==t?(r=(0,s.jsx)("div",{ref:t,...e}),n[0]=e,n[1]=t,n[2]=r):r=n[2],r});_u.displayName="Div";var Ru=b.memo(e=>{let t=(0,In.c)(24),{cellId:n,children:r,forceExpand:l,...a}=e,o=(0,b.useRef)(null),[i,c]=Ev(n),u=Po(o),{hasFullscreen:m}=ww(),p;t[0]===m?p=t[1]:(p=m&&(0,s.jsx)(Ce,{content:"Fullscreen",side:"left",children:(0,s.jsx)(de,{"data-testid":"fullscreen-output-button",className:"hover-action hover:bg-muted p-1 hover:border-border border border-transparent",onClick:async()=>{var j;await((j=o.current)==null?void 0:j.requestFullscreen())},onMouseDown:qe.preventFocus,size:"xs",variant:"text",children:(0,s.jsx)(vi,{className:"size-4 opacity-60 hover:opacity-80",strokeWidth:1.25})})}),t[0]=m,t[1]=p);let d;t[2]!==l||t[3]!==i||t[4]!==u||t[5]!==c?(d=(u||i)&&!l&&(0,s.jsx)(de,{"data-testid":"expand-output-button",className:$("hover:border-border border border-transparent hover:bg-muted",!i&&"hover-action"),onClick:()=>c(!i),size:"xs",variant:"text",children:i?(0,s.jsx)(Ce,{content:"Collapse output",side:"left",children:(0,s.jsx)(Av,{className:"h-4 w-4"})}):(0,s.jsx)(Ce,{content:"Expand output",side:"left",children:(0,s.jsx)(Zr,{className:"h-4 w-4 opacity-60"})})}),t[2]=l,t[3]=i,t[4]=u,t[5]=c,t[6]=d):d=t[6];let g;t[7]!==p||t[8]!==d?(g=(0,s.jsx)("div",{className:"relative print:hidden",children:(0,s.jsxs)("div",{className:"absolute -right-9 top-1 z-1 flex flex-col gap-1",children:[p,d]})}),t[7]=p,t[8]=d,t[9]=g):g=t[9];let f=$("relative fullscreen:bg-background fullscreen:flex fullscreen:items-center fullscreen:justify-center","fullscreen:items-center-safe",a.className),x;t[10]!==l||t[11]!==i?(x=i||l?{maxHeight:"none"}:void 0,t[10]=l,t[11]=i,t[12]=x):x=t[12];let w;t[13]!==r||t[14]!==a||t[15]!==f||t[16]!==x?(w=(0,s.jsx)("div",{...a,"data-cell-role":"output",className:f,ref:o,style:x,children:r}),t[13]=r,t[14]=a,t[15]=f,t[16]=x,t[17]=w):w=t[17];let y;t[18]!==g||t[19]!==w?(y=(0,s.jsxs)("div",{children:[g,w]}),t[18]=g,t[19]=w,t[20]=y):y=t[20];let S;t[21]===Symbol.for("react.memo_cache_sentinel")?(S=(0,s.jsx)("div",{className:"increase-pointer-area-x contents print:hidden"}),t[21]=S):S=t[21];let v;return t[22]===y?v=t[23]:(v=(0,s.jsxs)(s.Fragment,{children:[y,S]}),t[22]=y,t[23]=v),v});Ru.displayName="ExpandableOutput";function Fx(e){let[t]=e;return t!==ju}function Ax(e){let[t,n]=e;return[t,n]}function Ix(e){let[t]=e;return(0,s.jsx)(Hb,{value:t,className:"flex items-center space-x-2",children:(0,s.jsx)(Ce,{delayDuration:200,content:t,side:"right",children:(0,s.jsx)("span",{children:Nx(t)})})},t)}var En=L(),Mu=e=>{let t=(0,En.c)(8),{value:n}=e,r=typeof n=="string"&&(n.startsWith("text/html:")||n.startsWith("image/")||n.startsWith("video/")),[l,a]=(0,b.useState)(!1),o;t[0]===n?o=t[1]:(o=async p=>{p.stopPropagation(),await an(n),a(!0),setTimeout(()=>a(!1),1e3)},t[0]=n,t[1]=o);let i=o;if(r)return null;let c;t[2]===Symbol.for("react.memo_cache_sentinel")?(c=$("inline-flex ml-2 copy-button rounded w-6 h-3 justify-center items-center relative"),t[2]=c):c=t[2];let u;t[3]===l?u=t[4]:(u=l?(0,s.jsx)(Nv,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}):(0,s.jsx)(el,{className:"w-5 h-5 absolute -top-0.5 p-1 hover:bg-muted rounded"}),t[3]=l,t[4]=u);let m;return t[5]!==i||t[6]!==u?(m=(0,s.jsx)("button",{onClick:i,className:c,"aria-label":"Copy to clipboard",type:"button",children:u}),t[5]=i,t[6]=u,t[7]=m):m=t[7],m},Zt=e=>{let t=(0,En.c)(5),n;t[0]===e.value?n=t[1]:(n=JSON.stringify(e.value,null,2),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Mu,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r},en=e=>{let t=(0,En.c)(5),n;t[0]===e.value?n=t[1]:(n=Yx(e.value),t[0]=e.value,t[1]=n);let r;return t[2]!==e||t[3]!==n?(r=(0,s.jsx)(Mu,{...e,value:n}),t[2]=e,t[3]=n,t[4]=r):r=t[4],r};sn=(0,b.memo)(e=>{let t=(0,En.c)(23),{data:n,format:r,name:l,valueTypes:a,className:o}=e,i=r===void 0?"auto":r,c=l===void 0?!1:l,u=a===void 0?"python":a,{theme:m}=nl();i==="auto"&&(i=Ex(n));let p;t[0]===Symbol.for("react.memo_cache_sentinel")?(p={python:qx,json:Kx},t[0]=p):p=t[0];let d=p;switch(i){case"tree":{let g;t[1]===o?g=t[2]:(g=$("marimo-json-output",o),t[1]=o,t[2]=g);let f;t[3]===Symbol.for("react.memo_cache_sentinel")?(f={backgroundColor:"transparent"},t[3]=f):f=t[3];let x=d[u],w;t[4]===n?w=t[5]:(w=Qx(n),t[4]=n,t[5]=w);let y;return t[6]!==n||t[7]!==c||t[8]!==g||t[9]!==x||t[10]!==w||t[11]!==m?(y=(0,s.jsx)(Jh,{className:g,rootName:c,theme:m,displayDataTypes:!1,value:n,style:f,collapseStringsAfterLength:$r,valueTypes:x,groupArraysAfterLength:2**53-1,enableClipboard:!1,maxDisplayLength:w}),t[6]=n,t[7]=c,t[8]=g,t[9]=x,t[10]=w,t[11]=m,t[12]=y):y=t[12],y}case"raw":{let g;t[13]===n?g=t[14]:(g=JSON.stringify(n,null,2),t[13]=n,t[14]=g);let f;return t[15]!==o||t[16]!==g?(f=(0,s.jsx)("pre",{className:o,children:g}),t[15]=o,t[16]=g,t[17]=f):f=t[17],f}default:{kt(i);let g;t[18]===n?g=t[19]:(g=JSON.stringify(n,null,2),t[18]=n,t[19]=g);let f;return t[20]!==o||t[21]!==g?(f=(0,s.jsx)("pre",{className:o,children:g}),t[20]=o,t[21]=g,t[22]=f):f=t[22],f}}}),sn.displayName="JsonOutput";function Ex(e){return typeof e=="object"&&e?"tree":"raw"}var $r=100,Px=e=>{let t=(0,En.c)(11),[n,r]=(0,b.useState)(!0);if(e.text.length<=$r){let o;return t[0]===e.text?o=t[1]:(o=(0,s.jsx)("span",{className:"break-all",children:e.text}),t[0]=e.text,t[1]=o),o}if(n){let o;t[2]===Symbol.for("react.memo_cache_sentinel")?(o=()=>r(!1),t[2]=o):o=t[2];let i;t[3]===e.text?i=t[4]:(i=e.text.slice(0,$r),t[3]=e.text,t[4]=i);let c=e.text.length>$r&&"...",u;return t[5]!==i||t[6]!==c?(u=(0,s.jsxs)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:o,children:[i,c]}),t[5]=i,t[6]=c,t[7]=u):u=t[7],u}let l;t[8]===Symbol.for("react.memo_cache_sentinel")?(l=()=>r(!0),t[8]=l):l=t[8];let a;return t[9]===e.text?a=t[10]:(a=(0,s.jsx)("span",{className:"cursor-pointer hover:opacity-90 break-all",onClick:l,children:e.text}),t[9]=e.text,t[10]=a),a},Nu={"image/":e=>(0,s.jsx)(mc,{src:e}),"video/":e=>(0,s.jsx)(pc,{src:e}),"text/html:":e=>(0,s.jsx)(zt,{html:e,inline:!0,alwaysSanitizeHtml:!1}),"text/markdown:":e=>(0,s.jsx)(zt,{html:e,inline:!0,alwaysSanitizeHtml:!0}),"text/plain+float:":e=>(0,s.jsx)("span",{children:e}),"text/plain+bigint:":e=>(0,s.jsx)("span",{children:e}),"text/plain+set:":e=>(0,s.jsxs)("span",{children:["set",e]}),"text/plain+tuple:":e=>(0,s.jsx)("span",{children:e}),"text/plain:":e=>(0,s.jsx)(Px,{text:e}),"application/json:":e=>(0,s.jsx)(sn,{data:JSON.parse(e),format:"auto"}),"application/":(e,t)=>(0,s.jsx)(_t,{message:{channel:"output",data:e,mimetype:t},renderFallback:()=>(0,s.jsxs)("span",{children:[t,":",e]})})},Ox=Object.entries(Nu).map(([e,t])=>({is:n=>typeof n=="string"&&n.startsWith(e),PostComponent:en,Component:n=>Ux(n.value,t)})),$x=Le({...ma,PostComponent:en,Component:({value:e})=>(0,s.jsx)("span",{children:e?"True":"False"})}),Tx=Le({...pa,PostComponent:en,Component:()=>(0,s.jsx)("span",{children:"None"})}),zx=Le({...ma,PostComponent:Zt}),Vx=Le({...pa,PostComponent:Zt,Component:()=>(0,s.jsx)("span",{children:"null"})}),Dx=Le({...wr,is:e=>Jv(e),PostComponent:en,Component:({value:e})=>(0,s.jsx)("a",{href:e,target:"_blank",rel:"noopener noreferrer",className:"text-link hover:underline",children:e})}),Fu=Le({...ic,PostComponent:Zt}),Lx=Le({...oc,PostComponent:Zt}),Hx=Le({...wr,PostComponent:en}),Bx=Le({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(en,{...e})]})}),Wx=Le({...It,PreComponent:e=>(0,s.jsxs)(s.Fragment,{children:[It.PreComponent&&(0,s.jsx)(It.PreComponent,{...e}),(0,s.jsx)(Zt,{...e})]})}),Gx=Le({...wr,PostComponent:Zt}),qx=[Fu,$x,Tx,...Ox,Dx,Bx,Hx].toReversed(),Kx=[Fu,Lx,zx,Vx,Wx,Gx].toReversed();function Pn(e){return Au(e)[0]}function Au(e){let t=e.indexOf(":");return t===-1?[e,void 0]:[e.slice(t+1),e.slice(0,t)]}function Ux(e,t){let[n,r]=Au(e);return r?t(n,r):(0,s.jsx)("span",{children:e})}var Xx=Object.keys(Nu),St="<marimo-replace>",Ct="</marimo-replace>";function Jx(e,t){return t==null?`${St}None${Ct}`:typeof t=="object"?t:typeof t=="bigint"?`${St}${t}${Ct}`:Array.isArray(t)?t:typeof t=="string"?t.startsWith("text/plain+float:")?`${St}${Pn(t)}${Ct}`:t.startsWith("text/plain+bigint:")?`${St}${BigInt(Pn(t))}${Ct}`:t.startsWith("text/plain+tuple:")?`${St}(${Pn(t).slice(1,-1)})${Ct}`:t.startsWith("text/plain+set:")?`${St}{${Pn(t).slice(1,-1)}}${Ct}`:Xx.some(n=>t.startsWith(n))?Pn(t):t:typeof t=="boolean"?`${St}${t?"True":"False"}${Ct}`:t}function Yx(e){return JSON.stringify(e,Jx,2).replaceAll(`"${St}`,"").replaceAll(`${Ct}"`,"")}function Qx(e){if(Array.isArray(e)){let t=e.slice(0,15),n=0;for(let r of t)if(Array.isArray(r)){let l=r.slice(0,5);for(let a of l)if(Array.isArray(a))return 5;n=Math.max(n,r.length)}return n<=20?void 0:n>=50?5:10}}});export{no as $,ro as A,ll as B,lo as C,id as D,Vn as E,sd as F,al as G,cd as H,ao as I,oo as J,io as K,ud as L,so as M,co as N,uo as O,mo as P,dd as Q,md as R,pd as S,po as T,fd as U,fo as V,ol as W,gd as X,go as Y,hd as Z,yd as _,Aw as __tla,ho as _t,il as a,xd as at,yo as b,xo as c,bd as ct,bo as d,sl as dt,cl as et,ul as f,dl as ft,vo as g,wo as gt,So as h,Dn as ht,vd as i,wd as it,Co as j,jo as k,ko as l,_o as lt,ml as m,Ro as mt,Mo as n,zt as nt,No as o,Ln as ot,Vt as p,Fo as pt,Ao as q,_t as r,Io as rt,Eo as s,on as st,sn as t,Po as tt,Oo as u,Sd as ut,Cd as v,$o as vt,To as w,zo as x,pl as y,Vo as yt,Hn as z};
|