@marimo-team/frontend 0.19.10-dev16 → 0.19.10-dev19

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-CFdVZ0cV.js","./app-config-button-m6TKpzxY.js","./ai-model-dropdown-BxT_WaQh.js","./cells-mohhX6EY.js","./preload-helper-D2MJg03u.js","./badge-DX6CQ6PA.js","./cn-BKtXLv3a.js","./clsx-D8GwTfvk.js","./compiler-runtime-B3qBwwSJ.js","./react-Bj1aDYRI.js","./chunk-LvLJmgfZ.js","./jsx-runtime-ZmTK25f3.js","./button-CZ3Cs4qb.js","./hotkeys-BHHWjLlp.js","./useEventListener-Cb-RVVEn.js","./Combination-BAEdC-rz.js","./react-dom-CSu739Rf.js","./select-BVdzZKAh.js","./menu-items-BMjcEb2j.js","./dist-DwV58Fb1.js","./check-Dr3SxUsb.js","./createLucideIcon-BCdY6lG5.js","./x-ZP5cObgf.js","./tooltip-CMQz28hC.js","./use-toast-BDYuj3zG.js","./utils-YqBXNpsM.js","./useEvent-BhXAndur.js","./_baseIsEqual-B9N9Mw_N.js","./_Uint8Array-BGESiCQL.js","./invariant-CAG_dYON.js","./merge-BBX6ug-N.js","./_baseFor-Duhs3RiJ.js","./zod-H_cgTO0M.js","./DeferredRequestRegistry-CMf25YiV.js","./Deferred-DxQeE5uh.js","./uuid-DXdzqzcr.js","./config-Q0O7_stz.js","./constants-B6Cb__3x.js","./session-BOFn9QrD.js","./requests-B4FYHTZl.js","./useLifecycle-ClI_npeg.js","./assertNever-CBU83Y6o.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_hasUnicode-CWqKLxBC.js","./_arrayReduce-TT0iOGKY.js","./useNonce-CS26E0hA.js","./useTheme-DQozhcp1.js","./once-Bul8mtFs.js","./capabilities-MM7JYRxj.js","./createReducer-B3rBsy4P.js","./paths-BzSgteR-.js","./dist-NOntBqny.js","./dist-DxWb3aMV.js","./dist-CF9gSfGe.js","./dist-MyTWYTLd.js","./dist-LUpffRIq.js","./dist-PzrizfuL.js","./dist-BNkRH34W.js","./dist-maX8rbyb.js","./dist-Bt3KRZho.js","./stex-jWatZkll.js","./toDate-DETS9bBd.js","./cjs-CH5Rj0g8.js","./_baseProperty-NKyJO2oh.js","./debounce-B3mjKxHe.js","./now-6sUe0ZdD.js","./toInteger-CDcO32Gx.js","./database-zap-k4ePIFAU.js","./main-U5Goe76G.js","./cells-jmgGt1lS.css","./spinner-DA8-7wQv.js","./renderShortcut-BckyRbYt.js","./dropdown-menu-ldcmQvIV.js","./chevron-right--18M_6o9.js","./kbd-Cm6Ba9qg.js","./multi-map-DxdLNTBd.js","./alert-BOoN6gJ1.js","./card-OlSjYhmd.js","./dialog-eb-NieZw.js","./alert-dialog-BW4srmS0.js","./textarea-Dlgj0GkA.js","./label-E64zk6_7.js","./dist-CDXJRSCj.js","./useDebounce-7iEVSqwM.js","./input-DUrq2DiR.js","./numbers-D7O23mOZ.js","./useNumberFormatter-Db6Vjve5.js","./context-BfYAMNLF.js","./SSRProvider-BIDQNg9Q.js","./usePress-C__vuri5.js","./links-7AQBmdyV.js","./popover-CH1FzjxU.js","./switch-ByYyI8xL.js","./table-DScsXgJW.js","./mode-Dq1sz4LV.js","./useAsyncData-BMGLSTg8.js","./error-banner-B9ts0mNl.js","./errors-TZBmrJmc.js","./copy-DHrHayPa.js","./get-6uJrSKbw.js","./memoize-BCOZVFBt.js","./capitalize-CmNnkG9y.js","./copy-D-8y6iMN.js","./plus-B7DF33lD.js","./refresh-cw-Dx8TEWFP.js","./trash-2-DDsWrxuJ.js","./triangle-alert-CebQ7XwA.js","./Inputs-GV-aQbOR.js","./Inputs-CuKU-ENz.css","./ImperativeModal-BNN1HA7x.js","./settings-OBbrbhij.js","./ErrorBoundary-B9Ifj8Jf.js","./icons-CCHmxi8d.js","./types-xRAkrb06.js","./file-video-camera-C3wGzBnE.js","./file-Ch78NKWp.js","./useInterval-B-PjgTm9.js","./dates-CrvjILe3.js","./en-US-CCVfmA-q.js","./isValid-DDt9wNjK.js","./links-DWIqY1l5.js","./maps-D2_Mq1pZ.js","./tree-B--q0-tu.js","./extends-BiFDv3jB.js","./chart-no-axes-column-qvVRjhv1.js","./circle-play-EowqxNIC.js","./youtube--tNPNRy6.js","./link-DxicfMbs.js","./refresh-ccw-DN_xCV6A.js","./run-page-DAeO8ujQ.js","./panels-Ceio66hv.js","./JsonOutput-Dxvq5055.js","./tooltip-DxKBXCGp.js","./vega-loader.browser-DXARUlxo.js","./precisionRound-CU2C3Vxx.js","./defaultLocale-JieDVWC_.js","./defaultLocale-BLne0bXb.js","./MarimoErrorOutput-CoqwH134.js","./useInstallPackage-D4fX0Ee_.js","./cell-link-D8LvmCNt.js","./datasource-6uKJkmFA.js","./state-CZfGAgTI.js","./copy-icon-v8ME_JKB.js","./markdown-renderer-CfUQ6yJN.js","./html-to-image-BeNaGPxI.js","./focus-BV1s_tyC.js","./LazyAnyLanguageCodeMirror-BTO7DS3k.js","./chunk-5FQGJX7Z-DPlx2kjA.js","./katex-CDLTCvjQ.js","./markdown-renderer-DdDKmWlR.css","./command-D24fhSFi.js","./download-BIF7X-oN.js","./RenderHTML-Bjuorl1c.js","./useRunCells-BCUFBFqU.js","./purify.es-DZrAQFIu.js","./useIframeCapabilities-B_pQb20b.js","./formats-CobRswjh.js","./emotion-is-prop-valid.esm-C59xfSYt.js","./useDateFormatter-CqhdUl2n.js","./range-D2UKkEg-.js","./table-CfDbAm78.js","./JsonOutput-B7vuddcd.css","./layout-D6XqXgk-.js","./name-cell-input-ccPNGTHi.js","./esm-BqiVbELQ.js","./objectWithoutPropertiesLoose-DfWeGRFv.js","./name-cell-input-ujOhus_y.css","./floating-outline-Dy87afxH.js","./readonly-python-code-DrFjR0sJ.js","./useAddCell-B-rvlKPz.js","./eye-off-AK_9uodG.js","./process-output-BxNtGI4m.js","./esm-BeuExXY6.js","./dist-BP9zs-JA.js","./dist-BHxWJlYy.js","./dist-C0vFollF.js","./dist-kjrKkhgz.js","./dist-CShMY7yu.js","./dist-8qtC33as.js","./dist-CCX32maQ.js","./dist-D_DbFqxl.js","./dist-DDhEwFtR.js","./dist-DKmfcej2.js","./dist-DPQdWUrU.js","./dist-Dt1by2kD.js","./dist-K8bI26Ke.js","./dist-dnoBqBf0.js","./apl-DHQPYmx2.js","./asciiarmor-fnQAw8T8.js","./asn1-5lb7I37s.js","./brainfuck-D30bRgvC.js","./clike-jZeb2kFn.js","./clojure-C0pkR8m2.js","./cmake-DlvFtk_M.js","./cobol-C_yb45mr.js","./coffeescript-DBK0AeMT.js","./commonlisp-Bo8hOdn-.js","./crystal-DYrQEMVi.js","./css-zh47N2UC.js","./cypher-BWPAHm69.js","./d-CMuL95tt.js","./diff-oor_HZ51.js","./dtd-Fe_Eikw6.js","./dylan-DjUZAjRK.js","./ecl-qgyT1LqI.js","./eiffel-Dgulx8rf.js","./elm-BvFY4GJb.js","./erlang-Ba0XOLlj.js","./factor-B3fhZG6W.js","./simple-mode-BmS_AmGQ.js","./forth-gbBFxz8f.js","./fortran-CXijpPbh.js","./gas-CnHGSLCd.js","./gherkin-DfEZpSxY.js","./groovy-9JiNA9gq.js","./haskell-CKr_RZFK.js","./haxe-DsAAHfaR.js","./idl-Djz72z1a.js","./javascript-CsBr0q2-.js","./julia-BCYfl68O.js","./livescript-BEw7FNJP.js","./lua-DqxHXOsz.js","./mathematica-Do-octY0.js","./mbox-VgrgGytk.js","./mirc-DkD5mNIp.js","./mllike-C8Ah4kKN.js","./modelica-2q7w6nLE.js","./mscgen-BRqvO7u4.js","./mumps-CjtiTT1a.js","./nsis-QuE155sg.js","./ntriples-4lauqsM6.js","./octave-A2kFK0nR.js","./oz-CvXDMSbl.js","./pascal-6Jinj26u.js","./perl-CXauYQdN.js","./pig-Dl0QLQI6.js","./powershell-6bdy_rHW.js","./properties-p1rx3aF7.js","./protobuf-BZ6p9Xh_.js","./pug-NA-6TsNe.js","./puppet-CjdIRV7D.js","./python-uzyJYIWU.js","./q-CfD3i9uI.js","./r-JyJdYHQB.js","./rpm-DuGPfDyX.js","./ruby-CA1TzLxZ.js","./sas-BJPWZC7M.js","./scheme-IRagAY3r.js","./shell-BVpF3W_J.js","./sieve-BSfPMeZl.js","./smalltalk-CkHVehky.js","./sparql-CmKKjr-f.js","./stylus-D28PuRsm.js","./swift-D-jfpPuv.js","./tcl-BrQdCDVA.js","./textile-DXBc8HMq.js","./toml-ClSouHPE.js","./troff-BGDyQn9x.js","./ttcn-cfg-CQMSrhCz.js","./ttcn-De1OdISX.js","./turtle-DNhfxysg.js","./vb-BX7-Md9G.js","./vbscript-DNMzJOTU.js","./velocity-viirwPm7.js","./verilog-CZguTLBV.js","./vhdl-CAEhCBOl.js","./webidl-BNJg_7gX.js","./xquery-CGV_r322.js","./yacas-uRzw7z7m.js","./z80-CBK8t-9T.js","./code-xml-CgN_Yig7.js","./ellipsis-DfDsMPvA.js","./play-GLWQQs7F.js","./trash-DCF6Krvi.js","./prop-types-DaaA-ptl.js","./layout-BjXzDXoG.css","./utilities.esm-BmOYgqmr.js","./toggle-zVW4FXNz.js","./globals-Dhj3V9Yk.js","./share-ipf2hrOh.js","./blob-D-eV0cU3.js","./_baseSet-5Rdwpmr3.js","./react-resizable-panels.browser.esm-Da3ksQXL.js","./types-iYXk7c05.js","./requests-De5yEBc8.js","./runs-YUGrkyfE.js","./request-registry-C5_pVc8Y.js","./ws-DcVtI9Wj.js","./panels-B4E3DsXP.css","./icon-32x32-DH9kM4Sh.js","./arrow-left-VDC1u5rq.js","./download-Dg7clfkc.js","./edit-page-duq5mHJr.js","./loro_wasm_bg-DzFUi5p_.js","./useDeleteCell-BOZp6IoC.js","./add-cell-with-ai-C3yyBMWk.js","./cell-editor-Q6J6jxxd.js","./useSplitCell-DAfjUnfB.js","./hooks-CfnnqHmC.js","./dist-BqBWjk9M.js","./circle-check-DquVD4wZ.js","./save-DZodxFnE.js","./cell-editor-Iey559K_.css","./useCellActionButton-BWVKnpk7.js","./multi-icon-jM74Rbvg.js","./multi-icon-pwGWVz3d.css","./circle-plus-haI9GLDP.js","./useNotebookActions-Cu5YnHhr.js","./add-database-form-DrDGCl3n.js","./write-secret-modal-1fGKmd5H.js","./field-CySaBlkz.js","./form-CYTrktu4.js","./_baseEach-BhAgFun2.js","./hasIn-CycJImp8.js","./file-plus-corner-CvAy4H5W.js","./square-CuJ72M8f.js","./CellStatus-vyx1oS4b.js","./workflow-BphwJiK3.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-CqXirL53.js","./panel-context-HhzMRtZm.js","./kiosk-mode-DbwzuAqk.js","./useBoolean-Ck_unDZw.js","./clipboard-paste-CpyPR-HZ.js","./rotate-ccw-DPbJxVVN.js","./square-function-B6mgCeFJ.js","./edit-page-Dstp9NQ5.css","./gallery-page-D5ulMArd.js","./glide-data-editor-DXeMF5KH.js","./types-C1UhS3qM.js","./click-outside-container-BXzp0MYr.js","./dist-BZP3Xxma.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-HbY4uSsv.js","./spec-Ch0xnJY4.js","./react-vega-BL1HBBjq.js","./linear-BWciPXnd.js","./timer-B6DpdVnC.js","./init-DRQmrFIb.js","./time-DkuObi5n.js","./range-1DwpgXvM.js","./treemap-CZF0Enj1.js","./path-D7fidI_g.js","./colors-DUsH-HF1.js","./ordinal-DG_POl79.js","./arc-D1owqr0z.js","./math-BJjKGmt3.js","./array-Cf4PUXPA.js","./step-CVy5FnKg.js","./line-BA7eTS55.js","./isString-DtNk7ov1.js","./Plot-CN9AM0tY.js","./vega-component-BxXt5fsA.js","./useDeepCompareMemoize-5OUgerQ3.js","./_baseUniq-BP3iN0f3.js","./slides-component-JYH8kck6.js","./slides-component-vtdQFHpk.css","./ImageComparisonComponent-BmIQwrIS.js","./mermaid-8YdCU498.js","./dist-DxxvVPQH.js","./chunk-JA3XYJ7Z-BBDBNwto.js","./src-CmKhyEBC.js","./src-CvyFXpBy.js","./chunk-S3R3BYOJ-OezEEdUG.js","./chunk-ABZYJK2D-CNf44YbG.js","./isEmpty-CgX_-6Mt.js","./chunk-ATLVNIR6-dMFR1SFQ.js","./chunk-CVBHYZKI-Brsoob-W.js","./chunk-EXTU4WIE-DhUL3hgE.js","./chunk-HN2XXSSU-BBxJMYrA.js","./chunk-JZLCHNYA-BXs7PoCi.js","./chunk-MI3HLSF2-D6we5Ftb.js","./chunk-N4CR4FBY-G8sTCjxn.js","./chunk-QXUST7PY-DaTIHluG.js","./chunk-XAJISQIX-TwS9jXHm.js","./katex-DF982Ty5.js","./mhchem-CJmb5HsA.js"])))=>i.map(i=>d[i]);
2
- var oN=Object.defineProperty;var lN=(Za,sa,pr)=>sa in Za?oN(Za,sa,{enumerable:!0,configurable:!0,writable:!0,value:pr}):Za[sa]=pr;var K=(Za,sa,pr)=>lN(Za,typeof sa!="symbol"?sa+"":sa,pr);import{r as sN,s as xa,t as lu}from"./chunk-LvLJmgfZ.js";import{c as _o,i as Oe,l as Ln,n as Be,s as Ro,u as Io}from"./useEvent-BhXAndur.js";import{t as dN}from"./react-Bj1aDYRI.js";import{$r as su,Br as uN,G as du,Gn as cN,Hr as mN,I as pN,Kr as hN,Ln as fN,On as uu,Pn as h1,Qr as f1,St as cu,Vn as Po,Wn as g1,Wt as gN,Xr as xN,Yn as vN,Zr as bN,ci as yN,ei as wN,ii as x1,kn as v1,mi as b1,ni as mu,oi as DN,pi as jN,qn as CN,qr as kN,rt as SN,si as $n,x as AN,xr as NN,y as y1,__tla as EN}from"./cells-mohhX6EY.js";import{t as Hn}from"./react-dom-CSu739Rf.js";import{A as Or,B as Se,C as Pt,E as TN,F as w1,I as ft,J as _N,N as q,P as B,R as F,S as Br,T as W,U as RN,V as Ia,a as D1,b as be,h as IN,i as j1,j as PN,k as Le,n as C1,r as MN,s as pu,t as hu,v as FN,w as ee,x as k1,z as Pa}from"./zod-H_cgTO0M.js";import{t as Q}from"./compiler-runtime-B3qBwwSJ.js";import{t as zN}from"./get-6uJrSKbw.js";import{t as fu}from"./pick-B_6Qi5aM.js";import{t as Ma}from"./capitalize-CmNnkG9y.js";import{i as VN,n as ON,o as gu,s as BN}from"./useLifecycle-ClI_npeg.js";import{i as LN,r as S1,t as $N}from"./tooltip-DxKBXCGp.js";import{A as HN,B as WN,F as A1,G as UN,H as N1,J as ZN,K as E1,M as YN,O as KN,P as qN,R as T1,T as _1,U as Lr,V as Fa,Y as GN,Z as QN,g as JN,j as XN,k as eE,lt as tE,nt as Wn,ot as R1,q as aE,rt as rE,tt as xu,z as nE,__tla as iE}from"./utilities.esm-BmOYgqmr.js";import{G as Un,J as oE,K as lE,X as Mo,Y as I1,Z as sE,at as P1,et as M1,it as dE,nt as vu,q as uE,rt as Fo,st as zo,tt as Vo}from"./ai-model-dropdown-BxT_WaQh.js";import{a as za,d as ue,f as Va}from"./hotkeys-BHHWjLlp.js";import{t as $r}from"./invariant-CAG_dYON.js";import{A as cE,O as mE,S as pE,g as hE,i as fE,k as gE,l as xE,v as vE,y as bE}from"./utils-YqBXNpsM.js";import{r as bu}from"./constants-B6Cb__3x.js";import{S as yE,_ as F1,a as wE,h as z1,i as V1,r as yu,t as DE,x as O1,y as Ye}from"./config-Q0O7_stz.js";import{a as jE,d as CE,l as kE,o as SE,r as AE,t as NE,u as EE}from"./switch-ByYyI8xL.js";import{t as TE}from"./globals-Dhj3V9Yk.js";import{t as Oo}from"./ErrorBoundary-B9Ifj8Jf.js";import{n as _E,r as kt,t as wu}from"./useEventListener-Cb-RVVEn.js";import{t as RE}from"./jsx-runtime-ZmTK25f3.js";import{n as Oa,t as Ce}from"./button-CZ3Cs4qb.js";import{n as Bo,t as U}from"./cn-BKtXLv3a.js";import{at as IE}from"./dist-DxWb3aMV.js";import{$ as PE,A as ME,C as FE,D as zE,E as Du,F as ju,G as VE,H as OE,K as BE,O as LE,P as Cu,S as $E,T as B1,U as L1,V as $1,W as HE,Y as Zn,b as WE,d as UE,et as ZE,j as H1,l as YE,nt as KE,q as W1,r as qE,t as U1,tt as GE,u as QE,v as JE,w as XE,x as ku,y as eT,__tla as tT}from"./JsonOutput-Dxvq5055.js";import{c as aT,n as Z1,p as rT,r as va,t as nT}from"./once-Bul8mtFs.js";import"./cjs-CH5Rj0g8.js";import"./main-U5Goe76G.js";import"./useNonce-CS26E0hA.js";import{n as iT}from"./requests-B4FYHTZl.js";import{t as St}from"./createLucideIcon-BCdY6lG5.js";import{A as oT,C as Y1,D as lT,O as sT,S as dT,_ as uT,a as K1,b as cT,c as q1,d as Yn,f as G1,g as mT,h as pT,i as Su,k as hT,l as fT,m as Q1,n as gT,p as xT,r as ba,s as vT,t as bT,u as ra,v as yT,y as wT}from"./spec-Ch0xnJY4.js";import{F as DT,I as jT,N as CT,P as kT,R as ST,S as AT,h as NT,j as ET,n as TT,x as _T}from"./add-cell-with-ai-C3yyBMWk.js";import{t as RT,__tla as IT}from"./LazyAnyLanguageCodeMirror-BTO7DS3k.js";import{t as PT}from"./bot-message-square-B2ThzDUZ.js";import{a as MT,i as FT,n as zT,o as VT,t as J1}from"./useBoolean-Ck_unDZw.js";import{r as OT,t as Hr}from"./x-ZP5cObgf.js";import{i as BT,l as LT,m as Lo}from"./download-BIF7X-oN.js";import{t as $o}from"./chevron-right--18M_6o9.js";import{i as $T,o as HT}from"./maps-D2_Mq1pZ.js";import"./markdown-renderer-CfUQ6yJN.js";import{u as WT}from"./toDate-DETS9bBd.js";import{P as X1,a as Au,c as UT,i as ZT,o as YT,p as ev,r as tv,t as av}from"./dropdown-menu-ldcmQvIV.js";import{t as KT}from"./code-xml-CgN_Yig7.js";import{t as qT}from"./copy-D-8y6iMN.js";import{t as GT}from"./download-Dg7clfkc.js";import{i as QT}from"./file-video-camera-C3wGzBnE.js";import{r as JT,t as XT}from"./types-xRAkrb06.js";import{n as e_,r as t_,t as a_}from"./square-CuJ72M8f.js";import{n as Ho,t as Kn}from"./spinner-DA8-7wQv.js";import{i as r_,r as rv,t as Nu}from"./readonly-python-code-DrFjR0sJ.js";import{n as n_,t as Wo}from"./types-C1UhS3qM.js";import{t as nv}from"./plus-B7DF33lD.js";import{t as i_}from"./refresh-cw-Dx8TEWFP.js";import{$ as iv,A as Eu,C as o_,D as l_,E as Tu,G as s_,H as d_,J as Wr,K as Uo,L as _u,M as Zo,N as ov,O as lv,P as Yo,Q as ya,R as u_,T as Ko,U as c_,W as Ba,X as La,Y as $a,Z as sv,_ as qo,at as Ur,b as m_,c as p_,ct as st,d as dv,et as uv,g as Zr,h as qn,i as h_,it as f_,k as Ru,l as g_,lt as x_,m as Go,n as v_,nt as Iu,o as Pu,ot as b_,p as cv,q as mv,r as Mu,rt as lr,s as y_,st as Qo,t as Fu,tt as Jo,u as Xo,v as zu,w as w_}from"./input-DUrq2DiR.js";import{t as D_}from"./settings-OBbrbhij.js";import{t as el}from"./square-function-B6mgCeFJ.js";import{_ as Qe,a as dt,c as at,d as sr,f as j_,g as pv,h as C_,i as k_,l as it,n as S_,o as Gn,p as hv,r as A_,t as N_,u as ct,v as na}from"./textarea-Dlgj0GkA.js";import{a as E_,d as T_,i as __,l as R_,o as fv,r as I_,s as P_,t as M_,u as F_}from"./column-preview-D2vnrZTa.js";import{t as gv}from"./trash-2-DDsWrxuJ.js";import{t as tl}from"./triangle-alert-CebQ7XwA.js";import{i as xv,r as z_,t as V_}from"./es-BYgU_srD.js";import{t as bt}from"./preload-helper-D2MJg03u.js";import"./dist-MyTWYTLd.js";import"./dist-LUpffRIq.js";import"./dist-PzrizfuL.js";import"./dist-BNkRH34W.js";import"./dist-maX8rbyb.js";import{n as O_,t as Wt}from"./use-toast-BDYuj3zG.js";import{n as vv,t as B_}from"./paths-BzSgteR-.js";import{l as L_,r as $_,s as H_}from"./session-BOFn9QrD.js";import{r as Yr}from"./useTheme-DQozhcp1.js";import{C as al,E as Vu,S as rl,_ as We,d as W_,f as bv,g as Ut,h as U_,l as Z_,m as Y_,p as K_,u as q_,v as Ou,w as Ne,x as Qn}from"./Combination-BAEdC-rz.js";import{a as G_,c as Ha,d as Q_,f as J_,i as Mt,l as Bu,m as yv,n as Wa,o as nl,p as wv,r as Kr,s as dr,t as Ua}from"./select-BVdzZKAh.js";import{l as X_,r as Dv,t as eR}from"./dist-DwV58Fb1.js";import{a as Lu,i as At,n as $u,o as Hu,r as Wu,s as jv,t as Ft}from"./tooltip-CMQz28hC.js";import{d as il,u as Cv}from"./menu-items-BMjcEb2j.js";import"./dates-CrvjILe3.js";import{a as tR,n as aR,t as rR}from"./mode-Dq1sz4LV.js";import{a as nR,c as iR,i as oR,l as lR,n as sR,s as dR,t as uR}from"./alert-dialog-BW4srmS0.js";import{C as cR,D as mR,E as kv,F as Sv,I as Av,L as qr,N as pR,O as Je,R as Nv,n as hR,s as ol,t as Ev,x as fR,z as wa}from"./usePress-C__vuri5.js";import{t as gR}from"./SSRProvider-BIDQNg9Q.js";import{n as Zt,r as xR,t as ia}from"./useDateFormatter-CqhdUl2n.js";import{n as vR,t as Ke}from"./context-BfYAMNLF.js";import{t as bR}from"./useNumberFormatter-Db6Vjve5.js";import{a as yR,c as oa,i as wR,l as Jn,r as Tv,s as Xn,t as _v,u as la}from"./popover-CH1FzjxU.js";import{i as Gr,r as DR}from"./numbers-D7O23mOZ.js";import{n as jR,t as Rv}from"./useDebounce-7iEVSqwM.js";import{t as CR}from"./ImperativeModal-BNN1HA7x.js";import"./share-ipf2hrOh.js";import{n as Iv,r as Pv,t as kR}from"./errors-TZBmrJmc.js";import"./vega-loader.browser-DXARUlxo.js";import"./defaultLocale-JieDVWC_.js";import"./defaultLocale-BLne0bXb.js";import{t as ll}from"./copy-icon-v8ME_JKB.js";import{t as Me}from"./RenderHTML-Bjuorl1c.js";import"./purify.es-DZrAQFIu.js";import{a as Mv,c as SR,i as Fv,l as AR,n as Uu,o as NR,r as zv,s as ER}from"./multi-map-DxdLNTBd.js";import{n as TR,r as Zu,t as sl}from"./alert-BOoN6gJ1.js";import{n as Qr,t as ur}from"./error-banner-B9ts0mNl.js";import{n as Nt}from"./useAsyncData-BMGLSTg8.js";import{a as _R,c as RR,o as IR,r as PR,s as MR,t as FR}from"./command-D24fhSFi.js";import{__tla as zR}from"./chunk-5FQGJX7Z-DPlx2kjA.js";import"./katex-CDLTCvjQ.js";import"./html-to-image-BeNaGPxI.js";import{a as VR,o as OR}from"./focus-BV1s_tyC.js";import{a as Vv,i as Yu,n as Ku,o as Jr,r as cr,t as qu}from"./table-DScsXgJW.js";import{t as Ov}from"./renderShortcut-BckyRbYt.js";import{t as ei}from"./label-E64zk6_7.js";import{t as BR}from"./chat-display-RFZ0N40A.js";import"./esm-BqiVbELQ.js";import{n as LR}from"./icons-CCHmxi8d.js";import{t as $R}from"./bundle.esm-i_UbZC0w.js";import{a as Bv,c as HR,d as Lv,f as dl,i as WR,l as UR,n as $v,o as ZR,p as Da,r as YR,s as Hv,t as KR,u as le}from"./form-CYTrktu4.js";import"./react-resizable-panels.browser.esm-Da3ksQXL.js";import{t as mr}from"./useDeepCompareMemoize-5OUgerQ3.js";import{a as qR,i as Wv,n as Uv,t as Zv}from"./field-CySaBlkz.js";import{i as GR,n as QR,r as JR}from"./floating-outline-Dy87afxH.js";Promise.all([(()=>{try{return EN}catch{}})(),(()=>{try{return iE}catch{}})(),(()=>{try{return tT}catch{}})(),(()=>{try{return IT}catch{}})(),(()=>{try{return zR}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 Za=St("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"}]]),sa=St("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=St("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"}]]),Kv=St("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"}]]),qv=St("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"}]]),Gv=St("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"}]]),Qv=St("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"}]]),Jv=St("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"}]]),Xv=St("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"}]]),eb=St("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"}]]),ec=St("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"}]]),tb=St("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"}]]),tc=St("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"}]]),ab=xa(b1(),1);const ja={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function rb(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 o=[],l=r,d=n;for(;l>0||d>0;)l>0&&d>0&&a(t[l-1],e[d-1])?(o.unshift({type:ja.MATCH,position:l-1}),l--,d--):l>0&&d>0&&i[l][d]===i[l-1][d-1]+1?(o.unshift({type:ja.SUBSTITUTE,position:l-1}),l--,d--):l>0&&i[l][d]===i[l-1][d]+1?(o.unshift({type:ja.DELETE,position:l-1}),l--):d>0&&i[l][d]===i[l][d-1]+1&&(o.unshift({type:ja.INSERT,position:l}),d--);return{distance:i[r][n],operations:o}}function nb(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 ib(t,e,a,r){let n=rb(t,e,a);return{merged:nb(t,n.operations,r),edits:n}}var ti=0,ai="";function cl(t){return t.id?t.id:t.name==="setup"?DN:mu.create()}function ob(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let l=(e==null?void 0:e.cells.map(d=>cl(d)))||[];return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,null])),notebookCellData:new Map(l.map((d,u)=>[d,(e==null?void 0:e.cells[u])||ac()]))}}if(!e){let l=t.cells.map(d=>cl(d));return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(l.map(d=>[d,ac()]))}}let{merged:n,edits:i}=ib(t.cells,e.cells,(l,d)=>{let u=l.code_hash;return u?d.code_hash===u:!1},rc());i.distance>0&&ue.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let l=0;l<e.cells.length;l++){let d=e.cells[l];if(d){let u=cl(d);o.push(u);let c=n[l]||rc();c.id=u,a.set(u,c),r.set(u,d)}else ue.warn("Merged notebook cell is null at index",l)}return{cellIds:o,sessionCellData:a,notebookCellData:r}}function ac(){return{id:mu.create(),name:ai,code:ai,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function rc(){return{id:mu.create(),code_hash:null,console:[],outputs:[]}}function lb(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 sb(t){let e=pN();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?SN(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 db(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=ob(t,e);if(a.length===0)return null;let i={},o={};for(let l of a){let d=r.get(l),u=n.get(l);u&&(i[l]=lb(l,u)),o[l]=sb(d)}return{cellIds:uN.from([a]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var ub=Q(),nc=Object.freeze({left:0,top:0,width:16,height:16}),ri=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...nc,...ri}),ml=Object.freeze({...Xr,body:"",hidden:!1}),cb=Object.freeze({width:null,height:null}),ic=Object.freeze({...cb,...ri});function mb(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 pb=/[\s,]+/;function hb(t,e){e.split(pb).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var oc={...ic,preserveAspectRatio:""};function lc(t){let e={...oc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=mb(a("rotate","")),hb(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function fb(t,e){for(let a in oc)if(t[a]!==e[a])return!0;return!1}var sc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(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 l=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:l};return e&&!ni(u)?null:u}let i=n[0],o=i.split("-");if(o.length>1){let l={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!ni(l)?null:l}if(a&&r===""){let l={provider:r,prefix:"",name:i};return e&&!ni(l,a)?null:l}return null},ni=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function gb(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 dc(t,e){let a=gb(t,e);for(let r in ml)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 xb(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(o){if(a[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=r[o]&&r[o].parent,d=l&&i(l);d&&(n[o]=[l].concat(d))}return n[o]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function vb(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function o(l){i=dc(r[l]||n[l],i)}return o(e),a.forEach(o),dc(t,i)}function uc(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=xb(t);for(let n in r){let i=r[n];i&&(e(n,vb(t,n,i)),a.push(n))}return a}var bb={provider:"",aliases:{},not_found:{},...nc};function pl(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function cc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!pl(t,bb))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!pl(i,ml))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],o=i.parent;if(!n||typeof o!="string"||!a[o]&&!r[o]||!pl(i,ml))return null}return e}var ii=Object.create(null);function yb(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function da(t,e){let a=ii[t]||(ii[t]=Object.create(null));return a[e]||(a[e]=yb(t,e))}function mc(t,e){return cc(e)?uc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function wb(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Db(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=da(r,n);a=a.concat(Object.keys(i.icons).map(o=>(r===""?"":"@"+r+":")+n+":"+o))})}),a}var tn=!1;function pc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=da(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function hc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=da(a.provider,a.prefix);return e?wb(r,a.name,e):(r.missing.add(a.name),!0)}function fc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return cc(t)&&(t.prefix="",uc(t,(n,i)=>{hc(n,i)&&(r=!0)})),r}let a=t.prefix;return ni({provider:e,prefix:a,name:"a"})?!!mc(da(e,a),t):!1}function gc(t){return!!an(t)}function jb(t){let e=an(t);return e&&{...Xr,...e}}function Cb(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,o=n.prefix,l=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[o]||(d[o]=da(i,o)),c;c=l in u.icons?e.loaded:o===""||u.missing.has(l)?e.missing:e.pending;let m={provider:i,prefix:o,name:l};c.push(m)}),e}function xc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function kb(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 o=i.icons,l=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])o.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))o.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),o.pending.length!==l&&(a||xc([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var Sb=0;function Ab(t,e,a){let r=Sb++,n=xc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),n}var hl=Object.create(null);function vc(t,e){hl[t]=e}function fl(t){return hl[t]||hl[""]}function Nb(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var Eb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tb(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,o;if(t.random){let A=t.resources.slice(0);for(o=[];A.length>1;){let S=Math.floor(Math.random()*A.length);o.push(A[S]),A=A.slice(0,S).concat(A.slice(S+1))}o=o.concat(A)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let l=Date.now(),d="pending",u=0,c,m=null,p=[],h=[];typeof r=="function"&&h.push(r);function x(){m&&(m=(clearTimeout(m),null))}function f(){d==="pending"&&(d="aborted"),x(),p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function g(A,S){S&&(h=[]),typeof A=="function"&&h.push(A)}function y(){return{startTime:l,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:g,abort:f}}function w(){d="failed",h.forEach(A=>{A(void 0,c)})}function D(){p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function j(A,S,b){let C=S!=="success";switch(p=p.filter(N=>N!==A),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){c=b,w();return}if(C){c=b,p.length||(o.length?k():w());return}if(x(),D(),!t.random){let N=t.resources.indexOf(A.resource);N!==-1&&N!==t.index&&(t.index=N)}d="completed",h.forEach(N=>{N(b)})}function k(){if(d!=="pending")return;x();let A=o.shift();if(A===void 0){if(p.length){m=setTimeout(()=>{x(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let S={status:"pending",resource:A,callback:(b,C)=>{j(S,b,C)}};p.push(S),u++,m=setTimeout(k,t.rotate),a(A,e,S.callback)}return setTimeout(k),y}function bc(t){let e={...Eb,...t},a=[];function r(){a=a.filter(o=>o().status==="pending")}function n(o,l,d){let u=Tb(e,o,l,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(o){return a.find(l=>o(l))||null}return{query:n,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:r}}function gl(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 oi=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],xl=[];li.length>0;)li.length===1||Math.random()>.5?xl.push(li.shift()):xl.push(li.pop());oi[""]=gl({resources:["https://api.iconify.design"].concat(xl)});function yc(t,e){let a=gl(e);return a===null?!1:(oi[t]=a,!0)}function si(t){return oi[t]}function _b(){return Object.keys(oi)}function wc(){}var vl=Object.create(null);function Rb(t){if(!vl[t]){let e=si(t);if(!e)return;vl[t]={config:e,redundancy:bc(e)}}return vl[t]}function Dc(t,e,a){let r,n;if(typeof t=="string"){let i=fl(t);if(!i)return a(void 0,424),wc;n=i.send;let o=Rb(t);o&&(r=o.redundancy)}else{let i=gl(t);if(i){r=bc(i);let o=fl(t.resources?t.resources[0]:"");o&&(n=o.send)}}return!r||!n?(a(void 0,424),wc):r.query(e,n,a)().abort}function jc(){}function Ib(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,kb(t)}))}function Pb(t){let e=[],a=[];return t.forEach(r=>{(r.match(sc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(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(!mc(t,a).length){r();return}}catch(n){console.error(n)}r(),Ib(t)}function Cc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Mb(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)){Cc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Cc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:o,invalid:l}=Pb(n);if(l.length&&rn(t,l,null),!o.length)return;let d=r.match(sc)?fl(a):null;if(!d){rn(t,o,null);return}d.prepare(a,r,o).forEach(u=>{Dc(a,u,c=>{rn(t,u.icons,c)})})}))}var bl=(t,e)=>{let a=Cb(Nb(t,!0,pc()));if(!a.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(a.loaded,a.missing,a.pending,jc)}),()=>{l=!1}}let r=Object.create(null),n=[],i,o;return a.pending.forEach(l=>{let{provider:d,prefix:u}=l;if(u===o&&d===i)return;i=d,o=u,n.push(da(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(l=>{let{provider:d,prefix:u,name:c}=l,m=da(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(l=>{let d=r[l.provider][l.prefix];d.length&&Mb(l,d)}),e?Ab(e,a,n):jc},Fb=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bl([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function kc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function zb(t,e){if(typeof t=="object")return{data:kc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=kc(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bl([a],()=>e(t,a,an(a)))}}var Sc=!1;try{Sc=navigator.vendor.indexOf("Apple")===0}catch{}function Vb(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Sc||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Ob=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yl(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(Ob);if(r===null||!r.length)return t;let n=[],i=r.shift(),o=Bb.test(i);for(;;){if(o){let l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");o=!o}}function Lb(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 o=t.indexOf(">",i);if(o===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:a,content:t}}function $b(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Hb(t,e,a){let r=Lb(t);return $b(r.defs,e+r.content+a)}var Wb=t=>t==="unset"||t==="undefined"||t==="none";function Ac(t,e){let a={...Xr,...t},r={...ic,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let g=[],y=f.hFlip,w=f.vFlip,D=f.rotate;y?w?D+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):w&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.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,g.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,g.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)),g.length&&(i=Hb(i,'<g transform="'+g.join(" ")+'">',"</g>"))});let o=r.width,l=r.height,d=n.width,u=n.height,c,m;o===null?(m=l===null?"1em":l==="auto"?u:l,c=yl(m,d/u)):(c=o==="auto"?d:o,m=l===null?yl(c,u/d):l==="auto"?u:l);let p={},h=(f,g)=>{Wb(g)||(p[f]=g.toString())};h("width",c),h("height",m);let x=[n.left,n.top,d,u];return p.viewBox=x.join(" "),{attributes:p,viewBox:x,body:i}}function wl(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 Ub(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Zb(t){return"data:image/svg+xml,"+Ub(t)}function Nc(t){return'url("'+Zb(t)+'")'}var di=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Yb(t){di=t}function Kb(){return di}function qb(t,e){let a=si(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(o=>{n=Math.max(n,o.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function Gb(t){return t===404}var Qb=(t,e,a)=>{let r=[],n=qb(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},l=0;return a.forEach((d,u)=>{l+=d.length+1,l>=n&&u>0&&(r.push(o),o={type:i,provider:t,prefix:e,icons:[]},l=d.length),o.icons.push(d)}),r.push(o),r};function Jb(t){if(typeof t=="string"){let e=si(t);if(e)return e.path}return"/"}var Xb={prepare:Qb,send:(t,e,a)=>{if(!di){a("abort",424);return}let r=Jb(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),l=new URLSearchParams({icons:o});r+=i+".json?"+l.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 o=i.status;if(o!==200){setTimeout(()=>{a(Gb(o)?"abort":"next",o)});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 ey(t,e,a){da(a||"",e).loadIcons=t}function ty(t,e,a){da(a||"",e).loadIcon=t}var Dl="data-style",Ec="";function ay(t){Ec=t}function Tc(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Dl));a||(a=document.createElement("style"),a.setAttribute(Dl,Dl),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Ec}function _c(){vc("",Xb),pc(!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"||!fc(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;yc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:gc,iconExists:gc,getIcon:jb,listIcons:Db,addIcon:hc,addCollection:fc,calculateSize:yl,buildIcon:Ac,iconToHTML:wl,svgToURL:Nc,loadIcons:bl,loadIcon:Fb,addAPIProvider:yc,setCustomIconLoader:ty,setCustomIconsLoader:ey,appendCustomStyle:ay,_api:{getAPIConfig:si,setAPIModule:vc,sendAPIQuery:Dc,setFetch:Yb,getFetch:Kb,listAPIProviders:_b}}}var jl={"background-color":"currentColor"},Rc={"background-color":"transparent"},Ic={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pc={"-webkit-mask":jl,mask:jl,background:Rc};for(let t in Pc){let e=Pc[t];for(let a in Ic)e[t+"-"+a]=Ic[a]}function Mc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function ry(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,o=Nc(wl(n,{...i,width:e.width+"",height:e.height+""})),l=r.style,d={"--svg":o,width:Mc(i.width),height:Mc(i.height),...a?jl:Rc};for(let u in d)l.setProperty(u,d[u]);return r}var nn;function ny(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function iy(t){return nn===void 0&&ny(),nn?nn.createHTML(t):t}function oy(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=iy(wl(t.body,a)),e.firstChild}function Cl(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function Fc(t,e){let a=e.icon.data,r=e.customisations,n=Ac(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=oy(n):o=ry(n,{...Xr,...a},i==="mask");let l=Cl(t);l?o.tagName==="SPAN"&&l.tagName===o.tagName?l.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,l):t.appendChild(o)}function zc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function ly(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();K(this,"_shadowRoot");K(this,"_initialised",!1);K(this,"_state");K(this,"_checkQueued",!1);K(this,"_connected",!1);K(this,"_observer",null);K(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Tc(d,u),this._state=zc({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,Tc(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{}Fc(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"),m=lc(this);(d.attrMode!==c||fb(d.customisations,m)||!Cl(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=zb(d,(c,m,p)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let x={value:c,name:m,data:p};x.data?this._gotIconData(x):h.icon=x});u.data?this._gotIconData(u):this._state=zc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=Cl(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,lc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Vb(d.data.body,c),p=this._state.inline;Fc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:p,customisations:u,attrMode:c,renderedMode:m})}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(l=>{l in i.prototype||Object.defineProperty(i.prototype,l,{get:function(){return this.getAttribute(l)},set:function(d){d===null?this.removeAttribute(l):this.setAttribute(l,d)}})});let o=_c();for(let l in o)i[l]=i.prototype[l]=o[l];return e.define(t,i),i}var{enableCache:XR,disableCache:e6,iconLoaded:t6,iconExists:a6,getIcon:r6,listIcons:n6,addIcon:i6,addCollection:o6,calculateSize:l6,buildIcon:s6,iconToHTML:d6,svgToURL:u6,loadIcons:c6,loadIcon:m6,setCustomIconLoader:p6,setCustomIconsLoader:h6,addAPIProvider:f6,_api:g6}=ly()||_c(),v=xa(dN(),1),s=xa(RE(),1);const sy=()=>((0,ub.c)(1),null);var Vc=Q();const Oc=(0,v.memo)(t=>{let e=(0,Vc.c)(3),{children:a}=t,{theme:r}=Yr(),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,v.useLayoutEffect)(n,i),a});Oc.displayName="ThemeProvider";const dy=t=>{let e=(0,Vc.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},ui=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:v.lazy(()=>a())}};var uy=Q();const cy=()=>{let t=(0,uy.c)(25),[e,a]=Ln(rE);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 o=i,l=my,d;t[4]===o?d=t[5]:(d=D=>!D&&o(),t[4]=o,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(iR,{children:[(0,s.jsxs)(lR,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(CN,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(nR,{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 m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(qT,{className:"h-3 w-3"}),t[8]=m):m=t[8];let p;t[9]===n?p=t[10]:(p=(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:[m,"Copy"]})]}),t[9]=n,t[10]=p);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 x;t[13]!==p||t[14]!==h?(x=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[p,h]}),t[13]=p,t[14]=h,t[15]=x):x=t[15];let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(Ce,{variant:"outline",onClick:l,className:"flex items-center gap-2",children:[(0,s.jsx)(e_,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let g;t[17]===o?g=t[18]:(g=(0,s.jsxs)(dR,{children:[f,(0,s.jsx)(sR,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=g);let y;t[19]!==g||t[20]!==x?(y=(0,s.jsxs)(oR,{className:"max-w-2xl",children:[u,x,g]}),t[19]=g,t[20]=x,t[21]=y):y=t[21];let w;return t[22]!==y||t[23]!==d?(w=(0,s.jsx)(uR,{open:!0,onOpenChange:d,children:y}),t[22]=y,t[23]=d,t[24]=w):w=t[24],w};function my(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function py(){return window.ResizeObserver!==void 0}function ci(t){let{ref:e,box:a,onResize:r}=t;(0,v.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(py()){let i=new window.ResizeObserver(o=>{o.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var hy=Hn();function fy(t,e=!0){let[a,r]=(0,v.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,v.useCallback)(()=>r(!1),[])),n}function gy(t,e){let[a,r]=(0,v.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,v.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,hy.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Yt={top:"top",bottom:"top",left:"left",right:"left"},mi={top:"bottom",bottom:"top",left:"right",right:"left"},xy={top:"left",left:"top"},kl={top:"height",left:"width"},Lc={width:"totalWidth",height:"totalHeight"},pi={},rt=typeof document<"u"?window.visualViewport:null;function $c(t){let e=0,a=0,r=0,n=0,i=0,o=0,l={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,l.top=u.scrollTop||t.scrollTop,l.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,o=rt.offsetLeft)}else({width:e,height:a,top:i,left:o}=hr(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,r=e,n=a;return fR()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(l.top=0,l.left=0,i=(rt==null?void 0:rt.pageTop)??0,o=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:l,top:i,left:o}}function vy(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Hc(t,e,a,r,n,i,o){let l=n.scroll[t]??0,d=r[kl[t]],u=r.scroll[Yt[t]]+i,c=d+r.scroll[Yt[t]]-i,m=e-l+o[t]-r[Yt[t]],p=e-l+a+o[t]-r[Yt[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function by(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 Wc(t){if(pi[t])return pi[t];let[e,a]=t.split(" "),r=Yt[e]||"right",n=xy[r];Yt[a]||(a="center");let i=kl[r],o=kl[n];return pi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:o},pi[t]}function Sl(t,e,a,r,n,i,o,l,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:x,crossSize:f}=r,g={};g[h]=t[h]??0,m==="center"?g[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(g[h]+=(t[f]??0)-(a[f]??0)),g[h]+=i;let y=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(g[h]=Iu(g[h],y,w),c===p){let D=l?o[x]:e[Lc[x]];g[mi[p]]=Math.floor(D-t[p]+n)}else g[p]=Math.floor(t[p]+t[x]+n);return g}function yy(t,e,a,r,n,i,o,l){let d=r?a.height:e[Lc.height],u=t.top==null?a.top+(d-(t.bottom??0)-o):a.top+t.top,c=l==="top"?Math.max(0,u+o-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function Uc(t,e,a,r,n,i){let{placement:o,axis:l,size:d}=i;return o===l?Math.max(0,a[l]-t[l]-(t.scroll[l]??0)+e[l]-(r[l]??0)-r[mi[l]]-n):Math.max(0,t[d]+t[l]+t.scroll[l]-e[l]-a[l]-a[d]-(r[l]??0)-r[mi[l]]-n)}function wy(t,e,a,r,n,i,o,l,d,u,c,m,p,h,x,f){let g=Wc(t),{size:y,crossAxis:w,crossSize:D,placement:j,crossPlacement:k}=g,A=Sl(e,l,a,g,c,m,u,p,x,f),S=c,b=Uc(l,u,e,n,i+c,g);if(o&&r[y]>b){let V=Wc(`${mi[j]} ${k}`),L=Sl(e,l,a,V,c,m,u,p,x,f);Uc(l,u,e,n,i+c,V)>b&&(g=V,A=L,S=c)}let C="bottom";g.axis==="top"?g.placement==="top"?C="top":g.placement==="bottom"&&(C="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?C="bottom":g.crossPlacement==="bottom"&&(C="top"));let N=Hc(w,A[w],a[D],l,d,i,u);A[w]+=N;let E=yy(A,l,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),A=Sl(e,l,a,g,S,m,u,p,x,f),N=Hc(w,A[w],a[D],l,d,i,u),A[w]+=N;let _={},P=e[w]-A[w]-n[Yt[w]],T=P+.5*e[D],M=x/2+f,I=Yt[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),z=a[D]-I-x/2-f;_[w]=Iu(Iu(T,e[w]+x/2-(A[w]+n[Yt[w]]),e[w]+e[D]-x/2-(A[w]+n[Yt[w]])),M,z),{placement:j,crossPlacement:k}=g,x?P=_[w]:k==="right"?P+=e[D]:k==="center"&&(P+=e[D]/2);let R=j==="left"||j==="top"?a[y]:0,O={x:j==="top"||j==="bottom"?P:R,y:j==="left"||j==="right"?P:R};return{position:A,maxHeight:E,arrowOffsetLeft:_.left,arrowOffsetTop:_.top,placement:j,triggerAnchorPoint:O}}function Dy(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:o,boundaryElement:l,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?jy(r):document.documentElement,x=h===document.documentElement,f=window.getComputedStyle(h).position,g=!!f&&f!=="static",y=x?hr(a,!1):Zc(a,h,!1);if(!x){let{marginTop:b,marginLeft:C}=window.getComputedStyle(a);y.top+=parseInt(b,10)||0,y.left+=parseInt(C,10)||0}let w=hr(r,!0),D=by(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=vy(n),k=$c(l),A=$c(h),S=l.tagName==="BODY"?hr(h,!1):Zc(h,l,!1);return h.tagName==="HTML"&&l.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),wy(e,y,w,j,D,i,o,k,A,S,d,u,g,c,m,p)}function Al(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 hr(t,e){let{top:a,left:r,width:n,height:i}=Al(t,e),{scrollTop:o,scrollLeft:l,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+o-d,left:r+l-u,width:n,height:i}}function Zc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=Al(t,a);else{n=hr(t,a);let i=hr(e,a),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.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 jy(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 Cy=new WeakMap;function ky(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,v.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=r||Cy.get(e.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function fr(t,e){return t-e*Math.floor(t/e)}var Kc=1721426;function Ya(t,e,a,r){e=on(t,e);let n=e-1,i=-2;return a<=2?i=0:Ca(e)&&(i=-1),Kc-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 on(t,e){return t==="BC"?1-e:e}function hi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Sy={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]},gt=class{fromJulianDay(t){let e=t,a=e-Kc,r=Math.floor(a/146097),n=fr(a,146097),i=Math.floor(n/36524),o=fr(n,36524),l=Math.floor(o/1461),d=fr(o,1461),u=Math.floor(d/365),[c,m]=hi(r*400+i*100+l*4+u+(i!==4&&u!==4?1:0)),p=e-Ya(c,m,1,1),h=2;e<Ya(c,m,3,1)?h=0:Ca(m)&&(h=1);let x=Math.floor(((p+h)*12+373)/367);return new nt(c,m,x,e-Ya(c,m,x,1)+1)}toJulianDay(t){return Ya(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Sy[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"}},Ay={"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 Ny(t,e){return e=Fe(e,t.calendar),t=Ka(t),e=Ka(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function Nl(t,e){return fi(t.calendar,e.calendar)&&Ue(t,e)}function fi(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,gi(e))}var Ey={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function El(t,e,a){let r=t.calendar.toJulianDay(t),n=a?Ey[a]:My(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Gc(t){return ca(Date.now(),t)}function gi(t){return mt(Gc(t))}function Qc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Jc(t,e){return Xc(t)-Xc(e)}function Xc(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var em=null;function xi(){return em??(em=new Intl.DateTimeFormat().resolvedOptions().timeZone),em}function Ka(t){return t.subtract({days:t.day-1})}function vi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Ty(t){return Ka(t.subtract({months:t.month-1}))}function _y(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Ry(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function ln(t,e,a){let r=El(t,e,a);return t.subtract({days:r})}function Iy(t,e,a){return ln(t,e,a).add({days:6})}var tm=new Map,Tl=new Map;function Py(t){if(Intl.Locale){let a=tm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&tm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function My(t){let e=Tl.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Tl.set(t,e),e.firstDay}let a=Py(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&&Ay[a]||0};Tl.set(t,e)}return e.firstDay}function Fy(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((El(Ka(t),e,a)+r)/7)}function _l(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Rl(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function gr(t){return t=Fe(t,new gt),am(on(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function am(t,e,a,r,n,i,o){let l=new Date;return l.setUTCHours(r,n,i,o),l.setUTCFullYear(t,e-1,a),l.getTime()}function Il(t,e){if(e==="UTC")return 0;if(t>0&&e===xi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:o,second:l}=nm(t,e);return am(a,r,n,i,o,l,0)-Math.floor(t/1e3)*1e3}var rm=new Map;function nm(t,e){let a=rm.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"}),rm.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 im=864e5;function zy(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Vy(t,e,n))}function Vy(t,e,a){let r=nm(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 ua(t,e,a="compatible"){let r=Kt(t);if(e==="UTC")return gr(r);if(e===xi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=on(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=gr(r),i=Il(n-im,e),o=Il(n+im,e),l=zy(r,e,n-i,n-o);if(l.length===1)return l[0];if(l.length>1)switch(a){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-o);case"compatible":case"later":return Math.max(n-i,n-o);case"reject":throw RangeError("No such absolute time found")}}function om(t,e,a="compatible"){return new Date(ua(t,e,a))}function ca(t,e){let a=Il(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate(),l=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new vm(n<1?"BC":"AD",n<1?-n+1:n,i,o,e,a,l,d,u,c)}function mt(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function Kt(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 xm(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(fi(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,qa(r),r}function Oy(t,e,a){return t instanceof vm?t.timeZone===e?t:Ly(t,e):ca(ua(t,e,a),e)}function By(t){let e=gr(t)-t.offset;return new Date(e)}function Ly(t,e){return Fe(ca(gr(t)-t.offset,e),t.calendar)}var sn=36e5;function bi(t,e){var l;let a=t.copy(),r="hour"in a?um(a,e):0;Pl(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Ml(a),lm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,$y(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=(l=(i=a.calendar).isInverseEra)==null?void 0:l.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 o=a.calendar.getMonthsInYear(a);return a.month>o&&(a.month=o,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Pl(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Ml(t){for(;t.month<1;)Pl(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Pl(t,1)}function $y(t){for(;t.day<1;)t.month--,Ml(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Ml(t)}function lm(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 qa(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),lm(t)}function Fl(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function sm(t,e){return bi(t,Fl(e))}function zl(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),qa(a),a}function dn(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),dm(a),a}function Hy(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 dm(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 um(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Hy(t)}function cm(t,e){let a=t.copy();return um(a,e),a}function Wy(t,e){return cm(t,Fl(e))}function Vl(t,e,a,r){var o;let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ma(d,a,0,l.length-1,r==null?void 0:r.round),n.era=l[d],qa(n);break}case"year":var i;(o=(i=n.calendar).isInverseEra)!=null&&o.call(i,n)&&(a=-a),n.year=ma(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=ma(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ma(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),qa(n),n}function Ol(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;o=d?12:0,l=d?23:11}n.hour=ma(i,a,o,l,r==null?void 0:r.round);break}case"minute":n.minute=ma(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ma(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ma(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ma(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 mm(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?ua(bi(Kt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):gr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ca(a,t.timeZone),t.calendar)}function Uy(t,e){return mm(t,Fl(e))}function Zy(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let x=t.hour>=12;n=x?12:0,i=x?23:11}let o=Kt(t),l=Fe(dn(o,{hour:n}),new gt),d=[ua(l,t.timeZone,"earlier"),ua(l,t.timeZone,"later")].filter(x=>ca(x,t.timeZone).day===l.day)[0],u=Fe(dn(o,{hour:i}),new gt),c=[ua(u,t.timeZone,"earlier"),ua(u,t.timeZone,"later")].filter(x=>ca(x,t.timeZone).day===u.day).pop(),m=gr(t)-t.offset,p=Math.floor(m/sn),h=m%sn;return m=ma(p,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(ca(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Ol(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ca(ua(Vl(Kt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Yy(t,e,a){let r=Kt(t),n=dn(zl(r,e),e);return n.compare(r)===0?t:Fe(ca(ua(n,t.timeZone,a),t.timeZone),t.calendar)}var Ky=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qy=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,pm=/^([+-]\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(Ky);if(!e)throw pm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(qt(e[1],0,9999),qt(e[2],1,12),1);return a.day=qt(e[3],1,a.calendar.getDaysInMonth(a)),a}function wi(t){let e=t.match(qy);if(!e)throw pm.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 xm(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 hm(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 fm(t){let e=Fe(t,new gt),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 gm(t){return`${fm(t)}T${hm(t)}`}function Gy(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 Qy(t){return`${gm(t)}${Gy(t.offset)}[${t.timeZone}]`}function Bl(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let o=e.getEras();a=o[o.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var Jy=new WeakMap,nt=class Gu{copy(){return this.era?new Gu(this.calendar,this.era,this.year,this.month,this.day):new Gu(this.calendar,this.year,this.month,this.day)}add(e){return bi(this,e)}subtract(e){return sm(this,e)}set(e){return zl(this,e)}cycle(e,a,r){return Vl(this,e,a,r)}toDate(e){return om(this,e)}toString(){return fm(this)}compare(e){return Qc(this,e)}constructor(...e){ol(this,Jy,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,qa(this)}},Xy=new WeakMap,ew=class Yv{copy(){return new Yv(this.hour,this.minute,this.second,this.millisecond)}add(e){return cm(this,e)}subtract(e){return Wy(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Ol(this,e,a,r)}toString(){return hm(this)}compare(e){return Jc(this,e)}constructor(e=0,a=0,r=0,n=0){ol(this,Xy,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,dm(this)}},tw=new WeakMap,xm=class Qu{copy(){return this.era?new Qu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return bi(this,e)}subtract(e){return sm(this,e)}set(e){return zl(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return Vl(this,e,a,r);default:return Ol(this,e,a,r)}}toDate(e,a){return om(this,e,a)}toString(){return gm(this)}compare(e){let a=Qc(this,e);return a===0?Jc(this,Kt(e)):a}constructor(...e){ol(this,tw,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,qa(this)}},aw=new WeakMap,vm=class Ju{copy(){return this.era?new Ju(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ju(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return mm(this,e)}subtract(e){return Uy(this,e)}set(e,a){return Yy(this,e,a)}cycle(e,a,r){return Zy(this,e,a,r)}toDate(){return By(this)}toString(){return Qy(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Oy(e,this.timeZone).toDate().getTime()}constructor(...e){ol(this,aw,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e),l=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,qa(this)}},xr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],rw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Di=[1867,1911,1925,1988,2018],Sa=["meiji","taisho","showa","heisei","reiwa"];function bm(t){let e=xr.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?xr.length-1:e===0?0:e-1}function Ll(t){let e=Di[Sa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var nw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=bm(e);return new nt(this,Sa[a],e.year-Di[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ll(t))}balanceDate(t){let e=Ll(t),a=bm(e);Sa[a]!==t.era&&(t.era=Sa[a],t.year=e.year-Di[a]),this.constrainDate(t)}constrainDate(t){let e=Sa.indexOf(t.era),a=rw[e];if(a!=null){let[r,n,i]=a,o=r-Di[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(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]=xr[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=xr[e],r=xr[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(Ll(t))}getMinimumMonthInYear(t){let e=ym(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=ym(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function ym(t){if(t.year===1)return xr[Sa.indexOf(t.era)]}var wm=-543,iw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=on(e.era,e.year);return new nt(this,a-wm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Dm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Dm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Dm(t){let[e,a]=hi(t.year+wm);return new nt(e,a,t.month,t.day)}var ji=1911;function jm(t){return t.era==="minguo"?t.year+ji:1-t.year+ji}function Cm(t){let e=t-ji;return e>0?["minguo",e]:["before_minguo",1-e]}var ow=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Cm(on(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(km(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Cm(jm(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(km(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ji}constructor(...t){super(...t),this.identifier="roc"}};function km(t){let[e,a]=hi(jm(t));return new nt(e,a,t.month,t.day)}var Sm=1948320,Am=[0,31,62,93,124,155,186,216,246,276,306,336],lw=class{fromJulianDay(t){let e=t-Sm,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-Am[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=Sm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=Am[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||fr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},$l=78,Nm=80,sw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-$l,r=t-Ya(e.era,e.year,1,1),n;r<Nm?(a--,n=Ca(e.year-1)?31:30,r+=n+155+90+10):(n=Ca(e.year)?31:30,r-=Nm);let i,o;if(r<n)i=1,o=r+1;else{let l=r-n;l<155?(i=Math.floor(l/31)+2,o=l%31+1):(l-=155,i=Math.floor(l/30)+7,o=l%30+1)}return new nt(this,a,i,o)}toJulianDay(t){let[e,a]=hi(t.year+$l),r,n;return Ca(a)?(r=31,n=Ya(e,a,3,21)):(r=30,n=Ya(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+$l)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Ci=1948440,Em=1948439,Et=1300,vr=1600,dw=460322;function ki(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Tm(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+ki(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-ki(e,r,n,1)+1)}function _m(t){return(14+11*t)%30<11}var Hl=class{fromJulianDay(t){return Tm(this,Ci,t)}toJulianDay(t){return ki(Ci,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&_m(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return _m(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},uw=class extends Hl{fromJulianDay(t){return Tm(this,Em,t)}toJulianDay(t){return ki(Em,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},cw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Rm,br;function Si(t){return dw+br[t-Et]}function un(t,e){let a=t-Et,r=1<<11-(e-1);return(Rm[a]&r)===0?29:30}function Im(t,e){let a=Si(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Pm(t){return br[t+1-Et]-br[t-Et]}var mw=class extends Hl{fromJulianDay(t){let e=t-Ci,a=Si(Et),r=Si(vr);if(e<a||e>r)return super.fromJulianDay(t);{let n=Et-1,i=1,o=1;for(;o>0;){n++,o=e-Si(n)+1;let l=Pm(n);if(o===l){i=12;break}else if(o<l){let d=un(n,i);for(i=1;o>d;)o-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Im(n,i)+1)}}toJulianDay(t){return t.year<Et||t.year>vr?super.toJulianDay(t):Ci+Im(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>vr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>vr?super.getDaysInYear(t):Pm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Rm||(Rm=new Uint16Array(Uint8Array.from(atob(cw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(vr-Et+1);let t=0;for(let e=Et;e<=vr;e++){br[e-Et]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},Mm=347997,Fm=1080,zm=24*Fm,pw=29,hw=12*Fm+793,fw=pw*zm+hw;function Ga(t){return fr(t*7+1,19)<7}function Ai(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return fr(3*(r+1),7)<3&&(r+=1),r}function gw(t){let e=Ai(t-1),a=Ai(t);return Ai(t+1)-a===356?2:a-e===382?1:0}function cn(t){return Ai(t)+gw(t)}function Vm(t){return cn(t+1)-cn(t)}function xw(t){let e=Vm(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=xw(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ga(t)?30:0:30}var vw=class{fromJulianDay(t){let e=t-Mm,a=e*zm/fw,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let o=1,l=0;for(;l<i;)l+=Ni(r,o),o++;o--,l-=Ni(r,o);let d=i-l;return new nt(this,r,o,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Ni(t.year,a);return e+t.day+Mm}getDaysInMonth(t){return Ni(t.year,t.month)}getMonthsInYear(t){return Ga(t.year)?13:12}getDaysInYear(t){return Vm(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"}},Wl=1723856,Om=1824665,Ul=5500;function Ei(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Zl(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 Lm(t,e){return e%13==0?Bm(t)+5:30}var Yl=class{fromJulianDay(t){let[e,a,r]=Zl(Wl,t),n="AM";return e<=0&&(n="AA",e+=Ul),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Ul),Ei(Wl,e,t.month,t.day)}getDaysInMonth(t){return Lm(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"}},bw=class extends Yl{fromJulianDay(t){let[e,a,r]=Zl(Wl,t);return e+=Ul,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},yw=class extends Yl{fromJulianDay(t){let[e,a,r]=Zl(Om,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ei(Om,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Lm(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 Kl(t){switch(t){case"buddhist":return new iw;case"ethiopic":return new Yl;case"ethioaa":return new bw;case"coptic":return new yw;case"hebrew":return new vw;case"indian":return new sw;case"islamic-civil":return new Hl;case"islamic-tbla":return new uw;case"islamic-umalqura":return new mw;case"japanese":return new nw;case"persian":return new lw;case"roc":return new ow;default:return new gt}}function ww(t){let e=sE({usage:"search",...t}),a=(0,v.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(0,o.length),o)===0),[e]),r=(0,v.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(-o.length),o)===0),[e]),n=(0,v.useCallback)((i,o)=>{if(o.length===0)return!0;i=i.normalize("NFC"),o=o.normalize("NFC");let l=0,d=o.length;for(;l+d<=i.length;l++){let u=i.slice(l,l+d);if(e.compare(o,u)===0)return!0}return!1},[e]);return(0,v.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ze=typeof document<"u"?window.visualViewport:null;function Dw(t){let{direction:e}=Ke(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:o=n,placement:l="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:x=!0,onClose:f,maxHeight:g,arrowBoundaryOffset:y=0}=t,[w,D]=(0,v.useState)(null),j=[h,l,n.current,r.current,i==null?void 0:i.current,o.current,d,u,c,m,p,x,e,g,y,a],k=(0,v.useRef)(Ze==null?void 0:Ze.scale);(0,v.useEffect)(()=>{x&&(k.current=Ze==null?void 0:Ze.scale)},[x]);let A=(0,v.useCallback)(()=>{var _,P;if(h===!1||!x||!n.current||!r.current||!c||(Ze==null?void 0:Ze.scale)!==k.current)return;let C=null;if(o.current&&o.current.contains(document.activeElement)){let T=(_=document.activeElement)==null?void 0:_.getBoundingClientRect(),M=o.current.getBoundingClientRect();C={type:"top",offset:((T==null?void 0:T.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((T==null?void 0:T.bottom)??0)-M.bottom)}let N=n.current;!g&&n.current&&(N.style.top="0px",N.style.bottom="",N.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Dy({placement:Cw(l,e),overlayNode:n.current,targetNode:r.current,scrollNode:o.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:g,arrowSize:a??(i!=null&&i.current?Al(i.current,!0).width:0),arrowBoundaryOffset:y});if(E.position){if(N.style.top="",N.style.bottom="",N.style.left="",N.style.right="",Object.keys(E.position).forEach(T=>N.style[T]=E.position[T]+"px"),N.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&o.current){let T=document.activeElement.getBoundingClientRect(),M=o.current.getBoundingClientRect(),I=T[C.type]-M[C.type];o.current.scrollTop+=I-C.offset}D(E)}},j);wa(A,j),jw(A),ci({ref:n,onResize:A}),ci({ref:r,onResize:A});let S=(0,v.useRef)(!1);wa(()=>{let C,N=()=>{S.current=!0,clearTimeout(C),C=setTimeout(()=>{S.current=!1},500),A()},E=()=>{S.current&&N()};return Ze==null||Ze.addEventListener("resize",N),Ze==null||Ze.addEventListener("scroll",E),()=>{Ze==null||Ze.removeEventListener("resize",N),Ze==null||Ze.removeEventListener("scroll",E)}},[A]);let b=(0,v.useCallback)(()=>{S.current||(f==null||f())},[f,S]);return ky({triggerRef:r,isOpen:x,onClose:f&&b}),{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:A}}function jw(t){wa(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Cw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function kw({children:t}){let e=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(hR.Provider,{value:e},t)}function Sw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Nv(d=>{a&&$m(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),l=Nv(d=>{a&&a(d)});(0,v.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=pR(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&$m(p,e)&&l(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("click",m,!0)}}},[e,r,o,l])}function $m(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 Gt=[];function Aw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=t;(0,v.useEffect)(()=>{if(n&&!Gt.includes(e))return Gt.push(e),()=>{let x=Gt.indexOf(e);x>=0&&Gt.splice(x,1)}},[n,e]);let d=()=>{Gt[Gt.length-1]===e&&a&&a()},u=x=>{(!l||l(x.target))&&Gt[Gt.length-1]===e&&(x.stopPropagation(),x.preventDefault())},c=x=>{(!l||l(x.target))&&(Gt[Gt.length-1]===e&&(x.stopPropagation(),x.preventDefault()),d())},m=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),d())};Sw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Yo({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||uE(x.relatedTarget)||(!l||l(x.relatedTarget))&&(a==null||a())}}),h=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ti=0,Hm;function Nw(t={}){let{isDisabled:e}=t;wa(()=>{if(!e)return Ti++,Ti===1&&(Hm=kv()?Tw():Ew()),()=>{Ti--,Ti===0&&Hm()}},[e])}function Ew(){let t=window.innerWidth-document.documentElement.clientWidth;return Sv(t>0&&("scrollbarGutter"in document.documentElement.style?ql(document.documentElement,"scrollbarGutter","stable"):ql(document.documentElement,"paddingRight",`${t}px`)),ql(document.documentElement,"overflow","hidden"))}function Tw(){let t,e=!1,a=d=>{let u=d.target;t=dE(u)?u:Fo(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 oN=Object.defineProperty;var lN=(Za,sa,pr)=>sa in Za?oN(Za,sa,{enumerable:!0,configurable:!0,writable:!0,value:pr}):Za[sa]=pr;var K=(Za,sa,pr)=>lN(Za,typeof sa!="symbol"?sa+"":sa,pr);import{r as sN,s as xa,t as lu}from"./chunk-LvLJmgfZ.js";import{c as _o,i as Oe,l as Ln,n as Be,s as Ro,u as Io}from"./useEvent-BhXAndur.js";import{t as dN}from"./react-Bj1aDYRI.js";import{$r as su,Br as uN,G as du,Gn as cN,Hr as mN,I as pN,Kr as hN,Ln as fN,On as uu,Pn as h1,Qr as f1,St as cu,Vn as Po,Wn as g1,Wt as gN,Xr as xN,Yn as vN,Zr as bN,ci as yN,ei as wN,ii as x1,kn as v1,mi as b1,ni as mu,oi as DN,pi as jN,qn as CN,qr as kN,rt as SN,si as $n,x as AN,xr as NN,y as y1,__tla as EN}from"./cells-mohhX6EY.js";import{t as Hn}from"./react-dom-CSu739Rf.js";import{A as Or,B as Se,C as Pt,E as TN,F as w1,I as ft,J as _N,N as q,P as B,R as F,S as Br,T as W,U as RN,V as Ia,a as D1,b as be,h as IN,i as j1,j as PN,k as Le,n as C1,r as MN,s as pu,t as hu,v as FN,w as ee,x as k1,z as Pa}from"./zod-H_cgTO0M.js";import{t as Q}from"./compiler-runtime-B3qBwwSJ.js";import{t as zN}from"./get-6uJrSKbw.js";import{t as fu}from"./pick-B_6Qi5aM.js";import{t as Ma}from"./capitalize-CmNnkG9y.js";import{i as VN,n as ON,o as gu,s as BN}from"./useLifecycle-ClI_npeg.js";import{i as LN,r as S1,t as $N}from"./tooltip-DxKBXCGp.js";import{A as HN,B as WN,F as A1,G as UN,H as N1,J as ZN,K as E1,M as YN,O as KN,P as qN,R as T1,T as _1,U as Lr,V as Fa,Y as GN,Z as QN,g as JN,j as XN,k as eE,lt as tE,nt as Wn,ot as R1,q as aE,rt as rE,tt as xu,z as nE,__tla as iE}from"./utilities.esm-BmOYgqmr.js";import{G as Un,J as oE,K as lE,X as Mo,Y as I1,Z as sE,at as P1,et as M1,it as dE,nt as vu,q as uE,rt as Fo,st as zo,tt as Vo}from"./ai-model-dropdown-BxT_WaQh.js";import{a as za,d as ue,f as Va}from"./hotkeys-BHHWjLlp.js";import{t as $r}from"./invariant-CAG_dYON.js";import{A as cE,O as mE,S as pE,g as hE,i as fE,k as gE,l as xE,v as vE,y as bE}from"./utils-YqBXNpsM.js";import{r as bu}from"./constants-B6Cb__3x.js";import{S as yE,_ as F1,a as wE,h as z1,i as V1,r as yu,t as DE,x as O1,y as Ye}from"./config-Q0O7_stz.js";import{a as jE,d as CE,l as kE,o as SE,r as AE,t as NE,u as EE}from"./switch-ByYyI8xL.js";import{t as TE}from"./globals-Dhj3V9Yk.js";import{t as Oo}from"./ErrorBoundary-B9Ifj8Jf.js";import{n as _E,r as kt,t as wu}from"./useEventListener-Cb-RVVEn.js";import{t as RE}from"./jsx-runtime-ZmTK25f3.js";import{n as Oa,t as Ce}from"./button-CZ3Cs4qb.js";import{n as Bo,t as U}from"./cn-BKtXLv3a.js";import{at as IE}from"./dist-DxWb3aMV.js";import{$ as PE,A as ME,C as FE,D as zE,E as Du,F as ju,G as VE,H as OE,K as BE,O as LE,P as Cu,S as $E,T as B1,U as L1,V as $1,W as HE,Y as Zn,b as WE,d as UE,et as ZE,j as H1,l as YE,nt as KE,q as W1,r as qE,t as U1,tt as GE,u as QE,v as JE,w as XE,x as ku,y as eT,__tla as tT}from"./JsonOutput-Dxvq5055.js";import{c as aT,n as Z1,p as rT,r as va,t as nT}from"./once-Bul8mtFs.js";import"./cjs-CH5Rj0g8.js";import"./main-U5Goe76G.js";import"./useNonce-CS26E0hA.js";import{n as iT}from"./requests-B4FYHTZl.js";import{t as St}from"./createLucideIcon-BCdY6lG5.js";import{A as oT,C as Y1,D as lT,O as sT,S as dT,_ as uT,a as K1,b as cT,c as q1,d as Yn,f as G1,g as mT,h as pT,i as Su,k as hT,l as fT,m as Q1,n as gT,p as xT,r as ba,s as vT,t as bT,u as ra,v as yT,y as wT}from"./spec-Ch0xnJY4.js";import{F as DT,I as jT,N as CT,P as kT,R as ST,S as AT,h as NT,j as ET,n as TT,x as _T}from"./add-cell-with-ai-C3yyBMWk.js";import{t as RT,__tla as IT}from"./LazyAnyLanguageCodeMirror-BTO7DS3k.js";import{t as PT}from"./bot-message-square-B2ThzDUZ.js";import{a as MT,i as FT,n as zT,o as VT,t as J1}from"./useBoolean-Ck_unDZw.js";import{r as OT,t as Hr}from"./x-ZP5cObgf.js";import{i as BT,l as LT,m as Lo}from"./download-BIF7X-oN.js";import{t as $o}from"./chevron-right--18M_6o9.js";import{i as $T,o as HT}from"./maps-D2_Mq1pZ.js";import"./markdown-renderer-CfUQ6yJN.js";import{u as WT}from"./toDate-DETS9bBd.js";import{P as X1,a as Au,c as UT,i as ZT,o as YT,p as ev,r as tv,t as av}from"./dropdown-menu-ldcmQvIV.js";import{t as KT}from"./code-xml-CgN_Yig7.js";import{t as qT}from"./copy-D-8y6iMN.js";import{t as GT}from"./download-Dg7clfkc.js";import{i as QT}from"./file-video-camera-C3wGzBnE.js";import{r as JT,t as XT}from"./types-xRAkrb06.js";import{n as e_,r as t_,t as a_}from"./square-CuJ72M8f.js";import{n as Ho,t as Kn}from"./spinner-DA8-7wQv.js";import{i as r_,r as rv,t as Nu}from"./readonly-python-code-DrFjR0sJ.js";import{n as n_,t as Wo}from"./types-C1UhS3qM.js";import{t as nv}from"./plus-B7DF33lD.js";import{t as i_}from"./refresh-cw-Dx8TEWFP.js";import{$ as iv,A as Eu,C as o_,D as l_,E as Tu,G as s_,H as d_,J as Wr,K as Uo,L as _u,M as Zo,N as ov,O as lv,P as Yo,Q as ya,R as u_,T as Ko,U as c_,W as Ba,X as La,Y as $a,Z as sv,_ as qo,at as Ur,b as m_,c as p_,ct as st,d as dv,et as uv,g as Zr,h as qn,i as h_,it as f_,k as Ru,l as g_,lt as x_,m as Go,n as v_,nt as Iu,o as Pu,ot as b_,p as cv,q as mv,r as Mu,rt as lr,s as y_,st as Qo,t as Fu,tt as Jo,u as Xo,v as zu,w as w_}from"./input-DUrq2DiR.js";import{t as D_}from"./settings-OBbrbhij.js";import{t as el}from"./square-function-B6mgCeFJ.js";import{_ as Qe,a as dt,c as at,d as sr,f as j_,g as pv,h as C_,i as k_,l as it,n as S_,o as Gn,p as hv,r as A_,t as N_,u as ct,v as na}from"./textarea-Dlgj0GkA.js";import{a as E_,d as T_,i as __,l as R_,o as fv,r as I_,s as P_,t as M_,u as F_}from"./column-preview-D2vnrZTa.js";import{t as gv}from"./trash-2-DDsWrxuJ.js";import{t as tl}from"./triangle-alert-CebQ7XwA.js";import{i as xv,r as z_,t as V_}from"./es-BYgU_srD.js";import{t as bt}from"./preload-helper-D2MJg03u.js";import"./dist-MyTWYTLd.js";import"./dist-LUpffRIq.js";import"./dist-PzrizfuL.js";import"./dist-BNkRH34W.js";import"./dist-maX8rbyb.js";import{n as O_,t as Wt}from"./use-toast-BDYuj3zG.js";import{n as vv,t as B_}from"./paths-BzSgteR-.js";import{l as L_,r as $_,s as H_}from"./session-BOFn9QrD.js";import{r as Yr}from"./useTheme-DQozhcp1.js";import{C as al,E as Vu,S as rl,_ as We,d as W_,f as bv,g as Ut,h as U_,l as Z_,m as Y_,p as K_,u as q_,v as Ou,w as Ne,x as Qn}from"./Combination-BAEdC-rz.js";import{a as G_,c as Ha,d as Q_,f as J_,i as Mt,l as Bu,m as yv,n as Wa,o as nl,p as wv,r as Kr,s as dr,t as Ua}from"./select-BVdzZKAh.js";import{l as X_,r as Dv,t as eR}from"./dist-DwV58Fb1.js";import{a as Lu,i as At,n as $u,o as Hu,r as Wu,s as jv,t as Ft}from"./tooltip-CMQz28hC.js";import{d as il,u as Cv}from"./menu-items-BMjcEb2j.js";import"./dates-CrvjILe3.js";import{a as tR,n as aR,t as rR}from"./mode-Dq1sz4LV.js";import{a as nR,c as iR,i as oR,l as lR,n as sR,s as dR,t as uR}from"./alert-dialog-BW4srmS0.js";import{C as cR,D as mR,E as kv,F as Sv,I as Av,L as qr,N as pR,O as Je,R as Nv,n as hR,s as ol,t as Ev,x as fR,z as wa}from"./usePress-C__vuri5.js";import{t as gR}from"./SSRProvider-BIDQNg9Q.js";import{n as Zt,r as xR,t as ia}from"./useDateFormatter-CqhdUl2n.js";import{n as vR,t as Ke}from"./context-BfYAMNLF.js";import{t as bR}from"./useNumberFormatter-Db6Vjve5.js";import{a as yR,c as oa,i as wR,l as Jn,r as Tv,s as Xn,t as _v,u as la}from"./popover-CH1FzjxU.js";import{i as Gr,r as DR}from"./numbers-D7O23mOZ.js";import{n as jR,t as Rv}from"./useDebounce-7iEVSqwM.js";import{t as CR}from"./ImperativeModal-BNN1HA7x.js";import"./share-ipf2hrOh.js";import{n as Iv,r as Pv,t as kR}from"./errors-TZBmrJmc.js";import"./vega-loader.browser-DXARUlxo.js";import"./defaultLocale-JieDVWC_.js";import"./defaultLocale-BLne0bXb.js";import{t as ll}from"./copy-icon-v8ME_JKB.js";import{t as Me}from"./RenderHTML-Bjuorl1c.js";import"./purify.es-DZrAQFIu.js";import{a as Mv,c as SR,i as Fv,l as AR,n as Uu,o as NR,r as zv,s as ER}from"./multi-map-DxdLNTBd.js";import{n as TR,r as Zu,t as sl}from"./alert-BOoN6gJ1.js";import{n as Qr,t as ur}from"./error-banner-B9ts0mNl.js";import{n as Nt}from"./useAsyncData-BMGLSTg8.js";import{a as _R,c as RR,o as IR,r as PR,s as MR,t as FR}from"./command-D24fhSFi.js";import{__tla as zR}from"./chunk-5FQGJX7Z-DPlx2kjA.js";import"./katex-CDLTCvjQ.js";import"./html-to-image-BeNaGPxI.js";import{a as VR,o as OR}from"./focus-BV1s_tyC.js";import{a as Vv,i as Yu,n as Ku,o as Jr,r as cr,t as qu}from"./table-DScsXgJW.js";import{t as Ov}from"./renderShortcut-BckyRbYt.js";import{t as ei}from"./label-E64zk6_7.js";import{t as BR}from"./chat-display-RFZ0N40A.js";import"./esm-BqiVbELQ.js";import{n as LR}from"./icons-CCHmxi8d.js";import{t as $R}from"./bundle.esm-i_UbZC0w.js";import{a as Bv,c as HR,d as Lv,f as dl,i as WR,l as UR,n as $v,o as ZR,p as Da,r as YR,s as Hv,t as KR,u as le}from"./form-CYTrktu4.js";import"./react-resizable-panels.browser.esm-Da3ksQXL.js";import{t as mr}from"./useDeepCompareMemoize-5OUgerQ3.js";import{a as qR,i as Wv,n as Uv,t as Zv}from"./field-CySaBlkz.js";import{i as GR,n as QR,r as JR}from"./floating-outline-Dy87afxH.js";Promise.all([(()=>{try{return EN}catch{}})(),(()=>{try{return iE}catch{}})(),(()=>{try{return tT}catch{}})(),(()=>{try{return IT}catch{}})(),(()=>{try{return zR}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 Za=St("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"}]]),sa=St("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=St("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"}]]),Kv=St("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"}]]),qv=St("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"}]]),Gv=St("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"}]]),Qv=St("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"}]]),Jv=St("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"}]]),Xv=St("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"}]]),eb=St("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"}]]),ec=St("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"}]]),tb=St("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"}]]),tc=St("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"}]]),ab=xa(b1(),1);const ja={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function rb(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 o=[],l=r,d=n;for(;l>0||d>0;)l>0&&d>0&&a(t[l-1],e[d-1])?(o.unshift({type:ja.MATCH,position:l-1}),l--,d--):l>0&&d>0&&i[l][d]===i[l-1][d-1]+1?(o.unshift({type:ja.SUBSTITUTE,position:l-1}),l--,d--):l>0&&i[l][d]===i[l-1][d]+1?(o.unshift({type:ja.DELETE,position:l-1}),l--):d>0&&i[l][d]===i[l][d-1]+1&&(o.unshift({type:ja.INSERT,position:l}),d--);return{distance:i[r][n],operations:o}}function nb(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 ib(t,e,a,r){let n=rb(t,e,a);return{merged:nb(t,n.operations,r),edits:n}}var ti=0,ai="";function cl(t){return t.id?t.id:t.name==="setup"?DN:mu.create()}function ob(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let l=(e==null?void 0:e.cells.map(d=>cl(d)))||[];return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,null])),notebookCellData:new Map(l.map((d,u)=>[d,(e==null?void 0:e.cells[u])||ac()]))}}if(!e){let l=t.cells.map(d=>cl(d));return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(l.map(d=>[d,ac()]))}}let{merged:n,edits:i}=ib(t.cells,e.cells,(l,d)=>{let u=l.code_hash;return u?d.code_hash===u:!1},rc());i.distance>0&&ue.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let l=0;l<e.cells.length;l++){let d=e.cells[l];if(d){let u=cl(d);o.push(u);let c=n[l]||rc();c.id=u,a.set(u,c),r.set(u,d)}else ue.warn("Merged notebook cell is null at index",l)}return{cellIds:o,sessionCellData:a,notebookCellData:r}}function ac(){return{id:mu.create(),name:ai,code:ai,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function rc(){return{id:mu.create(),code_hash:null,console:[],outputs:[]}}function lb(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 sb(t){let e=pN();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?SN(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 db(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=ob(t,e);if(a.length===0)return null;let i={},o={};for(let l of a){let d=r.get(l),u=n.get(l);u&&(i[l]=lb(l,u)),o[l]=sb(d)}return{cellIds:uN.from([a]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var ub=Q(),nc=Object.freeze({left:0,top:0,width:16,height:16}),ri=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),Xr=Object.freeze({...nc,...ri}),ml=Object.freeze({...Xr,body:"",hidden:!1}),cb=Object.freeze({width:null,height:null}),ic=Object.freeze({...cb,...ri});function mb(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 pb=/[\s,]+/;function hb(t,e){e.split(pb).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var oc={...ic,preserveAspectRatio:""};function lc(t){let e={...oc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=mb(a("rotate","")),hb(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function fb(t,e){for(let a in oc)if(t[a]!==e[a])return!0;return!1}var sc=/^[a-z0-9]+(-[a-z0-9]+)*$/,en=(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 l=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:l};return e&&!ni(u)?null:u}let i=n[0],o=i.split("-");if(o.length>1){let l={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!ni(l)?null:l}if(a&&r===""){let l={provider:r,prefix:"",name:i};return e&&!ni(l,a)?null:l}return null},ni=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function gb(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 dc(t,e){let a=gb(t,e);for(let r in ml)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 xb(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(o){if(a[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=r[o]&&r[o].parent,d=l&&i(l);d&&(n[o]=[l].concat(d))}return n[o]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function vb(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function o(l){i=dc(r[l]||n[l],i)}return o(e),a.forEach(o),dc(t,i)}function uc(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=xb(t);for(let n in r){let i=r[n];i&&(e(n,vb(t,n,i)),a.push(n))}return a}var bb={provider:"",aliases:{},not_found:{},...nc};function pl(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function cc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!pl(t,bb))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!pl(i,ml))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],o=i.parent;if(!n||typeof o!="string"||!a[o]&&!r[o]||!pl(i,ml))return null}return e}var ii=Object.create(null);function yb(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function da(t,e){let a=ii[t]||(ii[t]=Object.create(null));return a[e]||(a[e]=yb(t,e))}function mc(t,e){return cc(e)?uc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function wb(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function Db(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=da(r,n);a=a.concat(Object.keys(i.icons).map(o=>(r===""?"":"@"+r+":")+n+":"+o))})}),a}var tn=!1;function pc(t){return typeof t=="boolean"&&(tn=t),tn}function an(t){let e=typeof t=="string"?en(t,!0,tn):t;if(e){let a=da(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function hc(t,e){let a=en(t,!0,tn);if(!a)return!1;let r=da(a.provider,a.prefix);return e?wb(r,a.name,e):(r.missing.add(a.name),!0)}function fc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),tn&&!e&&!t.prefix){let r=!1;return cc(t)&&(t.prefix="",uc(t,(n,i)=>{hc(n,i)&&(r=!0)})),r}let a=t.prefix;return ni({provider:e,prefix:a,name:"a"})?!!mc(da(e,a),t):!1}function gc(t){return!!an(t)}function jb(t){let e=an(t);return e&&{...Xr,...e}}function Cb(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,o=n.prefix,l=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[o]||(d[o]=da(i,o)),c;c=l in u.icons?e.loaded:o===""||u.missing.has(l)?e.missing:e.pending;let m={provider:i,prefix:o,name:l};c.push(m)}),e}function xc(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function kb(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 o=i.icons,l=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])o.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))o.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),o.pending.length!==l&&(a||xc([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var Sb=0;function Ab(t,e,a){let r=Sb++,n=xc.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),n}var hl=Object.create(null);function vc(t,e){hl[t]=e}function fl(t){return hl[t]||hl[""]}function Nb(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?en(n,e,a):n;i&&r.push(i)}),r}var Eb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Tb(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,o;if(t.random){let A=t.resources.slice(0);for(o=[];A.length>1;){let S=Math.floor(Math.random()*A.length);o.push(A[S]),A=A.slice(0,S).concat(A.slice(S+1))}o=o.concat(A)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let l=Date.now(),d="pending",u=0,c,m=null,p=[],h=[];typeof r=="function"&&h.push(r);function x(){m&&(m=(clearTimeout(m),null))}function f(){d==="pending"&&(d="aborted"),x(),p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function g(A,S){S&&(h=[]),typeof A=="function"&&h.push(A)}function y(){return{startTime:l,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:g,abort:f}}function w(){d="failed",h.forEach(A=>{A(void 0,c)})}function D(){p.forEach(A=>{A.status==="pending"&&(A.status="aborted")}),p=[]}function j(A,S,b){let C=S!=="success";switch(p=p.filter(N=>N!==A),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(S==="abort"){c=b,w();return}if(C){c=b,p.length||(o.length?k():w());return}if(x(),D(),!t.random){let N=t.resources.indexOf(A.resource);N!==-1&&N!==t.index&&(t.index=N)}d="completed",h.forEach(N=>{N(b)})}function k(){if(d!=="pending")return;x();let A=o.shift();if(A===void 0){if(p.length){m=setTimeout(()=>{x(),d==="pending"&&(D(),w())},t.timeout);return}w();return}let S={status:"pending",resource:A,callback:(b,C)=>{j(S,b,C)}};p.push(S),u++,m=setTimeout(k,t.rotate),a(A,e,S.callback)}return setTimeout(k),y}function bc(t){let e={...Eb,...t},a=[];function r(){a=a.filter(o=>o().status==="pending")}function n(o,l,d){let u=Tb(e,o,l,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(o){return a.find(l=>o(l))||null}return{query:n,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:r}}function gl(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 oi=Object.create(null),li=["https://api.simplesvg.com","https://api.unisvg.com"],xl=[];li.length>0;)li.length===1||Math.random()>.5?xl.push(li.shift()):xl.push(li.pop());oi[""]=gl({resources:["https://api.iconify.design"].concat(xl)});function yc(t,e){let a=gl(e);return a===null?!1:(oi[t]=a,!0)}function si(t){return oi[t]}function _b(){return Object.keys(oi)}function wc(){}var vl=Object.create(null);function Rb(t){if(!vl[t]){let e=si(t);if(!e)return;vl[t]={config:e,redundancy:bc(e)}}return vl[t]}function Dc(t,e,a){let r,n;if(typeof t=="string"){let i=fl(t);if(!i)return a(void 0,424),wc;n=i.send;let o=Rb(t);o&&(r=o.redundancy)}else{let i=gl(t);if(i){r=bc(i);let o=fl(t.resources?t.resources[0]:"");o&&(n=o.send)}}return!r||!n?(a(void 0,424),wc):r.query(e,n,a)().abort}function jc(){}function Ib(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,kb(t)}))}function Pb(t){let e=[],a=[];return t.forEach(r=>{(r.match(sc)?e:a).push(r)}),{valid:e,invalid:a}}function rn(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(!mc(t,a).length){r();return}}catch(n){console.error(n)}r(),Ib(t)}function Cc(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function Mb(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)){Cc(t.loadIcons(n,r,a),u=>{rn(t,n,u)});return}if(i){n.forEach(u=>{Cc(i(u,r,a),c=>{rn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:o,invalid:l}=Pb(n);if(l.length&&rn(t,l,null),!o.length)return;let d=r.match(sc)?fl(a):null;if(!d){rn(t,o,null);return}d.prepare(a,r,o).forEach(u=>{Dc(a,u,c=>{rn(t,u.icons,c)})})}))}var bl=(t,e)=>{let a=Cb(Nb(t,!0,pc()));if(!a.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(a.loaded,a.missing,a.pending,jc)}),()=>{l=!1}}let r=Object.create(null),n=[],i,o;return a.pending.forEach(l=>{let{provider:d,prefix:u}=l;if(u===o&&d===i)return;i=d,o=u,n.push(da(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(l=>{let{provider:d,prefix:u,name:c}=l,m=da(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(l=>{let d=r[l.provider][l.prefix];d.length&&Mb(l,d)}),e?Ab(e,a,n):jc},Fb=t=>new Promise((e,a)=>{let r=typeof t=="string"?en(t,!0):t;if(!r){a(t);return}bl([r||t],n=>{if(n.length&&r){let i=an(r);if(i){e({...Xr,...i});return}}a(t)})});function kc(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function zb(t,e){if(typeof t=="object")return{data:kc(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=kc(t);if(n)return{data:n,value:t}}let a=en(t,!0,!0);if(!a)return{value:t};let r=an(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:bl([a],()=>e(t,a,an(a)))}}var Sc=!1;try{Sc=navigator.vendor.indexOf("Apple")===0}catch{}function Vb(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Sc||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Ob=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Bb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function yl(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(Ob);if(r===null||!r.length)return t;let n=[],i=r.shift(),o=Bb.test(i);for(;;){if(o){let l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");o=!o}}function Lb(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 o=t.indexOf(">",i);if(o===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:a,content:t}}function $b(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Hb(t,e,a){let r=Lb(t);return $b(r.defs,e+r.content+a)}var Wb=t=>t==="unset"||t==="undefined"||t==="none";function Ac(t,e){let a={...Xr,...t},r={...ic,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let g=[],y=f.hFlip,w=f.vFlip,D=f.rotate;y?w?D+=2:(g.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),g.push("scale(-1 1)"),n.top=n.left=0):w&&(g.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),g.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,g.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:g.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,g.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)),g.length&&(i=Hb(i,'<g transform="'+g.join(" ")+'">',"</g>"))});let o=r.width,l=r.height,d=n.width,u=n.height,c,m;o===null?(m=l===null?"1em":l==="auto"?u:l,c=yl(m,d/u)):(c=o==="auto"?d:o,m=l===null?yl(c,u/d):l==="auto"?u:l);let p={},h=(f,g)=>{Wb(g)||(p[f]=g.toString())};h("width",c),h("height",m);let x=[n.left,n.top,d,u];return p.viewBox=x.join(" "),{attributes:p,viewBox:x,body:i}}function wl(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 Ub(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Zb(t){return"data:image/svg+xml,"+Ub(t)}function Nc(t){return'url("'+Zb(t)+'")'}var di=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Yb(t){di=t}function Kb(){return di}function qb(t,e){let a=si(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(o=>{n=Math.max(n,o.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function Gb(t){return t===404}var Qb=(t,e,a)=>{let r=[],n=qb(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},l=0;return a.forEach((d,u)=>{l+=d.length+1,l>=n&&u>0&&(r.push(o),o={type:i,provider:t,prefix:e,icons:[]},l=d.length),o.icons.push(d)}),r.push(o),r};function Jb(t){if(typeof t=="string"){let e=si(t);if(e)return e.path}return"/"}var Xb={prepare:Qb,send:(t,e,a)=>{if(!di){a("abort",424);return}let r=Jb(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),l=new URLSearchParams({icons:o});r+=i+".json?"+l.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 o=i.status;if(o!==200){setTimeout(()=>{a(Gb(o)?"abort":"next",o)});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 ey(t,e,a){da(a||"",e).loadIcons=t}function ty(t,e,a){da(a||"",e).loadIcon=t}var Dl="data-style",Ec="";function ay(t){Ec=t}function Tc(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(Dl));a||(a=document.createElement("style"),a.setAttribute(Dl,Dl),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+Ec}function _c(){vc("",Xb),pc(!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"||!fc(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;yc(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:gc,iconExists:gc,getIcon:jb,listIcons:Db,addIcon:hc,addCollection:fc,calculateSize:yl,buildIcon:Ac,iconToHTML:wl,svgToURL:Nc,loadIcons:bl,loadIcon:Fb,addAPIProvider:yc,setCustomIconLoader:ty,setCustomIconsLoader:ey,appendCustomStyle:ay,_api:{getAPIConfig:si,setAPIModule:vc,sendAPIQuery:Dc,setFetch:Yb,getFetch:Kb,listAPIProviders:_b}}}var jl={"background-color":"currentColor"},Rc={"background-color":"transparent"},Ic={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Pc={"-webkit-mask":jl,mask:jl,background:Rc};for(let t in Pc){let e=Pc[t];for(let a in Ic)e[t+"-"+a]=Ic[a]}function Mc(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function ry(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,o=Nc(wl(n,{...i,width:e.width+"",height:e.height+""})),l=r.style,d={"--svg":o,width:Mc(i.width),height:Mc(i.height),...a?jl:Rc};for(let u in d)l.setProperty(u,d[u]);return r}var nn;function ny(){try{nn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{nn=null}}function iy(t){return nn===void 0&&ny(),nn?nn.createHTML(t):t}function oy(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=iy(wl(t.body,a)),e.firstChild}function Cl(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function Fc(t,e){let a=e.icon.data,r=e.customisations,n=Ac(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=oy(n):o=ry(n,{...Xr,...a},i==="mask");let l=Cl(t);l?o.tagName==="SPAN"&&l.tagName===o.tagName?l.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,l):t.appendChild(o)}function zc(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function ly(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();K(this,"_shadowRoot");K(this,"_initialised",!1);K(this,"_state");K(this,"_checkQueued",!1);K(this,"_connected",!1);K(this,"_observer",null);K(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");Tc(d,u),this._state=zc({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,Tc(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{}Fc(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"),m=lc(this);(d.attrMode!==c||fb(d.customisations,m)||!Cl(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=zb(d,(c,m,p)=>{let h=this._state;if(h.rendered||this.getAttribute("icon")!==c)return;let x={value:c,name:m,data:p};x.data?this._gotIconData(x):h.icon=x});u.data?this._gotIconData(u):this._state=zc(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=Cl(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,lc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Vb(d.data.body,c),p=this._state.inline;Fc(this._shadowRoot,this._state={rendered:!0,icon:d,inline:p,customisations:u,attrMode:c,renderedMode:m})}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(l=>{l in i.prototype||Object.defineProperty(i.prototype,l,{get:function(){return this.getAttribute(l)},set:function(d){d===null?this.removeAttribute(l):this.setAttribute(l,d)}})});let o=_c();for(let l in o)i[l]=i.prototype[l]=o[l];return e.define(t,i),i}var{enableCache:XR,disableCache:e6,iconLoaded:t6,iconExists:a6,getIcon:r6,listIcons:n6,addIcon:i6,addCollection:o6,calculateSize:l6,buildIcon:s6,iconToHTML:d6,svgToURL:u6,loadIcons:c6,loadIcon:m6,setCustomIconLoader:p6,setCustomIconsLoader:h6,addAPIProvider:f6,_api:g6}=ly()||_c(),v=xa(dN(),1),s=xa(RE(),1);const sy=()=>((0,ub.c)(1),null);var Vc=Q();const Oc=(0,v.memo)(t=>{let e=(0,Vc.c)(3),{children:a}=t,{theme:r}=Yr(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),document.body.dataset.theme=r,()=>{document.body.classList.remove(r,`${r}-theme`),delete document.body.dataset.theme}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,v.useLayoutEffect)(n,i),a});Oc.displayName="ThemeProvider";const dy=t=>{let e=(0,Vc.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},ui=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:v.lazy(()=>a())}};var uy=Q();const cy=()=>{let t=(0,uy.c)(25),[e,a]=Ln(rE);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 o=i,l=my,d;t[4]===o?d=t[5]:(d=D=>!D&&o(),t[4]=o,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(iR,{children:[(0,s.jsxs)(lR,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(CN,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(nR,{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 m;t[8]===Symbol.for("react.memo_cache_sentinel")?(m=(0,s.jsx)(qT,{className:"h-3 w-3"}),t[8]=m):m=t[8];let p;t[9]===n?p=t[10]:(p=(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:[m,"Copy"]})]}),t[9]=n,t[10]=p);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 x;t[13]!==p||t[14]!==h?(x=(0,s.jsxs)("div",{className:"my-4 overflow-hidden",children:[p,h]}),t[13]=p,t[14]=h,t[15]=x):x=t[15];let f;t[16]===Symbol.for("react.memo_cache_sentinel")?(f=(0,s.jsxs)(Ce,{variant:"outline",onClick:l,className:"flex items-center gap-2",children:[(0,s.jsx)(e_,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let g;t[17]===o?g=t[18]:(g=(0,s.jsxs)(dR,{children:[f,(0,s.jsx)(sR,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=g);let y;t[19]!==g||t[20]!==x?(y=(0,s.jsxs)(oR,{className:"max-w-2xl",children:[u,x,g]}),t[19]=g,t[20]=x,t[21]=y):y=t[21];let w;return t[22]!==y||t[23]!==d?(w=(0,s.jsx)(uR,{open:!0,onOpenChange:d,children:y}),t[22]=y,t[23]=d,t[24]=w):w=t[24],w};function my(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function py(){return window.ResizeObserver!==void 0}function ci(t){let{ref:e,box:a,onResize:r}=t;(0,v.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(py()){let i=new window.ResizeObserver(o=>{o.length&&r()});return i.observe(n,{box:a}),()=>{n&&i.unobserve(n)}}else return window.addEventListener("resize",r,!1),()=>{window.removeEventListener("resize",r,!1)}},[r,e,a])}var hy=Hn();function fy(t,e=!0){let[a,r]=(0,v.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,v.useCallback)(()=>r(!1),[])),n}function gy(t,e){let[a,r]=(0,v.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,v.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,hy.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var Yt={top:"top",bottom:"top",left:"left",right:"left"},mi={top:"bottom",bottom:"top",left:"right",right:"left"},xy={top:"left",left:"top"},kl={top:"height",left:"width"},Lc={width:"totalWidth",height:"totalHeight"},pi={},rt=typeof document<"u"?window.visualViewport:null;function $c(t){let e=0,a=0,r=0,n=0,i=0,o=0,l={},d=((rt==null?void 0:rt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(rt==null?void 0:rt.width)??r,a=(rt==null?void 0:rt.height)??n,l.top=u.scrollTop||t.scrollTop,l.left=u.scrollLeft||t.scrollLeft,rt&&(i=rt.offsetTop,o=rt.offsetLeft)}else({width:e,height:a,top:i,left:o}=hr(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,r=e,n=a;return fR()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(l.top=0,l.left=0,i=(rt==null?void 0:rt.pageTop)??0,o=(rt==null?void 0:rt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:l,top:i,left:o}}function vy(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Hc(t,e,a,r,n,i,o){let l=n.scroll[t]??0,d=r[kl[t]],u=r.scroll[Yt[t]]+i,c=d+r.scroll[Yt[t]]-i,m=e-l+o[t]-r[Yt[t]],p=e-l+a+o[t]-r[Yt[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function by(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 Wc(t){if(pi[t])return pi[t];let[e,a]=t.split(" "),r=Yt[e]||"right",n=xy[r];Yt[a]||(a="center");let i=kl[r],o=kl[n];return pi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:o},pi[t]}function Sl(t,e,a,r,n,i,o,l,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:x,crossSize:f}=r,g={};g[h]=t[h]??0,m==="center"?g[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(g[h]+=(t[f]??0)-(a[f]??0)),g[h]+=i;let y=t[h]-a[f]+d+u,w=t[h]+t[f]-d-u;if(g[h]=Iu(g[h],y,w),c===p){let D=l?o[x]:e[Lc[x]];g[mi[p]]=Math.floor(D-t[p]+n)}else g[p]=Math.floor(t[p]+t[x]+n);return g}function yy(t,e,a,r,n,i,o,l){let d=r?a.height:e[Lc.height],u=t.top==null?a.top+(d-(t.bottom??0)-o):a.top+t.top,c=l==="top"?Math.max(0,u+o-(e.top+(e.scroll.top??0))-((n.top??0)+(n.bottom??0)+i)):Math.max(0,e.height+e.top+(e.scroll.top??0)-u-((n.top??0)+(n.bottom??0)+i));return Math.min(e.height-i*2,c)}function Uc(t,e,a,r,n,i){let{placement:o,axis:l,size:d}=i;return o===l?Math.max(0,a[l]-t[l]-(t.scroll[l]??0)+e[l]-(r[l]??0)-r[mi[l]]-n):Math.max(0,t[d]+t[l]+t.scroll[l]-e[l]-a[l]-a[d]-(r[l]??0)-r[mi[l]]-n)}function wy(t,e,a,r,n,i,o,l,d,u,c,m,p,h,x,f){let g=Wc(t),{size:y,crossAxis:w,crossSize:D,placement:j,crossPlacement:k}=g,A=Sl(e,l,a,g,c,m,u,p,x,f),S=c,b=Uc(l,u,e,n,i+c,g);if(o&&r[y]>b){let V=Wc(`${mi[j]} ${k}`),L=Sl(e,l,a,V,c,m,u,p,x,f);Uc(l,u,e,n,i+c,V)>b&&(g=V,A=L,S=c)}let C="bottom";g.axis==="top"?g.placement==="top"?C="top":g.placement==="bottom"&&(C="bottom"):g.crossAxis==="top"&&(g.crossPlacement==="top"?C="bottom":g.crossPlacement==="bottom"&&(C="top"));let N=Hc(w,A[w],a[D],l,d,i,u);A[w]+=N;let E=yy(A,l,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),A=Sl(e,l,a,g,S,m,u,p,x,f),N=Hc(w,A[w],a[D],l,d,i,u),A[w]+=N;let _={},P=e[w]-A[w]-n[Yt[w]],T=P+.5*e[D],M=x/2+f,I=Yt[w]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),z=a[D]-I-x/2-f;_[w]=Iu(Iu(T,e[w]+x/2-(A[w]+n[Yt[w]]),e[w]+e[D]-x/2-(A[w]+n[Yt[w]])),M,z),{placement:j,crossPlacement:k}=g,x?P=_[w]:k==="right"?P+=e[D]:k==="center"&&(P+=e[D]/2);let R=j==="left"||j==="top"?a[y]:0,O={x:j==="top"||j==="bottom"?P:R,y:j==="left"||j==="right"?P:R};return{position:A,maxHeight:E,arrowOffsetLeft:_.left,arrowOffsetTop:_.top,placement:j,triggerAnchorPoint:O}}function Dy(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:o,boundaryElement:l,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?jy(r):document.documentElement,x=h===document.documentElement,f=window.getComputedStyle(h).position,g=!!f&&f!=="static",y=x?hr(a,!1):Zc(a,h,!1);if(!x){let{marginTop:b,marginLeft:C}=window.getComputedStyle(a);y.top+=parseInt(b,10)||0,y.left+=parseInt(C,10)||0}let w=hr(r,!0),D=by(r);w.width+=(D.left??0)+(D.right??0),w.height+=(D.top??0)+(D.bottom??0);let j=vy(n),k=$c(l),A=$c(h),S=l.tagName==="BODY"?hr(h,!1):Zc(h,l,!1);return h.tagName==="HTML"&&l.tagName==="BODY"&&(A.scroll.top=0,A.scroll.left=0),wy(e,y,w,j,D,i,o,k,A,S,d,u,g,c,m,p)}function Al(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 hr(t,e){let{top:a,left:r,width:n,height:i}=Al(t,e),{scrollTop:o,scrollLeft:l,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+o-d,left:r+l-u,width:n,height:i}}function Zc(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=Al(t,a);else{n=hr(t,a);let i=hr(e,a),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.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 jy(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 Cy=new WeakMap;function ky(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,v.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=r||Cy.get(e.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function fr(t,e){return t-e*Math.floor(t/e)}var Kc=1721426;function Ya(t,e,a,r){e=on(t,e);let n=e-1,i=-2;return a<=2?i=0:Ca(e)&&(i=-1),Kc-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 on(t,e){return t==="BC"?1-e:e}function hi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var Sy={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]},gt=class{fromJulianDay(t){let e=t,a=e-Kc,r=Math.floor(a/146097),n=fr(a,146097),i=Math.floor(n/36524),o=fr(n,36524),l=Math.floor(o/1461),d=fr(o,1461),u=Math.floor(d/365),[c,m]=hi(r*400+i*100+l*4+u+(i!==4&&u!==4?1:0)),p=e-Ya(c,m,1,1),h=2;e<Ya(c,m,3,1)?h=0:Ca(m)&&(h=1);let x=Math.floor(((p+h)*12+373)/367);return new nt(c,m,x,e-Ya(c,m,x,1)+1)}toJulianDay(t){return Ya(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return Sy[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"}},Ay={"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 Ny(t,e){return e=Fe(e,t.calendar),t=Ka(t),e=Ka(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function Nl(t,e){return fi(t.calendar,e.calendar)&&Ue(t,e)}function fi(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,gi(e))}var Ey={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function El(t,e,a){let r=t.calendar.toJulianDay(t),n=a?Ey[a]:My(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Gc(t){return ca(Date.now(),t)}function gi(t){return mt(Gc(t))}function Qc(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Jc(t,e){return Xc(t)-Xc(e)}function Xc(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var em=null;function xi(){return em??(em=new Intl.DateTimeFormat().resolvedOptions().timeZone),em}function Ka(t){return t.subtract({days:t.day-1})}function vi(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function Ty(t){return Ka(t.subtract({months:t.month-1}))}function _y(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function Ry(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function ln(t,e,a){let r=El(t,e,a);return t.subtract({days:r})}function Iy(t,e,a){return ln(t,e,a).add({days:6})}var tm=new Map,Tl=new Map;function Py(t){if(Intl.Locale){let a=tm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&tm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function My(t){let e=Tl.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return Tl.set(t,e),e.firstDay}let a=Py(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&&Ay[a]||0};Tl.set(t,e)}return e.firstDay}function Fy(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((El(Ka(t),e,a)+r)/7)}function _l(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function Rl(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function gr(t){return t=Fe(t,new gt),am(on(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function am(t,e,a,r,n,i,o){let l=new Date;return l.setUTCHours(r,n,i,o),l.setUTCFullYear(t,e-1,a),l.getTime()}function Il(t,e){if(e==="UTC")return 0;if(t>0&&e===xi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:o,second:l}=nm(t,e);return am(a,r,n,i,o,l,0)-Math.floor(t/1e3)*1e3}var rm=new Map;function nm(t,e){let a=rm.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"}),rm.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 im=864e5;function zy(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Vy(t,e,n))}function Vy(t,e,a){let r=nm(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 ua(t,e,a="compatible"){let r=Kt(t);if(e==="UTC")return gr(r);if(e===xi()&&a==="compatible"){r=Fe(r,new gt);let d=new Date,u=on(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=gr(r),i=Il(n-im,e),o=Il(n+im,e),l=zy(r,e,n-i,n-o);if(l.length===1)return l[0];if(l.length>1)switch(a){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-o);case"compatible":case"later":return Math.max(n-i,n-o);case"reject":throw RangeError("No such absolute time found")}}function om(t,e,a="compatible"){return new Date(ua(t,e,a))}function ca(t,e){let a=Il(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate(),l=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new vm(n<1?"BC":"AD",n<1?-n+1:n,i,o,e,a,l,d,u,c)}function mt(t){return new nt(t.calendar,t.era,t.year,t.month,t.day)}function Kt(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 xm(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function Fe(t,e){if(fi(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,qa(r),r}function Oy(t,e,a){return t instanceof vm?t.timeZone===e?t:Ly(t,e):ca(ua(t,e,a),e)}function By(t){let e=gr(t)-t.offset;return new Date(e)}function Ly(t,e){return Fe(ca(gr(t)-t.offset,e),t.calendar)}var sn=36e5;function bi(t,e){var l;let a=t.copy(),r="hour"in a?um(a,e):0;Pl(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,Ml(a),lm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,$y(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=(l=(i=a.calendar).isInverseEra)==null?void 0:l.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 o=a.calendar.getMonthsInYear(a);return a.month>o&&(a.month=o,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function Pl(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function Ml(t){for(;t.month<1;)Pl(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,Pl(t,1)}function $y(t){for(;t.day<1;)t.month--,Ml(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,Ml(t)}function lm(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 qa(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),lm(t)}function Fl(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function sm(t,e){return bi(t,Fl(e))}function zl(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),qa(a),a}function dn(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),dm(a),a}function Hy(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 dm(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 um(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Hy(t)}function cm(t,e){let a=t.copy();return um(a,e),a}function Wy(t,e){return cm(t,Fl(e))}function Vl(t,e,a,r){var o;let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=ma(d,a,0,l.length-1,r==null?void 0:r.round),n.era=l[d],qa(n);break}case"year":var i;(o=(i=n.calendar).isInverseEra)!=null&&o.call(i,n)&&(a=-a),n.year=ma(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=ma(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=ma(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),qa(n),n}function Ol(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;o=d?12:0,l=d?23:11}n.hour=ma(i,a,o,l,r==null?void 0:r.round);break}case"minute":n.minute=ma(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=ma(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=ma(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function ma(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 mm(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?ua(bi(Kt(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):gr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,Fe(ca(a,t.timeZone),t.calendar)}function Uy(t,e){return mm(t,Fl(e))}function Zy(t,e,a,r){switch(e){case"hour":{let n=0,i=23;if((r==null?void 0:r.hourCycle)===12){let x=t.hour>=12;n=x?12:0,i=x?23:11}let o=Kt(t),l=Fe(dn(o,{hour:n}),new gt),d=[ua(l,t.timeZone,"earlier"),ua(l,t.timeZone,"later")].filter(x=>ca(x,t.timeZone).day===l.day)[0],u=Fe(dn(o,{hour:i}),new gt),c=[ua(u,t.timeZone,"earlier"),ua(u,t.timeZone,"later")].filter(x=>ca(x,t.timeZone).day===u.day).pop(),m=gr(t)-t.offset,p=Math.floor(m/sn),h=m%sn;return m=ma(p,a,Math.floor(d/sn),Math.floor(c/sn),r==null?void 0:r.round)*sn+h,Fe(ca(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return Ol(t,e,a,r);case"era":case"year":case"month":case"day":return Fe(ca(ua(Vl(Kt(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Yy(t,e,a){let r=Kt(t),n=dn(zl(r,e),e);return n.compare(r)===0?t:Fe(ca(ua(n,t.timeZone,a),t.timeZone),t.calendar)}var Ky=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,qy=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})(?:T(\d{2}))?(?::(\d{2}))?(?::(\d{2}))?(\.\d+)?$/,pm=/^([+-]\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(Ky);if(!e)throw pm.test(t)?Error(`Invalid ISO 8601 date string: ${t}. Use parseAbsolute() instead.`):Error("Invalid ISO 8601 date string: "+t);let a=new nt(qt(e[1],0,9999),qt(e[2],1,12),1);return a.day=qt(e[3],1,a.calendar.getDaysInMonth(a)),a}function wi(t){let e=t.match(qy);if(!e)throw pm.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 xm(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 hm(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 fm(t){let e=Fe(t,new gt),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 gm(t){return`${fm(t)}T${hm(t)}`}function Gy(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 Qy(t){return`${gm(t)}${Gy(t.offset)}[${t.timeZone}]`}function Bl(t){let e=typeof t[0]=="object"?t.shift():new gt,a;if(typeof t[0]=="string")a=t.shift();else{let o=e.getEras();a=o[o.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var Jy=new WeakMap,nt=class Gu{copy(){return this.era?new Gu(this.calendar,this.era,this.year,this.month,this.day):new Gu(this.calendar,this.year,this.month,this.day)}add(e){return bi(this,e)}subtract(e){return sm(this,e)}set(e){return zl(this,e)}cycle(e,a,r){return Vl(this,e,a,r)}toDate(e){return om(this,e)}toString(){return fm(this)}compare(e){return Qc(this,e)}constructor(...e){ol(this,Jy,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,qa(this)}},Xy=new WeakMap,ew=class Yv{copy(){return new Yv(this.hour,this.minute,this.second,this.millisecond)}add(e){return cm(this,e)}subtract(e){return Wy(this,e)}set(e){return dn(this,e)}cycle(e,a,r){return Ol(this,e,a,r)}toString(){return hm(this)}compare(e){return Jc(this,e)}constructor(e=0,a=0,r=0,n=0){ol(this,Xy,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,dm(this)}},tw=new WeakMap,xm=class Qu{copy(){return this.era?new Qu(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Qu(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return bi(this,e)}subtract(e){return sm(this,e)}set(e){return zl(dn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return Vl(this,e,a,r);default:return Ol(this,e,a,r)}}toDate(e,a){return om(this,e,a)}toString(){return gm(this)}compare(e){let a=Qc(this,e);return a===0?Jc(this,Kt(e)):a}constructor(...e){ol(this,tw,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,qa(this)}},aw=new WeakMap,vm=class Ju{copy(){return this.era?new Ju(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Ju(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return mm(this,e)}subtract(e){return Uy(this,e)}set(e,a){return Yy(this,e,a)}cycle(e,a,r){return Zy(this,e,a,r)}toDate(){return By(this)}toString(){return Qy(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Oy(e,this.timeZone).toDate().getTime()}constructor(...e){ol(this,aw,{writable:!0,value:void 0});let[a,r,n,i,o]=Bl(e),l=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,qa(this)}},xr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],rw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Di=[1867,1911,1925,1988,2018],Sa=["meiji","taisho","showa","heisei","reiwa"];function bm(t){let e=xr.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?xr.length-1:e===0?0:e-1}function Ll(t){let e=Di[Sa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new nt(t.year+e,t.month,t.day)}var nw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=bm(e);return new nt(this,Sa[a],e.year-Di[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(Ll(t))}balanceDate(t){let e=Ll(t),a=bm(e);Sa[a]!==t.era&&(t.era=Sa[a],t.year=e.year-Di[a]),this.constrainDate(t)}constrainDate(t){let e=Sa.indexOf(t.era),a=rw[e];if(a!=null){let[r,n,i]=a,o=r-Di[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(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]=xr[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=xr[e],r=xr[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(Ll(t))}getMinimumMonthInYear(t){let e=ym(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=ym(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function ym(t){if(t.year===1)return xr[Sa.indexOf(t.era)]}var wm=-543,iw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=on(e.era,e.year);return new nt(this,a-wm,e.month,e.day)}toJulianDay(t){return super.toJulianDay(Dm(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(Dm(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function Dm(t){let[e,a]=hi(t.year+wm);return new nt(e,a,t.month,t.day)}var ji=1911;function jm(t){return t.era==="minguo"?t.year+ji:1-t.year+ji}function Cm(t){let e=t-ji;return e>0?["minguo",e]:["before_minguo",1-e]}var ow=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=Cm(on(e.era,e.year));return new nt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(km(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=Cm(jm(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(km(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-ji}constructor(...t){super(...t),this.identifier="roc"}};function km(t){let[e,a]=hi(jm(t));return new nt(e,a,t.month,t.day)}var Sm=1948320,Am=[0,31,62,93,124,155,186,216,246,276,306,336],lw=class{fromJulianDay(t){let e=t-Sm,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-Am[n]+1;return new nt(this,a,n+1,i)}toJulianDay(t){let e=Sm-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=Am[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||fr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},$l=78,Nm=80,sw=class extends gt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-$l,r=t-Ya(e.era,e.year,1,1),n;r<Nm?(a--,n=Ca(e.year-1)?31:30,r+=n+155+90+10):(n=Ca(e.year)?31:30,r-=Nm);let i,o;if(r<n)i=1,o=r+1;else{let l=r-n;l<155?(i=Math.floor(l/31)+2,o=l%31+1):(l-=155,i=Math.floor(l/30)+7,o=l%30+1)}return new nt(this,a,i,o)}toJulianDay(t){let[e,a]=hi(t.year+$l),r,n;return Ca(a)?(r=31,n=Ya(e,a,3,21)):(r=30,n=Ya(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+$l)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},Ci=1948440,Em=1948439,Et=1300,vr=1600,dw=460322;function ki(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function Tm(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+ki(e,r,1,1)))/29.5)+1);return new nt(t,r,n,a-ki(e,r,n,1)+1)}function _m(t){return(14+11*t)%30<11}var Hl=class{fromJulianDay(t){return Tm(this,Ci,t)}toJulianDay(t){return ki(Ci,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&_m(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return _m(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},uw=class extends Hl{fromJulianDay(t){return Tm(this,Em,t)}toJulianDay(t){return ki(Em,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},cw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",Rm,br;function Si(t){return dw+br[t-Et]}function un(t,e){let a=t-Et,r=1<<11-(e-1);return(Rm[a]&r)===0?29:30}function Im(t,e){let a=Si(t);for(let r=1;r<e;r++)a+=un(t,r);return a}function Pm(t){return br[t+1-Et]-br[t-Et]}var mw=class extends Hl{fromJulianDay(t){let e=t-Ci,a=Si(Et),r=Si(vr);if(e<a||e>r)return super.fromJulianDay(t);{let n=Et-1,i=1,o=1;for(;o>0;){n++,o=e-Si(n)+1;let l=Pm(n);if(o===l){i=12;break}else if(o<l){let d=un(n,i);for(i=1;o>d;)o-=d,i++,d=un(n,i);break}}return new nt(this,n,i,e-Im(n,i)+1)}}toJulianDay(t){return t.year<Et||t.year>vr?super.toJulianDay(t):Ci+Im(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Et||t.year>vr?super.getDaysInMonth(t):un(t.year,t.month)}getDaysInYear(t){return t.year<Et||t.year>vr?super.getDaysInYear(t):Pm(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",Rm||(Rm=new Uint16Array(Uint8Array.from(atob(cw),t=>t.charCodeAt(0)).buffer)),!br){br=new Uint32Array(vr-Et+1);let t=0;for(let e=Et;e<=vr;e++){br[e-Et]=t;for(let a=1;a<=12;a++)t+=un(e,a)}}}},Mm=347997,Fm=1080,zm=24*Fm,pw=29,hw=12*Fm+793,fw=pw*zm+hw;function Ga(t){return fr(t*7+1,19)<7}function Ai(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return fr(3*(r+1),7)<3&&(r+=1),r}function gw(t){let e=Ai(t-1),a=Ai(t);return Ai(t+1)-a===356?2:a-e===382?1:0}function cn(t){return Ai(t)+gw(t)}function Vm(t){return cn(t+1)-cn(t)}function xw(t){let e=Vm(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=xw(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?Ga(t)?30:0:30}var vw=class{fromJulianDay(t){let e=t-Mm,a=e*zm/fw,r=Math.floor((19*a+234)/235)+1,n=cn(r),i=Math.floor(e-n);for(;i<1;)r--,n=cn(r),i=Math.floor(e-n);let o=1,l=0;for(;l<i;)l+=Ni(r,o),o++;o--,l-=Ni(r,o);let d=i-l;return new nt(this,r,o,d)}toJulianDay(t){let e=cn(t.year);for(let a=1;a<t.month;a++)e+=Ni(t.year,a);return e+t.day+Mm}getDaysInMonth(t){return Ni(t.year,t.month)}getMonthsInYear(t){return Ga(t.year)?13:12}getDaysInYear(t){return Vm(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"}},Wl=1723856,Om=1824665,Ul=5500;function Ei(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Zl(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 Lm(t,e){return e%13==0?Bm(t)+5:30}var Yl=class{fromJulianDay(t){let[e,a,r]=Zl(Wl,t),n="AM";return e<=0&&(n="AA",e+=Ul),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=Ul),Ei(Wl,e,t.month,t.day)}getDaysInMonth(t){return Lm(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"}},bw=class extends Yl{fromJulianDay(t){let[e,a,r]=Zl(Wl,t);return e+=Ul,new nt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},yw=class extends Yl{fromJulianDay(t){let[e,a,r]=Zl(Om,t),n="CE";return e<=0&&(n="BCE",e=1-e),new nt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Ei(Om,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Lm(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 Kl(t){switch(t){case"buddhist":return new iw;case"ethiopic":return new Yl;case"ethioaa":return new bw;case"coptic":return new yw;case"hebrew":return new vw;case"indian":return new sw;case"islamic-civil":return new Hl;case"islamic-tbla":return new uw;case"islamic-umalqura":return new mw;case"japanese":return new nw;case"persian":return new lw;case"roc":return new ow;default:return new gt}}function ww(t){let e=sE({usage:"search",...t}),a=(0,v.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(0,o.length),o)===0),[e]),r=(0,v.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(-o.length),o)===0),[e]),n=(0,v.useCallback)((i,o)=>{if(o.length===0)return!0;i=i.normalize("NFC"),o=o.normalize("NFC");let l=0,d=o.length;for(;l+d<=i.length;l++){let u=i.slice(l,l+d);if(e.compare(o,u)===0)return!0}return!1},[e]);return(0,v.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Ze=typeof document<"u"?window.visualViewport:null;function Dw(t){let{direction:e}=Ke(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:o=n,placement:l="bottom",containerPadding:d=12,shouldFlip:u=!0,boundaryElement:c=typeof document<"u"?document.body:null,offset:m=0,crossOffset:p=0,shouldUpdatePosition:h=!0,isOpen:x=!0,onClose:f,maxHeight:g,arrowBoundaryOffset:y=0}=t,[w,D]=(0,v.useState)(null),j=[h,l,n.current,r.current,i==null?void 0:i.current,o.current,d,u,c,m,p,x,e,g,y,a],k=(0,v.useRef)(Ze==null?void 0:Ze.scale);(0,v.useEffect)(()=>{x&&(k.current=Ze==null?void 0:Ze.scale)},[x]);let A=(0,v.useCallback)(()=>{var _,P;if(h===!1||!x||!n.current||!r.current||!c||(Ze==null?void 0:Ze.scale)!==k.current)return;let C=null;if(o.current&&o.current.contains(document.activeElement)){let T=(_=document.activeElement)==null?void 0:_.getBoundingClientRect(),M=o.current.getBoundingClientRect();C={type:"top",offset:((T==null?void 0:T.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((T==null?void 0:T.bottom)??0)-M.bottom)}let N=n.current;!g&&n.current&&(N.style.top="0px",N.style.bottom="",N.style.maxHeight=(((P=window.visualViewport)==null?void 0:P.height)??window.innerHeight)+"px");let E=Dy({placement:Cw(l,e),overlayNode:n.current,targetNode:r.current,scrollNode:o.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:g,arrowSize:a??(i!=null&&i.current?Al(i.current,!0).width:0),arrowBoundaryOffset:y});if(E.position){if(N.style.top="",N.style.bottom="",N.style.left="",N.style.right="",Object.keys(E.position).forEach(T=>N.style[T]=E.position[T]+"px"),N.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&o.current){let T=document.activeElement.getBoundingClientRect(),M=o.current.getBoundingClientRect(),I=T[C.type]-M[C.type];o.current.scrollTop+=I-C.offset}D(E)}},j);wa(A,j),jw(A),ci({ref:n,onResize:A}),ci({ref:r,onResize:A});let S=(0,v.useRef)(!1);wa(()=>{let C,N=()=>{S.current=!0,clearTimeout(C),C=setTimeout(()=>{S.current=!1},500),A()},E=()=>{S.current&&N()};return Ze==null||Ze.addEventListener("resize",N),Ze==null||Ze.addEventListener("scroll",E),()=>{Ze==null||Ze.removeEventListener("resize",N),Ze==null||Ze.removeEventListener("scroll",E)}},[A]);let b=(0,v.useCallback)(()=>{S.current||(f==null||f())},[f,S]);return ky({triggerRef:r,isOpen:x,onClose:f&&b}),{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:A}}function jw(t){wa(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function Cw(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function kw({children:t}){let e=(0,v.useMemo)(()=>({register:()=>{}}),[]);return v.createElement(hR.Provider,{value:e},t)}function Sw(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,v.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=Nv(d=>{a&&$m(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),l=Nv(d=>{a&&a(d)});(0,v.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=pR(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&$m(p,e)&&l(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("click",m,!0)}}},[e,r,o,l])}function $m(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 Gt=[];function Aw(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=t;(0,v.useEffect)(()=>{if(n&&!Gt.includes(e))return Gt.push(e),()=>{let x=Gt.indexOf(e);x>=0&&Gt.splice(x,1)}},[n,e]);let d=()=>{Gt[Gt.length-1]===e&&a&&a()},u=x=>{(!l||l(x.target))&&Gt[Gt.length-1]===e&&(x.stopPropagation(),x.preventDefault())},c=x=>{(!l||l(x.target))&&(Gt[Gt.length-1]===e&&(x.stopPropagation(),x.preventDefault()),d())},m=x=>{x.key==="Escape"&&!o&&!x.nativeEvent.isComposing&&(x.stopPropagation(),x.preventDefault(),d())};Sw({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Yo({isDisabled:!r,onBlurWithin:x=>{!x.relatedTarget||uE(x.relatedTarget)||(!l||l(x.relatedTarget))&&(a==null||a())}}),h=x=>{x.target===x.currentTarget&&x.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var mn=typeof document<"u"&&window.visualViewport,Ti=0,Hm;function Nw(t={}){let{isDisabled:e}=t;wa(()=>{if(!e)return Ti++,Ti===1&&(Hm=kv()?Tw():Ew()),()=>{Ti--,Ti===0&&Hm()}},[e])}function Ew(){let t=window.innerWidth-document.documentElement.clientWidth;return Sv(t>0&&("scrollbarGutter"in document.documentElement.style?ql(document.documentElement,"scrollbarGutter","stable"):ql(document.documentElement,"paddingRight",`${t}px`)),ql(document.documentElement,"overflow","hidden"))}function Tw(){let t,e=!1,a=d=>{let u=d.target;t=dE(u)?u:Fo(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-D6GKZ4d6.js"></script>
69
+ <script type="module" crossorigin src="./assets/index-DsQBieEL.js"></script>
70
70
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-D2MJg03u.js">
71
71
  <link rel="modulepreload" crossorigin href="./assets/clsx-D8GwTfvk.js">
72
72
  <link rel="modulepreload" crossorigin href="./assets/cn-BKtXLv3a.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/frontend",
3
- "version": "0.19.10-dev16",
3
+ "version": "0.19.10-dev19",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -10,8 +10,10 @@ export const ThemeProvider: React.FC<PropsWithChildren> = memo(
10
10
  const { theme } = useTheme();
11
11
  useLayoutEffect(() => {
12
12
  document.body.classList.add(theme, `${theme}-theme`);
13
+ document.body.dataset.theme = theme;
13
14
  return () => {
14
15
  document.body.classList.remove(theme, `${theme}-theme`);
16
+ delete document.body.dataset.theme;
15
17
  };
16
18
  }, [theme]);
17
19