@marimo-team/frontend 0.19.3-dev48 → 0.19.3-dev49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-CCegkRxN.js","./app-config-button-4H0CJmIo.js","./state-BTHUBVxX.js","./ai-model-dropdown-DzyBY5VA.js","./cells-BNQUQiDS.js","./preload-helper-BW0IMuFq.js","./badge-DAnNhy3O.js","./cn-C1rgT0yh.js","./clsx-D0MtrJOx.js","./compiler-runtime-DeeZ7FnK.js","./react-BGmjiNul.js","./chunk-LvLJmgfZ.js","./jsx-runtime-DN_bIXfG.js","./button-B8cGZzP5.js","./hotkeys-uKX61F1_.js","./useEventListener-COkmyg1v.js","./Combination-D1TsGrBC.js","./react-dom-C9fstfnp.js","./select-D9lTzMzP.js","./menu-items-9PZrU2e0.js","./dist-CBrDuocE.js","./createLucideIcon-CW2xpJ57.js","./check-CrAQug3q.js","./tooltip-CvjcEpZC.js","./use-toast-Bzf3rpev.js","./utils-pfqq9IdB.js","./useEvent-DlWF5OMa.js","./_baseIsEqual-Cz9Tt_-E.js","./_getTag-BWqNuuwU.js","./_Uint8Array-BGESiCQL.js","./invariant-C6yE60hi.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-Cg4WLWh2.js","./config-D6nhy4FA.js","./constants-Bkp4R3bQ.js","./Deferred-DzyBMRsy.js","./DeferredRequestRegistry-B3BENoUa.js","./uuid-ClFZlR7U.js","./requests-C0HaHO6a.js","./useLifecycle-CmDXEyIC.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-zBEpxwYe.js","./useNonce-EAuSVK-5.js","./useTheme-CNj0G_ol.js","./once-CTiSlR1m.js","./capabilities-BmAOeMOK.js","./createReducer-DDa-hVe3.js","./dist-DKNOF5xd.js","./dist-CAcX026F.js","./dist-CI6_zMIl.js","./dist-HGZzCB0y.js","./dist-CVj-_Iiz.js","./dist-BVf1IY4_.js","./dist-Cq_4nPfh.js","./dist-RKnr9SNh.js","./dist-BuhT82Xx.js","./stex-0ac7Aukl.js","./toDate-5JckKRQn.js","./cjs-Bj40p_Np.js","./type-BdyvjzTI.js","./_arrayReduce-bZBYsK-u.js","./_baseProperty-DuoFhI7N.js","./debounce-BbFlGgjv.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-CaVvnK_o.js","./main-CwSdzVhm.js","./cells-jmgGt1lS.css","./multi-map-CQd4MZr5.js","./dropdown-menu-BP4_BZLr.js","./chevron-right-CqEd11Di.js","./capitalize-DQeWKRGx.js","./spinner-C1czjtp7.js","./renderShortcut-eU5Hsfml.js","./kbd-Czc5z_04.js","./alert-BEdExd6A.js","./dialog-CF5DtF1E.js","./alert-dialog-jcHA5geR.js","./textarea-Di1KKcL4.js","./label-CNZLffHW.js","./dist-Dg7UO_Vw.js","./useDebounce-em3gna-v.js","./input-B80Yt1uu.js","./numbers-C9_R_vlY.js","./useNumberFormatter-FoXhpyAb.js","./context-DHfVoQfl.js","./SSRProvider-DD7JA3RM.js","./usePress-DTwIUo40.js","./links-DNmjkr65.js","./popover-DtnzNVk-.js","./switch-RowEjq0T.js","./table--_20dwBZ.js","./tabs-Ctk4D03n.js","./client-CDjmJmVw.js","./error-banner-DvT0IGDZ.js","./mode-Dq8MKjNR.js","./useAsyncData-BJJJOr9W.js","./copy-DRhpWiOq.js","./VisuallyHidden-B9t3FhTP.js","./get-CyLJYAfP.js","./memoize-DN0TMY36.js","./circle-check-big-OIMTUpe6.js","./copy-gBVL4NN-.js","./plug-Bp1OpH-w.js","./plus-CHesBJpY.js","./refresh-cw-Din9uFKE.js","./trash-2-C-lF7BNB.js","./triangle-alert-CbD0f2J6.js","./SelectionIndicator-BtLUNjRz.js","./Inputs-DmoeP8nh.js","./Inputs-CuKU-ENz.css","./ImperativeModal-DVhvP4lH.js","./settings-MTlHVxz3.js","./ErrorBoundary-C7JBxSzd.js","./icons-D4lB4En9.js","./types-CT2U5Ljy.js","./file-video-camera-CZUg-nFA.js","./file-BnFXtaZZ.js","./useInterval-BGPIviJp.js","./dates-CdsE1R40.js","./en-US-DhMN8sxe.js","./isValid-DhzaK-Y1.js","./links-D529u6GQ.js","./maps-s2pQkyf5.js","./tree-CeX0mTvA.js","./extends-B9D0JO9U.js","./chart-no-axes-column-D42sFB6d.js","./circle-play-r3MHdB-P.js","./youtube-BJQRl2JC.js","./link-54sBkoQp.js","./refresh-ccw-DbW1_PHb.js","./run-page-CM_n6pXD.js","./panels-BzlLZfye.js","./JsonOutput-BSGE-MRo.js","./tooltip-CrRUCOBw.js","./vega-loader.browser-C8wT63Va.js","./precisionRound-Cl9k9ZmS.js","./defaultLocale-BLUna9fQ.js","./defaultLocale-DzliDDTm.js","./MarimoErrorOutput-CX0SCJOZ.js","./useInstallPackage-RldLPyJs.js","./cell-link-Dqj_nfXA.js","./datasource-DerBLc6V.js","./state-DWRZTH2y.js","./copy-icon-jWsqdLn1.js","./markdown-renderer-BPnVa0ym.js","./es-BoHEdemq.js","./focus-DM53w5BH.js","./LazyAnyLanguageCodeMirror-Cp2punaU.js","./chunk-OGVTOU66-CjNLT2C3.js","./katex-AwOI3EvM.js","./marked.esm-CHnOtnr3.js","./markdown-renderer-DdDKmWlR.css","./command-YPFTinLj.js","./RenderHTML-Do_PVqRy.js","./useRunCells-CKEmgeKM.js","./purify.es-N-2faAGj.js","./useIframeCapabilities-CU-WWxnz.js","./formats-B9CrBoaO.js","./download-B6EJS7Ar.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./useDateFormatter-DsANziQR.js","./range-sshwVRcP.js","./table-BLx7B_us.js","./JsonOutput-B7vuddcd.css","./layout-DT91GUei.js","./name-cell-input-BaEPC7ON.js","./esm-B3JckBtM.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./name-cell-input-ujOhus_y.css","./floating-outline-DCrTuu2G.js","./readonly-python-code-CXeF74Iq.js","./useAddCell-COb93CUl.js","./eye-off-D9zAYqG9.js","./process-output-Dn1rOp26.js","./esm-CCqLcax5.js","./dist-BRZzJw_5.js","./dist-P7JHert4.js","./dist-CoiWxjLF.js","./dist-DrrmBmzm.js","./dist-cVYW_wBR.js","./dist-Cv7ifwsi.js","./dist-ChHsi1N7.js","./dist-BAmo7Mv9.js","./dist-3oAtECdQ.js","./dist-D6Pwf0VF.js","./dist-Cd0uZhiN.js","./dist-DxRoHFaH.js","./dist-D9HMoxdZ.js","./dist-JtCdI6tY.js","./apl-iXnrDoYq.js","./asciiarmor-CK-aFa78.js","./asn1-DWJdxrMP.js","./brainfuck-0bMZHpH_.js","./clike-5SQqmvx2.js","./clojure-B0kIwyv8.js","./cmake-CLXeINvH.js","./cobol-C9SsG--s.js","./coffeescript-UIQG6RnU.js","./commonlisp-BBPumpJY.js","./crystal-CGN1wsuY.js","./css-aQ-Krb7T.js","./cypher-DEE4_Yec.js","./d-CgJ8N-gL.js","./diff-B8e18dKs.js","./dtd-DtwMcoo9.js","./dylan-Be6i1K-V.js","./ecl-D5tlhe8s.js","./eiffel-8SQWO4xP.js","./elm-CtGe_7Jw.js","./erlang-CNwX3Z_M.js","./factor-DgyyQiBQ.js","./simple-mode-CZ1ts7NY.js","./forth-CaVwPSxM.js","./fortran-B28t9xoj.js","./gas-BSiJHAcz.js","./gherkin-1QurHPOF.js","./groovy-DFOLwJLv.js","./haskell-CUN2jxPH.js","./haxe-BYzKptPQ.js","./idl-cdmrQY5J.js","./javascript-l5LYdpfx.js","./julia-DxiTohY8.js","./livescript-BZkzGFkJ.js","./lua-rVV1vLen.js","./mathematica-DktJ0aJB.js","./mbox-Ch6IVA7h.js","./mirc-CdWws4At.js","./mllike-CB0tp4Bz.js","./modelica-DQGg_xsi.js","./mscgen-vDSxnAXy.js","./mumps-BzlVzIzl.js","./nsis-bDE8IZXy.js","./ntriples-BndMB6TK.js","./octave-DhnkL0CH.js","./oz-DbZmNL9y.js","./pascal-DhE1sEjD.js","./perl-BOZHK4Y3.js","./pig-eswHTOE9.js","./powershell-pm9G_Qg5.js","./properties-7VoeFdHR.js","./protobuf-BAsuCsmK.js","./pug-CcL3ml0F.js","./puppet-DUYPK8CV.js","./python-UQl3_T6H.js","./q-CnvA_jxT.js","./r-fM1OLzJB.js","./rpm-D62D_dq6.js","./ruby-DemvBD0m.js","./sas-CZjYQi4h.js","./scheme-nPNaP0Qp.js","./shell-BE2ANxN1.js","./sieve-DXFUN4C7.js","./smalltalk-DwXXlSAY.js","./sparql-CgejAdiJ.js","./stylus-CslB9TS3.js","./swift-5t7SQPo8.js","./tcl-Ddpe8YBc.js","./textile-D_Db33mq.js","./toml-CgkLq_pv.js","./troff-6nX9d05T.js","./ttcn-cfg-ByNDYolW.js","./ttcn-Dd4SMoHT.js","./turtle-LDF8uFGv.js","./vb-DaLxM60T.js","./vbscript-CwitZ57u.js","./velocity-D6bc4mrP.js","./verilog-CIyPdzYJ.js","./vhdl-DfyhlM4K.js","./webidl-C23hA3Le.js","./xquery-BAVQXrAf.js","./yacas-DrybVty2.js","./z80-8KI6AMtY.js","./code-xml-MBUyxNtK.js","./ellipsis-DwHM80y-.js","./play-BJDBXApx.js","./trash-BUTJdkWl.js","./prop-types-C638SUfx.js","./layout-BjXzDXoG.css","./utilities.esm-DG4qccZc.js","./toggle-G1t0cQyf.js","./globals-Bf30kOQF.js","./share-CXQVxivL.js","./_baseSet-6FYvpjrm.js","./react-resizable-panels.browser.esm-BqxQegSf.js","./types-BLEgJ92v.js","./requests-DiQsDZob.js","./runs-yuOchwkU.js","./request-registry-CAqj3mAX.js","./ws-itdlXHqs.js","./panels-B4E3DsXP.css","./icon-32x32-ZZIB7rLH.js","./download-DobaYJPt.js","./edit-page-DoH9XFiW.js","./loro_wasm_bg-CghhyG7y.js","./useDeleteCell-DHF_xvAh.js","./add-cell-with-ai-manh7kBT.js","./blob-Dg_vNTSs.js","./cell-editor-RHFZmO74.js","./useSplitCell-D9YiO-z5.js","./dist-Ciq1Lh9M.js","./circle-check-Cr0N4h9T.js","./save-BOTLFf-P.js","./cell-editor-Iey559K_.css","./useCellActionButton-D5Zt1dDz.js","./multi-icon-BOYRpNB_.js","./multi-icon-pwGWVz3d.css","./circle-plus-D1IRnTdM.js","./useNotebookActions-Ck-yX5ub.js","./add-database-form-CgkV0MRs.js","./write-secret-modal-hOetwavI.js","./field-Clr_fqUr.js","./form-BcKfhfZc.js","./_baseEach-BH6a1vAB.js","./hasIn-DydgU7lx.js","./file-plus-corner-BO_uS88s.js","./house-CncUa_LL.js","./square-leQTJTJJ.js","./CellStatus--kUu6N2K.js","./workflow-ZGK5flRg.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-D59iW_MD.js","./kiosk-mode-P-NYHJID.js","./useBoolean-B_S7yTZz.js","./arrow-left-DdsrQ78n.js","./clipboard-paste-CusmeEPf.js","./rotate-ccw-CF2xzGPz.js","./square-function-DxXFdbn8.js","./edit-page-Dstp9NQ5.css","./glide-data-editor-CRb9AiCG.js","./types-B42u_5hF.js","./click-outside-container-DS7-EhkB.js","./dist-enKhaMcN.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-BKJwCHu7.js","./spec-qp_XZeSS.js","./react-vega-ENLQ2Qtg.js","./linear-CLezLCLy.js","./timer-BEJidwwG.js","./init-BYCsRZEq.js","./time-BARczBNs.js","./range-gMGfxVwZ.js","./treemap-F5PoC_M0.js","./path-_EHCEa2c.js","./colors-CWfEs9Oi.js","./ordinal-RiUP-mHf.js","./arc-D0XsJSsf.js","./math-D-qpUWKO.js","./array-D5VxClQs.js","./step-Ca7ZnceH.js","./line-ortW3H6T.js","./isString-CqoLqJdS.js","./react-plotly-CJq-XPHC.js","./vega-component-C1voDf5W.js","./useDeepCompareMemoize-gzLRYatP.js","./_baseUniq-CsutM-S0.js","./slides-component-Dp0Yv5b0.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-B_O075Vu.js","./mermaid--ZwxKP7u.js","./dist-CpSELpRR.js","./chunk-JA3XYJ7Z-D-10sxL1.js","./src-HwYBNPfa.js","./src-lcGySDV2.js","./chunk-S3R3BYOJ-II_Vp8ON.js","./chunk-ABZYJK2D-DdkiqU2a.js","./chunk-ATLVNIR6-CxCpMHNQ.js","./chunk-CVBHYZKI-lxEaq00s.js","./chunk-EXTU4WIE-DR8p8HbZ.js","./chunk-HN2XXSSU-DNIvfs-V.js","./chunk-JZLCHNYA-WLmAEJkU.js","./chunk-MI3HLSF2-SpVCtnNg.js","./chunk-N4CR4FBY-B6JRv1RJ.js","./chunk-QXUST7PY-CPmz228Z.js","./mermaid.core-B2uv0SYk.js","./isEmpty-DIxUV1UR.js","./chunk-XAJISQIX-tpKLXb8K.js","./katex-D_p4uM5H.js","./mhchem-L2lUt6CA.js"])))=>i.map(i=>d[i]);
2
- var hE=Object.defineProperty;var fE=(Ka,oa,pr)=>oa in Ka?hE(Ka,oa,{enumerable:!0,configurable:!0,writable:!0,value:pr}):Ka[oa]=pr;var q=(Ka,oa,pr)=>fE(Ka,typeof oa!="symbol"?oa+"":oa,pr);import{o as gE,r as xE,s as ga,t as uu}from"./chunk-LvLJmgfZ.js";import{c as Tl,i as ze,l as $n,n as Oe,s as Rl,u as Al}from"./useEvent-DlWF5OMa.js";import{t as vE}from"./react-BGmjiNul.js";import{$r as Ln,En as C1,Ft as k1,G as cu,Hn as yE,I as bE,Jr as wE,Kn as DE,Lr as jE,Pn as CE,Pt as kE,Rn as Il,Tn as mu,Ur as SE,Vn as S1,Vt as NE,Wn as EE,Wr as _E,Xr as pu,Yr as N1,Zr as TE,ai as RE,di as E1,ii as Bn,jn as _1,qr as AE,rt as IE,ti as T1,ui as PE,vr as ME,vt as hu,x as FE,y as R1,zr as VE,__tla as zE}from"./cells-BNQUQiDS.js";import{t as Hn}from"./react-dom-C9fstfnp.js";import{A as zr,B as Se,C as Ht,E as OE,F as A1,I as ht,J as $E,N as Y,P as $,R as M,S as or,T as W,U as LE,V as xa,a as I1,b as ye,h as BE,i as P1,j as HE,k as He,n as M1,r as WE,s as fu,t as gu,v as UE,w as ee,x as F1,z as Ia}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as KE}from"./get-CyLJYAfP.js";import{t as V1}from"./pick-DeQioq0G.js";import{n as ZE}from"./useLifecycle-CmDXEyIC.js";import{t as Pa}from"./capitalize-DQeWKRGx.js";import{a as qE,i as xu,n as YE}from"./type-BdyvjzTI.js";import{i as GE,r as z1,t as QE}from"./tooltip-CrRUCOBw.js";import{A as JE,G as vu,H as XE,I as e_,J as t_,K as Or,L as a_,M as r_,N as n_,O as i_,Q as l_,R as o_,T as O1,U as s_,V as $1,W as Ma,Y as L1,Z as B1,at as Wn,et as d_,ft as u_,g as c_,it as yu,j as m_,k as p_,lt as H1,ot as h_}from"./utilities.esm-DG4qccZc.js";import{a as Fa,d as se,f as Va}from"./hotkeys-uKX61F1_.js";import{t as $r}from"./invariant-C6yE60hi.js";import{D as f_,O as g_,_ as x_,h as v_,i as y_,k as b_,l as w_,v as D_,x as j_}from"./utils-pfqq9IdB.js";import{r as bu}from"./constants-Bkp4R3bQ.js";import{A as W1,E as U1,O as Ze,a as C_,h as k_,i as K1,j as S_,l as N_,n as E_,p as __,r as wu,t as T_,w as Z1}from"./config-D6nhy4FA.js";import{a as R_,c as A_,l as I_,o as P_,r as M_,s as F_,t as V_}from"./switch-RowEjq0T.js";import{t as z_}from"./globals-Bf30kOQF.js";import{t as Pl}from"./ErrorBoundary-C7JBxSzd.js";import{n as O_,r as Ct,t as Ml}from"./useEventListener-COkmyg1v.js";import{t as $_}from"./jsx-runtime-DN_bIXfG.js";import{n as za,t as Ce}from"./button-B8cGZzP5.js";import{n as Fl,t as U}from"./cn-C1rgT0yh.js";import{at as L_}from"./dist-CAcX026F.js";import{$ as B_,A as H_,C as W_,D as U_,E as Du,F as ju,G as K_,H as Z_,J as q1,K as q_,O as Y_,P as Cu,S as G_,T as Y1,U as G1,V as Q1,W as Q_,Y as Un,b as J_,d as X_,et as eT,j as J1,l as tT,nt as aT,q as X1,r as rT,t as ev,tt as nT,u as iT,v as lT,w as oT,x as ku,y as sT,__tla as dT}from"./JsonOutput-BSGE-MRo.js";import{c as uT,n as tv,p as cT,r as va,t as mT}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as pT}from"./requests-C0HaHO6a.js";import{t as kt}from"./createLucideIcon-CW2xpJ57.js";import{A as hT,C as av,D as fT,O as gT,S as xT,_ as vT,a as rv,b as yT,c as nv,d as Kn,f as iv,g as bT,h as wT,i as Su,k as DT,l as jT,m as lv,n as CT,p as kT,r as ya,s as ST,t as NT,u as aa,v as ET,y as _T}from"./spec-qp_XZeSS.js";import{D as TT,E as RT,O as AT,h as IT,k as PT,l as MT,m as FT,n as VT,w as zT}from"./add-cell-with-ai-manh7kBT.js";import{t as OT,__tla as $T}from"./LazyAnyLanguageCodeMirror-Cp2punaU.js";import{i as LT,r as BT}from"./chat-components-CWiXtKu6.js";import{a as HT,i as WT,n as UT,o as KT,t as ov}from"./useBoolean-B_S7yTZz.js";import{_ as ZT,a as qT,c as Oa,d as YT,f as GT,h as Lr,i as Pt,l as Nu,m as sv,n as $a,o as Vl,p as dv,r as Br,s as sr,t as La}from"./select-D9lTzMzP.js";import{n as QT,s as zl}from"./download-B6EJS7Ar.js";import{t as Ol}from"./chevron-right-CqEd11Di.js";import{i as JT,o as XT}from"./maps-s2pQkyf5.js";import"./markdown-renderer-BPnVa0ym.js";import{u as eR}from"./toDate-5JckKRQn.js";import{P as uv,a as Eu,c as tR,i as aR,o as rR,p as cv,r as mv,t as pv}from"./dropdown-menu-BP4_BZLr.js";import{t as nR}from"./code-xml-MBUyxNtK.js";import{t as iR}from"./copy-gBVL4NN-.js";import{t as lR}from"./download-DobaYJPt.js";import{i as oR}from"./file-video-camera-CZUg-nFA.js";import{r as sR,t as dR}from"./types-CT2U5Ljy.js";import{n as uR,t as cR}from"./house-CncUa_LL.js";import{n as $l,t as Zn}from"./spinner-C1czjtp7.js";import{n as mR,t as _u}from"./readonly-python-code-CXeF74Iq.js";import{n as pR,t as Ll}from"./types-B42u_5hF.js";import{t as hv}from"./plus-CHesBJpY.js";import{t as hR}from"./refresh-cw-Din9uFKE.js";import{$ as ba,A as Tu,C as fR,D as gR,E as Ru,G as Ba,J as fv,K as xR,M as Bl,N as gv,O as xv,P as Hl,Q as vv,R as Au,T as Wl,U as vR,W as yR,X as Ha,Y as Hr,Z as Wa,_ as Ul,at as bR,b as wR,c as DR,ct as Kl,d as yv,et as bv,g as Wr,h as qn,i as jR,it as dr,k as Iu,l as CR,lt as ot,m as Zl,n as kR,nt as ql,o as Pu,ot as Ur,p as wv,q as Yl,r as Mu,rt as Fu,s as SR,st as NR,t as Vu,tt as Dv,u as Gl,ut as ER,v as zu,w as _R,z as TR}from"./input-B80Yt1uu.js";import{t as RR}from"./settings-MTlHVxz3.js";import{t as Ql}from"./square-function-DxXFdbn8.js";import{_ as Je,a as st,c as at,d as ur,f as AR,g as jv,h as IR,i as PR,l as nt,n as MR,o as Yn,p as Cv,r as FR,t as VR,u as ut,v as ra}from"./textarea-Di1KKcL4.js";import{a as zR,d as OR,i as $R,l as LR,o as kv,r as BR,s as HR,t as WR,u as UR}from"./column-preview-CKxT2s-S.js";import{t as KR}from"./square-leQTJTJJ.js";import{t as Sv}from"./trash-2-C-lF7BNB.js";import{t as Jl}from"./triangle-alert-CbD0f2J6.js";import{i as Nv,r as ZR,t as qR}from"./es-FiXEquL2.js";import{t as vt}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{n as YR,t as Wt}from"./use-toast-Bzf3rpev.js";import{r as Kr}from"./useTheme-CNj0G_ol.js";import{C as Xl,E as Ou,S as eo,_ as We,d as GR,f as Ev,g as Ut,h as QR,l as JR,m as XR,p as eA,u as tA,v as $u,w as Ee,x as Gn}from"./Combination-D1TsGrBC.js";import{l as aA,r as _v,t as rA}from"./dist-CBrDuocE.js";import{a as Lu,i as St,n as Bu,o as Hu,r as Wu,s as Tv,t as Mt}from"./tooltip-CvjcEpZC.js";import{d as to,u as Rv}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as nA,n as iA,t as lA}from"./mode-Dq8MKjNR.js";import{a as oA,c as sA,i as dA,l as uA,n as cA,s as mA,t as pA}from"./alert-dialog-jcHA5geR.js";import{a as Av,f as Uu,h as Iv,i as hA,l as Pv,m as fA,n as gA,o as ao,p as ro,r as xA,s as vA,t as Qn,u as no,v as io}from"./VisuallyHidden-B9t3FhTP.js";import{D as Mv,I as Fv,L as Vv,O as yA,P as bA,R as Zr,S as wA,k as Xe,n as DA,p as Ku,s as lo,t as zv,w as jA,z as wa}from"./usePress-DTwIUo40.js";import{t as CA}from"./SSRProvider-DD7JA3RM.js";import{n as Kt,r as kA,t as na}from"./useDateFormatter-DsANziQR.js";import{n as SA,t as qe}from"./context-DHfVoQfl.js";import{t as NA}from"./useNumberFormatter-FoXhpyAb.js";import{a as EA,i as _A,r as Ov,t as $v}from"./popover-DtnzNVk-.js";import{i as qr,r as TA}from"./numbers-C9_R_vlY.js";import{n as RA,t as Lv}from"./useDebounce-em3gna-v.js";import{t as AA}from"./ImperativeModal-DVhvP4lH.js";import"./share-CXQVxivL.js";import{a as Bv,i as Hv,n as Yr,r as IA,t as cr}from"./error-banner-DvT0IGDZ.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as oo}from"./copy-icon-jWsqdLn1.js";import{t as Me}from"./RenderHTML-Do_PVqRy.js";import"./purify.es-N-2faAGj.js";import{a as Wv,c as PA,i as Uv,l as MA,n as Zu,o as FA,r as Kv,s as VA}from"./multi-map-CQd4MZr5.js";import{n as zA,r as qu,t as so}from"./alert-BEdExd6A.js";import{i as ia,n as la,r as Jn,t as Xn}from"./tabs-Ctk4D03n.js";import{n as Nt}from"./useAsyncData-BJJJOr9W.js";import{a as OA,c as $A,o as LA,r as BA,s as HA,t as WA}from"./command-YPFTinLj.js";import{t as Zv}from"./dist-Dg7UO_Vw.js";import{__tla as UA}from"./chunk-OGVTOU66-CjNLT2C3.js";import"./katex-AwOI3EvM.js";import"./marked.esm-CHnOtnr3.js";import"./es-BoHEdemq.js";import{a as KA,o as ZA}from"./focus-DM53w5BH.js";import{a as qv,i as Yu,n as Gu,o as Gr,r as mr,t as Qu}from"./table--_20dwBZ.js";import{t as Ua}from"./useDeepCompareMemoize-gzLRYatP.js";import{t as Yv}from"./renderShortcut-eU5Hsfml.js";import{t as ei}from"./label-CNZLffHW.js";import{t as qA}from"./chat-display-CGnOamQG.js";import"./esm-B3JckBtM.js";import{n as YA}from"./icons-D4lB4En9.js";import{t as GA}from"./bundle.esm-B0Sy2M4C.js";import{a as Gv,c as QA,d as Qv,f as uo,i as JA,l as XA,n as Jv,o as e6,p as Da,r as t6,s as Xv,t as a6,u as oe}from"./form-BcKfhfZc.js";import"./react-resizable-panels.browser.esm-BqxQegSf.js";import{a as r6,i as ey,n as ty,t as ay}from"./field-Clr_fqUr.js";import{i as n6,n as i6,r as l6}from"./floating-outline-DCrTuu2G.js";Promise.all([(()=>{try{return zE}catch{}})(),(()=>{try{return dT}catch{}})(),(()=>{try{return $T}catch{}})(),(()=>{try{return UA}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var Ka=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),oa=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),pr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),ny=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),iy=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),ly=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),oy=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),sy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),dy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),uy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),ac=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),cy=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),rc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),my=ga(E1(),1);const ja={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function py(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:ja.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:ja.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:ja.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:ja.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function hy(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case ja.MATCH:r.push(t[n]),n++;break;case ja.DELETE:n++;break;case ja.INSERT:r.push(a);break;case ja.SUBSTITUTE:r.push(a),n++;break}return r}function fy(t,e,a,r){let n=py(t,e,a);return{merged:hy(t,n.operations,r),edits:n}}var ti=0,ai="";function gy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Ln.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||nc()]))}}if(!e){let o=t.cells.map(d=>d.id??Ln.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,nc()]))}}let{merged:n,edits:i}=fy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},ic());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Ln.create();l.push(u);let c=n[o]||ic();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function nc(){return{id:Ln.create(),name:ai,code:ai,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function ic(){return{id:Ln.create(),code_hash:null,console:[],outputs:[]}}function xy(t,e){var a,r,n;return{id:t,name:e.name??ai,code:e.code??ai,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function vy(t){let e=bE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ti};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ti}}}let n=t.console||[];return{...e,outline:e.output?IE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ti}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ti})}}function yy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=gy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=xy(o,u)),l[o]=vy(d)}return{cellIds:jE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var by=J(),lc=Object.freeze({left:0,top:0,width:16,height:16}),ri=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qr=Object.freeze({...lc,...ri}),mo=Object.freeze({...Qr,body:"",hidden:!1}),wy=Object.freeze({width:null,height:null}),oc=Object.freeze({...wy,...ri});function Dy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var jy=/[\s,]+/;function Cy(t,e){e.split(jy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var sc={...oc,preserveAspectRatio:""};function dc(t){let e={...sc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=Dy(a("rotate","")),Cy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function ky(t,e){for(let a in sc)if(t[a]!==e[a])return!0;return!1}var uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,Jr=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ni(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ni(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ni(o,a)?null:o}return null},ni=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Sy(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function cc(t,e){let a=Sy(t,e);for(let r in mo)r in ri?r in t&&!(r in a)&&(a[r]=ri[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Ny(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function Ey(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=cc(r[o]||n[o],i)}return l(e),a.forEach(l),cc(t,i)}function mc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Ny(t);for(let n in r){let i=r[n];i&&(e(n,Ey(t,n,i)),a.push(n))}return a}var _y={provider:"",aliases:{},not_found:{},...lc};function po(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function pc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!po(t,_y))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!po(i,mo))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!po(i,mo))return null}return e}var ii=Object.create(null);function Ty(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function sa(t,e){let a=ii[t]||(ii[t]=Object.create(null));return a[e]||(a[e]=Ty(t,e))}function hc(t,e){return pc(e)?mc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ry(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Ay(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(ii)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(ii[r]||{})).forEach(n=>{let i=sa(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var Xr=!1;function fc(t){return typeof t=="boolean"&&(Xr=t),Xr}function en(t){let e=typeof t=="string"?Jr(t,!0,Xr):t;if(e){let a=sa(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function gc(t,e){let a=Jr(t,!0,Xr);if(!a)return!1;let r=sa(a.provider,a.prefix);return e?Ry(r,a.name,e):(r.missing.add(a.name),!0)}function xc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Xr&&!e&&!t.prefix){let r=!1;return pc(t)&&(t.prefix="",mc(t,(n,i)=>{gc(n,i)&&(r=!0)})),r}let a=t.prefix;return ni({provider:e,prefix:a,name:"a"})?!!hc(sa(e,a),t):!1}function vc(t){return!!en(t)}function Iy(t){let e=en(t);return e&&{...Qr,...e}}function Py(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=sa(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let p={provider:i,prefix:l,name:o};c.push(p)}),e}function yc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function My(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||yc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var Fy=0;function Vy(t,e,a){let r=Fy++,n=yc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var ho=Object.create(null);function bc(t,e){ho[t]=e}function fo(t){return ho[t]||ho[""]}function zy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?Jr(n,e,a):n;i&&r.push(i)}),r}var Oy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $y(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let N=t.resources.slice(0);for(l=[];N.length>1;){let S=Math.floor(Math.random()*N.length);l.push(N[S]),N=N.slice(0,S).concat(N.slice(S+1))}l=l.concat(N)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,p=null,m=[],h=[];typeof r=="function"&&h.push(r);function f(){p&&(p=(clearTimeout(p),null))}function g(){d==="pending"&&(d="aborted"),f(),m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function v(N,S){S&&(h=[]),typeof N=="function"&&h.push(N)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:m.length,subscribe:v,abort:g}}function w(){d="failed",h.forEach(N=>{N(void 0,c)})}function D(){m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function j(N,S,y){let C=S!=="success";switch(m=m.filter(_=>_!==N),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){c=y,w();return}if(C){c=y,m.length||(l.length?k():w());return}if(f(),D(),!t.random){let _=t.resources.indexOf(N.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;f();let N=l.shift();if(N===void 0){if(m.length){p=setTimeout(()=>{f(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let S={status:"pending",resource:N,callback:(y,C)=>{j(S,y,C)}};m.push(S),u++,p=setTimeout(k,t.rotate),a(N,e,S.callback)}return setTimeout(k),b}function wc(t){let e={...Oy,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=$y(e,l,o,(c,p)=>{r(),d&&d(c,p)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function go(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var li=Object.create(null),oi=["https://api.simplesvg.com","https://api.unisvg.com"],xo=[];oi.length>0;)oi.length===1||Math.random()>.5?xo.push(oi.shift()):xo.push(oi.pop());li[""]=go({resources:["https://api.iconify.design"].concat(xo)});function Dc(t,e){let a=go(e);return a===null?!1:(li[t]=a,!0)}function si(t){return li[t]}function Ly(){return Object.keys(li)}function jc(){}var vo=Object.create(null);function By(t){if(!vo[t]){let e=si(t);if(!e)return;vo[t]={config:e,redundancy:wc(e)}}return vo[t]}function Cc(t,e,a){let r,n;if(typeof t=="string"){let i=fo(t);if(!i)return a(void 0,424),jc;n=i.send;let l=By(t);l&&(r=l.redundancy)}else{let i=go(t);if(i){r=wc(i);let l=fo(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),jc):r.query(e,n,a)().abort}function kc(){}function Hy(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,My(t)}))}function Wy(t){let e=[],a=[];return t.forEach(r=>{(r.match(uc)?e:a).push(r)}),{valid:e,invalid:a}}function tn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!hc(t,a).length){r();return}}catch(n){console.error(n)}r(),Hy(t)}function Sc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Uy(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Sc(t.loadIcons(n,r,a),u=>{tn(t,n,u)});return}if(i){n.forEach(u=>{Sc(i(u,r,a),c=>{tn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Wy(n);if(o.length&&tn(t,o,null),!l.length)return;let d=r.match(uc)?fo(a):null;if(!d){tn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Cc(a,u,c=>{tn(t,u.icons,c)})})}))}var yo=(t,e)=>{let a=Py(zy(t,!0,fc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(sa(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,p=sa(d,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(c)||(m.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Uy(o,d)}),e?Vy(e,a,n):kc},Ky=t=>new Promise((e,a)=>{let r=typeof t=="string"?Jr(t,!0):t;if(!r){a(t);return}yo([r||t],n=>{if(n.length&&r){let i=en(r);if(i){e({...Qr,...i});return}}a(t)})});function Nc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Zy(t,e){if(typeof t=="object")return{data:Nc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Nc(t);if(n)return{data:n,value:t}}let a=Jr(t,!0,!0);if(!a)return{value:t};let r=en(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:yo([a],()=>e(t,a,en(a)))}}var Ec=!1;try{Ec=navigator.vendor.indexOf("Apple")===0}catch{}function qy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Ec||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Yy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function bo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(Yy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Gy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Qy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Jy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Xy(t,e,a){let r=Qy(t);return Jy(r.defs,e+r.content+a)}var eb=t=>t==="unset"||t==="undefined"||t==="none";function _c(t,e){let a={...Qr,...t},r={...oc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(g=>{let v=[],b=g.hFlip,w=g.vFlip,D=g.rotate;b?w?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):w&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),v.length&&(i=Xy(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,p;l===null?(p=o===null?"1em":o==="auto"?u:o,c=bo(p,d/u)):(c=l==="auto"?d:l,p=o===null?bo(c,u/d):o==="auto"?u:o);let m={},h=(g,v)=>{eb(v)||(m[g]=v.toString())};h("width",c),h("height",p);let f=[n.left,n.top,d,u];return m.viewBox=f.join(" "),{attributes:m,viewBox:f,body:i}}function wo(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function tb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ab(t){return"data:image/svg+xml,"+tb(t)}function Tc(t){return'url("'+ab(t)+'")'}var di=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function rb(t){di=t}function nb(){return di}function ib(t,e){let a=si(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function lb(t){return t===404}var ob=(t,e,a)=>{let r=[],n=ib(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function sb(t){if(typeof t=="string"){let e=si(t);if(e)return e.path}return"/"}var db={prepare:ob,send:(t,e,a)=>{if(!di){a("abort",424);return}let r=sb(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;di(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(lb(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function ub(t,e,a){sa(a||"",e).loadIcons=t}function cb(t,e,a){sa(a||"",e).loadIcon=t}var Do="data-style",Rc="";function mb(t){Rc=t}function Ac(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Do));a||(a=document.createElement("style"),a.setAttribute(Do,Do),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Rc}function Ic(){bc("",db),fc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;Dc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:vc,iconExists:vc,getIcon:Iy,listIcons:Ay,addIcon:gc,addCollection:xc,calculateSize:bo,buildIcon:_c,iconToHTML:wo,svgToURL:Tc,loadIcons:yo,loadIcon:Ky,addAPIProvider:Dc,setCustomIconLoader:cb,setCustomIconsLoader:ub,appendCustomStyle:mb,_api:{getAPIConfig:si,setAPIModule:bc,sendAPIQuery:Cc,setFetch:rb,getFetch:nb,listAPIProviders:Ly}}}var jo={"background-color":"currentColor"},Pc={"background-color":"transparent"},Mc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Fc={"-webkit-mask":jo,mask:jo,background:Pc};for(let t in Fc){let e=Fc[t];for(let a in Mc)e[t+"-"+a]=Mc[a]}function Vc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function pb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(wo(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:Vc(i.width),height:Vc(i.height),...a?jo:Pc};for(let u in d)o.setProperty(u,d[u]);return r}var an;function hb(){try{an=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{an=null}}function fb(t){return an===void 0&&hb(),an?an.createHTML(t):t}function gb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=fb(wo(t.body,a)),e.firstChild}function Co(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function zc(t,e){let a=e.icon.data,r=e.customisations,n=_c(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=gb(n):l=pb(n,{...Qr,...a},i==="mask");let o=Co(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function Oc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function xb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ac(d,u),this._state=Oc({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ac(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}zc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=dc(this);(d.attrMode!==c||ky(d.customisations,p)||!Co(this._shadowRoot))&&this._renderIcon(d.icon,p,c)}_iconChanged(d){let u=Zy(d,(c,p,m)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let f={value:c,name:p,data:m};f.data?this._gotIconData(f):h.icon=f});u.data?this._gotIconData(u):this._state=Oc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=Co(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,dc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let p=qy(d.data.body,c),m=this._state.inline;zc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:u,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Ic();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:o6,disableCache:s6,iconLoaded:d6,iconExists:u6,getIcon:c6,listIcons:m6,addIcon:p6,addCollection:h6,calculateSize:f6,buildIcon:g6,iconToHTML:x6,svgToURL:v6,loadIcons:y6,loadIcon:b6,setCustomIconLoader:w6,setCustomIconsLoader:D6,addAPIProvider:j6,_api:C6}=xb()||Ic(),x=ga(vE(),1),s=ga($_(),1);const vb=()=>((0,by.c)(1),null);var $c=J();const Lc=(0,x.memo)(t=>{let e=(0,$c.c)(3),{children:a}=t,{theme:r}=Kr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Lc.displayName="ThemeProvider";const yb=t=>{let e=(0,$c.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},ko=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};var bb=J();const wb=()=>{let t=(0,bb.c)(25),[e,a]=$n(h_);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),Wt({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{Wt({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=r);let n=r,i;t[2]===a?i=t[3]:(i=()=>{a(null)},t[2]=a,t[3]=i);let l=i,o=Db,d;t[4]===l?d=t[5]:(d=D=>!D&&l(),t[4]=l,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(sA,{children:[(0,s.jsxs)(uA,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(EE,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(oA,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=u):u=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=c):c=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(iR,{className:"h-3 w-3"}),t[8]=p):p=t[8];let m;t[9]===n?m=t[10]:(m=(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[c,(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:n,className:"flex items-center gap-1",children:[p,"Copy"]})]}),t[9]=n,t[10]=m);let h;t[11]===e?h=t[12]:(h=(0,s.jsx)("pre",{className:"bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80 whitespace-pre-wrap break-words",children:e}),t[11]=e,t[12]=h);let f;t[13]!==m||t[14]!==h?(f=(0,s.jsxs)("div",{className:"my-4",children:[m,h]}),t[13]=m,t[14]=h,t[15]=f):f=t[15];let g;t[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsxs)(Ce,{variant:"outline",onClick:o,className:"flex items-center gap-2",children:[(0,s.jsx)(cR,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=g):g=t[16];let v;t[17]===l?v=t[18]:(v=(0,s.jsxs)(mA,{children:[g,(0,s.jsx)(cA,{onClick:l,children:"Dismiss"})]}),t[17]=l,t[18]=v);let b;t[19]!==v||t[20]!==f?(b=(0,s.jsxs)(dA,{className:"max-w-2xl",children:[u,f,v]}),t[19]=v,t[20]=f,t[21]=b):b=t[21];let w;return t[22]!==b||t[23]!==d?(w=(0,s.jsx)(pA,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=w):w=t[24],w};function Db(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function jb(){return window.ResizeObserver!==void 0}function ui(t){let{ref:e,box:a,onResize:r}=t,n=Ku(r);(0,x.useEffect)(()=>{let i=e==null?void 0:e.current;if(i)if(jb()){let l=new window.ResizeObserver(o=>{o.length&&n()});return l.observe(i,{box:a}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[e,a])}var Cb=Hn();function kb(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return wa(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Bc(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function Sb(t,e){let[a,r]=(0,x.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Bc(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Bc(t,e,a){wa(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,Cb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Et={top:"top",bottom:"top",left:"left",right:"left"},ci={top:"bottom",bottom:"top",left:"right",right:"left"},Nb={top:"left",left:"top"},So={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},mi={},Eb=()=>typeof document<"u"?window.visualViewport:null;function Wc(t,e){let a=0,r=0,n=0,i=0,l=0,o=0,d={},u=((e==null?void 0:e.scale)??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let c=document.documentElement;n=c.clientWidth,i=c.clientHeight,a=(e==null?void 0:e.width)??n,r=(e==null?void 0:e.height)??i,d.top=c.scrollTop||t.scrollTop,d.left=c.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,o=e.offsetLeft)}else({width:a,height:r,top:l,left:o}=rn(t,!1)),d.top=t.scrollTop,d.left=t.scrollLeft,n=a,i=r;return wA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u&&(d.top=0,d.left=0,l=(e==null?void 0:e.pageTop)??0,o=(e==null?void 0:e.pageLeft)??0),{width:a,height:r,totalWidth:n,totalHeight:i,scroll:d,top:l,left:o}}function _b(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Uc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[So[t]],u=l[t]+r.scroll[Et[t]]+i,c=l[t]+r.scroll[Et[t]]+d-i,p=e-o+r.scroll[Et[t]]+l[t]-r[Et[t]],m=e-o+a+r.scroll[Et[t]]+l[t]-r[Et[t]];return p<u?u-p:m>c?Math.max(c-m,u-p):0}function Tb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Kc(t){if(mi[t])return mi[t];let[e,a]=t.split(" "),r=Et[e]||"right",n=Nb[r];Et[a]||(a="center");let i=So[r],l=So[n];return mi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},mi[t]}function No(t,e,a,r,n,i,l,o,d,u,c){let{placement:p,crossPlacement:m,axis:h,crossAxis:f,size:g,crossSize:v}=r,b={};b[f]=t[f]??0,m==="center"?b[f]+=((t[v]??0)-(a[v]??0))/2:m!==f&&(b[f]+=(t[v]??0)-(a[v]??0)),b[f]+=i;let w=t[f]-a[v]+d+u,D=t[f]+t[v]-d-u;if(b[f]=Fu(b[f],w,D),p===h){let j=o?c[g]:c[Hc[g]];b[ci[h]]=Math.floor(j-t[h]+n)}else b[h]=Math.floor(t[h]+t[g]+n);return b}function Rb(t,e,a,r,n,i,l,o,d,u,c){let p=(t.top==null?d[Hc.height]-(t.bottom??0)-l:t.top)-(d.scroll.top??0),m=u?a.top:0,h={top:Math.max(e.top+m,((c==null?void 0:c.offsetTop)??e.top)+m),bottom:Math.min(e.top+e.height+m,((c==null?void 0:c.offsetTop)??0)+((c==null?void 0:c.height)??0))};return o==="top"?Math.max(0,p+l-h.top-((n.top??0)+(n.bottom??0)+i)):Math.max(0,h.bottom-p-((n.top??0)+(n.bottom??0)+i))}function Zc(t,e,a,r,n,i,l,o){let{placement:d,axis:u,size:c}=i;return d===u?Math.max(0,a[u]-(l.scroll[u]??0)-(t[u]+(o?e[u]:0))-(r[u]??0)-r[ci[u]]-n):Math.max(0,t[c]+t[u]+(o?e[u]:0)-a[u]-a[c]+(l.scroll[u]??0)-(r[u]??0)-r[ci[u]]-n)}function Ab(t,e,a,r,n,i,l,o,d,u,c,p,m,h,f,g,v,b){let w=Kc(t),{size:D,crossAxis:j,crossSize:k,placement:N,crossPlacement:S}=w,y=No(e,o,a,w,c,p,u,m,f,g,d),C=c,_=Zc(o,u,e,n,i+c,w,d,v);if(l&&a[D]>_){let G=Kc(`${ci[N]} ${S}`),Q=No(e,o,a,G,c,p,u,m,f,g,d);Zc(o,u,e,n,i+c,G,d,v)>_&&(w=G,y=Q,C=c)}let E="bottom";w.axis==="top"?w.placement==="top"?E="top":w.placement==="bottom"&&(E="bottom"):w.crossAxis==="top"&&(w.crossPlacement==="top"?E="bottom":w.crossPlacement==="bottom"&&(E="top"));let T=Uc(j,y[j],a[k],o,d,i,u);y[j]+=T;let P=Rb(y,o,u,m,n,i,a.height,E,d,v,b);h&&h<P&&(P=h),a.height=Math.min(a.height,P),y=No(e,o,a,w,C,p,u,m,f,g,d),T=Uc(j,y[j],a[k],o,d,i,u),y[j]+=T;let R={},F=e[j]-y[j]-n[Et[j]],I=F+.5*e[k],V=f/2+g,A=Et[j]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),O=a[k]-A-f/2-g;R[j]=Fu(Fu(I,e[j]+f/2-(y[j]+n[Et[j]]),e[j]+e[k]-f/2-(y[j]+n[Et[j]])),V,O),{placement:N,crossPlacement:S}=w,f?F=R[j]:S==="right"?F+=e[k]:S==="center"&&(F+=e[k]/2);let z=N==="left"||N==="top"?a[D]:0,L={x:N==="top"||N==="bottom"?F:z,y:N==="left"||N==="right"?F:z};return{position:y,maxHeight:P,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:N,triggerAnchorPoint:L}}function Ib(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:p=0,arrowBoundaryOffset:m=0}=t,h=Eb(),f=r instanceof HTMLElement?Pb(r):document.documentElement,g=f===document.documentElement,v=window.getComputedStyle(f).position,b=!!v&&v!=="static",w=g?rn(a,!1):qc(a,f,!1);if(!g){let{marginTop:k,marginLeft:N}=window.getComputedStyle(a);w.top+=parseInt(k,10)||0,w.left+=parseInt(N,10)||0}let D=rn(r,!0),j=Tb(r);return D.width+=(j.left??0)+(j.right??0),D.height+=(j.top??0)+(j.bottom??0),Ab(e,w,D,_b(n),j,i,l,Wc(o,h),Wc(f,h),qc(o,f,!1),d,u,b,c,p,m,o.contains(f),h)}function Eo(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function rn(t,e){let{top:a,left:r,width:n,height:i}=Eo(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function qc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=Eo(t,a);else{n=rn(t,a);let i=rn(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Pb(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Yc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Yc(e);)e=e.parentElement;return e||document.documentElement}function Yc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Mb=new WeakMap;function Fb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Mb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function hr(t,e){return t-e*Math.floor(t/e)}var Gc=1721426;function Za(t,e,a,r){e=nn(t,e);let n=e-1,i=-2;return a<=2?i=0:Ca(e)&&(i=-1),Gc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Ca(t){return t%4==0&&(t%100!=0||t%400==0)}function nn(t,e){return t==="BC"?1-e:e}function pi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Vb={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},ft=class{fromJulianDay(t){let e=t,a=e-Gc,r=Math.floor(a/146097),n=hr(a,146097),i=Math.floor(n/36524),l=hr(n,36524),o=Math.floor(l/1461),d=hr(l,1461),u=Math.floor(d/365),[c,p]=pi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),m=e-Za(c,p,1,1),h=2;e<Za(c,p,3,1)?h=0:Ca(p)&&(h=1);let f=Math.floor(((m+h)*12+373)/367);return new rt(c,p,f,e-Za(c,p,f,1)+1)}toJulianDay(t){return Za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Vb[Ca(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ca(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},zb={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ue(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Ob(t,e){return e=Fe(e,t.calendar),t=qa(t),e=qa(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function _o(t,e){return hi(t.calendar,e.calendar)&&Ue(t,e)}function hi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Qc(t,e){return Ue(t,fi(e))}var $b={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function To(t,e,a){let r=t.calendar.toJulianDay(t),n=a?$b[a]:Kb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Jc(t){return ua(Date.now(),t)}function fi(t){return ct(Jc(t))}function Xc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function em(t,e){return tm(t)-tm(e)}function tm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var am=null;function gi(){return am??(am=new Intl.DateTimeFormat().resolvedOptions().timeZone),am}function qa(t){return t.subtract({days:t.day-1})}function xi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Lb(t){return qa(t.subtract({months:t.month-1}))}function Bb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Hb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function ln(t,e,a){let r=To(t,e,a);return t.subtract({days:r})}function Wb(t,e,a){return ln(t,e,a).add({days:6})}var rm=new Map,Ro=new Map;function Ub(t){if(Intl.Locale){let a=rm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&rm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Kb(t){let e=Ro.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ro.set(t,e),e.firstDay}let a=Ub(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&zb[a]||0};Ro.set(t,e)}return e.firstDay}function Zb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((To(qa(t),e,a)+r)/7)}function Ao(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Io(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function fr(t){return t=Fe(t,new ft),nm(nn(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function nm(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Po(t,e){if(e==="UTC")return 0;if(t>0&&e===gi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=lm(t,e);return nm(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var im=new Map;function lm(t,e){let a=im.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),im.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var om=864e5;function qb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Yb(t,e,n))}function Yb(t,e,a){let r=lm(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function da(t,e,a="compatible"){let r=Zt(t);if(e==="UTC")return fr(r);if(e===gi()&&a==="compatible"){r=Fe(r,new ft);let d=new Date,u=nn(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=fr(r),i=Po(n-om,e),l=Po(n+om,e),o=qb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function sm(t,e,a="compatible"){return new Date(da(t,e,a))}function ua(t,e){let a=Po(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new bm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function ct(t){return new rt(t.calendar,t.era,t.year,t.month,t.day)}function Zt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new ym(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(hi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ya(r),r}function Gb(t,e,a){return t instanceof bm?t.timeZone===e?t:Jb(t,e):ua(da(t,e,a),e)}function Qb(t){let e=fr(t)-t.offset;return new Date(e)}function Jb(t,e){return Fe(ua(fr(t)-t.offset,e),t.calendar)}var on=36e5;function vi(t,e){var o;let a=t.copy(),r="hour"in a?mm(a,e):0;Mo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Fo(a),dm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Xb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Mo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Fo(t){for(;t.month<1;)Mo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Mo(t,1)}function Xb(t){for(;t.day<1;)t.month--,Fo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Fo(t)}function dm(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ya(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),dm(t)}function Vo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function um(t,e){return vi(t,Vo(e))}function zo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ya(a),a}function sn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),cm(a),a}function ew(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=yi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=yi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=yi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=yi(t.hour,24),e}function cm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function yi(t,e){let a=t%e;return a<0&&(a+=e),a}function mm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ew(t)}function pm(t,e){let a=t.copy();return mm(a,e),a}function tw(t,e){return pm(t,Vo(e))}function Oo(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ca(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ya(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ca(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ca(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ca(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ya(n),n}function $o(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ca(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ca(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ca(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ca(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ca(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function hm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?da(vi(Zt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):fr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ua(a,t.timeZone),t.calendar)}function aw(t,e){return hm(t,Vo(e))}function rw(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let f=t.hour>=12;n=f?12:0,i=f?23:11}let l=Zt(t),o=Fe(sn(l,{hour:n}),new ft),d=[da(o,t.timeZone,"earlier"),da(o,t.timeZone,"later")].filter(f=>ua(f,t.timeZone).day===o.day)[0],u=Fe(sn(l,{hour:i}),new ft),c=[da(u,t.timeZone,"earlier"),da(u,t.timeZone,"later")].filter(f=>ua(f,t.timeZone).day===u.day).pop(),p=fr(t)-t.offset,m=Math.floor(p/on),h=p%on;return p=ca(m,a,Math.floor(d/on),Math.floor(c/on),r==null?void 0:r.round)*on+h,Fe(ua(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return $o(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ua(da(Oo(Zt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function nw(t,e,a){let r=Zt(t),n=sn(zo(r,e),e);return n.compare(r)===0?t:Fe(ua(da(n,t.timeZone,a),t.timeZone),t.calendar)}var iw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,fm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ka(t){let e=t.match(iw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new rt(qt(e[1],0,9999),qt(e[2],1,12),1);return a.day=qt(e[3],1,a.calendar.getDaysInMonth(a)),a}function bi(t){let e=t.match(lw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=qt(e[1],-9999,9999),r=new ym(a<1?"BC":"AD",a<1?-a+1:a,qt(e[2],1,12),1,e[4]?qt(e[4],0,23):0,e[5]?qt(e[5],0,59):0,e[6]?qt(e[6],0,59):0,e[7]?qt(e[7],0,1/0)*1e3:0);return r.day=qt(e[3],0,r.calendar.getDaysInMonth(r)),r}function qt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function gm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function xm(t){let e=Fe(t,new ft),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function vm(t){return`${xm(t)}T${gm(t)}`}function ow(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function sw(t){return`${vm(t)}${ow(t.offset)}[${t.timeZone}]`}function Lo(t){let e=typeof t[0]=="object"?t.shift():new ft,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var dw=new WeakMap,rt=class Ju{copy(){return this.era?new Ju(this.calendar,this.era,this.year,this.month,this.day):new Ju(this.calendar,this.year,this.month,this.day)}add(e){return vi(this,e)}subtract(e){return um(this,e)}set(e){return zo(this,e)}cycle(e,a,r){return Oo(this,e,a,r)}toDate(e){return sm(this,e)}toString(){return xm(this)}compare(e){return Xc(this,e)}constructor(...e){lo(this,dw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ya(this)}},uw=new WeakMap,cw=class ry{copy(){return new ry(this.hour,this.minute,this.second,this.millisecond)}add(e){return pm(this,e)}subtract(e){return tw(this,e)}set(e){return sn(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toString(){return gm(this)}compare(e){return em(this,e)}constructor(e=0,a=0,r=0,n=0){lo(this,uw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,cm(this)}},mw=new WeakMap,ym=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return vi(this,e)}subtract(e){return um(this,e)}set(e){return zo(sn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return Oo(this,e,a,r);default:return $o(this,e,a,r)}}toDate(e,a){return sm(this,e,a)}toString(){return vm(this)}compare(e){let a=Xc(this,e);return a===0?em(this,Zt(e)):a}constructor(...e){lo(this,mw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ya(this)}},pw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return aw(this,e)}set(e,a){return nw(this,e,a)}cycle(e,a,r){return rw(this,e,a,r)}toDate(){return Qb(this)}toString(){return sw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Gb(e,this.timeZone).toDate().getTime()}constructor(...e){lo(this,pw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ya(this)}},gr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],wi=[1867,1911,1925,1988,2018],Sa=["meiji","taisho","showa","heisei","reiwa"];function wm(t){let e=gr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?gr.length-1:e===0?0:e-1}function Bo(t){let e=wi[Sa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new rt(t.year+e,t.month,t.day)}var fw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=wm(e);return new rt(this,Sa[a],e.year-wi[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Bo(t))}balanceDate(t){let e=Bo(t),a=wm(e);Sa[a]!==t.era&&(t.era=Sa[a],t.year=e.year-wi[a]),this.constrainDate(t)}constrainDate(t){let e=Sa.indexOf(t.era),a=hw[e];if(a!=null){let[r,n,i]=a,l=r-wi[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=gr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Sa}getYearsInEra(t){let e=Sa.indexOf(t.era),a=gr[e],r=gr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Bo(t))}getMinimumMonthInYear(t){let e=Dm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=Dm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function Dm(t){if(t.year===1)return gr[Sa.indexOf(t.era)]}var jm=-543,gw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=nn(e.era,e.year);return new rt(this,a-jm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Cm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Cm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Cm(t){let[e,a]=pi(t.year+jm);return new rt(e,a,t.month,t.day)}var Di=1911;function km(t){return t.era==="minguo"?t.year+Di:1-t.year+Di}function Sm(t){let e=t-Di;return e>0?["minguo",e]:["before_minguo",1-e]}var xw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Sm(nn(e.era,e.year));return new rt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Nm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Sm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Nm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Di}constructor(...t){super(...t),this.identifier="roc"}};function Nm(t){let[e,a]=pi(km(t));return new rt(e,a,t.month,t.day)}var Em=1948320,_m=[0,31,62,93,124,155,186,216,246,276,306,336],vw=class{fromJulianDay(t){let e=t-Em,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-_m[n]+1;return new rt(this,a,n+1,i)}toJulianDay(t){let e=Em-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=_m[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||hr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Ho=78,Tm=80,yw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Ho,r=t-Za(e.era,e.year,1,1),n;r<Tm?(a--,n=Ca(e.year-1)?31:30,r+=n+155+90+10):(n=Ca(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new rt(this,a,i,l)}toJulianDay(t){let[e,a]=pi(t.year+Ho),r,n;return Ca(a)?(r=31,n=Za(e,a,3,21)):(r=30,n=Za(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&Ca(t.year+Ho)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},ji=1948440,Rm=1948439,_t=1300,xr=1600,bw=460322;function Ci(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Am(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Ci(e,r,1,1)))/29.5)+1);return new rt(t,r,n,a-Ci(e,r,n,1)+1)}function Im(t){return(14+11*t)%30<11}var Wo=class{fromJulianDay(t){return Am(this,ji,t)}toJulianDay(t){return Ci(ji,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Im(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Im(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},ww=class extends Wo{fromJulianDay(t){return Am(this,Rm,t)}toJulianDay(t){return Ci(Rm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Dw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Pm,vr;function ki(t){return bw+vr[t-_t]}function dn(t,e){let a=t-_t,r=1<<11-(e-1);return(Pm[a]&r)===0?29:30}function Mm(t,e){let a=ki(t);for(let r=1;r<e;r++)a+=dn(t,r);return a}function Fm(t){return vr[t+1-_t]-vr[t-_t]}var jw=class extends Wo{fromJulianDay(t){let e=t-ji,a=ki(_t),r=ki(xr);if(e<a||e>r)return super.fromJulianDay(t);{let n=_t-1,i=1,l=1;for(;l>0;){n++,l=e-ki(n)+1;let o=Fm(n);if(l===o){i=12;break}else if(l<o){let d=dn(n,i);for(i=1;l>d;)l-=d,i++,d=dn(n,i);break}}return new rt(this,n,i,e-Mm(n,i)+1)}}toJulianDay(t){return t.year<_t||t.year>xr?super.toJulianDay(t):ji+Mm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<_t||t.year>xr?super.getDaysInMonth(t):dn(t.year,t.month)}getDaysInYear(t){return t.year<_t||t.year>xr?super.getDaysInYear(t):Fm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pm||(Pm=new Uint16Array(Uint8Array.from(atob(Dw),t=>t.charCodeAt(0)).buffer)),!vr){vr=new Uint32Array(xr-_t+1);let t=0;for(let e=_t;e<=xr;e++){vr[e-_t]=t;for(let a=1;a<=12;a++)t+=dn(e,a)}}}},Vm=347997,zm=1080,Om=24*zm,Cw=29,kw=12*zm+793,Sw=Cw*Om+kw;function Ga(t){return hr(t*7+1,19)<7}function Si(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return hr(3*(r+1),7)<3&&(r+=1),r}function Nw(t){let e=Si(t-1),a=Si(t);return Si(t+1)-a===356?2:a-e===382?1:0}function un(t){return Si(t)+Nw(t)}function $m(t){return un(t+1)-un(t)}function Ew(t){let e=$m(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ni(t,e){if(e>=6&&!Ga(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=Ew(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ga(t)?30:0:30}var _w=class{fromJulianDay(t){let e=t-Vm,a=e*Om/Sw,r=Math.floor((19*a+234)/235)+1,n=un(r),i=Math.floor(e-n);for(;i<1;)r--,n=un(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Ni(r,l),l++;l--,o-=Ni(r,l);let d=i-o;return new rt(this,r,l,d)}toJulianDay(t){let e=un(t.year);for(let a=1;a<t.month;a++)e+=Ni(t.year,a);return e+t.day+Vm}getDaysInMonth(t){return Ni(t.year,t.month)}getMonthsInYear(t){return Ga(t.year)?13:12}getDaysInYear(t){return $m(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Ga(e.year)&&!Ga(t.year)&&e.month>6?t.month--:!Ga(e.year)&&Ga(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Uo=1723856,Lm=1824665,Ko=5500;function Ei(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Zo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Ei(t,a,1,1))/30);return[a,r,e+1-Ei(t,a,r,1)]}function Bm(t){return Math.floor(t%4/3)}function Hm(t,e){return e%13==0?Bm(t)+5:30}var qo=class{fromJulianDay(t){let[e,a,r]=Zo(Uo,t),n="AM";return e<=0&&(n="AA",e+=Ko),new rt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Ko),Ei(Uo,e,t.month,t.day)}getDaysInMonth(t){return Hm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Bm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},Tw=class extends qo{fromJulianDay(t){let[e,a,r]=Zo(Uo,t);return e+=Ko,new rt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Rw=class extends qo{fromJulianDay(t){let[e,a,r]=Zo(Lm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new rt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ei(Lm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Hm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Yo(t){switch(t){case"buddhist":return new gw;case"ethiopic":return new qo;case"ethioaa":return new Tw;case"coptic":return new Rw;case"hebrew":return new _w;case"indian":return new yw;case"islamic-civil":return new Wo;case"islamic-tbla":return new ww;case"islamic-umalqura":return new jw;case"japanese":return new fw;case"persian":return new vw;case"roc":return new xw;default:return new ft}}function Aw(t){let e=vA({usage:"search",...t}),a=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,x.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ke=typeof document<"u"?window.visualViewport:null;function Iw(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:p=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:g,maxHeight:v,arrowBoundaryOffset:b=0}=t,[w,D]=(0,x.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,p,m,f,e,v,b,a],k=(0,x.useRef)(Ke==null?void 0:Ke.scale);(0,x.useEffect)(()=>{f&&(k.current=Ke==null?void 0:Ke.scale)},[f]);let N=(0,x.useCallback)(()=>{var T,P;if(h===!1||!f||!n.current||!r.current||!c||(Ke==null?void 0:Ke.scale)!==k.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let R=(T=document.activeElement)==null?void 0:T.getBoundingClientRect(),F=l.current.getBoundingClientRect();C={type:"top",offset:((R==null?void 0:R.top)??0)-F.top},C.offset>F.height/2&&(C.type="bottom",C.offset=((R==null?void 0:R.bottom)??0)-F.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Ib({placement:Mw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:p,crossOffset:m,maxHeight:v,arrowSize:a??(i!=null&&i.current?Eo(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(R=>_.style[R]=E.position[R]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let R=document.activeElement.getBoundingClientRect(),F=l.current.getBoundingClientRect(),I=R[C.type]-F[C.type];l.current.scrollTop+=I-C.offset}D(E)}},j);wa(N,j),Pw(N),ui({ref:n,onResize:N}),ui({ref:r,onResize:N});let S=(0,x.useRef)(!1);wa(()=>{let C,_=()=>{S.current=!0,clearTimeout(C),C=setTimeout(()=>{S.current=!1},500),N()},E=()=>{S.current&&_()};return Ke==null||Ke.addEventListener("resize",_),Ke==null||Ke.addEventListener("scroll",E),()=>{Ke==null||Ke.removeEventListener("resize",_),Ke==null||Ke.removeEventListener("scroll",E)}},[N]);let y=(0,x.useCallback)(()=>{S.current||(g==null||g())},[g,S]);return Fb({triggerRef:r,isOpen:f,onClose:g&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:N}}function Pw(t){wa(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Fw({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(DA.Provider,{value:e},t)}function Vw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Ku(d=>{a&&Wm(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=Ku(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=bA(u);if(typeof PointerEvent<"u"){let p=m=>{d.isPointerDown&&Wm(m,e)&&o(m),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",p,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",p,!0)}}},[e,r])}function Wm(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var Yt=[];function zw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,x.useEffect)(()=>{if(n&&!Yt.includes(e))return Yt.push(e),()=>{let f=Yt.indexOf(e);f>=0&&Yt.splice(f,1)}},[n,e]);let d=()=>{Yt[Yt.length-1]===e&&a&&a()},u=f=>{(!o||o(f.target))&&Yt[Yt.length-1]===e&&(f.stopPropagation(),f.preventDefault())},c=f=>{(!o||o(f.target))&&(Yt[Yt.length-1]===e&&(f.stopPropagation(),f.preventDefault()),d())},p=f=>{f.key==="Escape"&&!l&&!f.nativeEvent.isComposing&&(f.stopPropagation(),f.preventDefault(),d())};Vw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Hl({isDisabled:!r,onBlurWithin:f=>{!f.relatedTarget||xA(f.relatedTarget)||(!o||o(f.relatedTarget))&&(a==null||a())}}),h=f=>{f.target===f.currentTarget&&f.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}var cn=typeof document<"u"&&window.visualViewport,_i=0,Um;function Ow(t={}){let{isDisabled:e}=t;wa(()=>{if(!e)return _i++,_i===1&&(Um=Mv()?Lw():$w()),()=>{_i--,_i===0&&Um()}},[e])}function $w(){let t=window.innerWidth-document.documentElement.clientWidth;return Fv(t>0&&("scrollbarGutter"in document.documentElement.style?Go(document.documentElement,"scrollbarGutter","stable"):Go(document.documentElement,"paddingRight",`${t}px`)),Go(document.documentElement,"overflow","hidden"))}function Lw(){let t,e=!1,a=d=>{let u=d.target;t=fA(u)?u:ro(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
2
+ var hE=Object.defineProperty;var fE=(Ka,oa,pr)=>oa in Ka?hE(Ka,oa,{enumerable:!0,configurable:!0,writable:!0,value:pr}):Ka[oa]=pr;var q=(Ka,oa,pr)=>fE(Ka,typeof oa!="symbol"?oa+"":oa,pr);import{o as gE,r as xE,s as ga,t as uu}from"./chunk-LvLJmgfZ.js";import{c as Tl,i as ze,l as $n,n as Oe,s as Rl,u as Al}from"./useEvent-DlWF5OMa.js";import{t as vE}from"./react-BGmjiNul.js";import{$r as Ln,En as C1,Ft as k1,G as cu,Hn as yE,I as bE,Jr as wE,Kn as DE,Lr as jE,Pn as CE,Pt as kE,Rn as Il,Tn as mu,Ur as SE,Vn as S1,Vt as NE,Wn as EE,Wr as _E,Xr as pu,Yr as N1,Zr as TE,ai as RE,di as E1,ii as Bn,jn as _1,qr as AE,rt as IE,ti as T1,ui as PE,vr as ME,vt as hu,x as FE,y as R1,zr as VE,__tla as zE}from"./cells-BNQUQiDS.js";import{t as Hn}from"./react-dom-C9fstfnp.js";import{A as zr,B as Se,C as Ht,E as OE,F as A1,I as ht,J as $E,N as Y,P as $,R as M,S as or,T as W,U as LE,V as xa,a as I1,b as ye,h as BE,i as P1,j as HE,k as He,n as M1,r as WE,s as fu,t as gu,v as UE,w as ee,x as F1,z as Ia}from"./zod-Cg4WLWh2.js";import{t as J}from"./compiler-runtime-DeeZ7FnK.js";import{t as KE}from"./get-CyLJYAfP.js";import{t as V1}from"./pick-DeQioq0G.js";import{n as ZE}from"./useLifecycle-CmDXEyIC.js";import{t as Pa}from"./capitalize-DQeWKRGx.js";import{a as qE,i as xu,n as YE}from"./type-BdyvjzTI.js";import{i as GE,r as z1,t as QE}from"./tooltip-CrRUCOBw.js";import{A as JE,G as vu,H as XE,I as e_,J as t_,K as Or,L as a_,M as r_,N as n_,O as i_,Q as l_,R as o_,T as O1,U as s_,V as $1,W as Ma,Y as L1,Z as B1,at as Wn,et as d_,ft as u_,g as c_,it as yu,j as m_,k as p_,lt as H1,ot as h_}from"./utilities.esm-DG4qccZc.js";import{a as Fa,d as se,f as Va}from"./hotkeys-uKX61F1_.js";import{t as $r}from"./invariant-C6yE60hi.js";import{D as f_,O as g_,_ as x_,h as v_,i as y_,k as b_,l as w_,v as D_,x as j_}from"./utils-pfqq9IdB.js";import{r as bu}from"./constants-Bkp4R3bQ.js";import{A as W1,E as U1,O as Ze,a as C_,h as k_,i as K1,j as S_,l as N_,n as E_,p as __,r as wu,t as T_,w as Z1}from"./config-D6nhy4FA.js";import{a as R_,c as A_,l as I_,o as P_,r as M_,s as F_,t as V_}from"./switch-RowEjq0T.js";import{t as z_}from"./globals-Bf30kOQF.js";import{t as Pl}from"./ErrorBoundary-C7JBxSzd.js";import{n as O_,r as Ct,t as Ml}from"./useEventListener-COkmyg1v.js";import{t as $_}from"./jsx-runtime-DN_bIXfG.js";import{n as za,t as Ce}from"./button-B8cGZzP5.js";import{n as Fl,t as U}from"./cn-C1rgT0yh.js";import{at as L_}from"./dist-CAcX026F.js";import{$ as B_,A as H_,C as W_,D as U_,E as Du,F as ju,G as K_,H as Z_,J as q1,K as q_,O as Y_,P as Cu,S as G_,T as Y1,U as G1,V as Q1,W as Q_,Y as Un,b as J_,d as X_,et as eT,j as J1,l as tT,nt as aT,q as X1,r as rT,t as ev,tt as nT,u as iT,v as lT,w as oT,x as ku,y as sT,__tla as dT}from"./JsonOutput-BSGE-MRo.js";import{c as uT,n as tv,p as cT,r as va,t as mT}from"./once-CTiSlR1m.js";import"./cjs-Bj40p_Np.js";import"./main-CwSdzVhm.js";import"./useNonce-EAuSVK-5.js";import{n as pT}from"./requests-C0HaHO6a.js";import{t as kt}from"./createLucideIcon-CW2xpJ57.js";import{A as hT,C as av,D as fT,O as gT,S as xT,_ as vT,a as rv,b as yT,c as nv,d as Kn,f as iv,g as bT,h as wT,i as Su,k as DT,l as jT,m as lv,n as CT,p as kT,r as ya,s as ST,t as NT,u as aa,v as ET,y as _T}from"./spec-qp_XZeSS.js";import{D as TT,E as RT,O as AT,h as IT,k as PT,l as MT,m as FT,n as VT,w as zT}from"./add-cell-with-ai-manh7kBT.js";import{t as OT,__tla as $T}from"./LazyAnyLanguageCodeMirror-Cp2punaU.js";import{i as LT,r as BT}from"./chat-components-CWiXtKu6.js";import{a as HT,i as WT,n as UT,o as KT,t as ov}from"./useBoolean-B_S7yTZz.js";import{_ as ZT,a as qT,c as Oa,d as YT,f as GT,h as Lr,i as Pt,l as Nu,m as sv,n as $a,o as Vl,p as dv,r as Br,s as sr,t as La}from"./select-D9lTzMzP.js";import{n as QT,s as zl}from"./download-B6EJS7Ar.js";import{t as Ol}from"./chevron-right-CqEd11Di.js";import{i as JT,o as XT}from"./maps-s2pQkyf5.js";import"./markdown-renderer-BPnVa0ym.js";import{u as eR}from"./toDate-5JckKRQn.js";import{P as uv,a as Eu,c as tR,i as aR,o as rR,p as cv,r as mv,t as pv}from"./dropdown-menu-BP4_BZLr.js";import{t as nR}from"./code-xml-MBUyxNtK.js";import{t as iR}from"./copy-gBVL4NN-.js";import{t as lR}from"./download-DobaYJPt.js";import{i as oR}from"./file-video-camera-CZUg-nFA.js";import{r as sR,t as dR}from"./types-CT2U5Ljy.js";import{n as uR,t as cR}from"./house-CncUa_LL.js";import{n as $l,t as Zn}from"./spinner-C1czjtp7.js";import{n as mR,t as _u}from"./readonly-python-code-CXeF74Iq.js";import{n as pR,t as Ll}from"./types-B42u_5hF.js";import{t as hv}from"./plus-CHesBJpY.js";import{t as hR}from"./refresh-cw-Din9uFKE.js";import{$ as ba,A as Tu,C as fR,D as gR,E as Ru,G as Ba,J as fv,K as xR,M as Bl,N as gv,O as xv,P as Hl,Q as vv,R as Au,T as Wl,U as vR,W as yR,X as Ha,Y as Hr,Z as Wa,_ as Ul,at as bR,b as wR,c as DR,ct as Kl,d as yv,et as bv,g as Wr,h as qn,i as jR,it as dr,k as Iu,l as CR,lt as ot,m as Zl,n as kR,nt as ql,o as Pu,ot as Ur,p as wv,q as Yl,r as Mu,rt as Fu,s as SR,st as NR,t as Vu,tt as Dv,u as Gl,ut as ER,v as zu,w as _R,z as TR}from"./input-B80Yt1uu.js";import{t as RR}from"./settings-MTlHVxz3.js";import{t as Ql}from"./square-function-DxXFdbn8.js";import{_ as Je,a as st,c as at,d as ur,f as AR,g as jv,h as IR,i as PR,l as nt,n as MR,o as Yn,p as Cv,r as FR,t as VR,u as ut,v as ra}from"./textarea-Di1KKcL4.js";import{a as zR,d as OR,i as $R,l as LR,o as kv,r as BR,s as HR,t as WR,u as UR}from"./column-preview-CKxT2s-S.js";import{t as KR}from"./square-leQTJTJJ.js";import{t as Sv}from"./trash-2-C-lF7BNB.js";import{t as Jl}from"./triangle-alert-CbD0f2J6.js";import{i as Nv,r as ZR,t as qR}from"./es-FiXEquL2.js";import{t as vt}from"./preload-helper-BW0IMuFq.js";import"./dist-HGZzCB0y.js";import"./dist-CVj-_Iiz.js";import"./dist-BVf1IY4_.js";import"./dist-Cq_4nPfh.js";import"./dist-RKnr9SNh.js";import{n as YR,t as Wt}from"./use-toast-Bzf3rpev.js";import{r as Kr}from"./useTheme-CNj0G_ol.js";import{C as Xl,E as Ou,S as eo,_ as We,d as GR,f as Ev,g as Ut,h as QR,l as JR,m as XR,p as eA,u as tA,v as $u,w as Ee,x as Gn}from"./Combination-D1TsGrBC.js";import{l as aA,r as _v,t as rA}from"./dist-CBrDuocE.js";import{a as Lu,i as St,n as Bu,o as Hu,r as Wu,s as Tv,t as Mt}from"./tooltip-CvjcEpZC.js";import{d as to,u as Rv}from"./menu-items-9PZrU2e0.js";import"./dates-CdsE1R40.js";import{a as nA,n as iA,t as lA}from"./mode-Dq8MKjNR.js";import{a as oA,c as sA,i as dA,l as uA,n as cA,s as mA,t as pA}from"./alert-dialog-jcHA5geR.js";import{a as Av,f as Uu,h as Iv,i as hA,l as Pv,m as fA,n as gA,o as ao,p as ro,r as xA,s as vA,t as Qn,u as no,v as io}from"./VisuallyHidden-B9t3FhTP.js";import{D as Mv,I as Fv,L as Vv,O as yA,P as bA,R as Zr,S as wA,k as Xe,n as DA,p as Ku,s as lo,t as zv,w as jA,z as wa}from"./usePress-DTwIUo40.js";import{t as CA}from"./SSRProvider-DD7JA3RM.js";import{n as Kt,r as kA,t as na}from"./useDateFormatter-DsANziQR.js";import{n as SA,t as qe}from"./context-DHfVoQfl.js";import{t as NA}from"./useNumberFormatter-FoXhpyAb.js";import{a as EA,i as _A,r as Ov,t as $v}from"./popover-DtnzNVk-.js";import{i as qr,r as TA}from"./numbers-C9_R_vlY.js";import{n as RA,t as Lv}from"./useDebounce-em3gna-v.js";import{t as AA}from"./ImperativeModal-DVhvP4lH.js";import"./share-CXQVxivL.js";import{a as Bv,i as Hv,n as Yr,r as IA,t as cr}from"./error-banner-DvT0IGDZ.js";import"./vega-loader.browser-C8wT63Va.js";import"./defaultLocale-BLUna9fQ.js";import"./defaultLocale-DzliDDTm.js";import{t as oo}from"./copy-icon-jWsqdLn1.js";import{t as Me}from"./RenderHTML-Do_PVqRy.js";import"./purify.es-N-2faAGj.js";import{a as Wv,c as PA,i as Uv,l as MA,n as Zu,o as FA,r as Kv,s as VA}from"./multi-map-CQd4MZr5.js";import{n as zA,r as qu,t as so}from"./alert-BEdExd6A.js";import{i as ia,n as la,r as Jn,t as Xn}from"./tabs-Ctk4D03n.js";import{n as Nt}from"./useAsyncData-BJJJOr9W.js";import{a as OA,c as $A,o as LA,r as BA,s as HA,t as WA}from"./command-YPFTinLj.js";import{t as Zv}from"./dist-Dg7UO_Vw.js";import{__tla as UA}from"./chunk-OGVTOU66-CjNLT2C3.js";import"./katex-AwOI3EvM.js";import"./marked.esm-CHnOtnr3.js";import"./es-BoHEdemq.js";import{a as KA,o as ZA}from"./focus-DM53w5BH.js";import{a as qv,i as Yu,n as Gu,o as Gr,r as mr,t as Qu}from"./table--_20dwBZ.js";import{t as Ua}from"./useDeepCompareMemoize-gzLRYatP.js";import{t as Yv}from"./renderShortcut-eU5Hsfml.js";import{t as ei}from"./label-CNZLffHW.js";import{t as qA}from"./chat-display-CGnOamQG.js";import"./esm-B3JckBtM.js";import{n as YA}from"./icons-D4lB4En9.js";import{t as GA}from"./bundle.esm-B0Sy2M4C.js";import{a as Gv,c as QA,d as Qv,f as uo,i as JA,l as XA,n as Jv,o as e6,p as Da,r as t6,s as Xv,t as a6,u as oe}from"./form-BcKfhfZc.js";import"./react-resizable-panels.browser.esm-BqxQegSf.js";import{a as r6,i as ey,n as ty,t as ay}from"./field-Clr_fqUr.js";import{i as n6,n as i6,r as l6}from"./floating-outline-DCrTuu2G.js";Promise.all([(()=>{try{return zE}catch{}})(),(()=>{try{return dT}catch{}})(),(()=>{try{return $T}catch{}})(),(()=>{try{return UA}catch{}})()]).then(async()=>{(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let r of document.querySelectorAll('link[rel="modulepreload"]'))a(r);new MutationObserver(r=>{for(let n of r)if(n.type==="childList")for(let i of n.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&a(i)}).observe(document,{childList:!0,subtree:!0});function e(r){let n={};return r.integrity&&(n.integrity=r.integrity),r.referrerPolicy&&(n.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?n.credentials="include":r.crossOrigin==="anonymous"?n.credentials="omit":n.credentials="same-origin",n}function a(r){if(r.ep)return;r.ep=!0;let n=e(r);fetch(r.href,n)}})();var Ka=kt("arrow-up-down",[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]]),oa=kt("arrow-up-wide-narrow",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h4",key:"1krc32"}]]),pr=kt("binary",[["rect",{x:"14",y:"14",width:"4",height:"6",rx:"2",key:"p02svl"}],["rect",{x:"6",y:"4",width:"4",height:"6",rx:"2",key:"xm4xkj"}],["path",{d:"M6 20h4",key:"1i6q5t"}],["path",{d:"M14 10h4",key:"ru81e7"}],["path",{d:"M6 14h2v6",key:"16z9wg"}],["path",{d:"M14 4h2v6",key:"1idq9u"}]]),ny=kt("brackets",[["path",{d:"M16 3h3a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-3",key:"1kt8lf"}],["path",{d:"M8 21H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h3",key:"gduv9"}]]),iy=kt("combine",[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]]),ly=kt("copy-slash",[["line",{x1:"12",x2:"18",y1:"18",y2:"12",key:"ebkxgr"}],["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),oy=kt("corner-left-up",[["path",{d:"M14 9 9 4 4 9",key:"1af5af"}],["path",{d:"M20 20h-7a4 4 0 0 1-4-4V4",key:"1blwi3"}]]),sy=kt("group",[["path",{d:"M3 7V5c0-1.1.9-2 2-2h2",key:"adw53z"}],["path",{d:"M17 3h2c1.1 0 2 .9 2 2v2",key:"an4l38"}],["path",{d:"M21 17v2c0 1.1-.9 2-2 2h-2",key:"144t0e"}],["path",{d:"M7 21H5c-1.1 0-2-.9-2-2v-2",key:"rtnfgi"}],["rect",{width:"7",height:"5",x:"7",y:"7",rx:"1",key:"1eyiv7"}],["rect",{width:"7",height:"5",x:"10",y:"12",rx:"1",key:"1qlmkx"}]]),dy=kt("rotate-cw",[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]),uy=kt("shuffle",[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]]),ac=kt("square-dashed-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h2",key:"1qve2z"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v2",key:"p14lih"}],["path",{d:"M3 14v1",key:"vnatye"}]]),cy=kt("square-mouse-pointer",[["path",{d:"M12.034 12.681a.498.498 0 0 1 .647-.647l9 3.5a.5.5 0 0 1-.033.943l-3.444 1.068a1 1 0 0 0-.66.66l-1.067 3.443a.5.5 0 0 1-.943.033z",key:"xwnzip"}],["path",{d:"M21 11V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h6",key:"14rsvq"}]]),rc=kt("triangle",[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]]),my=ga(E1(),1);const ja={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function py(t,e,a){let r=t.length,n=e.length,i=Array.from({length:r+1},()=>Array.from({length:n+1}).fill(0));for(let u=0;u<=r;u++)i[u][0]=u;for(let u=0;u<=n;u++)i[0][u]=u;for(let u=1;u<=r;u++)for(let c=1;c<=n;c++)i[u][c]=a(t[u-1],e[c-1])?i[u-1][c-1]:1+Math.min(i[u-1][c],i[u][c-1],i[u-1][c-1]);let l=[],o=r,d=n;for(;o>0||d>0;)o>0&&d>0&&a(t[o-1],e[d-1])?(l.unshift({type:ja.MATCH,position:o-1}),o--,d--):o>0&&d>0&&i[o][d]===i[o-1][d-1]+1?(l.unshift({type:ja.SUBSTITUTE,position:o-1}),o--,d--):o>0&&i[o][d]===i[o-1][d]+1?(l.unshift({type:ja.DELETE,position:o-1}),o--):d>0&&i[o][d]===i[o][d-1]+1&&(l.unshift({type:ja.INSERT,position:o}),d--);return{distance:i[r][n],operations:l}}function hy(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case ja.MATCH:r.push(t[n]),n++;break;case ja.DELETE:n++;break;case ja.INSERT:r.push(a);break;case ja.SUBSTITUTE:r.push(a),n++;break}return r}function fy(t,e,a,r){let n=py(t,e,a);return{merged:hy(t,n.operations,r),edits:n}}var ti=0,ai="";function gy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let o=(e==null?void 0:e.cells.map(d=>d.id??Ln.create()))||[];return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,null])),notebookCellData:new Map(o.map((d,u)=>[d,(e==null?void 0:e.cells[u])||nc()]))}}if(!e){let o=t.cells.map(d=>d.id??Ln.create());return{cellIds:o,sessionCellData:new Map(o.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(o.map(d=>[d,nc()]))}}let{merged:n,edits:i}=fy(t.cells,e.cells,(o,d)=>{let u=o.code_hash;return u?d.code_hash===u:!1},ic());i.distance>0&&se.warn("Session and notebook have different cells, attempted merge.");let l=[];for(let o=0;o<e.cells.length;o++){let d=e.cells[o];if(d){let u=d.id??Ln.create();l.push(u);let c=n[o]||ic();c.id=u,a.set(u,c),r.set(u,d)}else se.warn("Merged notebook cell is null at index",o)}return{cellIds:l,sessionCellData:a,notebookCellData:r}}function nc(){return{id:Ln.create(),name:ai,code:ai,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function ic(){return{id:Ln.create(),code_hash:null,console:[],outputs:[]}}function xy(t,e){var a,r,n;return{id:t,name:e.name??ai,code:e.code??ai,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((a=e.config)==null?void 0:a.column)??null,disabled:((r=e.config)==null?void 0:r.disabled)??!1,hide_code:((n=e.config)==null?void 0:n.hide_code)??!1},serializedEditorState:null}}function vy(t){let e=bE();if(!t)return e;let a=t.outputs||[],r=a.find(i=>i.type==="data")||a.find(i=>i.type==="error")||a[0];if(r){if(r.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:r.evalue}],mimetype:"application/vnd.marimo+error",timestamp:ti};else if(r.type==="data"){let i=Object.keys(r.data)[0];e.output={channel:"output",data:Object.values(r.data)[0],mimetype:i,timestamp:ti}}}let n=t.console||[];return{...e,outline:e.output?IE(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ti}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ti})}}function yy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=gy(t,e);if(a.length===0)return null;let i={},l={};for(let o of a){let d=r.get(o),u=n.get(o);u&&(i[o]=xy(o,u)),l[o]=vy(d)}return{cellIds:jE.from([a]),cellData:i,cellRuntime:l,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var by=J(),lc=Object.freeze({left:0,top:0,width:16,height:16}),ri=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Qr=Object.freeze({...lc,...ri}),mo=Object.freeze({...Qr,body:"",hidden:!1}),wy=Object.freeze({width:null,height:null}),oc=Object.freeze({...wy,...ri});function Dy(t,e=0){let a=t.replace(/^-?[0-9.]*/,"");function r(n){for(;n<0;)n+=4;return n%4}if(a===""){let n=parseInt(t);return isNaN(n)?0:r(n)}else if(a!==t){let n=0;switch(a){case"%":n=25;break;case"deg":n=90}if(n){let i=parseFloat(t.slice(0,t.length-a.length));return isNaN(i)?0:(i/=n,i%1==0?r(i):0)}}return e}var jy=/[\s,]+/;function Cy(t,e){e.split(jy).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var sc={...oc,preserveAspectRatio:""};function dc(t){let e={...sc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=Dy(a("rotate","")),Cy(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function ky(t,e){for(let a in sc)if(t[a]!==e[a])return!0;return!1}var uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,Jr=(t,e,a,r="")=>{let n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;r=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){let o=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:o};return e&&!ni(u)?null:u}let i=n[0],l=i.split("-");if(l.length>1){let o={provider:r,prefix:l.shift(),name:l.join("-")};return e&&!ni(o)?null:o}if(a&&r===""){let o={provider:r,prefix:"",name:i};return e&&!ni(o,a)?null:o}return null},ni=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Sy(t,e){let a={};!t.hFlip!=!e.hFlip&&(a.hFlip=!0),!t.vFlip!=!e.vFlip&&(a.vFlip=!0);let r=((t.rotate||0)+(e.rotate||0))%4;return r&&(a.rotate=r),a}function cc(t,e){let a=Sy(t,e);for(let r in mo)r in ri?r in t&&!(r in a)&&(a[r]=ri[r]):r in e?a[r]=e[r]:r in t&&(a[r]=t[r]);return a}function Ny(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(l){if(a[l])return n[l]=[];if(!(l in n)){n[l]=null;let o=r[l]&&r[l].parent,d=o&&i(o);d&&(n[l]=[o].concat(d))}return n[l]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function Ey(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function l(o){i=cc(r[o]||n[o],i)}return l(e),a.forEach(l),cc(t,i)}function mc(t,e){let a=[];if(typeof t!="object"||typeof t.icons!="object")return a;t.not_found instanceof Array&&t.not_found.forEach(n=>{e(n,null),a.push(n)});let r=Ny(t);for(let n in r){let i=r[n];i&&(e(n,Ey(t,n,i)),a.push(n))}return a}var _y={provider:"",aliases:{},not_found:{},...lc};function po(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function pc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!po(t,_y))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!po(i,mo))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],l=i.parent;if(!n||typeof l!="string"||!a[l]&&!r[l]||!po(i,mo))return null}return e}var ii=Object.create(null);function Ty(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function sa(t,e){let a=ii[t]||(ii[t]=Object.create(null));return a[e]||(a[e]=Ty(t,e))}function hc(t,e){return pc(e)?mc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function Ry(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Ay(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(ii)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(ii[r]||{})).forEach(n=>{let i=sa(r,n);a=a.concat(Object.keys(i.icons).map(l=>(r===""?"":"@"+r+":")+n+":"+l))})}),a}var Xr=!1;function fc(t){return typeof t=="boolean"&&(Xr=t),Xr}function en(t){let e=typeof t=="string"?Jr(t,!0,Xr):t;if(e){let a=sa(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function gc(t,e){let a=Jr(t,!0,Xr);if(!a)return!1;let r=sa(a.provider,a.prefix);return e?Ry(r,a.name,e):(r.missing.add(a.name),!0)}function xc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),Xr&&!e&&!t.prefix){let r=!1;return pc(t)&&(t.prefix="",mc(t,(n,i)=>{gc(n,i)&&(r=!0)})),r}let a=t.prefix;return ni({provider:e,prefix:a,name:"a"})?!!hc(sa(e,a),t):!1}function vc(t){return!!en(t)}function Iy(t){let e=en(t);return e&&{...Qr,...e}}function Py(t){let e={loaded:[],missing:[],pending:[]},a=Object.create(null);t.sort((n,i)=>n.provider===i.provider?n.prefix===i.prefix?n.name.localeCompare(i.name):n.prefix.localeCompare(i.prefix):n.provider.localeCompare(i.provider));let r={provider:"",prefix:"",name:""};return t.forEach(n=>{if(r.name===n.name&&r.prefix===n.prefix&&r.provider===n.provider)return;r=n;let i=n.provider,l=n.prefix,o=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[l]||(d[l]=sa(i,l)),c;c=o in u.icons?e.loaded:l===""||u.missing.has(o)?e.missing:e.pending;let p={provider:i,prefix:l,name:o};c.push(p)}),e}function yc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function My(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let a=!1,r=t.provider,n=t.prefix;e.forEach(i=>{let l=i.icons,o=l.pending.length;l.pending=l.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])l.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))l.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),l.pending.length!==o&&(a||yc([t],i.id),i.callback(l.loaded.slice(0),l.missing.slice(0),l.pending.slice(0),i.abort))})}))}var Fy=0;function Vy(t,e,a){let r=Fy++,n=yc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(l=>{(l.loaderCallbacks||(l.loaderCallbacks=[])).push(i)}),n}var ho=Object.create(null);function bc(t,e){ho[t]=e}function fo(t){return ho[t]||ho[""]}function zy(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?Jr(n,e,a):n;i&&r.push(i)}),r}var Oy={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function $y(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,l;if(t.random){let N=t.resources.slice(0);for(l=[];N.length>1;){let S=Math.floor(Math.random()*N.length);l.push(N[S]),N=N.slice(0,S).concat(N.slice(S+1))}l=l.concat(N)}else l=t.resources.slice(i).concat(t.resources.slice(0,i));let o=Date.now(),d="pending",u=0,c,p=null,m=[],h=[];typeof r=="function"&&h.push(r);function f(){p&&(p=(clearTimeout(p),null))}function g(){d==="pending"&&(d="aborted"),f(),m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function v(N,S){S&&(h=[]),typeof N=="function"&&h.push(N)}function b(){return{startTime:o,payload:e,status:d,queriesSent:u,queriesPending:m.length,subscribe:v,abort:g}}function w(){d="failed",h.forEach(N=>{N(void 0,c)})}function D(){m.forEach(N=>{N.status==="pending"&&(N.status="aborted")}),m=[]}function j(N,S,y){let C=S!=="success";switch(m=m.filter(_=>_!==N),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){c=y,w();return}if(C){c=y,m.length||(l.length?k():w());return}if(f(),D(),!t.random){let _=t.resources.indexOf(N.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;f();let N=l.shift();if(N===void 0){if(m.length){p=setTimeout(()=>{f(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let S={status:"pending",resource:N,callback:(y,C)=>{j(S,y,C)}};m.push(S),u++,p=setTimeout(k,t.rotate),a(N,e,S.callback)}return setTimeout(k),b}function wc(t){let e={...Oy,...t},a=[];function r(){a=a.filter(l=>l().status==="pending")}function n(l,o,d){let u=$y(e,l,o,(c,p)=>{r(),d&&d(c,p)});return a.push(u),u}function i(l){return a.find(o=>l(o))||null}return{query:n,find:i,setIndex:l=>{e.index=l},getIndex:()=>e.index,cleanup:r}}function go(t){let e;if(typeof t.resources=="string")e=[t.resources];else if(e=t.resources,!(e instanceof Array)||!e.length)return null;return{resources:e,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}for(var li=Object.create(null),oi=["https://api.simplesvg.com","https://api.unisvg.com"],xo=[];oi.length>0;)oi.length===1||Math.random()>.5?xo.push(oi.shift()):xo.push(oi.pop());li[""]=go({resources:["https://api.iconify.design"].concat(xo)});function Dc(t,e){let a=go(e);return a===null?!1:(li[t]=a,!0)}function si(t){return li[t]}function Ly(){return Object.keys(li)}function jc(){}var vo=Object.create(null);function By(t){if(!vo[t]){let e=si(t);if(!e)return;vo[t]={config:e,redundancy:wc(e)}}return vo[t]}function Cc(t,e,a){let r,n;if(typeof t=="string"){let i=fo(t);if(!i)return a(void 0,424),jc;n=i.send;let l=By(t);l&&(r=l.redundancy)}else{let i=go(t);if(i){r=wc(i);let l=fo(t.resources?t.resources[0]:"");l&&(n=l.send)}}return!r||!n?(a(void 0,424),jc):r.query(e,n,a)().abort}function kc(){}function Hy(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,My(t)}))}function Wy(t){let e=[],a=[];return t.forEach(r=>{(r.match(uc)?e:a).push(r)}),{valid:e,invalid:a}}function tn(t,e,a){function r(){let n=t.pendingIcons;e.forEach(i=>{n&&n.delete(i),t.icons[i]||t.missing.add(i)})}if(a&&typeof a=="object")try{if(!hc(t,a).length){r();return}}catch(n){console.error(n)}r(),Hy(t)}function Sc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Uy(t,e){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(e).sort():t.iconsToLoad=e,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;let{provider:a,prefix:r}=t,n=t.iconsToLoad;if(delete t.iconsToLoad,!n||!n.length)return;let i=t.loadIcon;if(t.loadIcons&&(n.length>1||!i)){Sc(t.loadIcons(n,r,a),u=>{tn(t,n,u)});return}if(i){n.forEach(u=>{Sc(i(u,r,a),c=>{tn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:l,invalid:o}=Wy(n);if(o.length&&tn(t,o,null),!l.length)return;let d=r.match(uc)?fo(a):null;if(!d){tn(t,l,null);return}d.prepare(a,r,l).forEach(u=>{Cc(a,u,c=>{tn(t,u.icons,c)})})}))}var yo=(t,e)=>{let a=Py(zy(t,!0,fc()));if(!a.pending.length){let o=!0;return e&&setTimeout(()=>{o&&e(a.loaded,a.missing,a.pending,kc)}),()=>{o=!1}}let r=Object.create(null),n=[],i,l;return a.pending.forEach(o=>{let{provider:d,prefix:u}=o;if(u===l&&d===i)return;i=d,l=u,n.push(sa(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(o=>{let{provider:d,prefix:u,name:c}=o,p=sa(d,u),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(c)||(m.add(c),r[d][u].push(c))}),n.forEach(o=>{let d=r[o.provider][o.prefix];d.length&&Uy(o,d)}),e?Vy(e,a,n):kc},Ky=t=>new Promise((e,a)=>{let r=typeof t=="string"?Jr(t,!0):t;if(!r){a(t);return}yo([r||t],n=>{if(n.length&&r){let i=en(r);if(i){e({...Qr,...i});return}}a(t)})});function Nc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function Zy(t,e){if(typeof t=="object")return{data:Nc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=Nc(t);if(n)return{data:n,value:t}}let a=Jr(t,!0,!0);if(!a)return{value:t};let r=en(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:yo([a],()=>e(t,a,en(a)))}}var Ec=!1;try{Ec=navigator.vendor.indexOf("Apple")===0}catch{}function qy(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Ec||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Yy=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Gy=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function bo(t,e,a){if(e===1)return t;if(a||(a=100),typeof t=="number")return Math.ceil(t*e*a)/a;if(typeof t!="string")return t;let r=t.split(Yy);if(r===null||!r.length)return t;let n=[],i=r.shift(),l=Gy.test(i);for(;;){if(l){let o=parseFloat(i);isNaN(o)?n.push(i):n.push(Math.ceil(o*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");l=!l}}function Qy(t,e="defs"){let a="",r=t.indexOf("<"+e);for(;r>=0;){let n=t.indexOf(">",r),i=t.indexOf("</"+e);if(n===-1||i===-1)break;let l=t.indexOf(">",i);if(l===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(l+1)}return{defs:a,content:t}}function Jy(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Xy(t,e,a){let r=Qy(t);return Jy(r.defs,e+r.content+a)}var eb=t=>t==="unset"||t==="undefined"||t==="none";function _c(t,e){let a={...Qr,...t},r={...oc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(g=>{let v=[],b=g.hFlip,w=g.vFlip,D=g.rotate;b?w?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):w&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.push("scale(1 -1)"),n.top=n.left=0);let j;switch(D<0&&(D-=Math.floor(D/4)*4),D%=4,D){case 1:j=n.height/2+n.top,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.unshift("rotate(-90 "+j.toString()+" "+j.toString()+")");break}D%2==1&&(n.left!==n.top&&(j=n.left,n.left=n.top,n.top=j),n.width!==n.height&&(j=n.width,n.width=n.height,n.height=j)),v.length&&(i=Xy(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let l=r.width,o=r.height,d=n.width,u=n.height,c,p;l===null?(p=o===null?"1em":o==="auto"?u:o,c=bo(p,d/u)):(c=l==="auto"?d:l,p=o===null?bo(c,u/d):o==="auto"?u:o);let m={},h=(g,v)=>{eb(v)||(m[g]=v.toString())};h("width",c),h("height",p);let f=[n.left,n.top,d,u];return m.viewBox=f.join(" "),{attributes:m,viewBox:f,body:i}}function wo(t,e){let a=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let r in e)a+=" "+r+'="'+e[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+a+">"+t+"</svg>"}function tb(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ab(t){return"data:image/svg+xml,"+tb(t)}function Tc(t){return'url("'+ab(t)+'")'}var di=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function rb(t){di=t}function nb(){return di}function ib(t,e){let a=si(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(l=>{n=Math.max(n,l.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function lb(t){return t===404}var ob=(t,e,a)=>{let r=[],n=ib(t,e),i="icons",l={type:i,provider:t,prefix:e,icons:[]},o=0;return a.forEach((d,u)=>{o+=d.length+1,o>=n&&u>0&&(r.push(l),l={type:i,provider:t,prefix:e,icons:[]},o=d.length),l.icons.push(d)}),r.push(l),r};function sb(t){if(typeof t=="string"){let e=si(t);if(e)return e.path}return"/"}var db={prepare:ob,send:(t,e,a)=>{if(!di){a("abort",424);return}let r=sb(e.provider);switch(e.type){case"icons":{let i=e.prefix,l=e.icons.join(","),o=new URLSearchParams({icons:l});r+=i+".json?"+o.toString();break}case"custom":{let i=e.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:a("abort",400);return}let n=503;di(t+r).then(i=>{let l=i.status;if(l!==200){setTimeout(()=>{a(lb(l)?"abort":"next",l)});return}return n=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?a("abort",i):a("next",n)});return}setTimeout(()=>{a("success",i)})}).catch(()=>{a("next",n)})}};function ub(t,e,a){sa(a||"",e).loadIcons=t}function cb(t,e,a){sa(a||"",e).loadIcon=t}var Do="data-style",Rc="";function mb(t){Rc=t}function Ac(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Do));a||(a=document.createElement("style"),a.setAttribute(Do,Do),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Rc}function Ic(){bc("",db),fc(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,a="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(r=>{try{(typeof r!="object"||!r||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!xc(r))&&console.error(a)}catch{console.error(a)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let a in e){let r="IconifyProviders["+a+"] is invalid.";try{let n=e[a];if(typeof n!="object"||!n||n.resources===void 0)continue;Dc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:vc,iconExists:vc,getIcon:Iy,listIcons:Ay,addIcon:gc,addCollection:xc,calculateSize:bo,buildIcon:_c,iconToHTML:wo,svgToURL:Tc,loadIcons:yo,loadIcon:Ky,addAPIProvider:Dc,setCustomIconLoader:cb,setCustomIconsLoader:ub,appendCustomStyle:mb,_api:{getAPIConfig:si,setAPIModule:bc,sendAPIQuery:Cc,setFetch:rb,getFetch:nb,listAPIProviders:Ly}}}var jo={"background-color":"currentColor"},Pc={"background-color":"transparent"},Mc={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Fc={"-webkit-mask":jo,mask:jo,background:Pc};for(let t in Fc){let e=Fc[t];for(let a in Mc)e[t+"-"+a]=Mc[a]}function Vc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function pb(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,l=Tc(wo(n,{...i,width:e.width+"",height:e.height+""})),o=r.style,d={"--svg":l,width:Vc(i.width),height:Vc(i.height),...a?jo:Pc};for(let u in d)o.setProperty(u,d[u]);return r}var an;function hb(){try{an=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{an=null}}function fb(t){return an===void 0&&hb(),an?an.createHTML(t):t}function gb(t){let e=document.createElement("span"),a=t.attributes,r="";return a.width||(r="width: inherit;"),a.height||(r+="height: inherit;"),r&&(a.style=r),e.innerHTML=fb(wo(t.body,a)),e.firstChild}function Co(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function zc(t,e){let a=e.icon.data,r=e.customisations,n=_c(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,l;i==="svg"?l=gb(n):l=pb(n,{...Qr,...a},i==="mask");let o=Co(t);o?l.tagName==="SPAN"&&o.tagName===l.tagName?o.setAttribute("style",l.getAttribute("style")):t.replaceChild(l,o):t.appendChild(l)}function Oc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function xb(t="iconify-icon"){let e,a;try{e=window.customElements,a=window.HTMLElement}catch{return}if(!e||!a)return;let r=e.get(t);if(r)return r;let n=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends a{constructor(){super();q(this,"_shadowRoot");q(this,"_initialised",!1);q(this,"_state");q(this,"_checkQueued",!1);q(this,"_connected",!1);q(this,"_observer",null);q(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Ac(d,u),this._state=Oc({value:""},u),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return n.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let u=this.hasAttribute("inline"),c=this._state;u!==c.inline&&(c.inline=u,Ac(this._shadowRoot,u));break}case"noobserver":this.hasAttribute("noobserver")?this.startObserver():this.stopObserver();break;default:this._queueCheck()}}get icon(){let d=this.getAttribute("icon");if(d&&d.slice(0,1)==="{")try{return JSON.parse(d)}catch{}return d}set icon(d){typeof d=="object"&&(d=JSON.stringify(d)),this.setAttribute("icon",d)}get inline(){return this.hasAttribute("inline")}set inline(d){d?this.setAttribute("inline","true"):this.removeAttribute("inline")}get observer(){return this.hasAttribute("observer")}set observer(d){d?this.setAttribute("observer","true"):this.removeAttribute("observer")}restartAnimation(){let d=this._state;if(d.rendered){let u=this._shadowRoot;if(d.renderedMode==="svg")try{u.lastChild.setCurrentTime(0);return}catch{}zc(u,d)}}get status(){let d=this._state;return d.rendered?"rendered":d.icon.data===null?"failed":"loading"}_queueCheck(){this._checkQueued||(this._checkQueued=!0,setTimeout(()=>{this._check()}))}_check(){if(!this._checkQueued)return;this._checkQueued=!1;let d=this._state,u=this.getAttribute("icon");if(u!==d.icon.value){this._iconChanged(u);return}if(!d.rendered||!this._visible)return;let c=this.getAttribute("mode"),p=dc(this);(d.attrMode!==c||ky(d.customisations,p)||!Co(this._shadowRoot))&&this._renderIcon(d.icon,p,c)}_iconChanged(d){let u=Zy(d,(c,p,m)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let f={value:c,name:p,data:m};f.data?this._gotIconData(f):h.icon=f});u.data?this._gotIconData(u):this._state=Oc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=Co(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,dc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let p=qy(d.data.body,c),m=this._state.inline;zc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:u,attrMode:c,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let u=d.some(c=>c.isIntersecting);u!==this._visible&&(this._visible=u,this._forceRender())}),this._observer.observe(this)}catch{if(this._observer){try{this._observer.disconnect()}catch{}this._observer=null}}}stopObserver(){this._observer&&(this._observer.disconnect(),this._observer=null,this._visible=!0,this._connected&&this._forceRender())}};n.forEach(o=>{o in i.prototype||Object.defineProperty(i.prototype,o,{get:function(){return this.getAttribute(o)},set:function(d){d===null?this.removeAttribute(o):this.setAttribute(o,d)}})});let l=Ic();for(let o in l)i[o]=i.prototype[o]=l[o];return e.define(t,i),i}var{enableCache:o6,disableCache:s6,iconLoaded:d6,iconExists:u6,getIcon:c6,listIcons:m6,addIcon:p6,addCollection:h6,calculateSize:f6,buildIcon:g6,iconToHTML:x6,svgToURL:v6,loadIcons:y6,loadIcon:b6,setCustomIconLoader:w6,setCustomIconsLoader:D6,addAPIProvider:j6,_api:C6}=xb()||Ic(),x=ga(vE(),1),s=ga($_(),1);const vb=()=>((0,by.c)(1),null);var $c=J();const Lc=(0,x.memo)(t=>{let e=(0,$c.c)(3),{children:a}=t,{theme:r}=Kr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),()=>{document.body.classList.remove(r,`${r}-theme`)}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Lc.displayName="ThemeProvider";const yb=t=>{let e=(0,$c.c)(3),{variables:a,children:r}=t,n;return e[0]!==r||e[1]!==a?(n=(0,s.jsx)("div",{className:"contents",style:a,children:r}),e[0]=r,e[1]=a,e[2]=n):n=e[2],n},ko=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};var bb=J();const wb=()=>{let t=(0,bb.c)(25),[e,a]=$n(h_);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),Wt({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{Wt({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=r);let n=r,i;t[2]===a?i=t[3]:(i=()=>{a(null)},t[2]=a,t[3]=i);let l=i,o=Db,d;t[4]===l?d=t[5]:(d=D=>!D&&l(),t[4]=l,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(sA,{children:[(0,s.jsxs)(uA,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(EE,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(oA,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=u):u=t[6];let c;t[7]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=c):c=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(iR,{className:"h-3 w-3"}),t[8]=p):p=t[8];let m;t[9]===n?m=t[10]:(m=(0,s.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[c,(0,s.jsxs)(Ce,{variant:"outline",size:"xs",onClick:n,className:"flex items-center gap-1",children:[p,"Copy"]})]}),t[9]=n,t[10]=m);let h;t[11]===e?h=t[12]:(h=(0,s.jsx)("pre",{className:"bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80",children:e}),t[11]=e,t[12]=h);let f;t[13]!==m||t[14]!==h?(f=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[m,h]}),t[13]=m,t[14]=h,t[15]=f):f=t[15];let g;t[16]===Symbol.for("react.memo_cache_sentinel")?(g=(0,s.jsxs)(Ce,{variant:"outline",onClick:o,className:"flex items-center gap-2",children:[(0,s.jsx)(cR,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=g):g=t[16];let v;t[17]===l?v=t[18]:(v=(0,s.jsxs)(mA,{children:[g,(0,s.jsx)(cA,{onClick:l,children:"Dismiss"})]}),t[17]=l,t[18]=v);let b;t[19]!==v||t[20]!==f?(b=(0,s.jsxs)(dA,{className:"max-w-2xl",children:[u,f,v]}),t[19]=v,t[20]=f,t[21]=b):b=t[21];let w;return t[22]!==b||t[23]!==d?(w=(0,s.jsx)(pA,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=w):w=t[24],w};function Db(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function jb(){return window.ResizeObserver!==void 0}function ui(t){let{ref:e,box:a,onResize:r}=t,n=Ku(r);(0,x.useEffect)(()=>{let i=e==null?void 0:e.current;if(i)if(jb()){let l=new window.ResizeObserver(o=>{o.length&&n()});return l.observe(i,{box:a}),()=>{i&&l.unobserve(i)}}else return window.addEventListener("resize",n,!1),()=>{window.removeEventListener("resize",n,!1)}},[e,a])}var Cb=Hn();function kb(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return wa(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),Bc(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function Sb(t,e){let[a,r]=(0,x.useState)(e?"open":"closed");switch(a){case"open":e||r("exiting");break;case"closed":case"exiting":e&&r("open");break}let n=a==="exiting";return Bc(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function Bc(t,e,a){wa(()=>{if(e&&t.current){if(!("getAnimations"in t.current)){a();return}let r=t.current.getAnimations();if(r.length===0){a();return}let n=!1;return Promise.all(r.map(i=>i.finished)).then(()=>{n||(0,Cb.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Et={top:"top",bottom:"top",left:"left",right:"left"},ci={top:"bottom",bottom:"top",left:"right",right:"left"},Nb={top:"left",left:"top"},So={top:"height",left:"width"},Hc={width:"totalWidth",height:"totalHeight"},mi={},Eb=()=>typeof document<"u"?window.visualViewport:null;function Wc(t,e){let a=0,r=0,n=0,i=0,l=0,o=0,d={},u=((e==null?void 0:e.scale)??1)>1;if(t.tagName==="BODY"||t.tagName==="HTML"){let c=document.documentElement;n=c.clientWidth,i=c.clientHeight,a=(e==null?void 0:e.width)??n,r=(e==null?void 0:e.height)??i,d.top=c.scrollTop||t.scrollTop,d.left=c.scrollLeft||t.scrollLeft,e&&(l=e.offsetTop,o=e.offsetLeft)}else({width:a,height:r,top:l,left:o}=rn(t,!1)),d.top=t.scrollTop,d.left=t.scrollLeft,n=a,i=r;return wA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&u&&(d.top=0,d.left=0,l=(e==null?void 0:e.pageTop)??0,o=(e==null?void 0:e.pageLeft)??0),{width:a,height:r,totalWidth:n,totalHeight:i,scroll:d,top:l,left:o}}function _b(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Uc(t,e,a,r,n,i,l){let o=n.scroll[t]??0,d=r[So[t]],u=l[t]+r.scroll[Et[t]]+i,c=l[t]+r.scroll[Et[t]]+d-i,p=e-o+r.scroll[Et[t]]+l[t]-r[Et[t]],m=e-o+a+r.scroll[Et[t]]+l[t]-r[Et[t]];return p<u?u-p:m>c?Math.max(c-m,u-p):0}function Tb(t){let e=window.getComputedStyle(t);return{top:parseInt(e.marginTop,10)||0,bottom:parseInt(e.marginBottom,10)||0,left:parseInt(e.marginLeft,10)||0,right:parseInt(e.marginRight,10)||0}}function Kc(t){if(mi[t])return mi[t];let[e,a]=t.split(" "),r=Et[e]||"right",n=Nb[r];Et[a]||(a="center");let i=So[r],l=So[n];return mi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:l},mi[t]}function No(t,e,a,r,n,i,l,o,d,u,c){let{placement:p,crossPlacement:m,axis:h,crossAxis:f,size:g,crossSize:v}=r,b={};b[f]=t[f]??0,m==="center"?b[f]+=((t[v]??0)-(a[v]??0))/2:m!==f&&(b[f]+=(t[v]??0)-(a[v]??0)),b[f]+=i;let w=t[f]-a[v]+d+u,D=t[f]+t[v]-d-u;if(b[f]=Fu(b[f],w,D),p===h){let j=o?c[g]:c[Hc[g]];b[ci[h]]=Math.floor(j-t[h]+n)}else b[h]=Math.floor(t[h]+t[g]+n);return b}function Rb(t,e,a,r,n,i,l,o,d,u,c){let p=(t.top==null?d[Hc.height]-(t.bottom??0)-l:t.top)-(d.scroll.top??0),m=u?a.top:0,h={top:Math.max(e.top+m,((c==null?void 0:c.offsetTop)??e.top)+m),bottom:Math.min(e.top+e.height+m,((c==null?void 0:c.offsetTop)??0)+((c==null?void 0:c.height)??0))};return o==="top"?Math.max(0,p+l-h.top-((n.top??0)+(n.bottom??0)+i)):Math.max(0,h.bottom-p-((n.top??0)+(n.bottom??0)+i))}function Zc(t,e,a,r,n,i,l,o){let{placement:d,axis:u,size:c}=i;return d===u?Math.max(0,a[u]-(l.scroll[u]??0)-(t[u]+(o?e[u]:0))-(r[u]??0)-r[ci[u]]-n):Math.max(0,t[c]+t[u]+(o?e[u]:0)-a[u]-a[c]+(l.scroll[u]??0)-(r[u]??0)-r[ci[u]]-n)}function Ab(t,e,a,r,n,i,l,o,d,u,c,p,m,h,f,g,v,b){let w=Kc(t),{size:D,crossAxis:j,crossSize:k,placement:N,crossPlacement:S}=w,y=No(e,o,a,w,c,p,u,m,f,g,d),C=c,_=Zc(o,u,e,n,i+c,w,d,v);if(l&&a[D]>_){let G=Kc(`${ci[N]} ${S}`),Q=No(e,o,a,G,c,p,u,m,f,g,d);Zc(o,u,e,n,i+c,G,d,v)>_&&(w=G,y=Q,C=c)}let E="bottom";w.axis==="top"?w.placement==="top"?E="top":w.placement==="bottom"&&(E="bottom"):w.crossAxis==="top"&&(w.crossPlacement==="top"?E="bottom":w.crossPlacement==="bottom"&&(E="top"));let T=Uc(j,y[j],a[k],o,d,i,u);y[j]+=T;let P=Rb(y,o,u,m,n,i,a.height,E,d,v,b);h&&h<P&&(P=h),a.height=Math.min(a.height,P),y=No(e,o,a,w,C,p,u,m,f,g,d),T=Uc(j,y[j],a[k],o,d,i,u),y[j]+=T;let R={},F=e[j]-y[j]-n[Et[j]],I=F+.5*e[k],V=f/2+g,A=Et[j]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),O=a[k]-A-f/2-g;R[j]=Fu(Fu(I,e[j]+f/2-(y[j]+n[Et[j]]),e[j]+e[k]-f/2-(y[j]+n[Et[j]])),V,O),{placement:N,crossPlacement:S}=w,f?F=R[j]:S==="right"?F+=e[k]:S==="center"&&(F+=e[k]/2);let z=N==="left"||N==="top"?a[D]:0,L={x:N==="top"||N==="bottom"?F:z,y:N==="left"||N==="right"?F:z};return{position:y,maxHeight:P,arrowOffsetLeft:R.left,arrowOffsetTop:R.top,placement:N,triggerAnchorPoint:L}}function Ib(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:l,boundaryElement:o,offset:d,crossOffset:u,maxHeight:c,arrowSize:p=0,arrowBoundaryOffset:m=0}=t,h=Eb(),f=r instanceof HTMLElement?Pb(r):document.documentElement,g=f===document.documentElement,v=window.getComputedStyle(f).position,b=!!v&&v!=="static",w=g?rn(a,!1):qc(a,f,!1);if(!g){let{marginTop:k,marginLeft:N}=window.getComputedStyle(a);w.top+=parseInt(k,10)||0,w.left+=parseInt(N,10)||0}let D=rn(r,!0),j=Tb(r);return D.width+=(j.left??0)+(j.right??0),D.height+=(j.top??0)+(j.bottom??0),Ab(e,w,D,_b(n),j,i,l,Wc(o,h),Wc(f,h),qc(o,f,!1),d,u,b,c,p,m,o.contains(f),h)}function Eo(t,e){let{top:a,left:r,width:n,height:i}=t.getBoundingClientRect();return e&&t instanceof t.ownerDocument.defaultView.HTMLElement&&(n=t.offsetWidth,i=t.offsetHeight),{top:a,left:r,width:n,height:i}}function rn(t,e){let{top:a,left:r,width:n,height:i}=Eo(t,e),{scrollTop:l,scrollLeft:o,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+l-d,left:r+o-u,width:n,height:i}}function qc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=Eo(t,a);else{n=rn(t,a);let i=rn(e,a),l=window.getComputedStyle(e);i.top+=(parseInt(l.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(l.borderLeftWidth,10)||0)-e.scrollLeft,n.top-=i.top,n.left-=i.left}return n.top-=parseInt(r.marginTop,10)||0,n.left-=parseInt(r.marginLeft,10)||0,n}function Pb(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Yc(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Yc(e);)e=e.parentElement;return e||document.documentElement}function Yc(t){let e=window.getComputedStyle(t);return e.transform!=="none"||/transform|perspective/.test(e.willChange)||e.filter!=="none"||e.contain==="paint"||"backdropFilter"in e&&e.backdropFilter!=="none"||"WebkitBackdropFilter"in e&&e.WebkitBackdropFilter!=="none"}var Mb=new WeakMap;function Fb(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let l=i.target;if(!e.current||l instanceof Node&&!l.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let o=r||Mb.get(e.current);o&&o()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function hr(t,e){return t-e*Math.floor(t/e)}var Gc=1721426;function Za(t,e,a,r){e=nn(t,e);let n=e-1,i=-2;return a<=2?i=0:Ca(e)&&(i=-1),Gc-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Ca(t){return t%4==0&&(t%100!=0||t%400==0)}function nn(t,e){return t==="BC"?1-e:e}function pi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Vb={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},ft=class{fromJulianDay(t){let e=t,a=e-Gc,r=Math.floor(a/146097),n=hr(a,146097),i=Math.floor(n/36524),l=hr(n,36524),o=Math.floor(l/1461),d=hr(l,1461),u=Math.floor(d/365),[c,p]=pi(r*400+i*100+o*4+u+(i!==4&&u!==4?1:0)),m=e-Za(c,p,1,1),h=2;e<Za(c,p,3,1)?h=0:Ca(p)&&(h=1);let f=Math.floor(((m+h)*12+373)/367);return new rt(c,p,f,e-Za(c,p,f,1)+1)}toJulianDay(t){return Za(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Vb[Ca(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Ca(t.year)?366:365}getYearsInEra(t){return 9999}getEras(){return["BC","AD"]}isInverseEra(t){return t.era==="BC"}balanceDate(t){t.year<=0&&(t.era=t.era==="BC"?"AD":"BC",t.year=1-t.year)}constructor(){this.identifier="gregory"}},zb={"001":1,AD:1,AE:6,AF:6,AI:1,AL:1,AM:1,AN:1,AR:1,AT:1,AU:1,AX:1,AZ:1,BA:1,BE:1,BG:1,BH:6,BM:1,BN:1,BY:1,CH:1,CL:1,CM:1,CN:1,CR:1,CY:1,CZ:1,DE:1,DJ:6,DK:1,DZ:6,EC:1,EE:1,EG:6,ES:1,FI:1,FJ:1,FO:1,FR:1,GB:1,GE:1,GF:1,GP:1,GR:1,HR:1,HU:1,IE:1,IQ:6,IR:6,IS:1,IT:1,JO:6,KG:1,KW:6,KZ:1,LB:1,LI:1,LK:1,LT:1,LU:1,LV:1,LY:6,MC:1,MD:1,ME:1,MK:1,MN:1,MQ:1,MV:5,MY:1,NL:1,NO:1,NZ:1,OM:6,PL:1,QA:6,RE:1,RO:1,RS:1,RU:1,SD:6,SE:1,SI:1,SK:1,SM:1,SY:6,TJ:1,TM:1,TR:1,UA:1,UY:1,UZ:1,VA:1,VN:1,XK:1};function Ue(t,e){return e=Fe(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function Ob(t,e){return e=Fe(e,t.calendar),t=qa(t),e=qa(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function _o(t,e){return hi(t.calendar,e.calendar)&&Ue(t,e)}function hi(t,e){var a,r;return((a=t.isEqual)==null?void 0:a.call(t,e))??((r=e.isEqual)==null?void 0:r.call(e,t))??t.identifier===e.identifier}function Qc(t,e){return Ue(t,fi(e))}var $b={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function To(t,e,a){let r=t.calendar.toJulianDay(t),n=a?$b[a]:Kb(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Jc(t){return ua(Date.now(),t)}function fi(t){return ct(Jc(t))}function Xc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function em(t,e){return tm(t)-tm(e)}function tm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var am=null;function gi(){return am??(am=new Intl.DateTimeFormat().resolvedOptions().timeZone),am}function qa(t){return t.subtract({days:t.day-1})}function xi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Lb(t){return qa(t.subtract({months:t.month-1}))}function Bb(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Hb(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function ln(t,e,a){let r=To(t,e,a);return t.subtract({days:r})}function Wb(t,e,a){return ln(t,e,a).add({days:6})}var rm=new Map,Ro=new Map;function Ub(t){if(Intl.Locale){let a=rm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&rm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function Kb(t){let e=Ro.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Ro.set(t,e),e.firstDay}let a=Ub(t);if(t.includes("-fw-")){let r=t.split("-fw-")[1].split("-")[0];e=r==="mon"?{firstDay:1}:r==="tue"?{firstDay:2}:r==="wed"?{firstDay:3}:r==="thu"?{firstDay:4}:r==="fri"?{firstDay:5}:r==="sat"?{firstDay:6}:{firstDay:0}}else e=t.includes("-ca-iso8601")?{firstDay:1}:{firstDay:a&&zb[a]||0};Ro.set(t,e)}return e.firstDay}function Zb(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((To(qa(t),e,a)+r)/7)}function Ao(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Io(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function fr(t){return t=Fe(t,new ft),nm(nn(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function nm(t,e,a,r,n,i,l){let o=new Date;return o.setUTCHours(r,n,i,l),o.setUTCFullYear(t,e-1,a),o.getTime()}function Po(t,e){if(e==="UTC")return 0;if(t>0&&e===gi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:l,second:o}=lm(t,e);return nm(a,r,n,i,l,o,0)-Math.floor(t/1e3)*1e3}var im=new Map;function lm(t,e){let a=im.get(e);a||(a=new Intl.DateTimeFormat("en-US",{timeZone:e,hour12:!1,era:"short",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"}),im.set(e,a));let r=a.formatToParts(new Date(t)),n={};for(let i of r)i.type!=="literal"&&(n[i.type]=i.value);return{year:n.era==="BC"||n.era==="B"?-n.year+1:+n.year,month:+n.month,day:+n.day,hour:n.hour==="24"?0:+n.hour,minute:+n.minute,second:+n.second}}var om=864e5;function qb(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Yb(t,e,n))}function Yb(t,e,a){let r=lm(a,e);return t.year===r.year&&t.month===r.month&&t.day===r.day&&t.hour===r.hour&&t.minute===r.minute&&t.second===r.second}function da(t,e,a="compatible"){let r=Zt(t);if(e==="UTC")return fr(r);if(e===gi()&&a==="compatible"){r=Fe(r,new ft);let d=new Date,u=nn(r.era,r.year);return d.setFullYear(u,r.month-1,r.day),d.setHours(r.hour,r.minute,r.second,r.millisecond),d.getTime()}let n=fr(r),i=Po(n-om,e),l=Po(n+om,e),o=qb(r,e,n-i,n-l);if(o.length===1)return o[0];if(o.length>1)switch(a){case"compatible":case"earlier":return o[0];case"later":return o[o.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-l);case"compatible":case"later":return Math.max(n-i,n-l);case"reject":throw RangeError("No such absolute time found")}}function sm(t,e,a="compatible"){return new Date(da(t,e,a))}function ua(t,e){let a=Po(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,l=r.getUTCDate(),o=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new bm(n<1?"BC":"AD",n<1?-n+1:n,i,l,e,a,o,d,u,c)}function ct(t){return new rt(t.calendar,t.era,t.year,t.month,t.day)}function Zt(t,e){let a=0,r=0,n=0,i=0;if("timeZone"in t)({hour:a,minute:r,second:n,millisecond:i}=t);else if("hour"in t&&!e)return t;return e&&({hour:a,minute:r,second:n,millisecond:i}=e),new ym(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(hi(t.calendar,e))return t;let a=e.fromJulianDay(t.calendar.toJulianDay(t)),r=t.copy();return r.calendar=e,r.era=a.era,r.year=a.year,r.month=a.month,r.day=a.day,Ya(r),r}function Gb(t,e,a){return t instanceof bm?t.timeZone===e?t:Jb(t,e):ua(da(t,e,a),e)}function Qb(t){let e=fr(t)-t.offset;return new Date(e)}function Jb(t,e){return Fe(ua(fr(t)-t.offset,e),t.calendar)}var on=36e5;function vi(t,e){var o;let a=t.copy(),r="hour"in a?mm(a,e):0;Mo(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Fo(a),dm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Xb(a),a.calendar.balanceDate&&a.calendar.balanceDate(a),a.year<1&&(a.year=1,a.month=1,a.day=1);let n=a.calendar.getYearsInEra(a);if(a.year>n){var i;let d=(o=(i=a.calendar).isInverseEra)==null?void 0:o.call(i,a);a.year=n,a.month=d?1:a.calendar.getMonthsInYear(a),a.day=d?1:a.calendar.getDaysInMonth(a)}a.month<1&&(a.month=1,a.day=1);let l=a.calendar.getMonthsInYear(a);return a.month>l&&(a.month=l,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Mo(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Fo(t){for(;t.month<1;)Mo(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Mo(t,1)}function Xb(t){for(;t.day<1;)t.month--,Fo(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Fo(t)}function dm(t){t.month=Math.max(1,Math.min(t.calendar.getMonthsInYear(t),t.month)),t.day=Math.max(1,Math.min(t.calendar.getDaysInMonth(t),t.day))}function Ya(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),dm(t)}function Vo(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function um(t,e){return vi(t,Vo(e))}function zo(t,e){let a=t.copy();return e.era!=null&&(a.era=e.era),e.year!=null&&(a.year=e.year),e.month!=null&&(a.month=e.month),e.day!=null&&(a.day=e.day),Ya(a),a}function sn(t,e){let a=t.copy();return e.hour!=null&&(a.hour=e.hour),e.minute!=null&&(a.minute=e.minute),e.second!=null&&(a.second=e.second),e.millisecond!=null&&(a.millisecond=e.millisecond),cm(a),a}function ew(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=yi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=yi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=yi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=yi(t.hour,24),e}function cm(t){t.millisecond=Math.max(0,Math.min(t.millisecond,1e3)),t.second=Math.max(0,Math.min(t.second,59)),t.minute=Math.max(0,Math.min(t.minute,59)),t.hour=Math.max(0,Math.min(t.hour,23))}function yi(t,e){let a=t%e;return a<0&&(a+=e),a}function mm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,ew(t)}function pm(t,e){let a=t.copy();return mm(a,e),a}function tw(t,e){return pm(t,Vo(e))}function Oo(t,e,a,r){var l;let n=t.copy();switch(e){case"era":{let o=t.calendar.getEras(),d=o.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ca(d,a,0,o.length-1,r==null?void 0:r.round),n.era=o[d],Ya(n);break}case"year":var i;(l=(i=n.calendar).isInverseEra)!=null&&l.call(i,n)&&(a=-a),n.year=ca(t.year,a,-1/0,9999,r==null?void 0:r.round),n.year===-1/0&&(n.year=1),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,t);break;case"month":n.month=ca(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ca(t.day,a,1,t.calendar.getDaysInMonth(t),r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return t.calendar.balanceDate&&t.calendar.balanceDate(n),Ya(n),n}function $o(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,l=0,o=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;l=d?12:0,o=d?23:11}n.hour=ca(i,a,l,o,r==null?void 0:r.round);break}case"minute":n.minute=ca(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ca(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ca(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ca(t,e,a,r,n=!1){if(n){t+=Math.sign(e),t<a&&(t=r);let i=Math.abs(e);t=e>0?Math.ceil(t/i)*i:Math.floor(t/i)*i,t>r&&(t=a)}else t+=e,t<a?t=r-(a-t-1):t>r&&(t=a+(t-r-1));return t}function hm(t,e){let a;return a=e.years!=null&&e.years!==0||e.months!=null&&e.months!==0||e.weeks!=null&&e.weeks!==0||e.days!=null&&e.days!==0?da(vi(Zt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):fr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ua(a,t.timeZone),t.calendar)}function aw(t,e){return hm(t,Vo(e))}function rw(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let f=t.hour>=12;n=f?12:0,i=f?23:11}let l=Zt(t),o=Fe(sn(l,{hour:n}),new ft),d=[da(o,t.timeZone,"earlier"),da(o,t.timeZone,"later")].filter(f=>ua(f,t.timeZone).day===o.day)[0],u=Fe(sn(l,{hour:i}),new ft),c=[da(u,t.timeZone,"earlier"),da(u,t.timeZone,"later")].filter(f=>ua(f,t.timeZone).day===u.day).pop(),p=fr(t)-t.offset,m=Math.floor(p/on),h=p%on;return p=ca(m,a,Math.floor(d/on),Math.floor(c/on),r==null?void 0:r.round)*on+h,Fe(ua(p,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return $o(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ua(da(Oo(Zt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function nw(t,e,a){let r=Zt(t),n=sn(zo(r,e),e);return n.compare(r)===0?t:Fe(ua(da(n,t.timeZone,a),t.timeZone),t.calendar)}var iw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,lw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,fm=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?(?:(?:([+-]\d{2})(?::?(\d{2}))?)|Z)$/;function ka(t){let e=t.match(iw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new rt(qt(e[1],0,9999),qt(e[2],1,12),1);return a.day=qt(e[3],1,a.calendar.getDaysInMonth(a)),a}function bi(t){let e=t.match(lw);if(!e)throw fm.test(t)?Error(`Invalid ISO 8601 date time string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date time string: "+t);let a=qt(e[1],-9999,9999),r=new ym(a<1?"BC":"AD",a<1?-a+1:a,qt(e[2],1,12),1,e[4]?qt(e[4],0,23):0,e[5]?qt(e[5],0,59):0,e[6]?qt(e[6],0,59):0,e[7]?qt(e[7],0,1/0)*1e3:0);return r.day=qt(e[3],0,r.calendar.getDaysInMonth(r)),r}function qt(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function gm(t){return`${String(t.hour).padStart(2,"0")}:${String(t.minute).padStart(2,"0")}:${String(t.second).padStart(2,"0")}${t.millisecond?String(t.millisecond/1e3).slice(1):""}`}function xm(t){let e=Fe(t,new ft),a;return a=e.era==="BC"?e.year===1?"0000":"-"+String(Math.abs(1-e.year)).padStart(6,"00"):String(e.year).padStart(4,"0"),`${a}-${String(e.month).padStart(2,"0")}-${String(e.day).padStart(2,"0")}`}function vm(t){return`${xm(t)}T${gm(t)}`}function ow(t){let e=Math.sign(t)<0?"-":"+";t=Math.abs(t);let a=Math.floor(t/36e5),r=Math.floor(t%36e5/6e4),n=Math.floor(t%36e5%6e4/1e3),i=`${e}${String(a).padStart(2,"0")}:${String(r).padStart(2,"0")}`;return n!==0&&(i+=`:${String(n).padStart(2,"0")}`),i}function sw(t){return`${vm(t)}${ow(t.offset)}[${t.timeZone}]`}function Lo(t){let e=typeof t[0]=="object"?t.shift():new ft,a;if(typeof t[0]=="string")a=t.shift();else{let l=e.getEras();a=l[l.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var dw=new WeakMap,rt=class Ju{copy(){return this.era?new Ju(this.calendar,this.era,this.year,this.month,this.day):new Ju(this.calendar,this.year,this.month,this.day)}add(e){return vi(this,e)}subtract(e){return um(this,e)}set(e){return zo(this,e)}cycle(e,a,r){return Oo(this,e,a,r)}toDate(e){return sm(this,e)}toString(){return xm(this)}compare(e){return Xc(this,e)}constructor(...e){lo(this,dw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,Ya(this)}},uw=new WeakMap,cw=class ry{copy(){return new ry(this.hour,this.minute,this.second,this.millisecond)}add(e){return pm(this,e)}subtract(e){return tw(this,e)}set(e){return sn(this,e)}cycle(e,a,r){return $o(this,e,a,r)}toString(){return gm(this)}compare(e){return em(this,e)}constructor(e=0,a=0,r=0,n=0){lo(this,uw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,cm(this)}},mw=new WeakMap,ym=class Xu{copy(){return this.era?new Xu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Xu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return vi(this,e)}subtract(e){return um(this,e)}set(e){return zo(sn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return Oo(this,e,a,r);default:return $o(this,e,a,r)}}toDate(e,a){return sm(this,e,a)}toString(){return vm(this)}compare(e){let a=Xc(this,e);return a===0?em(this,Zt(e)):a}constructor(...e){lo(this,mw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ya(this)}},pw=new WeakMap,bm=class ec{copy(){return this.era?new ec(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new ec(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return hm(this,e)}subtract(e){return aw(this,e)}set(e,a){return nw(this,e,a)}cycle(e,a,r){return rw(this,e,a,r)}toDate(){return Qb(this)}toString(){return sw(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Gb(e,this.timeZone).toDate().getTime()}constructor(...e){lo(this,pw,{writable:!0,value:void 0});let[a,r,n,i,l]=Lo(e),o=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=l,this.timeZone=o,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,Ya(this)}},gr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],hw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],wi=[1867,1911,1925,1988,2018],Sa=["meiji","taisho","showa","heisei","reiwa"];function wm(t){let e=gr.findIndex(([a,r,n])=>t.year<a||t.year===a&&t.month<r||t.year===a&&t.month===r&&t.day<n);return e===-1?gr.length-1:e===0?0:e-1}function Bo(t){let e=wi[Sa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new rt(t.year+e,t.month,t.day)}var fw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=wm(e);return new rt(this,Sa[a],e.year-wi[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Bo(t))}balanceDate(t){let e=Bo(t),a=wm(e);Sa[a]!==t.era&&(t.era=Sa[a],t.year=e.year-wi[a]),this.constrainDate(t)}constrainDate(t){let e=Sa.indexOf(t.era),a=hw[e];if(a!=null){let[r,n,i]=a,l=r-wi[e];t.year=Math.max(1,Math.min(l,t.year)),t.year===l&&(t.month=Math.min(n,t.month),t.month===n&&(t.day=Math.min(i,t.day)))}if(t.year===1&&e>=0){let[,r,n]=gr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Sa}getYearsInEra(t){let e=Sa.indexOf(t.era),a=gr[e],r=gr[e+1];if(r==null)return 9999-a[0]+1;let n=r[0]-a[0];return(t.month<r[1]||t.month===r[1]&&t.day<r[2])&&n++,n}getDaysInMonth(t){return super.getDaysInMonth(Bo(t))}getMinimumMonthInYear(t){let e=Dm(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=Dm(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function Dm(t){if(t.year===1)return gr[Sa.indexOf(t.era)]}var jm=-543,gw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=nn(e.era,e.year);return new rt(this,a-jm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Cm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Cm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Cm(t){let[e,a]=pi(t.year+jm);return new rt(e,a,t.month,t.day)}var Di=1911;function km(t){return t.era==="minguo"?t.year+Di:1-t.year+Di}function Sm(t){let e=t-Di;return e>0?["minguo",e]:["before_minguo",1-e]}var xw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Sm(nn(e.era,e.year));return new rt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Nm(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Sm(km(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(Nm(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Di}constructor(...t){super(...t),this.identifier="roc"}};function Nm(t){let[e,a]=pi(km(t));return new rt(e,a,t.month,t.day)}var Em=1948320,_m=[0,31,62,93,124,155,186,216,246,276,306,336],vw=class{fromJulianDay(t){let e=t-Em,a=1+Math.floor((33*e+3)/12053),r=e-(365*(a-1)+Math.floor((8*a+21)/33)),n=r<216?Math.floor(r/31):Math.floor((r-6)/30),i=r-_m[n]+1;return new rt(this,a,n+1,i)}toJulianDay(t){let e=Em-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=_m[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||hr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},Ho=78,Tm=80,yw=class extends ft{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-Ho,r=t-Za(e.era,e.year,1,1),n;r<Tm?(a--,n=Ca(e.year-1)?31:30,r+=n+155+90+10):(n=Ca(e.year)?31:30,r-=Tm);let i,l;if(r<n)i=1,l=r+1;else{let o=r-n;o<155?(i=Math.floor(o/31)+2,l=o%31+1):(o-=155,i=Math.floor(o/30)+7,l=o%30+1)}return new rt(this,a,i,l)}toJulianDay(t){let[e,a]=pi(t.year+Ho),r,n;return Ca(a)?(r=31,n=Za(e,a,3,21)):(r=30,n=Za(e,a,3,22)),t.month===1?n+t.day-1:(n+=r+Math.min(t.month-2,5)*31,t.month>=8&&(n+=(t.month-7)*30),n+=t.day-1,n)}getDaysInMonth(t){return t.month===1&&Ca(t.year+Ho)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},ji=1948440,Rm=1948439,_t=1300,xr=1600,bw=460322;function Ci(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Am(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Ci(e,r,1,1)))/29.5)+1);return new rt(t,r,n,a-Ci(e,r,n,1)+1)}function Im(t){return(14+11*t)%30<11}var Wo=class{fromJulianDay(t){return Am(this,ji,t)}toJulianDay(t){return Ci(ji,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&Im(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return Im(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},ww=class extends Wo{fromJulianDay(t){return Am(this,Rm,t)}toJulianDay(t){return Ci(Rm,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Dw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Pm,vr;function ki(t){return bw+vr[t-_t]}function dn(t,e){let a=t-_t,r=1<<11-(e-1);return(Pm[a]&r)===0?29:30}function Mm(t,e){let a=ki(t);for(let r=1;r<e;r++)a+=dn(t,r);return a}function Fm(t){return vr[t+1-_t]-vr[t-_t]}var jw=class extends Wo{fromJulianDay(t){let e=t-ji,a=ki(_t),r=ki(xr);if(e<a||e>r)return super.fromJulianDay(t);{let n=_t-1,i=1,l=1;for(;l>0;){n++,l=e-ki(n)+1;let o=Fm(n);if(l===o){i=12;break}else if(l<o){let d=dn(n,i);for(i=1;l>d;)l-=d,i++,d=dn(n,i);break}}return new rt(this,n,i,e-Mm(n,i)+1)}}toJulianDay(t){return t.year<_t||t.year>xr?super.toJulianDay(t):ji+Mm(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<_t||t.year>xr?super.getDaysInMonth(t):dn(t.year,t.month)}getDaysInYear(t){return t.year<_t||t.year>xr?super.getDaysInYear(t):Fm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Pm||(Pm=new Uint16Array(Uint8Array.from(atob(Dw),t=>t.charCodeAt(0)).buffer)),!vr){vr=new Uint32Array(xr-_t+1);let t=0;for(let e=_t;e<=xr;e++){vr[e-_t]=t;for(let a=1;a<=12;a++)t+=dn(e,a)}}}},Vm=347997,zm=1080,Om=24*zm,Cw=29,kw=12*zm+793,Sw=Cw*Om+kw;function Ga(t){return hr(t*7+1,19)<7}function Si(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return hr(3*(r+1),7)<3&&(r+=1),r}function Nw(t){let e=Si(t-1),a=Si(t);return Si(t+1)-a===356?2:a-e===382?1:0}function un(t){return Si(t)+Nw(t)}function $m(t){return un(t+1)-un(t)}function Ew(t){let e=$m(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ni(t,e){if(e>=6&&!Ga(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=Ew(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ga(t)?30:0:30}var _w=class{fromJulianDay(t){let e=t-Vm,a=e*Om/Sw,r=Math.floor((19*a+234)/235)+1,n=un(r),i=Math.floor(e-n);for(;i<1;)r--,n=un(r),i=Math.floor(e-n);let l=1,o=0;for(;o<i;)o+=Ni(r,l),l++;l--,o-=Ni(r,l);let d=i-o;return new rt(this,r,l,d)}toJulianDay(t){let e=un(t.year);for(let a=1;a<t.month;a++)e+=Ni(t.year,a);return e+t.day+Vm}getDaysInMonth(t){return Ni(t.year,t.month)}getMonthsInYear(t){return Ga(t.year)?13:12}getDaysInYear(t){return $m(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(Ga(e.year)&&!Ga(t.year)&&e.month>6?t.month--:!Ga(e.year)&&Ga(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Uo=1723856,Lm=1824665,Ko=5500;function Ei(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Zo(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Ei(t,a,1,1))/30);return[a,r,e+1-Ei(t,a,r,1)]}function Bm(t){return Math.floor(t%4/3)}function Hm(t,e){return e%13==0?Bm(t)+5:30}var qo=class{fromJulianDay(t){let[e,a,r]=Zo(Uo,t),n="AM";return e<=0&&(n="AA",e+=Ko),new rt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Ko),Ei(Uo,e,t.month,t.day)}getDaysInMonth(t){return Hm(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+Bm(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},Tw=class extends qo{fromJulianDay(t){let[e,a,r]=Zo(Uo,t);return e+=Ko,new rt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},Rw=class extends qo{fromJulianDay(t){let[e,a,r]=Zo(Lm,t),n="CE";return e<=0&&(n="BCE",e=1-e),new rt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ei(Lm,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Hm(e,t.month)}isInverseEra(t){return t.era==="BCE"}balanceDate(t){t.year<=0&&(t.era=t.era==="BCE"?"CE":"BCE",t.year=1-t.year)}getEras(){return["BCE","CE"]}getYearsInEra(t){return t.era==="BCE"?9999:9715}constructor(...t){super(...t),this.identifier="coptic"}};function Yo(t){switch(t){case"buddhist":return new gw;case"ethiopic":return new qo;case"ethioaa":return new Tw;case"coptic":return new Rw;case"hebrew":return new _w;case"indian":return new yw;case"islamic-civil":return new Wo;case"islamic-tbla":return new ww;case"islamic-umalqura":return new jw;case"japanese":return new fw;case"persian":return new vw;case"roc":return new xw;default:return new ft}}function Aw(t){let e=vA({usage:"search",...t}),a=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(0,l.length),l)===0),[e]),r=(0,x.useCallback)((i,l)=>l.length===0?!0:(i=i.normalize("NFC"),l=l.normalize("NFC"),e.compare(i.slice(-l.length),l)===0),[e]),n=(0,x.useCallback)((i,l)=>{if(l.length===0)return!0;i=i.normalize("NFC"),l=l.normalize("NFC");let o=0,d=l.length;for(;o+d<=i.length;o++){let u=i.slice(o,o+d);if(e.compare(l,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ke=typeof document<"u"?window.visualViewport:null;function Iw(t){let{direction:e}=qe(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:l=n,placement:o="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:p=0,crossOffset:m=0,shouldUpdatePosition:h=!0,isOpen:f=!0,onClose:g,maxHeight:v,arrowBoundaryOffset:b=0}=t,[w,D]=(0,x.useState)(null),j=[h,o,n.current,r.current,i==null?void 0:i.current,l.current,d,u,c,p,m,f,e,v,b,a],k=(0,x.useRef)(Ke==null?void 0:Ke.scale);(0,x.useEffect)(()=>{f&&(k.current=Ke==null?void 0:Ke.scale)},[f]);let N=(0,x.useCallback)(()=>{var T,P;if(h===!1||!f||!n.current||!r.current||!c||(Ke==null?void 0:Ke.scale)!==k.current)return;let C=null;if(l.current&&l.current.contains(document.activeElement)){let R=(T=document.activeElement)==null?void 0:T.getBoundingClientRect(),F=l.current.getBoundingClientRect();C={type:"top",offset:((R==null?void 0:R.top)??0)-F.top},C.offset>F.height/2&&(C.type="bottom",C.offset=((R==null?void 0:R.bottom)??0)-F.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Ib({placement:Mw(o,e),overlayNode:n.current,targetNode:r.current,scrollNode:l.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:p,crossOffset:m,maxHeight:v,arrowSize:a??(i!=null&&i.current?Eo(i.current,!0).width:0),arrowBoundaryOffset:b});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(R=>_.style[R]=E.position[R]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&l.current){let R=document.activeElement.getBoundingClientRect(),F=l.current.getBoundingClientRect(),I=R[C.type]-F[C.type];l.current.scrollTop+=I-C.offset}D(E)}},j);wa(N,j),Pw(N),ui({ref:n,onResize:N}),ui({ref:r,onResize:N});let S=(0,x.useRef)(!1);wa(()=>{let C,_=()=>{S.current=!0,clearTimeout(C),C=setTimeout(()=>{S.current=!1},500),N()},E=()=>{S.current&&_()};return Ke==null||Ke.addEventListener("resize",_),Ke==null||Ke.addEventListener("scroll",E),()=>{Ke==null||Ke.removeEventListener("resize",_),Ke==null||Ke.removeEventListener("scroll",E)}},[N]);let y=(0,x.useCallback)(()=>{S.current||(g==null||g())},[g,S]);return Fb({triggerRef:r,isOpen:f,onClose:g&&y}),{overlayProps:{style:{position:w?"absolute":"fixed",top:w?void 0:0,left:w?void 0:0,zIndex:1e5,...w==null?void 0:w.position,maxHeight:(w==null?void 0:w.maxHeight)??"100vh"}},placement:(w==null?void 0:w.placement)??null,triggerAnchorPoint:(w==null?void 0:w.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:w==null?void 0:w.arrowOffsetLeft,top:w==null?void 0:w.arrowOffsetTop}},updatePosition:N}}function Pw(t){wa(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Mw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function Fw({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(DA.Provider,{value:e},t)}function Vw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),l=Ku(d=>{a&&Wm(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),o=Ku(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=bA(u);if(typeof PointerEvent<"u"){let p=m=>{d.isPointerDown&&Wm(m,e)&&o(m),d.isPointerDown=!1};return c.addEventListener("pointerdown",l,!0),c.addEventListener("click",p,!0),()=>{c.removeEventListener("pointerdown",l,!0),c.removeEventListener("click",p,!0)}}},[e,r])}function Wm(t,e){if(t.button>0)return!1;if(t.target){let a=t.target.ownerDocument;if(!a||!a.documentElement.contains(t.target)||t.target.closest("[data-react-aria-top-layer]"))return!1}return e.current?!t.composedPath().includes(e.current):!1}var Yt=[];function zw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:l=!1,shouldCloseOnInteractOutside:o}=t;(0,x.useEffect)(()=>{if(n&&!Yt.includes(e))return Yt.push(e),()=>{let f=Yt.indexOf(e);f>=0&&Yt.splice(f,1)}},[n,e]);let d=()=>{Yt[Yt.length-1]===e&&a&&a()},u=f=>{(!o||o(f.target))&&Yt[Yt.length-1]===e&&(f.stopPropagation(),f.preventDefault())},c=f=>{(!o||o(f.target))&&(Yt[Yt.length-1]===e&&(f.stopPropagation(),f.preventDefault()),d())},p=f=>{f.key==="Escape"&&!l&&!f.nativeEvent.isComposing&&(f.stopPropagation(),f.preventDefault(),d())};Vw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:m}=Hl({isDisabled:!r,onBlurWithin:f=>{!f.relatedTarget||xA(f.relatedTarget)||(!o||o(f.relatedTarget))&&(a==null||a())}}),h=f=>{f.target===f.currentTarget&&f.preventDefault()};return{overlayProps:{onKeyDown:p,...m},underlayProps:{onPointerDown:h}}}var cn=typeof document<"u"&&window.visualViewport,_i=0,Um;function Ow(t={}){let{isDisabled:e}=t;wa(()=>{if(!e)return _i++,_i===1&&(Um=Mv()?Lw():$w()),()=>{_i--,_i===0&&Um()}},[e])}function $w(){let t=window.innerWidth-document.documentElement.clientWidth;return Fv(t>0&&("scrollbarGutter"in document.documentElement.style?Go(document.documentElement,"scrollbarGutter","stable"):Go(document.documentElement,"paddingRight",`${t}px`)),Go(document.documentElement,"overflow","hidden"))}function Lw(){let t,e=!1,a=d=>{let u=d.target;t=fA(u)?u:ro(u,!0),e=!1;let c=u.ownerDocument.defaultView.getSelection();c&&!c.isCollapsed&&c.containsNode(u,!0)&&(e=!0),"selectionStart"in u&&"selectionEnd"in u&&u.selectionStart<u.selectionEnd&&u.ownerDocument.activeElement===u&&(e=!0)},r=document.createElement("style");r.textContent=`@layer {
3
3
  * {
4
4
  overscroll-behavior: contain;
5
5
  }
package/dist/index.html CHANGED
@@ -66,7 +66,7 @@
66
66
  <marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
67
67
  <!-- /TODO -->
68
68
  <title>{{ title }}</title>
69
- <script type="module" crossorigin src="./assets/index-BVybQnue.js"></script>
69
+ <script type="module" crossorigin src="./assets/index-CNxk2zVN.js"></script>
70
70
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-BW0IMuFq.js">
71
71
  <link rel="modulepreload" crossorigin href="./assets/hotkeys-uKX61F1_.js">
72
72
  <link rel="modulepreload" crossorigin href="./assets/defaultLocale-BLUna9fQ.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/frontend",
3
- "version": "0.19.3-dev48",
3
+ "version": "0.19.3-dev49",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -65,7 +65,7 @@ export const KernelStartupErrorModal: React.FC = () => {
65
65
  manager can't install your notebook's dependencies.
66
66
  </AlertDialogDescription>
67
67
  </AlertDialogHeader>
68
- <div className="my-4">
68
+ <div className="my-4 overflow-hidden">
69
69
  <div className="flex items-center justify-between mb-2">
70
70
  <span className="text-sm font-medium text-muted-foreground">
71
71
  Error Details
@@ -80,7 +80,7 @@ export const KernelStartupErrorModal: React.FC = () => {
80
80
  Copy
81
81
  </Button>
82
82
  </div>
83
- <pre className="bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80 whitespace-pre-wrap break-words">
83
+ <pre className="bg-muted p-4 rounded-md text-sm font-mono overflow-auto max-h-80">
84
84
  {error}
85
85
  </pre>
86
86
  </div>