@gperezmz/bb-plugin-thread-glance 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/app.js CHANGED
@@ -1,51 +1,51 @@
1
- var ky=Object.defineProperty;var S=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Tt=(e,t)=>{for(var n in t)ky(e,n,{get:t[n],enumerable:!0})};var bu,$m=S(()=>{bu=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function W8(e){if(Dm!==e){Dm=e;for(let t of Em)t()}}function vu(){return Dm}function V8(e){return Em.add(e),()=>{Em.delete(e)}}function rs(e){return w_.get(e)}function Nm(e){return z8.add(e),()=>{z8.delete(e)}}function os(e){return x_.get(e)}function Om(e){return j8.add(e),()=>{j8.delete(e)}}var Z8,Dm,Em,w_,z8,x_,j8,zm=S(()=>{"use strict";Z8=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],Dm=null,Em=new Set;w_=new Map,z8=new Set;x_=new Map,j8=new Set});var F8,H8=S(()=>{F8=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var B8,U8=S(()=>{B8=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var G8,K8=S(()=>{G8=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var q8,Y8=S(()=>{q8=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var J8,X8=S(()=>{J8=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Q8,e7=S(()=>{Q8=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var t7,n7=S(()=>{t7=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var r7,o7=S(()=>{r7=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var i7,s7=S(()=>{i7=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var a7,c7=S(()=>{a7=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var u7,l7=S(()=>{u7=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var d7,p7=S(()=>{d7=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var f7,m7=S(()=>{f7=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var h7,g7=S(()=>{h7=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var C7,k7=S(()=>{C7=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var y7,b7=S(()=>{y7=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var v7,w7=S(()=>{v7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var x7,I7=S(()=>{x7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var S7,_7=S(()=>{S7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var P7,L7=S(()=>{P7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var M7,R7=S(()=>{M7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var jm,T7=S(()=>{jm=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A7,$7=S(()=>{A7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var D7,E7=S(()=>{D7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var N7,O7=S(()=>{N7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var z7,j7=S(()=>{z7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Z7,W7=S(()=>{Z7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var V7,F7=S(()=>{V7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var H7,B7=S(()=>{H7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var U7,G7=S(()=>{U7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var K7,q7=S(()=>{K7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var Y7,J7=S(()=>{Y7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var X7,Q7=S(()=>{X7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var e3,t3=S(()=>{e3=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var n3,r3=S(()=>{n3=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var o3,i3=S(()=>{o3=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var s3,a3=S(()=>{s3=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var c3,u3=S(()=>{c3=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var l3,d3=S(()=>{l3=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var p3,f3=S(()=>{p3=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var m3,h3=S(()=>{m3=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var g3,C3=S(()=>{g3=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var k3,y3=S(()=>{k3=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var b3,v3=S(()=>{b3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var w3,x3=S(()=>{w3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var I3,S3=S(()=>{I3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var _3,P3=S(()=>{_3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var L3,M3=S(()=>{L3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var R3,T3=S(()=>{R3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var A3,$3=S(()=>{A3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var D3,E3=S(()=>{D3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var wu,Zm=S(()=>{wu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var N3,O3=S(()=>{N3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var z3,j3=S(()=>{z3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var Z3,W3=S(()=>{Z3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var V3,F3=S(()=>{V3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var H3,B3=S(()=>{H3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var U3,G3=S(()=>{U3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var K3,q3=S(()=>{K3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Y3,J3=S(()=>{Y3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var X3,Q3=S(()=>{X3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var e6,t6=S(()=>{e6=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var n6,r6=S(()=>{n6=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var o6,i6=S(()=>{o6=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var s6,a6=S(()=>{s6=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var c6,u6=S(()=>{c6=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var l6,d6=S(()=>{l6=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var p6,f6=S(()=>{p6=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var m6,h6=S(()=>{m6=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var g6,C6=S(()=>{g6=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var k6,y6=S(()=>{k6=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var b6,v6=S(()=>{b6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var w6,x6=S(()=>{w6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var I6,S6=S(()=>{I6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var _6,P6=S(()=>{_6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var L6,M6=S(()=>{L6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var R6,T6=S(()=>{R6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A6,$6=S(()=>{A6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var D6,E6=S(()=>{D6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var N6,O6=S(()=>{N6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var z6,j6=S(()=>{z6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Z6,W6=S(()=>{Z6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var V6,F6=S(()=>{V6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var H6,B6=S(()=>{H6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var U6,G6=S(()=>{U6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var K6,q6=S(()=>{K6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Y6,J6=S(()=>{Y6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var X6,Q6=S(()=>{X6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var eC,tC=S(()=>{eC=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var nC,rC=S(()=>{nC=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var oC,iC=S(()=>{oC=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var sC,aC=S(()=>{sC=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var cC,uC=S(()=>{cC=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var lC,dC=S(()=>{lC=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var pC,fC=S(()=>{pC=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var mC,hC=S(()=>{mC=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var gC,CC=S(()=>{gC=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var kC,yC=S(()=>{kC=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var bC,vC=S(()=>{bC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var wC,xC=S(()=>{wC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var IC,SC=S(()=>{IC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var _C,PC=S(()=>{_C=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var LC,MC=S(()=>{LC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var RC,TC=S(()=>{RC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var AC,$C=S(()=>{AC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var DC,EC=S(()=>{DC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var NC,OC=S(()=>{NC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var jC={};Tt(jC,{EXTENDED_ICON_MAP:()=>zC});var I_,S_,__,zC,ZC=S(()=>{"use strict";H8();U8();K8();Y8();X8();e7();n7();o7();s7();c7();l7();p7();m7();g7();k7();b7();w7();I7();_7();L7();R7();T7();$7();E7();O7();j7();W7();F7();B7();G7();q7();J7();Q7();t3();r3();i3();a3();u3();d3();f3();h3();C3();y3();v3();x3();S3();$m();P3();M3();T3();$3();E3();Zm();O3();j3();Zm();W3();F3();B3();G3();q3();J3();Q3();t6();r6();i6();a6();u6();d6();f6();h6();C6();y6();v6();x6();S6();P6();M6();T6();$6();E6();O6();j6();W6();F6();B6();G6();q6();J6();Q6();tC();rC();iC();aC();uC();dC();fC();hC();CC();yC();vC();xC();SC();PC();MC();TC();$C();EC();OC();zm();I_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],S_=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],__=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],zC={AiBrain01:F8,AiBrowser:B8,AiContentGenerator01:G8,AlignLeft:m6,AppWindow:jm,ArchiveRestore:_C,ArrowDown:q8,ArrowLeft:Q8,ArrowRight:a7,ArrowReloadHorizontal:i7,ArrowUp:h7,ArrowUpDown:y7,ArrowTurnBackward:u7,ArrowTurnForward:d7,ArrowUpRight:v7,Beaker:bC,BellDot:S7,Browser:jm,Brain:M7,Calendar:A7,CalendarCheckOut02:D7,ChartColumn:N7,ChevronUp:f7,ChevronsDown:J8,ChevronsUp:C7,CircleArrowShrink:z7,Clean:Z7,Clock:V7,ClockArrowUp:U7,ClockArrowDown:H7,Cloud:K7,CloudOff:Y7,Coffee:X7,Columns2:Y3,CornerDownLeft:t7,CornerDownRight:r7,Discord:s3,DiscordLogo:S_,DateTime:o3,Github:Z3,GithubLogo:__,DragDropHorizontal:c3,DragDropVertical:l3,EditFile:p3,ElectricPlugs:m3,Eye:RC,EyeOff:AC,Explore:P7,ExternalLink:n6,FileDiff:z6,File:w3,FileAttachment:b3,FileQuestion:I3,FileText:k3,FolderOpen:bu,FolderEdit:_3,FolderMinus:L3,Fork:A3,GitBranch:R3,GitMerge:D3,GitPullRequest:wu,GitPullRequestArrow:wu,GitPullRequestClosed:N3,GitPullRequestDraft:z3,Globe:H3,GridView:V3,Laptop:U3,Layers:K3,Limitation:e6,ListEnd:o6,ListView:s6,Lock:c6,Mail:l6,MailOpen:p6,Maximize2:g3,Mic:k6,Minus:b6,Minimize2:e3,MoveTo:w6,NewTab:n3,News01:I6,PackageReceive:_6,Palette:I_,PanelBottom:X6,PanelRight:eC,Paperclip:x7,Pause:L6,Pin:R6,PinOff:A6,Play:D6,Plug02:N6,Plus:Z6,Puzzle:V6,Repeat:U6,SecurityCheck:K6,RotateCcw:H6,Rows2:X3,Sent:Y6,SideChat:g6,Smartphone:nC,Sort:oC,SortingAZ02:sC,SortingZA01:pC,SortingOneNine:lC,SortingNineOne:cC,Square:mC,SquareUnlock02:gC,Star:kC,TextWrap:wC,TimeSchedule:IC,UserRound:LC,ZoomIn:DC,ZoomOut:NC};W8(zC)});var Hu=globalThis.__bbPluginRuntime;if(Hu==null||Hu.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var gs=Hu.pluginSdkApp,FP="default"in gs?gs.default:gs,{Markdown:HP,ThreadChat:BP,ThreadTitle:UP,UrlLink:GP,definePluginApp:vh,experimental_BranchPicker:KP,experimental_Diff:qP,experimental_FileLink:YP,experimental_Icon:F,experimental_NewThreadComposer:JP,experimental_PermissionModePicker:XP,experimental_ProviderIcon:Cs,experimental_ProviderModelPicker:QP,experimental_SourceCode:eL,experimental_useAppPanel:tL,experimental_useBranches:nL,experimental_useCheckoutState:rL,experimental_useCodeTheme:oL,experimental_useFixedTabTarget:iL,experimental_useProviders:wh,experimental_useSidebarThreadActions:xh,experimental_useSidebarThreadPullRequest:br,experimental_useSidebarThreadSplit:Ih,experimental_useSidebarThreads:Sh,useBbContext:sL,useBbNavigate:aL,useComposer:cL,useComposerView:uL,useEnvironmentProviders:_h,useRealtime:hn,useRealtimeConnectionState:gn,useRpc:Cn,useSdk:vr,useSettings:lL,useSidebarSplitLayout:Ph,useSidebarThreadDraft:Lh,useSidebarThreadDraftIds:Mh,useSidebarThreadRowStatus:Rh,useSidebarThreadRowStatuses:dL,useSidebarThreadShortcut:Th}=gs;var st={};Tt(st,{Activity:()=>yy,Children:()=>ys,Component:()=>Uu,Fragment:()=>wr,Profiler:()=>by,PureComponent:()=>vy,StrictMode:()=>wy,Suspense:()=>xy,act:()=>Iy,cache:()=>Sy,cacheSignal:()=>_y,captureOwnerStack:()=>Py,cloneElement:()=>xr,createContext:()=>ve,createElement:()=>$o,createRef:()=>Ly,default:()=>Ye,forwardRef:()=>H,isValidElement:()=>Ir,lazy:()=>My,memo:()=>He,startTransition:()=>Ry,unstable_useCacheRefresh:()=>Ty,use:()=>Ay,useActionState:()=>$y,useCallback:()=>E,useContext:()=>we,useDebugValue:()=>Dy,useDeferredValue:()=>Ey,useEffect:()=>N,useEffectEvent:()=>Ny,useId:()=>kn,useImperativeHandle:()=>Oy,useInsertionEffect:()=>zy,useLayoutEffect:()=>it,useMemo:()=>G,useOptimistic:()=>jy,useReducer:()=>Gu,useRef:()=>R,useState:()=>A,useSyncExternalStore:()=>en,useTransition:()=>Zy,version:()=>Wy});var Bu=globalThis.__bbPluginRuntime;if(Bu==null||Bu.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ks=Bu.react,Ye="default"in ks?ks.default:ks,{Activity:yy,Children:ys,Component:Uu,Fragment:wr,Profiler:by,PureComponent:vy,StrictMode:wy,Suspense:xy,act:Iy,cache:Sy,cacheSignal:_y,captureOwnerStack:Py,cloneElement:xr,createContext:ve,createElement:$o,createRef:Ly,forwardRef:H,isValidElement:Ir,lazy:My,memo:He,startTransition:Ry,unstable_useCacheRefresh:Ty,use:Ay,useActionState:$y,useCallback:E,useContext:we,useDebugValue:Dy,useDeferredValue:Ey,useEffect:N,useEffectEvent:Ny,useId:kn,useImperativeHandle:Oy,useInsertionEffect:zy,useLayoutEffect:it,useMemo:G,useOptimistic:jy,useReducer:Gu,useRef:R,useState:A,useSyncExternalStore:en,useTransition:Zy,version:Wy}=ks;var Ku=globalThis.__bbPluginRuntime;if(Ku==null||Ku.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var bs=Ku.reactDom,fL="default"in bs?bs.default:bs,{createPortal:vs,flushSync:mL,preconnect:hL,prefetchDNS:gL,preinit:CL,preinitModule:kL,preload:yL,preloadModule:bL,requestFormReset:vL,unstable_batchedUpdates:Do,useFormState:wL,useFormStatus:xL,version:IL}=bs;var Eo=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Fn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ws(e){return"nodeType"in e}function Je(e){var t,n;return e?Fn(e)?e:ws(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function xs(e){let{Document:t}=Je(e);return e instanceof t}function Sr(e){return Fn(e)?!1:e instanceof Je(e).HTMLElement}function Yu(e){return e instanceof Je(e).SVGElement}function Hn(e){return e?Fn(e)?e.document:ws(e)?xs(e)?e:Sr(e)||Yu(e)?e.ownerDocument:document:document:document}var tn=Eo?it:N;function Is(e){let t=R(e);return tn(()=>{t.current=e}),E(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function $h(){let e=R(null),t=E((r,o)=>{e.current=setInterval(r,o)},[]),n=E(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function _r(e,t){t===void 0&&(t=[e]);let n=R(e);return tn(()=>{n.current!==e&&(n.current=e)},t),n}function Pr(e,t){let n=R();return G(()=>{let r=e(n.current);return n.current=r,r},[...t])}function No(e){let t=Is(e),n=R(null),r=E(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function Ss(e){let t=R();return N(()=>{t.current=e},[e]),t.current}var qu={};function Oo(e,t){return G(()=>{if(t)return t;let n=qu[e]==null?0:qu[e]+1;return qu[e]=n,e+"-"+n},[e,t])}function Dh(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Bn=Dh(1),zo=Dh(-1);function Vy(e){return"clientX"in e&&"clientY"in e}function Ju(e){if(!e)return!1;let{KeyboardEvent:t}=Je(e.target);return t&&e instanceof t}function Fy(e){if(!e)return!1;let{TouchEvent:t}=Je(e.target);return t&&e instanceof t}function _s(e){if(Fy(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Vy(e)?{x:e.clientX,y:e.clientY}:null}var Ah="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Eh(e){return e.matches(Ah)?e:e.querySelector(Ah)}var Hy={display:"none"};function Nh(e){let{id:t,value:n}=e;return Ye.createElement("div",{id:t,style:Hy},n)}function Oh(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ye.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function zh(){let[e,t]=A("");return{announce:E(r=>{r!=null&&t(r)},[]),announcement:e}}var qh=ve(null);function By(e){let t=we(qh);N(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Uy(){let[e]=A(()=>new Set),t=E(r=>(e.add(r),()=>e.delete(r)),[e]);return[E(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var Gy={draggable:`
1
+ var uy=Object.defineProperty;var S=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(r){throw n=[r],r}};var Rt=(e,t)=>{for(var n in t)uy(e,n,{get:t[n],enumerable:!0})};var Cu,Rm=S(()=>{Cu=[["path",{d:"M2 19V7.54902C2 6.10516 2 5.38322 2.24332 4.81647C2.5467 4.10985 3.10985 3.5467 3.81647 3.24332C4.38322 3 5.09805 3 6.54902 3H7.04311C7.64819 3 8.22075 3.27394 8.60041 3.74509L10.4175 6M10.4175 6H16C17.4001 6 18.1002 6 18.635 6.27248C19.1054 6.51217 19.4878 6.89462 19.7275 7.36502C20 7.8998 20 8.59987 20 10V11M10.4175 6H7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.15802 15.5144L3.45643 14.7717C4.19029 12.9449 4.55723 12.0316 5.3224 11.5158C6.08757 11 7.07557 11 9.05157 11H17.1119C19.8004 11 21.1446 11 21.7422 11.8787C22.3397 12.7575 21.8405 14.0002 20.842 16.4856L20.5436 17.2283C19.8097 19.0551 19.4428 19.9684 18.6776 20.4842C17.9124 21 16.9244 21 14.9484 21H6.88812C4.19961 21 2.85535 21 2.25782 20.1213C1.66029 19.2425 2.15953 17.9998 3.15802 15.5144Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});function $8(e){if(Tm!==e){Tm=e;for(let t of $m)t()}}function ku(){return Tm}function A8(e){return $m.add(e),()=>{$m.delete(e)}}function Xi(e){return p_.get(e)}function Am(e){return M8.add(e),()=>{M8.delete(e)}}function Qi(e){return f_.get(e)}function Dm(e){return R8.add(e),()=>{R8.delete(e)}}var T8,Tm,$m,p_,M8,f_,R8,Em=S(()=>{"use strict";T8=["AiBrain01","AiBrowser","AiContentGenerator01","AlignLeft","AppWindow","ArchiveRestore","ArrowDown","ArrowLeft","ArrowRight","ArrowReloadHorizontal","ArrowUp","ArrowUpDown","ArrowTurnBackward","ArrowTurnForward","ArrowUpRight","Beaker","BellDot","Browser","Brain","Calendar","CalendarCheckOut02","ChartColumn","ChevronUp","ChevronsDown","ChevronsUp","CircleArrowShrink","Clean","Clock","ClockArrowUp","ClockArrowDown","Cloud","CloudOff","Coffee","Columns2","CornerDownLeft","CornerDownRight","Discord","DiscordLogo","DateTime","Github","GithubLogo","DragDropHorizontal","DragDropVertical","EditFile","ElectricPlugs","Eye","EyeOff","Explore","ExternalLink","FileDiff","File","FileAttachment","FileQuestion","FileText","FolderOpen","FolderEdit","FolderMinus","Fork","GitBranch","GitMerge","GitPullRequest","GitPullRequestArrow","GitPullRequestClosed","GitPullRequestDraft","Globe","GridView","Laptop","Layers","Limitation","ListEnd","ListView","Lock","Mail","MailOpen","Maximize2","Mic","Minus","Minimize2","MoveTo","NewTab","News01","PackageReceive","Palette","PanelBottom","PanelRight","Paperclip","Pause","Pin","PinOff","Play","Plug02","Plus","Puzzle","Repeat","RotateCcw","Rows2","SecurityCheck","Sent","SideChat","Smartphone","Sort","SortingAZ02","SortingZA01","SortingOneNine","SortingNineOne","Square","SquareUnlock02","Star","TextWrap","TimeSchedule","UserRound","ZoomIn","ZoomOut"],Tm=null,$m=new Set;p_=new Map,M8=new Set;f_=new Map,R8=new Set});var D8,E8=S(()=>{D8=[["path",{d:"M7 4.5C5.34315 4.5 4 5.84315 4 7.5C4 8.06866 4.15822 8.60037 4.43304 9.0535C3.04727 9.31855 2 10.537 2 12C2 13.463 3.04727 14.6814 4.43304 14.9465M7 4.5C7 3.11929 8.11929 2 9.5 2C10.8807 2 12 3.11929 12 4.5V19.5C12 20.8807 10.8807 22 9.5 22C8.11929 22 7 20.8807 7 19.5C5.34315 19.5 4 18.1569 4 16.5C4 15.9313 4.15822 15.3996 4.43304 14.9465M7 4.5C7 5.31791 7.39278 6.04408 8 6.50018M4.43304 14.9465C4.78948 14.3588 5.34207 13.9032 6 13.6707",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19.4999C18.6569 19.4999 20 18.1567 20 16.4999C20 15.9312 19.8418 15.3995 19.567 14.9464C20.9527 14.6813 22 13.4629 22 11.9999C22 10.5369 20.9527 9.31843 19.567 9.05338M17 19.4999C17 20.8806 15.8807 21.9999 14.5 21.9999C13.1193 21.9999 12 20.8806 12 19.4999L12 4.49988C12 3.11917 13.1193 1.99988 14.5 1.99988C15.8807 1.99988 17 3.11917 17 4.49988C18.6569 4.49988 20 5.84302 20 7.49988C20 8.06854 19.8418 8.60024 19.567 9.05338M17 19.4999C17 18.682 16.6072 17.9558 16 17.4997M19.567 9.05338C19.2105 9.64109 18.6579 10.0966 18 10.3292",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var N8,O8=S(()=>{N8=[["path",{d:"M18.4737 15.5215C18.4795 15.4928 18.5205 15.4928 18.5263 15.5215C18.8302 17.0081 19.9919 18.1698 21.4785 18.4737C21.5072 18.4795 21.5072 18.5205 21.4785 18.5263C19.9919 18.8302 18.8302 19.9919 18.5263 21.4785C18.5205 21.5072 18.4795 21.5072 18.4737 21.4785C18.1698 19.9919 17.0081 18.8302 15.5215 18.5263C15.4928 18.5205 15.4928 18.4795 15.5215 18.4737C17.0081 18.1698 18.1698 17.0081 18.4737 15.5215Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 7.5H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.5 20.5H10.5C6.72876 20.5 4.84315 20.5 3.67157 19.3284C2.5 18.1569 2.5 16.2712 2.5 12.5V10.5C2.5 6.72876 2.5 4.84315 3.67157 3.67157C4.84315 2.5 6.72876 2.5 10.5 2.5H12.5C16.2712 2.5 18.1569 2.5 19.3284 3.67157C20.5 4.84315 20.5 6.72876 20.5 10.5V12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var z8,j8=S(()=>{z8=[["path",{d:"M11 21H10C6.22876 21 4.34315 21 3.17157 19.8284C2 18.6569 2 16.7712 2 13V10C2 6.22876 2 4.34315 3.17157 3.17157C4.34315 2 6.22876 2 10 2H12C15.7712 2 17.6569 2 18.8284 3.17157C20 4.34315 20 6.22876 20 10V10.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.4069 14.4036C17.6192 13.8655 18.3808 13.8655 18.5931 14.4036L18.6298 14.4969C19.1482 15.8113 20.1887 16.8518 21.5031 17.3702L21.5964 17.4069C22.1345 17.6192 22.1345 18.3808 21.5964 18.5931L21.5031 18.6298C20.1887 19.1482 19.1482 20.1887 18.6298 21.5031L18.5931 21.5964C18.3808 22.1345 17.6192 22.1345 17.4069 21.5964L17.3702 21.5031C16.8518 20.1887 15.8113 19.1482 14.4969 18.6298L14.4036 18.5931C13.8655 18.3808 13.8655 17.6192 14.4036 17.4069L14.4969 17.3702C15.8113 16.8518 16.8518 15.8113 17.3702 14.4969L17.4069 14.4036Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7 7H15M7 11.5H15M7 16H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Z8,W8=S(()=>{Z8=[["path",{d:"M12 18.502V5.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13.002C18 13.002 13.5811 19.0019 12 19.002C10.4188 19.002 6 13.002 6 13.002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var V8,F8=S(()=>{V8=[["path",{d:"M17.9997 12.5C17.9997 12.5 13.5807 18.5 11.9996 18.5C10.4185 18.5 5.99966 12.5 5.99966 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.9997 5.50005C17.9997 5.50005 13.5807 11.5 11.9996 11.5C10.4185 11.5 5.99966 5.5 5.99966 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var H8,B8=S(()=>{H8=[["path",{d:"M5.5 12.002H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10.9999 18.002C10.9999 18.002 4.99998 13.583 4.99997 12.0019C4.99996 10.4208 11 6.00195 11 6.00195",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var U8,G8=S(()=>{U8=[["path",{d:"M20 3V5.07692C20 7.07786 20 8.07833 19.8547 8.91545C19.0547 13.5235 15.0934 17.1376 10.0426 17.8674C9.12509 18 7.19318 18 5 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 21C6.39316 20.4102 4 18.8403 4 18C4 17.1597 6.39316 15.5898 7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var K8,q8=S(()=>{K8=[["path",{d:"M4 3V5.07692C4 7.07786 4 8.07833 4.14533 8.91545C4.94529 13.5235 8.90656 17.1376 13.9574 17.8674C14.8749 18 16.8068 18 19 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 21C17.6068 20.4102 20 18.8403 20 18C20 17.1597 17.6068 15.5898 17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var Y8,J8=S(()=>{Y8=[["path",{d:"M20.5 5.5H9.5C5.78672 5.5 3 8.18503 3 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3.5 18.5H14.5C18.2133 18.5 21 15.815 21 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18.5 3C18.5 3 21 4.84122 21 5.50002C21 6.15882 18.5 8 18.5 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M5.49998 16C5.49998 16 3.00001 17.8412 3 18.5C2.99999 19.1588 5.5 21 5.5 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var X8,Q8=S(()=>{X8=[["path",{d:"M18.5 12L4.99997 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 18C13 18 19 13.5811 19 12C19 10.4188 13 6 13 6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var e7,t7=S(()=>{e7=[["path",{d:"M11 6H15.5C17.9853 6 20 8.01472 20 10.5C20 12.9853 17.9853 15 15.5 15H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.99998 12C6.99998 12 4.00001 14.2095 4 15C3.99999 15.7906 7 18 7 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var n7,r7=S(()=>{n7=[["path",{d:"M13 6H8.5C6.01472 6 4 8.01472 4 10.5C4 12.9853 6.01472 15 8.5 15H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 12C17 12 20 14.2095 20 15C20 15.7906 17 18 17 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var o7,i7=S(()=>{o7=[["path",{d:"M17.9998 15C17.9998 15 13.5809 9.00001 11.9998 9C10.4187 8.99999 5.99985 15 5.99985 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var s7,a7=S(()=>{s7=[["path",{d:"M12 5.5V19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11C18 11 13.5811 5.00001 12 5C10.4188 4.99999 6 11 6 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var c7,u7=S(()=>{c7=[["path",{d:"M18 11.5C18 11.5 13.5811 5.50001 12 5.5C10.4188 5.49999 6 11.5 6 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 18.5C18 18.5 13.5811 12.5 12 12.5C10.4188 12.5 6 18.5 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var l7,d7=S(()=>{l7=[["path",{d:"M7 4V20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 19L17 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 6.99998C10 6.99998 7.79053 4.00001 6.99998 4C6.20942 3.99999 4 7 4 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M20 17C20 17 17.7905 20 17 20C16.2094 20 14 17 14 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var p7,f7=S(()=>{p7=[["path",{d:"M9 6.65032C9 6.65032 15.9383 6.10759 16.9154 7.08463C17.8924 8.06167 17.3496 15 17.3496 15M16.5 7.5L6.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var m7,h7=S(()=>{m7=[["path",{d:"M19.5 12.0001V13.5001C19.5 17.6422 16.1421 21.0001 12 21.0001C7.85786 21.0001 4.5 17.6422 4.5 13.5001V8C4.5 5.23858 6.73858 3 9.5 3C12.2614 3 14.5 5.23858 14.5 8V13.5C14.5 14.8807 13.3807 16 12 16C10.6193 16 9.5 14.8807 9.5 13.5V9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var g7,C7=S(()=>{g7=[["path",{d:"M19 11V12.7558C19 13.5514 19.3161 14.3145 19.8787 14.8771L20.4819 15.4803C20.8136 15.8121 21 16.262 21 16.7311C21 17.708 20.208 18.5 19.2311 18.5H4.76887C3.79195 18.5 3 17.708 3 16.7311C3 16.262 3.18636 15.8121 3.51809 15.4803L4.12132 14.8771C4.68393 14.3145 5 13.5514 5 12.7558V10C5 6.13401 8.13401 3 12 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 18.5C15.5 20.433 13.933 22 12 22C10.067 22 8.5 20.433 8.5 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 5C21 3.34315 19.6568 2 18 2C16.3431 2 15 3.34315 15 5C15 6.65684 16.3431 8 18 8C19.6568 8 21 6.65684 21 5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var k7,y7=S(()=>{k7=[["path",{d:"M15.5 7H8.5M12.499 11H8.49902",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20 22H6C4.89543 22 4 21.1046 4 20M4 20C4 18.8954 4.89543 18 6 18H20V6C20 4.11438 20 3.17157 19.4142 2.58579C18.8284 2 17.8856 2 16 2H10C7.17157 2 5.75736 2 4.87868 2.87868C4 3.75736 4 5.17157 4 8V20Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M19.5 18C19.5 18 18.5 18.7628 18.5 20C18.5 21.2372 19.5 22 19.5 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var b7,v7=S(()=>{b7=[["path",{d:"M16.998 7.12652C17.3182 7.04393 17.654 7 18 7C20.2091 7 22 8.79086 22 11C22 13.2091 20.2091 15 18 15C17.6451 15 17.3009 14.9538 16.9733 14.867M16.998 7.12652C16.9993 7.08451 17 7.04233 17 7C17 4.79086 15.2091 3 13 3C11.0824 3 9.47994 4.34939 9.09041 6.15043M16.998 7.12652C16.9769 7.80763 16.7854 8.44584 16.4649 9M16.9733 14.867C16.9909 14.7472 17 14.6247 17 14.5C17 13.2905 16.1411 12.2816 15 12.05M16.9733 14.867C16.7957 16.0737 15.756 17 14.5 17H14C11.7909 17 10 18.7909 10 21M9.09041 6.15043C8.74377 6.05243 8.37801 6 8 6C5.79086 6 4 7.79086 4 10C4 10.3886 4.05542 10.7643 4.15878 11.1195M9.09041 6.15043C10.1015 6.43625 10.9498 7.10965 11.4649 8M4.15878 11.1195C2.9114 11.4832 2 12.6352 2 14C2 15.6569 3.34315 17 5 17C6.30622 17 7.41746 16.1652 7.82929 15M4.15878 11.1195C4.24921 11.4303 4.37632 11.7255 4.53513 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.8361 11.7435C11.3257 12.2353 10.453 12.3202 9.70713 11.9008C8.9612 11.4814 8.58031 10.6917 8.73535 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var Nm,w7=S(()=>{Nm=[["path",{d:"M3 12C3 7.75736 3 5.63604 4.31802 4.31802C5.63604 3 7.75736 3 12 3C16.2426 3 18.364 3 19.682 4.31802C21 5.63604 21 7.75736 21 12C21 16.2426 21 18.364 19.682 19.682C18.364 21 16.2426 21 12 21C7.75736 21 5.63604 21 4.31802 19.682C3 18.364 3 16.2426 3 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 9H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var x7,I7=S(()=>{x7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.1258 14H12.0008M12.1258 18H12.0008M7.625 14H7.5M7.625 18H7.5M16.625 14H16.5M12.2508 14C12.2508 14.1381 12.1389 14.25 12.0008 14.25C11.8628 14.25 11.7508 14.1381 11.7508 14C11.7508 13.8619 11.8628 13.75 12.0008 13.75C12.1389 13.75 12.2508 13.8619 12.2508 14ZM12.2508 18C12.2508 18.1381 12.1389 18.25 12.0008 18.25C11.8628 18.25 11.7508 18.1381 11.7508 18C11.7508 17.8619 11.8628 17.75 12.0008 17.75C12.1389 17.75 12.2508 17.8619 12.2508 18ZM7.75 14C7.75 14.1381 7.63807 14.25 7.5 14.25C7.36193 14.25 7.25 14.1381 7.25 14C7.25 13.8619 7.36193 13.75 7.5 13.75C7.63807 13.75 7.75 13.8619 7.75 14ZM7.75 18C7.75 18.1381 7.63807 18.25 7.5 18.25C7.36193 18.25 7.25 18.1381 7.25 18C7.25 17.8619 7.36193 17.75 7.5 17.75C7.63807 17.75 7.75 17.8619 7.75 18ZM16.75 14C16.75 14.1381 16.6381 14.25 16.5 14.25C16.3619 14.25 16.25 14.1381 16.25 14C16.25 13.8619 16.3619 13.75 16.5 13.75C16.6381 13.75 16.75 13.8619 16.75 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var S7,_7=S(()=>{S7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22H13C16.7712 22 18.6569 22 19.8284 20.8284C21 19.6569 21 17.7712 21 14V12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.5 18.5C14.0057 18.0085 16 16.7002 16 16C16 15.2998 14.0057 13.9915 13.5 13.5M15.5 16L9 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var P7,L7=S(()=>{P7=[["path",{d:"M8 9V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 5V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 13V17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var M7,R7=S(()=>{M7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.115 11.1151C11.6324 10.5977 11.5463 8.4 11.5463 8.4M11.115 11.1151C10.5977 11.6324 8.4 11.5462 8.4 11.5462M11.115 11.1151L7.5 7.5M12.8882 12.8882C13.4055 12.3708 15.6032 12.4569 15.6032 12.4569M12.8882 12.8882C12.3709 13.4055 12.457 15.6032 12.457 15.6032M12.8882 12.8882L16.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var T7,$7=S(()=>{T7=[["path",{d:"M21 3L13 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.44573 11.0854C6.96539 12.0368 4.98269 11.8736 3 11.0885C3.50059 17.531 6.50414 20.0089 10.5089 21C10.5089 21 13.5261 18.8664 13.961 13.8074C14.0081 13.2595 14.0317 12.9856 13.9178 12.6769C13.8038 12.3682 13.5802 12.1468 13.1329 11.704C12.3973 10.9757 12.0295 10.6116 11.5929 10.5204C11.1564 10.4293 10.5862 10.648 9.44573 11.0854Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.5 16.4464C4.5 16.4464 7 16.9286 9.5 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8.5 7.25C8.5 7.94036 7.94036 8.5 7.25 8.5C6.55964 8.5 6 7.94036 6 7.25C6 6.55964 6.55964 6 7.25 6C7.94036 6 8.5 6.55964 8.5 7.25Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.125 4H11M11.25 4C11.25 4.13807 11.1381 4.25 11 4.25C10.8619 4.25 10.75 4.13807 10.75 4C10.75 3.86193 10.8619 3.75 11 3.75C11.1381 3.75 11.25 3.86193 11.25 4Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var A7,D7=S(()=>{A7=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var E7,N7=S(()=>{E7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 19C22 19 19.7905 22 19 22C18.2094 22 16 19 16 19M19 21V15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O7,z7=S(()=>{O7=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 18C22 18 19.7905 15 19 15C18.2094 15 16 18 16 18M19 16V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 8V12L14 14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var j7,Z7=S(()=>{j7=[["path",{d:"M17.4776 10.0001C17.485 10 17.4925 10 17.5 10C19.9853 10 22 12.0147 22 14.5C22 16.9853 19.9853 19 17.5 19H7C4.23858 19 2 16.7614 2 14C2 11.4003 3.98398 9.26407 6.52042 9.0227M17.4776 10.0001C17.4924 9.83536 17.5 9.66856 17.5 9.5C17.5 6.46243 15.0376 4 12 4C9.12324 4 6.76233 6.20862 6.52042 9.0227M17.4776 10.0001C17.3753 11.1345 16.9286 12.1696 16.2428 13M6.52042 9.0227C6.67826 9.00768 6.83823 9 7 9C8.12582 9 9.16474 9.37209 10.0005 10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var W7,V7=S(()=>{W7=[["path",{d:"M17.4776 10.5001C17.485 10.5 17.4925 10.5 17.5 10.5C19.9853 10.5 22 12.5147 22 15C22 15.8582 21.7597 16.6604 21.3428 17.3428M17.4776 10.5001C17.4924 10.3354 17.5 10.1686 17.5 10C17.5 6.96243 15.0376 4.5 12 4.5C10.9945 4.5 10.052 4.76982 9.24101 5.24101M17.4776 10.5001C17.4039 11.3178 17.1512 12.0839 16.759 12.759M6.52042 9.5227C3.98398 9.76407 2 11.9003 2 14.5C2 17.2614 4.23858 19.5 7 19.5H17.5C18.0928 19.5 18.6588 19.3854 19.1771 19.1771M6.52042 9.5227C6.67826 9.50768 6.83823 9.5 7 9.5C8.12582 9.5 9.16474 9.87209 10.0005 10.5M6.52042 9.5227C6.59145 8.69641 6.84518 7.92232 7.24101 7.24101",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 2L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var F7,H7=S(()=>{F7=[["path",{d:"M18.2505 10.5H19.6403C21.4918 10.5 22.0421 10.7655 21.9975 12.0838C21.9237 14.2674 20.939 16.8047 17 17.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5.94627 20.6145C2.57185 18.02 2.07468 14.3401 2.00143 10.5001C1.96979 8.8413 2.45126 8.5 4.65919 8.5H15.3408C17.5487 8.5 18.0302 8.8413 17.9986 10.5001C17.9253 14.3401 17.4281 18.02 14.0537 20.6145C13.0934 21.3528 12.2831 21.5 10.9194 21.5H9.08064C7.71686 21.5 6.90658 21.3528 5.94627 20.6145Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.3089 2.5C10.7622 2.83861 10.0012 4 10.0012 5.5M7.53971 4C7.53971 4 7 4.5 7 5.5M14.0012 4C13.7279 4.1693 13.5 5 13.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var B7,U7=S(()=>{B7=[["path",{d:"M13 4L13 7.00002C13 8.88563 13.0001 9.82843 13.5858 10.4142C14.1716 11 15.1144 11 17 11L20 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 20L11 17C11 15.1144 11 14.1715 10.4142 13.5858C9.82843 13 8.88563 13 7.00002 13L4.00006 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var G7,K7=S(()=>{G7=[["path",{d:"M6.3 2.75143C5.26076 2.94471 4.49591 3.28657 3.89124 3.89124C3.28657 4.49591 2.94471 5.26076 2.75143 6.3M17.7 2.75143C18.7392 2.94471 19.5041 3.28657 20.1088 3.89124C20.7134 4.49591 21.0553 5.26076 21.2486 6.3M13.9 2.50495C13.3156 2.5 12.6839 2.5 12 2.5C11.3161 2.5 10.6844 2.5 10.1 2.50495M21.495 10.1C21.5 10.6844 21.5 11.3161 21.5 12C21.5 12.6839 21.5 13.3156 21.495 13.9001M2.50495 10.1C2.5 10.6844 2.5 11.3161 2.5 12C2.5 12.6839 2.5 13.3156 2.50496 13.9001M2.75143 17.7C2.94471 18.7392 3.28657 19.5041 3.89124 20.1088C4.49591 20.7134 5.26076 21.0553 6.3 21.2486M21.2486 17.7C21.0553 18.7392 20.7134 19.5041 20.1088 20.1088C19.5041 20.7134 18.7392 21.0553 17.7 21.2486M13.9 21.495C13.3156 21.5 12.6839 21.5 12 21.5C11.3162 21.5 10.6845 21.5 10.1002 21.495",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var q7,Y7=S(()=>{q7=[["path",{d:"M16 2V6M8 2V6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 12C21 8.22876 21 6.34315 19.8284 5.17157C18.6569 4 16.7712 4 13 4H11C7.22876 4 5.34315 4 4.17157 5.17157C3 6.34315 3 8.22876 3 12V14C3 17.7712 3 19.6569 4.17157 20.8284C5.34315 22 7.22876 22 11 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 10H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18.2671 18.7011L17 18V16.2668M21 18C21 20.2091 19.2091 22 17 22C14.7909 22 13 20.2091 13 18C13 15.7909 14.7909 14 17 14C19.2091 14 21 15.7909 21 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var J7,X7=S(()=>{J7=[["path",{d:"M15.5 17.5C16.5 19 17.3333 19.6667 18 20C19.3333 19.6667 22 18.2 22 15C22 11.8 20.6667 7.33333 20 5.5C18 4.3 15.8333 4 15 4L14.198 5.60393C13.4135 5.28708 12.4058 5.25438 12 5.27763C11.5942 5.25438 10.5865 5.28708 9.80197 5.60393L9 4C8.16667 4 6 4.3 4 5.5C3.33333 7.33333 2 11.8 2 15C2 18.2 4.66667 19.6667 6 20C6.66667 19.6667 7.5 19 8.5 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.3652 11.5C17.3652 12.6046 16.5817 13.5 15.6152 13.5C14.6487 13.5 13.8652 12.6046 13.8652 11.5C13.8652 10.3954 14.6487 9.5 15.6152 9.5C16.5817 9.5 17.3652 10.3954 17.3652 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 11.5C10 12.6046 9.2165 13.5 8.25 13.5C7.2835 13.5 6.5 12.6046 6.5 11.5C6.5 10.3954 7.2835 9.5 8.25 9.5C9.2165 9.5 10 10.3954 10 11.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M17.5 16.5C16.4022 17.3967 14.3502 18 12 18C9.64981 18 7.59785 17.3967 6.5 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var Q7,e3=S(()=>{Q7=[["path",{d:"M6 8C6.55228 8 7 8.44772 7 9C7 9.55228 6.55228 10 6 10C5.44772 10 5 9.55228 5 9C5 8.44772 5.44772 8 6 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6 14C6.55228 14 7 14.4477 7 15C7 15.5523 6.55228 16 6 16C5.44772 16 5 15.5523 5 15C5 14.4477 5.44772 14 6 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C18.5523 8 19 8.44772 19 9C19 9.55228 18.5523 10 18 10C17.4477 10 17 9.55228 17 9C17 8.44772 17.4477 8 18 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12 8C12.5523 8 13 8.44772 13 9C13 9.55228 12.5523 10 12 10C11.4477 10 11 9.55228 11 9C11 8.44772 11.4477 8 12 8Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18 14C18.5523 14 19 14.4477 19 15C19 15.5523 18.5523 16 18 16C17.4477 16 17 15.5523 17 15C17 14.4477 17.4477 14 18 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 14C12.5523 14 13 14.4477 13 15C13 15.5523 12.5523 16 12 16C11.4477 16 11 15.5523 11 15C11 14.4477 11.4477 14 12 14Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var t3,n3=S(()=>{t3=[["path",{d:"M16 6C16 6.55228 15.5523 7 15 7C14.4477 7 14 6.55228 14 6C14 5.44772 14.4477 5 15 5C15.5523 5 16 5.44772 16 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 6C10 6.55228 9.55228 7 9 7C8.44772 7 8 6.55228 8 6C8 5.44772 8.44772 5 9 5C9.55228 5 10 5.44772 10 6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 18C16 18.5523 15.5523 19 15 19C14.4477 19 14 18.5523 14 18C14 17.4477 14.4477 17 15 17C15.5523 17 16 17.4477 16 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M16 12C16 12.5523 15.5523 13 15 13C14.4477 13 14 12.5523 14 12C14 11.4477 14.4477 11 15 11C15.5523 11 16 11.4477 16 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10 18C10 18.5523 9.55228 19 9 19C8.44772 19 8 18.5523 8 18C8 17.4477 8.44772 17 9 17C9.55228 17 10 17.4477 10 18Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M10 12C10 12.5523 9.55228 13 9 13C8.44772 13 8 12.5523 8 12C8 11.4477 8.44772 11 9 11C9.55228 11 10 11.4477 10 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var r3,o3=S(()=>{r3=[["path",{d:"M8.17151 19.8284L19.8284 8.17157C20.3736 7.62632 20.6462 7.3537 20.792 7.0596C21.0693 6.50005 21.0693 5.8431 20.792 5.28354C20.6462 4.98945 20.3736 4.71682 19.8284 4.17157C19.2831 3.62632 19.0105 3.3537 18.7164 3.20796C18.1568 2.93068 17.4999 2.93068 16.9403 3.20796C16.6462 3.3537 16.3736 3.62632 15.8284 4.17157L4.17151 15.8284C3.59345 16.4064 3.30442 16.6955 3.15218 17.063C2.99994 17.4305 2.99994 17.8393 2.99994 18.6568V20.9999H5.34308C6.16059 20.9999 6.56934 20.9999 6.93688 20.8477C7.30442 20.6955 7.59345 20.4064 8.17151 19.8284Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21H18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 5.5L18.5 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var i3,s3=S(()=>{i3=[["path",{d:"M9 2L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 2L15 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 18L12 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M12.6939 8.5L10.6029 10.6749C10.3788 10.9079 10.5394 11.2433 10.9048 11.3053L13.0952 11.6773C13.4848 11.7434 13.6334 12.1147 13.361 12.3413L10.7666 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14.3066 5L9.69342 5C7.5551 5 6.48594 5 5.89527 5.69774C5.3046 6.39548 5.46717 7.46639 5.79232 9.60823L6.31604 13.0581C6.83606 16.4836 8.28588 18 12 18C15.7141 18 17.1639 16.4836 17.684 13.0581L18.2077 9.60823C18.5328 7.46639 18.6954 6.39548 18.1047 5.69774C17.5141 5 16.4449 5 14.3066 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var a3,c3=S(()=>{a3=[["path",{d:"M19 12L19 8.99996C19 7.11435 18.9999 6.17155 18.4142 5.58577C17.8284 4.99999 16.8856 4.99999 15 5L12 5.00001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 12L5.00003 15C5.00004 16.8856 5.00005 17.8284 5.58584 18.4142C6.17163 19 7.11443 19 9.00004 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var u3,l3=S(()=>{u3=[["path",{d:"M8 7L16 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 11L12 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13 21.5V21C13 18.1716 13 16.7574 13.8787 15.8787C14.7574 15 16.1716 15 19 15H19.5M20 13.3431V10C20 6.22876 20 4.34315 18.8284 3.17157C17.6569 2 15.7712 2 12 2C8.22877 2 6.34315 2 5.17157 3.17157C4 4.34314 4 6.22876 4 10L4 14.5442C4 17.7892 4 19.4117 4.88607 20.5107C5.06508 20.7327 5.26731 20.9349 5.48933 21.1139C6.58831 22 8.21082 22 11.4558 22C12.1614 22 12.5141 22 12.8372 21.886C12.9044 21.8623 12.9702 21.835 13.0345 21.8043C13.3436 21.6564 13.593 21.407 14.0919 20.9081L18.8284 16.1716C19.4065 15.5935 19.6955 15.3045 19.8478 14.9369C20 14.5694 20 14.1606 20 13.3431Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var d3,p3=S(()=>{d3=[["path",{d:"M4 12.0004L4 14.5446C4 17.7896 4 19.4121 4.88607 20.5111C5.06508 20.7331 5.26731 20.9354 5.48933 21.1144C6.58831 22.0004 8.21082 22.0004 11.4558 22.0004C12.1614 22.0004 12.5141 22.0004 12.8372 21.8864C12.9044 21.8627 12.9702 21.8354 13.0345 21.8047C13.3436 21.6569 13.593 21.4074 14.0919 20.9085L18.8284 16.172C19.4065 15.5939 19.6955 15.3049 19.8478 14.9374C20 14.5698 20 14.1611 20 13.3436V10.0004C20 6.22919 20 4.34358 18.8284 3.172C17.7693 2.11284 16.1265 2.01122 13.0345 2.00146M13 21.5004V21.0004C13 18.172 13 16.7578 13.8787 15.8791C14.7574 15.0004 16.1716 15.0004 19 15.0004H19.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 8.23028V5.46105C4 3.54929 5.567 1.99951 7.5 1.99951C9.433 1.99951 11 3.54929 11 5.46105V9.26874C11 10.2246 10.2165 10.9995 9.25 10.9995C8.2835 10.9995 7.5 10.2246 7.5 9.26874V5.46105",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var f3,m3=S(()=>{f3=[["path",{d:"M13 2.5V3C13 5.82843 13 7.24264 13.8787 8.12132C14.7574 9 16.1716 9 19 9H19.5M20 10.6569V14C20 17.7712 20 19.6569 18.8284 20.8284C17.6569 22 15.7712 22 12 22C8.22876 22 6.34315 22 5.17157 20.8284C4 19.6569 4 17.7712 4 14V9.45584C4 6.21082 4 4.58831 4.88607 3.48933C5.06508 3.26731 5.26731 3.06508 5.48933 2.88607C6.58831 2 8.21082 2 11.4558 2C12.1614 2 12.5141 2 12.8372 2.11401C12.9044 2.13772 12.9702 2.165 13.0345 2.19575C13.3436 2.34355 13.593 2.593 14.0919 3.09188L18.8284 7.82843C19.4065 8.40649 19.6955 8.69552 19.8478 9.06306C20 9.4306 20 9.83935 20 10.6569Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var h3,g3=S(()=>{h3=[["path",{d:"M3.5 14.5C3.5 13.1193 4.6193 12 6 12C7.3807 12 8.5 13.1193 8.5 14.5C8.5 15.3569 8.06886 16.1131 7.41166 16.5636C6.72833 17.0319 6 17.6716 6 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M6.125 21.75H6M6.25 21.75C6.25 21.8881 6.13807 22 6 22C5.86193 22 5.75 21.8881 5.75 21.75C5.75 21.6119 5.86193 21.5 6 21.5C6.13807 21.5 6.25 21.6119 6.25 21.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.5 2.5V3C13.5 5.82843 13.5 7.24264 14.3787 8.12132C15.2574 9 16.6716 9 19.5 9H20M4.50394 7.98123C4.52397 5.69117 4.64575 4.40752 5.38607 3.48933C5.56507 3.26731 5.76731 3.06508 5.98932 2.88607C7.0883 2 8.71081 2 11.9558 2C12.6614 2 13.0141 2 13.3372 2.11401C13.4044 2.13772 13.4702 2.165 13.5345 2.19575C13.8435 2.34355 14.093 2.593 14.5919 3.09188L19.3284 7.82843C19.9065 8.40649 20.1955 8.69552 20.3478 9.06306C20.5 9.4306 20.5 9.83935 20.5 10.6569V14C20.5 17.7712 20.5 19.6569 19.3284 20.8284C18.1568 22 16.2712 22 12.5 22C11.7645 22 11.1007 22 10.5 21.9913",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var C3,k3=S(()=>{C3=[["path",{d:"M8.00164 7.00013H16.754C18.8613 7.00013 19.9149 7.00013 20.6718 7.50574C20.9995 7.72462 21.2808 8.00588 21.4997 8.33346C21.8937 8.92301 21.9808 9.69265 22 11.0003M12.0027 7.00013L11.3691 5.73321C10.8442 4.68363 10.3645 3.62714 9.20122 3.19101C8.69172 3 8.10969 3 6.94562 3C5.12865 3 4.22017 3 3.53848 3.38033C3.05255 3.65144 2.6516 4.0523 2.38042 4.53811C2 5.21963 2 6.1279 2 7.94443V11.0003C2 15.7145 2 18.0716 3.46487 19.5361C4.82227 20.8931 6.94628 20.9927 11.0025 21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 19.8268V21H15.1734C15.5827 21 15.7874 21 15.9715 20.9238C16.1555 20.8475 16.3003 20.7028 16.5897 20.4134L21.4133 15.5894C21.6864 15.3164 21.8229 15.1799 21.8959 15.0327C22.0347 14.7525 22.0347 14.4236 21.8959 14.1434C21.8229 13.9961 21.6864 13.8596 21.4133 13.5866C21.1403 13.3136 21.0038 13.1771 20.8565 13.1041C20.5763 12.9653 20.2473 12.9653 19.9671 13.1041C19.8198 13.1771 19.6833 13.3136 19.4103 13.5866L19.4103 13.5866L14.5867 18.4106C14.2972 18.7 14.1525 18.8447 14.0762 19.0287C14 19.2128 14 19.4174 14 19.8268Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var y3,b3=S(()=>{y3=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22 15L16 21M22 21L16 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var v3,w3=S(()=>{v3=[["path",{d:"M7 19H13C15.8284 19 17.2426 19 18.1213 18.1213C19 17.2426 19 15.8284 19 13V10M19 10C19.7002 10 21.0085 11.9943 21.5 12.5M19 10C18.2998 10 16.9915 11.9943 16.5 12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M5 7L5 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"5",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"19",cy:"5",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"5",cy:"19",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var x3,I3=S(()=>{x3=[["path",{d:"M6 8C7.10457 8 8 7.10457 8 6C8 4.89543 7.10457 4 6 4C4.89543 4 4 4.89543 4 6C4 7.10457 4.89543 8 6 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 20C13.1046 20 14 19.1046 14 18C14 16.8954 13.1046 16 12 16C10.8954 16 10 16.8954 10 18C10 19.1046 10.8954 20 12 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.01734 8.74067C6.01734 10.4142 5.77537 12.1995 9.22051 11.9855H12.0053M17.9929 8.57617C18.1259 11.9855 16.9199 11.7648 15.7861 11.9855H12.0053M12.0053 15.7001V11.9855",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var S3,_3=S(()=>{S3=[["path",{d:"M7 20C8.10457 20 9 19.1046 9 18C9 16.8954 8.10457 16 7 16C5.89543 16 5 16.8954 5 18C5 19.1046 5.89543 20 7 20Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8C8.10457 8 9 7.10457 9 6C9 4.89543 8.10457 4 7 4C5.89543 4 5 4.89543 5 6C5 7.10457 5.89543 8 7 8Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M17 14C18.1046 14 19 13.1046 19 12C19 10.8954 18.1046 10 17 10C15.8954 10 15 10.8954 15 12C15 13.1046 15.8954 14 17 14Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M7.02116 8.2793V15.4073M14.4113 12.0047L10.0193 12.0048C8.92158 12.0048 6.86182 11.1254 7.01818 8.78001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var yu,Om=S(()=>{yu=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 16V12C18 9.17156 18 7.75735 17.1213 6.87867C16.2426 5.99999 14.8284 5.99999 12 5.99999L11 5.99999M11 5.99999C11 5.29976 12.9943 3.99152 13.5 3.49999M11 5.99999C11 6.70022 12.9943 8.00846 13.5 8.49999",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}]]});var P3,L3=S(()=>{P3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 11L18 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M20 4L18 6M18 6L16 8M18 6L20 8M18 6L16 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}]]});var M3,R3=S(()=>{M3=[["path",{d:"M6 8L6 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"6",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["circle",{cx:"6",cy:"6",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["circle",{cx:"18",cy:"18",r:"2",stroke:"currentColor",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.125 11H18M18.25 11C18.25 11.1381 18.1381 11.25 18 11.25C17.8619 11.25 17.75 11.1381 17.75 11C17.75 10.8619 17.8619 10.75 18 10.75C18.1381 10.75 18.25 10.8619 18.25 11Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.125 6H18M18.25 6C18.25 6.13807 18.1381 6.25 18 6.25C17.8619 6.25 17.75 6.13807 17.75 6C17.75 5.86193 17.8619 5.75 18 5.75C18.1381 5.75 18.25 5.86193 18.25 6Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}]]});var T3,$3=S(()=>{T3=[["path",{d:"M10 20.5675C6.57143 21.7248 3.71429 20.5675 2 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 22V18.7579C10 18.1596 10.1839 17.6396 10.4804 17.1699C10.6838 16.8476 10.5445 16.3904 10.1771 16.2894C7.13394 15.4528 5 14.1077 5 9.64606C5 8.48611 5.38005 7.39556 6.04811 6.4464C6.21437 6.21018 6.29749 6.09208 6.31748 5.9851C6.33746 5.87813 6.30272 5.73852 6.23322 5.45932C5.95038 4.32292 5.96871 3.11619 6.39322 2.02823C6.39322 2.02823 7.27042 1.74242 9.26698 2.98969C9.72282 3.27447 9.95075 3.41686 10.1515 3.44871C10.3522 3.48056 10.6206 3.41384 11.1573 3.28041C11.8913 3.09795 12.6476 3 13.5 3C14.3524 3 15.1087 3.09795 15.8427 3.28041C16.3794 3.41384 16.6478 3.48056 16.8485 3.44871C17.0493 3.41686 17.2772 3.27447 17.733 2.98969C19.7296 1.74242 20.6068 2.02823 20.6068 2.02823C21.0313 3.11619 21.0496 4.32292 20.7668 5.45932C20.6973 5.73852 20.6625 5.87813 20.6825 5.9851C20.7025 6.09207 20.7856 6.21019 20.9519 6.4464C21.6199 7.39556 22 8.48611 22 9.64606C22 14.1077 19.8661 15.4528 16.8229 16.2894C16.4555 16.3904 16.3162 16.8476 16.5196 17.1699C16.8161 17.6396 17 18.1596 17 18.7579V22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var A3,D3=S(()=>{A3=[["path",{d:"M3.88884 9.66294C4.39329 10 5.09552 10 6.49998 10C7.90445 10 8.60668 10 9.11113 9.66294C9.32951 9.51702 9.51701 9.32952 9.66292 9.11114C9.99998 8.60669 9.99998 7.90446 9.99998 6.5C9.99998 5.09554 9.99998 4.39331 9.66292 3.88886C9.51701 3.67048 9.32951 3.48298 9.11113 3.33706C8.60668 3 7.90445 3 6.49998 3C5.09552 3 4.39329 3 3.88884 3.33706C3.67046 3.48298 3.48296 3.67048 3.33705 3.88886C2.99998 4.39331 2.99998 5.09554 2.99998 6.5C2.99998 7.90446 2.99998 8.60669 3.33705 9.11114C3.48296 9.32952 3.67046 9.51702 3.88884 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.8888 9.66294C15.3933 10 16.0955 10 17.5 10C18.9044 10 19.6067 10 20.1111 9.66294C20.3295 9.51702 20.517 9.32952 20.6629 9.11114C21 8.60669 21 7.90446 21 6.5C21 5.09554 21 4.39331 20.6629 3.88886C20.517 3.67048 20.3295 3.48298 20.1111 3.33706C19.6067 3 18.9044 3 17.5 3C16.0955 3 15.3933 3 14.8888 3.33706C14.6705 3.48298 14.483 3.67048 14.337 3.88886C14 4.39331 14 5.09554 14 6.5C14 7.90446 14 8.60669 14.337 9.11114C14.483 9.32952 14.6705 9.51702 14.8888 9.66294Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3.88884 20.6629C4.39329 21 5.09552 21 6.49998 21C7.90445 21 8.60668 21 9.11113 20.6629C9.32951 20.517 9.51701 20.3295 9.66292 20.1111C9.99998 19.6067 9.99998 18.9045 9.99998 17.5C9.99998 16.0955 9.99998 15.3933 9.66292 14.8889C9.51701 14.6705 9.32951 14.483 9.11113 14.3371C8.60668 14 7.90445 14 6.49998 14C5.09552 14 4.39329 14 3.88884 14.3371C3.67046 14.483 3.48296 14.6705 3.33705 14.8889C2.99998 15.3933 2.99998 16.0955 2.99998 17.5C2.99998 18.9045 2.99998 19.6067 3.33705 20.1111C3.48296 20.3295 3.67046 20.517 3.88884 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.8888 20.6629C15.3933 21 16.0955 21 17.5 21C18.9044 21 19.6067 21 20.1111 20.6629C20.3295 20.517 20.517 20.3295 20.6629 20.1111C21 19.6067 21 18.9045 21 17.5C21 16.0955 21 15.3933 20.6629 14.8889C20.517 14.6705 20.3295 14.483 20.1111 14.3371C19.6067 14 18.9044 14 17.5 14C16.0955 14 15.3933 14 14.8888 14.3371C14.6705 14.483 14.483 14.6705 14.337 14.8889C14 15.3933 14 16.0955 14 17.5C14 18.9045 14 19.6067 14.337 20.1111C14.483 20.3295 14.6705 20.517 14.8888 20.6629Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var E3,N3=S(()=>{E3=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["ellipse",{cx:"12",cy:"12",rx:"4",ry:"10",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 12H22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var O3,z3=S(()=>{O3=[["path",{d:"M20.4999 16.5V8.5C20.4999 6.14298 20.4999 4.96447 19.7676 4.23223C19.0354 3.5 17.8569 3.5 15.4999 3.5H8.49988C6.14286 3.5 4.96434 3.5 4.23211 4.23223C3.49988 4.96447 3.49988 6.14298 3.49988 8.5V16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.9841 20.5H2.01567C1.63273 20.5 1.38367 20.1088 1.55493 19.7764L3.49988 16.5H20.4999L22.4448 19.7764C22.6161 20.1088 22.367 20.5 21.9841 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var j3,Z3=S(()=>{j3=[["path",{d:"M8.64298 3.14559L6.93816 3.93362C4.31272 5.14719 3 5.75397 3 6.75C3 7.74603 4.31272 8.35281 6.93817 9.56638L8.64298 10.3544C10.2952 11.1181 11.1214 11.5 12 11.5C12.8786 11.5 13.7048 11.1181 15.357 10.3544L17.0618 9.56638C19.6873 8.35281 21 7.74603 21 6.75C21 5.75397 19.6873 5.14719 17.0618 3.93362L15.357 3.14559C13.7048 2.38186 12.8786 2 12 2C11.1214 2 10.2952 2.38186 8.64298 3.14559Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.788 11.0972C20.9293 11.2959 21 11.5031 21 11.7309C21 12.7127 19.6873 13.3109 17.0618 14.5072L15.357 15.284C13.7048 16.0368 12.8786 16.4133 12 16.4133C11.1214 16.4133 10.2952 16.0368 8.64298 15.284L6.93817 14.5072C4.31272 13.3109 3 12.7127 3 11.7309C3 11.5031 3.07067 11.2959 3.212 11.0972",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.3767 16.2661C20.7922 16.5971 21 16.927 21 17.3176C21 18.2995 19.6873 18.8976 17.0618 20.0939L15.357 20.8707C13.7048 21.6236 12.8786 22 12 22C11.1214 22 10.2952 21.6236 8.64298 20.8707L6.93817 20.0939C4.31272 18.8976 3 18.2995 3 17.3176C3 16.927 3.20778 16.5971 3.62334 16.2661",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var W3,V3=S(()=>{W3=[["path",{d:"M3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 2.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var F3,H3=S(()=>{F3=[["path",{d:"M20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.5 12L2.50078 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var B3,U3=S(()=>{B3=[["path",{d:"M8 20C7.48595 20.6974 7.2774 20.9401 6.85472 20.9929C6.43205 21.0457 6.13982 20.8037 5.55537 20.3197C3.38109 18.5193 2 15.8253 2 12.8147C2 7.39421 6.47715 3 12 3C17.5228 3 22 7.39421 22 12.8147C22 15.8253 20.6189 18.5193 18.4446 20.3197C17.8602 20.8037 17.568 21.0457 17.1453 20.9929C16.7226 20.9401 16.514 20.6974 16 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.5 10.5L18 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"12",cy:"12",r:"1.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var G3,K3=S(()=>{G3=[["path",{d:"M11.0991 3.00012C7.45013 3.00669 5.53932 3.09629 4.31817 4.31764C3.00034 5.63568 3.00034 7.75704 3.00034 11.9997C3.00034 16.2424 3.00034 18.3638 4.31817 19.6818C5.63599 20.9999 7.75701 20.9999 11.9991 20.9999C16.241 20.9999 18.3621 20.9999 19.6799 19.6818C20.901 18.4605 20.9906 16.5493 20.9972 12.8998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M20.556 3.49612L11.0487 13.0586M20.556 3.49612C20.062 3.00151 16.7343 3.04761 16.0308 3.05762M20.556 3.49612C21.05 3.99074 21.0039 7.32273 20.9939 8.02714",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var q3,Y3=S(()=>{q3=[["path",{d:"M2.99609 18H8.99609",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 15C15.9961 15 12.9961 17.2095 12.9961 18C12.9961 18.7906 15.9961 21 15.9961 21M13.9961 18L14.9961 18C17.8245 18 19.2387 18 20.1174 17.1213C20.9961 16.2427 20.9961 14.8284 20.9961 12V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2.99609 11H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2.99609 4H15.9961",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var J3,X3=S(()=>{J3=[["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H20.6C21.7583 10 22 10.2417 22 11.4V12.6C22 13.7583 21.7583 14 20.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H20.6C21.7583 18 22 18.2417 22 19.4V20.6C22 21.7583 21.7583 22 20.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var Q3,e6=S(()=>{Q3=[["path",{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 13C13.1046 13 14 12.1046 14 11C14 9.89543 13.1046 9 12 9C10.8954 9 10 9.89543 10 11C10 12.1046 10.8954 13 12 13ZM12 13L12 16",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var t6,n6=S(()=>{t6=[["path",{d:"M7 8.5L9.94202 10.2394C11.6572 11.2535 12.3428 11.2535 14.058 10.2394L17 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01577 13.4756C2.08114 16.5412 2.11383 18.0739 3.24496 19.2094C4.37608 20.3448 5.95033 20.3843 9.09883 20.4634C11.0393 20.5122 12.9607 20.5122 14.9012 20.4634C18.0497 20.3843 19.6239 20.3448 20.7551 19.2094C21.8862 18.0739 21.9189 16.5412 21.9842 13.4756C22.0053 12.4899 22.0053 11.5101 21.9842 10.5244C21.9189 7.45886 21.8862 5.92609 20.7551 4.79066C19.6239 3.65523 18.0497 3.61568 14.9012 3.53657C12.9607 3.48781 11.0393 3.48781 9.09882 3.53656C5.95033 3.61566 4.37608 3.65521 3.24495 4.79065C2.11382 5.92608 2.08114 7.45885 2.01576 10.5244C1.99474 11.5101 1.99475 12.4899 2.01577 13.4756Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var r6,o6=S(()=>{r6=[["path",{d:"M2 19L8.91302 14.2905C11.4387 12.5698 12.5613 12.5698 15.087 14.2905L22 19",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.01592 14.551C2.08186 17.5843 2.11484 19.1009 3.24611 20.2241C4.37738 21.3473 5.95183 21.3862 9.10072 21.4641C11.0393 21.512 12.9607 21.512 14.8993 21.4641C18.0482 21.3862 19.6226 21.3473 20.7539 20.2241C21.8852 19.1009 21.9181 17.5843 21.9841 14.551C22.0164 13.0649 21.9995 11.5934 21.9334 10.0921C21.8924 9.15964 21.8719 8.69341 21.6354 8.27984C21.3989 7.86628 20.9913 7.59935 20.176 7.0655L16.4152 4.60286C14.2742 3.20096 13.2038 2.5 12 2.5C10.7962 2.5 9.72577 3.20095 7.58483 4.60286L3.82397 7.0655C3.00869 7.59935 2.60106 7.86628 2.36459 8.27984C2.12812 8.69341 2.1076 9.15965 2.06656 10.0921C2.00049 11.5934 1.98361 13.0649 2.01592 14.551Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M22 9.5L17.7346 12.6072C16.7004 13.3606 15.8504 14 14.5 14M2 9.5L6.26538 12.6072C7.29955 13.3606 8.14961 14 9.5 14",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var i6,s6=S(()=>{i6=[["path",{d:"M4 5L16 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 12L20 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4 19L12 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var a6,c6=S(()=>{a6=[["path",{d:"M13 3.02144C12.6777 3.00721 12.3445 2.99998 12 2.99998C4.13281 2.99998 2 7.02942 2 12C2 14.0712 2.37034 15.979 3.37161 17.5C4.63281 19.5 3.99253 21.3333 3 22C4.61547 22 5.70211 21.4858 6.39239 20.9766C6.88252 20.615 7.50688 20.4364 8.0984 20.5814C9.20689 20.8533 10.4991 21 12 21C19.1328 21 22 16.9705 22 12C22 11.3126 21.9643 10.6432 21.8812 9.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1248 12H11.9998M16.125 12H16M8.125 12H8M12.2498 12C12.2498 12.1381 12.1379 12.25 11.9998 12.25C11.8618 12.25 11.7498 12.1381 11.7498 12C11.7498 11.8619 11.8618 11.75 11.9998 11.75C12.1379 11.75 12.2498 11.8619 12.2498 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 4.99998H22M19 1.99998L19 7.99998",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var u6,l6=S(()=>{u6=[["path",{d:"M12 18V22M12 18H11.5208C8.11765 18 5.28262 15.3914 5 12M12 18H12.4792C15.8824 18 18.7174 15.3914 19 12M12 22H15M12 22H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 6C8 3.79086 9.79086 2 12 2C14.2091 2 16 3.79086 16 6V11C16 13.2091 14.2091 15 12 15C9.79086 15 8 13.2091 8 11V6Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var d6,p6=S(()=>{d6=[["path",{d:"M20 12L4 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var f6,m6=S(()=>{f6=[["path",{d:"M8 17.625L20 17.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17 14.625L20 17.625L17 20.625",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 3.625L20 3.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 10.625L20 10.625",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M4.375 3.625H4.25M4.5 3.625C4.5 3.76307 4.38807 3.875 4.25 3.875C4.11193 3.875 4 3.76307 4 3.625C4 3.48693 4.11193 3.375 4.25 3.375C4.38807 3.375 4.5 3.48693 4.5 3.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M4.375 10.625H4.25M4.5 10.625C4.5 10.7631 4.38807 10.875 4.25 10.875C4.11193 10.875 4 10.7631 4 10.625C4 10.4869 4.11193 10.375 4.25 10.375C4.38807 10.375 4.5 10.4869 4.5 10.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M4.375 17.625H4.25M4.5 17.625C4.5 17.7631 4.38807 17.875 4.25 17.875C4.11193 17.875 4 17.7631 4 17.625C4 17.4869 4.11193 17.375 4.25 17.375C4.38807 17.375 4.5 17.4869 4.5 17.625Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]]});var h6,g6=S(()=>{h6=[["path",{d:"M10.5 8H18.5M10.5 12H13M18.5 12H16M10.5 16H13M18.5 16H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 7.5H6C4.11438 7.5 3.17157 7.5 2.58579 8.08579C2 8.67157 2 9.61438 2 11.5V18C2 19.3807 3.11929 20.5 4.5 20.5C5.88071 20.5 7 19.3807 7 18V7.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 3.5H11C10.07 3.5 9.60504 3.5 9.22354 3.60222C8.18827 3.87962 7.37962 4.68827 7.10222 5.72354C7 6.10504 7 6.57003 7 7.5V18C7 19.3807 5.88071 20.5 4.5 20.5H16C18.8284 20.5 20.2426 20.5 21.1213 19.6213C22 18.7426 22 17.3284 22 14.5V9.5C22 6.67157 22 5.25736 21.1213 4.37868C20.2426 3.5 18.8284 3.5 16 3.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var C6,k6=S(()=>{C6=[["path",{d:"M12 22C11.1818 22 10.4002 21.6754 8.83693 21.0262C4.94564 19.4101 3 18.6021 3 17.2429V7.74463M12 22C12.8182 22 13.5998 21.6754 15.1631 21.0262C19.0544 19.4101 21 18.6021 21 17.2429V7.74463M12 22V12.1687M3 7.74463C3 8.3485 3.80157 8.72983 5.40472 9.49248L8.32592 10.8822C10.1288 11.7399 11.0303 12.1687 12 12.1687M3 7.74463C3 7.14076 3.80157 6.75944 5.40472 5.99678L7.5 5M21 7.74463C21 8.3485 20.1984 8.72983 18.5953 9.49248L15.6741 10.8822C13.8712 11.7399 12.9697 12.1687 12 12.1687M21 7.74463C21 7.14076 20.1984 6.75944 18.5953 5.99678L16.5 5M6 13.1518L8 14.135",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.0037 2L12.0037 8.99995M12.0037 8.99995C12.2668 9.00351 12.5263 8.81972 12.7178 8.59534L14 7.06174M12.0037 8.99995C11.7499 8.99652 11.4929 8.81368 11.2897 8.59534L10 7.06174",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]]});var y6,b6=S(()=>{y6=[["path",{d:"M4 7C4 5.58579 4 4.87868 4.43934 4.43934C4.87868 4 5.58579 4 7 4C8.41421 4 9.12132 4 9.56066 4.43934C10 4.87868 10 5.58579 10 7V17C10 18.4142 10 19.1213 9.56066 19.5607C9.12132 20 8.41421 20 7 20C5.58579 20 4.87868 20 4.43934 19.5607C4 19.1213 4 18.4142 4 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 7C14 5.58579 14 4.87868 14.4393 4.43934C14.8787 4 15.5858 4 17 4C18.4142 4 19.1213 4 19.5607 4.43934C20 4.87868 20 5.58579 20 7V17C20 18.4142 20 19.1213 19.5607 19.5607C19.1213 20 18.4142 20 17 20C15.5858 20 14.8787 20 14.4393 19.5607C14 19.1213 14 18.4142 14 17V7Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var v6,w6=S(()=>{v6=[["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13.2585 18.8714C9.51516 18.0215 5.97844 14.4848 5.12853 10.7415C4.99399 10.1489 4.92672 9.85266 5.12161 9.37197C5.3165 8.89129 5.55457 8.74255 6.03071 8.44509C7.10705 7.77265 8.27254 7.55888 9.48209 7.66586C11.1793 7.81598 12.0279 7.89104 12.4512 7.67048C12.8746 7.44991 13.1622 6.93417 13.7376 5.90269L14.4664 4.59604C14.9465 3.73528 15.1866 3.3049 15.7513 3.10202C16.316 2.89913 16.6558 3.02199 17.3355 3.26771C18.9249 3.84236 20.1576 5.07505 20.7323 6.66449C20.978 7.34417 21.1009 7.68401 20.898 8.2487C20.6951 8.8134 20.2647 9.05346 19.4039 9.53358L18.0672 10.2792C17.0376 10.8534 16.5229 11.1406 16.3024 11.568C16.0819 11.9955 16.162 12.8256 16.3221 14.4859C16.4399 15.7068 16.2369 16.88 15.5555 17.9697C15.2577 18.4458 15.1088 18.6839 14.6283 18.8786C14.1477 19.0733 13.8513 19.006 13.2585 18.8714Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var x6,I6=S(()=>{x6=[["path",{d:"M7.5 8C6.95863 8.1281 6.49932 8.14239 5.99268 8.45891C5.07234 9.03388 4.85108 9.71674 5.08821 10.7612C5.94028 14.5139 9.48599 18.0596 13.2388 18.9117C14.2834 19.1489 14.9661 18.928 15.5416 18.0077C15.8411 17.5288 15.8716 17.0081 16 16.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 7.79915C12.1776 7.77794 12.3182 7.74034 12.4295 7.68235C13.3997 7.17686 13.9291 5.53361 14.4498 4.60009C14.9311 3.73715 15.1718 3.30567 15.7379 3.10227C16.3041 2.89888 16.6448 3.02205 17.3262 3.26839C18.9197 3.8445 20.1555 5.08032 20.7316 6.6738C20.9779 7.35521 21.1011 7.69591 20.8977 8.26204C20.6943 8.82817 20.2628 9.06884 19.3999 9.55018C18.4608 10.074 16.7954 10.6108 16.2905 11.5898C16.2345 11.6983 16.1978 11.8327 16.1769 12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21L8 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 3L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var S6,_6=S(()=>{S6=[["path",{d:"M18.8906 12.846C18.5371 14.189 16.8667 15.138 13.5257 17.0361C10.296 18.8709 8.6812 19.7884 7.37983 19.4196C6.8418 19.2671 6.35159 18.9776 5.95624 18.5787C5 17.6139 5 15.7426 5 12C5 8.2574 5 6.3861 5.95624 5.42132C6.35159 5.02245 6.8418 4.73288 7.37983 4.58042C8.6812 4.21165 10.296 5.12907 13.5257 6.96393C16.8667 8.86197 18.5371 9.811 18.8906 11.154C19.0365 11.7084 19.0365 12.2916 18.8906 12.846Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var P6,L6=S(()=>{P6=[["path",{d:"M14 8V11M10 11V8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M8.00297 12.0267C7.95812 11.4726 8.42638 11 9.02009 11H14.9799C15.5736 11 16.0419 11.4726 15.997 12.0267L15.8745 13.5403C15.7864 14.6285 15.4008 15.6771 14.7546 16.5856L14.3541 17.1487C13.9759 17.6805 13.3385 18 12.6558 18H11.3442C10.6615 18 10.0241 17.6805 9.64588 17.1487L9.24535 16.5856C8.59923 15.6771 8.2136 14.6285 8.12551 13.5403L8.00297 12.0267Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 21.2109C19.5318 19.6644 22 16.1323 22 12.0224C22 6.4872 17.5228 2 12 2C6.47715 2 2 6.4872 2 12.0224C2 17.2199 5.94741 21.4933 11.0014 21.9955C11.551 22.0501 12 21.5962 12 21.0426V18.0359",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var M6,R6=S(()=>{M6=[["path",{d:"M12 7.5V13.8636M15.5 10.6818H8.5M15.5 16.5H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var T6,$6=S(()=>{T6=[["path",{d:"M12 4V20M20 12H4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var A6,D6=S(()=>{A6=[["path",{d:"M12.828 6.00096C12.9388 5.68791 12.999 5.35099 12.999 5C12.999 3.34315 11.6559 2 9.99904 2C8.34219 2 6.99904 3.34315 6.99904 5C6.99904 5.35099 7.05932 5.68791 7.17008 6.00096C4.88532 6.0093 3.66601 6.09039 2.87772 6.87868C2.08951 7.66689 2.00836 8.88603 2 11.1704C2.31251 11.06 2.64876 11 2.99904 11C4.6559 11 5.99904 12.3431 5.99904 14C5.99904 15.6569 4.6559 17 2.99904 17C2.64876 17 2.31251 16.94 2 16.8296C2.00836 19.114 2.08951 20.3331 2.87772 21.1213C3.66593 21.9095 4.88508 21.9907 7.16941 21.999C7.05908 21.6865 6.99904 21.3503 6.99904 21C6.99904 19.3431 8.34219 18 9.99904 18C11.6559 18 12.999 19.3431 12.999 21C12.999 21.3503 12.939 21.6865 12.8287 21.999C15.113 21.9907 16.3322 21.9095 17.1204 21.1213C17.9086 20.333 17.9897 19.1137 17.9981 16.829C18.3111 16.9397 18.648 17 18.999 17C20.6559 17 21.999 15.6569 21.999 14C21.999 12.3431 20.6559 11 18.999 11C18.648 11 18.3111 11.0603 17.9981 11.171C17.9897 8.88627 17.9086 7.66697 17.1204 6.87868C16.3321 6.09039 15.1128 6.0093 12.828 6.00096Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var E6,N6=S(()=>{E6=[["path",{d:"M20.4879 15C19.2524 18.4956 15.9187 21 12 21C7.02943 21 3 16.9706 3 12C3 7.02943 7.02943 3 12 3C15.7292 3 18.9286 5.26806 20.2941 8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 9H18C19.4142 9 20.1213 9 20.5607 8.56066C21 8.12132 21 7.41421 21 6V3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var O6,z6=S(()=>{O6=[["path",{d:"M16.3884 3L17.3913 3.97574C17.8393 4.41165 18.0633 4.62961 17.9844 4.81481C17.9056 5 17.5888 5 16.9552 5H9.19422C5.22096 5 2 8.13401 2 12C2 13.4872 2.47668 14.8662 3.2895 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.61156 21L6.60875 20.0243C6.16074 19.5883 5.93673 19.3704 6.01557 19.1852C6.09441 19 6.4112 19 7.04478 19H14.8058C18.779 19 22 15.866 22 12C22 10.5128 21.5233 9.13383 20.7105 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var j6,Z6=S(()=>{j6=[["path",{d:"M18.7088 3.49534C16.8165 2.55382 14.5009 2 12 2C9.4991 2 7.1835 2.55382 5.29116 3.49534C4.36318 3.95706 3.89919 4.18792 3.4496 4.91378C3 5.63965 3 6.34248 3 7.74814V11.2371C3 16.9205 7.54236 20.0804 10.173 21.4338C10.9067 21.8113 11.2735 22 12 22C12.7265 22 13.0933 21.8113 13.8269 21.4338C16.4576 20.0804 21 16.9205 21 11.2371L21 7.74814C21 6.34249 21 5.63966 20.5504 4.91378C20.1008 4.18791 19.6368 3.95706 18.7088 3.49534Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 11.5C9 11.5 10.4079 11.7519 11 13.5C11 13.5 12.5 10.5 15 9.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var W6,V6=S(()=>{W6=[["path",{d:"M21.0477 3.05293C18.8697 0.707363 2.48648 6.4532 2.50001 8.551C2.51535 10.9299 8.89809 11.6617 10.6672 12.1581C11.7311 12.4565 12.016 12.7625 12.2613 13.8781C13.3723 18.9305 13.9301 21.4435 15.2014 21.4996C17.2278 21.5892 23.1733 5.342 21.0477 3.05293Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.4999 12.5L14.9999 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var F6,H6=S(()=>{F6=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91555C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91555C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 14.5L22 14.5",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M6 18H7M10 18H11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var B6,U6=S(()=>{B6=[["path",{d:"M2 12C2 8.3109 2 6.46633 2.81382 5.1588C3.1149 4.67505 3.48891 4.2543 3.91891 3.91557C5.08116 3.00003 6.72077 3.00003 10 3.00003H14C17.2792 3.00003 18.9188 3.00003 20.0811 3.91557C20.5111 4.2543 20.8851 4.67505 21.1862 5.1588C22 6.46633 22 8.3109 22 12C22 15.6892 22 17.5337 21.1862 18.8413C20.8851 19.325 20.5111 19.7458 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7458 3.1149 19.325 2.81382 18.8413C2 17.5337 2 15.6892 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 3.00003L14.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 7.00006H19M18 10.0001H19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var G6,K6=S(()=>{G6=[["path",{d:"M13.5 2H10.5C8.14298 2 6.96447 2 6.23223 2.73223C5.5 3.46447 5.5 4.64298 5.5 7V17C5.5 19.357 5.5 20.5355 6.23223 21.2678C6.96447 22 8.14298 22 10.5 22H13.5C15.857 22 17.0355 22 17.7678 21.2678C18.5 20.5355 18.5 19.357 18.5 17V7C18.5 4.64298 18.5 3.46447 17.7678 2.73223C17.0355 2 15.857 2 13.5 2Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.125 19H12M12.25 19C12.25 19.1381 12.1381 19.25 12 19.25C11.8619 19.25 11.75 19.1381 11.75 19C11.75 18.8619 11.8619 18.75 12 18.75C12.1381 18.75 12.25 18.8619 12.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var q6,Y6=S(()=>{q6=[["path",{d:"M11.0001 8L19.0001 8.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.0001 12H16.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11.0001 16H14.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.0001 4H21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M5.5 21V3M5.5 21C4.79977 21 3.49153 19.0057 3 18.5M5.5 21C6.20023 21 7.50847 19.0057 8 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var J6,X6=S(()=>{J6=[["path",{d:"M4 14H8.42109C9.35119 14 9.81624 14 9.94012 14.2801C10.064 14.5603 9.74755 14.8963 9.11466 15.5684L5.47691 19.4316C4.84402 20.1037 4.52757 20.4397 4.65145 20.7199C4.77533 21 5.24038 21 6.17048 21H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 9L6.10557 4.30527C6.49585 3.43509 6.69098 3 7 3C7.30902 3 7.50415 3.43509 7.89443 4.30527L10 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V4M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var Q6,eC=S(()=>{Q6=[["path",{d:"M7 20.9994V14.9481C7 14.3736 7 14.0863 6.76959 14.0149C6.26306 13.8577 5.5 14.999 5.5 14.999M7 20.9994H5.5M7 20.9994H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 6.5V4.75C9 3.92504 9 3.51256 8.70711 3.25628C8.41421 3 7.94281 3 7 3C6.05719 3 5.58579 3 5.29289 3.25628C5 3.51256 5 3.92504 5 4.75C5 5.57496 5 5.98744 5.29289 6.24372C5.58579 6.5 6.05719 6.5 7 6.5H9ZM9 6.5V7.375C9 8.61244 9 9.23116 8.56066 9.61558C8.12132 10 7.41421 10 6 10H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5001 19.999V3.99902M16.5001 19.999C15.7998 19.999 14.4916 18.0047 14.0001 17.499M16.5001 19.999C17.2003 19.999 18.5085 18.0047 19.0001 17.499",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var tC,nC=S(()=>{tC=[["path",{d:"M7 9.99936V3.94812C7 3.3736 7 3.08634 6.76959 3.01485C6.26306 2.85769 5.5 3.99902 5.5 3.99902M7 9.99936H5.5M7 9.99936H8.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9 17.4991V15.7491C9 14.9242 9 14.5117 8.70711 14.2554C8.41421 13.9991 7.94281 13.9991 7 13.9991C6.05719 13.9991 5.58579 13.9991 5.29289 14.2554C5 14.5117 5 14.9242 5 15.7491C5 16.5741 5 16.9866 5.29289 17.2429C5.58579 17.4991 6.05719 17.4991 7 17.4991H9ZM9 17.4991V18.3741C9 19.6116 9 20.2303 8.56066 20.6147C8.12132 20.9991 7.41421 20.9991 6 20.9991H5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16.5 19.9991V3.99915M16.5 19.9991C15.7998 19.9991 14.4915 18.0048 14 17.4991M16.5 19.9991C17.2002 19.9991 18.5085 18.0048 19 17.4991",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var rC,oC=S(()=>{rC=[["path",{d:"M4 3H8.42109C9.35119 3 9.81624 3 9.94012 3.28013C10.064 3.56026 9.74755 3.89632 9.11466 4.56842L5.47691 8.43158C4.84402 9.10368 4.52757 9.43974 4.65145 9.71987C4.77533 10 5.24038 10 6.17048 10H10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 21L6.10557 16.3053C6.49585 15.4351 6.69098 15 7 15C7.30902 15 7.50415 15.4351 7.89443 16.3053L10 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M17.5 20V3.99999M17.5 20C16.7998 20 15.4915 18.0057 15 17.5M17.5 20C18.2002 20 19.5085 18.0057 20 17.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var iC,sC=S(()=>{iC=[["path",{d:"M2.5 12C2.5 7.52166 2.5 5.28249 3.89124 3.89124C5.28249 2.5 7.52166 2.5 12 2.5C16.4783 2.5 18.7175 2.5 20.1088 3.89124C21.5 5.28249 21.5 7.52166 21.5 12C21.5 16.4783 21.5 18.7175 20.1088 20.1088C18.7175 21.5 16.4783 21.5 12 21.5C7.52166 21.5 5.28249 21.5 3.89124 20.1088C2.5 18.7175 2.5 16.4783 2.5 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}]]});var aC,cC=S(()=>{aC=[["path",{d:"M12 14.5V17.5M13 14.5C13 15.0523 12.5523 15.5 12 15.5C11.4477 15.5 11 15.0523 11 14.5C11 13.9477 11.4477 13.5 12 13.5C12.5523 13.5 13 13.9477 13 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 9V6.5C7.5 4.01472 9.51472 2 12 2C13.9593 2 15.8664 3.25221 16.5 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M4.26781 18.8447C4.49269 20.515 5.87613 21.8235 7.55966 21.9009C8.97627 21.966 10.4153 22 12 22C13.5847 22 15.0237 21.966 16.4403 21.9009C18.1239 21.8235 19.5073 20.515 19.7322 18.8447C19.879 17.7547 20 16.6376 20 15.5C20 14.3624 19.879 13.2453 19.7322 12.1553C19.5073 10.485 18.1239 9.17649 16.4403 9.09909C15.0237 9.03397 13.5847 9 12 9C10.4153 9 8.97627 9.03397 7.55966 9.09909C5.87613 9.17649 4.49269 10.485 4.26781 12.1553C4.12104 13.2453 4 14.3624 4 15.5C4 16.6376 4.12104 17.7547 4.26781 18.8447Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var uC,lC=S(()=>{uC=[["path",{d:"M13.7276 3.44418L15.4874 6.99288C15.7274 7.48687 16.3673 7.9607 16.9073 8.05143L20.0969 8.58575C22.1367 8.92853 22.6167 10.4206 21.1468 11.8925L18.6671 14.3927C18.2471 14.8161 18.0172 15.6327 18.1471 16.2175L18.8571 19.3125C19.417 21.7623 18.1271 22.71 15.9774 21.4296L12.9877 19.6452C12.4478 19.3226 11.5579 19.3226 11.0079 19.6452L8.01827 21.4296C5.8785 22.71 4.57865 21.7522 5.13859 19.3125L5.84851 16.2175C5.97849 15.6327 5.74852 14.8161 5.32856 14.3927L2.84884 11.8925C1.389 10.4206 1.85895 8.92853 3.89872 8.58575L7.08837 8.05143C7.61831 7.9607 8.25824 7.48687 8.49821 6.99288L10.258 3.44418C11.2179 1.51861 12.7777 1.51861 13.7276 3.44418Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]]});var dC,pC=S(()=>{dC=[["path",{d:"M8 2H16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.2187 13.0044L15.9921 13.6151C15.5219 14.65 14.1115 15.7439 11.7609 14.3182C10.2471 13.4001 8.93663 12.6631 7.9997 13.16L7.21891 13.5412",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5323 2V8.56602C14.5323 9.27829 14.5323 9.63442 14.6304 9.97222C14.7285 10.31 14.9197 10.612 15.3021 11.216L17.2861 14.35C19.4275 17.7326 20.4982 19.4238 19.7751 20.7119C19.0519 22 17.0317 22 12.9914 22H11.0086C6.96825 22 4.94807 22 4.22495 20.7119C3.50182 19.4238 4.57251 17.7326 6.71389 14.35L8.69792 11.216C9.08029 10.612 9.27148 10.31 9.36961 9.97222C9.46773 9.63442 9.46773 9.27829 9.46773 8.56602V2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15.125 19H15M15.25 19C15.25 19.1381 15.1381 19.25 15 19.25C14.8619 19.25 14.75 19.1381 14.75 19C14.75 18.8619 14.8619 18.75 15 18.75C15.1381 18.75 15.25 18.8619 15.25 19Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M10.125 17H10M10.25 17C10.25 17.1381 10.1381 17.25 10 17.25C9.86193 17.25 9.75 17.1381 9.75 17C9.75 16.8619 9.86193 16.75 10 16.75C10.1381 16.75 10.25 16.8619 10.25 17Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var fC,mC=S(()=>{fC=[["path",{d:"M3 3H21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 15H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M3 21H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 9H16.5C18.9853 9 21 11.0147 21 13.5C21 15.9853 18.9853 18 16.5 18H12M12 18C12 17.1597 14.3932 15.5898 15 15M12 18C12 18.8403 14.3932 20.4102 15 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]]});var hC,gC=S(()=>{hC=[["path",{d:"M12 8V12L13.5 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19.5454 16.4534C21.1818 17.337 22 17.7789 22 18.5C22 19.2211 21.1818 19.663 19.5454 20.5466L18.4311 21.1484C17.1744 21.827 16.5461 22.1663 16.2439 21.9196C15.504 21.3154 16.6567 19.7561 16.9403 19.2037C17.2277 18.644 17.2225 18.3459 16.9403 17.7963C16.6567 17.2439 15.504 15.6846 16.2439 15.0804C16.5461 14.8337 17.1744 15.173 18.4311 15.8516L19.5454 16.4534Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}],["path",{d:"M13.0261 21.948C12.6888 21.9824 12.3464 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 12.6849 21.9311 13.3538 21.8 14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}]]});var CC,kC=S(()=>{CC=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 11L12 17.5M9 13.5C9.58984 12.8932 11.1597 10.5 12 10.5C12.8403 10.5 14.4102 12.8932 15 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var yC,bC=S(()=>{yC=[["path",{d:"M20 21.0001C19.713 17.269 16.7289 14.3151 12.995 14.0662L12 13.9999C11.6446 14.0096 11.3134 14.0225 11.0008 14.0378C7.3 14.2192 4.28417 17.3057 4 21.0001",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"12",cy:"6.99988",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]]});var vC,wC=S(()=>{vC=[["path",{d:"M21.544 11.045C21.848 11.4713 22 11.6845 22 12C22 12.3155 21.848 12.5287 21.544 12.955C20.1779 14.8706 16.6892 19 12 19C7.31078 19 3.8221 14.8706 2.45604 12.955C2.15201 12.5287 2 12.3155 2 12C2 11.6845 2.15201 11.4713 2.45604 11.045C3.8221 9.12944 7.31078 5 12 5C16.6892 5 20.1779 9.12944 21.544 11.045Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 12C15 10.3431 13.6569 9 12 9C10.3431 9 9 10.3431 9 12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]]});var xC,IC=S(()=>{xC=[["path",{d:"M22 8C22 8 18 14 12 14C6 14 2 8 2 8",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15 13.5L16.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20 11L22 13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M2 13L4 11",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9 13.5L7.5 16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]]});var SC,_C=S(()=>{SC=[["path",{d:"M18.5016 19.1217L21 21.6217M20 15.1217C20 12.0842 17.5376 9.62173 14.5 9.62173C11.4624 9.62173 9 12.0842 9 15.1217C9 18.1593 11.4624 20.6217 14.5 20.6217C17.5376 20.6217 20 18.1593 20 15.1217Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.5 13.1217V17.1217M16.5 15.1217H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3.62173H14M3 10.6217V14.6217M6.5 21.6217C4.567 21.6217 3 20.0547 3 18.1217M17.5 3.62173C19.433 3.62173 21 5.18873 21 7.12173M3 7.12173C3 5.18873 4.567 3.62173 6.5 3.62173",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var PC,LC=S(()=>{PC=[["path",{d:"M18.5016 18.5L21 21M20 14.5C20 11.4624 17.5376 9 14.5 9C11.4624 9 9 11.4624 9 14.5C9 17.5376 11.4624 20 14.5 20C17.5376 20 20 17.5376 20 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.5 14.5H12.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 3H14M3 10V14M6.5 21C4.567 21 3 19.433 3 17.5M17.5 3C19.433 3 21 4.567 21 6.5M3 6.5C3 4.567 4.567 3 6.5 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]]});var RC={};Rt(RC,{EXTENDED_ICON_MAP:()=>MC});var m_,h_,g_,MC,TC=S(()=>{"use strict";E8();O8();j8();W8();F8();B8();G8();q8();J8();Q8();t7();r7();i7();a7();u7();d7();f7();h7();C7();y7();v7();w7();I7();_7();L7();R7();$7();D7();N7();z7();Z7();V7();H7();U7();K7();Y7();X7();e3();n3();o3();s3();c3();l3();p3();m3();g3();Rm();k3();b3();w3();I3();_3();Om();L3();R3();Om();$3();D3();N3();z3();Z3();V3();H3();U3();K3();Y3();X3();e6();n6();o6();s6();c6();l6();p6();m6();g6();k6();b6();w6();I6();_6();L6();R6();$6();D6();N6();z6();Z6();V6();H6();U6();K6();Y6();X6();eC();nC();oC();sC();cC();lC();pC();mC();gC();kC();bC();wC();IC();_C();LC();Em();m_=[["path",{d:"M21.8205 10.4127C22.062 11.8519 22.1827 12.5715 21.2423 13.9326C21.1459 14.0722 20.8966 14.3713 20.777 14.4911C19.6103 15.6586 18.4308 15.6586 16.0716 15.6586H14.1392C13.5085 15.6586 13.1931 15.6586 12.9639 15.7142C11.9586 15.9581 11.3031 16.9391 11.453 17.9755C11.4872 18.2118 11.6043 18.5085 11.8386 19.102C11.9345 19.3449 11.9824 19.4664 12.0136 19.7304C12.1292 20.7084 11.0869 21.9508 10.1158 21.9926C9.85358 22.0039 9.83681 22.0002 9.80326 21.9926C7.66174 21.51 5.66204 20.3123 4.18389 18.4421C0.736789 14.0808 1.43146 7.71364 5.73548 4.22064C10.0395 0.727643 16.323 1.43156 19.7701 5.79289C20.868 7.1819 21.5457 8.77438 21.8205 10.4127Z",fill:"none",fillRule:"evenodd",clipRule:"evenodd",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.36719 7.74976H7.24219M7.49219 7.74976C7.49219 7.88783 7.38026 7.99976 7.24219 7.99976C7.10412 7.99976 6.99219 7.88783 6.99219 7.74976C6.99219 7.61169 7.10412 7.49976 7.24219 7.49976C7.38026 7.49976 7.49219 7.61169 7.49219 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M7.36719 15.7498H7.24219M7.49219 15.7498C7.49219 15.8878 7.38026 15.9998 7.24219 15.9998C7.10412 15.9998 6.99219 15.8878 6.99219 15.7498C6.99219 15.6117 7.10412 15.4998 7.24219 15.4998C7.38026 15.4998 7.49219 15.6117 7.49219 15.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M11.8672 5.74976H11.7422M11.9922 5.74976C11.9922 5.88783 11.8803 5.99976 11.7422 5.99976C11.6041 5.99976 11.4922 5.88783 11.4922 5.74976C11.4922 5.61169 11.6041 5.49976 11.7422 5.49976C11.8803 5.49976 11.9922 5.61169 11.9922 5.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M16.3672 7.74976H16.2422M16.4922 7.74976C16.4922 7.88783 16.3803 7.99976 16.2422 7.99976C16.1041 7.99976 15.9922 7.88783 15.9922 7.74976C15.9922 7.61169 16.1041 7.49976 16.2422 7.49976C16.3803 7.49976 16.4922 7.61169 16.4922 7.74976Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M18.3672 11.7498H18.2422M18.4922 11.7498C18.4922 11.8878 18.3803 11.9998 18.2422 11.9998C18.1041 11.9998 17.9922 11.8878 17.9922 11.7498C17.9922 11.6117 18.1041 11.4998 18.2422 11.4998C18.3803 11.4998 18.4922 11.6117 18.4922 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M5.86719 11.7498H5.74219M5.99219 11.7498C5.99219 11.8878 5.88026 11.9998 5.74219 11.9998C5.60412 11.9998 5.49219 11.8878 5.49219 11.7498C5.49219 11.6117 5.60412 11.4998 5.74219 11.4998C5.88026 11.4998 5.99219 11.6117 5.99219 11.7498Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]],h_=[["path",{d:"M20.317 4.3698a19.7913 19.7913 0 00-4.8851-1.5152.0741.0741 0 00-.0785.0371c-.211.3753-.4447.8648-.6083 1.2495-1.8447-.2762-3.68-.2762-5.4868 0-.1636-.3933-.4058-.8742-.6177-1.2495a.077.077 0 00-.0785-.037 19.7363 19.7363 0 00-4.8852 1.515.0699.0699 0 00-.0321.0277C.5334 9.0458-.319 13.5799.0992 18.0578a.0824.0824 0 00.0312.0561c2.0528 1.5076 4.0413 2.4228 5.9929 3.0294a.0777.0777 0 00.0842-.0276c.4616-.6304.8731-1.2952 1.226-1.9942a.076.076 0 00-.0416-.1057c-.6528-.2476-1.2743-.5495-1.8722-.8923a.077.077 0 01-.0076-.1277c.1258-.0943.2517-.1923.3718-.2914a.0743.0743 0 01.0776-.0105c3.9278 1.7933 8.18 1.7933 12.0614 0a.0739.0739 0 01.0785.0095c.1202.099.246.1981.3728.2924a.077.077 0 01-.0066.1276 12.2986 12.2986 0 01-1.873.8914.0766.0766 0 00-.0407.1067c.3604.698.7719 1.3628 1.225 1.9932a.076.076 0 00.0842.0286c1.961-.6067 3.9495-1.5219 6.0023-3.0294a.077.077 0 00.0313-.0552c.5004-5.177-.8382-9.6739-3.5485-13.6604a.061.061 0 00-.0312-.0286zM8.02 15.3312c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9555-2.4189 2.157-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.9555 2.4189-2.1569 2.4189zm7.9748 0c-1.1825 0-2.1569-1.0857-2.1569-2.419 0-1.3332.9554-2.4189 2.1569-2.4189 1.2108 0 2.1757 1.0952 2.1568 2.419 0 1.3332-.946 2.4189-2.1568 2.4189Z",fill:"currentColor",key:"0"}]],g_=[["path",{d:"M10.226 17.284c-2.965-.36-5.054-2.493-5.054-5.256 0-1.123.404-2.336 1.078-3.144-.292-.741-.247-2.314.09-2.965.898-.112 2.111.36 2.83 1.01.853-.269 1.752-.404 2.853-.404 1.1 0 1.999.135 2.807.382.696-.629 1.932-1.1 2.83-.988.315.606.36 2.179.067 2.942.72.854 1.101 2 1.101 3.167 0 2.763-2.089 4.852-5.098 5.234.763.494 1.28 1.572 1.28 2.807v2.336c0 .674.561 1.056 1.235.786 4.066-1.55 7.255-5.615 7.255-10.646C23.5 6.188 18.334 1 11.978 1 5.62 1 .5 6.188.5 12.545c0 4.986 3.167 9.12 7.435 10.669.606.225 1.19-.18 1.19-.786V20.63a2.9 2.9 0 0 1-1.078.224c-1.483 0-2.359-.808-2.987-2.313-.247-.607-.517-.966-1.034-1.033-.27-.023-.359-.135-.359-.27 0-.27.45-.471.898-.471.652 0 1.213.404 1.797 1.235.45.651.921.943 1.483.943.561 0 .92-.202 1.437-.719.382-.381.674-.718.944-.943",fill:"currentColor",key:"0"}]],MC={AiBrain01:D8,AiBrowser:N8,AiContentGenerator01:z8,AlignLeft:i6,AppWindow:Nm,ArchiveRestore:CC,ArrowDown:Z8,ArrowLeft:H8,ArrowRight:X8,ArrowReloadHorizontal:Y8,ArrowUp:s7,ArrowUpDown:l7,ArrowTurnBackward:e7,ArrowTurnForward:n7,ArrowUpRight:p7,Beaker:dC,BellDot:g7,Browser:Nm,Brain:b7,Calendar:x7,CalendarCheckOut02:S7,ChartColumn:P7,ChevronUp:o7,ChevronsDown:V8,ChevronsUp:c7,CircleArrowShrink:M7,Clean:T7,Clock:A7,ClockArrowUp:O7,ClockArrowDown:E7,Cloud:j7,CloudOff:W7,Coffee:F7,Columns2:W3,CornerDownLeft:U8,CornerDownRight:K8,Discord:J7,DiscordLogo:h_,DateTime:q7,Github:T3,GithubLogo:g_,DragDropHorizontal:Q7,DragDropVertical:t3,EditFile:r3,ElectricPlugs:i3,Eye:vC,EyeOff:xC,Explore:k7,ExternalLink:G3,FileDiff:M6,File:f3,FileAttachment:d3,FileQuestion:h3,FileText:u3,FolderOpen:Cu,FolderEdit:C3,FolderMinus:y3,Fork:x3,GitBranch:v3,GitMerge:S3,GitPullRequest:yu,GitPullRequestArrow:yu,GitPullRequestClosed:P3,GitPullRequestDraft:M3,Globe:E3,GridView:A3,Laptop:O3,Layers:j3,Limitation:B3,ListEnd:q3,ListView:J3,Lock:Q3,Mail:t6,MailOpen:r6,Maximize2:a3,Mic:u6,Minus:d6,Minimize2:B7,MoveTo:f6,NewTab:G7,News01:h6,PackageReceive:C6,Palette:m_,PanelBottom:F6,PanelRight:B6,Paperclip:m7,Pause:y6,Pin:v6,PinOff:x6,Play:S6,Plug02:P6,Plus:T6,Puzzle:A6,Repeat:O6,SecurityCheck:j6,RotateCcw:E6,Rows2:F3,Sent:W6,SideChat:a6,Smartphone:G6,Sort:q6,SortingAZ02:J6,SortingZA01:rC,SortingOneNine:tC,SortingNineOne:Q6,Square:iC,SquareUnlock02:aC,Star:uC,TextWrap:fC,TimeSchedule:hC,UserRound:yC,ZoomIn:SC,ZoomOut:PC};$8(MC)});var Wu=globalThis.__bbPluginRuntime;if(Wu==null||Wu.pluginSdkApp==null)throw new Error('Cannot load "@get-bb/plugin-sdk/app": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ps=Wu.pluginSdkApp,AP="default"in ps?ps.default:ps,{Markdown:DP,ThreadChat:EP,ThreadTitle:NP,UrlLink:OP,definePluginApp:kh,experimental_BranchPicker:zP,experimental_Diff:jP,experimental_FileLink:ZP,experimental_Icon:F,experimental_NewThreadComposer:WP,experimental_PermissionModePicker:VP,experimental_ProviderIcon:fs,experimental_ProviderModelPicker:FP,experimental_SourceCode:HP,experimental_useAppPanel:BP,experimental_useBranches:UP,experimental_useCheckoutState:GP,experimental_useCodeTheme:KP,experimental_useFixedTabTarget:qP,experimental_useProviders:yh,experimental_useSidebarThreadActions:bh,experimental_useSidebarThreadPullRequest:ms,experimental_useSidebarThreadSplit:vh,experimental_useSidebarThreads:wh,useBbContext:YP,useBbNavigate:JP,useComposer:XP,useComposerView:QP,useEnvironmentProviders:xh,useRealtime:gn,useRealtimeConnectionState:Cn,useRpc:kn,useSdk:wr,useSettings:eL,useSidebarSplitLayout:Ih,useSidebarThreadDraft:Sh,useSidebarThreadDraftIds:_h,useSidebarThreadRowStatus:Ph,useSidebarThreadRowStatuses:tL,useSidebarThreadShortcut:Lh}=ps;var it={};Rt(it,{Activity:()=>ly,Children:()=>gs,Component:()=>Fu,Fragment:()=>xr,Profiler:()=>dy,PureComponent:()=>py,StrictMode:()=>fy,Suspense:()=>my,act:()=>hy,cache:()=>gy,cacheSignal:()=>Cy,captureOwnerStack:()=>ky,cloneElement:()=>Ir,createContext:()=>we,createElement:()=>Lo,createRef:()=>yy,default:()=>Ue,forwardRef:()=>H,isValidElement:()=>Sr,lazy:()=>by,memo:()=>rt,startTransition:()=>vy,unstable_useCacheRefresh:()=>wy,use:()=>xy,useActionState:()=>Iy,useCallback:()=>E,useContext:()=>xe,useDebugValue:()=>Sy,useDeferredValue:()=>_y,useEffect:()=>O,useEffectEvent:()=>Py,useId:()=>yn,useImperativeHandle:()=>Ly,useInsertionEffect:()=>My,useLayoutEffect:()=>ot,useMemo:()=>G,useOptimistic:()=>Ry,useReducer:()=>Hu,useRef:()=>$,useState:()=>A,useSyncExternalStore:()=>tn,useTransition:()=>Ty,version:()=>$y});var Vu=globalThis.__bbPluginRuntime;if(Vu==null||Vu.react==null)throw new Error('Cannot load "react": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var hs=Vu.react,Ue="default"in hs?hs.default:hs,{Activity:ly,Children:gs,Component:Fu,Fragment:xr,Profiler:dy,PureComponent:py,StrictMode:fy,Suspense:my,act:hy,cache:gy,cacheSignal:Cy,captureOwnerStack:ky,cloneElement:Ir,createContext:we,createElement:Lo,createRef:yy,forwardRef:H,isValidElement:Sr,lazy:by,memo:rt,startTransition:vy,unstable_useCacheRefresh:wy,use:xy,useActionState:Iy,useCallback:E,useContext:xe,useDebugValue:Sy,useDeferredValue:_y,useEffect:O,useEffectEvent:Py,useId:yn,useImperativeHandle:Ly,useInsertionEffect:My,useLayoutEffect:ot,useMemo:G,useOptimistic:Ry,useReducer:Hu,useRef:$,useState:A,useSyncExternalStore:tn,useTransition:Ty,version:$y}=hs;var Bu=globalThis.__bbPluginRuntime;if(Bu==null||Bu.reactDom==null)throw new Error('Cannot load "react-dom": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Cs=Bu.reactDom,rL="default"in Cs?Cs.default:Cs,{createPortal:ks,flushSync:oL,preconnect:iL,prefetchDNS:sL,preinit:aL,preinitModule:cL,preload:uL,preloadModule:lL,requestFormReset:dL,unstable_batchedUpdates:Mo,useFormState:pL,useFormStatus:fL,version:mL}=Cs;var Ro=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Hn(e){let t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function ys(e){return"nodeType"in e}function Ge(e){var t,n;return e?Hn(e)?e:ys(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function bs(e){let{Document:t}=Ge(e);return e instanceof t}function _r(e){return Hn(e)?!1:e instanceof Ge(e).HTMLElement}function Gu(e){return e instanceof Ge(e).SVGElement}function Bn(e){return e?Hn(e)?e.document:ys(e)?bs(e)?e:_r(e)||Gu(e)?e.ownerDocument:document:document:document}var nn=Ro?ot:O;function vs(e){let t=$(e);return nn(()=>{t.current=e}),E(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}function Rh(){let e=$(null),t=E((r,o)=>{e.current=setInterval(r,o)},[]),n=E(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}function Pr(e,t){t===void 0&&(t=[e]);let n=$(e);return nn(()=>{n.current!==e&&(n.current=e)},t),n}function Lr(e,t){let n=$();return G(()=>{let r=e(n.current);return n.current=r,r},[...t])}function To(e){let t=vs(e),n=$(null),r=E(o=>{o!==n.current&&t?.(o,n.current),n.current=o},[]);return[n,r]}function ws(e){let t=$();return O(()=>{t.current=e},[e]),t.current}var Uu={};function $o(e,t){return G(()=>{if(t)return t;let n=Uu[e]==null?0:Uu[e]+1;return Uu[e]=n,e+"-"+n},[e,t])}function Th(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce((i,s)=>{let a=Object.entries(s);for(let[c,u]of a){let l=i[c];l!=null&&(i[c]=l+e*u)}return i},{...t})}}var Un=Th(1),Ao=Th(-1);function Ay(e){return"clientX"in e&&"clientY"in e}function Ku(e){if(!e)return!1;let{KeyboardEvent:t}=Ge(e.target);return t&&e instanceof t}function Dy(e){if(!e)return!1;let{TouchEvent:t}=Ge(e.target);return t&&e instanceof t}function xs(e){if(Dy(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Ay(e)?{x:e.clientX,y:e.clientY}:null}var Mh="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function $h(e){return e.matches(Mh)?e:e.querySelector(Mh)}var Ey={display:"none"};function Ah(e){let{id:t,value:n}=e;return Ue.createElement("div",{id:t,style:Ey},n)}function Dh(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e,o={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Ue.createElement("div",{id:t,style:o,role:"status","aria-live":r,"aria-atomic":!0},n)}function Eh(){let[e,t]=A("");return{announce:E(r=>{r!=null&&t(r)},[]),announcement:e}}var Uh=we(null);function Ny(e){let t=xe(Uh);O(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Oy(){let[e]=A(()=>new Set),t=E(r=>(e.add(r),()=>e.delete(r)),[e]);return[E(r=>{let{type:o,event:i}=r;e.forEach(s=>{var a;return(a=s[o])==null?void 0:a.call(s,i)})},[e]),t]}var zy={draggable:`
2
2
  To pick up a draggable item, press the space bar.
3
3
  While dragging, use the arrow keys to move the item.
4
4
  Press space again to drop the item in its new position, or press escape to cancel.
5
- `},Ky={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function qy(e){let{announcements:t=Ky,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=Gy}=e,{announce:i,announcement:s}=zh(),a=Oo("DndLiveRegion"),[c,u]=A(!1);if(N(()=>{u(!0)},[]),By(G(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:f}=d;t.onDragMove&&i(t.onDragMove({active:m,over:f}))},onDragOver(d){let{active:m,over:f}=d;i(t.onDragOver({active:m,over:f}))},onDragEnd(d){let{active:m,over:f}=d;i(t.onDragEnd({active:m,over:f}))},onDragCancel(d){let{active:m,over:f}=d;i(t.onDragCancel({active:m,over:f}))}}),[i,t])),!c)return null;let l=Ye.createElement(Ye.Fragment,null,Ye.createElement(Nh,{id:r,value:o.draggable}),Ye.createElement(Oh,{id:a,announcement:s}));return n?vs(l,n):l}var Se;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Se||(Se={}));function Ls(){}function Ts(e,t){return G(()=>({sensor:e,options:t??{}}),[e,t])}function Yh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(()=>[...t].filter(r=>r!=null),[...t])}var At=Object.freeze({x:0,y:0});function Yy(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Jy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Qy(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function eb(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function tb(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var nb=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=tb(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Xy)};function rb(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Jh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&rb(r,a)){let u=Qy(a).reduce((d,m)=>d+Yy(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Jy)};function ob(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Xh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:At}function ib(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var sb=ib(1);function ab(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function cb(e,t,n){let r=ab(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var ub={ignoreTransform:!1};function Bo(e,t){t===void 0&&(t=ub);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Je(e).getComputedStyle(e);u&&(n=cb(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function jh(e){return Bo(e,{ignoreTransform:!0})}function lb(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function db(e,t){return t===void 0&&(t=Je(e).getComputedStyle(e)),t.position==="fixed"}function pb(e,t){t===void 0&&(t=Je(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function ol(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(xs(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!Sr(o)||Yu(o)||n.includes(o))return n;let i=Je(e).getComputedStyle(o);return o!==e&&pb(o,i)&&n.push(o),db(o,i)?n:r(o.parentNode)}return e?r(e):n}function Qh(e){let[t]=ol(e,1);return t??null}function Xu(e){return!Eo||!e?null:Fn(e)?e:ws(e)?xs(e)||e===Hn(e).scrollingElement?window:Sr(e)?e:null:null}function e5(e){return Fn(e)?e.scrollX:e.scrollLeft}function t5(e){return Fn(e)?e.scrollY:e.scrollTop}function tl(e){return{x:e5(e),y:t5(e)}}var Ae;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ae||(Ae={}));function n5(e){return!Eo||!e?!1:e===document.scrollingElement}function r5(e){let t={x:0,y:0},n=n5(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var fb={x:.2,y:.2};function mb(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=fb);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=r5(e),f={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(f.y=Ae.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(f.y=Ae.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(f.x=Ae.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(f.x=Ae.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:f,speed:h}}function hb(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function o5(e){return e.reduce((t,n)=>Bn(t,tl(n)),At)}function gb(e){return e.reduce((t,n)=>t+e5(n),0)}function Cb(e){return e.reduce((t,n)=>t+t5(n),0)}function kb(e,t){if(t===void 0&&(t=Bo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Qh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var yb=[["x",["left","right"],gb],["y",["top","bottom"],Cb]],Zo=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=ol(n),o=o5(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of yb)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Un=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function bb(e){let{EventTarget:t}=Je(e);return e instanceof t?e:Hn(e)}function Qu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var wt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(wt||(wt={}));function Zh(e){e.preventDefault()}function vb(e){e.stopPropagation()}var me;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(me||(me={}));var i5={start:[me.Space,me.Enter],cancel:[me.Esc],end:[me.Space,me.Enter,me.Tab]},wb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case me.Right:return{...n,x:n.x+25};case me.Left:return{...n,x:n.x-25};case me.Down:return{...n,y:n.y+25};case me.Up:return{...n,y:n.y-25}}},Lr=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Un(Hn(n)),this.windowListeners=new Un(Je(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(wt.Resize,this.handleCancel),this.windowListeners.add(wt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(wt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&kb(r),n(At)}handleKeyDown(t){if(Ju(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=i5,coordinateGetter:s=wb,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:At;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=zo(d,l),f={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let C=t.code,{isTop:x,isRight:y,isLeft:I,isBottom:T,maxScroll:L,minScroll:$}=r5(g),O=hb(g),B={x:Math.min(C===me.Right?O.right-O.width/2:O.right,Math.max(C===me.Right?O.left:O.left+O.width/2,d.x)),y:Math.min(C===me.Down?O.bottom-O.height/2:O.bottom,Math.max(C===me.Down?O.top:O.top+O.height/2,d.y))},ne=C===me.Right&&!y||C===me.Left&&!I,de=C===me.Down&&!T||C===me.Up&&!x;if(ne&&B.x!==d.x){let ie=g.scrollLeft+m.x,Z=C===me.Right&&ie<=L.x||C===me.Left&&ie>=$.x;if(Z&&!m.y){g.scrollTo({left:ie,behavior:a});return}Z?f.x=g.scrollLeft-ie:f.x=C===me.Right?g.scrollLeft-L.x:g.scrollLeft-$.x,f.x&&g.scrollBy({left:-f.x,behavior:a});break}else if(de&&B.y!==d.y){let ie=g.scrollTop+m.y,Z=C===me.Down&&ie<=L.y||C===me.Up&&ie>=$.y;if(Z&&!m.x){g.scrollTo({top:ie,behavior:a});return}Z?f.y=g.scrollTop-ie:f.y=C===me.Down?g.scrollTop-L.y:g.scrollTop-$.y,f.y&&g.scrollBy({top:-f.y,behavior:a});break}}this.handleMove(t,Bn(zo(d,this.referenceCoordinates),f))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Lr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=i5,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function Wh(e){return!!(e&&"distance"in e)}function Vh(e){return!!(e&&"delay"in e)}var Wo=class{constructor(t,n,r){var o;r===void 0&&(r=bb(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Hn(s),this.documentListeners=new Un(this.document),this.listeners=new Un(r),this.windowListeners=new Un(Je(s)),this.initialCoordinates=(o=_s(i))!=null?o:At,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(wt.Resize,this.handleCancel),this.windowListeners.add(wt.DragStart,Zh),this.windowListeners.add(wt.VisibilityChange,this.handleCancel),this.windowListeners.add(wt.ContextMenu,Zh),this.documentListeners.add(wt.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Vh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Wh(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(wt.Click,vb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(wt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=_s(t))!=null?n:At,u=zo(o,c);if(!r&&a){if(Wh(a)){if(a.tolerance!=null&&Qu(u,a.tolerance))return this.handleCancel();if(Qu(u,a.distance))return this.handleStart()}if(Vh(a)&&Qu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===me.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},xb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},Ms=class extends Wo{constructor(t){let{event:n}=t,r=Hn(n.target);super(t,xb,r)}};Ms.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Ib={move:{name:"mousemove"},end:{name:"mouseup"}},nl;(function(e){e[e.RightClick=2]="RightClick"})(nl||(nl={}));var Vo=class extends Wo{constructor(t){super(t,Ib,Hn(t.event.target))}};Vo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===nl.RightClick?!1:(r?.({event:n}),!0)}}];var el={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},Fo=class extends Wo{constructor(t){super(t,el)}static setup(){return window.addEventListener(el.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(el.move.name,t)};function t(){}}};Fo.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var jo;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(jo||(jo={}));var Rs;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Rs||(Rs={}));function Sb(e){let{acceleration:t,activator:n=jo.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=Rs.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,f=Pb({delta:d,disabled:!i}),[h,g]=$h(),C=R({x:0,y:0}),x=R({x:0,y:0}),y=G(()=>{switch(n){case jo.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case jo.DraggableRect:return o}},[n,o,c]),I=R(null),T=E(()=>{let $=I.current;if(!$)return;let O=C.current.x*x.current.x,B=C.current.y*x.current.y;$.scrollBy(O,B)},[]),L=G(()=>a===Rs.TreeOrder?[...u].reverse():u,[a,u]);N(()=>{if(!i||!u.length||!y){g();return}for(let $ of L){if(r?.($)===!1)continue;let O=u.indexOf($),B=l[O];if(!B)continue;let{direction:ne,speed:de}=mb($,B,y,t,m);for(let ie of["x","y"])f[ie][ne[ie]]||(de[ie]=0,ne[ie]=0);if(de.x>0||de.y>0){g(),I.current=$,h(T,s),C.current=de,x.current=ne;return}}C.current={x:0,y:0},x.current={x:0,y:0},g()},[t,T,r,g,i,s,JSON.stringify(y),JSON.stringify(f),h,u,L,l,JSON.stringify(m)])}var _b={x:{[Ae.Backward]:!1,[Ae.Forward]:!1},y:{[Ae.Backward]:!1,[Ae.Forward]:!1}};function Pb(e){let{delta:t,disabled:n}=e,r=Ss(t);return Pr(o=>{if(n||!r||!o)return _b;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Ae.Backward]:o.x[Ae.Backward]||i.x===-1,[Ae.Forward]:o.x[Ae.Forward]||i.x===1},y:{[Ae.Backward]:o.y[Ae.Backward]||i.y===-1,[Ae.Forward]:o.y[Ae.Forward]||i.y===1}}},[n,t,r])}function Lb(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Pr(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function Mb(e,t){return G(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var Ho;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Ho||(Ho={}));var rl;(function(e){e.Optimized="optimized"})(rl||(rl={}));var Fh=new Map;function Rb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=A(null),{frequency:a,measure:c,strategy:u}=o,l=R(e),d=C(),m=_r(d),f=E(function(x){x===void 0&&(x=[]),!m.current&&s(y=>y===null?x:y.concat(x.filter(I=>!y.includes(I))))},[m]),h=R(null),g=Pr(x=>{if(d&&!n)return Fh;if(!x||x===Fh||l.current!==e||i!=null){let y=new Map;for(let I of e){if(!I)continue;if(i&&i.length>0&&!i.includes(I.id)&&I.rect.current){y.set(I.id,I.rect.current);continue}let T=I.node.current,L=T?new Zo(c(T),T):null;I.rect.current=L,L&&y.set(I.id,L)}return y}return x},[e,i,n,d,c]);return N(()=>{l.current=e},[e]),N(()=>{d||f()},[n,d]),N(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),N(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{f(),h.current=null},a))},[a,d,f,...r]),{droppableRects:g,measureDroppableContainers:f,measuringScheduled:i!=null};function C(){switch(u){case Ho.Always:return!1;case Ho.BeforeDragging:return n;default:return!n}}}function s5(e,t){return Pr(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function Tb(e,t){return s5(e,t)}function Ab(e){let{callback:t,disabled:n}=e,r=Is(t),o=G(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return N(()=>()=>o?.disconnect(),[o]),o}function As(e){let{callback:t,disabled:n}=e,r=Is(t),o=G(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return N(()=>()=>o?.disconnect(),[o]),o}function $b(e){return new Zo(Bo(e),e)}function Hh(e,t,n){t===void 0&&(t=$b);let[r,o]=A(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=Ab({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=As({callback:i});return tn(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Db(e){let t=s5(e);return Xh(e,t)}var Bh=[];function Eb(e){let t=R(e),n=Pr(r=>e?r&&r!==Bh&&e&&t.current&&e.parentNode===t.current.parentNode?r:ol(e):Bh,[e]);return N(()=>{t.current=e},[e]),n}function Nb(e){let[t,n]=A(null),r=R(e),o=E(i=>{let s=Xu(i.target);s&&n(a=>a?(a.set(s,tl(s)),new Map(a)):null)},[]);return N(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=Xu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,tl(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=Xu(c);u?.removeEventListener("scroll",o)})}},[o,e]),G(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Bn(i,s),At):o5(e):At,[e,t])}function Uh(e,t){t===void 0&&(t=[]);let n=R(null);return N(()=>{n.current=null},t),N(()=>{let r=e!==At;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?zo(e,n.current):At}function Ob(e){N(()=>{if(!Eo)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function zb(e,t){return G(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function a5(e){return G(()=>e?lb(e):null,[e])}var Gh=[];function jb(e,t){t===void 0&&(t=Bo);let[n]=e,r=a5(n?Je(n):null),[o,i]=A(Gh);function s(){i(()=>e.length?e.map(c=>n5(c)?r:new Zo(t(c),c)):Gh)}let a=As({callback:s});return tn(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function Zb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return Sr(t)?t:e}function Wb(e){let{measure:t}=e,[n,r]=A(null),o=E(u=>{for(let{target:l}of u)if(Sr(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=As({callback:o}),s=E(u=>{let l=Zb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=No(s);return G(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var Vb=[{sensor:Ms,options:{}},{sensor:Lr,options:{}}],Fb={current:{}},Ps={draggable:{measure:jh},droppable:{measure:jh,strategy:Ho.WhileDragging,frequency:rl.Optimized},dragOverlay:{measure:Bo}},Gn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},Hb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Gn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ls},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Ps,measureDroppableContainers:Ls,windowRect:null,measuringScheduled:!1},Bb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ls,draggableNodes:new Map,over:null,measureDroppableContainers:Ls},$s=ve(Bb),Ub=ve(Hb);function Gb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Gn}}}function Kb(e,t){switch(t.type){case Se.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Se.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Se.DragEnd:case Se.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Se.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Gn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case Se.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Gn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case Se.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Gn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function qb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=we($s),i=Ss(r),s=Ss(n?.id);return N(()=>{if(!t&&!r&&i&&s!=null){if(!Ju(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=Eh(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Yb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Jb(e){return G(()=>({draggable:{...Ps.draggable,...e?.draggable},droppable:{...Ps.droppable,...e?.droppable},dragOverlay:{...Ps.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Xb(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=R(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;tn(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=Xh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Qh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var c5=ve({...At,scaleX:1,scaleY:1}),yn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(yn||(yn={}));var u5=He(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=Vb,collisionDetection:d=nb,measuring:m,modifiers:f,...h}=t,g=Gu(Kb,void 0,Gb),[C,x]=g,[y,I]=Uy(),[T,L]=A(yn.Uninitialized),$=T===yn.Initialized,{draggable:{active:O,nodes:B,translate:ne},droppable:{containers:de}}=C,ie=O!=null?B.get(O):null,Z=R({initial:null,translated:null}),oe=G(()=>{var Le;return O!=null?{id:O,data:(Le=ie?.data)!=null?Le:Fb,rect:Z}:null},[O,ie]),re=R(null),[Ne,kt]=A(null),[Ue,jn]=A(null),yt=_r(h,Object.values(h)),Lt=Oo("DndDescribedBy",s),dn=G(()=>de.getEnabled(),[de]),be=Jb(m),{droppableRects:je,measureDroppableContainers:jt,measuringScheduled:Mt}=Rb(dn,{dragging:$,dependencies:[ne.x,ne.y],config:be.droppable}),Ze=Lb(B,O),Yt=G(()=>Ue?_s(Ue):null,[Ue]),Zn=Ro(),Zt=Tb(Ze,be.draggable.measure);Xb({activeNode:O!=null?B.get(O):null,config:Zn.layoutShiftCompensation,initialRect:Zt,measure:be.draggable.measure});let he=Hh(Ze,be.draggable.measure,Zt),bt=Hh(Ze?Ze.parentElement:null),J=R({activatorEvent:null,active:null,activeNode:Ze,collisionRect:null,collisions:null,droppableRects:je,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:de,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Wn=de.getNodeFor((n=J.current.over)==null?void 0:n.id),Ge=Wb({measure:be.dragOverlay.measure}),Rt=(r=Ge.nodeRef.current)!=null?r:Ze,mt=$?(o=Ge.rect)!=null?o:he:null,ot=!!(Ge.nodeRef.current&&Ge.rect),pn=Db(ot?null:he),fn=a5(Rt?Je(Rt):null),We=Eb($?Wn??Ze:null),Jt=jb(We),Wt=Yb(f,{transform:{x:ne.x-pn.x,y:ne.y-pn.y,scaleX:1,scaleY:1},activatorEvent:Ue,active:oe,activeNodeRect:he,containerNodeRect:bt,draggingNodeRect:mt,over:J.current.over,overlayNodeRect:Ge.rect,scrollableAncestors:We,scrollableAncestorRects:Jt,windowRect:fn}),W=Yt?Bn(Yt,ne):null,q=Nb(We),fs=Uh(q),ms=Uh(q,[he]),Xt=Bn(Wt,fs),ht=mt?sb(mt,Wt):null,Qt=oe&&ht?d({active:oe,collisionRect:ht,droppableRects:je,droppableContainers:dn,pointerCoordinates:W}):null,_o=eb(Qt,"id"),[Ce,Po]=A(null),kr=ot?Wt:Bn(Wt,ms),yr=ob(kr,(i=Ce?.rect)!=null?i:null,he),Lo=R(null),Mo=E((Le,Me)=>{let{sensor:Re,options:Vt}=Me;if(re.current==null)return;let Ke=B.get(re.current);if(!Ke)return;let qe=Le.nativeEvent,vt=new Re({active:re.current,activeNode:Ke,event:qe,options:Vt,context:J,onAbort(fe){if(!B.get(fe))return;let{onDragAbort:Te}=yt.current,b={id:fe};Te?.(b),y({type:"onDragAbort",event:b})},onPending(fe,Ve,Te,b){if(!B.get(fe))return;let{onDragPending:M}=yt.current,Q={id:fe,constraint:Ve,initialCoordinates:Te,offset:b};M?.(Q),y({type:"onDragPending",event:Q})},onStart(fe){let Ve=re.current;if(Ve==null)return;let Te=B.get(Ve);if(!Te)return;let{onDragStart:b}=yt.current,_={activatorEvent:qe,active:{id:Ve,data:Te.data,rect:Z}};Do(()=>{b?.(_),L(yn.Initializing),x({type:Se.DragStart,initialCoordinates:fe,active:Ve}),y({type:"onDragStart",event:_}),kt(Lo.current),jn(qe)})},onMove(fe){x({type:Se.DragMove,coordinates:fe})},onEnd:mn(Se.DragEnd),onCancel:mn(Se.DragCancel)});Lo.current=vt;function mn(fe){return async function(){let{active:Te,collisions:b,over:_,scrollAdjustedTranslate:M}=J.current,Q=null;if(Te&&M){let{cancelDrop:te}=yt.current;Q={activatorEvent:qe,active:Te,collisions:b,delta:M,over:_},fe===Se.DragEnd&&typeof te=="function"&&await Promise.resolve(te(Q))&&(fe=Se.DragCancel)}re.current=null,Do(()=>{x({type:fe}),L(yn.Uninitialized),Po(null),kt(null),jn(null),Lo.current=null;let te=fe===Se.DragEnd?"onDragEnd":"onDragCancel";if(Q){let ke=yt.current[te];ke?.(Q),y({type:te,event:Q})}})}}},[B]),hs=E((Le,Me)=>(Re,Vt)=>{let Ke=Re.nativeEvent,qe=B.get(Vt);if(re.current!==null||!qe||Ke.dndKit||Ke.defaultPrevented)return;let vt={active:qe};Le(Re,Me.options,vt)===!0&&(Ke.dndKit={capturedBy:Me.sensor},re.current=Vt,Mo(Re,Me))},[B,Mo]),Vn=Mb(l,hs);Ob(l),tn(()=>{he&&T===yn.Initializing&&L(yn.Initialized)},[he,T]),N(()=>{let{onDragMove:Le}=yt.current,{active:Me,activatorEvent:Re,collisions:Vt,over:Ke}=J.current;if(!Me||!Re)return;let qe={active:Me,activatorEvent:Re,collisions:Vt,delta:{x:Xt.x,y:Xt.y},over:Ke};Do(()=>{Le?.(qe),y({type:"onDragMove",event:qe})})},[Xt.x,Xt.y]),N(()=>{let{active:Le,activatorEvent:Me,collisions:Re,droppableContainers:Vt,scrollAdjustedTranslate:Ke}=J.current;if(!Le||re.current==null||!Me||!Ke)return;let{onDragOver:qe}=yt.current,vt=Vt.get(_o),mn=vt&&vt.rect.current?{id:vt.id,rect:vt.rect.current,data:vt.data,disabled:vt.disabled}:null,fe={active:Le,activatorEvent:Me,collisions:Re,delta:{x:Ke.x,y:Ke.y},over:mn};Do(()=>{Po(mn),qe?.(fe),y({type:"onDragOver",event:fe})})},[_o]),tn(()=>{J.current={activatorEvent:Ue,active:oe,activeNode:Ze,collisionRect:ht,collisions:Qt,droppableRects:je,draggableNodes:B,draggingNode:Rt,draggingNodeRect:mt,droppableContainers:de,over:Ce,scrollableAncestors:We,scrollAdjustedTranslate:Xt},Z.current={initial:mt,translated:ht}},[oe,Ze,Qt,ht,B,Rt,mt,je,de,Ce,We,Xt]),Sb({...Zn,delta:ne,draggingRect:ht,pointerCoordinates:W,scrollableAncestors:We,scrollableAncestorRects:Jt});let Vu=G(()=>({active:oe,activeNode:Ze,activeNodeRect:he,activatorEvent:Ue,collisions:Qt,containerNodeRect:bt,dragOverlay:Ge,draggableNodes:B,droppableContainers:de,droppableRects:je,over:Ce,measureDroppableContainers:jt,scrollableAncestors:We,scrollableAncestorRects:Jt,measuringConfiguration:be,measuringScheduled:Mt,windowRect:fn}),[oe,Ze,he,Ue,Qt,bt,Ge,B,de,je,Ce,jt,We,Jt,be,Mt,fn]),Fu=G(()=>({activatorEvent:Ue,activators:Vn,active:oe,activeNodeRect:he,ariaDescribedById:{draggable:Lt},dispatch:x,draggableNodes:B,over:Ce,measureDroppableContainers:jt}),[Ue,Vn,oe,he,x,Lt,B,Ce,jt]);return Ye.createElement(qh.Provider,{value:I},Ye.createElement($s.Provider,{value:Fu},Ye.createElement(Ub.Provider,{value:Vu},Ye.createElement(c5.Provider,{value:yr},u)),Ye.createElement(qb,{disabled:a?.restoreFocus===!1})),Ye.createElement(qy,{...a,hiddenTextDescribedById:Lt}));function Ro(){let Le=Ne?.autoScrollEnabled===!1,Me=typeof c=="object"?c.enabled===!1:c===!1,Re=$&&!Le&&!Me;return typeof c=="object"?{...c,enabled:Re}:{enabled:Re}}}),Qb=ve(null),Kh="button",ev="Draggable";function Ds(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=Oo(ev),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=we($s),{role:f=Kh,roleDescription:h="draggable",tabIndex:g=0}=o??{},C=c?.id===t,x=we(C?c5:Qb),[y,I]=No(),[T,L]=No(),$=zb(s,t),O=_r(n);tn(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:T,data:O}),()=>{let ne=d.get(t);ne&&ne.key===i&&d.delete(t)}),[d,t]);let B=G(()=>({role:f,tabIndex:g,"aria-disabled":r,"aria-pressed":C&&f===Kh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,f,g,C,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:B,isDragging:C,listeners:r?void 0:$,node:y,over:m,setNodeRef:I,setActivatorNodeRef:L,transform:x}}var tv="Droppable",nv={timeout:25};function Es(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=Oo(tv),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=we($s),l=R({disabled:n}),d=R(!1),m=R(null),f=R(null),{disabled:h,updateMeasurementsFor:g,timeout:C}={...nv,...o},x=_r(g??r),y=E(()=>{if(!d.current){d.current=!0;return}f.current!=null&&clearTimeout(f.current),f.current=setTimeout(()=>{u(Array.isArray(x.current)?x.current:[x.current]),f.current=null},C)},[C]),I=As({callback:y,disabled:h||!s}),T=E((B,ne)=>{I&&(ne&&(I.unobserve(ne),d.current=!1),B&&I.observe(B))},[I]),[L,$]=No(T),O=_r(t);return N(()=>{!I||!L.current||(I.disconnect(),d.current=!1,I.observe(L.current))},[L,I]),N(()=>(a({type:Se.RegisterDroppable,element:{id:r,key:i,disabled:n,node:L,rect:m,data:O}}),()=>a({type:Se.UnregisterDroppable,key:i,id:r})),[r]),N(()=>{n!==l.current.disabled&&(a({type:Se.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:L,over:c,setNodeRef:$}}var il=globalThis.__bbPluginRuntime;if(il==null||il.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ns=il.sonner,NL="default"in Ns?Ns.default:Ns,{Toaster:OL,toast:at,useSonner:zL}=Ns;var rv=Object.defineProperty,al=(e,t)=>rv(e,"name",{value:t,configurable:!0});function sl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}al(sl,"setRef");function l5(...e){return t=>{let n=!1,r=e.map(o=>{let i=sl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():sl(e[o],null)}}}}al(l5,"composeRefs");function cl(...e){return E(l5(...e),e)}al(cl,"useComposedRefs");var ov=Object.defineProperty,$t=(e,t)=>ov(e,"name",{value:t,configurable:!0});function d5(e){let t=H((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];ul(o)&&typeof Os=="function"&&(o=Os(o._payload)),ys.forEach(o,m=>{if(h5(m)){a=!0;let f=m,h="child"in f.props?f.props.child:f.props.children;ul(h)&&typeof Os=="function"&&(h=Os(h._payload)),s=sv(f,h),c.push(s?.props?.children)}else c.push(m)}),s?s=xr(s,void 0,c):!a&&ys.count(o)===1&&Ir(o)&&(s=o);let u=s?m5(s):void 0,l=cl(r,u);if(!s){if(o||o===0)throw new Error(a?uv(e):cv(e));return o}let d=f5(i,s.props??{});return s.type!==wr&&(d.ref=r?l:u),xr(s,d)});return t.displayName=`${e}.Slot`,t}$t(d5,"createSlot");var bn=d5("Slot"),p5=Symbol.for("radix.slottable");function iv(e){let t=$t(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=p5,t}$t(iv,"createSlottable");var sv=$t((e,t)=>{if("child"in e.props){let n=e.props.child;return Ir(n)?xr(n,void 0,e.props.children(n.props.children)):null}return Ir(t)?t:null},"getSlottableElementFromSlottable");function f5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}$t(f5,"mergeProps");function m5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}$t(m5,"getElementRef");function h5(e){return Ir(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p5}$t(h5,"isSlottable");var av=Symbol.for("react.lazy");function ul(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===av&&"_payload"in e&&g5(e._payload)}$t(ul,"isLazyComponent");function g5(e){return typeof e=="object"&&e!==null&&"then"in e}$t(g5,"isPromiseLike");var cv=$t(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),uv=$t(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Os=st[" use ".trim().toString()];var ll=globalThis.__bbPluginRuntime;if(ll==null||ll.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var zs=ll.classVarianceAuthority,FL="default"in zs?zs.default:zs,{cva:C5,cx:HL}=zs;var dl=globalThis.__bbPluginRuntime;if(dl==null||dl.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var js=dl.clsx,UL="default"in js?js.default:js,{clsx:k5}=js;var pl=globalThis.__bbPluginRuntime;if(pl==null||pl.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Zs=pl.tailwindMerge,KL="default"in Zs?Zs.default:Zs,{createTailwindMerge:qL,extendTailwindMerge:YL,fromTheme:JL,getDefaultConfig:XL,mergeConfigs:QL,twJoin:eM,twMerge:y5,validators:tM}=Zs;function w(...e){return y5(k5(e))}var Ws="transition-colors duration-150 hover:duration-0",Ft="transition-none";var fl=globalThis.__bbPluginRuntime;if(fl==null||fl.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Vs=fl.jsxRuntime,aM="default"in Vs?Vs.default:Vs,{Fragment:ct,jsx:p,jsxs:v}=Vs;var Fs=C5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${Ws} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Xe=H(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>p(r?bn:"button",{className:w(Fs({variant:t,size:n,className:e})),ref:i,...o}));Xe.displayName="Button";var ml=globalThis.__bbPluginRuntime;if(ml==null||ml.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Hs=ml.radixPopover,hM="default"in Hs?Hs.default:Hs,{Anchor:b5,Arrow:gM,Close:CM,Content:v5,Popover:kM,PopoverAnchor:yM,PopoverArrow:bM,PopoverClose:vM,PopoverContent:wM,PopoverPortal:xM,PopoverTrigger:IM,Portal:w5,Root:x5,Trigger:I5,createPopoverScope:SM}=Hs;function $e(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var dv="select-none",pv=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),vn=e=>w(dv,e);function fv(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!pv.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function Uo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!fv(t)||e!==null&&!e.contains(t)||t.blur()}function wn(){Uo(null)}function S5(){Uo(null)}function nn(e){e.preventDefault()}var hl="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{hl="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{hl="pointer"},{capture:!0}));function _5(){return hl==="keyboard"}var Bs=new Map;function mv(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Bs.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Bs.delete(e))}}},Bs.set(e,t),t}function hv(e,t){return mv(e)?.subscribe(t)??(()=>{})}function gv(e){return typeof window>"u"||!window.matchMedia?!1:Bs.get(e)?.mql.matches??window.matchMedia(e).matches}function Us(e){return en(t=>hv(e,t),()=>gv(e),()=>!1)}var Cv="(max-width: 767px)",kv=ve(null);function P5(){let e=we(kv),t=Us(Cv);return e!==null?e:t}var yv="(pointer: coarse)";function Gs(){return Us(yv)}var bv=120,Ys={width:"auto",minWidth:"auto",maxWidth:"none"},gl="--bb-drawer-keyboard-inset",vv=80;function qs(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(gl))}function wv({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=vv?r:0}function xv(e,t){N(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){qs(n);return}let a=wv({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(gl);return}n.style.bottom=`${a}px`,n.style.setProperty(gl,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),qs(n)}},[t,e])}function Iv(){let e=P5()?"drawer":"floating",t=Gs();return{presentation:e,supportsHover:e==="floating"&&!t}}function Mr(e,t,n=!1){let{presentation:r}=Iv(),o=r==="drawer",[i,s]=A(n),a=e!==void 0,c=a?e:i,u=E(l=>{c&&!l&&o&&S5(),a||s(l),t?.(l)},[o,a,t,c]);return G(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var Kn=H(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=vn(s),l=m=>{o?.(m),m.defaultPrevented||(t||wn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?p(bn,{ref:c,onClick:l,onMouseDown:nn,className:u,...d,...a,children:i}):p("button",{ref:c,type:"button",onClick:l,onMouseDown:nn,className:u,...d,...a,children:i})});Kn.displayName="MobileTrigger";var Sv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],_v=new Set(Sv);function Rr(e){let t={};for(let n of Object.keys(e))_v.has(n)||(t[n]=e[n]);return t}function Pv({open:e,enabled:t=!0}){let[n,r]=A(!1),o=E(()=>r(!0),[]);return N(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,bv);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function Tr({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=Pv({open:e});return!e&&!l?null:p(Nv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:p("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var L5="cubic-bezier(0.32, 0.72, 0, 1)",Lv=.25,Mv=450,Rv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Ks=new WeakMap;function Tv(e){return Array.from(e.querySelectorAll(Rv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function Av(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function $v(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&Av(n,t))return;let r=Tv(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function Dv(e,t){let n=Ks.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&$v(i,a))};n={entries:r,handleKeyDown:o},Ks.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Ks.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),Ks.delete(e))}}function Ev({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=R(null);it(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=Dv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=R(n);it(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function Nv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=R(null),m=R(null),f=R(null),h=R(null),g=kn(),C=$e(),x=`transform ${c}ms ${L5}`,y=`opacity ${c}ms ${L5}`,I=R(t);it(()=>{I.current=t},[t]);let T=E(()=>{Uo(d.current),qs(d.current),I.current(!1)},[]),L=E(()=>{Uo(d.current),qs(d.current)},[]);Ev({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:L,open:e,panelRef:d,requestClose:T}),xv(d,e);let $=E(Z=>{h.current!==Z&&(h.current=Z,u?.(Z))},[u]);N(()=>{h.current=null;let Z=window.setTimeout(()=>$(e),c+50);return()=>window.clearTimeout(Z)},[c,e,$]);let O=E((Z,oe,re)=>{let Ne=d.current,kt=m.current;Ne===null||kt===null||(Ne.style.transition=re?x:"none",Ne.style.transform=`translate3d(0, ${Z}px, 0)`,kt.style.transition=re?y:"none",kt.style.opacity=String(Math.max(0,Math.min(1,1-Z/oe))))},[y,x]),B=E(Z=>{if(!e||Z.button!==0)return;Z.currentTarget.setPointerCapture(Z.pointerId);let oe=Date.now(),re=Math.max(d.current?.clientHeight??0,1);f.current={pointerId:Z.pointerId,startY:Z.clientY,lastY:Z.clientY,lastTimeMs:oe,velocityY:0,height:re},O(0,re,!1),Z.preventDefault()},[e,O]),ne=E(Z=>{let oe=f.current;if(oe===null||oe.pointerId!==Z.pointerId)return;let re=Date.now(),Ne=re-oe.lastTimeMs;Ne>0&&(oe.velocityY=(Z.clientY-oe.lastY)/Ne*1e3,oe.lastY=Z.clientY,oe.lastTimeMs=re),O(Math.max(0,Z.clientY-oe.startY),oe.height,!1),Z.preventDefault()},[O]),de=E((Z,oe)=>{let re=f.current;if(re===null||re.pointerId!==Z.pointerId)return;f.current=null;let Ne=Math.max(0,Z.clientY-re.startY);!oe&&(Ne>=re.height*Lv||re.velocityY>=Mv)?(O(re.height,re.height,!0),T()):O(0,re.height,!0),Z.preventDefault()},[T,O]),ie=typeof document>"u"?null:document.body;return ie===null?null:vs(v(ct,{children:[p("div",{ref:m,...C,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?T:void 0,onTouchMove:Z=>Z.preventDefault()}),v("div",{ref:d,...C,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:w("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:x,willChange:e?"transform":void 0},onTransitionEnd:Z=>{Z.currentTarget===Z.target&&Z.propertyName==="transform"&&$(e)},children:[p("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:B,onPointerMove:ne,onPointerUp:Z=>de(Z,!1),onPointerCancel:Z=>de(Z,!0),children:p("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:p("h2",{id:g,className:"sr-only",children:o}),l]})]}),ie)}var Cl=ve({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function kl(){return we(Cl)}function Js({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Mr(t,n,r);return i.isCompactViewport?p(Cl.Provider,{value:i,children:e}):p(x5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Cl.Provider,{value:i,children:e})})}var Go=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=kl();return i?p(Kn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(I5,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),nn(c)},...r,children:t})});Go.displayName="PopoverTrigger";var Ko=H(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:f,open:h,onOpenChange:g}=kl(),C=Gs(),x=$e();if(N(()=>{if(!h||f||C||!l)return;let y=window.requestAnimationFrame(()=>{let I=l.current;I?.focus(),I instanceof HTMLInputElement&&I.select()});return()=>window.cancelAnimationFrame(y)},[l,f,C,h]),f){let{style:y,...I}=Rr(d);return p(Tr,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:p("div",{ref:m,className:w("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...I,style:{...y,...Ys},children:r})})}return p(w5,{children:p(v5,{ref:m,...x,align:t,sideOffset:n,onOpenAutoFocus:y=>{(C||l)&&y.preventDefault(),C||u?.(y)},className:w("z-50 w-96 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});Ko.displayName="PopoverContent";var Ov=H(({children:e,...t},n)=>{let{isCompactViewport:r}=kl();return r?p(ct,{children:e}):p(b5,{ref:n,...t,children:e})});Ov.displayName="PopoverAnchor";var zv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),jv=new Set(["working","background","queued","scheduled"]);function Zv(e){return!jv.has(e.state.kind)}function Wv(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function M5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!Zv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=Wv(e,t)}function R5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)zv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function T5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}function A5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.attentionFlags.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),T5(o.attentionFlags,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,attentionIds:r}}function $5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.attentionIds)e?.attentionIds.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function D5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function E5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function N5(e,t){let n=R(null),r=R(null),o=R(void 0),[i,s]=A(()=>new Map),a=R(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=A5(e,t),d=$5(n.current,l);n.current=l,r.current=e,o.current=t,c=D5(i,d),c!==i&&(a.current=c,s(c))}let u=E(l=>{let d=E5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var ue={};Tt(ue,{$brand:()=>$l,$input:()=>op,$output:()=>rp,INVALID:()=>tt,NEVER:()=>Al,TimePrecision:()=>hp,ZodAny:()=>r2,ZodArray:()=>a2,ZodBase64:()=>Kc,ZodBase64URL:()=>qc,ZodBigInt:()=>mo,ZodBigIntFormat:()=>Xc,ZodBoolean:()=>fo,ZodCIDRv4:()=>Uc,ZodCIDRv6:()=>Gc,ZodCUID:()=>jc,ZodCUID2:()=>Zc,ZodCatch:()=>L2,ZodCodec:()=>Wi,ZodCompileAsyncError:()=>Et,ZodCompileUnsupportedError:()=>ee,ZodCreditCard:()=>qf,ZodCustom:()=>Vi,ZodCustomStringFormat:()=>pr,ZodDate:()=>Ei,ZodDefault:()=>w2,ZodDiscriminatedUnion:()=>u2,ZodE164:()=>Yc,ZodEmail:()=>Ec,ZodEmoji:()=>Oc,ZodEnum:()=>uo,ZodError:()=>JI,ZodExactOptional:()=>nu,ZodFile:()=>k2,ZodFirstPartyTypeKind:()=>V2,ZodFunction:()=>z2,ZodGUID:()=>Nc,ZodIBAN:()=>Yf,ZodIPv4:()=>Hc,ZodIPv6:()=>Bc,ZodISODate:()=>An,ZodISODateTime:()=>Tn,ZodISODuration:()=>Dn,ZodISOTime:()=>$n,ZodInstanceOf:()=>W2,ZodIntersection:()=>l2,ZodIssueCode:()=>eS,ZodJWT:()=>Jc,ZodKSUID:()=>Fc,ZodLazy:()=>E2,ZodLiteral:()=>C2,ZodMAC:()=>Kf,ZodMap:()=>h2,ZodNaN:()=>R2,ZodNanoID:()=>zc,ZodNever:()=>i2,ZodNonOptional:()=>ru,ZodNull:()=>t2,ZodNullable:()=>v2,ZodNumber:()=>po,ZodNumberFormat:()=>fr,ZodObject:()=>Oi,ZodOptional:()=>ji,ZodPipe:()=>Zi,ZodPrefault:()=>I2,ZodPreprocess:()=>T2,ZodPromise:()=>O2,ZodReadonly:()=>A2,ZodRealError:()=>ft,ZodRecord:()=>co,ZodSet:()=>g2,ZodString:()=>lo,ZodStringFormat:()=>le,ZodSuccess:()=>P2,ZodSymbol:()=>Qf,ZodTemplateLiteral:()=>D2,ZodTransform:()=>y2,ZodTuple:()=>p2,ZodType:()=>Y,ZodULID:()=>Wc,ZodURL:()=>Di,ZodUUID:()=>Gt,ZodUndefined:()=>e2,ZodUnion:()=>zi,ZodUnknown:()=>o2,ZodVoid:()=>s2,ZodXID:()=>Vc,ZodXor:()=>c2,_ZodString:()=>Dc,_default:()=>x2,_function:()=>sg,any:()=>O9,array:()=>Ni,base64:()=>C9,base64url:()=>k9,bigint:()=>A9,boolean:()=>Xf,catch:()=>M2,check:()=>ag,cidrv4:()=>h9,cidrv6:()=>g9,clone:()=>se,codec:()=>ng,coerce:()=>H2,compile:()=>cp,config:()=>ye,core:()=>cn,creditCard:()=>b9,cuid:()=>a9,cuid2:()=>c9,currencyCode:()=>_9,custom:()=>cg,date:()=>j9,decode:()=>Wf,decodeAsync:()=>Ff,deepPartial:()=>vg,describe:()=>ug,discriminatedUnion:()=>B9,e164:()=>y9,email:()=>J0,emoji:()=>i9,encode:()=>Zf,encodeAsync:()=>Vf,endsWith:()=>Jr,enum:()=>eu,exactOptional:()=>b2,file:()=>X9,flattenError:()=>oi,float32:()=>L9,float64:()=>M9,formatError:()=>ii,fromJSONSchema:()=>yg,function:()=>sg,getDiscriminatedOption:()=>T1,getErrorMap:()=>nS,globalRegistry:()=>ze,gt:()=>Bt,gte:()=>Ct,guid:()=>X0,hash:()=>P9,hex:()=>S9,hostname:()=>I9,httpUrl:()=>o9,iban:()=>v9,includes:()=>qr,input:()=>xg,instanceof:()=>dg,int:()=>Ac,int32:()=>R9,int64:()=>$9,intersection:()=>d2,invertCodec:()=>rg,ipv4:()=>p9,ipv6:()=>m9,iso:()=>Fi,json:()=>fg,jwt:()=>w9,keyof:()=>Z9,ksuid:()=>d9,lazy:()=>N2,length:()=>ar,literal:()=>J9,locales:()=>Ii,looseObject:()=>F9,looseRecord:()=>G9,lowercase:()=>Gr,lt:()=>Ht,lte:()=>gt,mac:()=>f9,map:()=>K9,maxLength:()=>sr,maxSize:()=>Pn,memoizer:()=>xi,meta:()=>lg,mime:()=>Qr,minLength:()=>an,minSize:()=>Ut,multipleOf:()=>_n,nan:()=>tg,nanoid:()=>s9,nativeEnum:()=>Y9,negative:()=>vc,never:()=>Qc,nonnegative:()=>xc,nonoptional:()=>_2,nonpositive:()=>wc,normalize:()=>eo,null:()=>n2,nullable:()=>$i,nullish:()=>Q9,number:()=>Jf,object:()=>W9,optional:()=>lr,output:()=>Ig,overwrite:()=>Nt,parse:()=>Nf,parseAsync:()=>Of,partialRecord:()=>U9,pipe:()=>$c,positive:()=>bc,prefault:()=>S2,preprocess:()=>mg,prettifyError:()=>zl,promise:()=>ig,properties:()=>Xr,property:()=>Ic,readonly:()=>$2,record:()=>m2,refine:()=>j2,regex:()=>Ur,regexes:()=>St,registry:()=>qa,safeDecode:()=>Bf,safeDecodeAsync:()=>Gf,safeEncode:()=>Hf,safeEncodeAsync:()=>Uf,safeParse:()=>zf,safeParseAsync:()=>jf,set:()=>q9,setErrorMap:()=>tS,size:()=>ir,slugify:()=>oo,startsWith:()=>Yr,strictObject:()=>V9,string:()=>Ai,stringFormat:()=>x9,stringbool:()=>pg,success:()=>eg,superRefine:()=>Z2,symbol:()=>E9,templateLiteral:()=>og,toJSONSchema:()=>Lc,toLowerCase:()=>no,toUpperCase:()=>ro,toZod:()=>qo,transform:()=>tu,treeifyError:()=>Ol,trim:()=>to,tuple:()=>f2,uint32:()=>T9,uint64:()=>D9,ulid:()=>u9,undefined:()=>N9,union:()=>ho,unknown:()=>ur,uppercase:()=>Kr,url:()=>r9,util:()=>j,uuid:()=>Q0,uuidv4:()=>e9,uuidv6:()=>t9,uuidv7:()=>n9,validate:()=>si,validateAsync:()=>ai,void:()=>z9,withParser:()=>Ya,xid:()=>l9,xor:()=>H9});var cn={};Tt(cn,{$ZodAny:()=>x1,$ZodArray:()=>L1,$ZodAsyncError:()=>dt,$ZodBase64:()=>d1,$ZodBase64URL:()=>p1,$ZodBigInt:()=>Oa,$ZodBigIntFormat:()=>y1,$ZodBoolean:()=>Ci,$ZodCIDRv4:()=>u1,$ZodCIDRv6:()=>l1,$ZodCUID:()=>Jd,$ZodCUID2:()=>Xd,$ZodCatch:()=>G1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>Id,$ZodCheckEndsWith:()=>Nd,$ZodCheckGreaterThan:()=>va,$ZodCheckIncludes:()=>Dd,$ZodCheckLengthEquals:()=>Rd,$ZodCheckLessThan:()=>ba,$ZodCheckLowerCase:()=>Ad,$ZodCheckMaxLength:()=>Ld,$ZodCheckMaxSize:()=>Sd,$ZodCheckMimeType:()=>jd,$ZodCheckMinLength:()=>Md,$ZodCheckMinSize:()=>_d,$ZodCheckMultipleOf:()=>wd,$ZodCheckNumberFormat:()=>xd,$ZodCheckOverwrite:()=>Zd,$ZodCheckProperties:()=>zd,$ZodCheckProperty:()=>Od,$ZodCheckRegex:()=>Td,$ZodCheckSizeEquals:()=>Pd,$ZodCheckStartsWith:()=>Ed,$ZodCheckStringFormat:()=>Vr,$ZodCheckUpperCase:()=>$d,$ZodCodec:()=>yi,$ZodCreditCard:()=>m1,$ZodCustom:()=>ep,$ZodCustomStringFormat:()=>C1,$ZodCyclicError:()=>Ha,$ZodDate:()=>P1,$ZodDefault:()=>F1,$ZodDiscriminatedUnion:()=>A1,$ZodE164:()=>f1,$ZodEmail:()=>Bd,$ZodEmoji:()=>qd,$ZodEncodeError:()=>Sn,$ZodEnum:()=>O1,$ZodError:()=>Nl,$ZodExactOptional:()=>W1,$ZodFile:()=>j1,$ZodFunction:()=>X1,$ZodGUID:()=>Fd,$ZodIBAN:()=>h1,$ZodIPv4:()=>s1,$ZodIPv6:()=>a1,$ZodISODate:()=>r1,$ZodISODateTime:()=>n1,$ZodISODuration:()=>i1,$ZodISOTime:()=>o1,$ZodIntersection:()=>$1,$ZodJWT:()=>g1,$ZodKSUID:()=>t1,$ZodLazy:()=>bi,$ZodLiteral:()=>z1,$ZodMAC:()=>c1,$ZodMap:()=>E1,$ZodNaN:()=>K1,$ZodNanoID:()=>Yd,$ZodNever:()=>S1,$ZodNonOptional:()=>B1,$ZodNull:()=>w1,$ZodNullable:()=>V1,$ZodNumber:()=>Na,$ZodNumberFormat:()=>k1,$ZodObject:()=>C0,$ZodObjectJIT:()=>M1,$ZodOptional:()=>ja,$ZodPipe:()=>Za,$ZodPrefault:()=>H1,$ZodPreprocess:()=>q1,$ZodPromise:()=>Q1,$ZodReadonly:()=>Y1,$ZodRealError:()=>pt,$ZodRecord:()=>D1,$ZodRegistry:()=>Ka,$ZodSet:()=>N1,$ZodString:()=>er,$ZodStringFormat:()=>ae,$ZodSuccess:()=>U1,$ZodSymbol:()=>b1,$ZodTemplateLiteral:()=>J1,$ZodTransform:()=>Z1,$ZodTuple:()=>za,$ZodType:()=>K,$ZodULID:()=>Qd,$ZodURL:()=>Kd,$ZodUUID:()=>Hd,$ZodUndefined:()=>v1,$ZodUnion:()=>ki,$ZodUnknown:()=>I1,$ZodVoid:()=>_1,$ZodXID:()=>e1,$ZodXor:()=>R1,$brand:()=>$l,$constructor:()=>k,$input:()=>op,$output:()=>rp,Doc:()=>Qn,INVALID:()=>tt,JSONSchema:()=>K0,JSONSchemaGenerator:()=>Mc,NEVER:()=>Al,TimePrecision:()=>hp,URL_BAD_FORMAT:()=>Ud,URL_UNPARSEABLE:()=>pi,ZodCompileAsyncError:()=>Et,ZodCompileUnsupportedError:()=>ee,_any:()=>Ap,_array:()=>jp,_base64:()=>gc,_base64url:()=>Cc,_bigint:()=>Sp,_boolean:()=>xp,_catch:()=>jI,_check:()=>A0,_cidrv4:()=>mc,_cidrv6:()=>hc,_coercedBigint:()=>_p,_coercedBoolean:()=>Ip,_coercedDate:()=>Op,_coercedNumber:()=>Cp,_coercedString:()=>dp,_creditCard:()=>fp,_cuid:()=>ac,_cuid2:()=>cc,_custom:()=>Wp,_date:()=>Np,_decode:()=>ua,_decodeAsync:()=>da,_default:()=>NI,_discriminatedUnion:()=>II,_e164:()=>kc,_email:()=>Qa,_emoji:()=>ic,_encode:()=>ca,_encodeAsync:()=>la,_endsWith:()=>Jr,_enum:()=>RI,_file:()=>Zp,_float32:()=>yp,_float64:()=>bp,_gt:()=>Bt,_gte:()=>Ct,_guid:()=>ec,_iban:()=>mp,_includes:()=>qr,_int:()=>kp,_int32:()=>vp,_int64:()=>Pp,_intersection:()=>SI,_ipv4:()=>pc,_ipv6:()=>fc,_isoDate:()=>Pi,_isoDateTime:()=>_i,_isoDuration:()=>Mi,_isoTime:()=>Li,_jwt:()=>yc,_ksuid:()=>dc,_lazy:()=>FI,_length:()=>ar,_literal:()=>AI,_lowercase:()=>Gr,_lt:()=>Ht,_lte:()=>gt,_mac:()=>pp,_map:()=>LI,_max:()=>gt,_maxLength:()=>sr,_maxSize:()=>Pn,_mime:()=>Qr,_min:()=>Ct,_minLength:()=>an,_minSize:()=>Ut,_multipleOf:()=>_n,_nan:()=>zp,_nanoid:()=>sc,_nativeEnum:()=>TI,_negative:()=>vc,_never:()=>Dp,_nonnegative:()=>xc,_nonoptional:()=>OI,_nonpositive:()=>wc,_normalize:()=>eo,_null:()=>Tp,_nullable:()=>EI,_number:()=>gp,_optional:()=>DI,_overwrite:()=>Nt,_parse:()=>zr,_parseAsync:()=>jr,_pipe:()=>ZI,_positive:()=>bc,_promise:()=>HI,_properties:()=>Xr,_property:()=>Ic,_readonly:()=>WI,_record:()=>PI,_refine:()=>Vp,_regex:()=>Ur,_safeDecode:()=>fa,_safeDecodeAsync:()=>ha,_safeEncode:()=>pa,_safeEncodeAsync:()=>ma,_safeParse:()=>Zr,_safeParseAsync:()=>Wr,_set:()=>MI,_size:()=>ir,_slugify:()=>oo,_startsWith:()=>Yr,_string:()=>lp,_stringFormat:()=>cr,_stringbool:()=>Up,_success:()=>zI,_superRefine:()=>Fp,_symbol:()=>Mp,_templateLiteral:()=>VI,_toLowerCase:()=>no,_toUpperCase:()=>ro,_transform:()=>$I,_trim:()=>to,_tuple:()=>_I,_uint32:()=>wp,_uint64:()=>Lp,_ulid:()=>uc,_undefined:()=>Rp,_union:()=>wI,_unknown:()=>$p,_uppercase:()=>Kr,_url:()=>Si,_uuid:()=>tc,_uuidv4:()=>nc,_uuidv6:()=>rc,_uuidv7:()=>oc,_void:()=>Ep,_xid:()=>lc,_xor:()=>xI,base64Charset:()=>Ta,base64urlCharset:()=>gi,canParseURL:()=>Gd,clone:()=>se,compile:()=>cp,compileFn:()=>Ja,config:()=>ye,createStandardJSONSchemaMethod:()=>io,createToJSONSchemaMethod:()=>Kp,decode:()=>Aw,decodeAsync:()=>Dw,describe:()=>Hp,encode:()=>Tw,encodeAsync:()=>$w,extractDefs:()=>Mn,finalize:()=>Rn,flattenError:()=>oi,formatError:()=>ii,getDiscriminatedOption:()=>T1,globalConfig:()=>De,globalRegistry:()=>ze,handleUnrepresentable:()=>_e,initializeContext:()=>Ln,isBackEdge:()=>Ua,isRecursiveSchema:()=>Ba,isValidBase64:()=>hi,isValidBase64URL:()=>Aa,isValidCIDRv6:()=>Ra,isValidCreditCard:()=>$a,isValidIBAN:()=>Da,isValidIPv6:()=>mi,isValidJWT:()=>Ea,locales:()=>Ii,memoizer:()=>xi,mergeValues:()=>Fr,meta:()=>Bp,parse:()=>sa,parseAsync:()=>aa,parseURLObject:()=>m0,prettifyError:()=>zl,process:()=>ce,processSchema:()=>ce,regexes:()=>St,registry:()=>qa,safeDecode:()=>Nw,safeDecodeAsync:()=>zw,safeEncode:()=>Ew,safeEncodeAsync:()=>Ow,safeParse:()=>_w,safeParseAsync:()=>Pw,standardProps:()=>_a,stripTabAndNewline:()=>fi,toDotPath:()=>G5,toJSONSchema:()=>Lc,toZod:()=>qo,treeifyError:()=>Ol,urlHostnameOk:()=>La,urlProtocolOk:()=>Ma,util:()=>j,validate:()=>si,validateAsync:()=>ai,validateURL:()=>Pa,version:()=>Wd,withParser:()=>Ya});var j={};Tt(j,{BIGINT_FORMAT_RANGES:()=>ei,CONSTANT_CATCH:()=>oa,Class:()=>vl,NUMBER_FORMAT_RANGES:()=>Qo,aborted:()=>et,allowsEval:()=>Il,assert:()=>Uv,assertEqual:()=>Vv,assertIs:()=>Hv,assertNever:()=>Bv,assertNotEqual:()=>Fv,assignProp:()=>Oe,attachSchema:()=>ra,base64ToUint8Array:()=>W5,base64urlToUint8Array:()=>dw,cached:()=>Er,captureStackTrace:()=>ea,cleanEnum:()=>lw,cleanRegex:()=>on,clone:()=>se,cloneDef:()=>qv,codePointLength:()=>Jn,constantCatch:()=>Rl,createTransparentProxy:()=>tw,defineLazy:()=>wl,defineLazyInternal:()=>X,derived:()=>hw,esc:()=>Qe,escapeRegex:()=>It,explicitlyAborted:()=>Pl,extend:()=>ow,finalizeIssue:()=>lt,floatSafeRemainder:()=>Yo,getElementAtPath:()=>Yv,getEnumValues:()=>$r,getLengthableOrigin:()=>ni,getParsedType:()=>ew,getSizableOrigin:()=>ti,hexToUint8Array:()=>fw,hide:()=>ri,installLazyProp:()=>yw,isObject:()=>Yn,isPlainObject:()=>xt,issue:()=>Or,joinValues:()=>Xs,jsonStringifyReplacer:()=>Dr,members:()=>Ml,merge:()=>sw,mergeDefs:()=>Dt,normalizeParams:()=>P,nullish:()=>Qs,numKeys:()=>Qv,objectClone:()=>Gv,omit:()=>rw,optionalKeys:()=>_l,own:()=>In,parsedType:()=>Ll,partial:()=>aw,pick:()=>nw,prefixIssues:()=>ut,primitiveTypes:()=>Sl,promiseAllObject:()=>Jv,propertyKeyTypes:()=>Xo,randomString:()=>Xv,rawShape:()=>Nr,required:()=>cw,safeExtend:()=>iw,shallowClone:()=>Jo,slugify:()=>xl,stringifyPrimitive:()=>ta,toZod:()=>qo,uint8ArrayToBase64:()=>V5,uint8ArrayToBase64url:()=>pw,uint8ArrayToHex:()=>mw,unwrapMessage:()=>Ar});function Vv(e){return e}function Fv(e){return e}function qo(){return e=>e}function Hv(e){}function Bv(e){throw new Error("Unexpected value in exhaustive check")}function Uv(e){}function $r(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function Xs(e,t="|"){return e.map(n=>ta(n)).join(t)}function Dr(e,t){return typeof t=="bigint"?t.toString():t}var bl=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Er(e){return new bl(e)}function Qs(e){return e==null}function on(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Yo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var O5=Symbol("evaluating");function wl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==O5)return r===void 0&&(r=O5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function Gv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Oe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Nr(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function rn(e){return Nr(e._zod.def)??e._zod.def.shape}function z5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return Oe(this,t,r),r},enumerable:!0,configurable:!0})}function j5(e,t,n){t in e?Oe(e,t,n):e[t]=n}function qn(e,t,n,r){let o=rn(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?z5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):j5(e,i,r?r(s.value,i):s.value))}}function Kv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?z5(e,n,()=>t[n]):j5(e,n,r.value))}}function Dt(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function qv(e){return Dt(e._zod.def)}function Yv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Jv(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function Xv(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function Qe(e){return JSON.stringify(e)}function xl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var ea="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Yn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var Il=Er(()=>{if(De.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function xt(e){if(Yn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Yn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Jo(e){return xt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Qv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var ew=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Xo=new Set(["string","number","symbol"]),Sl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function It(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function P(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function tw(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function ta(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function _l(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Qo={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},ei={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function nw(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return qn(i,e,na(e,t)),se(e,Dt(n,{shape:i,checks:[]}))}function na(e,t){let n=rn(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function rw(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(na(e,t)),s={};return qn(s,e,Reflect.ownKeys(rn(e)).filter(a=>!i.has(a))),se(e,Dt(n,{shape:s,checks:[]}))}function ow(e,t){if(!xt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=rn(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return se(e,Dt(e._zod.def,{shape:Z5(e,t)}))}function Z5(e,t){let n={};return qn(n,e,Reflect.ownKeys(rn(e))),Kv(n,t),n}function iw(e,t){if(!xt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return se(e,Dt(e._zod.def,{shape:Z5(e,t)}))}function sw(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};qn(n,e,Reflect.ownKeys(rn(e))),qn(n,t,Reflect.ownKeys(rn(t)));let r=Dt(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return se(e,r)}function aw(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(na(t,n)):void 0,c={};return qn(c,t,Reflect.ownKeys(rn(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),se(t,Dt(t._zod.def,{shape:c,checks:[]}))}function cw(e,t,n){let r=n?new Set(na(t,n)):void 0,o={};return qn(o,t,Reflect.ownKeys(rn(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),se(t,Dt(t._zod.def,{shape:o}))}function et(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Pl(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function ut(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ar(e){return typeof e=="string"?e:e?.message}function ra(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function lt(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ar(e.inst?._zod.def?.error?.(e))??Ar(i?.(e))??Ar(t?.error?.(e))??Ar(n.customError?.(e))??Ar(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function ti(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var uw=/[\uD800-\uDBFF]/;function Jn(e){let t=e.length;if(!uw.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function ni(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Ll(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function Or(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function lw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function W5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function V5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function dw(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return W5(t+n)}function pw(e){return V5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function fw(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function mw(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var vl=class{constructor(...t){}};function Ml(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):gw(e,n,r.value)}}function In(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function ri(e,t,n){return In(e,t,n,!1)}function hw(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return In(this,n,r(this))},set(o){In(this,n,o)}})}return t}function gw(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:In(this,t,n.bind(this))},set(r){In(this,t,r)}})}function Cw(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var yl,xn=!1,kw={configurable:!0,get(){xn=!0}};function X(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&yl!==e._zod){yl=void 0;return}yl=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,kw);let o=xn;xn=!1;try{let i=n(this);return xn?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),xn=xn||o,i}catch(i){throw delete this[t],xn=xn||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function yw(e,t,n,r){let o=Cw(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var oa="~constantCatch";function Rl(e){let t=()=>e;return t[oa]=!0,t}var F5,Al=Object.freeze({status:"aborted"}),Tl={value:void 0,enumerable:!1},H5="captureStackTrace"in Error?Error:null;function bw(e){let t=H5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return H5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function k(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,f){if(m._zod){if(m._zod.traits.has(e))return}else{Tl.value=new i(f);try{Object.defineProperty(m,"_zod",Tl)}finally{Tl.value=void 0}}if(m._zod.traits.add(e),t(m,f),a){let g=Object.getPrototypeOf(m),C=m._zod.constr.prototype,x=g;for(;x&&x!==C;)x=Object.getPrototypeOf(x);let y=x??g;a.has(y)||(a.add(y),Ml(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let f=r?.Parent?bw(l):this;c(f,m);let h=f._zod.deferred;if(h){for(let C of h)C();f._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(f),f}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var $l=Symbol("zod_brand"),dt=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Sn=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(F5=globalThis).__zod_globalConfig??(F5.__zod_globalConfig={});var De=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(De,e),De}function vw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Dr,2)),e.message}function ww(e){this._zod.message=e}var xw={get:vw,set:ww,enumerable:!0,configurable:!0},El={value:void 0,enumerable:!1},B5=new WeakSet([Object.prototype,Error.prototype]),U5=(e,t)=>{e.name="$ZodError",El.value=t,Object.defineProperty(e,"issues",El),El.value=void 0,Object.defineProperty(e,"message",xw);let n=Object.getPrototypeOf(e);B5.has(n)||(B5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Nl=k("$ZodError",U5),pt=k("$ZodError",U5,void 0,{Parent:Error});function Iw(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function oi(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?Iw(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function ii(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Ol(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function G5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function zl(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${G5(r.path)}`);return t.join(`
6
- `)}function ia(e,t){return{callee:t?.callee??e,Err:t?.Err}}var zr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new dt;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>lt(u,s,ye())));throw ea(c,i?.callee??t),c}return a.value};return t},sa=zr(pt),jr=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>lt(u,s,ye())));throw ea(c,i?.callee??t),c}return a.value};return t},aa=jr(pt),Zr=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new dt;return i.issues.length?K5(e,i.issues,o):{success:!0,data:i.value}},_w=Zr(pt);function K5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>lt(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Wr=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?K5(e,i.issues,o):{success:!0,data:i.value}},Pw=Wr(pt),Lw=Symbol.for("zod.compile.invalid"),Mw=Symbol.for("zod.compile.fallback"),si=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==Lw)return!0;if(r.definite===!0&&n===void 0)return!1}return Rw(e,t,n)});function Rw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[Mw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new dt;return i.issues.length===0}var ai=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},ca=e=>{let t=zr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,ia(n,s))};return n},Tw=ca(pt),ua=e=>{let t=zr(e),n=(r,o,i,s)=>t(r,o,i,ia(n,s));return n},Aw=ua(pt),la=e=>{let t=jr(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,ia(n,s))};return n},$w=la(pt),da=e=>{let t=jr(e),n=async(r,o,i,s)=>await t(r,o,i,ia(n,s));return n},Dw=da(pt),pa=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Zr(e)(t,n,o)},Ew=pa(pt),fa=e=>(t,n,r)=>Zr(e)(t,n,r),Nw=fa(pt),ma=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Wr(e)(t,n,o)},Ow=ma(pt),ha=e=>async(t,n,r)=>Wr(e)(t,n,r),zw=ha(pt);var St={};Tt(St,{anyString:()=>dd,base64:()=>nd,base64url:()=>rd,bigint:()=>fd,boolean:()=>md,browserEmail:()=>Uw,cidrv4:()=>ed,cidrv6:()=>td,creditCard:()=>ga,cuid:()=>Zl,cuid2:()=>Wl,currencyCode:()=>ad,date:()=>cd,datetime:()=>ld,domain:()=>id,duration:()=>Gl,e164:()=>sd,email:()=>ql,emoji:()=>Yl,extendedDuration:()=>jw,guid:()=>Kl,hex:()=>yd,hostname:()=>od,html5Email:()=>Fw,httpProtocol:()=>ci,iban:()=>Ca,idnEmail:()=>Bw,integer:()=>ui,ipv4:()=>Jl,ipv6:()=>Xl,ksuid:()=>Hl,lowercase:()=>Cd,mac:()=>Ql,md5_base64:()=>Yw,md5_base64url:()=>Jw,md5_hex:()=>qw,nanoid:()=>Bl,nanoidOfLength:()=>Ul,null:()=>hd,number:()=>sn,rfc5322Email:()=>Hw,sha1_base64:()=>Qw,sha1_base64url:()=>ex,sha1_hex:()=>Xw,sha256_base64:()=>nx,sha256_base64url:()=>rx,sha256_hex:()=>tx,sha384_base64:()=>ix,sha384_base64url:()=>sx,sha384_hex:()=>ox,sha512_base64:()=>cx,sha512_base64url:()=>ux,sha512_hex:()=>ax,string:()=>pd,time:()=>ud,ulid:()=>Vl,undefined:()=>gd,unicodeEmail:()=>q5,uppercase:()=>kd,uuid:()=>Xn,uuid4:()=>Zw,uuid6:()=>Ww,uuid7:()=>Vw,xid:()=>Fl});var Zl=/^[cC][0-9a-z]{6,}$/,Wl=/^[0-9a-z]+$/,Vl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Fl=/^[0-9a-vA-V]{20}$/,Hl=/^[A-Za-z0-9]{27}$/,Bl=/^[a-zA-Z0-9_-]{21}$/;function Ul(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Gl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,jw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Kl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Xn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Zw=Xn(4),Ww=Xn(6),Vw=Xn(7),ql=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Fw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Hw=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,q5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Bw=q5,Uw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Gw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Yl(){return new RegExp(Gw,"u")}var Jl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,Xl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ql=e=>{let t=It(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},ed=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,td=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,nd=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,rd=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,od=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,id=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ci=/^https?$/,sd=/^\+[1-9]\d{6,14}$/,ga=/^\d(?:[ -]?\d){11,18}$/,ad=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,Ca=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,Y5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function Kw(e){return new RegExp(`^${e}$`)}var cd=Kw(Y5);function jl(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function ud(e){return new RegExp(`^${jl(e)}$`)}function ld(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${jl({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${jl({precision:e.precision})}`:n;return new RegExp(`^${Y5}T(?:${r})$`)}var dd=/^[\s\S]{0,}$/,pd=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},fd=/^-?\d+n?$/,ui=/^-?\d+$/,sn=/^-?\d+(?:\.\d+)?$/,md=/^(?:true|false)$/i,hd=/^null$/i;var gd=/^undefined$/i;var Cd=/^[^A-Z]*$/,kd=/^[^a-z]*$/,yd=/^[0-9a-fA-F]*$/;function li(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function di(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var qw=/^[0-9a-fA-F]{32}$/,Yw=li(22,"=="),Jw=di(22),Xw=/^[0-9a-fA-F]{40}$/,Qw=li(27,"="),ex=di(27),tx=/^[0-9a-fA-F]{64}$/,nx=li(43,"="),rx=di(43),ox=/^[0-9a-fA-F]{96}$/,ix=li(64,""),sx=di(64),ax=/^[0-9a-fA-F]{128}$/,cx=li(86,"=="),ux=di(86);var pe=k("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),bd=e=>{let t=e.value;return!Qs(t)&&t.size!==void 0},vd=e=>{let t=e.value;return!Qs(t)&&t.length!==void 0},ka={number:"number",bigint:"bigint",object:"date"},ba=k("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=ka[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ka[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),va=k("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=ka[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ka[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),wd=k("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Yo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),xd=k("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Qo[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),Id=k("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=ei[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),Sd=k("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=bd),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:ti(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),_d=k("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=bd),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:ti(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pd=k("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=bd),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:ti(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Ld=k("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=vd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Jn(o):i)<=t.maximum)return;let a=ni(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Md=k("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=vd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Jn(o):i)>=t.minimum)return;let a=ni(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Rd=k("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=vd),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Jn(o):i;if(s===t.length)return;let a=ni(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Vr=k("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Td=k("$ZodCheckRegex",(e,t)=>{Vr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Ad=k("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Cd),Vr.init(e,t)}),$d=k("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=kd),Vr.init(e,t)}),Dd=k("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=It(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Ed=k("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${It(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Nd=k("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${It(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function ya(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues))}var Od=k("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>ya(o,n,t.property));ya(r,n,t.property)}}),zd=k("$ZodCheckProperties",(e,t)=>{pe.init(e,t),ri(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>ya(u,r,s)))):ya(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),jd=k("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Zd=k("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var Qn=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
5
+ `},jy={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zy(e){let{announcements:t=jy,container:n,hiddenTextDescribedById:r,screenReaderInstructions:o=zy}=e,{announce:i,announcement:s}=Eh(),a=$o("DndLiveRegion"),[c,u]=A(!1);if(O(()=>{u(!0)},[]),Ny(G(()=>({onDragStart(d){let{active:m}=d;i(t.onDragStart({active:m}))},onDragMove(d){let{active:m,over:p}=d;t.onDragMove&&i(t.onDragMove({active:m,over:p}))},onDragOver(d){let{active:m,over:p}=d;i(t.onDragOver({active:m,over:p}))},onDragEnd(d){let{active:m,over:p}=d;i(t.onDragEnd({active:m,over:p}))},onDragCancel(d){let{active:m,over:p}=d;i(t.onDragCancel({active:m,over:p}))}}),[i,t])),!c)return null;let l=Ue.createElement(Ue.Fragment,null,Ue.createElement(Ah,{id:r,value:o.draggable}),Ue.createElement(Dh,{id:a,announcement:s}));return n?ks(l,n):l}var _e;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(_e||(_e={}));function Ss(){}function Ls(e,t){return G(()=>({sensor:e,options:t??{}}),[e,t])}function Gh(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return G(()=>[...t].filter(r=>r!=null),[...t])}var Tt=Object.freeze({x:0,y:0});function Wy(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Vy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Fy(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function Hy(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function By(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Uy(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),s=o-r,a=i-n;if(r<o&&n<i){let c=t.width*t.height,u=e.width*e.height,l=s*a,d=l/(c+u-l);return Number(d.toFixed(4))}return 0}var Gy=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,o=[];for(let i of r){let{id:s}=i,a=n.get(s);if(a){let c=Uy(a,t);c>0&&o.push({id:s,data:{droppableContainer:i,value:c}})}}return o.sort(Fy)};function Ky(e,t){let{top:n,left:r,bottom:o,right:i}=t;return n<=e.y&&e.y<=o&&r<=e.x&&e.x<=i}var Kh=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let o=[];for(let i of t){let{id:s}=i,a=n.get(s);if(a&&Ky(r,a)){let u=Hy(a).reduce((d,m)=>d+Wy(r,m),0),l=Number((u/4).toFixed(4));o.push({id:s,data:{droppableContainer:i,value:l}})}}return o.sort(Vy)};function qy(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function qh(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Tt}function Yy(e){return function(n){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return o.reduce((s,a)=>({...s,top:s.top+e*a.y,bottom:s.bottom+e*a.y,left:s.left+e*a.x,right:s.right+e*a.x}),{...n})}}var Jy=Yy(1);function Xy(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Qy(e,t,n){let r=Xy(t);if(!r)return e;let{scaleX:o,scaleY:i,x:s,y:a}=r,c=e.left-s-(1-o)*parseFloat(n),u=e.top-a-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),l=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:l,height:d,top:u,right:c+l,bottom:u+d,left:c}}var eb={ignoreTransform:!1};function Zo(e,t){t===void 0&&(t=eb);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:u,transformOrigin:l}=Ge(e).getComputedStyle(e);u&&(n=Qy(n,u,l))}let{top:r,left:o,width:i,height:s,bottom:a,right:c}=n;return{top:r,left:o,width:i,height:s,bottom:a,right:c}}function Nh(e){return Zo(e,{ignoreTransform:!0})}function tb(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function nb(e,t){return t===void 0&&(t=Ge(e).getComputedStyle(e)),t.position==="fixed"}function rb(e,t){t===void 0&&(t=Ge(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(o=>{let i=t[o];return typeof i=="string"?n.test(i):!1})}function tl(e,t){let n=[];function r(o){if(t!=null&&n.length>=t||!o)return n;if(bs(o)&&o.scrollingElement!=null&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!_r(o)||Gu(o)||n.includes(o))return n;let i=Ge(e).getComputedStyle(o);return o!==e&&rb(o,i)&&n.push(o),nb(o,i)?n:r(o.parentNode)}return e?r(e):n}function Yh(e){let[t]=tl(e,1);return t??null}function qu(e){return!Ro||!e?null:Hn(e)?e:ys(e)?bs(e)||e===Bn(e).scrollingElement?window:_r(e)?e:null:null}function Jh(e){return Hn(e)?e.scrollX:e.scrollLeft}function Xh(e){return Hn(e)?e.scrollY:e.scrollTop}function Xu(e){return{x:Jh(e),y:Xh(e)}}var $e;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})($e||($e={}));function Qh(e){return!Ro||!e?!1:e===document.scrollingElement}function e5(e){let t={x:0,y:0},n=Qh(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},o=e.scrollTop<=t.y,i=e.scrollLeft<=t.x,s=e.scrollTop>=r.y,a=e.scrollLeft>=r.x;return{isTop:o,isLeft:i,isBottom:s,isRight:a,maxScroll:r,minScroll:t}}var ob={x:.2,y:.2};function ib(e,t,n,r,o){let{top:i,left:s,right:a,bottom:c}=n;r===void 0&&(r=10),o===void 0&&(o=ob);let{isTop:u,isBottom:l,isLeft:d,isRight:m}=e5(e),p={x:0,y:0},h={x:0,y:0},g={height:t.height*o.y,width:t.width*o.x};return!u&&i<=t.top+g.height?(p.y=$e.Backward,h.y=r*Math.abs((t.top+g.height-i)/g.height)):!l&&c>=t.bottom-g.height&&(p.y=$e.Forward,h.y=r*Math.abs((t.bottom-g.height-c)/g.height)),!m&&a>=t.right-g.width?(p.x=$e.Forward,h.x=r*Math.abs((t.right-g.width-a)/g.width)):!d&&s<=t.left+g.width&&(p.x=$e.Backward,h.x=r*Math.abs((t.left+g.width-s)/g.width)),{direction:p,speed:h}}function sb(e){if(e===document.scrollingElement){let{innerWidth:i,innerHeight:s}=window;return{top:0,left:0,right:i,bottom:s,width:i,height:s}}let{top:t,left:n,right:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function t5(e){return e.reduce((t,n)=>Un(t,Xu(n)),Tt)}function ab(e){return e.reduce((t,n)=>t+Jh(n),0)}function cb(e){return e.reduce((t,n)=>t+Xh(n),0)}function ub(e,t){if(t===void 0&&(t=Zo),!e)return;let{top:n,left:r,bottom:o,right:i}=t(e);Yh(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}var lb=[["x",["left","right"],ab],["y",["top","bottom"],cb]],Eo=class{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=tl(n),o=t5(r);this.rect={...t},this.width=t.width,this.height=t.height;for(let[i,s,a]of lb)for(let c of s)Object.defineProperty(this,c,{get:()=>{let u=a(r),l=o[i]-u;return this.rect[c]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Gn=class{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var o;(o=this.target)==null||o.addEventListener(t,n,r),this.listeners.push([t,n,r])}};function db(e){let{EventTarget:t}=Ge(e);return e instanceof t?e:Bn(e)}function Yu(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var yt;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(yt||(yt={}));function Oh(e){e.preventDefault()}function pb(e){e.stopPropagation()}var fe;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(fe||(fe={}));var n5={start:[fe.Space,fe.Enter],cancel:[fe.Esc],end:[fe.Space,fe.Enter,fe.Tab]},fb=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case fe.Right:return{...n,x:n.x+25};case fe.Left:return{...n,x:n.x-25};case fe.Down:return{...n,y:n.y+25};case fe.Up:return{...n,y:n.y-25}}},Mr=class{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;let{event:{target:n}}=t;this.props=t,this.listeners=new Gn(Bn(n)),this.windowListeners=new Gn(Ge(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(yt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&ub(r),n(Tt)}handleKeyDown(t){if(Ku(t)){let{active:n,context:r,options:o}=this.props,{keyboardCodes:i=n5,coordinateGetter:s=fb,scrollBehavior:a="smooth"}=o,{code:c}=t;if(i.end.includes(c)){this.handleEnd(t);return}if(i.cancel.includes(c)){this.handleCancel(t);return}let{collisionRect:u}=r.current,l=u?{x:u.left,y:u.top}:Tt;this.referenceCoordinates||(this.referenceCoordinates=l);let d=s(t,{active:n,context:r.current,currentCoordinates:l});if(d){let m=Ao(d,l),p={x:0,y:0},{scrollableAncestors:h}=r.current;for(let g of h){let C=t.code,{isTop:x,isRight:y,isLeft:I,isBottom:R,maxScroll:M,minScroll:T}=e5(g),N=sb(g),B={x:Math.min(C===fe.Right?N.right-N.width/2:N.right,Math.max(C===fe.Right?N.left:N.left+N.width/2,d.x)),y:Math.min(C===fe.Down?N.bottom-N.height/2:N.bottom,Math.max(C===fe.Down?N.top:N.top+N.height/2,d.y))},ne=C===fe.Right&&!y||C===fe.Left&&!I,de=C===fe.Down&&!R||C===fe.Up&&!x;if(ne&&B.x!==d.x){let ie=g.scrollLeft+m.x,Z=C===fe.Right&&ie<=M.x||C===fe.Left&&ie>=T.x;if(Z&&!m.y){g.scrollTo({left:ie,behavior:a});return}Z?p.x=g.scrollLeft-ie:p.x=C===fe.Right?g.scrollLeft-M.x:g.scrollLeft-T.x,p.x&&g.scrollBy({left:-p.x,behavior:a});break}else if(de&&B.y!==d.y){let ie=g.scrollTop+m.y,Z=C===fe.Down&&ie<=M.y||C===fe.Up&&ie>=T.y;if(Z&&!m.x){g.scrollTo({top:ie,behavior:a});return}Z?p.y=g.scrollTop-ie:p.y=C===fe.Down?g.scrollTop-M.y:g.scrollTop-T.y,p.y&&g.scrollBy({top:-p.y,behavior:a});break}}this.handleMove(t,Un(Ao(d,this.referenceCoordinates),p))}}}handleMove(t,n){let{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){let{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){let{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Mr.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=n5,onActivation:o}=t,{active:i}=n,{code:s}=e.nativeEvent;if(r.start.includes(s)){let a=i.activatorNode.current;return a&&e.target!==a?!1:(e.preventDefault(),o?.({event:e.nativeEvent}),!0)}return!1}}];function zh(e){return!!(e&&"distance"in e)}function jh(e){return!!(e&&"delay"in e)}var No=class{constructor(t,n,r){var o;r===void 0&&(r=db(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;let{event:i}=t,{target:s}=i;this.props=t,this.events=n,this.document=Bn(s),this.documentListeners=new Gn(this.document),this.listeners=new Gn(r),this.windowListeners=new Gn(Ge(s)),this.initialCoordinates=(o=xs(i))!=null?o:Tt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(yt.Resize,this.handleCancel),this.windowListeners.add(yt.DragStart,Oh),this.windowListeners.add(yt.VisibilityChange,this.handleCancel),this.windowListeners.add(yt.ContextMenu,Oh),this.documentListeners.add(yt.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(jh(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(zh(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){let{active:r,onPending:o}=this.props;o(r,t,this.initialCoordinates,n)}handleStart(){let{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(yt.Click,pb,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(yt.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;let{activated:r,initialCoordinates:o,props:i}=this,{onMove:s,options:{activationConstraint:a}}=i;if(!o)return;let c=(n=xs(t))!=null?n:Tt,u=Ao(o,c);if(!r&&a){if(zh(a)){if(a.tolerance!=null&&Yu(u,a.tolerance))return this.handleCancel();if(Yu(u,a.distance))return this.handleStart()}if(jh(a)&&Yu(u,a.tolerance))return this.handleCancel();this.handlePending(a,u);return}t.cancelable&&t.preventDefault(),s(c)}handleEnd(){let{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){let{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===fe.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}},mb={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}},_s=class extends No{constructor(t){let{event:n}=t,r=Bn(n.target);super(t,mb,r)}};_s.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var hb={move:{name:"mousemove"},end:{name:"mouseup"}},Qu;(function(e){e[e.RightClick=2]="RightClick"})(Qu||(Qu={}));var Oo=class extends No{constructor(t){super(t,hb,Bn(t.event.target))}};Oo.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Qu.RightClick?!1:(r?.({event:n}),!0)}}];var Ju={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}},zo=class extends No{constructor(t){super(t,Ju)}static setup(){return window.addEventListener(Ju.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Ju.move.name,t)};function t(){}}};zo.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:o}=n;return o.length>1?!1:(r?.({event:n}),!0)}}];var Do;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Do||(Do={}));var Ps;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ps||(Ps={}));function gb(e){let{acceleration:t,activator:n=Do.Pointer,canScroll:r,draggingRect:o,enabled:i,interval:s=5,order:a=Ps.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:l,delta:d,threshold:m}=e,p=kb({delta:d,disabled:!i}),[h,g]=Rh(),C=$({x:0,y:0}),x=$({x:0,y:0}),y=G(()=>{switch(n){case Do.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Do.DraggableRect:return o}},[n,o,c]),I=$(null),R=E(()=>{let T=I.current;if(!T)return;let N=C.current.x*x.current.x,B=C.current.y*x.current.y;T.scrollBy(N,B)},[]),M=G(()=>a===Ps.TreeOrder?[...u].reverse():u,[a,u]);O(()=>{if(!i||!u.length||!y){g();return}for(let T of M){if(r?.(T)===!1)continue;let N=u.indexOf(T),B=l[N];if(!B)continue;let{direction:ne,speed:de}=ib(T,B,y,t,m);for(let ie of["x","y"])p[ie][ne[ie]]||(de[ie]=0,ne[ie]=0);if(de.x>0||de.y>0){g(),I.current=T,h(R,s),C.current=de,x.current=ne;return}}C.current={x:0,y:0},x.current={x:0,y:0},g()},[t,R,r,g,i,s,JSON.stringify(y),JSON.stringify(p),h,u,M,l,JSON.stringify(m)])}var Cb={x:{[$e.Backward]:!1,[$e.Forward]:!1},y:{[$e.Backward]:!1,[$e.Forward]:!1}};function kb(e){let{delta:t,disabled:n}=e,r=ws(t);return Lr(o=>{if(n||!r||!o)return Cb;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[$e.Backward]:o.x[$e.Backward]||i.x===-1,[$e.Forward]:o.x[$e.Forward]||i.x===1},y:{[$e.Backward]:o.y[$e.Backward]||i.y===-1,[$e.Forward]:o.y[$e.Forward]||i.y===1}}},[n,t,r])}function yb(e,t){let n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Lr(o=>{var i;return t==null?null:(i=r??o)!=null?i:null},[r,t])}function bb(e,t){return G(()=>e.reduce((n,r)=>{let{sensor:o}=r,i=o.activators.map(s=>({eventName:s.eventName,handler:t(s.handler,r)}));return[...n,...i]},[]),[e,t])}var jo;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jo||(jo={}));var el;(function(e){e.Optimized="optimized"})(el||(el={}));var Zh=new Map;function vb(e,t){let{dragging:n,dependencies:r,config:o}=t,[i,s]=A(null),{frequency:a,measure:c,strategy:u}=o,l=$(e),d=C(),m=Pr(d),p=E(function(x){x===void 0&&(x=[]),!m.current&&s(y=>y===null?x:y.concat(x.filter(I=>!y.includes(I))))},[m]),h=$(null),g=Lr(x=>{if(d&&!n)return Zh;if(!x||x===Zh||l.current!==e||i!=null){let y=new Map;for(let I of e){if(!I)continue;if(i&&i.length>0&&!i.includes(I.id)&&I.rect.current){y.set(I.id,I.rect.current);continue}let R=I.node.current,M=R?new Eo(c(R),R):null;I.rect.current=M,M&&y.set(I.id,M)}return y}return x},[e,i,n,d,c]);return O(()=>{l.current=e},[e]),O(()=>{d||p()},[n,d]),O(()=>{i&&i.length>0&&s(null)},[JSON.stringify(i)]),O(()=>{d||typeof a!="number"||h.current!==null||(h.current=setTimeout(()=>{p(),h.current=null},a))},[a,d,p,...r]),{droppableRects:g,measureDroppableContainers:p,measuringScheduled:i!=null};function C(){switch(u){case jo.Always:return!1;case jo.BeforeDragging:return n;default:return!n}}}function r5(e,t){return Lr(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function wb(e,t){return r5(e,t)}function xb(e){let{callback:t,disabled:n}=e,r=vs(t),o=G(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;let{MutationObserver:i}=window;return new i(r)},[r,n]);return O(()=>()=>o?.disconnect(),[o]),o}function Ms(e){let{callback:t,disabled:n}=e,r=vs(t),o=G(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;let{ResizeObserver:i}=window;return new i(r)},[n]);return O(()=>()=>o?.disconnect(),[o]),o}function Ib(e){return new Eo(Zo(e),e)}function Wh(e,t,n){t===void 0&&(t=Ib);let[r,o]=A(null);function i(){o(c=>{if(!e)return null;if(e.isConnected===!1){var u;return(u=c??n)!=null?u:null}let l=t(e);return JSON.stringify(c)===JSON.stringify(l)?c:l})}let s=xb({callback(c){if(e)for(let u of c){let{type:l,target:d}=u;if(l==="childList"&&d instanceof HTMLElement&&d.contains(e)){i();break}}}}),a=Ms({callback:i});return nn(()=>{i(),e?(a?.observe(e),s?.observe(document.body,{childList:!0,subtree:!0})):(a?.disconnect(),s?.disconnect())},[e]),r}function Sb(e){let t=r5(e);return qh(e,t)}var Vh=[];function _b(e){let t=$(e),n=Lr(r=>e?r&&r!==Vh&&e&&t.current&&e.parentNode===t.current.parentNode?r:tl(e):Vh,[e]);return O(()=>{t.current=e},[e]),n}function Pb(e){let[t,n]=A(null),r=$(e),o=E(i=>{let s=qu(i.target);s&&n(a=>a?(a.set(s,Xu(s)),new Map(a)):null)},[]);return O(()=>{let i=r.current;if(e!==i){s(i);let a=e.map(c=>{let u=qu(c);return u?(u.addEventListener("scroll",o,{passive:!0}),[u,Xu(u)]):null}).filter(c=>c!=null);n(a.length?new Map(a):null),r.current=e}return()=>{s(e),s(i)};function s(a){a.forEach(c=>{let u=qu(c);u?.removeEventListener("scroll",o)})}},[o,e]),G(()=>e.length?t?Array.from(t.values()).reduce((i,s)=>Un(i,s),Tt):t5(e):Tt,[e,t])}function Fh(e,t){t===void 0&&(t=[]);let n=$(null);return O(()=>{n.current=null},t),O(()=>{let r=e!==Tt;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?Ao(e,n.current):Tt}function Lb(e){O(()=>{if(!Ro)return;let t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(let n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function Mb(e,t){return G(()=>e.reduce((n,r)=>{let{eventName:o,handler:i}=r;return n[o]=s=>{i(s,t)},n},{}),[e,t])}function o5(e){return G(()=>e?tb(e):null,[e])}var Hh=[];function Rb(e,t){t===void 0&&(t=Zo);let[n]=e,r=o5(n?Ge(n):null),[o,i]=A(Hh);function s(){i(()=>e.length?e.map(c=>Qh(c)?r:new Eo(t(c),c)):Hh)}let a=Ms({callback:s});return nn(()=>{a?.disconnect(),s(),e.forEach(c=>a?.observe(c))},[e]),o}function Tb(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return _r(t)?t:e}function $b(e){let{measure:t}=e,[n,r]=A(null),o=E(u=>{for(let{target:l}of u)if(_r(l)){r(d=>{let m=t(l);return d?{...d,width:m.width,height:m.height}:m});break}},[t]),i=Ms({callback:o}),s=E(u=>{let l=Tb(u);i?.disconnect(),l&&i?.observe(l),r(l?t(l):null)},[t,i]),[a,c]=To(s);return G(()=>({nodeRef:a,rect:n,setRef:c}),[n,a,c])}var Ab=[{sensor:_s,options:{}},{sensor:Mr,options:{}}],Db={current:{}},Is={draggable:{measure:Nh},droppable:{measure:Nh,strategy:jo.WhileDragging,frequency:el.Optimized},dragOverlay:{measure:Zo}},Kn=class extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}},Eb={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Ss},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Is,measureDroppableContainers:Ss,windowRect:null,measuringScheduled:!1},Nb={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Ss,draggableNodes:new Map,over:null,measureDroppableContainers:Ss},Rs=we(Nb),Ob=we(Eb);function zb(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kn}}}function jb(e,t){switch(t.type){case _e.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case _e.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case _e.DragEnd:case _e.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case _e.RegisterDroppable:{let{element:n}=t,{id:r}=n,o=new Kn(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case _e.SetDroppableDisabled:{let{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let s=new Kn(e.droppable.containers);return s.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:s}}}case _e.UnregisterDroppable:{let{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;let i=new Kn(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Zb(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:o}=xe(Rs),i=ws(r),s=ws(n?.id);return O(()=>{if(!t&&!r&&i&&s!=null){if(!Ku(i)||document.activeElement===i.target)return;let a=o.get(s);if(!a)return;let{activatorNode:c,node:u}=a;if(!c.current&&!u.current)return;requestAnimationFrame(()=>{for(let l of[c.current,u.current]){if(!l)continue;let d=$h(l);if(d){d.focus();break}}})}},[r,t,o,s,i]),null}function Wb(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((o,i)=>i({transform:o,...r}),n):n}function Vb(e){return G(()=>({draggable:{...Is.draggable,...e?.draggable},droppable:{...Is.droppable,...e?.droppable},dragOverlay:{...Is.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Fb(e){let{activeNode:t,measure:n,initialRect:r,config:o=!0}=e,i=$(!1),{x:s,y:a}=typeof o=="boolean"?{x:o,y:o}:o;nn(()=>{if(!s&&!a||!t){i.current=!1;return}if(i.current||!r)return;let u=t?.node.current;if(!u||u.isConnected===!1)return;let l=n(u),d=qh(l,r);if(s||(d.x=0),a||(d.y=0),i.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){let m=Yh(u);m&&m.scrollBy({top:d.y,left:d.x})}},[t,s,a,r,n])}var i5=we({...Tt,scaleX:1,scaleY:1}),bn;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(bn||(bn={}));var s5=rt(function(t){var n,r,o,i;let{id:s,accessibility:a,autoScroll:c=!0,children:u,sensors:l=Ab,collisionDetection:d=Gy,measuring:m,modifiers:p,...h}=t,g=Hu(jb,void 0,zb),[C,x]=g,[y,I]=Oy(),[R,M]=A(bn.Uninitialized),T=R===bn.Initialized,{draggable:{active:N,nodes:B,translate:ne},droppable:{containers:de}}=C,ie=N!=null?B.get(N):null,Z=$({initial:null,translated:null}),oe=G(()=>{var Re;return N!=null?{id:N,data:(Re=ie?.data)!=null?Re:Db,rect:Z}:null},[N,ie]),re=$(null),[Ne,gt]=A(null),[Fe,Zn]=A(null),Ct=Pr(h,Object.values(h)),_t=$o("DndDescribedBy",s),pn=G(()=>de.getEnabled(),[de]),be=Vb(m),{droppableRects:je,measureDroppableContainers:zt,measuringScheduled:Pt}=vb(pn,{dragging:T,dependencies:[ne.x,ne.y],config:be.droppable}),Ze=yb(B,N),Jt=G(()=>Fe?xs(Fe):null,[Fe]),Wn=vr(),jt=wb(Ze,be.draggable.measure);Fb({activeNode:N!=null?B.get(N):null,config:Wn.layoutShiftCompensation,initialRect:jt,measure:be.draggable.measure});let me=Wh(Ze,be.draggable.measure,jt),kt=Wh(Ze?Ze.parentElement:null),X=$({activatorEvent:null,active:null,activeNode:Ze,collisionRect:null,collisions:null,droppableRects:je,draggableNodes:B,draggingNode:null,draggingNodeRect:null,droppableContainers:de,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Vn=de.getNodeFor((n=X.current.over)==null?void 0:n.id),He=$b({measure:be.dragOverlay.measure}),Lt=(r=He.nodeRef.current)!=null?r:Ze,pt=T?(o=He.rect)!=null?o:me:null,Zt=!!(He.nodeRef.current&&He.rect),Wt=Sb(Zt?null:me),Xt=o5(Lt?Ge(Lt):null),et=_b(T?Vn??Ze:null),ee=Rb(et),Vt=Wb(p,{transform:{x:ne.x-Wt.x,y:ne.y-Wt.y,scaleX:1,scaleY:1},activatorEvent:Fe,active:oe,activeNodeRect:me,containerNodeRect:kt,draggingNodeRect:pt,over:X.current.over,overlayNodeRect:He.rect,scrollableAncestors:et,scrollableAncestorRects:ee,windowRect:Xt}),W=Jt?Un(Jt,ne):null,Me=Pb(et),fn=Fh(Me),Po=Fh(Me,[me]),Qt=Un(Vt,fn),ve=pt?Jy(pt,Vt):null,mn=oe&&ve?d({active:oe,collisionRect:ve,droppableRects:je,droppableContainers:pn,pointerCoordinates:W}):null,Fn=By(mn,"id"),[ft,cs]=A(null),us=Zt?Vt:Un(Vt,Po),ls=qy(us,(i=ft?.rect)!=null?i:null,me),hn=$(null),ds=E((Re,We)=>{let{sensor:Be,options:Ft}=We;if(re.current==null)return;let tt=B.get(re.current);if(!tt)return;let ke=Re.nativeEvent,Te=new Be({active:re.current,activeNode:tt,event:ke,options:Ft,context:X,onAbort(b){if(!B.get(b))return;let{onDragAbort:P}=Ct.current,J={id:b};P?.(J),y({type:"onDragAbort",event:J})},onPending(b,_,P,J){if(!B.get(b))return;let{onDragPending:ge}=Ct.current,he={id:b,constraint:_,initialCoordinates:P,offset:J};ge?.(he),y({type:"onDragPending",event:he})},onStart(b){let _=re.current;if(_==null)return;let P=B.get(_);if(!P)return;let{onDragStart:J}=Ct.current,te={activatorEvent:ke,active:{id:_,data:P.data,rect:Z}};Mo(()=>{J?.(te),M(bn.Initializing),x({type:_e.DragStart,initialCoordinates:b,active:_}),y({type:"onDragStart",event:te}),gt(hn.current),Zn(ke)})},onMove(b){x({type:_e.DragMove,coordinates:b})},onEnd:nt(_e.DragEnd),onCancel:nt(_e.DragCancel)});hn.current=Te;function nt(b){return async function(){let{active:P,collisions:J,over:te,scrollAdjustedTranslate:ge}=X.current,he=null;if(P&&ge){let{cancelDrop:Mt}=Ct.current;he={activatorEvent:ke,active:P,collisions:J,delta:ge,over:te},b===_e.DragEnd&&typeof Mt=="function"&&await Promise.resolve(Mt(he))&&(b=_e.DragCancel)}re.current=null,Mo(()=>{x({type:b}),M(bn.Uninitialized),cs(null),gt(null),Zn(null),hn.current=null;let Mt=b===_e.DragEnd?"onDragEnd":"onDragCancel";if(he){let en=Ct.current[Mt];en?.(he),y({type:Mt,event:he})}})}}},[B]),ju=E((Re,We)=>(Be,Ft)=>{let tt=Be.nativeEvent,ke=B.get(Ft);if(re.current!==null||!ke||tt.dndKit||tt.defaultPrevented)return;let Te={active:ke};Re(Be,We.options,Te)===!0&&(tt.dndKit={capturedBy:We.sensor},re.current=Ft,ds(Be,We))},[B,ds]),yr=bb(l,ju);Lb(l),nn(()=>{me&&R===bn.Initializing&&M(bn.Initialized)},[me,R]),O(()=>{let{onDragMove:Re}=Ct.current,{active:We,activatorEvent:Be,collisions:Ft,over:tt}=X.current;if(!We||!Be)return;let ke={active:We,activatorEvent:Be,collisions:Ft,delta:{x:Qt.x,y:Qt.y},over:tt};Mo(()=>{Re?.(ke),y({type:"onDragMove",event:ke})})},[Qt.x,Qt.y]),O(()=>{let{active:Re,activatorEvent:We,collisions:Be,droppableContainers:Ft,scrollAdjustedTranslate:tt}=X.current;if(!Re||re.current==null||!We||!tt)return;let{onDragOver:ke}=Ct.current,Te=Ft.get(Fn),nt=Te&&Te.rect.current?{id:Te.id,rect:Te.rect.current,data:Te.data,disabled:Te.disabled}:null,b={active:Re,activatorEvent:We,collisions:Be,delta:{x:tt.x,y:tt.y},over:nt};Mo(()=>{cs(nt),ke?.(b),y({type:"onDragOver",event:b})})},[Fn]),nn(()=>{X.current={activatorEvent:Fe,active:oe,activeNode:Ze,collisionRect:ve,collisions:mn,droppableRects:je,draggableNodes:B,draggingNode:Lt,draggingNodeRect:pt,droppableContainers:de,over:ft,scrollableAncestors:et,scrollAdjustedTranslate:Qt},Z.current={initial:pt,translated:ve}},[oe,Ze,mn,ve,B,Lt,pt,je,de,ft,et,Qt]),gb({...Wn,delta:ne,draggingRect:ve,pointerCoordinates:W,scrollableAncestors:et,scrollableAncestorRects:ee});let Zu=G(()=>({active:oe,activeNode:Ze,activeNodeRect:me,activatorEvent:Fe,collisions:mn,containerNodeRect:kt,dragOverlay:He,draggableNodes:B,droppableContainers:de,droppableRects:je,over:ft,measureDroppableContainers:zt,scrollableAncestors:et,scrollableAncestorRects:ee,measuringConfiguration:be,measuringScheduled:Pt,windowRect:Xt}),[oe,Ze,me,Fe,mn,kt,He,B,de,je,ft,zt,et,ee,be,Pt,Xt]),br=G(()=>({activatorEvent:Fe,activators:yr,active:oe,activeNodeRect:me,ariaDescribedById:{draggable:_t},dispatch:x,draggableNodes:B,over:ft,measureDroppableContainers:zt}),[Fe,yr,oe,me,x,_t,B,ft,zt]);return Ue.createElement(Uh.Provider,{value:I},Ue.createElement(Rs.Provider,{value:br},Ue.createElement(Ob.Provider,{value:Zu},Ue.createElement(i5.Provider,{value:ls},u)),Ue.createElement(Zb,{disabled:a?.restoreFocus===!1})),Ue.createElement(Zy,{...a,hiddenTextDescribedById:_t}));function vr(){let Re=Ne?.autoScrollEnabled===!1,We=typeof c=="object"?c.enabled===!1:c===!1,Be=T&&!Re&&!We;return typeof c=="object"?{...c,enabled:Be}:{enabled:Be}}}),Hb=we(null),Bh="button",Bb="Draggable";function Ts(e){let{id:t,data:n,disabled:r=!1,attributes:o}=e,i=$o(Bb),{activators:s,activatorEvent:a,active:c,activeNodeRect:u,ariaDescribedById:l,draggableNodes:d,over:m}=xe(Rs),{role:p=Bh,roleDescription:h="draggable",tabIndex:g=0}=o??{},C=c?.id===t,x=xe(C?i5:Hb),[y,I]=To(),[R,M]=To(),T=Mb(s,t),N=Pr(n);nn(()=>(d.set(t,{id:t,key:i,node:y,activatorNode:R,data:N}),()=>{let ne=d.get(t);ne&&ne.key===i&&d.delete(t)}),[d,t]);let B=G(()=>({role:p,tabIndex:g,"aria-disabled":r,"aria-pressed":C&&p===Bh?!0:void 0,"aria-roledescription":h,"aria-describedby":l.draggable}),[r,p,g,C,h,l.draggable]);return{active:c,activatorEvent:a,activeNodeRect:u,attributes:B,isDragging:C,listeners:r?void 0:T,node:y,over:m,setNodeRef:I,setActivatorNodeRef:M,transform:x}}var Ub="Droppable",Gb={timeout:25};function $s(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:o}=e,i=$o(Ub),{active:s,dispatch:a,over:c,measureDroppableContainers:u}=xe(Rs),l=$({disabled:n}),d=$(!1),m=$(null),p=$(null),{disabled:h,updateMeasurementsFor:g,timeout:C}={...Gb,...o},x=Pr(g??r),y=E(()=>{if(!d.current){d.current=!0;return}p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{u(Array.isArray(x.current)?x.current:[x.current]),p.current=null},C)},[C]),I=Ms({callback:y,disabled:h||!s}),R=E((B,ne)=>{I&&(ne&&(I.unobserve(ne),d.current=!1),B&&I.observe(B))},[I]),[M,T]=To(R),N=Pr(t);return O(()=>{!I||!M.current||(I.disconnect(),d.current=!1,I.observe(M.current))},[M,I]),O(()=>(a({type:_e.RegisterDroppable,element:{id:r,key:i,disabled:n,node:M,rect:m,data:N}}),()=>a({type:_e.UnregisterDroppable,key:i,id:r})),[r]),O(()=>{n!==l.current.disabled&&(a({type:_e.SetDroppableDisabled,id:r,key:i,disabled:n}),l.current.disabled=n)},[r,i,n,a]),{active:s,rect:m,isOver:c?.id===r,node:M,over:c,setNodeRef:T}}var nl=globalThis.__bbPluginRuntime;if(nl==null||nl.sonner==null)throw new Error('Cannot load "sonner": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var As=nl.sonner,_L="default"in As?As.default:As,{Toaster:PL,toast:st,useSonner:LL}=As;var Kb=Object.defineProperty,ol=(e,t)=>Kb(e,"name",{value:t,configurable:!0});function rl(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}ol(rl,"setRef");function a5(...e){return t=>{let n=!1,r=e.map(o=>{let i=rl(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){let i=r[o];typeof i=="function"?i():rl(e[o],null)}}}}ol(a5,"composeRefs");function il(...e){return E(a5(...e),e)}ol(il,"useComposedRefs");var qb=Object.defineProperty,$t=(e,t)=>qb(e,"name",{value:t,configurable:!0});function c5(e){let t=H((n,r)=>{let{children:o,...i}=n,s=null,a=!1,c=[];sl(o)&&typeof Ds=="function"&&(o=Ds(o._payload)),gs.forEach(o,m=>{if(p5(m)){a=!0;let p=m,h="child"in p.props?p.props.child:p.props.children;sl(h)&&typeof Ds=="function"&&(h=Ds(h._payload)),s=Jb(p,h),c.push(s?.props?.children)}else c.push(m)}),s?s=Ir(s,void 0,c):!a&&gs.count(o)===1&&Sr(o)&&(s=o);let u=s?d5(s):void 0,l=il(r,u);if(!s){if(o||o===0)throw new Error(a?ev(e):Qb(e));return o}let d=l5(i,s.props??{});return s.type!==xr&&(d.ref=r?l:u),Ir(s,d)});return t.displayName=`${e}.Slot`,t}$t(c5,"createSlot");var vn=c5("Slot"),u5=Symbol.for("radix.slottable");function Yb(e){let t=$t(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=u5,t}$t(Yb,"createSlottable");var Jb=$t((e,t)=>{if("child"in e.props){let n=e.props.child;return Sr(n)?Ir(n,void 0,e.props.children(n.props.children)):null}return Sr(t)?t:null},"getSlottableElementFromSlottable");function l5(e,t){let n={...t};for(let r in t){let o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{let c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}$t(l5,"mergeProps");function d5(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}$t(d5,"getElementRef");function p5(e){return Sr(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===u5}$t(p5,"isSlottable");var Xb=Symbol.for("react.lazy");function sl(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Xb&&"_payload"in e&&f5(e._payload)}$t(sl,"isLazyComponent");function f5(e){return typeof e=="object"&&e!==null&&"then"in e}$t(f5,"isPromiseLike");var Qb=$t(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),ev=$t(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Ds=it[" use ".trim().toString()];var al=globalThis.__bbPluginRuntime;if(al==null||al.classVarianceAuthority==null)throw new Error('Cannot load "class-variance-authority": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Es=al.classVarianceAuthority,AL="default"in Es?Es.default:Es,{cva:m5,cx:DL}=Es;var cl=globalThis.__bbPluginRuntime;if(cl==null||cl.clsx==null)throw new Error('Cannot load "clsx": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ns=cl.clsx,NL="default"in Ns?Ns.default:Ns,{clsx:h5}=Ns;var ul=globalThis.__bbPluginRuntime;if(ul==null||ul.tailwindMerge==null)throw new Error('Cannot load "tailwind-merge": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Os=ul.tailwindMerge,zL="default"in Os?Os.default:Os,{createTailwindMerge:jL,extendTailwindMerge:ZL,fromTheme:WL,getDefaultConfig:VL,mergeConfigs:FL,twJoin:HL,twMerge:g5,validators:BL}=Os;function w(...e){return g5(h5(e))}var zs="transition-colors duration-150 hover:duration-0",Ht="transition-none";var ll=globalThis.__bbPluginRuntime;if(ll==null||ll.jsxRuntime==null)throw new Error('Cannot load "react/jsx-runtime": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var js=ll.jsxRuntime,JL="default"in js?js.default:js,{Fragment:bt,jsx:f,jsxs:v}=js;var Zs=m5(`inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ${zs} focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0`,{variants:{variant:{default:"bg-foreground text-background hover:bg-foreground/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-state-hover hover:text-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-state-hover hover:text-foreground aria-pressed:bg-state-active aria-pressed:text-foreground aria-pressed:hover:bg-state-active data-[state=open]:bg-state-active data-[state=open]:text-foreground data-[state=open]:hover:bg-state-active",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Ke=H(({className:e,variant:t,size:n,asChild:r=!1,...o},i)=>f(r?vn:"button",{className:w(Zs({variant:t,size:n,className:e})),ref:i,...o}));Ke.displayName="Button";var dl=globalThis.__bbPluginRuntime;if(dl==null||dl.radixPopover==null)throw new Error('Cannot load "@radix-ui/react-popover": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ws=dl.radixPopover,iM="default"in Ws?Ws.default:Ws,{Anchor:C5,Arrow:sM,Close:aM,Content:k5,Popover:cM,PopoverAnchor:uM,PopoverArrow:lM,PopoverClose:dM,PopoverContent:pM,PopoverPortal:fM,PopoverTrigger:mM,Portal:y5,Root:b5,Trigger:v5,createPopoverScope:hM}=Ws;function Ae(){let e="thread-glance";return{"data-bb-portaled-overlay":"","data-bb-plugin-root":"",...e!==void 0?{"data-bb-plugin":e}:{}}}var nv="select-none",rv=new Set(["button","checkbox","file","hidden","image","radio","range","reset","submit"]),wn=e=>w(nv,e);function ov(e){return e instanceof HTMLTextAreaElement?!0:e instanceof HTMLInputElement?!e.disabled&&!e.readOnly&&!rv.has(e.type):e instanceof HTMLElement?e.isContentEditable||e.closest("[contenteditable='true']")!==null:!1}function Wo(e){if(typeof document>"u")return;let t=document.activeElement;!t||!ov(t)||e!==null&&!e.contains(t)||t.blur()}function xn(){Wo(null)}function w5(){Wo(null)}function rn(e){e.preventDefault()}var pl="pointer";typeof document<"u"&&(document.addEventListener("keydown",()=>{pl="keyboard"},{capture:!0}),document.addEventListener("pointerdown",()=>{pl="pointer"},{capture:!0}));function x5(){return pl==="keyboard"}var Vs=new Map;function iv(e){if(typeof window>"u"||!window.matchMedia)return null;let t=Vs.get(e);if(t)return t;let n=window.matchMedia(e),r=new Set,o=()=>{for(let i of r)i()};return t={mql:n,subscribe(i){let s=r.size===0;return r.add(i),s&&n.addEventListener("change",o),()=>{r.delete(i),r.size===0&&(n.removeEventListener("change",o),Vs.delete(e))}}},Vs.set(e,t),t}function sv(e,t){return iv(e)?.subscribe(t)??(()=>{})}function av(e){return typeof window>"u"||!window.matchMedia?!1:Vs.get(e)?.mql.matches??window.matchMedia(e).matches}function Fs(e){return tn(t=>sv(e,t),()=>av(e),()=>!1)}var cv="(max-width: 767px)",uv=we(null);function I5(){let e=xe(uv),t=Fs(cv);return e!==null?e:t}var lv="(pointer: coarse)";function Hs(){return Fs(lv)}var dv=120,Gs={width:"auto",minWidth:"auto",maxWidth:"none"},fl="--bb-drawer-keyboard-inset",pv=80;function Us(e){e!==null&&(e.style.height="",e.style.bottom="",e.style.removeProperty(fl))}function fv({layoutViewportHeight:e,visualViewportHeight:t,visualViewportOffsetTop:n}){let r=Math.round(e-(t+n));return r>=pv?r:0}function mv(e,t){O(()=>{let n=e.current,r=window.visualViewport;if(n===null||!t||!r)return;let o=null,i=()=>{if(o=null,r.scale!==1){Us(n);return}let a=fv({layoutViewportHeight:n.ownerDocument.documentElement.clientHeight,visualViewportHeight:r.height,visualViewportOffsetTop:r.offsetTop});if(a===0){n.style.bottom="",n.style.removeProperty(fl);return}n.style.bottom=`${a}px`,n.style.setProperty(fl,`${a}px`)},s=()=>{o!==null&&window.cancelAnimationFrame(o),o=window.requestAnimationFrame(i)};return i(),r.addEventListener("resize",s),r.addEventListener("scroll",s),()=>{r.removeEventListener("resize",s),r.removeEventListener("scroll",s),o!==null&&window.cancelAnimationFrame(o),Us(n)}},[t,e])}function hv(){let e=I5()?"drawer":"floating",t=Hs();return{presentation:e,supportsHover:e==="floating"&&!t}}function Rr(e,t,n=!1){let{presentation:r}=hv(),o=r==="drawer",[i,s]=A(n),a=e!==void 0,c=a?e:i,u=E(l=>{c&&!l&&o&&w5(),a||s(l),t?.(l)},[o,a,t,c]);return G(()=>({isCompactViewport:o,open:c,onOpenChange:u}),[o,c,u])}var qn=H(({asChild:e,open:t,onOpenChange:n,haspopup:r,onClick:o,children:i,className:s,...a},c)=>{let u=wn(s),l=m=>{o?.(m),m.defaultPrevented||(t||xn(),n(!t))},d={"aria-expanded":t,"aria-haspopup":r,"data-state":t?"open":"closed"};return e?f(vn,{ref:c,onClick:l,onMouseDown:rn,className:u,...d,...a,children:i}):f("button",{ref:c,type:"button",onClick:l,onMouseDown:rn,className:u,...d,...a,children:i})});qn.displayName="MobileTrigger";var gv=["side","sideOffset","align","alignOffset","collisionPadding","collisionBoundary","arrowPadding","sticky","hideWhenDetached","avoidCollisions","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside"],Cv=new Set(gv);function Tr(e){let t={};for(let n of Object.keys(e))Cv.has(n)||(t[n]=e[n]);return t}function kv({open:e,enabled:t=!0}){let[n,r]=A(!1),o=E(()=>r(!0),[]);return O(()=>{if(!t||!e||n)return;let i=null,s=null;i=window.requestAnimationFrame(()=>{i=null,s=window.requestAnimationFrame(()=>{s=null,o()})});let a=window.setTimeout(o,dv);return()=>{i!==null&&window.cancelAnimationFrame(i),s!==null&&window.cancelAnimationFrame(s),window.clearTimeout(a)}},[t,n,e,o]),{isContentRealized:t&&n,realizeContent:o}}function $r({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:u}){let{isContentRealized:l}=kv({open:e});return!e&&!l?null:f(Pv,{open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,onContentAnimationEnd:c,children:l?u:f("div",{"aria-hidden":"true",className:"min-h-32","data-responsive-drawer-placeholder":""})})}var S5="cubic-bezier(0.32, 0.72, 0, 1)",yv=.25,bv=450,vv=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])'].join(","),Bs=new WeakMap;function wv(e){return Array.from(e.querySelectorAll(vv)).filter(t=>t.closest('[aria-hidden="true"], [inert]')===null)}function xv(e,t){let n=e?.closest("[data-bb-portaled-overlay]");return n!=null&&n!==t}function Iv(e,t){let n=t.ownerDocument.activeElement;if(!t.contains(n)&&xv(n,t))return;let r=wv(t);if(e.preventDefault(),r.length===0){t.focus({preventScroll:!0});return}let o=r[0],i=r[r.length-1];if(e.shiftKey){if(!t.contains(n)||n===t||n===o){i?.focus({preventScroll:!0});return}let a=r.indexOf(n);r[Math.max(0,a-1)]?.focus({preventScroll:!0});return}if(!t.contains(n)||n===t||n===i){o?.focus({preventScroll:!0});return}let s=r.indexOf(n);r[Math.min(r.length-1,s+1)]?.focus({preventScroll:!0})}function Sv(e,t){let n=Bs.get(e);if(n===void 0){let r=[],o=i=>{if(i.defaultPrevented)return;let s=r[r.length-1],a=s?.panel()??null;s===void 0||a===null||(i.key==="Escape"?(i.preventDefault(),s.requestClose()):i.key==="Tab"&&Iv(i,a))};n={entries:r,handleKeyDown:o},Bs.set(e,n),e.addEventListener("keydown",o)}return n.entries.push(t),()=>{let r=Bs.get(e);if(r===void 0)return;let o=r.entries.indexOf(t);o>=0&&r.entries.splice(o,1),r.entries.length===0&&(e.removeEventListener("keydown",r.handleKeyDown),Bs.delete(e))}}function _v({onAfterCloseAutoFocus:e,onBeforeCloseAutoFocus:t,open:n,panelRef:r,requestClose:o}){let i=$(null);ot(()=>{if(!n)return;let a=r.current;if(a===null)return;let c=a.ownerDocument,u=c.activeElement;i.current=u instanceof HTMLElement&&u!==c.body?u:null;let l=Sv(c,{panel:()=>r.current,requestClose:o});return a.focus({preventScroll:!0}),l},[n,r,o]);let s=$(n);ot(()=>{let a;if(s.current&&!n){t?.();let c=i.current;if(c?.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&(c.focus({preventScroll:!0}),c.ownerDocument.activeElement!==c)){let u=c.ownerDocument.defaultView;if(u!==null){let l=u.requestAnimationFrame(()=>{c.isConnected&&c.closest('[aria-hidden="true"], [inert]')===null&&c.focus({preventScroll:!0}),e?.()});a=()=>u.cancelAnimationFrame(l)}}i.current=null,a===void 0&&e?.()}return s.current=n,a},[e,t,n])}function Pv({open:e,onOpenChange:t,onAfterCloseAutoFocus:n,closeOnBackdropClick:r=!0,srLabel:o,labelledBy:i,describedBy:s,contentClassName:a,motionDurationMs:c=220,onContentAnimationEnd:u,children:l}){let d=$(null),m=$(null),p=$(null),h=$(null),g=yn(),C=Ae(),x=`transform ${c}ms ${S5}`,y=`opacity ${c}ms ${S5}`,I=$(t);ot(()=>{I.current=t},[t]);let R=E(()=>{Wo(d.current),Us(d.current),I.current(!1)},[]),M=E(()=>{Wo(d.current),Us(d.current)},[]);_v({onAfterCloseAutoFocus:n,onBeforeCloseAutoFocus:M,open:e,panelRef:d,requestClose:R}),mv(d,e);let T=E(Z=>{h.current!==Z&&(h.current=Z,u?.(Z))},[u]);O(()=>{h.current=null;let Z=window.setTimeout(()=>T(e),c+50);return()=>window.clearTimeout(Z)},[c,e,T]);let N=E((Z,oe,re)=>{let Ne=d.current,gt=m.current;Ne===null||gt===null||(Ne.style.transition=re?x:"none",Ne.style.transform=`translate3d(0, ${Z}px, 0)`,gt.style.transition=re?y:"none",gt.style.opacity=String(Math.max(0,Math.min(1,1-Z/oe))))},[y,x]),B=E(Z=>{if(!e||Z.button!==0)return;Z.currentTarget.setPointerCapture(Z.pointerId);let oe=Date.now(),re=Math.max(d.current?.clientHeight??0,1);p.current={pointerId:Z.pointerId,startY:Z.clientY,lastY:Z.clientY,lastTimeMs:oe,velocityY:0,height:re},N(0,re,!1),Z.preventDefault()},[e,N]),ne=E(Z=>{let oe=p.current;if(oe===null||oe.pointerId!==Z.pointerId)return;let re=Date.now(),Ne=re-oe.lastTimeMs;Ne>0&&(oe.velocityY=(Z.clientY-oe.lastY)/Ne*1e3,oe.lastY=Z.clientY,oe.lastTimeMs=re),N(Math.max(0,Z.clientY-oe.startY),oe.height,!1),Z.preventDefault()},[N]),de=E((Z,oe)=>{let re=p.current;if(re===null||re.pointerId!==Z.pointerId)return;p.current=null;let Ne=Math.max(0,Z.clientY-re.startY);!oe&&(Ne>=re.height*yv||re.velocityY>=bv)?(N(re.height,re.height,!0),R()):N(0,re.height,!0),Z.preventDefault()},[R,N]),ie=typeof document>"u"?null:document.body;return ie===null?null:ks(v(bt,{children:[f("div",{ref:m,...C,"aria-hidden":"true","data-persistent-drawer-backdrop":"","data-state":e?"open":"closed",className:"fixed inset-0 z-50 bg-black/40",style:{opacity:e?1:0,pointerEvents:e?"auto":"none",transition:y},onClick:r?R:void 0,onTouchMove:Z=>Z.preventDefault()}),v("div",{ref:d,...C,"aria-hidden":!e,"aria-labelledby":i??(o===void 0?void 0:g),"aria-describedby":s,"aria-modal":e||void 0,"data-bb-portaled-overlay":"","data-persistent-drawer-content":"","data-state":e?"open":"closed",inert:!e,role:"dialog",tabIndex:-1,className:w("fixed inset-x-0 bottom-0 z-50 mt-24 flex max-h-[calc(92dvh-var(--bb-drawer-keyboard-inset,0px))] flex-col rounded-t-xl border bg-background outline-none",a),style:{transform:e?"translate3d(0, 0, 0)":"translate3d(0, 100%, 0)",transition:x,willChange:e?"transform":void 0},onTransitionEnd:Z=>{Z.currentTarget===Z.target&&Z.propertyName==="transform"&&T(e)},children:[f("div",{"data-persistent-drawer-handle":"",className:"mx-auto flex h-8 w-16 shrink-0 touch-none cursor-grab items-center justify-center active:cursor-grabbing",onPointerDown:B,onPointerMove:ne,onPointerUp:Z=>de(Z,!1),onPointerCancel:Z=>de(Z,!0),children:f("div",{className:"h-1 w-10 rounded-full bg-muted-foreground/20"})}),o===void 0?null:f("h2",{id:g,className:"sr-only",children:o}),l]})]}),ie)}var ml=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function hl(){return xe(ml)}function Ks({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Rr(t,n,r);return i.isCompactViewport?f(ml.Provider,{value:i,children:e}):f(b5,{open:i.open,onOpenChange:i.onOpenChange,...o,children:f(ml.Provider,{value:i,children:e})})}var Vo=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=hl();return i?f(qn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):f(v5,{ref:o,asChild:e,className:wn(n),onMouseDown:c=>{s||xn(),rn(c)},...r,children:t})});Vo.displayName="PopoverTrigger";var Fo=H(({className:e,align:t="center",sideOffset:n=4,children:r,dismissOnOutsideInteraction:o=!0,onInteractOutside:i,mobileTitle:s,mobileClassName:a,onMobileContentAnimationEnd:c,onOpenAutoFocus:u,autoFocusRef:l,...d},m)=>{let{isCompactViewport:p,open:h,onOpenChange:g}=hl(),C=Hs(),x=Ae();if(O(()=>{if(!h||p||C||!l)return;let y=window.requestAnimationFrame(()=>{let I=l.current;I?.focus(),I instanceof HTMLInputElement&&I.select()});return()=>window.cancelAnimationFrame(y)},[l,p,C,h]),p){let{style:y,...I}=Tr(d);return f($r,{open:h,onOpenChange:g,srLabel:s??"Options",closeOnBackdropClick:o,contentClassName:a,onContentAnimationEnd:c,children:f("div",{ref:m,className:w("overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e),...I,style:{...y,...Gs},children:r})})}return f(y5,{children:f(k5,{ref:m,...x,align:t,sideOffset:n,onOpenAutoFocus:y=>{(C||l)&&y.preventDefault(),C||u?.(y)},className:w("z-50 w-96 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95",e),...d,onInteractOutside:y=>{o||y.preventDefault(),i?.(y)},children:r})})});Fo.displayName="PopoverContent";var Lv=H(({children:e,...t},n)=>{let{isCompactViewport:r}=hl();return r?f(bt,{children:e}):f(C5,{ref:n,...t,children:e})});Lv.displayName="PopoverAnchor";var Mv=new Set(["waits-on-you","unread-failed","queue-failed","offline","unread"]),Rv=new Set(["working","background","queued","scheduled"]);function Tv(e){return!Rv.has(e.state.kind)}function $v(e,t){let n=0;return t.has("unread-failed")&&(n=Math.max(n,e.latestAttentionAt)),t.has("queue-failed")&&(n=Math.max(n,e.updatedAt)),n}function _5(e,t,n){return!t.has("unread-failed")&&!t.has("queue-failed")||!Tv(n)?!1:Math.max(n.thread.latestAttentionAt,n.finishedAt??0)<=$v(e,t)}function P5(e,t){let n=new Set;if(t.isRoot||t.mode==="everything"){for(let r of e)Mv.has(r)&&n.add(r);return n}return e.has("waits-on-you")&&n.add("waits-on-you"),e.has("offline")&&n.add("offline"),t.orphaned&&(e.has("unread-failed")&&n.add("unread-failed"),e.has("queue-failed")&&n.add("queue-failed")),n}function L5(e,t){return e.has("waits-on-you")||e.has("unread-failed")?!0:!t&&e.has("queue-failed")}function M5(e,t){let n=new Set,r=new Set;for(let o of e.infos.values())o.thread.isArchived||(o.attentionFlags.has("unread")&&!o.thread.isHidden&&n.add(o.thread.id),L5(o.attentionFlags,o.parentId===null)&&r.add(o.thread.id));return{activeThreadId:t,unread:n,attentionIds:r}}function R5(e,t){let n=new Map;t.activeThreadId!==null&&t.activeThreadId!==e?.activeThreadId&&n.set(t.activeThreadId,"reveal");for(let r of t.attentionIds)e?.attentionIds.has(r)||n.set(r,"reveal");for(let r of t.unread)r===t.activeThreadId||n.has(r)||e?.unread.has(r)||n.set(r,"open");return n}function T5(e,t){if(t.size===0)return e;let n=new Map(e);for(let[r,o]of t)n.get(r)!=="reveal"&&n.set(r,o);return n}function $5(e,t){let n=!1,r=new Map;for(let[o,i]of e)t(o)?n=!0:r.set(o,i);return n?r:e}function A5(e,t){let n=$(null),r=$(null),o=$(void 0),[i,s]=A(()=>new Map),a=$(i);a.current=i;let c=i;if(e!==null&&(e!==r.current||t!==o.current)){let l=M5(e,t),d=R5(n.current,l);n.current=l,r.current=e,o.current=t,c=T5(i,d),c!==i&&(a.current=c,s(c))}let u=E(l=>{let d=$5(a.current,l);d!==a.current&&(a.current=d,s(d))},[]);return{targets:c,prune:u}}var ue={};Rt(ue,{$brand:()=>Rl,$input:()=>tp,$output:()=>ep,INVALID:()=>Je,NEVER:()=>Ml,TimePrecision:()=>pp,ZodAny:()=>e2,ZodArray:()=>o2,ZodBase64:()=>Bc,ZodBase64URL:()=>Uc,ZodBigInt:()=>ho,ZodBigIntFormat:()=>qc,ZodBoolean:()=>mo,ZodCIDRv4:()=>Fc,ZodCIDRv6:()=>Hc,ZodCUID:()=>Nc,ZodCUID2:()=>Oc,ZodCatch:()=>S2,ZodCodec:()=>Ni,ZodCompileAsyncError:()=>Dt,ZodCompileUnsupportedError:()=>Q,ZodCreditCard:()=>Uf,ZodCustom:()=>Oi,ZodCustomStringFormat:()=>fr,ZodDate:()=>Ri,ZodDefault:()=>y2,ZodDiscriminatedUnion:()=>s2,ZodE164:()=>Gc,ZodEmail:()=>$c,ZodEmoji:()=>Dc,ZodEnum:()=>lo,ZodError:()=>VI,ZodExactOptional:()=>Qc,ZodFile:()=>h2,ZodFirstPartyTypeKind:()=>j2,ZodFunction:()=>E2,ZodGUID:()=>Ac,ZodIBAN:()=>Gf,ZodIPv4:()=>Wc,ZodIPv6:()=>Vc,ZodISODate:()=>An,ZodISODateTime:()=>$n,ZodISODuration:()=>En,ZodISOTime:()=>Dn,ZodInstanceOf:()=>z2,ZodIntersection:()=>a2,ZodIssueCode:()=>BI,ZodJWT:()=>Kc,ZodKSUID:()=>Zc,ZodLazy:()=>$2,ZodLiteral:()=>m2,ZodMAC:()=>Bf,ZodMap:()=>p2,ZodNaN:()=>P2,ZodNanoID:()=>Ec,ZodNever:()=>n2,ZodNonOptional:()=>eu,ZodNull:()=>Xf,ZodNullable:()=>k2,ZodNumber:()=>fo,ZodNumberFormat:()=>mr,ZodObject:()=>$i,ZodOptional:()=>Di,ZodPipe:()=>Ei,ZodPrefault:()=>v2,ZodPreprocess:()=>L2,ZodPromise:()=>D2,ZodReadonly:()=>M2,ZodRealError:()=>dt,ZodRecord:()=>uo,ZodSet:()=>f2,ZodString:()=>po,ZodStringFormat:()=>le,ZodSuccess:()=>I2,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>T2,ZodTransform:()=>g2,ZodTuple:()=>u2,ZodType:()=>q,ZodULID:()=>zc,ZodURL:()=>Mi,ZodUUID:()=>Kt,ZodUndefined:()=>Jf,ZodUnion:()=>Ai,ZodUnknown:()=>t2,ZodVoid:()=>r2,ZodXID:()=>jc,ZodXor:()=>i2,_ZodString:()=>Tc,_default:()=>b2,_function:()=>r4,any:()=>D9,array:()=>Ti,base64:()=>m9,base64url:()=>h9,bigint:()=>M9,boolean:()=>qf,catch:()=>_2,check:()=>o4,cidrv4:()=>p9,cidrv6:()=>f9,clone:()=>se,codec:()=>Q9,coerce:()=>W2,compile:()=>ip,config:()=>ye,core:()=>un,creditCard:()=>C9,cuid:()=>o9,cuid2:()=>i9,currencyCode:()=>x9,custom:()=>i4,date:()=>N9,decode:()=>zf,decodeAsync:()=>Zf,deepPartial:()=>k4,describe:()=>s4,discriminatedUnion:()=>V9,e164:()=>g9,email:()=>K0,emoji:()=>n9,encode:()=>Of,encodeAsync:()=>jf,endsWith:()=>Xr,enum:()=>Jc,exactOptional:()=>C2,file:()=>q9,flattenError:()=>Qo,float32:()=>S9,float64:()=>_9,formatError:()=>ei,fromJSONSchema:()=>g4,function:()=>r4,getDiscriminatedOption:()=>L1,getErrorMap:()=>GI,globalRegistry:()=>ze,gt:()=>Ut,gte:()=>ht,guid:()=>q0,hash:()=>I9,hex:()=>w9,hostname:()=>v9,httpUrl:()=>t9,iban:()=>k9,includes:()=>Yr,input:()=>b4,instanceof:()=>c4,int:()=>Mc,int32:()=>P9,int64:()=>R9,intersection:()=>c2,invertCodec:()=>e4,ipv4:()=>u9,ipv6:()=>d9,iso:()=>zi,json:()=>l4,jwt:()=>y9,keyof:()=>O9,ksuid:()=>c9,lazy:()=>A2,length:()=>cr,literal:()=>K9,locales:()=>yi,looseObject:()=>Z9,looseRecord:()=>H9,lowercase:()=>Kr,lt:()=>Bt,lte:()=>mt,mac:()=>l9,map:()=>B9,maxLength:()=>ar,maxSize:()=>Ln,memoizer:()=>ki,meta:()=>a4,mime:()=>eo,minLength:()=>cn,minSize:()=>Gt,multipleOf:()=>Pn,nan:()=>X9,nanoid:()=>r9,nativeEnum:()=>G9,negative:()=>kc,never:()=>Yc,nonnegative:()=>bc,nonoptional:()=>x2,nonpositive:()=>yc,normalize:()=>to,null:()=>Qf,nullable:()=>Li,nullish:()=>Y9,number:()=>Kf,object:()=>z9,optional:()=>dr,output:()=>v4,overwrite:()=>Et,parse:()=>Af,parseAsync:()=>Df,partialRecord:()=>F9,pipe:()=>Rc,positive:()=>Cc,prefault:()=>w2,preprocess:()=>d4,prettifyError:()=>El,promise:()=>n4,properties:()=>Qr,property:()=>vc,readonly:()=>R2,record:()=>d2,refine:()=>N2,regex:()=>Gr,regexes:()=>xt,registry:()=>Ua,safeDecode:()=>Vf,safeDecodeAsync:()=>Hf,safeEncode:()=>Wf,safeEncodeAsync:()=>Ff,safeParse:()=>Ef,safeParseAsync:()=>Nf,set:()=>U9,setErrorMap:()=>UI,size:()=>sr,slugify:()=>io,startsWith:()=>Jr,strictObject:()=>j9,string:()=>Pi,stringFormat:()=>b9,stringbool:()=>u4,success:()=>J9,superRefine:()=>O2,symbol:()=>$9,templateLiteral:()=>t4,toJSONSchema:()=>Sc,toLowerCase:()=>ro,toUpperCase:()=>oo,toZod:()=>Ho,transform:()=>Xc,treeifyError:()=>Dl,trim:()=>no,tuple:()=>l2,uint32:()=>L9,uint64:()=>T9,ulid:()=>s9,undefined:()=>A9,union:()=>go,unknown:()=>lr,uppercase:()=>qr,url:()=>e9,util:()=>j,uuid:()=>Y0,uuidv4:()=>J0,uuidv6:()=>X0,uuidv7:()=>Q0,validate:()=>ti,validateAsync:()=>ni,void:()=>E9,withParser:()=>Ga,xid:()=>a9,xor:()=>W9});var un={};Rt(un,{$ZodAny:()=>b1,$ZodArray:()=>S1,$ZodAsyncError:()=>ut,$ZodBase64:()=>c1,$ZodBase64URL:()=>u1,$ZodBigInt:()=>Da,$ZodBigIntFormat:()=>g1,$ZodBoolean:()=>pi,$ZodCIDRv4:()=>s1,$ZodCIDRv6:()=>a1,$ZodCUID:()=>Kd,$ZodCUID2:()=>qd,$ZodCatch:()=>H1,$ZodCheck:()=>pe,$ZodCheckBigIntFormat:()=>vd,$ZodCheckEndsWith:()=>Ad,$ZodCheckGreaterThan:()=>ka,$ZodCheckIncludes:()=>Td,$ZodCheckLengthEquals:()=>Pd,$ZodCheckLessThan:()=>Ca,$ZodCheckLowerCase:()=>Md,$ZodCheckMaxLength:()=>Sd,$ZodCheckMaxSize:()=>wd,$ZodCheckMimeType:()=>Nd,$ZodCheckMinLength:()=>_d,$ZodCheckMinSize:()=>xd,$ZodCheckMultipleOf:()=>yd,$ZodCheckNumberFormat:()=>bd,$ZodCheckOverwrite:()=>Od,$ZodCheckProperties:()=>Ed,$ZodCheckProperty:()=>Dd,$ZodCheckRegex:()=>Ld,$ZodCheckSizeEquals:()=>Id,$ZodCheckStartsWith:()=>$d,$ZodCheckStringFormat:()=>Fr,$ZodCheckUpperCase:()=>Rd,$ZodCodec:()=>mi,$ZodCreditCard:()=>d1,$ZodCustom:()=>J1,$ZodCustomStringFormat:()=>m1,$ZodCyclicError:()=>Wa,$ZodDate:()=>I1,$ZodDefault:()=>Z1,$ZodDiscriminatedUnion:()=>M1,$ZodE164:()=>l1,$ZodEmail:()=>Vd,$ZodEmoji:()=>Ud,$ZodEncodeError:()=>_n,$ZodEnum:()=>D1,$ZodError:()=>Al,$ZodExactOptional:()=>z1,$ZodFile:()=>N1,$ZodFunction:()=>q1,$ZodGUID:()=>Zd,$ZodIBAN:()=>p1,$ZodIPv4:()=>r1,$ZodIPv6:()=>o1,$ZodISODate:()=>e1,$ZodISODateTime:()=>Qd,$ZodISODuration:()=>n1,$ZodISOTime:()=>t1,$ZodIntersection:()=>R1,$ZodJWT:()=>f1,$ZodKSUID:()=>Xd,$ZodLazy:()=>hi,$ZodLiteral:()=>E1,$ZodMAC:()=>i1,$ZodMap:()=>$1,$ZodNaN:()=>B1,$ZodNanoID:()=>Gd,$ZodNever:()=>w1,$ZodNonOptional:()=>V1,$ZodNull:()=>y1,$ZodNullable:()=>j1,$ZodNumber:()=>Aa,$ZodNumberFormat:()=>h1,$ZodObject:()=>m0,$ZodObjectJIT:()=>_1,$ZodOptional:()=>Na,$ZodPipe:()=>Oa,$ZodPrefault:()=>W1,$ZodPreprocess:()=>U1,$ZodPromise:()=>Y1,$ZodReadonly:()=>G1,$ZodRealError:()=>lt,$ZodRecord:()=>T1,$ZodRegistry:()=>Ba,$ZodSet:()=>A1,$ZodString:()=>tr,$ZodStringFormat:()=>ae,$ZodSuccess:()=>F1,$ZodSymbol:()=>C1,$ZodTemplateLiteral:()=>K1,$ZodTransform:()=>O1,$ZodTuple:()=>Ea,$ZodType:()=>K,$ZodULID:()=>Yd,$ZodURL:()=>Bd,$ZodUUID:()=>Wd,$ZodUndefined:()=>k1,$ZodUnion:()=>fi,$ZodUnknown:()=>v1,$ZodVoid:()=>x1,$ZodXID:()=>Jd,$ZodXor:()=>P1,$brand:()=>Rl,$constructor:()=>k,$input:()=>tp,$output:()=>ep,Doc:()=>er,INVALID:()=>Je,JSONSchema:()=>B0,JSONSchemaGenerator:()=>_c,NEVER:()=>Ml,TimePrecision:()=>pp,URL_BAD_FORMAT:()=>Fd,URL_UNPARSEABLE:()=>ai,ZodCompileAsyncError:()=>Dt,ZodCompileUnsupportedError:()=>Q,_any:()=>Mp,_array:()=>Np,_base64:()=>fc,_base64url:()=>mc,_bigint:()=>wp,_boolean:()=>bp,_catch:()=>RI,_check:()=>M0,_cidrv4:()=>dc,_cidrv6:()=>pc,_coercedBigint:()=>xp,_coercedBoolean:()=>vp,_coercedDate:()=>Dp,_coercedNumber:()=>mp,_coercedString:()=>cp,_creditCard:()=>lp,_cuid:()=>oc,_cuid2:()=>ic,_custom:()=>zp,_date:()=>Ap,_decode:()=>sa,_decodeAsync:()=>ca,_default:()=>PI,_discriminatedUnion:()=>hI,_e164:()=>hc,_email:()=>Ya,_emoji:()=>nc,_encode:()=>ia,_encodeAsync:()=>aa,_endsWith:()=>Xr,_enum:()=>vI,_file:()=>Op,_float32:()=>gp,_float64:()=>Cp,_gt:()=>Ut,_gte:()=>ht,_guid:()=>Ja,_iban:()=>dp,_includes:()=>Yr,_int:()=>hp,_int32:()=>kp,_int64:()=>Ip,_intersection:()=>gI,_ipv4:()=>uc,_ipv6:()=>lc,_isoDate:()=>wi,_isoDateTime:()=>vi,_isoDuration:()=>Ii,_isoTime:()=>xi,_jwt:()=>gc,_ksuid:()=>cc,_lazy:()=>DI,_length:()=>cr,_literal:()=>xI,_lowercase:()=>Kr,_lt:()=>Bt,_lte:()=>mt,_mac:()=>up,_map:()=>yI,_max:()=>mt,_maxLength:()=>ar,_maxSize:()=>Ln,_mime:()=>eo,_min:()=>ht,_minLength:()=>cn,_minSize:()=>Gt,_multipleOf:()=>Pn,_nan:()=>Ep,_nanoid:()=>rc,_nativeEnum:()=>wI,_negative:()=>kc,_never:()=>Tp,_nonnegative:()=>bc,_nonoptional:()=>LI,_nonpositive:()=>yc,_normalize:()=>to,_null:()=>Lp,_nullable:()=>_I,_number:()=>fp,_optional:()=>SI,_overwrite:()=>Et,_parse:()=>jr,_parseAsync:()=>Zr,_pipe:()=>TI,_positive:()=>Cc,_promise:()=>EI,_properties:()=>Qr,_property:()=>vc,_readonly:()=>$I,_record:()=>kI,_refine:()=>jp,_regex:()=>Gr,_safeDecode:()=>la,_safeDecodeAsync:()=>pa,_safeEncode:()=>ua,_safeEncodeAsync:()=>da,_safeParse:()=>Wr,_safeParseAsync:()=>Vr,_set:()=>bI,_size:()=>sr,_slugify:()=>io,_startsWith:()=>Jr,_string:()=>ap,_stringFormat:()=>ur,_stringbool:()=>Fp,_success:()=>MI,_superRefine:()=>Zp,_symbol:()=>_p,_templateLiteral:()=>AI,_toLowerCase:()=>ro,_toUpperCase:()=>oo,_transform:()=>II,_trim:()=>no,_tuple:()=>CI,_uint32:()=>yp,_uint64:()=>Sp,_ulid:()=>sc,_undefined:()=>Pp,_union:()=>fI,_unknown:()=>Rp,_uppercase:()=>qr,_url:()=>bi,_uuid:()=>Xa,_uuidv4:()=>Qa,_uuidv6:()=>ec,_uuidv7:()=>tc,_void:()=>$p,_xid:()=>ac,_xor:()=>mI,base64Charset:()=>La,base64urlCharset:()=>di,canParseURL:()=>Hd,clone:()=>se,compile:()=>ip,compileFn:()=>Ka,config:()=>ye,createStandardJSONSchemaMethod:()=>so,createToJSONSchemaMethod:()=>Bp,decode:()=>xw,decodeAsync:()=>Sw,describe:()=>Wp,encode:()=>ww,encodeAsync:()=>Iw,extractDefs:()=>Rn,finalize:()=>Tn,flattenError:()=>Qo,formatError:()=>ei,getDiscriminatedOption:()=>L1,globalConfig:()=>De,globalRegistry:()=>ze,handleUnrepresentable:()=>Pe,initializeContext:()=>Mn,isBackEdge:()=>Fa,isRecursiveSchema:()=>Va,isValidBase64:()=>li,isValidBase64URL:()=>Ma,isValidCIDRv6:()=>Pa,isValidCreditCard:()=>Ra,isValidIBAN:()=>Ta,isValidIPv6:()=>ui,isValidJWT:()=>$a,locales:()=>yi,memoizer:()=>ki,mergeValues:()=>Hr,meta:()=>Vp,parse:()=>ra,parseAsync:()=>oa,parseURLObject:()=>d0,prettifyError:()=>El,process:()=>ce,processSchema:()=>ce,regexes:()=>xt,registry:()=>Ua,safeDecode:()=>Pw,safeDecodeAsync:()=>Mw,safeEncode:()=>_w,safeEncodeAsync:()=>Lw,safeParse:()=>Cw,safeParseAsync:()=>kw,standardProps:()=>xa,stripTabAndNewline:()=>ci,toDotPath:()=>H5,toJSONSchema:()=>Sc,toZod:()=>Ho,treeifyError:()=>Dl,urlHostnameOk:()=>Sa,urlProtocolOk:()=>_a,util:()=>j,validate:()=>ti,validateAsync:()=>ni,validateURL:()=>Ia,version:()=>zd,withParser:()=>Ga});var j={};Rt(j,{BIGINT_FORMAT_RANGES:()=>qo,CONSTANT_CATCH:()=>ta,Class:()=>kl,NUMBER_FORMAT_RANGES:()=>Ko,aborted:()=>Ye,allowsEval:()=>vl,assert:()=>Ov,assertEqual:()=>Av,assertIs:()=>Ev,assertNever:()=>Nv,assertNotEqual:()=>Dv,assignProp:()=>Oe,attachSchema:()=>ea,base64ToUint8Array:()=>z5,base64urlToUint8Array:()=>nw,cached:()=>Nr,captureStackTrace:()=>Js,cleanEnum:()=>tw,cleanRegex:()=>sn,clone:()=>se,cloneDef:()=>Zv,codePointLength:()=>Xn,constantCatch:()=>Pl,createTransparentProxy:()=>Uv,defineLazy:()=>yl,defineLazyInternal:()=>Y,derived:()=>sw,esc:()=>qe,escapeRegex:()=>wt,explicitlyAborted:()=>Il,extend:()=>qv,finalizeIssue:()=>ct,floatSafeRemainder:()=>Bo,getElementAtPath:()=>Wv,getEnumValues:()=>Dr,getLengthableOrigin:()=>Jo,getParsedType:()=>Bv,getSizableOrigin:()=>Yo,hexToUint8Array:()=>ow,hide:()=>Xo,installLazyProp:()=>lw,isObject:()=>Jn,isPlainObject:()=>vt,issue:()=>zr,joinValues:()=>qs,jsonStringifyReplacer:()=>Er,members:()=>_l,merge:()=>Jv,mergeDefs:()=>At,normalizeParams:()=>L,nullish:()=>Ys,numKeys:()=>Hv,objectClone:()=>zv,omit:()=>Kv,optionalKeys:()=>xl,own:()=>Sn,parsedType:()=>Sl,partial:()=>Xv,pick:()=>Gv,prefixIssues:()=>at,primitiveTypes:()=>wl,promiseAllObject:()=>Vv,propertyKeyTypes:()=>Go,randomString:()=>Fv,rawShape:()=>Or,required:()=>Qv,safeExtend:()=>Yv,shallowClone:()=>Uo,slugify:()=>bl,stringifyPrimitive:()=>Xs,toZod:()=>Ho,uint8ArrayToBase64:()=>j5,uint8ArrayToBase64url:()=>rw,uint8ArrayToHex:()=>iw,unwrapMessage:()=>Ar});function Av(e){return e}function Dv(e){return e}function Ho(){return e=>e}function Ev(e){}function Nv(e){throw new Error("Unexpected value in exhaustive check")}function Ov(e){}function Dr(e){let t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function qs(e,t="|"){return e.map(n=>Xs(n)).join(t)}function Er(e,t){return typeof t=="bigint"?t.toString():t}var Cl=class{constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Nr(e){return new Cl(e)}function Ys(e){return e==null}function sn(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Bo(e,t){let n=e/t,r=Math.round(n),o=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-r)<o?0:n-r}var D5=Symbol("evaluating");function yl(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==D5)return r===void 0&&(r=D5,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function zv(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}function Oe(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Or(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}function on(e){return Or(e._zod.def)??e._zod.def.shape}function E5(e,t,n){Object.defineProperty(e,t,{get(){let r=n();return Oe(this,t,r),r},enumerable:!0,configurable:!0})}function N5(e,t,n){t in e?Oe(e,t,n):e[t]=n}function Yn(e,t,n,r){let o=on(t);for(let i of n){let s=Object.getOwnPropertyDescriptor(o,i);s.enumerable&&(s.get?E5(e,i,()=>{let a=t._zod.def.shape[i];return r?r(a,i):a}):N5(e,i,r?r(s.value,i):s.value))}}function jv(e,t){for(let n of Reflect.ownKeys(t)){let r=Object.getOwnPropertyDescriptor(t,n);r.enumerable&&(r.get?E5(e,n,()=>t[n]):N5(e,n,r.value))}}function At(...e){let t={};for(let n of e){let r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function Zv(e){return At(e._zod.def)}function Wv(e,t){return t?t.reduce((n,r)=>n?.[r],e):e}function Vv(e){let t=Object.keys(e),n=t.map(r=>e[r]);return Promise.all(n).then(r=>{let o={};for(let i=0;i<t.length;i++)o[t[i]]=r[i];return o})}function Fv(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let r=0;r<e;r++)n+=t[Math.floor(Math.random()*t.length)];return n}function qe(e){return JSON.stringify(e)}function bl(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var Js="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}var vl=Nr(()=>{if(De.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function vt(e){if(Jn(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Jn(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Uo(e){return vt(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}function Hv(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}var Bv=e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},Go=new Set(["string","number","symbol"]),wl=new Set(["string","number","bigint","boolean","symbol","undefined"]);function wt(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function se(e,t,n){let r=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(r._zod.parent=e),r}function L(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Uv(e){let t;return new Proxy({},{get(n,r,o){return t??(t=e()),Reflect.get(t,r,o)},set(n,r,o,i){return t??(t=e()),Reflect.set(t,r,o,i)},has(n,r){return t??(t=e()),Reflect.has(t,r)},deleteProperty(n,r){return t??(t=e()),Reflect.deleteProperty(t,r)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,r){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,r)},defineProperty(n,r,o){return t??(t=e()),Reflect.defineProperty(t,r,o)}})}function Xs(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}function xl(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}var Ko={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},qo={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function Gv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let i={};return Yn(i,e,Qs(e,t)),se(e,At(n,{shape:i,checks:[]}))}function Qs(e,t){let n=on(e),r=[];for(let o of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,o)?.enumerable)throw new Error(`Unrecognized key: "${String(o)}"`);t[o]&&r.push(o)}return r}function Kv(e,t){let n=e._zod.def,r=n.checks;if(r&&r.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let i=new Set(Qs(e,t)),s={};return Yn(s,e,Reflect.ownKeys(on(e)).filter(a=>!i.has(a))),se(e,At(n,{shape:s,checks:[]}))}function qv(e,t){if(!vt(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let o=on(e);for(let i of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(o,i)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return se(e,At(e._zod.def,{shape:O5(e,t)}))}function O5(e,t){let n={};return Yn(n,e,Reflect.ownKeys(on(e))),jv(n,t),n}function Yv(e,t){if(!vt(t))throw new Error("Invalid input to safeExtend: expected a plain object");return se(e,At(e._zod.def,{shape:O5(e,t)}))}function Jv(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Yn(n,e,Reflect.ownKeys(on(e))),Yn(n,t,Reflect.ownKeys(on(t)));let r=At(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return se(e,r)}function Xv(e,t,n,r="partial"){let i=t._zod.def.checks;if(i&&i.length>0)throw new Error(`.${r}() cannot be used on object schemas containing refinements`);let a=n?new Set(Qs(t,n)):void 0,c={};return Yn(c,t,Reflect.ownKeys(on(t)),e&&((u,l)=>a&&!a.has(l)?u:new e({type:"optional",innerType:u}))),se(t,At(t._zod.def,{shape:c,checks:[]}))}function Qv(e,t,n){let r=n?new Set(Qs(t,n)):void 0,o={};return Yn(o,t,Reflect.ownKeys(on(t)),(i,s)=>r&&!r.has(s)?i:new e({type:"nonoptional",innerType:i})),se(t,At(t._zod.def,{shape:o}))}function Ye(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Il(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function at(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function Ar(e){return typeof e=="string"?e:e?.message}function ea(e,t,n){var r;for(let o=t;o<e.length;o++)(r=e[o]).schema??(r.schema=n)}function ct(e,t,n){var r;let o=e.inst?._zod?.traits;o?.has("$ZodType")&&(o.has("$ZodCheck")?(r=e).schema??(r.schema=e.inst):e.schema=e.inst);let i=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,s=e.message?e.message:Ar(e.inst?._zod.def?.error?.(e))??Ar(i?.(e))??Ar(t?.error?.(e))??Ar(n.customError?.(e))??Ar(n.localeError?.(e))??"Invalid input",a={};for(let c of Object.keys(e))c==="inst"||c==="schema"||c==="continue"||c==="input"||c==="__proto__"||(a[c]=e[c]);return a.path??(a.path=[]),a.message=s,t?.reportInput&&(a.input=e.input),a}function Yo(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}var ew=/[\uD800-\uDBFF]/;function Xn(e){let t=e.length;if(!ew.test(e))return t;let n=t;for(let r=0;r<t-1;r++)(e.charCodeAt(r)&64512)===55296&&(e.charCodeAt(r+1)&64512)===56320&&(n--,r++);return n}function Jo(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Sl(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}function zr(...e){let[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}function tw(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}function z5(e){let t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function j5(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}function nw(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return z5(t+n)}function rw(e){return j5(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function ow(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let r=0;r<t.length;r+=2)n[r/2]=Number.parseInt(t.slice(r,r+2),16);return n}function iw(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}var kl=class{constructor(...t){}};function _l(e,t){for(let n in t){let r=Object.getOwnPropertyDescriptor(t,n);r.get?Object.defineProperty(e,n,{...r,enumerable:!1}):aw(e,n,r.value)}}function Sn(e,t,n,r=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:r,value:n}),n}function Xo(e,t,n){return Sn(e,t,n,!1)}function sw(e,t){for(let n in e){let r=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return Sn(this,n,r(this))},set(o){Sn(this,n,o)}})}return t}function aw(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:Sn(this,t,n.bind(this))},set(r){Sn(this,t,r)}})}function cw(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}var gl,In=!1,uw={configurable:!0,get(){In=!0}};function Y(e,t,n){let r=Object.getPrototypeOf(e._zod);if(t in r&&gl!==e._zod){gl=void 0;return}gl=e._zod,Object.defineProperty(r,t,{configurable:!0,get(){Object.defineProperty(this,t,uw);let o=In;In=!1;try{let i=n(this);return In?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:i}),In=In||o,i}catch(i){throw delete this[t],In=In||o,i}},set(o){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:o})}})}function lw(e,t,n,r){let o=cw(e,t);o&&Object.defineProperty(o,t,{configurable:!0,get(){let i={configurable:!0,writable:!0,enumerable:r,value:void 0};return Object.defineProperty(this,t,i),i.value=n(this),Object.defineProperty(this,t,i),i.value},set(i){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:r,value:i})}})}var ta="~constantCatch";function Pl(e){let t=()=>e;return t[ta]=!0,t}var Z5,Ml=Object.freeze({status:"aborted"}),Ll={value:void 0,enumerable:!1},W5="captureStackTrace"in Error?Error:null;function dw(e){let t=W5;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return W5=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}function k(e,t,n,r){let o={};function i(m){this.def=m,this.constr=d,this.traits=new Set}i.prototype=o;let s=n,a=s&&new WeakSet;function c(m,p){if(m._zod){if(m._zod.traits.has(e))return}else{Ll.value=new i(p);try{Object.defineProperty(m,"_zod",Ll)}finally{Ll.value=void 0}}if(m._zod.traits.add(e),t(m,p),a){let g=Object.getPrototypeOf(m),C=m._zod.constr.prototype,x=g;for(;x&&x!==C;)x=Object.getPrototypeOf(x);let y=x??g;a.has(y)||(a.add(y),_l(y,s))}let h=d.prototype;for(let g in h)Object.prototype.hasOwnProperty.call(h,g)&&(g in m||(m[g]=h[g].bind(m)))}let u=r?.Parent??Object;class l extends u{}Object.defineProperty(l,"name",{value:e});function d(m){let p=r?.Parent?dw(l):this;c(p,m);let h=p._zod.deferred;if(h){for(let C of h)C();p._zod.deferred=void 0}let g=globalThis.__zod_globalConfig?.postProcessor;return g&&g(p),p}return Object.defineProperty(d,"init",{value:c}),Object.defineProperty(d,Symbol.hasInstance,{value:m=>r?.Parent&&m instanceof r.Parent?!0:m?._zod?.traits?.has(e)}),Object.defineProperty(d,"name",{value:e}),d}var Rl=Symbol("zod_brand"),ut=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},_n=class extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(Z5=globalThis).__zod_globalConfig??(Z5.__zod_globalConfig={});var De=globalThis.__zod_globalConfig;function ye(e){return e&&Object.assign(De,e),De}function pw(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,Er,2)),e.message}function fw(e){this._zod.message=e}var mw={get:pw,set:fw,enumerable:!0,configurable:!0},$l={value:void 0,enumerable:!1},V5=new WeakSet([Object.prototype,Error.prototype]),F5=(e,t)=>{e.name="$ZodError",$l.value=t,Object.defineProperty(e,"issues",$l),$l.value=void 0,Object.defineProperty(e,"message",mw);let n=Object.getPrototypeOf(e);V5.has(n)||(V5.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let r=()=>this.message;return Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,"toString",{value:r,configurable:!0,writable:!0})}}))},Al=k("$ZodError",F5),lt=k("$ZodError",F5,void 0,{Parent:Error});function hw(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}function Qo(e,t=n=>n.message){let n={},r=[];for(let o of e.issues)o.path.length>0?hw(n,o.path[0],()=>[]).push(t(o)):r.push(t(o));return{formErrors:r,fieldErrors:n}}function ei(e,t=n=>n.message){let n={_errors:[]},r=(o,i=[])=>{for(let s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>r({issues:a},[...i,...s.path]));else if(s.code==="invalid_key")r({issues:s.issues},[...i,...s.path]);else if(s.code==="invalid_element")r({issues:s.issues},[...i,...s.path]);else{let a=[...i,...s.path];if(a.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<a.length;){let l=a[u],d=u===a.length-1;if(l==="_errors"){d&&c._errors.push(t(s)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||Object.defineProperty(c,l,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let m=c[l];d&&m._errors.push(t(s)),c=m,u++}}}};return r(e),n}function Dl(e,t=n=>n.message){let n={errors:[]},r=(o,i=[])=>{var s;for(let a of o.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>r({issues:c},[...i,...a.path]));else if(a.code==="invalid_key")r({issues:a.issues},[...i,...a.path]);else if(a.code==="invalid_element")r({issues:a.issues},[...i,...a.path]);else{let c=[...i,...a.path];if(c.length===0){n.errors.push(t(a));continue}let u=n,l=0;for(;l<c.length;){let d=c[l],m=l===c.length-1;typeof d=="string"?(u.properties??(u.properties={}),Object.prototype.hasOwnProperty.call(u.properties,d)||Object.defineProperty(u.properties,d,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),u=u.properties[d]):(u.items??(u.items=[]),(s=u.items)[d]??(s[d]={errors:[]}),u=u.items[d]),m&&u.errors.push(t(a)),l++}}};return r(e),n}function H5(e){let t=[],n=e.map(r=>typeof r=="object"?r.key:r);for(let r of n)typeof r=="number"?t.push(`[${r}]`):typeof r=="symbol"?t.push(`[${JSON.stringify(String(r))}]`):/[^\w$]/.test(r)?t.push(`[${JSON.stringify(r)}]`):(t.length&&t.push("."),t.push(r));return t.join("")}function El(e){let t=[],n=[...e.issues].sort((r,o)=>(r.path??[]).length-(o.path??[]).length);for(let r of n)t.push(`\u2716 ${r.message}`),r.path?.length&&t.push(` \u2192 at ${H5(r.path)}`);return t.join(`
6
+ `)}function na(e,t){return{callee:t?.callee??e,Err:t?.Err}}var jr=e=>{let t=(n,r,o,i)=>{let s=o?{...o,async:!1}:{async:!1},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new ut;if(a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Js(c,i?.callee??t),c}return a.value};return t},ra=jr(lt),Zr=e=>{let t=async(n,r,o,i)=>{let s=o?{...o,async:!0}:{async:!0},a=n._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(i?.Err??e)(a.issues.map(u=>ct(u,s,ye())));throw Js(c,i?.callee??t),c}return a.value};return t},oa=Zr(lt),Wr=e=>(t,n,r)=>{let o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new ut;return i.issues.length?B5(e,i.issues,o):{success:!0,data:i.value}},Cw=Wr(lt);function B5(e,t,n){let r;return{success:!1,get error(){return r||(r=new e(t.map(o=>ct(o,n,ye()))),t=void 0,n=void 0),r},set error(o){r=o,t=void 0,n=void 0}}}var Vr=e=>async(t,n,r)=>{let o=r?{...r,async:!0}:{async:!0},i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?B5(e,i.issues,o):{success:!0,data:i.value}},kw=Vr(lt),yw=Symbol.for("zod.compile.invalid"),bw=Symbol.for("zod.compile.fallback"),ti=((e,t,n)=>{let r=e._zod.bag.validator;if(r!==void 0){if(r(t)!==yw)return!0;if(r.definite===!0&&n===void 0)return!1}return vw(e,t,n)});function vw(e,t,n){let r=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},o=e._zod.bag.fallbackRun,i;if(o?(r[bw]=!0,i=o({value:t,issues:[]},r)):i=e._zod.run({value:t,issues:[]},r),i instanceof Promise)throw new ut;return i.issues.length===0}var ni=async(e,t,n)=>{let r=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},o=e._zod.run({value:t,issues:[]},r);return o instanceof Promise&&(o=await o),o.issues.length===0},ia=e=>{let t=jr(e),n=(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return t(r,o,a,na(n,s))};return n},ww=ia(lt),sa=e=>{let t=jr(e),n=(r,o,i,s)=>t(r,o,i,na(n,s));return n},xw=sa(lt),aa=e=>{let t=Zr(e),n=async(r,o,i,s)=>{let a=i?{...i,direction:"backward"}:{direction:"backward"};return await t(r,o,a,na(n,s))};return n},Iw=aa(lt),ca=e=>{let t=Zr(e),n=async(r,o,i,s)=>await t(r,o,i,na(n,s));return n},Sw=ca(lt),ua=e=>(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Wr(e)(t,n,o)},_w=ua(lt),la=e=>(t,n,r)=>Wr(e)(t,n,r),Pw=la(lt),da=e=>async(t,n,r)=>{let o=r?{...r,direction:"backward"}:{direction:"backward"};return Vr(e)(t,n,o)},Lw=da(lt),pa=e=>async(t,n,r)=>Vr(e)(t,n,r),Mw=pa(lt);var xt={};Rt(xt,{anyString:()=>cd,base64:()=>Ql,base64url:()=>ed,bigint:()=>ld,boolean:()=>dd,browserEmail:()=>Ow,cidrv4:()=>Jl,cidrv6:()=>Xl,creditCard:()=>fa,cuid:()=>Ol,cuid2:()=>zl,currencyCode:()=>od,date:()=>id,datetime:()=>ad,domain:()=>nd,duration:()=>Hl,e164:()=>rd,email:()=>Ul,emoji:()=>Gl,extendedDuration:()=>Rw,guid:()=>Bl,hex:()=>gd,hostname:()=>td,html5Email:()=>Dw,httpProtocol:()=>ri,iban:()=>ma,idnEmail:()=>Nw,integer:()=>oi,ipv4:()=>Kl,ipv6:()=>ql,ksuid:()=>Wl,lowercase:()=>md,mac:()=>Yl,md5_base64:()=>Ww,md5_base64url:()=>Vw,md5_hex:()=>Zw,nanoid:()=>Vl,nanoidOfLength:()=>Fl,null:()=>pd,number:()=>an,rfc5322Email:()=>Ew,sha1_base64:()=>Hw,sha1_base64url:()=>Bw,sha1_hex:()=>Fw,sha256_base64:()=>Gw,sha256_base64url:()=>Kw,sha256_hex:()=>Uw,sha384_base64:()=>Yw,sha384_base64url:()=>Jw,sha384_hex:()=>qw,sha512_base64:()=>Qw,sha512_base64url:()=>ex,sha512_hex:()=>Xw,string:()=>ud,time:()=>sd,ulid:()=>jl,undefined:()=>fd,unicodeEmail:()=>U5,uppercase:()=>hd,uuid:()=>Qn,uuid4:()=>Tw,uuid6:()=>$w,uuid7:()=>Aw,xid:()=>Zl});var Ol=/^[cC][0-9a-z]{6,}$/,zl=/^[0-9a-z]+$/,jl=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,Zl=/^[0-9a-vA-V]{20}$/,Wl=/^[A-Za-z0-9]{27}$/,Vl=/^[a-zA-Z0-9_-]{21}$/;function Fl(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}var Hl=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Rw=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,Bl=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Qn=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,Tw=Qn(4),$w=Qn(6),Aw=Qn(7),Ul=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Dw=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ew=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,U5=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,Nw=U5,Ow=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,zw="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function Gl(){return new RegExp(zw,"u")}var Kl=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ql=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Yl=e=>{let t=wt(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},Jl=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,Xl=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Ql=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,ed=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,td=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,nd=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,ri=/^https?$/,rd=/^\+[1-9]\d{6,14}$/,fa=/^\d(?:[ -]?\d){11,18}$/,od=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,ma=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,G5="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function jw(e){return new RegExp(`^${e}$`)}var id=jw(G5);function Nl(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function sd(e){return new RegExp(`^${Nl(e)}$`)}function ad(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${Nl({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,r=e.local?`${n}|${Nl({precision:e.precision})}`:n;return new RegExp(`^${G5}T(?:${r})$`)}var cd=/^[\s\S]{0,}$/,ud=e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},ld=/^-?\d+n?$/,oi=/^-?\d+$/,an=/^-?\d+(?:\.\d+)?$/,dd=/^(?:true|false)$/i,pd=/^null$/i;var fd=/^undefined$/i;var md=/^[^A-Z]*$/,hd=/^[^a-z]*$/,gd=/^[0-9a-fA-F]*$/;function ii(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}function si(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}var Zw=/^[0-9a-fA-F]{32}$/,Ww=ii(22,"=="),Vw=si(22),Fw=/^[0-9a-fA-F]{40}$/,Hw=ii(27,"="),Bw=si(27),Uw=/^[0-9a-fA-F]{64}$/,Gw=ii(43,"="),Kw=si(43),qw=/^[0-9a-fA-F]{96}$/,Yw=ii(64,""),Jw=si(64),Xw=/^[0-9a-fA-F]{128}$/,Qw=ii(86,"=="),ex=si(86);var pe=k("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),Cd=e=>{let t=e.value;return!Ys(t)&&t.size!==void 0},kd=e=>{let t=e.value;return!Ys(t)&&t.length!==void 0},ha={number:"number",bigint:"bigint",object:"date"},Ca=k("$ZodCheckLessThan",(e,t)=>{pe.init(e,t);let n=ha[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:ha[typeof r.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ka=k("$ZodCheckGreaterThan",(e,t)=>{pe.init(e,t);let n=ha[typeof t.value];e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:ha[typeof r.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),yd=k("$ZodCheckMultipleOf",(e,t)=>{pe.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Bo(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),bd=k("$ZodCheckNumberFormat",(e,t)=>{pe.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),r=n?"int":"number",[o,i]=Ko[t.format];e._zod.check=s=>{let a=s.value;if(n){if(!Number.isInteger(a)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:a,inst:e});return}if(!Number.isSafeInteger(a)){a>0?s.issues.push({input:a,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort}):s.issues.push({input:a,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,inclusive:!0,continue:!t.abort});return}}a<o&&s.issues.push({origin:"number",input:a,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),a>i&&s.issues.push({origin:"number",input:a,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),vd=k("$ZodCheckBigIntFormat",(e,t)=>{pe.init(e,t);let[n,r]=qo[t.format];e._zod.check=o=>{let i=o.value;i<n&&o.issues.push({origin:"bigint",input:i,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),i>r&&o.issues.push({origin:"bigint",input:i,code:"too_big",maximum:r,inclusive:!0,inst:e,continue:!t.abort})}}),wd=k("$ZodCheckMaxSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=Cd),e._zod.check=r=>{let o=r.value;o.size<=t.maximum||r.issues.push({origin:Yo(o),code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),xd=k("$ZodCheckMinSize",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=Cd),e._zod.check=r=>{let o=r.value;o.size>=t.minimum||r.issues.push({origin:Yo(o),code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Id=k("$ZodCheckSizeEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=Cd),e._zod.check=r=>{let o=r.value,i=o.size;if(i===t.size)return;let s=i>t.size;r.issues.push({origin:Yo(o),...s?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Sd=k("$ZodCheckMaxLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=kd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>t.maximum?Xn(o):i)<=t.maximum)return;let a=Jo(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),_d=k("$ZodCheckMinLength",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=kd),e._zod.check=r=>{let o=r.value,i=o.length;if((typeof o=="string"&&i>=t.minimum&&i<t.minimum*2?Xn(o):i)>=t.minimum)return;let a=Jo(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pd=k("$ZodCheckLengthEquals",(e,t)=>{var n;pe.init(e,t),(n=e._zod.def).when??(n.when=kd),e._zod.check=r=>{let o=r.value,i=o.length,s=typeof o=="string"&&i>=t.length&&i<=t.length*2?Xn(o):i;if(s===t.length)return;let a=Jo(o),c=s>t.length;r.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),Fr=k("$ZodCheckStringFormat",(e,t)=>{var n,r;pe.init(e,t),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),Ld=k("$ZodCheckRegex",(e,t)=>{Fr.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Md=k("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=md),Fr.init(e,t)}),Rd=k("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=hd),Fr.init(e,t)}),Td=k("$ZodCheckIncludes",(e,t)=>{pe.init(e,t);let n=wt(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=r,e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),$d=k("$ZodCheckStartsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`^${wt(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Ad=k("$ZodCheckEndsWith",(e,t)=>{pe.init(e,t);let n=new RegExp(`.*${wt(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}});function ga(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues))}var Dd=k("$ZodCheckProperty",(e,t)=>{pe.init(e,t),e._zod.check=n=>{let r=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(r instanceof Promise)return r.then(o=>ga(o,n,t.property));ga(r,n,t.property)}}),Ed=k("$ZodCheckProperties",(e,t)=>{pe.init(e,t),Xo(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=r=>{if(r.value==null){r.issues.push({expected:"object",code:"invalid_type",input:r.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(s=>[s,t.shape[s]]));let o=r.value,i;for(let[s,a]of n){let c=a._zod.run({value:o[s],issues:[]},{});c instanceof Promise?(i??(i=[]),i.push(c.then(u=>ga(u,r,s)))):ga(c,r,s)}if(i)return Promise.all(i).then(()=>{})}}),Nd=k("$ZodCheckMimeType",(e,t)=>{pe.init(e,t);let n=new Set(t.mime);e._zod.check=r=>{n.has(r.value.type)||r.issues.push({code:"invalid_value",values:t.mime,input:r.value.type,inst:e,continue:!t.abort})}}),Od=k("$ZodCheckOverwrite",(e,t)=>{pe.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var er=class{constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let r=t.split(`
7
7
  `).filter(s=>s),o=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(o)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
8
8
  ${n.join(`
9
9
  `)}
10
- };`)(...Object.values(this.closed))}};var Wd={major:4,minor:6,patch:5};var K=k("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=Wd;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=et(a),d;for(let m of c){if(m._zod.def.when){if(Pl(a)||!m._zod.def.when(a))continue}else if(l)continue;let f=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new dt;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==f&&(ra(a.issues,f,e),l||(l=et(a,f)))});else{if(a.issues.length===f)continue;ra(a.issues,f,e),l||(l=et(a,f))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(et(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new dt;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new dt;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return ri(this,"~standard",_a(this))},set"~standard"(e){In(this,"~standard",e)}}),f0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>lt(n,t,ye()))}:{value:e.value};async function lx(e,t){let n={async:!0};return f0(await e._zod.run({value:t,issues:[]},n),n)}function _a(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return f0(r,n)}catch{}return lx(e,t)},vendor:"zod",version:1}}var er=k("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??dd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ae=k("$ZodStringFormat",(e,t)=>{Vr.init(e,t),er.init(e,t)}),Fd=k("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Kl),ae.init(e,t)}),Hd=k("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Xn(r))}else t.pattern??(t.pattern=Xn());ae.init(e,t)}),Bd=k("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=ql),ae.init(e,t)}),Ud=1,pi=2;function Gd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Pa(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Gd(e)||pi:m0(e,t)}function m0(e,t){if(!t.normalize&&t.protocol?.source===ci.source&&!/^https?:\/\//i.test(e))return Ud;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??pi}return new URL(e)}catch{return pi}}var dx=/[\t\n\r]/g;function fi(e){return e.replace(dx,"")}function La(e,t){return t.lastIndex=0,t.test(e.hostname)}function Ma(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Kd=k("$ZodURL",(e,t)=>{ae.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=Pa(r,t);if(o===Ud){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===pi){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=fi(r);return}t.hostname&&!La(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!Ma(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:fi(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),qd=k("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Yl()),ae.init(e,t)}),Yd=k("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Bl:Ul(t.length)),ae.init(e,t)}),Jd=k("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Zl),ae.init(e,t)}),Xd=k("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=Wl),ae.init(e,t)}),Qd=k("$ZodULID",(e,t)=>{t.pattern??(t.pattern=Vl),ae.init(e,t)}),e1=k("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Fl),ae.init(e,t)}),t1=k("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Hl),ae.init(e,t)}),n1=k("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ld(t)),ae.init(e,t)}),r1=k("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=cd),ae.init(e,t)}),o1=k("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=ud(t)),ae.init(e,t)}),i1=k("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Gl),ae.init(e,t)}),s1=k("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Jl),ae.init(e,t)}),px=/^[0-9a-fA-F:.]+$/;function mi(e){return px.test(e)?Gd(`http://[${e}]`):!1}var a1=k("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=Xl),ae.init(e,t),e._zod.check=n=>{mi(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),c1=k("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Ql(t.delimiter)),ae.init(e,t)}),u1=k("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=ed),ae.init(e,t)});function Ra(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:mi(n)}var l1=k("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=td),ae.init(e,t),e._zod.check=n=>{Ra(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function hi(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var Ta=/^[0-9a-zA-Z+/]*={0,2}$/,d1=k("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Ta),ae.init(e,t),e._zod.check=n=>{hi(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),gi=/^[A-Za-z0-9_-]*$/;function Aa(e){if(!gi.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return hi(n)}var p1=k("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=gi),ae.init(e,t),e._zod.check=n=>{Aa(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),f1=k("$ZodE164",(e,t)=>{t.pattern??(t.pattern=sd),ae.init(e,t)}),fx=/[- ]/g;function mx(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function $a(e){return ga.test(e)?mx(e.replace(fx,"")):!1}var m1=k("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=ga),ae.init(e,t),e._zod.check=n=>{$a(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function hx(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function Da(e){return Ca.test(e)?hx(e):!1}var h1=k("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=Ca),ae.init(e,t),e._zod.check=n=>{Da(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function Ea(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var g1=k("$ZodJWT",(e,t)=>{ae.init(e,t),e._zod.check=n=>{Ea(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),C1=k("$ZodCustomStringFormat",(e,t)=>{ae.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Na=k("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=sn,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),k1=k("$ZodNumberFormat",(e,t)=>{xd.init(e,t),Na.init(e,t)}),Ci=k("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=md,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Oa=k("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=fd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),y1=k("$ZodBigIntFormat",(e,t)=>{Id.init(e,t),Oa.init(e,t)}),b1=k("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),v1=k("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=gd,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),w1=k("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=hd,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),x1=k("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),I1=k("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),S1=k("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),_1=k("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),P1=k("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function X5(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues)),t.value[n]=e.value}var L1=k("$ZodArray",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>X5(d,r,c)));else if(X5(l,r,c),a&&l.issues.length!==0&&et(l))break}return s.length?Promise.all(s).then(()=>r):r}});function Sa(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...ut(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var gx=[];function h0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:gx,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=_l(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function g0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,f=0;for(let h in t){if(s&&n.issues.length!==f){if(et(n,f))break;f=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(C=>Sa(C,n,h,t,d,m))):Sa(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var C0=k("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Er(()=>h0(t));X(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let f=l[m]._zod;if(f.values){Object.prototype.hasOwnProperty.call(d,m)||Oe(d,m,new Set);for(let h of f.values)d[m].add(h);f.optin!==void 0&&d[m].add(void 0)}}return d});let i=Yn,s=t.catchall,a,c=De.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],f=a.shape,h=l?.abortEarly,g=u.issues.length;for(let C of a.allKeys){if(h&&u.issues.length!==g){if(et(u,g))break;g=u.issues.length}if(C==="__proto__")continue;let x=f[C],y=x._zod.optin,I=x._zod.optout,T=x._zod.run({value:d[C],issues:[]},l);T instanceof Promise?m.push(T.then(L=>Sa(L,u,C,d,y,I))):Sa(T,u,C,d,y,I)}return s?g0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),M1=k("$ZodObjectJIT",(e,t)=>{C0.init(e,t);let n=e._zod.parse,r=Er(()=>h0(t)),o=De.memoizer,i=f=>{let h=r.value,g=h.symbolKeys,C=new Qn(["payload","ctx"],{shape:f,inst:e,memo:o,syms:g}),x=L=>`shape[${L}]._zod.run({ value: input[${L}], issues: [] }, ctx)`,y=(L,$)=>`
11
- let ${L}_ab = false;
12
- for (let i = 0; i < ${L}.issues.length; i++) {
13
- const iss = ${L}.issues[i];
14
- iss.path = iss.path ? [${$}, ...iss.path] : [${$}];
10
+ };`)(...Object.values(this.closed))}};var zd={major:4,minor:6,patch:5};var K=k("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=zd;let r=e._zod.def.checks,o=e._zod.traits.has("$ZodCheck")?[e,...r??[]]:r?.length?[...r]:[];for(let i of o)for(let s of i._zod.onattach)s(e);if(o.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let i=(a,c,u)=>{if(a.memo)return a;let l=Ye(a),d;for(let m of c){if(m._zod.def.when){if(Il(a)||!m._zod.def.when(a))continue}else if(l)continue;let p=a.issues.length,h=m._zod.check(a);if(h instanceof Promise&&u?.async===!1)throw new ut;if(d||h instanceof Promise)d=(d??Promise.resolve()).then(async()=>{await h,a.issues.length!==p&&(ea(a.issues,p,e),l||(l=Ye(a,p)))});else{if(a.issues.length===p)continue;ea(a.issues,p,e),l||(l=Ye(a,p))}}return d?d.then(()=>a):a},s=(a,c,u)=>{if(Ye(a))return a.aborted=!0,a;let l=i(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new ut;return l.then(d=>e._zod.parse(d,u))}return e._zod.parse(l,u)};e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(d=>s(d,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new ut;return u.then(l=>i(l,o,c))}return i(u,o,c)}}},{get"~standard"(){return Xo(this,"~standard",xa(this))},set"~standard"(e){Sn(this,"~standard",e)}}),l0=(e,t)=>e.issues.length?{issues:e.issues.map(n=>ct(n,t,ye()))}:{value:e.value};async function tx(e,t){let n={async:!0};return l0(await e._zod.run({value:t,issues:[]},n),n)}function xa(e){return{validate:t=>{let n={async:!1};try{let r=e._zod.run({value:t,issues:[]},n);if(!(r instanceof Promise))return l0(r,n)}catch{}return tx(e,t)},vendor:"zod",version:1}}var tr=k("$ZodString",(e,t)=>{K.init(e,t),e._zod.pattern=t.pattern??cd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=String(n.value)}catch{}return typeof n.value=="string"||n.issues.push({expected:"string",code:"invalid_type",input:n.value,inst:e}),n}}),ae=k("$ZodStringFormat",(e,t)=>{Fr.init(e,t),tr.init(e,t)}),Zd=k("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Bl),ae.init(e,t)}),Wd=k("$ZodUUID",(e,t)=>{if(t.version){let r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Qn(r))}else t.pattern??(t.pattern=Qn());ae.init(e,t)}),Vd=k("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=Ul),ae.init(e,t)}),Fd=1,ai=2;function Hd(e){try{return typeof URL<"u"&&typeof URL.canParse=="function"?URL.canParse(e):(new URL(e),!0)}catch{return!1}}function Ia(e,t){return!("normalize"in t)&&!("hostname"in t)&&!("protocol"in t)?Hd(e)||ai:d0(e,t)}function d0(e,t){if(!t.normalize&&t.protocol?.source===ri.source&&!/^https?:\/\//i.test(e))return Fd;try{if(typeof URL<"u"){let n=URL;if(typeof n.parse=="function")return n.parse(e)??ai}return new URL(e)}catch{return ai}}var nx=/[\t\n\r]/g;function ci(e){return e.replace(nx,"")}function Sa(e,t){return t.lastIndex=0,t.test(e.hostname)}function _a(e,t){return t.lastIndex=0,t.test(e.protocol.endsWith(":")?e.protocol.slice(0,-1):e.protocol)}var Bd=k("$ZodURL",(e,t)=>{ae.init(e,t),e._zod.check=n=>{try{let r=n.value.trim(),o=Ia(r,t);if(o===Fd){n.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:n.value,inst:e,continue:!t.abort});return}if(o===ai){n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort});return}if(o===!0){n.value=ci(r);return}t.hostname&&!Sa(o,t.hostname)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort}),t.protocol&&!_a(o,t.protocol)&&n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort}),n.value=t.normalize?o.href:ci(r);return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),Ud=k("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Gl()),ae.init(e,t)}),Gd=k("$ZodNanoID",(e,t)=>{if(t.length!==void 0&&(!Number.isInteger(t.length)||t.length<1))throw new Error(`Invalid nanoid length: ${t.length}`);t.pattern??(t.pattern=t.length===void 0?Vl:Fl(t.length)),ae.init(e,t)}),Kd=k("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=Ol),ae.init(e,t)}),qd=k("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=zl),ae.init(e,t)}),Yd=k("$ZodULID",(e,t)=>{t.pattern??(t.pattern=jl),ae.init(e,t)}),Jd=k("$ZodXID",(e,t)=>{t.pattern??(t.pattern=Zl),ae.init(e,t)}),Xd=k("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=Wl),ae.init(e,t)}),Qd=k("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=ad(t)),ae.init(e,t)}),e1=k("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=id),ae.init(e,t)}),t1=k("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=sd(t)),ae.init(e,t)}),n1=k("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Hl),ae.init(e,t)}),r1=k("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Kl),ae.init(e,t)}),rx=/^[0-9a-fA-F:.]+$/;function ui(e){return rx.test(e)?Hd(`http://[${e}]`):!1}var o1=k("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=ql),ae.init(e,t),e._zod.check=n=>{ui(n.value)||n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}),i1=k("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=Yl(t.delimiter)),ae.init(e,t)}),s1=k("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Jl),ae.init(e,t)});function Pa(e){let t=e.split("/");if(t.length!==2)return!1;let[n,r]=t;if(!r)return!1;let o=Number(r);return`${o}`!==r||o<0||o>128?!1:ui(n)}var a1=k("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=Xl),ae.init(e,t),e._zod.check=n=>{Pa(n.value)||n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}});function li(e){if(e==="")return!0;if(/\s/.test(e)||e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}var La=/^[0-9a-zA-Z+/]*={0,2}$/,c1=k("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=La),ae.init(e,t),e._zod.check=n=>{li(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}}),di=/^[A-Za-z0-9_-]*$/;function Ma(e){if(!di.test(e))return!1;let t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return li(n)}var u1=k("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=di),ae.init(e,t),e._zod.check=n=>{Ma(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),l1=k("$ZodE164",(e,t)=>{t.pattern??(t.pattern=rd),ae.init(e,t)}),ox=/[- ]/g;function ix(e){let t=e.length,n=1,r=0;for(;t;){let o=e.charCodeAt(--t)-48;n^=1,r+=n?[0,2,4,6,8,1,3,5,7,9][o]:o}return r%10===0}function Ra(e){return fa.test(e)?ix(e.replace(ox,"")):!1}var d1=k("$ZodCreditCard",(e,t)=>{t.pattern??(t.pattern=fa),ae.init(e,t),e._zod.check=n=>{Ra(n.value)||n.issues.push({code:"invalid_format",format:"credit_card",input:n.value,inst:e,continue:!t.abort})}});function sx(e){let t=0,n=e.length;for(let r=4;r<n;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}for(let r=0;r<4;r++){let o=e.charCodeAt(r);t=(o>=65?t*100+(o-55):t*10+(o-48))%97}return t===1}function Ta(e){return ma.test(e)?sx(e):!1}var p1=k("$ZodIBAN",(e,t)=>{t.pattern??(t.pattern=ma),ae.init(e,t),e._zod.check=n=>{Ta(n.value)||n.issues.push({code:"invalid_format",format:"iban",input:n.value,inst:e,continue:!t.abort})}});function $a(e,t=null){try{let n=e.split(".");if(n.length!==3)return!1;let[r]=n;if(!r)return!1;let o=JSON.parse(atob(r));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}var f1=k("$ZodJWT",(e,t)=>{ae.init(e,t),e._zod.check=n=>{$a(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),m1=k("$ZodCustomStringFormat",(e,t)=>{ae.init(e,t),e._zod.check=n=>{t.fn(n.value)||n.issues.push({code:"invalid_format",format:t.format,input:n.value,inst:e,continue:!t.abort})}}),Aa=k("$ZodNumber",(e,t)=>{K.init(e,t),e._zod.pattern=an,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}let o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;let i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:String(o):void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),h1=k("$ZodNumberFormat",(e,t)=>{bd.init(e,t),Aa.init(e,t)}),pi=k("$ZodBoolean",(e,t)=>{K.init(e,t),e._zod.pattern=dd,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}let o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Da=k("$ZodBigInt",(e,t)=>{K.init(e,t),e._zod.pattern=ld,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=BigInt(n.value)}catch{}return typeof n.value=="bigint"||n.issues.push({expected:"bigint",code:"invalid_type",input:n.value,inst:e}),n}}),g1=k("$ZodBigIntFormat",(e,t)=>{vd.init(e,t),Da.init(e,t)}),C1=k("$ZodSymbol",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o=="symbol"||n.issues.push({expected:"symbol",code:"invalid_type",input:o,inst:e}),n}}),k1=k("$ZodUndefined",(e,t)=>{K.init(e,t),e._zod.pattern=fd,e._zod.values=new Set([void 0]),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"undefined",code:"invalid_type",input:o,inst:e}),n}}),y1=k("$ZodNull",(e,t)=>{K.init(e,t),e._zod.pattern=pd,e._zod.values=new Set([null]),e._zod.parse=(n,r)=>{let o=n.value;return o===null||n.issues.push({expected:"null",code:"invalid_type",input:o,inst:e}),n}}),b1=k("$ZodAny",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),v1=k("$ZodUnknown",(e,t)=>{K.init(e,t),e._zod.parse=n=>n}),w1=k("$ZodNever",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)}),x1=k("$ZodVoid",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return typeof o>"u"||n.issues.push({expected:"void",code:"invalid_type",input:o,inst:e}),n}}),I1=k("$ZodDate",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=new Date(n.value)}catch{}let o=n.value,i=o instanceof Date;return i&&!Number.isNaN(o.getTime())||n.issues.push({expected:"date",code:"invalid_type",input:o,...i?{received:"Invalid Date"}:{},inst:e}),n}});function q5(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}var S1=k("$ZodArray",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!Array.isArray(i))return r.issues.push({expected:"array",code:"invalid_type",input:i,inst:e}),r;r.value=n?n.alloc(e,r,Array(i.length),o):Array(i.length);let s=[],a=o?.abortEarly;for(let c=0;c<i.length;c++){let u=i[c],l=t.element._zod.run({value:u,issues:[]},o);if(l instanceof Promise)s.push(l.then(d=>q5(d,r,c)));else if(q5(l,r,c),a&&l.issues.length!==0&&Ye(l))break}return s.length?Promise.all(s).then(()=>r):r}});function wa(e,t,n,r,o,i){let s=n in r,a=i==="optional";if(!(!s&&a&&o==="optional")){if(e.issues.length){if(o!==void 0&&a&&!s)return;t.issues.push(...at(n,e.issues))}if(!s&&o===void 0){e.issues.length||t.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[n]});return}e.value===void 0?(s||o==="defaulted"&&!a)&&(t.value[n]=void 0):t.value[n]=e.value}}var ax=[];function p0(e){let t=Object.keys(e.shape),n=Object.getOwnPropertySymbols(e.shape),r=n.length?n:ax,o=r.length?[...t,...r]:t;for(let s of o)if(!e.shape?.[s]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${String(s)}": expected a Zod schema`);let i=xl(e.shape);return{...e,allKeys:o,symbolKeys:r,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(i)}}function f0(e,t,n,r,o,i,s){let a=[],c=o.keySet,u=o.catchall._zod,l=u.def.type,d=u.optin,m=u.optout,p=0;for(let h in t){if(s&&n.issues.length!==p){if(Ye(n,p))break;p=n.issues.length}if(c.has(h))continue;if(h==="__proto__"){l==="never"&&a.push(h);continue}if(l==="never"){a.push(h);continue}let g=u.run({value:t[h],issues:[]},r);g instanceof Promise?e.push(g.then(C=>wa(C,n,h,t,d,m))):wa(g,n,h,t,d,m)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i,continue:!0}),e.length?Promise.all(e).then(()=>n):n}var m0=k("$ZodObject",(e,t)=>{K.init(e,t);let n=Object.getOwnPropertyDescriptor(t,"shape"),r=n?.get?n.get.raw:t.shape??{};if(r){let u=()=>{let l={...r};return Object.defineProperty(t,"shape",{value:l}),u.raw=l,l};u.raw=r,Object.defineProperty(t,"shape",{get:u})}let o=Nr(()=>p0(t));Y(e,"propValues",u=>{let l=u.def.shape,d={};for(let m in l){let p=l[m]._zod;if(p.values){Object.prototype.hasOwnProperty.call(d,m)||Oe(d,m,new Set);for(let h of p.values)d[m].add(h);p.optin!==void 0&&d[m].add(void 0)}}return d});let i=Jn,s=t.catchall,a,c=De.memoizer;c?.attach(e),e._zod.parse=(u,l)=>{a??(a=o.value);let d=u.value;if(!i(d))return u.issues.push({expected:"object",code:"invalid_type",input:d,inst:e}),u;u.value=c?c.alloc(e,u,{},l):{};let m=[],p=a.shape,h=l?.abortEarly,g=u.issues.length;for(let C of a.allKeys){if(h&&u.issues.length!==g){if(Ye(u,g))break;g=u.issues.length}if(C==="__proto__")continue;let x=p[C],y=x._zod.optin,I=x._zod.optout,R=x._zod.run({value:d[C],issues:[]},l);R instanceof Promise?m.push(R.then(M=>wa(M,u,C,d,y,I))):wa(R,u,C,d,y,I)}return s?f0(m,d,u,l,o.value,e,h===!0):m.length?Promise.all(m).then(()=>u):u}}),_1=k("$ZodObjectJIT",(e,t)=>{m0.init(e,t);let n=e._zod.parse,r=Nr(()=>p0(t)),o=De.memoizer,i=p=>{let h=r.value,g=h.symbolKeys,C=new er(["payload","ctx"],{shape:p,inst:e,memo:o,syms:g}),x=M=>`shape[${M}]._zod.run({ value: input[${M}], issues: [] }, ctx)`,y=(M,T)=>`
11
+ let ${M}_ab = false;
12
+ for (let i = 0; i < ${M}.issues.length; i++) {
13
+ const iss = ${M}.issues[i];
14
+ iss.path = iss.path ? [${T}, ...iss.path] : [${T}];
15
15
  payload.issues.push(iss);
16
- if (iss.continue !== true) ${L}_ab = true;
16
+ if (iss.continue !== true) ${M}_ab = true;
17
17
  }
18
- if (${L}_ab && ctx && ctx.abortEarly) {
18
+ if (${M}_ab && ctx && ctx.abortEarly) {
19
19
  payload.value = newResult;
20
20
  return payload;
21
- }`;C.write("const input = payload.value;");let I=Object.create(null),T=0;for(let L of h.allKeys)I[L]=`key_${T++}`;C.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let L of h.allKeys){if(L==="__proto__")continue;let $=I[L],O=typeof L=="symbol"?`syms[${g.indexOf(L)}]`:Qe(L),B=`${O} in input`,ne=f[L],de=ne?._zod?.optin,ie=de!==void 0,Z=ne?._zod?.optout==="optional";if(C.write(`const ${$} = ${x(O)};`),ie&&Z){let oe=de==="optional"?`${$}_present`:`${$}.value !== undefined || ${$}_present`;C.write(`
22
- const ${$}_present = ${B};
23
- if (!${$}.issues.length || ${$}_present) {
24
- if (${$}.issues.length) {${y($,O)}
21
+ }`;C.write("const input = payload.value;");let I=Object.create(null),R=0;for(let M of h.allKeys)I[M]=`key_${R++}`;C.write(o?"const newResult = memo.alloc(inst, payload, {}, ctx);":"const newResult = {};");for(let M of h.allKeys){if(M==="__proto__")continue;let T=I[M],N=typeof M=="symbol"?`syms[${g.indexOf(M)}]`:qe(M),B=`${N} in input`,ne=p[M],de=ne?._zod?.optin,ie=de!==void 0,Z=ne?._zod?.optout==="optional";if(C.write(`const ${T} = ${x(N)};`),ie&&Z){let oe=de==="optional"?`${T}_present`:`${T}.value !== undefined || ${T}_present`;C.write(`
22
+ const ${T}_present = ${B};
23
+ if (!${T}.issues.length || ${T}_present) {
24
+ if (${T}.issues.length) {${y(T,N)}
25
25
  }
26
26
 
27
27
  if (${oe}) {
28
- newResult[${O}] = ${$}.value;
28
+ newResult[${N}] = ${T}.value;
29
29
  }
30
30
  }
31
31
 
32
32
  `)}else ie?(C.write(`
33
- if (${$}.issues.length) {${y($,O)}
33
+ if (${T}.issues.length) {${y(T,N)}
34
34
  }
35
- `),de==="defaulted"?C.write(`newResult[${O}] = ${$}.value;`):C.write(`
36
- if (${$}.value !== undefined || ${B}) {
37
- newResult[${O}] = ${$}.value;
35
+ `),de==="defaulted"?C.write(`newResult[${N}] = ${T}.value;`):C.write(`
36
+ if (${T}.value !== undefined || ${B}) {
37
+ newResult[${N}] = ${T}.value;
38
38
  }
39
39
  `)):C.write(`
40
- const ${$}_present = ${B};
41
- if (${$}.issues.length) {${y($,O)}
40
+ const ${T}_present = ${B};
41
+ if (${T}.issues.length) {${y(T,N)}
42
42
  }
43
- if (!${$}_present && !${$}.issues.length) {
43
+ if (!${T}_present && !${T}.issues.length) {
44
44
  payload.issues.push({
45
45
  code: "invalid_type",
46
46
  expected: "nonoptional",
47
47
  input: undefined,
48
- path: [${O}]
48
+ path: [${N}]
49
49
  });
50
50
  if (ctx && ctx.abortEarly) {
51
51
  payload.value = newResult;
@@ -53,14 +53,14 @@ ${n.join(`
53
53
  }
54
54
  }
55
55
 
56
- if (${$}_present) {
57
- newResult[${O}] = ${$}.value;
56
+ if (${T}_present) {
57
+ newResult[${N}] = ${T}.value;
58
58
  }
59
59
 
60
- `)}return C.write("payload.value = newResult;"),C.write("return payload;"),C.compile()},s,a=Yn,c=!De.jitless,l=c&&Il.value,d=t.catchall,m;e._zod.parse=(f,h)=>{m??(m=r.value);let g=f.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),f=s(f,h),d?g0([],g,f,h,m,e,h?.abortEarly===!0):f):n(f,h):(f.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),f)}});function Q5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!et(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>lt(s,r,ye())))}),t)}var ki=k("$ZodUnion",(e,t)=>{K.init(e,t),X(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),X(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),X(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),X(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>on(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>Q5(a,r,e,o)):Q5(s,r,e,o)}});function e0(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>lt(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var R1=k("$ZodXor",(e,t)=>{ki.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>e0(a,r,e,o)):e0(s,r,e,o)}});function T1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=k0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function k0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var A1=k("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,ki.init(e,t);let n=e._zod.parse;X(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||Oe(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Nr(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Er(()=>k0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Yn(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),$1=k("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>t0(n,c,u)):t0(n,i,s)}});function Fr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(xt(e)&&xt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Fr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Fr(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function t0(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Fr(t.value,n.value);if(!c.valid){if(et(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var za=k("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=De.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=n0(n,"optin"),u=n0(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let f=0;f<n.length;f++){let h=n[f]._zod.run({value:s[f],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[f]=g})):(l[f]=h,d&&!m&&h.issues.length&&(m=et(h)))}if(t.rest&&!m){let f=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let C of h){if(d&&o.issues.length!==g){if(et(o,g))break;g=o.issues.length}f++;let x=t.rest._zod.run({value:C,issues:[]},i);x instanceof Promise?a.push(x.then(y=>r0(y,o,f))):r0(x,o,f)}}return a.length?Promise.all(a).then(()=>o0(l,o,n,s,u)):o0(l,o,n,s,u)}});function n0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function r0(e,t,n){e.issues.length&&t.issues.push(...ut(n,e.issues)),t.value[n]=e.value}function o0(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...ut(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var D1=k("$ZodRecord",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!xt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>lt(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[l],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...ut(l,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...ut(l,f.issues)),r.value[m]=f.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&sn.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>lt(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let f=t.valueType._zod.run({value:i[u],issues:[]},o);f instanceof Promise?s.push(f.then(h=>{h.issues.length&&r.issues.push(...ut(u,h.issues)),r.value[m]=h.value})):(f.issues.length&&r.issues.push(...ut(u,f.issues)),r.value[m]=f.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),E1=k("$ZodMap",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(et(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([f,h])=>{i0(f,h,r,u,i,e,o)})):i0(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function i0(e,t,n,r,o,i,s){e.issues.length&&(Xo.has(typeof r)?n.issues.push(...ut(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>lt(a,s,ye()))})),t.issues.length&&(Xo.has(typeof r)?n.issues.push(...ut(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>lt(a,s,ye()))})),n.value.set(e.value,t.value)}var N1=k("$ZodSet",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(et(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>s0(d,r))):s0(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function s0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var O1=k("$ZodEnum",(e,t)=>{K.init(e,t);let n=$r(t.entries),r=new Set(n);e._zod.values=r,X(e,"pattern",o=>{let i=$r(o.def.entries).filter(s=>Xo.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>It(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),z1=k("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,X(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?It(i):i?It(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),j1=k("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),Z1=k("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",De.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Sn(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new dt;return n.value=o,n}});function a0(e,t){return e.value=t.issues.length?void 0:t.value,e}var ja=k("$ZodOptional",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${on(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>a0(n,i)):a0(n,o)}return t.innerType._zod.run(n,r)}}),W1=k("$ZodExactOptional",(e,t)=>{ja.init(e,t),X(e,"values",n=>n.def.innerType._zod.values),X(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),V1=k("$ZodNullable",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${on(r.source)}|null)$`):void 0}),X(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),F1=k("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>c0(i,t)):c0(o,t)}});function c0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var H1=k("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),B1=k("$ZodNonOptional",(e,t)=>{K.init(e,t),X(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>u0(i,e)):u0(o,e)}});function u0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var U1=k("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Sn("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function l0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>lt(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var G1=k("$ZodCatch",(e,t)=>{K.init(e,t),X(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),X(e,"optout",n=>n.def.innerType._zod.optout),X(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>l0(n,i,t,r)):l0(n,o,t,r)}}),K1=k("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Za=k("$ZodPipe",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>wa(s,t.in,r)):wa(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>wa(i,t.out,r)):wa(o,t.out,r)}});function wa(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var yi=k("$ZodCodec",(e,t)=>{K.init(e,t),X(e,"values",n=>n.def.in._zod.values),X(e,"optin",n=>n.def.in._zod.optin),X(e,"optout",n=>n.def.out._zod.optout),X(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>xa(s,t,r)):xa(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>xa(s,t,r)):xa(i,t,r)}}});function xa(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>Ia(e,i,t.out,n)):Ia(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>Ia(e,i,t.in,n)):Ia(e,o,t.in,n)}}function Ia(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var q1=k("$ZodPreprocess",(e,t)=>{Za.init(e,t)}),Y1=k("$ZodReadonly",(e,t)=>{K.init(e,t),X(e,"propValues",n=>n.def.innerType._zod.propValues),X(e,"values",n=>n.def.innerType._zod.values),X(e,"optin",n=>n.def.innerType?._zod?.optin),X(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(d0):d0(o)}});function d0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function Cx(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return pd({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===sn?ui:s)?.source}function Vd(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=Vd(r);return n&&o&&i&&i!==o?n.replace(on(o),()=>on(i)):n}if(t.options){let o=t.options.map(Vd);if(o.every(Boolean))return`^(${o.map(i=>on(i)).join("|")})$`}return Cx(e)}var J1=k("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=Vd(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(on(o))}else if(r===null||Sl.has(typeof r))n.push(It(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),X1=k("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?sa(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?sa(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await aa(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await aa(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new za({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),Q1=k("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),bi=k("$ZodLazy",(e,t)=>{K.init(e,t),wl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),X(e,"pattern",n=>n.innerType?._zod?.pattern),X(e,"propValues",n=>n.innerType?._zod?.propValues),X(e,"optin",n=>n.innerType?._zod?.optin??void 0),X(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),ep=k("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>p0(i,n,r,e));p0(o,n,r,e)}});function p0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(Or(o))}}var Ha=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},np="~memo",b0=[];function v0(e){return e!==null&&typeof e=="object"}function tp(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var w0=new WeakMap,Hr=0,Fa=1,vi=2;function wi(e,t,n){let r=w0.get(e);if(r!==void 0)return r?vi:Hr;if(t.has(e))return vi;t.add(e);let o=Hr,i=l=>{if(o!==vi&&l?._zod){let d=wi(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Hr;for(let f of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,f);if(d&&!h.enumerable)continue;let g=h.get?Fa:h.value?._zod?wi(h.value,t,n):Hr;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Nr(c);a(l?s(l,!0):Fa),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?wi(l,t,!1):Fa);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let f of m)i(f)}}}return t.delete(e),kx(e,o)}function kx(e,t){return t!==Fa&&w0.set(e,t===vi),t}function Ba(e){return wi(e,new Set,!0)!==Hr}function yx(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var Wa,Va=[],bx={alloc(e,t,n){let r=Wa;if(!r)return n;Wa=void 0;let o={value:n,issues:null};return r.set(t.value,o),Va.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Ua(i,o.value))throw new Ha;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let x=wi(e,new Set,!1);if(x===Hr)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);x===vi||r?n=!0:r=!0}let l=c.value;if(!v0(l))return s(c,u);let d=u[np];d||(d={buckets:new WeakMap,backEdges:void 0},u[np]=d);let m;o===u?m=i:(m=yx(d,e),o=u,i=m);let f=m.get(l);if(f)return c.value=f.value,f.issues?f.issues.length&&c.issues.push(...tp(f.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(f.value)),c;Wa=m;let h=Va.length,g=s(c,u);Wa=void 0;let C=Va.length>h?Va.pop():void 0;return g instanceof Promise?g.then(x=>(C&&(C.issues=x.issues.length?tp(x.issues):b0),x)):(C&&(C.issues=g.issues.length?tp(g.issues):b0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function xi(){return bx}function Ua(e,t){let n=e[np]?.backEdges;return n!==void 0&&v0(t)&&n.has(t)}var Ii={};Tt(Ii,{en:()=>Ga});var vx=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=Ll(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${ta(i.values[0])}`:`Invalid option: expected one of ${Xs(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${Xs(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Ga(){return{localeError:vx()}}var x0,rp=Symbol("ZodOutput"),op=Symbol("ZodInput"),Ka=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function qa(){return new Ka}(x0=globalThis).__zod_globalRegistry??(x0.__zod_globalRegistry=qa());var ze=globalThis.__zod_globalRegistry;var tt=Symbol.for("zod.compile.invalid"),I0=Symbol.for("zod.compile.fallback"),Et=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},ee=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function xx(e,t){try{return Ja(e,{assertOnly:!0})}catch{return t}}function cp(e,t){try{let n=Ja(e),r=Ya(e,n);return r._zod.bag.validator=xx(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Ya(e,t){if(Ba(e))throw new ee("a schema whose subtree contains a reference cycle");let n=se(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[I0]||a&&Ua(a,s.value))return o(s,a);let c=t(s.value);return c!==tt?(s.value=c,s):(a&&(a[I0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||Ix(n,e,t),n}function Ix(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==tt?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==tt?c:i(s,a)}}}function Ja(e,t){let n=!0;try{n=Ba(e)}catch{}if(n)throw new ee("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new Qn(["input"]),i=ge(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[tt,...r.constants.values()],c=o.content.join(`
60
+ `)}return C.write("payload.value = newResult;"),C.write("return payload;"),C.compile()},s,a=Jn,c=!De.jitless,l=c&&vl.value,d=t.catchall,m;e._zod.parse=(p,h)=>{m??(m=r.value);let g=p.value;return a(g)?c&&l&&h?.async===!1&&h.jitless!==!0?(s||(s=i(t.shape)),p=s(p,h),d?f0([],g,p,h,m,e,h?.abortEarly===!0):p):n(p,h):(p.issues.push({expected:"object",code:"invalid_type",input:g,inst:e}),p)}});function Y5(e,t,n,r){for(let i of e)if(i.issues.length===0)return t.value=i.value,t;let o=e.filter(i=>!Ye(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}),t)}var fi=k("$ZodUnion",(e,t)=>{K.init(e,t),Y(e,"optin",r=>r.def.options.some(o=>o._zod.optin==="defaulted")?"defaulted":r.def.options.some(o=>o._zod.optin!==void 0)?"optional":void 0),Y(e,"optout",r=>r.def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),Y(e,"values",r=>{if(r.def.options.every(o=>o._zod.values))return new Set(r.def.options.flatMap(o=>Array.from(o._zod.values)))}),Y(e,"pattern",r=>{if(r.def.options.every(o=>o._zod.pattern)){let o=r.def.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>sn(i.source)).join("|")})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);if(c instanceof Promise)s.push(c),i=!0;else{if(c.issues.length===0)return c;s.push(c)}}return i?Promise.all(s).then(a=>Y5(a,r,e,o)):Y5(s,r,e,o)}});function J5(e,t,n,r){let o=[];for(let i=0;i<e.length;i++)e[i].issues.length===0&&o.push(i);return o.length===1?(t.value=e[o[0]].value,t):(o.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(s=>ct(s,r,ye())))}):t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:[],inclusive:!1,matches:o}),t)}var P1=k("$ZodXor",(e,t)=>{fi.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,o)=>{if(n)return n(r,o);let i=!1,s=[];for(let a of t.options){let c=a._zod.run({value:r.value,issues:[]},o);c instanceof Promise?(s.push(c),i=!0):s.push(c)}return i?Promise.all(s).then(a=>J5(a,r,e,o)):J5(s,r,e,o)}});function L1(e,t){let n=e._zod,r=n.bag.optionsMap;r||(r=h0(n.def),n.bag.optionsMap=r);let o=r.get(t);if(o===null)throw new Error(`Ambiguous discriminator value "${String(t)}"`);return o}function h0(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw new Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let o of r)if(t.has(o)){if(o!==void 0)throw new Error(`Duplicate discriminator value "${String(o)}"`);t.set(o,null)}else t.set(o,n)}return t}var M1=k("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,fi.init(e,t);let n=e._zod.parse;Y(e,"propValues",o=>{let i={},s=0;for(let a of o.def.options){let c=a._zod.propValues;if(!c||Object.keys(c).length===0)throw new Error(`Invalid discriminated union option at index "${o.def.options.indexOf(a)}"`);c[o.def.discriminator]?.has(void 0)&&s++;for(let[u,l]of Object.entries(c)){Object.prototype.hasOwnProperty.call(i,u)||Oe(i,u,new Set);for(let d of l)i[u].add(d)}}return!o.def.unionFallback&&s>1&&i[o.def.discriminator]?.delete(void 0),i}),t.options.forEach((o,i)=>{let s=Or(o._zod.def);if(s&&!Object.prototype.hasOwnProperty.call(s,t.discriminator))throw new Error(`Invalid discriminated union option at index "${i}"`)});let r=Nr(()=>h0(t));e._zod.parse=(o,i)=>{let s=o.value;if(!Jn(s))return o.issues.push({code:"invalid_type",expected:"object",input:s,inst:e}),o;let a=s?.[t.discriminator],c=r.value.get(a);return c&&(a!==void 0||i.direction!=="backward")?c._zod.run(o,i):t.unionFallback||i.direction==="backward"?n(o,i):(o.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,options:Array.from(r.value.keys()).filter(u=>r.value.get(u)!==null),input:s,path:[t.discriminator],inst:e}),o)}}),R1=k("$ZodIntersection",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value,i=t.left._zod.run({value:o,issues:[]},r),s=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||s instanceof Promise?Promise.all([i,s]).then(([c,u])=>X5(n,c,u)):X5(n,i,s)}});function Hr(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vt(e)&&vt(t)){let n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};Object.prototype.hasOwnProperty.call(o,"__proto__")&&delete o.__proto__;for(let i of r){if(i==="__proto__")continue;let s=Hr(e[i],t[i]);if(!s.valid)return{valid:!1,mergeErrorPath:[i,...s.mergeErrorPath]};o[i]=s.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let o=e[r],i=t[r],s=Hr(o,i);if(!s.valid)return{valid:!1,mergeErrorPath:[r,...s.mergeErrorPath]};n.push(s.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function X5(e,t,n){let r=new Map,o,i=new Map,s=(u,l)=>{let d;if(u.code==="unrecognized_keys"&&!u.path?.length)o??(o=u),d=u.keys;else if(u.code==="invalid_key"&&u.origin==="record"&&u.path?.length===1){let m=String(u.path[0]);i.has(m)||i.set(m,u),d=[m]}else return!1;for(let m of d)r.has(m)||r.set(m,{}),r.get(m)[l]=!0;return!0};for(let u of t.issues)s(u,"l")||e.issues.push(u);for(let u of n.issues)s(u,"r")||e.issues.push(u);let a=[...r].filter(([,u])=>u.l&&u.r).map(([u])=>u);if(a.length){let u=o?a.filter(l=>o.keys.includes(l)):[];u.length&&e.issues.push({...o,keys:u});for(let l of a)!u.includes(l)&&i.has(l)&&e.issues.push(i.get(l))}let c=Hr(t.value,n.value);if(!c.valid){if(Ye(e))return e;throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var Ea=k("$ZodTuple",(e,t)=>{K.init(e,t);let n=t.items,r=De.memoizer;r?.attach(e),e._zod.parse=(o,i)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=r?r.alloc(e,o,[],i):[];let a=[],c=Q5(n,"optin"),u=Q5(n,"optout");if(!t.rest){if(s.length<c)return o.issues.push({code:"too_small",minimum:c,inclusive:!0,input:s,inst:e,origin:"array"}),o;s.length>n.length&&o.issues.push({code:"too_big",maximum:n.length,inclusive:!0,input:s,inst:e,origin:"array"})}let l=new Array(n.length),d=t.rest?i?.abortEarly:void 0,m=!1;for(let p=0;p<n.length;p++){let h=n[p]._zod.run({value:s[p],issues:[]},i);h instanceof Promise?a.push(h.then(g=>{l[p]=g})):(l[p]=h,d&&!m&&h.issues.length&&(m=Ye(h)))}if(t.rest&&!m){let p=n.length-1,h=s.slice(n.length),g=o.issues.length;for(let C of h){if(d&&o.issues.length!==g){if(Ye(o,g))break;g=o.issues.length}p++;let x=t.rest._zod.run({value:C,issues:[]},i);x instanceof Promise?a.push(x.then(y=>e0(y,o,p))):e0(x,o,p)}}return a.length?Promise.all(a).then(()=>t0(l,o,n,s,u)):t0(l,o,n,s,u)}});function Q5(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function e0(e,t,n){e.issues.length&&t.issues.push(...at(n,e.issues)),t.value[n]=e.value}function t0(e,t,n,r,o){for(let i=0;i<n.length;i++){let s=e[i],a=i<r.length;if(!a&&i>=o&&n[i]._zod.optin==="optional"){t.value.length=i;break}if(s.issues.length){if(!a&&i>=o){t.value.length=i;break}t.issues.push(...at(i,s.issues))}t.value[i]=s.value}for(let i=t.value.length-1;i>=r.length&&(n[i]._zod.optout==="optional"&&t.value[i]===void 0);i--)t.value.length=i;return t}var T1=k("$ZodRecord",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!vt(i))return r.issues.push({expected:"record",code:"invalid_type",input:i,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a&&!t.partial){r.value=n?n.alloc(e,r,{},o):{};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){if(c.add(typeof l=="number"?l.toString():l),l==="__proto__")continue;let d=t.keyType._zod.run({value:l,issues:[]},o);if(d instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(d.issues.length){r.issues.push({code:"invalid_key",origin:"record",issues:d.issues.map(h=>ct(h,o,ye())),input:l,path:[l],inst:e});continue}let m=d.value;if(m==="__proto__")continue;let p=t.valueType._zod.run({value:i[l],issues:[]},o);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...at(l,h.issues)),r.value[m]=h.value})):(p.issues.length&&r.issues.push(...at(l,p.issues)),r.value[m]=p.value)}let u;for(let l in i)if(!c.has(l))if(t.mode==="loose"){if(l==="__proto__")continue;r.value[l]=i[l]}else u=u??[],u.push(l);u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:u,continue:!0})}else{r.value=n?n.alloc(e,r,{},o):{};let c;for(let u of Reflect.ownKeys(i)){if(u==="__proto__"||!Object.prototype.propertyIsEnumerable.call(i,u))continue;let l=t.keyType._zod.run({value:u,issues:[]},o);if(l instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof u=="string"&&an.test(u)&&l.issues.length){let h=t.keyType._zod.run({value:Number(u),issues:[]},o);if(h instanceof Promise)throw new Error("Async schemas not supported in object keys currently");h.issues.length===0&&(l=h)}if(l.issues.length){t.mode==="loose"?r.value[u]=i[u]:a?(c=c??[],c.push(u)):r.issues.push({code:"invalid_key",origin:"record",issues:l.issues.map(h=>ct(h,o,ye())),input:u,path:[u],inst:e});continue}let m=l.value;if(m==="__proto__")continue;let p=t.valueType._zod.run({value:i[u],issues:[]},o);p instanceof Promise?s.push(p.then(h=>{h.issues.length&&r.issues.push(...at(u,h.issues)),r.value[m]=h.value})):(p.issues.length&&r.issues.push(...at(u,p.issues)),r.value[m]=p.value)}c&&c.length>0&&r.issues.push({code:"unrecognized_keys",input:i,inst:e,keys:c,continue:!0})}return s.length?Promise.all(s).then(()=>r):r}}),$1=k("$ZodMap",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:i,inst:e}),r;let s=[];r.value=n?n.alloc(e,r,new Map,o):new Map;let a=o?.abortEarly,c=r.issues.length;for(let[u,l]of i){if(a&&r.issues.length!==c){if(Ye(r,c))break;c=r.issues.length}let d=t.keyType._zod.run({value:u,issues:[]},o),m=t.valueType._zod.run({value:l,issues:[]},o);d instanceof Promise||m instanceof Promise?s.push(Promise.all([d,m]).then(([p,h])=>{n0(p,h,r,u,i,e,o)})):n0(d,m,r,u,i,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function n0(e,t,n,r,o,i,s){e.issues.length&&(Go.has(typeof r)?n.issues.push(...at(r,e.issues)):n.issues.push({code:"invalid_key",origin:"map",input:o,inst:i,issues:e.issues.map(a=>ct(a,s,ye()))})),t.issues.length&&(Go.has(typeof r)?n.issues.push(...at(r,t.issues)):n.issues.push({origin:"map",code:"invalid_element",input:o,inst:i,key:r,issues:t.issues.map(a=>ct(a,s,ye()))})),n.value.set(e.value,t.value)}var A1=k("$ZodSet",(e,t)=>{K.init(e,t);let n=De.memoizer;n?.attach(e),e._zod.parse=(r,o)=>{let i=r.value;if(!(i instanceof Set))return r.issues.push({input:i,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=n?n.alloc(e,r,new Set,o):new Set;let a=o?.abortEarly,c=r.issues.length;for(let u of i){if(a&&r.issues.length!==c){if(Ye(r,c))break;c=r.issues.length}let l=t.valueType._zod.run({value:u,issues:[]},o);l instanceof Promise?s.push(l.then(d=>r0(d,r))):r0(l,r)}return s.length?Promise.all(s).then(()=>r):r}});function r0(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var D1=k("$ZodEnum",(e,t)=>{K.init(e,t);let n=Dr(t.entries),r=new Set(n);e._zod.values=r,Y(e,"pattern",o=>{let i=Dr(o.def.entries).filter(s=>Go.has(typeof s));return new RegExp(i.length?`^(${i.map(s=>wt(s.toString())).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(o,i)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:n,input:s,inst:e}),o}}),E1=k("$ZodLiteral",(e,t)=>{K.init(e,t);let n=new Set(t.values);e._zod.values=n,Y(e,"pattern",r=>{let o=r.def.values;return new RegExp(o.length?`^(${o.map(i=>typeof i=="string"?wt(i):i?wt(i.toString()):String(i)).join("|")})$`:"^[^\\s\\S]$")}),e._zod.parse=(r,o)=>{let i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),N1=k("$ZodFile",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{let o=n.value;return o instanceof File||n.issues.push({expected:"file",code:"invalid_type",input:o,inst:e}),n}}),O1=k("$ZodTransform",(e,t)=>{K.init(e,t),e._zod.optin="optional",De.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _n(e.constructor.name);let o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(s=>(n.value=s,n));if(o instanceof Promise)throw new ut;return n.value=o,n}});function o0(e,t){return e.value=t.issues.length?void 0:t.value,e}var Na=k("$ZodOptional",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),e._zod.optout="optional",Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r,void 0]):void 0}),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${sn(r.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(n.value===void 0){if(t.innerType._zod.optin!=="defaulted")return n;let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>o0(n,i)):o0(n,o)}return t.innerType._zod.run(n,r)}}),z1=k("$ZodExactOptional",(e,t)=>{Na.init(e,t),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"pattern",n=>n.def.innerType._zod.pattern),e._zod.parse=(n,r)=>t.innerType._zod.run(n,r)}),j1=k("$ZodNullable",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"pattern",n=>{let r=n.def.innerType._zod.pattern;return r?new RegExp(`^(${sn(r.source)}|null)$`):void 0}),Y(e,"values",n=>n.def.innerType._zod.values?new Set([...n.def.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Z1=k("$ZodDefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>i0(i,t)):i0(o,t)}});function i0(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var W1=k("$ZodPrefault",(e,t)=>{K.init(e,t),e._zod.optin="defaulted",Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),V1=k("$ZodNonOptional",(e,t)=>{K.init(e,t),Y(e,"values",n=>{let r=n.def.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(n,r)=>{let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>s0(i,e)):s0(o,e)}});function s0(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}var F1=k("$ZodSuccess",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _n("ZodSuccess");let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.issues.length===0,n)):(n.value=o.issues.length===0,n)}});function a0(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(o=>ct(o,r,ye()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var H1=k("$ZodCatch",(e,t)=>{K.init(e,t),Y(e,"optin",n=>n.def.innerType._zod.optin==="defaulted"?"defaulted":"optional"),Y(e,"optout",n=>n.def.innerType._zod.optout),Y(e,"values",n=>n.def.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run({value:n.value,issues:[]},r);return o instanceof Promise?o.then(i=>a0(n,i,t,r)):a0(n,o,t,r)}}),B1=k("$ZodNaN",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>((typeof n.value!="number"||!Number.isNaN(n.value))&&n.issues.push({input:n.value,inst:e,expected:"nan",code:"invalid_type"}),n)}),Oa=k("$ZodPipe",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ya(s,t.in,r)):ya(i,t.in,r)}let o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>ya(i,t.out,r)):ya(o,t.out,r)}});function ya(e,t,n){return e.issues.some(r=>r.code!=="unrecognized_keys")?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var mi=k("$ZodCodec",(e,t)=>{K.init(e,t),Y(e,"values",n=>n.def.in._zod.values),Y(e,"optin",n=>n.def.in._zod.optin),Y(e,"optout",n=>n.def.out._zod.optout),Y(e,"propValues",n=>n.def.in._zod.propValues),e._zod.parse=(n,r)=>{if((r.direction||"forward")==="forward"){let i=t.in._zod.run(n,r);return i instanceof Promise?i.then(s=>ba(s,t,r)):ba(i,t,r)}else{let i=t.out._zod.run(n,r);return i instanceof Promise?i.then(s=>ba(s,t,r)):ba(i,t,r)}}});function ba(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||"forward")==="forward"){let o=t.transform(e.value,e);return o instanceof Promise?o.then(i=>va(e,i,t.out,n)):va(e,o,t.out,n)}else{let o=t.reverseTransform(e.value,e);return o instanceof Promise?o.then(i=>va(e,i,t.in,n)):va(e,o,t.in,n)}}function va(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var U1=k("$ZodPreprocess",(e,t)=>{Oa.init(e,t)}),G1=k("$ZodReadonly",(e,t)=>{K.init(e,t),Y(e,"propValues",n=>n.def.innerType._zod.propValues),Y(e,"values",n=>n.def.innerType._zod.values),Y(e,"optin",n=>n.def.innerType?._zod?.optin),Y(e,"optout",n=>n.def.innerType?._zod?.optout),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);let o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(c0):c0(o)}});function c0(e){return e.memo||(e.value=Object.freeze(e.value)),e}function cx(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes("int"),o,i;for(let a of t.checks??[]){let c=a._zod.def;c.pattern&&(n=c.pattern),r||(r=!!c.format?.includes("int"));let u=c.minimum??c.length,l=c.maximum??c.length;u!==void 0&&(o===void 0||u>o)&&(o=u),l!==void 0&&(i===void 0||l<i)&&(i=l)}if(n)return n.source;if(o!==void 0&&i!==void 0&&o>i)return"(?!)";if(o!==void 0||i!==void 0)return ud({minimum:o,maximum:i}).source;let s=e._zod.pattern;return(r&&s===an?oi:s)?.source}function jd(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let o=r._zod.pattern?.source,i=jd(r);return n&&o&&i&&i!==o?n.replace(sn(o),()=>sn(i)):n}if(t.options){let o=t.options.map(jd);if(o.every(Boolean))return`^(${o.map(i=>sn(i)).join("|")})$`}return cx(e)}var K1=k("$ZodTemplateLiteral",(e,t)=>{K.init(e,t);let n=[];for(let r of t.parts)if(typeof r=="object"&&r!==null){let o=jd(r);if(!o)throw new Error(`Invalid template literal part, no pattern found: ${[...r._zod.traits].shift()}`);n.push(sn(o))}else if(r===null||wl.has(typeof r))n.push(wt(`${r}`));else throw new Error(`Invalid template literal part: ${r}`);e._zod.pattern=new RegExp(`^${n.join("")}$`),e._zod.parse=(r,o)=>typeof r.value!="string"?(r.issues.push({input:r.value,inst:e,expected:"string",code:"invalid_type"}),r):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(r.value)||r.issues.push({input:r.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),r)}),q1=k("$ZodFunction",(e,t)=>(K.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=n=>{if(typeof n!="function")throw new Error("implement() must be called with a function");return Object.defineProperty(function(...r){let o=e._def.input?ra(e._def.input,r):r,i=Reflect.apply(n,this,o);return e._def.output?ra(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=n=>{if(typeof n!="function")throw new Error("implementAsync() must be called with a function");return Object.defineProperty(async function(...r){let o=e._def.input?await oa(e._def.input,r):r,i=await Reflect.apply(n,this,o);return e._def.output?await oa(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(n,r)=>typeof n.value!="function"?(n.issues.push({code:"invalid_type",expected:"function",input:n.value,inst:e}),n):(e._def.output&&e._def.output._zod.def.type==="promise"?n.value=e.implementAsync(n.value):n.value=e.implement(n.value),n),e.input=(...n)=>{let r=e.constructor;return Array.isArray(n[0])?new r({type:"function",input:new Ea({type:"tuple",items:n[0],rest:n[1]}),output:e._def.output}):new r({type:"function",input:n[0],output:e._def.output})},e.output=n=>{let r=e.constructor;return new r({type:"function",input:e._def.input,output:n})},e)),Y1=k("$ZodPromise",(e,t)=>{K.init(e,t),e._zod.parse=(n,r)=>Promise.resolve(n.value).then(o=>t.innerType._zod.run({value:o,issues:[]},r))}),hi=k("$ZodLazy",(e,t)=>{K.init(e,t),yl(e._zod,"innerType",()=>{let n=t;return n._cachedInner||(n._cachedInner=t.getter()),n._cachedInner}),Y(e,"pattern",n=>n.innerType?._zod?.pattern),Y(e,"propValues",n=>n.innerType?._zod?.propValues),Y(e,"optin",n=>n.innerType?._zod?.optin??void 0),Y(e,"optout",n=>n.innerType?._zod?.optout??void 0),e._zod.parse=(n,r)=>e._zod.innerType._zod.run(n,r)}),J1=k("$ZodCustom",(e,t)=>{pe.init(e,t),K.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{let r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>u0(i,n,r,e));u0(o,n,r,e)}});function u0(e,t,n,r){if(!e){let o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(zr(o))}}var Wa=class extends Error{constructor(){super("Cannot parse a reference cycle that closes through a transform"),this.name="ZodCyclicError"}},Q1="~memo",C0=[];function k0(e){return e!==null&&typeof e=="object"}function X1(e){return e.map(t=>t.path?{...t,path:t.path.slice()}:{...t})}var y0=new WeakMap,Br=0,Za=1,gi=2;function Ci(e,t,n){let r=y0.get(e);if(r!==void 0)return r?gi:Br;if(t.has(e))return gi;t.add(e);let o=Br,i=l=>{if(o!==gi&&l?._zod){let d=Ci(l,t,n);d>o&&(o=d)}},s=(l,d)=>{let m=Br;for(let p of Reflect.ownKeys(l)){let h=Object.getOwnPropertyDescriptor(l,p);if(d&&!h.enumerable)continue;let g=h.get?Za:h.value?._zod?Ci(h.value,t,n):Br;g>m&&(m=g)}return m},a=l=>{l>o&&(o=l)},c=e._zod.def,u=c.type;switch(u){case"object":{let l=Or(c);a(l?s(l,!0):Za),i(c.catchall);break}case"array":i(c.element);break;case"tuple":for(let l of c.items)i(l);i(c.rest);break;case"record":case"map":i(c.keyType),i(c.valueType);break;case"set":i(c.valueType);break;case"union":for(let l of c.options)i(l);break;case"intersection":i(c.left),i(c.right);break;case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":i(c.innerType);break;case"pipe":i(c.in),i(c.out);break;case"function":i(c.input),i(c.output);break;case"lazy":{let l=c._cachedInner??(n?e._zod.innerType:void 0);a(l?Ci(l,t,!1):Za);break}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":break;default:for(let l in c){let d=Object.getOwnPropertyDescriptor(c,l);if(!d||d.get)continue;let m=d.value;if(!(!m||typeof m!="object")){if(m._zod)i(m);else if(Array.isArray(m))for(let p of m)i(p)}}}return t.delete(e),ux(e,o)}function ux(e,t){return t!==Za&&y0.set(e,t===gi),t}function Va(e){return Ci(e,new Set,!0)!==Br}function lx(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var za,ja=[],dx={alloc(e,t,n){let r=za;if(!r)return n;za=void 0;let o={value:n,issues:null};return r.set(t.value,o),ja.push(o),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let n=e._zod.parse,r=(o,i)=>{if(i.direction!=="backward"&&Fa(i,o.value))throw new Wa;return n(o,i)};e._zod.parse=r,e._zod.run===n&&(e._zod.run=r)})},attach(e){var t;let n,r=!1,o,i;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let s=e._zod.parse,a=(c,u)=>{if(n===void 0){let x=Ci(e,new Set,!1);if(x===Br)return e._zod.parse=s,e._zod.run===a&&(e._zod.run=s),s(c,u);x===gi||r?n=!0:r=!0}let l=c.value;if(!k0(l))return s(c,u);let d=u[Q1];d||(d={buckets:new WeakMap,backEdges:void 0},u[Q1]=d);let m;o===u?m=i:(m=lx(d,e),o=u,i=m);let p=m.get(l);if(p)return c.value=p.value,p.issues?p.issues.length&&c.issues.push(...X1(p.issues)):(c.memo=!0,d.backEdges??(d.backEdges=new WeakSet),d.backEdges.add(p.value)),c;za=m;let h=ja.length,g=s(c,u);za=void 0;let C=ja.length>h?ja.pop():void 0;return g instanceof Promise?g.then(x=>(C&&(C.issues=x.issues.length?X1(x.issues):C0),x)):(C&&(C.issues=g.issues.length?X1(g.issues):C0),g)};e._zod.parse=a,e._zod.run===s&&(e._zod.run=a)})}};function ki(){return dx}function Fa(e,t){let n=e[Q1]?.backEdges;return n!==void 0&&k0(t)&&n.has(t)}var yi={};Rt(yi,{en:()=>Ha});var px=()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(i){return e[i]??null}let n={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",currency_code:"currency code",credit_card:"credit card number",iban:"IBAN",jwt:"JWT",template_literal:"input"},r={nan:"NaN"};function o(i,s){return i==="number"&&typeof s=="number"&&!Number.isFinite(s)?String(s):r[i]??i}return i=>{switch(i.code){case"invalid_type":{let s=o(i.expected),a=Sl(i.input),c=o(a,i.input);return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return i.values.length===1?`Invalid input: expected ${Xs(i.values[0])}`:`Invalid option: expected one of ${qs(i.values,"|")}`;case"too_big":{let s=i.exact?"exactly ":i.inclusive?"<=":"<",a=t(i.origin);return a?`Too big: expected ${i.origin??"value"} to have ${s}${i.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${i.origin??"value"} to be ${s}${i.maximum.toString()}`}case"too_small":{let s=i.exact?"exactly ":i.inclusive?">=":">",a=t(i.origin);return a?`Too small: expected ${i.origin} to have ${s}${i.minimum.toString()} ${a.unit}`:`Too small: expected ${i.origin} to be ${s}${i.minimum.toString()}`}case"invalid_format":{let s=i;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${n[s.format]??i.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${i.divisor}`;case"unrecognized_keys":return`Unrecognized key${i.keys.length>1?"s":""}: ${qs(i.keys,", ")}`;case"invalid_key":return`Invalid key in ${i.origin}`;case"invalid_union":return i.options&&Array.isArray(i.options)&&i.options.length>0?`Invalid discriminator value. Expected ${i.options.map(a=>`'${a}'`).join(" | ")}`:i.inclusive===!1?"Invalid input: more than one option matched":"Invalid input";case"invalid_element":return`Invalid value in ${i.origin}`;default:return"Invalid input"}}};function Ha(){return{localeError:px()}}var b0,ep=Symbol("ZodOutput"),tp=Symbol("ZodInput"),Ba=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){let r=n[0];return this._map.set(t,r),r&&typeof r=="object"&&"id"in r&&this._idmap.set(r.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){let n=t._zod.parent;if(n){let r={...this.get(n)??{}};delete r.id;let o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function Ua(){return new Ba}(b0=globalThis).__zod_globalRegistry??(b0.__zod_globalRegistry=Ua());var ze=globalThis.__zod_globalRegistry;var Je=Symbol.for("zod.compile.invalid"),v0=Symbol.for("zod.compile.fallback"),Dt=class extends Error{constructor(t="z.compile does not support async refinements, transforms, or checks"){super(t),this.name="ZodCompileAsyncError"}},Q=class extends Error{constructor(t,n=!0){super(`z.compile does not support ${t}; this schema must use the runtime parser`),this.name="ZodCompileUnsupportedError",this.islandable=n}};function mx(e,t){try{return Ka(e,{assertOnly:!0})}catch{return t}}function ip(e,t){try{let n=Ka(e),r=Ga(e,n);return r._zod.bag.validator=mx(e,n),r}catch(n){if(t?.strict)throw n;return e}}function Ga(e,t){if(Va(e))throw new Q("a schema whose subtree contains a reference cycle");let n=se(e),r=e._zod.run,o=r.__originalRun??r,i=(s,a)=>{if(a?.async||a?.direction==="backward"||a?.skipChecks||a?.[v0]||a&&Fa(a,s.value))return o(s,a);let c=t(s.value);return c!==Je?(s.value=c,s):(a&&(a[v0]=!0),o(s,a))};return i.__originalRun=o,n._zod.bag.fallbackRun=o,n._zod.bag.validator=t,n._zod.run=i,r.__originalRun||hx(n,e,t),n}function hx(e,t,n){let r=e,o=t;if(typeof o.safeParse=="function"){let i=o.safeParse;r.safeParse=(s,a)=>{let c=n(s);return c!==Je?{success:!0,data:c}:i(s,a)}}if(typeof o.parse=="function"){let i=o.parse;r.parse=(s,a)=>{let c=n(s);return c!==Je?c:i(s,a)}}}function Ka(e,t){let n=!0;try{n=Va(e)}catch{}if(n)throw new Q("a schema whose subtree contains a reference cycle");let r={constants:new Map,constantCounter:0,varCounter:0,definite:!0},o=new er(["input"]),i=Ce(o,r,e,"input",!t?.assertOnly);o.write(i===null?"return true;":`return ${i};`);let s=["INVALID",...r.constants.keys()],a=[Je,...r.constants.values()],c=o.content.join(`
61
61
  `),u=t?.debug?s.length>0?`// Constants: ${s.join(", ")}
62
62
  ${c}`:c:"",l=Function,d=`return (input) => {
63
63
  ${c}
64
- }`,m;try{m=new l(...s,d)(...a)}catch(f){throw new ee(`this schema (generated code failed to evaluate: ${f.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function rr(e,t){return e.definite=!1,U(e,t)}function V(e){return`v${e.varCounter++}`}function Sx(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return tt;let r=n;return r.issues.length===0?r.value:tt}function Be(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return ge(e,t,n,r,o)}catch(u){if(!(u instanceof ee)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,_x(e,t,n,r)}}function _x(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,Sx),s=V(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var Px=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function Lx(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!Px.has(a.check))throw new ee('check with a custom "when" condition');switch(a.check){case"greater_than":Mx(e,t,a,i);break;case"less_than":Rx(e,t,a,i);break;case"multiple_of":Tx(e,t,a,i);break;case"number_format":R0(e,a,i);break;case"min_length":{let c=tr(a.minimum,"min_length"),u=ip(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=tr(a.maximum,"max_length"),u=ip(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=tr(a.length,"length_equals"),u=ip(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${tr(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${tr(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${tr(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=T0(e,t,a,i);break;case"custom":i=Ox(e,t,s,i);break;case"bigint_format":Ax(e,a,i);break;case"mime_type":$x(e,t,a,i);break;case"property":Ex(e,t,a,i);break;case"properties":Dx(e,t,a,i);break;case"overwrite":{let c=V(t);Nx(e,t,s,i,c),i=c;break}default:throw new ee(`check type ${a.check}`)}}return i}function ip(e,t,n,r){let o=U(t,Jn),i=V(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function tr(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new ee(`${t} bound of type ${typeof e}`);return`${e}`}function M0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new ee("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new ee("comparison check with Invalid Date bound");return U(e,t)}throw new ee(`comparison check bound of type ${typeof t}`)}function Mx(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${M0(t,n.value)}) return INVALID;`)}function Rx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${M0(t,n.value)}) return INVALID;`)}function Tx(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new ee("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Yo);e.write(`if (${o}(${r}, ${tr(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function R0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new ee(`number format ${r}`)}}function Ax(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new ee(`bigint format ${r}`)}}function $x(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function Dx(e,t,n,r){if(n.when)throw new ee('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):Qe(i),a=V(t);e.write(`const ${a} = ${r}[${s}];`),Be(e,t,o[i],a,!1)}}function Ex(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;ge(e,t,n.schema,o)}function Nx(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new ee("overwrite check without a transform function");if(or(i))throw new Et("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function sp(){throw new dt}function up(e){this.issues.push(e)}function Ox(e,t,n,r){let o=n._zod.def;if(o.fn){if(or(o.fn))throw new Et("z.compile: async .refine() predicates are not supported");let i=rr(t,o.fn),s=U(t,sp),a=V(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(or(n._zod.check))throw new Et("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=rr(t,u=>{let l={value:u,issues:[],addIssue:up};return i(l)instanceof Promise&&sp(),l.issues.length===0?l.value:tt}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new ee("custom check without a predicate or check function")}var zx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function T0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,hi);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,Aa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,Ea),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,mi);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,Ra);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,$a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,Da);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,Pa),l=U(t,n),d=V(t),m=V(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,La);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,Ma);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let f=V(t),h=s.normalize?`${m}.href`:`${U(t,fi)}(${d})`;return e.write(`const ${f} = ${h};`),f}let a=n.fn;if(a){if(or(a))throw new ee(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(zx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new ee("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${Qe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${Qe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${Qe(u)}) return INVALID;`);break}default:throw new ee(`string format ${c}`)}return r}function ge(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new ee(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=jx(e,t,n,r,a);break;case"number":c=Zx(e,n,r);break;case"boolean":c=Wx(e,r);break;case"bigint":c=Vx(e,n,r);break;case"symbol":c=Fx(e,r);break;case"undefined":c=Hx(e,r);break;case"null":c=Bx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=Ux(e,r);break;case"nan":c=Gx(e,r);break;case"date":c=Kx(e,r);break;case"object":c=qx(e,t,n,r,a);break;case"optional":c=Yx(e,t,n,r,a);break;case"nullable":c=Qx(e,t,n,r,a);break;case"array":c=eI(e,t,n,r,a);break;case"literal":c=tI(e,t,n,r);break;case"enum":c=nI(e,t,n,r);break;case"readonly":{let u=_0(e,t,n,r),l=V(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":_0(e,t,n,r),c="true";break;case"default":case"prefault":c=rI(e,t,n,r);break;case"nonoptional":c=oI(e,t,n,r);break;case"tuple":c=iI(e,t,n,r);break;case"union":c=sI(e,t,n,r);break;case"intersection":c=uI(e,t,n,r);break;case"record":c=lI(e,t,n,r);break;case"map":c=pI(e,t,n,r);break;case"set":c=fI(e,t,n,r);break;case"file":c=mI(e,r);break;case"template_literal":c=hI(e,t,n,r);break;case"lazy":c=gI(e,t,n,r);break;case"pipe":c=CI(e,t,n,r);break;case"custom":c=kI(e,t,n,r);break;case"transform":c=vI(e,t,n,r);break;case"catch":c=bI(e,t,n,r);break;default:throw new ee(`schema type ${s}`)}return c===null?null:Lx(e,t,n,c)}function jx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:T0(e,t,i,r,o)}function Zx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&R0(e,{format:r.format},n),n}function Wx(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function Vx(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function Fx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function Hx(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Bx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function Ux(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Gx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function Kx(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function qx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):Qe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:Qe(y),m=s;if(a.includes("__proto__"))throw new ee('object shape key "__proto__"');let f=new Map;for(let y of u){let I=m[y],T=l(y),L=V(t);if(e.write(`const ${L} = ${r}[${T}];`),I._zod.optin!==void 0){let $=V(t);e.write(`let ${$} = (() => {`),e.indented(O=>{let B=Be(O,t,I,L);O.write(`return ${B};`)}),e.write("})();"),I._zod.optout==="optional"?(e.write(`if (${$} === INVALID) {`),e.indented(O=>{O.write(`if (${T} in ${r}) return INVALID;`),O.write(`${$} = undefined;`)}),e.write("}")):e.write(`if (${$} === INVALID) return INVALID;`),f.set(y,$)}else{Xx(I)&&e.write(`if (!(${T} in ${r})) return INVALID;`);let $=Be(e,t,I,L,o);$!==null&&f.set(y,$)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let I=a.map(T=>`k !== ${Qe(T)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(T=>{T.write(`if (${I}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let C=V(t),x=u.some(y=>S0(m[y])||ap(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(I=>{I.write('if (k === "__proto__") continue;'),y&&I.write(`if (${y}.has(k)) continue;`);let T=V(t);I.write(`const ${T} = ${r}[k];`),Be(I,t,h,T,!1)}),e.write("}")}return null}if(x){e.write(`const ${C} = {};`);for(let y of u){let I=l(y),T=f.get(y);ap(m[y])?e.write(`if (${I} in ${r}) ${C}[${I}] = ${T};`):S0(m[y])?e.write(`if (${T} !== undefined || ${I} in ${r}) ${C}[${I}] = ${T};`):e.write(`${C}[${I}] = ${T};`)}}else{let y=u.map(I=>`${d(I)}: ${f.get(I)}`).join(", ");e.write(`const ${C} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(I=>{if(I.write('if (k === "__proto__") continue;'),y&&I.write(`if (${y}.has(k)) continue;`),g==="passthrough")I.write(`${C}[k] = ${r}[k];`);else{let T=V(t);I.write(`const ${T} = ${r}[k];`);let L=Be(I,t,h,T);I.write(`${C}[k] = ${L};`)}}),e.write("}")}return C}function Yx(e,t,n,r,o=!0){let i=n._zod.def;if(Jx(n))return ge(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=V(t),c=V(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=ge(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=ge(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?V(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=ge(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Jx(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Xx(e){return e._zod.optin===void 0&&nr(e)}function nr(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?nr(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?nr(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(nr):!0;case"intersection":return!t.left||!t.right?!0:nr(t.left)&&nr(t.right);case"pipe":return t.in?nr(t.in):!0;default:return!0}}function ap(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function S0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Br(e)}function Br(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Br(t.innerType):!0;case"union":return t.options?t.options.some(Br):!0;case"intersection":return!t.left||!t.right||Br(t.left)||Br(t.right);case"pipe":return t.out?Br(t.out):!0;default:return!0}}function Qx(e,t,n,r,o=!0){let i=n._zod.def,s=o?V(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=ge(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function eI(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?V(t):null,a=V(t),c=V(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Be(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function tI(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${Qe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new ee(`literal type ${typeof s}`);return r}function nI(e,t,n,r){let o=n._zod.values;if(!o)throw new ee("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function _0(e,t,n,r){let o=n._zod.def;return ge(e,t,o.innerType,r)}function rI(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return ge(e,t,o.innerType,r);let c=U(t,s),u=V(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),ge(e,t,o.innerType,u)}let a=V(t);if(s){let c=U(t,s),u=U(t,Jo);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=ge(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=ge(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function oI(e,t,n,r){let o=n._zod.def,i=ge(e,t,o.innerType,r),s=V(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function iI(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=P0(i,"optin"),c=P0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=V(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(f=>{let h=V(t);f.write(`const ${h} = ${r}[${l}];`);let g=Be(f,t,d,h);f.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(f=>{if(ap(d)){f.write(`${u}.length = ${l};`);return}let h=V(t),g=V(t);f.write(`const ${h} = undefined;`),f.write(`const ${g} = (() => {`),f.indented(C=>{let x=Be(C,t,d,h);C.write(`return ${x};`)}),f.write("})();"),f.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),f.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=V(t);e.write(`const ${m} = ${r}[${l}];`);let f=Be(e,t,d,m);e.write(`${u}[${l}] = ${f};`)}}if(s){let l=V(t),d=V(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let f=Be(m,t,s,d);m.write(`${u}[${l}] = ${f};`)}),e.write("}")}return u}function P0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function sI(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return aI(e,t,o,r);if(o.inclusive===!1)throw new ee("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return ge(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=V(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=ge(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function aI(e,t,n,r){if(n.unionFallback)throw new ee("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=V(t),i=V(t);e.write(`const ${o} = ${r}?.[${Qe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new ee("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new ee(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>cI(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let f=ge(m,t,c,r);m.write(`${i} = ${f};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function cI(e,t,n){if(typeof n=="string")return`${t} === ${Qe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new ee(`literal discriminator value ${String(n)}`)}function uI(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Be(e,t,o.left,r),s=Be(e,t,o.right,r),a=U(t,Fr),c=V(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function lI(e,t,n,r){let o=n._zod.def,i=U(t,xt);e.write(`if (!${i}(${r})) return INVALID;`);let s=V(t),a=V(t),c=V(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let f=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new ee(`record key value ${String(g)}`);let C=typeof g=="number"?g.toString():g;if(C==="__proto__")throw new ee('record key "__proto__"');f.push(C);let x=U(t,g),y=ge(e,t,o.keyType,x),I=V(t);e.write(`const ${I} = ${r}[${dI(t,C)}];`);let T=Be(e,t,o.valueType,I);e.write(`${s}[${y}] = ${T};`)}let h=U(t,new Set(f));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let f=o.mode==="loose",h=Ja(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),C=U(t,sn),x=V(t);return L0(e,t,r,a,y=>{y.write(`let ${x} = ${g}(${a});`),y.write(`if (${x} === INVALID && typeof ${a} === "string" && ${C}.test(${a})) ${x} = ${g}(Number(${a}));`),f?y.write(`if (${x} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${x} === INVALID) return INVALID;`),y.write(`if (${x} === "__proto__") continue;`);let I=V(t);y.write(`const ${I} = ${r}[${a}];`);let T=Be(y,t,o.valueType,I);y.write(`${s}[${x}] = ${T};`)}),s}return L0(e,t,r,a,f=>{f.write(`const ${c} = ${r}[${a}];`);let h=Be(f,t,o.valueType,c);f.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function L0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=V(t),c=V(t),u=V(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function dI(e,t){return typeof t=="string"?Qe(t):U(e,t)}function pI(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=V(t),s=V(t),a=V(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=ge(c,t,o.keyType,s),l=ge(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function fI(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=V(t),s=V(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=ge(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function mI(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function hI(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function gI(e,t,n,r){let o=n._zod.def,i=rr(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=V(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function CI(e,t,n,r){let o=n._zod.def,i=ge(e,t,o.in,r);if(o.transform){if(or(o.transform))throw new Et("z.compile: async transforms in pipes are not supported");let s=o.transform,c=rr(t,l=>{let d={value:l,issues:[],addIssue:up},m=s(l,d);return m instanceof Promise?tt:d.issues.length===0?m:tt}),u=V(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),ge(e,t,o.out,u)}else return ge(e,t,o.out,i)}function or(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function kI(e,t,n,r){let o=n._zod.def;if(o.fn){if(or(o.fn))throw new Et("z.compile: async custom predicates are not supported");let i=rr(t,o.fn),s=U(t,sp),a=V(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new ee("custom schema without a predicate function");return r}function yI(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return tt;let o=r;return o.issues.length===0?o.value:t()}function bI(e,t,n,r){let o=n._zod.def;if(!o.catchValue[oa])throw new ee("catch with a callback (only a constant catch value compiles)",!1);let i=V(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Be(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=rr(t,o.catchValue),c=U(t,yI);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function vI(e,t,n,r){let o=n._zod.def;if(o.transform){if(or(o.transform))throw new Et("z.compile: async transforms are not supported");let i=o.transform,a=rr(t,u=>{let l={value:u,issues:[],addIssue:up},d=i(u,l);return d instanceof Promise?tt:l.issues.length===0?d:tt}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function Xa(e){return e.checks&&(e.checks=[...e.checks]),e}function lp(e,t){return new e(Xa({type:"string",...P(t)}))}function dp(e,t){return new e(Xa({type:"string",coerce:!0,...P(t)}))}function Qa(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...P(t)})}function ec(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...P(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...P(t)})}function nc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...P(t)})}function rc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...P(t)})}function oc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...P(t)})}function Si(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...P(t)})}function ic(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...P(t)})}function sc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...P(t)})}function ac(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...P(t)})}function cc(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...P(t)})}function uc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...P(t)})}function lc(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...P(t)})}function dc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...P(t)})}function pc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...P(t)})}function fc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...P(t)})}function pp(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...P(t)})}function mc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...P(t)})}function hc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...P(t)})}function gc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...P(t)})}function Cc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...P(t)})}function kc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...P(t)})}function fp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...P(t)})}function mp(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...P(t)})}function yc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...P(t)})}var hp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function _i(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...P(t)})}function Pi(e,t){return new e({type:"string",format:"date",check:"string_format",...P(t)})}function Li(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...P(t)})}function Mi(e,t){return new e({type:"string",format:"duration",check:"string_format",...P(t)})}function gp(e,t){return new e(Xa({type:"number",checks:[],...P(t)}))}function Cp(e,t){return new e(Xa({type:"number",coerce:!0,checks:[],...P(t)}))}function kp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...P(t)})}function yp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...P(t)})}function bp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...P(t)})}function vp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...P(t)})}function wp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...P(t)})}function xp(e,t){return new e({type:"boolean",...P(t)})}function Ip(e,t){return new e({type:"boolean",coerce:!0,...P(t)})}function Sp(e,t){return new e({type:"bigint",...P(t)})}function _p(e,t){return new e({type:"bigint",coerce:!0,...P(t)})}function Pp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...P(t)})}function Lp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...P(t)})}function Mp(e,t){return new e({type:"symbol",...P(t)})}function Rp(e,t){return new e({type:"undefined",...P(t)})}function Tp(e,t){return new e({type:"null",...P(t)})}function Ap(e){return new e({type:"any"})}function $p(e){return new e({type:"unknown"})}function Dp(e,t){return new e({type:"never",...P(t)})}function Ep(e,t){return new e({type:"void",...P(t)})}function Np(e,t){return new e({type:"date",...P(t)})}function Op(e,t){return new e({type:"date",coerce:!0,...P(t)})}function zp(e,t){return new e({type:"nan",...P(t)})}function Ht(e,t){return new ba({check:"less_than",...P(t),value:e,inclusive:!1})}function gt(e,t){return new ba({check:"less_than",...P(t),value:e,inclusive:!0})}function Bt(e,t){return new va({check:"greater_than",...P(t),value:e,inclusive:!1})}function Ct(e,t){return new va({check:"greater_than",...P(t),value:e,inclusive:!0})}function bc(e){return Bt(0,e)}function vc(e){return Ht(0,e)}function wc(e){return gt(0,e)}function xc(e){return Ct(0,e)}function _n(e,t){return new wd({check:"multiple_of",...P(t),value:e})}function Pn(e,t){return new Sd({check:"max_size",...P(t),maximum:e})}function Ut(e,t){return new _d({check:"min_size",...P(t),minimum:e})}function ir(e,t){return new Pd({check:"size_equals",...P(t),size:e})}function sr(e,t){return new Ld({check:"max_length",...P(t),maximum:e})}function an(e,t){return new Md({check:"min_length",...P(t),minimum:e})}function ar(e,t){return new Rd({check:"length_equals",...P(t),length:e})}function Ur(e,t){return new Td({check:"string_format",format:"regex",...P(t),pattern:e})}function Gr(e){return new Ad({check:"string_format",format:"lowercase",...P(e)})}function Kr(e){return new $d({check:"string_format",format:"uppercase",...P(e)})}function qr(e,t){return new Dd({check:"string_format",format:"includes",...P(t),includes:e})}function Yr(e,t){return new Ed({check:"string_format",format:"starts_with",...P(t),prefix:e})}function Jr(e,t){return new Nd({check:"string_format",format:"ends_with",...P(t),suffix:e})}function Ic(e,t,n){return new Od({check:"property",property:e,schema:t,...P(n)})}function Xr(e,t){return new zd({check:"properties",shape:e,...P(t)})}function Qr(e,t){return new jd({check:"mime_type",mime:e,...P(t)})}function Nt(e){return new Zd({check:"overwrite",tx:e})}function eo(e){return Nt(t=>t.normalize(e))}function to(){return Nt(e=>e.trim())}function no(){return Nt(e=>e.toLowerCase())}function ro(){return Nt(e=>e.toUpperCase())}function oo(){return Nt(e=>xl(e))}function jp(e,t,n){return new e({type:"array",element:t,...P(n)})}function wI(e,t,n){return new e({type:"union",options:t,...P(n)})}function xI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...P(n)})}function II(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...P(r)})}function SI(e,t,n){return new e({type:"intersection",left:t,right:n})}function _I(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...P(i)})}function PI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...P(r)})}function LI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...P(r)})}function MI(e,t,n){return new e({type:"set",valueType:t,...P(n)})}function RI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...P(n)})}function TI(e,t,n){return new e({type:"enum",entries:t,...P(n)})}function AI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...P(n)})}function Zp(e,t){return new e({type:"file",...P(t)})}function $I(e,t){return new e({type:"transform",transform:t})}function DI(e,t){return new e({type:"optional",innerType:t})}function EI(e,t){return new e({type:"nullable",innerType:t})}function NI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Jo(n)}})}function OI(e,t,n){return new e({type:"nonoptional",innerType:t,...P(n)})}function zI(e,t){return new e({type:"success",innerType:t})}function jI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Rl(n)})}function ZI(e,t,n){return new e({type:"pipe",in:t,out:n})}function WI(e,t){return new e({type:"readonly",innerType:t})}function VI(e,t,n){return new e({type:"template_literal",parts:t,...P(n)})}function FI(e,t){return new e({type:"lazy",getter:t})}function HI(e,t){return new e({type:"promise",innerType:t})}function Wp(e,t,n){let r=P(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function Vp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...P(n)})}function Fp(e,t){let n=A0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Or(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(Or(i))}},e(r.value,r)),t);return n}function A0(e,t){let n=new pe({check:"custom",...P(t)});return n._zod.check=e,n}function Hp(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=ze.get(n)??{};ze.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Bp(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=ze.get(n)??{};ze.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Up(e,t){let n=P(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(f=>typeof f=="string"?f.toLowerCase():f),o=o.map(f=>typeof f=="string"?f.toLowerCase():f));let i=new Set(r),s=new Set(o),a=e.Codec??yi,c=e.Boolean??Ci,u=e.String??er,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((f,h)=>{let g=f;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((f,h)=>f===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function cr(e,t,n,r={}){let o=P(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Ri(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Oe(e,r,n[r]);return e}function Ln(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ze,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function _e(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function ce(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,f=t.processors[o.type];if(!f)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);f(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),ce(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Ri(s.schema,c),t.io==="input"&&nt(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function $0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Mn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let f=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=f,{defId:f,ref:`${m("__shared")}#/${a}/${$0(f)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+$0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
64
+ }`,m;try{m=new l(...s,d)(...a)}catch(p){throw new Q(`this schema (generated code failed to evaluate: ${p.message})`)}return t?.debug&&(m.code=u),m.definite=r.definite,m}function U(e,t){for(let[r,o]of e.constants)if(o===t)return r;let n=`c${e.constantCounter++}`;return e.constants.set(n,t),n}function or(e,t){return e.definite=!1,U(e,t)}function V(e){return`v${e.varCounter++}`}function gx(e,t){let n=e._zod.run({value:t,issues:[]},{});if(n&&typeof n.then=="function")return Je;let r=n;return r.issues.length===0?r.value:Je}function Ve(e,t,n,r,o=!0){let i=e.content.length,s=t.constants.size,a=t.constantCounter,c=t.varCounter;try{return Ce(e,t,n,r,o)}catch(u){if(!(u instanceof Q)||!u.islandable)throw u;if(e.content.length=i,t.constants.size>s){let l=Array.from(t.constants.keys()).slice(s);for(let d of l)t.constants.delete(d)}return t.constantCounter=a,t.varCounter=c,Cx(e,t,n,r)}}function Cx(e,t,n,r){t.definite=!1;let o=U(t,n),i=U(t,gx),s=V(t);return e.write(`const ${s} = ${i}(${o}, ${r});`),e.write(`if (${s} === INVALID) return INVALID;`),s}var kx=new Set(["max_size","min_size","size_equals","max_length","min_length","length_equals"]);function yx(e,t,n,r){let o=n._zod.def.checks;if(!o||o.length===0)return r;let i=r;for(let s of o){let a=s._zod.def;if(a.when&&!kx.has(a.check))throw new Q('check with a custom "when" condition');switch(a.check){case"greater_than":bx(e,t,a,i);break;case"less_than":vx(e,t,a,i);break;case"multiple_of":wx(e,t,a,i);break;case"number_format":P0(e,a,i);break;case"min_length":{let c=nr(a.minimum,"min_length"),u=np(e,t,i,`${i}.length >= ${c} && ${i}.length < ${a.minimum*2}`);e.write(`if (${u} < ${c}) return INVALID;`);break}case"max_length":{let c=nr(a.maximum,"max_length"),u=np(e,t,i,`${i}.length > ${c}`);e.write(`if (${u} > ${c}) return INVALID;`);break}case"length_equals":{let c=nr(a.length,"length_equals"),u=np(e,t,i,`${i}.length >= ${c} && ${i}.length <= ${a.length*2}`);e.write(`if (${u} !== ${c}) return INVALID;`);break}case"min_size":e.write(`if (${i}.size < ${nr(a.minimum,"min_size")}) return INVALID;`);break;case"max_size":e.write(`if (${i}.size > ${nr(a.maximum,"max_size")}) return INVALID;`);break;case"size_equals":e.write(`if (${i}.size !== ${nr(a.size,"size_equals")}) return INVALID;`);break;case"string_format":i=L0(e,t,a,i);break;case"custom":i=Lx(e,t,s,i);break;case"bigint_format":xx(e,a,i);break;case"mime_type":Ix(e,t,a,i);break;case"property":_x(e,t,a,i);break;case"properties":Sx(e,t,a,i);break;case"overwrite":{let c=V(t);Px(e,t,s,i,c),i=c;break}default:throw new Q(`check type ${a.check}`)}}return i}function np(e,t,n,r){let o=U(t,Xn),i=V(t);return e.write(`const ${i} = typeof ${n} === "string" && ${r} ? ${o}(${n}) : ${n}.length;`),i}function nr(e,t){if(typeof e!="number"||!Number.isFinite(e))throw new Q(`${t} bound of type ${typeof e}`);return`${e}`}function _0(e,t){if(typeof t=="bigint")return`${t}n`;if(typeof t=="number"){if(Number.isNaN(t))throw new Q("comparison check with NaN bound");return`${t}`}if(t instanceof Date){if(Number.isNaN(t.getTime()))throw new Q("comparison check with Invalid Date bound");return U(e,t)}throw new Q(`comparison check bound of type ${typeof t}`)}function bx(e,t,n,r){let o=n.inclusive?"<":"<=";e.write(`if (${r} ${o} ${_0(t,n.value)}) return INVALID;`)}function vx(e,t,n,r){let o=n.inclusive?">":">=";e.write(`if (${r} ${o} ${_0(t,n.value)}) return INVALID;`)}function wx(e,t,n,r){if(typeof n.value=="bigint"){if(n.value===BigInt(0))throw new Q("multiple_of check with a zero divisor");e.write(`if (${r} % ${n.value}n !== 0n) return INVALID;`)}else{let o=U(t,Bo);e.write(`if (${o}(${r}, ${nr(n.value,"multiple_of")}) !== 0) return INVALID;`)}}function P0(e,t,n){let r=t.format;switch(r){case"safeint":e.write(`if (!Number.isSafeInteger(${n})) return INVALID;`);break;case"int32":e.write(`if (!Number.isInteger(${n}) || ${n} < -2147483648 || ${n} > 2147483647) return INVALID;`);break;case"uint32":e.write(`if (!Number.isInteger(${n}) || ${n} < 0 || ${n} > 4294967295) return INVALID;`);break;case"float32":e.write(`if (!Number.isFinite(${n}) || ${n} < -3.4028234663852886e38 || ${n} > 3.4028234663852886e38) return INVALID;`);break;case"float64":e.write(`if (!Number.isFinite(${n})) return INVALID;`);break;default:throw new Q(`number format ${r}`)}}function xx(e,t,n){let r=t.format;if(r)switch(r){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break;default:throw new Q(`bigint format ${r}`)}}function Ix(e,t,n,r){let o=n.mime;if(o&&o.length>0){let i=U(t,new Set(o));e.write(`if (!${i}.has(${r}.type)) return INVALID;`)}}function Sx(e,t,n,r){if(n.when)throw new Q('check with a custom "when" condition');e.write(`if (${r} == null) return INVALID;`);let o=n.shape;for(let i of Reflect.ownKeys(o)){let s=typeof i=="symbol"?U(t,i):qe(i),a=V(t);e.write(`const ${a} = ${r}[${s}];`),Ve(e,t,o[i],a,!1)}}function _x(e,t,n,r){let o=`${r}[${JSON.stringify(n.property)}]`;Ce(e,t,n.schema,o)}function Px(e,t,n,r,o){let i=n._zod.def.tx;if(!i)throw new Q("overwrite check without a transform function");if(ir(i))throw new Dt("z.compile: async overwrite transforms are not supported");let s=U(t,i);e.write(`const ${o} = ${s}(${r});`)}function rp(){throw new ut}function sp(e){this.issues.push(e)}function Lx(e,t,n,r){let o=n._zod.def;if(o.fn){if(ir(o.fn))throw new Dt("z.compile: async .refine() predicates are not supported");let i=or(t,o.fn),s=U(t,rp),a=V(t);return e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`),r}if(n._zod.check){if(ir(n._zod.check))throw new Dt("z.compile: async .superRefine() / check functions are not supported");let i=n._zod.check,a=or(t,u=>{let l={value:u,issues:[],addIssue:sp};return i(l)instanceof Promise&&rp(),l.issues.length===0?l.value:Je}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}throw new Q("custom check without a predicate or check function")}var Mx=new Set(["cidrv4","cuid","cuid2","date","datetime","duration","e164","email","emoji","ends_with","guid","includes","ipv4","ksuid","lowercase","mac","nanoid","regex","starts_with","time","ulid","uppercase","uuid","xid"]);function L0(e,t,n,r,o=!0){let i=n.format;if(i==="base64"){let u=U(t,li);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="base64url"){let u=U(t,Ma);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="jwt"){let u=U(t,$a),l=U(t,n.alg??null);return e.write(`if (!${u}(${r}, ${l})) return INVALID;`),r}if(i==="ipv6"){let u=U(t,ui);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="cidrv6"){let u=U(t,Pa);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="credit_card"){let u=U(t,Ra);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(i==="iban"){let u=U(t,Ta);return e.write(`if (!${u}(${r})) return INVALID;`),r}let s=n;if(i==="url"||i==="httpurl"||s.normalize||s.hostname!==void 0||s.protocol!==void 0){let u=U(t,Ia),l=U(t,n),d=V(t),m=V(t);if(e.write(`const ${d} = ${r}.trim();`),e.write(`const ${m} = ${u}(${d}, ${l});`),e.write(`if (typeof ${m} === "number") return INVALID;`),s.hostname!==void 0){let g=U(t,Sa);e.write(`if (!${g}(${m}, ${l}.hostname)) return INVALID;`)}if(s.protocol!==void 0){let g=U(t,_a);e.write(`if (!${g}(${m}, ${l}.protocol)) return INVALID;`)}if(!o)return null;let p=V(t),h=s.normalize?`${m}.href`:`${U(t,ci)}(${d})`;return e.write(`const ${p} = ${h};`),p}let a=n.fn;if(a){if(ir(a))throw new Q(`async string format ${i}`);let u=U(t,a);return e.write(`if (!${u}(${r})) return INVALID;`),r}if(Mx.has(i)&&n.pattern){let u=U(t,n.pattern);return e.write(`${u}.lastIndex = 0;`),e.write(`if (!${u}.test(${r})) return INVALID;`),r}let c=n.format;switch(c){case"regex":throw new Q("regex format without a pattern");case"lowercase":e.write(`if (${r} !== ${r}.toLowerCase()) return INVALID;`);break;case"uppercase":e.write(`if (${r} !== ${r}.toUpperCase()) return INVALID;`);break;case"includes":e.write(`if (!${r}.includes(${qe(n.includes)})) return INVALID;`);break;case"starts_with":{let u=n.prefix;e.write(`if (${r}.slice(0, ${u.length}) !== ${qe(u)}) return INVALID;`);break}case"ends_with":{let u=n.suffix;e.write(`if (${r}.slice(-${u.length}) !== ${qe(u)}) return INVALID;`);break}default:throw new Q(`string format ${c}`)}return r}function Ce(e,t,n,r,o=!0){let i=n._zod.def,s=i.type;if(i.coerce)throw new Q(`coercion (z.coerce.${s}())`);let a=o||!!i.checks?.length,c;switch(s){case"string":c=Rx(e,t,n,r,a);break;case"number":c=Tx(e,n,r);break;case"boolean":c=$x(e,r);break;case"bigint":c=Ax(e,n,r);break;case"symbol":c=Dx(e,r);break;case"undefined":c=Ex(e,r);break;case"null":c=Nx(e,r);break;case"any":case"unknown":c=r;break;case"never":e.write("return INVALID;"),c=r;break;case"void":c=Ox(e,r);break;case"nan":c=zx(e,r);break;case"date":c=jx(e,r);break;case"object":c=Zx(e,t,n,r,a);break;case"optional":c=Wx(e,t,n,r,a);break;case"nullable":c=Hx(e,t,n,r,a);break;case"array":c=Bx(e,t,n,r,a);break;case"literal":c=Ux(e,t,n,r);break;case"enum":c=Gx(e,t,n,r);break;case"readonly":{let u=x0(e,t,n,r),l=V(t);e.write(`const ${l} = Object.freeze(${u});`),c=l;break}case"success":x0(e,t,n,r),c="true";break;case"default":case"prefault":c=Kx(e,t,n,r);break;case"nonoptional":c=qx(e,t,n,r);break;case"tuple":c=Yx(e,t,n,r);break;case"union":c=Jx(e,t,n,r);break;case"intersection":c=eI(e,t,n,r);break;case"record":c=tI(e,t,n,r);break;case"map":c=rI(e,t,n,r);break;case"set":c=oI(e,t,n,r);break;case"file":c=iI(e,r);break;case"template_literal":c=sI(e,t,n,r);break;case"lazy":c=aI(e,t,n,r);break;case"pipe":c=cI(e,t,n,r);break;case"custom":c=uI(e,t,n,r);break;case"transform":c=pI(e,t,n,r);break;case"catch":c=dI(e,t,n,r);break;default:throw new Q(`schema type ${s}`)}return c===null?null:yx(e,t,n,c)}function Rx(e,t,n,r,o=!0){e.write(`if (typeof ${r} !== "string") return INVALID;`);let i=n._zod.def;return i.format===void 0?r:L0(e,t,i,r,o)}function Tx(e,t,n){e.write(`if (typeof ${n} !== "number" || !Number.isFinite(${n})) return INVALID;`);let r=t._zod.def;return r.check==="number_format"&&r.format&&P0(e,{format:r.format},n),n}function $x(e,t){return e.write(`if (typeof ${t} !== "boolean") return INVALID;`),t}function Ax(e,t,n){e.write(`if (typeof ${n} !== "bigint") return INVALID;`);let r=t._zod.def;if(r.format)switch(r.format){case"int64":e.write(`if (${n} < -9223372036854775808n || ${n} > 9223372036854775807n) return INVALID;`);break;case"uint64":e.write(`if (${n} < 0n || ${n} > 18446744073709551615n) return INVALID;`);break}return n}function Dx(e,t){return e.write(`if (typeof ${t} !== "symbol") return INVALID;`),t}function Ex(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function Nx(e,t){return e.write(`if (${t} !== null) return INVALID;`),t}function Ox(e,t){return e.write(`if (${t} !== undefined) return INVALID;`),t}function zx(e,t){return e.write(`if (typeof ${t} !== "number" || !Number.isNaN(${t})) return INVALID;`),t}function jx(e,t){return e.write(`if (!(${t} instanceof Date) || Number.isNaN(${t}.getTime())) return INVALID;`),t}function Zx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (typeof ${r} !== "object" || ${r} === null || Array.isArray(${r})) return INVALID;`);let s=i.shape,a=Object.keys(s),c=Object.getOwnPropertySymbols(s),u=c.length?[...a,...c]:a,l=y=>typeof y=="symbol"?U(t,y):qe(y),d=y=>typeof y=="symbol"?`[${l(y)}]`:qe(y),m=s;if(a.includes("__proto__"))throw new Q('object shape key "__proto__"');let p=new Map;for(let y of u){let I=m[y],R=l(y),M=V(t);if(e.write(`const ${M} = ${r}[${R}];`),I._zod.optin!==void 0){let T=V(t);e.write(`let ${T} = (() => {`),e.indented(N=>{let B=Ve(N,t,I,M);N.write(`return ${B};`)}),e.write("})();"),I._zod.optout==="optional"?(e.write(`if (${T} === INVALID) {`),e.indented(N=>{N.write(`if (${R} in ${r}) return INVALID;`),N.write(`${T} = undefined;`)}),e.write("}")):e.write(`if (${T} === INVALID) return INVALID;`),p.set(y,T)}else{Fx(I)&&e.write(`if (!(${R} in ${r})) return INVALID;`);let T=Ve(e,t,I,M,o);T!==null&&p.set(y,T)}}let h=i.catchall,g="none";if(h){let y=h._zod.def.type;if(y==="never"){let I=a.map(R=>`k !== ${qe(R)}`).join(" && ")||"true";e.write(`for (const k in ${r}) {`),e.indented(R=>{R.write(`if (${I}) return INVALID;`)}),e.write("}")}else(y==="unknown"||y==="any")&&!h._zod.def.checks?.length?g="passthrough":g="schema"}let C=V(t),x=u.some(y=>w0(m[y])||op(m[y]));if(!o){if(g==="schema"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(I=>{I.write('if (k === "__proto__") continue;'),y&&I.write(`if (${y}.has(k)) continue;`);let R=V(t);I.write(`const ${R} = ${r}[k];`),Ve(I,t,h,R,!1)}),e.write("}")}return null}if(x){e.write(`const ${C} = {};`);for(let y of u){let I=l(y),R=p.get(y);op(m[y])?e.write(`if (${I} in ${r}) ${C}[${I}] = ${R};`):w0(m[y])?e.write(`if (${R} !== undefined || ${I} in ${r}) ${C}[${I}] = ${R};`):e.write(`${C}[${I}] = ${R};`)}}else{let y=u.map(I=>`${d(I)}: ${p.get(I)}`).join(", ");e.write(`const ${C} = { ${y} };`)}if(g!=="none"){let y=a.length>0?U(t,new Set(a)):null;e.write(`for (const k in ${r}) {`),e.indented(I=>{if(I.write('if (k === "__proto__") continue;'),y&&I.write(`if (${y}.has(k)) continue;`),g==="passthrough")I.write(`${C}[k] = ${r}[k];`);else{let R=V(t);I.write(`const ${R} = ${r}[k];`);let M=Ve(I,t,h,R);I.write(`${C}[k] = ${M};`)}}),e.write("}")}return C}function Wx(e,t,n,r,o=!0){let i=n._zod.def;if(Vx(n))return Ce(e,t,i.innerType,r,o);if(i.innerType._zod.optin==="defaulted"){let a=V(t),c=V(t);return e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(u=>{u.write(`const ${c} = (() => {`),u.indented(l=>{let d=Ce(l,t,i.innerType,r);l.write(`return ${d};`)}),u.write("})();"),u.write(`if (${c} !== INVALID) ${a} = ${c};`)}),e.write("} else {"),e.indented(u=>{let l=Ce(u,t,i.innerType,r);u.write(`${a} = ${l};`)}),e.write("}"),a}let s=o?V(t):null;return s&&e.write(`let ${s};`),e.write(`if (${r} !== undefined) {`),e.indented(a=>{let c=Ce(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Vx(e){return e._zod.traits?.has("$ZodExactOptional")===!0}function Fx(e){return e._zod.optin===void 0&&rr(e)}function rr(e){if(e._zod.def.coerce)return!0;let t=e._zod.def;switch(t.type){case"any":case"unknown":case"undefined":case"void":case"default":case"prefault":case"transform":case"custom":case"lazy":return!0;case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"never":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":return!1;case"nonoptional":return t.innerType?rr(t.innerType):!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":case"nullable":case"readonly":case"success":return t.innerType?rr(t.innerType):!0;case"catch":return!0;case"union":return t.options?t.options.some(rr):!0;case"intersection":return!t.left||!t.right?!0:rr(t.left)&&rr(t.right);case"pipe":return t.in?rr(t.in):!0;default:return!0}}function op(e){return e._zod.optin==="optional"&&e._zod.optout==="optional"}function w0(e){return(e._zod.optin!=="defaulted"||e._zod.optout==="optional")&&Ur(e)}function Ur(e){let t=e._zod.def;switch(t.type){case"string":case"number":case"boolean":case"bigint":case"symbol":case"null":case"nan":case"date":case"object":case"array":case"tuple":case"record":case"map":case"set":case"file":case"template_literal":case"never":case"success":return!1;case"literal":return!!t.values?.includes(void 0);case"enum":return!!e._zod.values?.has(void 0);case"optional":return!0;case"nullable":case"readonly":case"nonoptional":return t.innerType?Ur(t.innerType):!0;case"union":return t.options?t.options.some(Ur):!0;case"intersection":return!t.left||!t.right||Ur(t.left)||Ur(t.right);case"pipe":return t.out?Ur(t.out):!0;default:return!0}}function Hx(e,t,n,r,o=!0){let i=n._zod.def,s=o?V(t):null;return s&&e.write(`let ${s} = null;`),e.write(`if (${r} !== null) {`),e.indented(a=>{let c=Ce(a,t,i.innerType,r,o);s&&c!==null&&a.write(`${s} = ${c};`)}),e.write("}"),s}function Bx(e,t,n,r,o=!0){let i=n._zod.def;e.write(`if (!Array.isArray(${r})) return INVALID;`);let s=o?V(t):null,a=V(t),c=V(t);return s&&e.write(`const ${s} = new Array(${r}.length);`),e.write(`for (let ${a} = 0; ${a} < ${r}.length; ${a}++) {`),e.indented(u=>{u.write(`const ${c} = ${r}[${a}];`);let l=Ve(u,t,i.element,c,o);s&&l!==null&&u.write(`${s}[${a}] = ${l};`)}),e.write("}"),s}function Ux(e,t,n,r){let i=n._zod.def.values;if(i.length!==1){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}let s=i[0];if(typeof s=="number"&&Number.isNaN(s)){let a=U(t,new Set(i));return e.write(`if (!${a}.has(${r})) return INVALID;`),r}if(typeof s=="string")e.write(`if (${r} !== ${qe(s)}) return INVALID;`);else if(typeof s=="number"||typeof s=="boolean")e.write(`if (${r} !== ${s}) return INVALID;`);else if(s===null)e.write(`if (${r} !== null) return INVALID;`);else if(s===void 0)e.write(`if (${r} !== undefined) return INVALID;`);else if(typeof s=="bigint")e.write(`if (${r} !== ${s}n) return INVALID;`);else throw new Q(`literal type ${typeof s}`);return r}function Gx(e,t,n,r){let o=n._zod.values;if(!o)throw new Q("enum schema without enumerated values");let i=U(t,o);return e.write(`if (!${i}.has(${r})) return INVALID;`),r}function x0(e,t,n,r){let o=n._zod.def;return Ce(e,t,o.innerType,r)}function Kx(e,t,n,r){let o=n._zod.def,s=Object.getOwnPropertyDescriptor(n._zod.def,"defaultValue")?()=>n._zod.def.defaultValue:void 0;if(n._zod.def.type==="prefault"){if(!s)return Ce(e,t,o.innerType,r);let c=U(t,s),u=V(t);return e.write(`let ${u} = ${r};`),e.write(`if (${r} === undefined) ${u} = ${c}();`),Ce(e,t,o.innerType,u)}let a=V(t);if(s){let c=U(t,s),u=U(t,Uo);e.write(`let ${a};`),e.write(`if (${r} === undefined) {`),e.indented(l=>{l.write(`${a} = ${u}(${c}());`)}),e.write("} else {"),e.indented(l=>{let d=Ce(l,t,o.innerType,r);l.write(`${a} = ${d} === undefined ? ${u}(${c}()) : ${d};`)}),e.write("}")}else e.write(`let ${a};`),e.write(`if (${r} !== undefined) {`),e.indented(c=>{let u=Ce(c,t,o.innerType,r);c.write(`${a} = ${u};`)}),e.write("}");return a}function qx(e,t,n,r){let o=n._zod.def,i=Ce(e,t,o.innerType,r),s=V(t);return e.write(`const ${s} = ${i};`),e.write(`if (${s} === undefined) return INVALID;`),s}function Yx(e,t,n,r){let o=n._zod.def,i=o.items,s=o.rest;e.write(`if (!Array.isArray(${r})) return INVALID;`);let a=I0(i,"optin"),c=I0(i,"optout");s?e.write(`if (${r}.length < ${a}) return INVALID;`):e.write(`if (${r}.length < ${a} || ${r}.length > ${i.length}) return INVALID;`);let u=V(t);e.write(`const ${u} = [];`);for(let l=0;l<i.length;l++){let d=i[l];if(l>=c)e.write(`if (${u}.length === ${l}) {`),e.indented(m=>{m.write(`if (${l} < ${r}.length) {`),m.indented(p=>{let h=V(t);p.write(`const ${h} = ${r}[${l}];`);let g=Ve(p,t,d,h);p.write(`${u}[${l}] = ${g};`)}),m.write("} else {"),m.indented(p=>{if(op(d)){p.write(`${u}.length = ${l};`);return}let h=V(t),g=V(t);p.write(`const ${h} = undefined;`),p.write(`const ${g} = (() => {`),p.indented(C=>{let x=Ve(C,t,d,h);C.write(`return ${x};`)}),p.write("})();"),p.write(`if (${g} === INVALID || ${g} === undefined) ${u}.length = ${l};`),p.write(`else ${u}[${l}] = ${g};`)}),m.write("}")}),e.write("}");else{let m=V(t);e.write(`const ${m} = ${r}[${l}];`);let p=Ve(e,t,d,m);e.write(`${u}[${l}] = ${p};`)}}if(s){let l=V(t),d=V(t);e.write(`for (let ${l} = ${i.length}; ${l} < ${r}.length; ${l}++) {`),e.indented(m=>{m.write(`const ${d} = ${r}[${l}];`);let p=Ve(m,t,s,d);m.write(`${u}[${l}] = ${p};`)}),e.write("}")}return u}function I0(e,t){for(let n=e.length-1;n>=0;n--)if(!(t==="optin"?e[n]._zod.optin!==void 0:e[n]._zod.optout==="optional"))return n+1;return 0}function Jx(e,t,n,r){let o=n._zod.def,i=o.options;if(o.discriminator)return Xx(e,t,o,r);if(o.inclusive===!1)throw new Q("exclusive unions (z.xor)");if(i.length===0)return e.write("return INVALID;"),r;if(i.length===1)return Ce(e,t,i[0],r);if(i.every(c=>c._zod.def.type==="literal"&&!c._zod.def.checks?.length)){let c=new Set(i.flatMap(l=>l._zod.def.values)),u=U(t,c);return e.write(`if (!${u}.has(${r})) return INVALID;`),r}let a=V(t);e.write(`let ${a};`);for(let c=0;c<i.length;c++){let u=i[c];c===0?e.write(`${a} = (() => {`):e.write(`if (${a} === INVALID) ${a} = (() => {`),e.indented(l=>{let d=Ce(l,t,u,r);l.write(`return ${d};`)}),e.write("})();")}return e.write(`if (${a} === INVALID) return INVALID;`),a}function Xx(e,t,n,r){if(n.unionFallback)throw new Q("discriminated union with unionFallback");if(n.options.length===0)return e.write("return INVALID;"),r;let o=V(t),i=V(t);e.write(`const ${o} = ${r}?.[${qe(n.discriminator)}];`),e.write(`let ${i};`);let s=!0,a=new Set;for(let c of n.options){let u=c._zod.propValues?.[n.discriminator];if(!u||u.size===0)throw new Q("discriminated union option without static discriminator values");for(let m of u){if(a.has(m))throw new Q(`duplicate discriminator value ${String(m)}`);a.add(m)}let l=Array.from(u,m=>Qx(t,o,m)),d=s?"if":"else if";e.write(`${d} (${l.join(" || ")}) {`),e.indented(m=>{let p=Ce(m,t,c,r);m.write(`${i} = ${p};`)}),e.write("}"),s=!1}return e.write("else { return INVALID; }"),i}function Qx(e,t,n){if(typeof n=="string")return`${t} === ${qe(n)}`;if(typeof n=="number")return Number.isNaN(n)?`Number.isNaN(${t})`:`${t} === ${n}`;if(typeof n=="boolean")return`${t} === ${n}`;if(n===null)return`${t} === null`;if(n===void 0)return`${t} === undefined`;if(typeof n=="bigint")return`${t} === ${n}n`;if(typeof n=="symbol"){let r=U(e,n);return`${t} === ${r}`}throw new Q(`literal discriminator value ${String(n)}`)}function eI(e,t,n,r){let o=n._zod.def;t.definite=!1;let i=Ve(e,t,o.left,r),s=Ve(e,t,o.right,r),a=U(t,Hr),c=V(t);return e.write(`const ${c} = ${a}(${i}, ${s});`),e.write(`if (!${c}.valid) return INVALID;`),`${c}.data`}function tI(e,t,n,r){let o=n._zod.def,i=U(t,vt);e.write(`if (!${i}(${r})) return INVALID;`);let s=V(t),a=V(t),c=V(t);e.write(`const ${s} = {};`);let u=o,l=u.partial?void 0:o.keyType._zod.values;if(l){let p=[];for(let g of l){if(!(typeof g=="string"||typeof g=="number"||typeof g=="symbol"))throw new Q(`record key value ${String(g)}`);let C=typeof g=="number"?g.toString():g;if(C==="__proto__")throw new Q('record key "__proto__"');p.push(C);let x=U(t,g),y=Ce(e,t,o.keyType,x),I=V(t);e.write(`const ${I} = ${r}[${nI(t,C)}];`);let R=Ve(e,t,o.valueType,I);e.write(`${s}[${y}] = ${R};`)}let h=U(t,new Set(p));return e.write(`for (const ${a} in ${r}) {`),e.indented(g=>{g.write(`if (${h}.has(${a})) continue;`),u.mode==="loose"?g.write(`if (${a} !== "__proto__") ${s}[${a}] = ${r}[${a}];`):g.write("return INVALID;")}),e.write("}"),s}let d=o.keyType._zod.def;if(!(d.type==="string"&&d.format===void 0&&!d.coerce&&(d.checks?.length??0)===0)){let p=o.mode==="loose",h=Ka(o.keyType);h.definite===!1&&(t.definite=!1);let g=U(t,h),C=U(t,an),x=V(t);return S0(e,t,r,a,y=>{y.write(`let ${x} = ${g}(${a});`),y.write(`if (${x} === INVALID && typeof ${a} === "string" && ${C}.test(${a})) ${x} = ${g}(Number(${a}));`),p?y.write(`if (${x} === INVALID) { ${s}[${a}] = ${r}[${a}]; continue; }`):y.write(`if (${x} === INVALID) return INVALID;`),y.write(`if (${x} === "__proto__") continue;`);let I=V(t);y.write(`const ${I} = ${r}[${a}];`);let R=Ve(y,t,o.valueType,I);y.write(`${s}[${x}] = ${R};`)}),s}return S0(e,t,r,a,p=>{p.write(`const ${c} = ${r}[${a}];`);let h=Ve(p,t,o.valueType,c);p.write(`${s}[${a}] = ${h};`)},"return INVALID;"),s}function S0(e,t,n,r,o,i){let s=U(t,Object.prototype.propertyIsEnumerable),a=V(t),c=V(t),u=V(t);e.write(`const ${a} = Object.getOwnPropertySymbols(${n});`),e.write(`const ${c} = Object.getOwnPropertyNames(${n});`),e.write(`for (let ${u} = 0; ${u} < ${c}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${c}[${u}];`),l.write(`if (${r} === "__proto__" || !${s}.call(${n}, ${r})) continue;`),o(l)}),e.write("}"),e.write(`for (let ${u} = 0; ${u} < ${a}.length; ${u}++) {`),e.indented(l=>{l.write(`const ${r} = ${a}[${u}];`),l.write(`if (!${s}.call(${n}, ${r})) continue;`),i?l.write(i):o(l)}),e.write("}")}function nI(e,t){return typeof t=="string"?qe(t):U(e,t)}function rI(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Map)) return INVALID;`);let i=V(t),s=V(t),a=V(t);return e.write(`const ${i} = new Map();`),e.write(`for (const [${s}, ${a}] of ${r}) {`),e.indented(c=>{let u=Ce(c,t,o.keyType,s),l=Ce(c,t,o.valueType,a);c.write(`${i}.set(${u}, ${l});`)}),e.write("}"),i}function oI(e,t,n,r){let o=n._zod.def;e.write(`if (!(${r} instanceof Set)) return INVALID;`);let i=V(t),s=V(t);return e.write(`const ${i} = new Set();`),e.write(`for (const ${s} of ${r}) {`),e.indented(a=>{let c=Ce(a,t,o.valueType,s);a.write(`${i}.add(${c});`)}),e.write("}"),i}function iI(e,t){return e.write(`if (!(${t} instanceof File)) return INVALID;`),t}function sI(e,t,n,r){e.write(`if (typeof ${r} !== "string") return INVALID;`);let o=n._zod.pattern;if(o){let i=U(t,o);e.write(`${i}.lastIndex = 0;`),e.write(`if (!${i}.test(${r})) return INVALID;`)}return r}function aI(e,t,n,r){let o=n._zod.def,i=or(t,o.getter),s=U(t,{parser:null});e.write(`if (!${s}.parser) {`),e.indented(c=>{c.write(`const inner = ${i}();`),c.write(`${s}.parser = function(input) {`),c.indented(u=>{u.write("const result = inner._zod.run({ value: input, issues: [] }, {});"),u.write("return result.issues.length === 0 ? result.value : INVALID;")}),c.write("};")}),e.write("}");let a=V(t);return e.write(`const ${a} = ${s}.parser(${r});`),e.write(`if (${a} === INVALID) return INVALID;`),a}function cI(e,t,n,r){let o=n._zod.def,i=Ce(e,t,o.in,r);if(o.transform){if(ir(o.transform))throw new Dt("z.compile: async transforms in pipes are not supported");let s=o.transform,c=or(t,l=>{let d={value:l,issues:[],addIssue:sp},m=s(l,d);return m instanceof Promise?Je:d.issues.length===0?m:Je}),u=V(t);return e.write(`const ${u} = ${c}(${i});`),e.write(`if (${u} === INVALID) return INVALID;`),Ce(e,t,o.out,u)}else return Ce(e,t,o.out,i)}function ir(e){return typeof e=="function"&&(e.constructor.name==="AsyncFunction"||e[Symbol.toStringTag]==="AsyncFunction")}function uI(e,t,n,r){let o=n._zod.def;if(o.fn){if(ir(o.fn))throw new Dt("z.compile: async custom predicates are not supported");let i=or(t,o.fn),s=U(t,rp),a=V(t);e.write(`const ${a} = ${i}(${r});`),e.write(`if (${a} instanceof Promise) ${s}();`),e.write(`if (!${a}) return INVALID;`)}else throw new Q("custom schema without a predicate function");return r}function lI(e,t,n){let r=e._zod.run({value:n,issues:[]},{});if(r&&typeof r.then=="function")return Je;let o=r;return o.issues.length===0?o.value:t()}function dI(e,t,n,r){let o=n._zod.def;if(!o.catchValue[ta])throw new Q("catch with a callback (only a constant catch value compiles)",!1);let i=V(t);e.write(`let ${i} = (() => {`),e.indented(u=>{let l=Ve(u,t,o.innerType,r);u.write(`return ${l};`)}),e.write("})();");let s=U(t,o.innerType),a=or(t,o.catchValue),c=U(t,lI);return e.write(`if (${i} === INVALID) {`),e.indented(u=>{u.write(`${i} = ${c}(${s}, ${a}, ${r});`),u.write(`if (${i} === INVALID) return INVALID;`)}),e.write("}"),i}function pI(e,t,n,r){let o=n._zod.def;if(o.transform){if(ir(o.transform))throw new Dt("z.compile: async transforms are not supported");let i=o.transform,a=or(t,u=>{let l={value:u,issues:[],addIssue:sp},d=i(u,l);return d instanceof Promise?Je:l.issues.length===0?d:Je}),c=V(t);return e.write(`const ${c} = ${a}(${r});`),e.write(`if (${c} === INVALID) return INVALID;`),c}return r}function qa(e){return e.checks&&(e.checks=[...e.checks]),e}function ap(e,t){return new e(qa({type:"string",...L(t)}))}function cp(e,t){return new e(qa({type:"string",coerce:!0,...L(t)}))}function Ya(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...L(t)})}function Ja(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...L(t)})}function Xa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...L(t)})}function Qa(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...L(t)})}function ec(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...L(t)})}function tc(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...L(t)})}function bi(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...L(t)})}function nc(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...L(t)})}function rc(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...L(t)})}function oc(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...L(t)})}function ic(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...L(t)})}function sc(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...L(t)})}function ac(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...L(t)})}function cc(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...L(t)})}function uc(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...L(t)})}function lc(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...L(t)})}function up(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...L(t)})}function dc(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...L(t)})}function pc(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...L(t)})}function fc(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...L(t)})}function mc(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...L(t)})}function hc(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...L(t)})}function lp(e,t){return new e({type:"string",format:"credit_card",check:"string_format",abort:!1,...L(t)})}function dp(e,t){return new e({type:"string",format:"iban",check:"string_format",abort:!1,...L(t)})}function gc(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...L(t)})}var pp={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function vi(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...L(t)})}function wi(e,t){return new e({type:"string",format:"date",check:"string_format",...L(t)})}function xi(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...L(t)})}function Ii(e,t){return new e({type:"string",format:"duration",check:"string_format",...L(t)})}function fp(e,t){return new e(qa({type:"number",checks:[],...L(t)}))}function mp(e,t){return new e(qa({type:"number",coerce:!0,checks:[],...L(t)}))}function hp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...L(t)})}function gp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...L(t)})}function Cp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...L(t)})}function kp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...L(t)})}function yp(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...L(t)})}function bp(e,t){return new e({type:"boolean",...L(t)})}function vp(e,t){return new e({type:"boolean",coerce:!0,...L(t)})}function wp(e,t){return new e({type:"bigint",...L(t)})}function xp(e,t){return new e({type:"bigint",coerce:!0,...L(t)})}function Ip(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...L(t)})}function Sp(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...L(t)})}function _p(e,t){return new e({type:"symbol",...L(t)})}function Pp(e,t){return new e({type:"undefined",...L(t)})}function Lp(e,t){return new e({type:"null",...L(t)})}function Mp(e){return new e({type:"any"})}function Rp(e){return new e({type:"unknown"})}function Tp(e,t){return new e({type:"never",...L(t)})}function $p(e,t){return new e({type:"void",...L(t)})}function Ap(e,t){return new e({type:"date",...L(t)})}function Dp(e,t){return new e({type:"date",coerce:!0,...L(t)})}function Ep(e,t){return new e({type:"nan",...L(t)})}function Bt(e,t){return new Ca({check:"less_than",...L(t),value:e,inclusive:!1})}function mt(e,t){return new Ca({check:"less_than",...L(t),value:e,inclusive:!0})}function Ut(e,t){return new ka({check:"greater_than",...L(t),value:e,inclusive:!1})}function ht(e,t){return new ka({check:"greater_than",...L(t),value:e,inclusive:!0})}function Cc(e){return Ut(0,e)}function kc(e){return Bt(0,e)}function yc(e){return mt(0,e)}function bc(e){return ht(0,e)}function Pn(e,t){return new yd({check:"multiple_of",...L(t),value:e})}function Ln(e,t){return new wd({check:"max_size",...L(t),maximum:e})}function Gt(e,t){return new xd({check:"min_size",...L(t),minimum:e})}function sr(e,t){return new Id({check:"size_equals",...L(t),size:e})}function ar(e,t){return new Sd({check:"max_length",...L(t),maximum:e})}function cn(e,t){return new _d({check:"min_length",...L(t),minimum:e})}function cr(e,t){return new Pd({check:"length_equals",...L(t),length:e})}function Gr(e,t){return new Ld({check:"string_format",format:"regex",...L(t),pattern:e})}function Kr(e){return new Md({check:"string_format",format:"lowercase",...L(e)})}function qr(e){return new Rd({check:"string_format",format:"uppercase",...L(e)})}function Yr(e,t){return new Td({check:"string_format",format:"includes",...L(t),includes:e})}function Jr(e,t){return new $d({check:"string_format",format:"starts_with",...L(t),prefix:e})}function Xr(e,t){return new Ad({check:"string_format",format:"ends_with",...L(t),suffix:e})}function vc(e,t,n){return new Dd({check:"property",property:e,schema:t,...L(n)})}function Qr(e,t){return new Ed({check:"properties",shape:e,...L(t)})}function eo(e,t){return new Nd({check:"mime_type",mime:e,...L(t)})}function Et(e){return new Od({check:"overwrite",tx:e})}function to(e){return Et(t=>t.normalize(e))}function no(){return Et(e=>e.trim())}function ro(){return Et(e=>e.toLowerCase())}function oo(){return Et(e=>e.toUpperCase())}function io(){return Et(e=>bl(e))}function Np(e,t,n){return new e({type:"array",element:t,...L(n)})}function fI(e,t,n){return new e({type:"union",options:t,...L(n)})}function mI(e,t,n){return new e({type:"union",options:t,inclusive:!1,...L(n)})}function hI(e,t,n,r){return new e({type:"union",options:n,discriminator:t,...L(r)})}function gI(e,t,n){return new e({type:"intersection",left:t,right:n})}function CI(e,t,n,r){let o=n instanceof K,i=o?r:n,s=o?n:null;return new e({type:"tuple",items:t,rest:s,...L(i)})}function kI(e,t,n,r){return new e({type:"record",keyType:t,valueType:n,...L(r)})}function yI(e,t,n,r){return new e({type:"map",keyType:t,valueType:n,...L(r)})}function bI(e,t,n){return new e({type:"set",valueType:t,...L(n)})}function vI(e,t,n){let r=Array.isArray(t)?Object.fromEntries(t.map(o=>[o,o])):t;return new e({type:"enum",entries:r,...L(n)})}function wI(e,t,n){return new e({type:"enum",entries:t,...L(n)})}function xI(e,t,n){return new e({type:"literal",values:Array.isArray(t)?t:[t],...L(n)})}function Op(e,t){return new e({type:"file",...L(t)})}function II(e,t){return new e({type:"transform",transform:t})}function SI(e,t){return new e({type:"optional",innerType:t})}function _I(e,t){return new e({type:"nullable",innerType:t})}function PI(e,t,n){return new e({type:"default",innerType:t,get defaultValue(){return typeof n=="function"?n():Uo(n)}})}function LI(e,t,n){return new e({type:"nonoptional",innerType:t,...L(n)})}function MI(e,t){return new e({type:"success",innerType:t})}function RI(e,t,n){return new e({type:"catch",innerType:t,catchValue:typeof n=="function"?n:Pl(n)})}function TI(e,t,n){return new e({type:"pipe",in:t,out:n})}function $I(e,t){return new e({type:"readonly",innerType:t})}function AI(e,t,n){return new e({type:"template_literal",parts:t,...L(n)})}function DI(e,t){return new e({type:"lazy",getter:t})}function EI(e,t){return new e({type:"promise",innerType:t})}function zp(e,t,n){let r=L(n);return r.abort??(r.abort=!0),new e({type:"custom",check:"custom",fn:t,...r})}function jp(e,t,n){return new e({type:"custom",check:"custom",fn:t,...L(n)})}function Zp(e,t){let n=M0(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(zr(o,r.value,n._zod.def));else{let i=o;i.fatal&&(i.continue=!1),i.code??(i.code="custom"),"input"in i||(i.input=r.value),i.inst??(i.inst=n),i.continue??(i.continue=!n._zod.def.abort),r.issues.push(zr(i))}},e(r.value,r)),t);return n}function M0(e,t){let n=new pe({check:"custom",...L(t)});return n._zod.check=e,n}function Wp(e){let t=new pe({check:"describe"});return t._zod.onattach=[n=>{let r=ze.get(n)??{};ze.add(n,{...r,description:e})}],t._zod.check=()=>{},t}function Vp(e){let t=new pe({check:"meta"});return t._zod.onattach=[n=>{let r=ze.get(n)??{};ze.add(n,{...r,...e})}],t._zod.check=()=>{},t}function Fp(e,t){let n=L(t),r=n.truthy??["true","1","yes","on","y","enabled"],o=n.falsy??["false","0","no","off","n","disabled"];n.case!=="sensitive"&&(r=r.map(p=>typeof p=="string"?p.toLowerCase():p),o=o.map(p=>typeof p=="string"?p.toLowerCase():p));let i=new Set(r),s=new Set(o),a=e.Codec??mi,c=e.Boolean??pi,u=e.String??tr,l=new u({type:"string",error:n.error}),d=new c({type:"boolean",error:n.error}),m=new a({type:"pipe",in:l,out:d,transform:((p,h)=>{let g=p;return n.case!=="sensitive"&&(g=g.toLowerCase()),i.has(g)?!0:s.has(g)?!1:(h.issues.push({code:"invalid_value",expected:"stringbool",values:[...i,...s],input:h.value,inst:m,continue:!1}),{})}),reverseTransform:((p,h)=>p===!0?r[0]||"true":o[0]||"false"),error:n.error});return m._zod.bag.truthy=r,m._zod.bag.falsy=o,m._zod.bag.case=n.case??"insensitive",m}function ur(e,t,n,r={}){let o=L(r),i={check:"string_format",type:"string",format:t,fn:typeof n=="function"?n:a=>n.test(a),...o};return n instanceof RegExp&&(i.pattern=n),new e(i)}function Si(e,...t){for(let n of t)for(let r of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,r)&&Oe(e,r,n[r]);return e}function Mn(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??ze,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??"ref",reused:e?.reused??"inline",intersections:[],deferred:[],external:e?.external??void 0}}function Pe(e,t,n,r,o){let i=typeof t.unrepresentable=="function"?t.unrepresentable({zodSchema:e,path:r.path,message:o}):t.unrepresentable;if(i==="any")return!1;if(i===void 0||i==="throw")throw new Error(o);return Object.assign(n,i),!0}function ce(e,t,n={path:[],schemaPath:[]}){var r;let o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;let s={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,s),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;let a=e._zod.toJSONSchema?.();if(a)s.schema=a;else{let l={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,s.schema,l);else{let m=s.schema,p=t.processors[o.type];if(!p)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);p(e,t,m,l)}let d=e._zod.parent;d&&(s.ref||(s.ref=d),ce(d,t,l),t.seen.get(d).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Si(s.schema,c),t.io==="input"&&Xe(e)&&(delete s.schema.examples,delete s.schema.default),t.io==="input"&&"_prefault"in s.schema&&((r=s.schema).default??(r.default=s.schema._prefault)),delete s.schema._prefault,t.seen.get(e).schema}function R0(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}function Rn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");if(e.external&&e.sharedDefsExtractedFor===e.external)return;let r=new Map;for(let s of e.seen.entries()){let a=e.metadataRegistry.get(s[0])?.id;if(a){let c=r.get(a);if(c&&c!==s[0])throw new Error(`Duplicate schema id "${a}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(a,s[0])}}let o=s=>{let a=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let d=e.external.registry.get(s[0])?.id,m=e.external.uri??(h=>h);if(d)return{ref:m(d)};let p=s[1].defId??s[1].schema.id??`schema${e.counter++}`;return s[1].defId=p,{defId:p,ref:`${m("__shared")}#/${a}/${R0(p)}`}}let c="#",u=`${c}/${a}/`;if(s[1]===n&&!s[1].schema.id)return{ref:c};let l=s[1].schema.id??`__schema${e.counter++}`;return{defId:l,ref:u+R0(l)}},i=s=>{if(s[1].schema.$ref)return;let a=s[1],{ref:c,defId:u}=o(s);a.def={...a.schema},u&&(a.defId=u);let l=a.schema;for(let d in l)delete l[d];l.$ref=c};if(e.cycles==="throw")for(let s of e.seen.entries()){let a=s[1];if(a.cycle)throw new Error(`Cycle detected: #/${a.cycle?.join("/")}/<root>
65
65
 
66
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function N0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;N0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var O0=new Set(["type","properties","required","additionalProperties"]),D0=["oneOf","anyOf"];function E0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Gp(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!O0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??E0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Gp(a)??{allOf:a};Oe(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=E0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function BI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of O0)if(o in e)return;let n=t.filter(o=>D0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Gp(t);else{let o=n[0],i=D0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>Gp([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,Ri(e,r))}function Rn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let f=e.seen.get(d),h=f.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):Ri(u,h),Ri(u,l),a._zod.parent===d)for(let C in u)C==="$ref"||C==="allOf"||C in l||delete u[C];if(h.$ref&&f.def)for(let C in u)C==="$ref"||C==="allOf"||C in f.def&&JSON.stringify(u[C])===JSON.stringify(f.def[C])&&delete u[C]}let m=a._zod.parent;if(m&&m!==d){r(m);let f=e.seen.get(m);if(f?.schema.$ref&&(u.$ref=f.schema.$ref,f.def))for(let h in u)h==="$ref"||h==="allOf"||h in f.def&&JSON.stringify(u[h])===JSON.stringify(f.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())N0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])BI(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Ri(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Oe(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:io(t,"input",e.processors),output:io(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function nt(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return nt(r.element,n);if(r.type==="set")return nt(r.valueType,n);if(r.type==="lazy")return nt(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return nt(r.innerType,n);if(r.type==="intersection")return nt(r.left,n)||nt(r.right,n);if(r.type==="record"||r.type==="map")return nt(r.keyType,n)||nt(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:nt(r.in,n)||nt(r.out,n);if(r.type==="object"){for(let o in r.shape)if(nt(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(nt(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(nt(o,n))return!0;return!!(r.rest&&nt(r.rest,n))}return!1}var Kp=(e,t={})=>n=>{let r=Ln({...n,processors:t});return ce(e,r),Mn(r,e),Rn(r,e)},io=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Ln({...o??{},target:i,io:t,processors:n});return ce(e,s),Mn(s,e),Rn(s,e)};var so=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},ao=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},z0=(e,t)=>{so(e,"minimum",t),ao(e,"maximum",t)},V0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},F0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},H0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},B0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},j0=(e,t)=>so(e,"minimum",t.minimum),Z0=(e,t)=>ao(e,"maximum",t.maximum),W0=e=>(t,n)=>{B0(t,n.format);let[r,o]=e[n.format];so(t,"minimum",r),ao(t,"maximum",o)},UI={greater_than:(e,t)=>so(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>ao(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>V0(e,t.value),number_format:W0(Qo),bigint_format:W0(ei),min_length:j0,max_length:Z0,length_equals:(e,t)=>z0(e,t.length),min_size:j0,max_size:Z0,size_equals:(e,t)=>z0(e,t.size),string_format:(e,t)=>{B0(e,t.format),t.pattern&&F0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>H0(e,t.mime)};function Pe(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)UI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&so(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&so(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&ao(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&ao(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&V0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&H0(t,o.mime);for(let i of o.patterns??[])F0(t,i);return t}var GI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},KI=new Map([[Ta,nd],[gi,rd]]),U0=e=>KI.get(e)??e,Jp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Pe(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=GI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(U0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},Xp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Pe(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),f=t.target==="draft-04"||t.target==="openapi-3.0";if(d?f?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?f?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let x of a)Number.isFinite(x)&&x!==0?h.add(Math.abs(x)):_e(e,t,o,r,`A multipleOf divisor of ${x} cannot be represented in JSON Schema`);let[g,...C]=h;g!==void 0&&(o.multipleOf=g),C.length&&(o.allOf=[...o.allOf??[],...C.map(x=>({multipleOf:x}))])}},Qp=(e,t,n,r)=>{n.type="boolean"},ef=(e,t,n,r)=>{_e(e,t,n,r,"BigInt cannot be represented in JSON Schema")},tf=(e,t,n,r)=>{_e(e,t,n,r,"Symbols cannot be represented in JSON Schema")},nf=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},rf=(e,t,n,r)=>{_e(e,t,n,r,"Undefined cannot be represented in JSON Schema")},of=(e,t,n,r)=>{_e(e,t,n,r,"Void cannot be represented in JSON Schema")},sf=(e,t,n,r)=>{n.not={}},af=(e,t,n,r)=>{},cf=(e,t,n,r)=>{},uf=(e,t,n,r)=>{_e(e,t,n,r,"Date cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{let o=e._zod.def,i=$r(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},df=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(_e(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(_e(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},pf=(e,t,n,r)=>{_e(e,t,n,r,"NaN cannot be represented in JSON Schema")},ff=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},mf=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Pe(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},hf=(e,t,n,r)=>{n.type="boolean"},gf=(e,t,n,r)=>{_e(e,t,n,r,"Custom types cannot be represented in JSON Schema")},Cf=(e,t,n,r)=>{_e(e,t,n,r,"Function types cannot be represented in JSON Schema")},kf=(e,t,n,r)=>{_e(e,t,n,r,"Transforms cannot be represented in JSON Schema")},yf=(e,t,n,r)=>{_e(e,t,n,r,"Map cannot be represented in JSON Schema")},bf=(e,t,n,r)=>{_e(e,t,n,r,"Set cannot be represented in JSON Schema")},vf=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Pe(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=ce(i.element,t,{...r,path:[...r.path,"items"]})};function Ti(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?Ti(t.out):t.type==="catch"?Ti(t.innerType):e._zod.optin}var wf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&_e(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)Oe(o.properties,u,ce(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?Ti(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=ce(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},_c=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>ce(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},xf=(e,t,n,r)=>{let o=e._zod.def,i=ce(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=ce(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},If=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,C)=>ce(g,t,{...r,path:[...r.path,s,C]})),u=i.rest?ce(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?Ti(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:f,maximum:h}=Pe(e);typeof f=="number"&&(o.minItems=f),typeof h=="number"&&(o.maxItems=h)};function qp(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=qp(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let C=g.map(x=>qp(e,x,n));C.some((x,y)=>x!==g[y])&&(t={...t,[h]:C})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...f}=t;return f.enum?f.enum=f.enum.map(h=>typeof h=="number"?String(h):h):typeof f.const=="number"&&(f.const=String(f.const)),o&&(f.type="string",i||(f.pattern=(r.includes("number")?sn:ui).source)),f}var Yp=new WeakMap;function qI(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of Yp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=qp(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var Sf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Pe(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=ce(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)Oe(o.patternProperties,U0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=ce(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=Yp.get(t);l||(l=[],Yp.set(t,l),t.deferred.push(()=>qI(t))),l.push(e)}o.additionalProperties=ce(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&Ti(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},_f=(e,t,n,r)=>{let o=e._zod.def,i=ce(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},Pf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Lf=Symbol();function G0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(_e(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Lf):JSON.parse(s)}var Mf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=G0(o.defaultValue,e,t,n,r);s!==Lf&&(n.default=s)},Rf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=G0(o.defaultValue,e,t,n,r);s!==Lf&&(n._prefault=s)},Tf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{_e(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Af=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;ce(s,t,r);let a=t.seen.get(e);a.ref=s},$f=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Df=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Pc=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Ef=(e,t,n,r)=>{let o=e._zod.innerType;ce(o,t,r);let i=t.seen.get(e);i.ref=o},Sc={string:Jp,number:Xp,boolean:Qp,bigint:ef,symbol:tf,null:nf,undefined:rf,void:of,never:sf,any:af,unknown:cf,date:uf,enum:lf,literal:df,nan:pf,template_literal:ff,file:mf,success:hf,custom:gf,function:Cf,transform:kf,map:yf,set:bf,array:vf,object:wf,union:_c,intersection:xf,tuple:If,record:Sf,nullable:_f,nonoptional:Pf,default:Mf,prefault:Rf,catch:Tf,pipe:Af,readonly:$f,promise:Df,optional:Pc,lazy:Ef};function Lc(e,t){if("_idmap"in e){let r=e,o=Ln({...t,processors:Sc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;ce(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Mn(o,l),Oe(s,u,Rn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Ln({...t,processors:Sc});return ce(e,n),Mn(n,e),Rn(n,e)}var Mc=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Ln({processors:Sc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return ce(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Mn(this.ctx,t);let r=Rn(this.ctx,t),{"~standard":o,...i}=r;return i}};var K0={};var go={};Tt(go,{ZodAny:()=>r2,ZodArray:()=>a2,ZodBase64:()=>Kc,ZodBase64URL:()=>qc,ZodBigInt:()=>mo,ZodBigIntFormat:()=>Xc,ZodBoolean:()=>fo,ZodCIDRv4:()=>Uc,ZodCIDRv6:()=>Gc,ZodCUID:()=>jc,ZodCUID2:()=>Zc,ZodCatch:()=>L2,ZodCodec:()=>Wi,ZodCreditCard:()=>qf,ZodCustom:()=>Vi,ZodCustomStringFormat:()=>pr,ZodDate:()=>Ei,ZodDefault:()=>w2,ZodDiscriminatedUnion:()=>u2,ZodE164:()=>Yc,ZodEmail:()=>Ec,ZodEmoji:()=>Oc,ZodEnum:()=>uo,ZodExactOptional:()=>nu,ZodFile:()=>k2,ZodFunction:()=>z2,ZodGUID:()=>Nc,ZodIBAN:()=>Yf,ZodIPv4:()=>Hc,ZodIPv6:()=>Bc,ZodISODate:()=>An,ZodISODateTime:()=>Tn,ZodISODuration:()=>Dn,ZodISOTime:()=>$n,ZodInstanceOf:()=>W2,ZodIntersection:()=>l2,ZodJWT:()=>Jc,ZodKSUID:()=>Fc,ZodLazy:()=>E2,ZodLiteral:()=>C2,ZodMAC:()=>Kf,ZodMap:()=>h2,ZodNaN:()=>R2,ZodNanoID:()=>zc,ZodNever:()=>i2,ZodNonOptional:()=>ru,ZodNull:()=>t2,ZodNullable:()=>v2,ZodNumber:()=>po,ZodNumberFormat:()=>fr,ZodObject:()=>Oi,ZodOptional:()=>ji,ZodPipe:()=>Zi,ZodPrefault:()=>I2,ZodPreprocess:()=>T2,ZodPromise:()=>O2,ZodReadonly:()=>A2,ZodRecord:()=>co,ZodSet:()=>g2,ZodString:()=>lo,ZodStringFormat:()=>le,ZodSuccess:()=>P2,ZodSymbol:()=>Qf,ZodTemplateLiteral:()=>D2,ZodTransform:()=>y2,ZodTuple:()=>p2,ZodType:()=>Y,ZodULID:()=>Wc,ZodURL:()=>Di,ZodUUID:()=>Gt,ZodUndefined:()=>e2,ZodUnion:()=>zi,ZodUnknown:()=>o2,ZodVoid:()=>s2,ZodXID:()=>Vc,ZodXor:()=>c2,_ZodString:()=>Dc,_default:()=>x2,_function:()=>sg,any:()=>O9,array:()=>Ni,base64:()=>C9,base64url:()=>k9,bigint:()=>A9,boolean:()=>Xf,catch:()=>M2,check:()=>ag,cidrv4:()=>h9,cidrv6:()=>g9,codec:()=>ng,creditCard:()=>b9,cuid:()=>a9,cuid2:()=>c9,currencyCode:()=>_9,custom:()=>cg,date:()=>j9,describe:()=>ug,discriminatedUnion:()=>B9,e164:()=>y9,email:()=>J0,emoji:()=>i9,enum:()=>eu,exactOptional:()=>b2,file:()=>X9,float32:()=>L9,float64:()=>M9,function:()=>sg,guid:()=>X0,hash:()=>P9,hex:()=>S9,hostname:()=>I9,httpUrl:()=>o9,iban:()=>v9,instanceof:()=>dg,int:()=>Ac,int32:()=>R9,int64:()=>$9,intersection:()=>d2,invertCodec:()=>rg,ipv4:()=>p9,ipv6:()=>m9,json:()=>fg,jwt:()=>w9,keyof:()=>Z9,ksuid:()=>d9,lazy:()=>N2,literal:()=>J9,looseObject:()=>F9,looseRecord:()=>G9,mac:()=>f9,map:()=>K9,meta:()=>lg,nan:()=>tg,nanoid:()=>s9,nativeEnum:()=>Y9,never:()=>Qc,nonoptional:()=>_2,null:()=>n2,nullable:()=>$i,nullish:()=>Q9,number:()=>Jf,object:()=>W9,optional:()=>lr,partialRecord:()=>U9,pipe:()=>$c,prefault:()=>S2,preprocess:()=>mg,promise:()=>ig,readonly:()=>$2,record:()=>m2,refine:()=>j2,set:()=>q9,strictObject:()=>V9,string:()=>Ai,stringFormat:()=>x9,stringbool:()=>pg,success:()=>eg,superRefine:()=>Z2,symbol:()=>E9,templateLiteral:()=>og,transform:()=>tu,tuple:()=>f2,uint32:()=>T9,uint64:()=>D9,ulid:()=>u9,undefined:()=>N9,union:()=>ho,unknown:()=>ur,url:()=>r9,uuid:()=>Q0,uuidv4:()=>e9,uuidv6:()=>t9,uuidv7:()=>n9,void:()=>z9,xid:()=>l9,xor:()=>H9});var Rc={};Tt(Rc,{endsWith:()=>Jr,gt:()=>Bt,gte:()=>Ct,includes:()=>qr,length:()=>ar,lowercase:()=>Gr,lt:()=>Ht,lte:()=>gt,maxLength:()=>sr,maxSize:()=>Pn,mime:()=>Qr,minLength:()=>an,minSize:()=>Ut,multipleOf:()=>_n,negative:()=>vc,nonnegative:()=>xc,nonpositive:()=>wc,normalize:()=>eo,overwrite:()=>Nt,positive:()=>bc,properties:()=>Xr,property:()=>Ic,regex:()=>Ur,size:()=>ir,slugify:()=>oo,startsWith:()=>Yr,toLowerCase:()=>no,toUpperCase:()=>ro,trim:()=>to,uppercase:()=>Kr});var q0=new WeakSet([Object.prototype,Error.prototype]);function Tc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var Y0=(e,t)=>{Nl.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);q0.has(n)||(q0.add(n),Tc(n,"format",r=>o=>ii(r,o)),Tc(n,"flatten",r=>o=>oi(r,o)),Tc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Dr,2)}),Tc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Dr,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},JI=k("ZodError",Y0),ft=k("ZodError",Y0,void 0,{Parent:Error});var Nf=zr(ft),Of=jr(ft),zf=Zr(ft),jf=Wr(ft),Zf=ca(ft),Wf=ua(ft),Vf=la(ft),Ff=da(ft),Hf=pa(ft),Bf=fa(ft),Uf=ma(ft),Gf=ha(ft);function QI(){De.localeError||ye(Ga())}function dr(){De.memoizer||ye({memoizer:xi()})}var Y=k("ZodType",(e,t)=>(QI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(j.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return se(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(j2(e,t))},superRefine(e,t){return this.check(Z2(e,t))},overwrite(e){return this.check(Nt(e))},optional(){return lr(this)},exactOptional(){return b2(this)},nullable(){return $i(this)},nullish(){return lr($i(this))},nonoptional(e){return _2(this,e)},array(){return Ni(this)},or(e){return ho([this,e])},and(e){return d2(this,e)},transform(e){return $c(this,tu(e))},default(e){return x2(this,e)},prefault(e){return S2(this,e)},catch(e){return M2(this,e)},pipe(e){return $c(this,e)},readonly(){return $2(this)},describe(e){let t=this.clone();return ze.add(t,{description:e}),t},meta(...e){if(e.length===0)return ze.get(this);let t=this.clone();return ze.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return j.hide(this,"~standard",{..._a(this),jsonSchema:{input:io(this,"input"),output:io(this,"output")}})},set"~standard"(e){j.own(this,"~standard",e)},parse:function e(t,n){return Nf(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Of(this,t,n,{callee:e})},safeParse(e,t){return zf(this,e,t)},async safeParseAsync(e,t){return jf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){j.own(this,"spa",e)},validate(e,t){return si(this,e,t)},validateAsync(e,t){return ai(this,e,t)},encode:function e(t,n){return Zf(this,t,n,{callee:e})},decode:function e(t,n){return Wf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await Vf(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Ff(this,t,n,{callee:e})},safeEncode(e,t){return Hf(this,e,t)},safeDecode(e,t){return Bf(this,e,t)},async safeEncodeAsync(e,t){return Uf(this,e,t)},async safeDecodeAsync(e,t){return Gf(this,e,t)},toJSONSchema(e){return Kp(this,{})(e)},get description(){return ze.get(this)?.description},get _def(){return this._zod.def}}),Dc=k("_ZodString",(e,t)=>{er.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)},j.derived({format:e=>Pe(e).format??null,minLength:e=>Pe(e).minimum??null,maxLength:e=>Pe(e).maximum??null},{regex(...e){return this.check(Ur(...e))},includes(...e){return this.check(qr(...e))},startsWith(...e){return this.check(Yr(...e))},endsWith(...e){return this.check(Jr(...e))},min(...e){return this.check(an(...e))},max(...e){return this.check(sr(...e))},length(...e){return this.check(ar(...e))},nonempty(...e){return this.check(an(1,...e))},lowercase(e){return this.check(Gr(e))},uppercase(e){return this.check(Kr(e))},trim(){return this.check(to())},normalize(...e){return this.check(eo(...e))},toLowerCase(){return this.check(no())},toUpperCase(){return this.check(ro())},slugify(){return this.check(oo())}})),lo=k("ZodString",(e,t)=>{er.init(e,t),Dc.init(e,t)},{email(e){return this.check(Qa(Ec,e))},url(e){return this.check(Si(Di,e))},jwt(e){return this.check(yc(Jc,e))},emoji(e){return this.check(ic(Oc,e))},guid(e){return this.check(ec(Nc,e))},uuid(e){return this.check(tc(Gt,e))},uuidv4(e){return this.check(nc(Gt,e))},uuidv6(e){return this.check(rc(Gt,e))},uuidv7(e){return this.check(oc(Gt,e))},nanoid(e){return this.check(sc(zc,e))},cuid(e){return this.check(ac(jc,e))},cuid2(e){return this.check(cc(Zc,e))},ulid(e){return this.check(uc(Wc,e))},base64(e){return this.check(gc(Kc,e))},base64url(e){return this.check(Cc(qc,e))},xid(e){return this.check(lc(Vc,e))},ksuid(e){return this.check(dc(Fc,e))},ipv4(e){return this.check(pc(Hc,e))},ipv6(e){return this.check(fc(Bc,e))},cidrv4(e){return this.check(mc(Uc,e))},cidrv6(e){return this.check(hc(Gc,e))},e164(e){return this.check(kc(Yc,e))},datetime(e){return this.check(_i(Tn,e))},date(e){return this.check(Pi(An,e))},time(e){return this.check(Li($n,e))},duration(e){return this.check(Mi(Dn,e))}});function Ai(e){return lp(lo,e)}var le=k("ZodStringFormat",(e,t)=>{ae.init(e,t),Dc.init(e,t)}),Tn=k("ZodISODateTime",(e,t)=>{n1.init(e,t),le.init(e,t)}),An=k("ZodISODate",(e,t)=>{r1.init(e,t),le.init(e,t)}),$n=k("ZodISOTime",(e,t)=>{o1.init(e,t),le.init(e,t)}),Dn=k("ZodISODuration",(e,t)=>{i1.init(e,t),le.init(e,t)}),Ec=k("ZodEmail",(e,t)=>{Bd.init(e,t),le.init(e,t)});function J0(e){return Qa(Ec,e)}var Nc=k("ZodGUID",(e,t)=>{Fd.init(e,t),le.init(e,t)});function X0(e){return ec(Nc,e)}var Gt=k("ZodUUID",(e,t)=>{Hd.init(e,t),le.init(e,t)});function Q0(e){return tc(Gt,e)}function e9(e){return nc(Gt,e)}function t9(e){return rc(Gt,e)}function n9(e){return oc(Gt,e)}var Di=k("ZodURL",(e,t)=>{Kd.init(e,t),le.init(e,t)});function r9(e){return Si(Di,e)}function o9(e){return Si(Di,{protocol:ci,hostname:id,...j.normalizeParams(e)})}var Oc=k("ZodEmoji",(e,t)=>{qd.init(e,t),le.init(e,t)});function i9(e){return ic(Oc,e)}var zc=k("ZodNanoID",(e,t)=>{Yd.init(e,t),le.init(e,t)});function s9(e){return sc(zc,e)}var jc=k("ZodCUID",(e,t)=>{Jd.init(e,t),le.init(e,t)});function a9(e){return ac(jc,e)}var Zc=k("ZodCUID2",(e,t)=>{Xd.init(e,t),le.init(e,t)});function c9(e){return cc(Zc,e)}var Wc=k("ZodULID",(e,t)=>{Qd.init(e,t),le.init(e,t)});function u9(e){return uc(Wc,e)}var Vc=k("ZodXID",(e,t)=>{e1.init(e,t),le.init(e,t)});function l9(e){return lc(Vc,e)}var Fc=k("ZodKSUID",(e,t)=>{t1.init(e,t),le.init(e,t)});function d9(e){return dc(Fc,e)}var Hc=k("ZodIPv4",(e,t)=>{s1.init(e,t),le.init(e,t)});function p9(e){return pc(Hc,e)}var Kf=k("ZodMAC",(e,t)=>{c1.init(e,t),le.init(e,t)});function f9(e){return pp(Kf,e)}var Bc=k("ZodIPv6",(e,t)=>{a1.init(e,t),le.init(e,t)});function m9(e){return fc(Bc,e)}var Uc=k("ZodCIDRv4",(e,t)=>{u1.init(e,t),le.init(e,t)});function h9(e){return mc(Uc,e)}var Gc=k("ZodCIDRv6",(e,t)=>{l1.init(e,t),le.init(e,t)});function g9(e){return hc(Gc,e)}var Kc=k("ZodBase64",(e,t)=>{d1.init(e,t),le.init(e,t)});function C9(e){return gc(Kc,e)}var qc=k("ZodBase64URL",(e,t)=>{p1.init(e,t),le.init(e,t)});function k9(e){return Cc(qc,e)}var Yc=k("ZodE164",(e,t)=>{f1.init(e,t),le.init(e,t)});function y9(e){return kc(Yc,e)}var qf=k("ZodCreditCard",(e,t)=>{m1.init(e,t),le.init(e,t)});function b9(e){return fp(qf,e)}var Yf=k("ZodIBAN",(e,t)=>{h1.init(e,t),le.init(e,t)});function v9(e){return mp(Yf,e)}var Jc=k("ZodJWT",(e,t)=>{g1.init(e,t),le.init(e,t)});function w9(e){return yc(Jc,e)}var pr=k("ZodCustomStringFormat",(e,t)=>{C1.init(e,t),le.init(e,t)});function x9(e,t,n={}){return cr(pr,e,t,n)}function I9(e){return cr(pr,"hostname",od,e)}function S9(e){return cr(pr,"hex",yd,e)}function _9(e){return cr(pr,"currency_code",ad,e)}function P9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=St[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return cr(pr,r,o,t)}var po=k("ZodNumber",(e,t)=>{Na.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o),e.isFinite=!0},j.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Pe(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Pe(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Pe(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Pe(e).format??null},{gt(e,t){return this.check(Bt(e,t))},gte(e,t){return this.check(Ct(e,t))},min(e,t){return this.check(Ct(e,t))},lt(e,t){return this.check(Ht(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},int(e){return this.check(Ac(e))},safe(e){return this.check(Ac(e))},positive(e){return this.check(Bt(0,e))},nonnegative(e){return this.check(Ct(0,e))},negative(e){return this.check(Ht(0,e))},nonpositive(e){return this.check(gt(0,e))},multipleOf(e,t){return this.check(_n(e,t))},step(e,t){return this.check(_n(e,t))},finite(){return this}}));function Jf(e){return gp(po,e)}var fr=k("ZodNumberFormat",(e,t)=>{k1.init(e,t),po.init(e,t)});function Ac(e){return kp(fr,e)}function L9(e){return yp(fr,e)}function M9(e){return bp(fr,e)}function R9(e){return vp(fr,e)}function T9(e){return wp(fr,e)}var fo=k("ZodBoolean",(e,t)=>{Ci.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o)});function Xf(e){return xp(fo,e)}var mo=k("ZodBigInt",(e,t)=>{Oa.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o)},j.derived({minValue:e=>Pe(e).minimum??null,maxValue:e=>Pe(e).maximum??null,format:e=>Pe(e).format??null},{gte(e,t){return this.check(Ct(e,t))},min(e,t){return this.check(Ct(e,t))},gt(e,t){return this.check(Bt(e,t))},lt(e,t){return this.check(Ht(e,t))},lte(e,t){return this.check(gt(e,t))},max(e,t){return this.check(gt(e,t))},positive(e){return this.check(Bt(BigInt(0),e))},negative(e){return this.check(Ht(BigInt(0),e))},nonpositive(e){return this.check(gt(BigInt(0),e))},nonnegative(e){return this.check(Ct(BigInt(0),e))},multipleOf(e,t){return this.check(_n(e,t))}}));function A9(e){return Sp(mo,e)}var Xc=k("ZodBigIntFormat",(e,t)=>{y1.init(e,t),mo.init(e,t)});function $9(e){return Pp(Xc,e)}function D9(e){return Lp(Xc,e)}var Qf=k("ZodSymbol",(e,t)=>{b1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function E9(e){return Mp(Qf,e)}var e2=k("ZodUndefined",(e,t)=>{v1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o)});function N9(e){return Rp(e2,e)}var t2=k("ZodNull",(e,t)=>{w1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o)});function n2(e){return Tp(t2,e)}var r2=k("ZodAny",(e,t)=>{x1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>af(e,n,r,o)});function O9(){return Ap(r2)}var o2=k("ZodUnknown",(e,t)=>{I1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o)});function ur(){return $p(o2)}var i2=k("ZodNever",(e,t)=>{S1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o)});function Qc(e){return Dp(i2,e)}var s2=k("ZodVoid",(e,t)=>{_1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o)});function z9(e){return Ep(s2,e)}var Ei=k("ZodDate",(e,t)=>{P1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o),e.min=(n,r)=>e.check(Ct(n,r)),e.max=(n,r)=>e.check(gt(n,r))},j.derived({minDate:e=>{let{minimum:t}=Pe(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Pe(e);return t?new Date(t):null}},{}));function j9(e){return Np(Ei,e)}var a2=k("ZodArray",(e,t)=>{dr(),L1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o),e.element=t.element},{min(e,t){return this.check(an(e,t))},nonempty(e){return this.check(an(1,e))},max(e,t){return this.check(sr(e,t))},length(e,t){return this.check(ar(e,t))},unwrap(){return this.element}});function Ni(e,t){return jp(a2,e,t)}function Z9(e){let t=e._zod.def.shape;return eu(Object.keys(t))}var Oi=k("ZodObject",(e,t)=>{dr(),M1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),j.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return eu(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(j.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(j.mergeDefs(this._zod.def,{catchall:ur()}))},loose(){return this.clone(j.mergeDefs(this._zod.def,{catchall:ur()}))},strict(){return this.clone(j.mergeDefs(this._zod.def,{catchall:Qc()}))},strip(){return this.clone(j.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return j.extend(this,e)},safeExtend(e){return j.safeExtend(this,e)},merge(e){return j.merge(this,e)},pick(e){return j.pick(this,e)},omit(e){return j.omit(this,e)},partial(...e){return j.partial(ji,this,e[0])},exactPartial(...e){return j.partial(nu,this,e[0],"exactPartial")},required(...e){return j.required(ru,this,e[0])}});function W9(e,t){let n={type:"object",shape:e??{},...j.normalizeParams(t)};return new Oi(n)}function V9(e,t){return new Oi({type:"object",shape:e,catchall:Qc(),...j.normalizeParams(t)})}function F9(e,t){return new Oi({type:"object",shape:e,catchall:ur(),...j.normalizeParams(t)})}var zi=k("ZodUnion",(e,t)=>{ki.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_c(e,n,r,o),e.options=t.options});function ho(e,t){return new zi({type:"union",options:e,...j.normalizeParams(t)})}var c2=k("ZodXor",(e,t)=>{zi.init(e,t),R1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_c(e,n,r,o),e.options=t.options});function H9(e,t){return new c2({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var u2=k("ZodDiscriminatedUnion",(e,t)=>{zi.init(e,t),A1.init(e,t)});function B9(e,t,n){return new u2({type:"union",options:t,discriminator:e,...j.normalizeParams(n)})}var l2=k("ZodIntersection",(e,t)=>{$1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o)});function d2(e,t){return new l2({type:"intersection",left:e,right:t})}var p2=k("ZodTuple",(e,t)=>{dr(),za.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new ji({type:"optional",innerType:t}))})}});function f2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new p2({type:"tuple",items:e,rest:i,...j.normalizeParams(o)})}var co=k("ZodRecord",(e,t)=>{dr(),D1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Sf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function m2(e,t,n){return!t||!t._zod?new co({type:"record",keyType:Ai(),valueType:e,...j.normalizeParams(t)}):new co({type:"record",keyType:e,valueType:t,...j.normalizeParams(n)})}function U9(e,t,n){return new co({type:"record",keyType:e,valueType:t,...j.normalizeParams(n),partial:!0})}function G9(e,t,n){return new co({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(n)})}var h2=k("ZodMap",(e,t)=>{dr(),E1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Ut(...n)),e.nonempty=n=>e.check(Ut(1,n)),e.max=(...n)=>e.check(Pn(...n)),e.size=(...n)=>e.check(ir(...n))});function K9(e,t,n){return new h2({type:"map",keyType:e,valueType:t,...j.normalizeParams(n)})}var g2=k("ZodSet",(e,t)=>{dr(),N1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o),e.min=(...n)=>e.check(Ut(...n)),e.nonempty=n=>e.check(Ut(1,n)),e.max=(...n)=>e.check(Pn(...n)),e.size=(...n)=>e.check(ir(...n))});function q9(e,t){return new g2({type:"set",valueType:e,...j.normalizeParams(t)})}var uo=k("ZodEnum",(e,t)=>{O1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(r,o,i)=>lf(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new uo({...t,checks:[],...j.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new uo({...t,checks:[],...j.normalizeParams(o),entries:i})}});function eu(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new uo({type:"enum",entries:n,...j.normalizeParams(t)})}function Y9(e,t){return new uo({type:"enum",entries:e,...j.normalizeParams(t)})}var C2=k("ZodLiteral",(e,t)=>{z1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function J9(e,t){return new C2({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var k2=k("ZodFile",(e,t)=>{j1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o),e.min=(n,r)=>e.check(Ut(n,r)),e.max=(n,r)=>e.check(Pn(n,r)),e.mime=(n,r)=>e.check(Qr(Array.isArray(n)?n:[n],r))});function X9(e){return Zp(k2,e)}var y2=k("ZodTransform",(e,t)=>{dr(),Z1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kf(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new Sn(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(j.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(j.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function tu(e){return new y2({type:"transform",transform:e})}var ji=k("ZodOptional",(e,t)=>{ja.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function lr(e){return new ji({type:"optional",innerType:e})}var nu=k("ZodExactOptional",(e,t)=>{W1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pc(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function b2(e){return new nu({type:"optional",innerType:e})}var v2=k("ZodNullable",(e,t)=>{V1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $i(e){return new v2({type:"nullable",innerType:e})}function Q9(e){return lr($i(e))}var w2=k("ZodDefault",(e,t)=>{F1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function x2(e,t){return new w2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var I2=k("ZodPrefault",(e,t)=>{H1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Rf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function S2(e,t){return new I2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var ru=k("ZodNonOptional",(e,t)=>{B1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function _2(e,t){return new ru({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var P2=k("ZodSuccess",(e,t)=>{U1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function eg(e){return new P2({type:"success",innerType:e})}var L2=k("ZodCatch",(e,t)=>{G1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function M2(e,t){return new L2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:j.constantCatch(t)})}var R2=k("ZodNaN",(e,t)=>{K1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o)});function tg(e){return zp(R2,e)}var Zi=k("ZodPipe",(e,t)=>{Za.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Af(e,n,r,o),e.in=t.in,e.out=t.out});function $c(e,t){return new Zi({type:"pipe",in:e,out:t})}var Wi=k("ZodCodec",(e,t)=>{Zi.init(e,t),yi.init(e,t)});function ng(e,t,n){return new Wi({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function rg(e){let t=e._zod.def;return new Wi({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var T2=k("ZodPreprocess",(e,t)=>{Zi.init(e,t),q1.init(e,t)}),A2=k("ZodReadonly",(e,t)=>{Y1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$f(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function $2(e){return new A2({type:"readonly",innerType:e})}var D2=k("ZodTemplateLiteral",(e,t)=>{J1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o)});function og(e,t){return new D2({type:"template_literal",parts:e,...j.normalizeParams(t)})}var E2=k("ZodLazy",(e,t)=>{bi.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ef(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function N2(e){return new E2({type:"lazy",getter:e})}var O2=k("ZodPromise",(e,t)=>{Q1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Df(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function ig(e){return new O2({type:"promise",innerType:e})}var z2=k("ZodFunction",(e,t)=>{X1.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o)});function sg(e){return new z2({type:"function",input:Array.isArray(e?.input)?f2(e?.input):e?.input??Ni(ur()),output:e?.output??ur()})}var Vi=k("ZodCustom",(e,t)=>{ep.init(e,t),Y.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o)});function ag(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function cg(e,t){return Wp(Vi,e??(()=>!0),t)}function j2(e,t={}){return Vp(Vi,e,t)}function Z2(e,t){return Fp(e,t)}var ug=Hp,lg=Bp,W2=k("ZodInstanceOf",(e,t)=>{Vi.init(e,t)},{properties(e,t){return this.check(Xr(e,t))}});function dg(e,t={}){let n=new W2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...j.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var pg=(...e)=>Up({Codec:Wi,Boolean:fo,String:lo},...e);function fg(e){let t=N2(()=>ho([Ai(e),Jf(),Xf(),n2(),Ni(t),m2(Ai(),t)]));return t}function mg(e,t){return new T2({type:"pipe",in:tu(e),out:t})}var eS={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function tS(e){ye({customError:e})}function nS(){return ye().customError}var V2;V2||(V2={});var Fi={};Tt(Fi,{ZodISODate:()=>An,ZodISODateTime:()=>Tn,ZodISODuration:()=>Dn,ZodISOTime:()=>$n,date:()=>oS,datetime:()=>rS,duration:()=>sS,time:()=>iS});function rS(e){return _i(Tn,e)}function oS(e){return Pi(An,e)}function iS(e){return Li($n,e)}function sS(e){return Mi(Dn,e)}var D={...go,...Rc,iso:Fi},aS=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function cS(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function hg(e,t){return e.map((n,r)=>r<t?n:n.optional())}function uS(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function lS(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:uS(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function dS(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function F2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=F2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=F2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var pS=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),fS=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function Hi(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(Hi):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>pS.has(t)?Hi(n):!fS.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(Hi))}function gg(e){return e===1?"element":"elements"}function mS(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=F2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${gg(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${gg(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function Cg(e,t){if(e!==!1)return e===void 0||e===!0?D.any():rt(e,t)}var hS=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function kg(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=lS(o,t),s=rt(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return kg(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(hS)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?rt(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let f=rt(m,t);Oe(o,d,s.has(d)?f:f.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),f=[];for(let g of m){let C=rt(d[g],t),x=D.string().regex(new RegExp(g));f.push(D.looseRecord(x,C))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...f),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let C=2;C<h.length;C++)g=D.intersection(g,h[C]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),C=m.map(y=>new RegExp(y)),x=r;r=r.check(y=>{if(!xt(y.value))return;let I=[];for(let T of Object.keys(y.value))g.includes(T)||C.some(L=>L.test(T))||I.push(T);I.length&&y.issues.push({code:"unrecognized_keys",keys:I,input:y.value,inst:x})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=rt(m,t)}r=dS(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>rt(d,t)),c=hg(a,s),u=Array.isArray(i)?void 0:Cg(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>rt(d,t)),c=hg(a,s),u=Cg(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=rt(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=mS(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?rt(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function rt(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=kg(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>rt(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>rt(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:rt(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,rt(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!Hi(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!Hi(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))aS.has(a)||Oe(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function yg(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=cS(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??ze};return rt(n,i)}var bg=Symbol("z.visit/resolving");function Bi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===bg)return new bi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,bg);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let f=a.catchall;return a.catchall&&(f=o(a.catchall),f!==a.catchall&&(d=!0)),d?se(s,{...a,shape:m,catchall:f}):s}case"array":{let u=o(a.element);return u===a.element?s:se(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let f of u){let h=o(f);h!==f&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?se(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:se(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:se(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let f=o(m);f!==m&&(l=!0),d.push(f)}return l?se(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:se(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:se(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:se(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:se(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return se(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function vg(e){return Bi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:ho(n.options)}})}function gS(e,t){if(!t?.length)return e;let n=e._zod.def;return se(e,Dt(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function wg(e){return gS(e.out,e.checks)}function CS(e){return e.in._zod.traits.has("$ZodTransform")?wg(e):e.in}function xg(e){return Bi(e,{pipe:t=>CS(t._zod.def),default:(t,n)=>n?lr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function Ig(e){return Bi(e,{pipe:t=>wg(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var H2={};Tt(H2,{bigint:()=>vS,boolean:()=>bS,date:()=>wS,number:()=>yS,string:()=>kS});function kS(e){return dp(lo,e)}function yS(e){return Cp(po,e)}function bS(e){return Ip(fo,e)}function vS(e){return _p(mo,e)}function wS(e){return Op(Ei,e)}var B2=1e4,Sg=ue.string().min(1).max(1024),Kt=ue.array(Sg).max(B2),xS=ue.enum(["project","chronological","machine"]),IS=ue.enum(["updated","created","alpha","none"]),SS=ue.enum(["default","ascending","descending"]),_S=ue.enum(["muted","colour"]),PS=ue.enum(["12h","1d","3d","1w","never"]),LS=ue.enum(["blocked","everything"]),MS=ue.array(ue.union([ue.literal("threads"),Sg.regex(/^(project|section|machine):\S+$/)])).max(B2).transform(e=>[...new Set(e)]);function xe(e,t,n,r){return{schema:e,defaultValue:t,description:n,...r?{readStored:r}:{}}}var Ui={showArchived:xe(ue.boolean(),!1,"Show archived threads: whether every group also lists archived threads, as each group's menu toggles."),organizationMode:xe(xS,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:xe(ue.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:xe(IS,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:xe(SS,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:xe(Kt,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:xe(Kt,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:xe(Kt,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:xe(MS,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:xe(ue.array(ue.enum(["pinned","threads"])).max(B2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:xe(Kt,[],"Project ids whose group is collapsed."),collapsedThreadSections:xe(Kt,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:xe(Kt,[],"Machine ids whose group is collapsed."),collapsedEnvironments:xe(Kt,[],"Environment ids whose folder row is collapsed."),expandedOlder:xe(Kt,[],`Parent thread ids whose "N more child threads" row the user opened, once that tree's children chip was open.`),openSettledFolds:xe(Kt,[],"Group ids whose settled fold the user opened."),settleAfter:xe(PS,"1d","Settle after: how long a quiet thread goes without activity before it settles into its group's settled fold: 12h, 1d, 3d, 1w or never."),expandedChildren:xe(Kt,[],"Parent thread ids whose chip the user opened."),childAttention:xe(LS,"blocked","Needs attention counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of an open tree's N more child threads fold, as running ones do."),harnessIcon:xe(_S,"muted","How rows draw the harness logo, where a row draws one: muted (monochrome) or colour (the provider's tint). A stored hidden reads as muted.",e=>e==="hidden"?"muted":e)},_g=Object.keys(Ui);function U2(e){return Object.hasOwn(Ui,e)}function RS(e){return structuredClone(Ui[e].defaultValue)}function TS(){return Object.fromEntries(_g.map(e=>[e,RS(e)]))}function G2(e,t){let n=Ui[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function AS(e,t){let n=Ui[e];return G2(e,n.readStored?n.readStored(t):t)}function K2(e){let t=TS();if(e===null||typeof e!="object")return t;let n=e;for(let r of _g){if(!(r in n))continue;let o=AS(r,n[r]);o.success&&(t[r]=o.value)}return t}var $S=ue.object({density:ue.enum(["compact","comfortable"]).catch("compact")}),q2="bb.thread-glance.client.v1",Gi="bb.thread-glance.preferences.v1",Pg="bb.thread-list.preferences.v1";function Lg(e){let t=$S.safeParse(e??{});return t.success?t.data:{density:"compact"}}function ou(){return new Set}function iu(e,t){let n=E(r=>t(o=>({...o,...r})),[t]);return N(()=>(e.add(n),()=>{e.delete(n)}),[e,n]),E(r=>{for(let o of e)o!==n&&o(r)},[e,n])}function Ki(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function Co(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}var DS=ou();function Mg(){let[e,t]=A(()=>Lg(Ki(q2))),n=iu(DS,t),r=E(o=>{t(i=>{let s={...i,...o};return Co(q2,s),s}),n(o)},[n]);return[e,r]}function Rg(e){let[t,n]=A(()=>Date.now());return N(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),N(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var su=ue.record(ue.string(),ue.number()),ZT=ue.object({startedAt:su,finishedAt:su,pendingAt:su,seenAt:su}),ES=140,Y2=ue.object({kind:ue.enum(["question","approval","plan","input","failed","done"]),text:ue.string().max(ES),at:ue.number()}),Tg=ue.object({pending:Y2.optional(),failed:Y2.optional(),done:Y2.optional()}),En={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var NS=150,OS=ou(),qi=new Map;function Ag(){let e=Cn(),[t,n]=A(()=>K2(Ki(Gi))),[r,o]=A(!1),i=R(null),s=gn(),a=R(!1),c=E(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),f=K2(m);for(let[h,g]of qi)f[h]=g;n(f),Co(Gi,f)}finally{o(!0)}},[e]);N(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:Ki(Pg)})}catch{}m||await c().catch(()=>{})})(),()=>{m=!0}},[e,c]),N(()=>{s==="connected"&&(a.current&&c().catch(()=>{}),a.current=!0)},[s,c]),hn(En.preferences,m=>{let f=m;if(!U2(f?.key)||qi.has(f.key))return;let h=G2(f.key,f.value);h.success&&n(g=>{let C={...g,[f.key]:h.value};return Co(Gi,C),C})});let u=E(()=>{let m=[...qi];qi.clear();for(let[f,h]of m)e.call("setPreference",{key:f,value:h}).catch(g=>{at.error(`Couldn't save the ${f} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);N(()=>()=>{i.current!==null&&clearTimeout(i.current),u()},[u]);let l=iu(OS,n),d=E(m=>{n(f=>{let h={...f,...m};return Co(Gi,h),h}),l(m);for(let[f,h]of Object.entries(m))U2(f)&&qi.set(f,h);i.current!==null&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,u()},NS)},[u,l]);return{prefs:t,hydrated:r,update:d}}var J2={};function $g(){let e=Cn(),[t,n]=A(J2),r=gn(),o=R(!1),[i,s]=A(0);return N(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:J2)},()=>{}),()=>{a=!0}},[e,i]),N(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),hn(En.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:J2)}),t}var Dg={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},zS=new Set(Object.keys(Dg));function Eg(){let e=Cn(),[t,n]=A(Dg),r=gn(),o=R(!1),i=E(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);N(i,[i]),N(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=E(u=>{!zS.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);hn(En.stamps,u=>s(u));let a=E(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=E(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function X2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function Ng(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function Q2(e,t,n){if(t.kind==="group")return Ng(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return X2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return Ng(e,n.groupOfThread(t.threadId),n)}var jS=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],Og={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},zg=new Set(["pending","starting","active","stopping","idle","error"]),em=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),ZS=new Set([...zg,...em,"waiting-for-host"]);function mr(e){return zg.has(e.status)?e.status:"idle"}function tm(e){return ZS.has(e.runtimeStatus)?e.runtimeStatus:mr(e)}function au(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function WS(e){return em.has(tm(e))}function VS(e){return tm(e)==="waiting-for-host"}function jg(e,t){let n=mr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:cu(e,t)}function cu(e,t){if(e.parentThreadId===null||mr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var FS=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function Ie(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function HS(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function Zg(e,t){let n=mr(e),r=tm(e),o=au(e),i={sendAt:null};if(e.hasPendingInteraction){let s=Og[t.needsKind??"input"]??Og.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:Ie(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:Ie("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:Ie("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:Ie("CloudOff","attention"),...i};if(em.has(r)){let s=HS(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:Ie("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:Ie("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:Ie("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:Ie("Loading","working",!0),...i}}for(let[s,a,c]of FS)if(e.activity[s]>0)return{kind:"background",label:c,glyph:Ie(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:Ie("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:Ie("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:Ie("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:Ie("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:Ie("ring","muted"),...i}}function Wg(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function Vg(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),mr(e)==="error"&&t&&n.add("unread-failed"),au(e)==="failed"&&n.add("queue-failed"),VS(e)&&n.add("offline"),WS(e)&&n.add("working"),t&&n.add("unread"),n}function Fg(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}var BS=new Set(["waits-on-you","unread-failed","queue-failed","offline"]);function Hg(e,t){return t?new Set([...e].filter(n=>BS.has(n))):new Set(e)}function nm(e){return jS.find(t=>e.has(t))??null}function Bg(e){let t=uu[e].tone;return t==="none"?"working":t}var uu={"waits-on-you":{...Ie("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{...Ie("CircleX","destructive"),label:"failed"},"queue-failed":{...Ie("AlertTriangle","destructive"),label:"queued message failed"},offline:{...Ie("CloudOff","attention"),label:"machine offline"},working:{...Ie("Loading","working",!0),label:"working"},unread:{...Ie("dot","none"),label:"unread"}};function ko(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function Ug(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function US(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function GS(e,t){let n=t.treeAttention-e.treeAttention;return n!==0?n:Ug(e,t)}function Nn(e){return e==="none"?"updated":e}function lu(e){return Nn(e)==="alpha"?"ascending":"descending"}function rm(e,t){return t==="default"?lu(e):t}function Gg(e){let t=Nn(e.field),n=rm(t,e.direction)===lu(t)?1:-1,r=t==="alpha"?US:t==="created"?Ug:GS;return(o,i)=>n*r(o,i)}function Kg(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function qg(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var KS={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function om(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function Yg(e,t){if(e.hasPendingInteraction){let n=om(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:KS[n],text:r,tone:"attention"}}if(mr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return au(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function Jg(e){return e.text===""?e.prefix:`${e.prefix}: ${e.text}`}function Xg(e){return e?.done??null}var qS=new Set(["working","background"]);function Qg(e){return e.pinnedAt!==null||e.isPinned}function YS(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,Qg(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&Qg(e)&&!i?null:o}function e4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=jg(l,e),m=Zg(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:om(e.notes?.[l.id])}),f=Vg(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?Fg(f):f,chipFlags:Hg(f,l.isHidden),attentionFlags:new Set,quiet:ko(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:YS(l,t),note:Yg(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.attentionFlags=R5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&M5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.quietIgnoringOpen=d===void 0||r==="everything"?ko(l.state,l.unread,!1):l.thread.isArchived||!qS.has(l.state.kind)&&l.attentionFlags.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>qg(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let f=[],h=new Set,g=new Set,C=0,x=0,y=!0;d.add(l);for(let T of o.get(l)??[]){if(d.has(T))continue;let L=n.get(T),$=a(T,d);if(f.push(L,...$.descendants),!L.thread.isArchived){for(let O of L.attentionFlags)h.add(O);L.flags.has("working")&&h.add("working");for(let O of L.chipFlags)g.add(O)}for(let O of $.flags)h.add(O);for(let O of $.chipFlags)g.add(O);(L.thread.isHidden?L.attentionFlags.size>0:!L.quietIgnoringOpen)&&(y=!1),L.thread.isHidden||(C+=1,x+=1),C+=$.visibleCount,$.quietIgnoringOpen||(y=!1)}d.delete(l);let I={descendants:f,flags:h,chipFlags:g,visibleCount:C,childCount:x,quietIgnoringOpen:y};return s.set(l,I),I};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:f}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,C=ko(l.state,l.unread,!1),x=l.isActive,y=new Set;for(let L of d){if(!L.thread.isArchived)for(let $ of L.attentionFlags)y.add($);h=Math.max(h,L.thread.latestAttentionAt),L.isActive&&(x=!0),L.thread.isHidden?L.attentionFlags.size>0&&(g=C=!1):(L.quiet||(g=!1),L.quietIgnoringOpen||(C=!1))}let I=new Set(m);if(!l.thread.isArchived){for(let L of l.attentionFlags)I.add(L),y.add(L);l.flags.has("working")&&I.add("working")}let T={root:l,descendants:d,descendantFlags:m,flags:I,attentionFlags:y,visibleDescendantCount:f,latestAttentionAt:h,quiet:g&&!x,quietIgnoringOpen:C,containsActive:x};c.push(T),u.set(l.thread.id,T);for(let L of d)u.set(L.thread.id,T)}return{infos:n,children:o,trees:c,treeOf:u,subtrees:s}}function Yi(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var Pt="pinned",_t="threads";function JS(e){return e.pinnedAt!==null||e.isPinned}function t4(e){return e.find(t=>t.isPersonal)??null}function du(e,t){if(JS(e)&&!e.isHidden)return Pt;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?_t:`project:${n.id}`}case"chronological":return e.sectionId===null?_t:`section:${e.sectionId}`;case"machine":return e.host===null?_t:`machine:${e.host.id}`}}function n4(e,t){let n=t4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function im(e,t){return e===Pt?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:t4(t)?.id??null,newThreadSectionId:null}}var XS={project:"projects",chronological:"sections",machine:"machines"},Ji={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function r4(e,t,n){let r=XS[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===Pt||u===_t||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(_t)?s.indexOf(_t):s.length;s.splice(l,0,...c)}return s.includes(Pt)||s.unshift(Pt),s.includes(_t)||s.push(_t),s}function sm(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function Xi(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function am(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var z={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",customize:"SlidersHorizontal",settings:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},hA=Object.values(z);function o4(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:z.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:z.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:z.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:z.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:z.markRead}:{action:"mark-unread",label:"Mark unread",icon:z.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:z.unpin}:{action:"pin",label:"Pin",icon:z.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:z.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:z.move}),o.push({action:"rename",label:"Rename",icon:z.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:z.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:z.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:z.remove,destructive:!0}),o}var i4=20;function s4(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function a4(e){let t=e.displayName?.trim()||e.id,n=s4(t),r=s4(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function c4(e){let t=new Map,n=new Set;for(let r of e){let o=a4(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function u4(e,t){return t.get(e)??a4({id:e})[0]}function Qi(e,t){return e.filter(n=>n!==t)}function l4(e,t){return n=>Yi(n,e.infos).includes(t)}function d4(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:Qi(t.expandedChildren,r)},drop:l4(n,r)}:p4(r,t)}function p4(e,t){return{patch:{expandedChildren:[...Qi(t.expandedChildren,e),e]},drop:null}}function f4(e,t,n){return e.scope==="reveal"?p4(e.scopeId,t):e.expanded?{patch:{expandedOlder:Qi(t.expandedOlder,e.scopeId)},drop:l4(n,e.scopeId)}:{patch:{expandedOlder:[...Qi(t.expandedOlder,e.scopeId),e.scopeId]},drop:null}}function m4(e,t){let n=Qi(t.openSettledFolds,e.groupId);return{patch:{openSettledFolds:e.expanded?n:[...n,e.groupId]},drop:null}}function h4(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.treeOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:Xi(e.descriptor,t)?am(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:am(e.descriptor,t),drop:o}}function cm(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])i.unread&&(n.push(i.thread.id),cu(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}function g4(e,t,n){let r=t.treeOf.get(e);if(r!==void 0&&r.root.thread.id===e)return cm([r],n);let o=t.infos.get(e)?.thread;return o===void 0?{read:[e],seen:[]}:{read:[e],seen:cu(o,n)?[e]:[]}}var pu=3600*1e3,QS={"12h":12*pu,"1d":24*pu,"3d":72*pu,"1w":168*pu};function k4(e,t){return e!==null&&t!==void 0&&e!==t}function y4(e,t,n){let r=e.environment?.branchName??null;if(r===null)return null;if(t===void 0)return"unknown";if(!k4(r,t))return null;let o=n.get(e.id);return o===void 0?"unknown":o}function e_(e,t){return Math.max(e.createdAt,e.latestAttentionAt,t.startedAt[e.id]??0,t.finishedAt[e.id]??0)}function C4(e,t){let n=e.thread;if(!b4(e))return!1;let r=t.pullRequestOf(n);return r==="unknown"||r==="open"||r==="draft"?!1:r==="merged"||r==="closed"?!0:t.settleAfter==="never"?!1:t.now-e_(n,t)>=QS[t.settleAfter]}function b4(e){let t=e.thread;return t.pinnedAt!==null||t.isPinned?!1:ko(e.state,e.unread,!1)&&e.attentionFlags.size===0}function v4(e,t){return C4(e.root,t)&&e.descendants.every(n=>C4(n,t))}function w4(e,t){let n=[];for(let r of e){let o=r.thread;b4(r)&&k4(o.environment?.branchName??null,t(o))&&n.push(o.id)}return n}function x4(){let[e,t]=A(()=>new Map),n=R(new Map),r=R(!1),o=E((i,s)=>{n.current.set(i,s),!r.current&&(r.current=!0,setTimeout(()=>{r.current=!1;let a=n.current;n.current=new Map,t(c=>{let u=null;for(let[l,d]of a)c.has(l)&&c.get(l)===d||(u??=new Map(c),u.set(l,d));return u??c})},0))},[]);return[e,o]}var t_=He(function({threadId:t,onAnswer:n}){let{isLoading:r,pullRequest:o}=br(t),i=r?void 0:o?.state??null;return N(()=>{i!==void 0&&n(t,i)},[t,i,n]),null});function I4({threadIds:e,onAnswer:t}){return p(ct,{children:e.map(n=>p(t_,{threadId:n,onAnswer:t},n))})}var um={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function lm(e){let t={...um};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.attentionFlags;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function S4(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function _4(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}function P4(e){return(e.find(t=>t.isDefault)??e[0])?.hostId??null}function L4(e,t){return e!==null&&typeof t=="string"&&e!==t}var n_=3;function r_(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function o_(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function i_(e,t,n){return t.parentId===null&&n!==null?e.forest.treeOf.get(t.thread.id)?.quiet??t.quiet:t.quiet}function s_(e,t){let n=t.thread.providerId;return t.parentId===null?e.defaultProviderId!==null&&n!==e.defaultProviderId:n!==e.forest.infos.get(t.parentId)?.thread.providerId}function a_(e,t,n){let r=t.thread.environment?.branchName??null,o=L4(r,e.defaultBranchOf(t.thread));return e.comfortable&&t.note===null&&o?{branchLine:r,pullRequest:"second-line"}:{branchLine:null,pullRequest:n===0&&o?"title":null}}function c_(e,t){let n=t.thread.host;return e.prefs.organizationMode==="machine"||e.primaryHostId===null||n===null||n.id===e.primaryHostId?null:n.name||"Unknown machine"}function R4(e,t,n,r){return{...a_(e,t,r.depth),machine:c_(e,t),type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:r_(e,t.parentId),chip:r.chip,harness:s_(e,t),bold:t.unread,treeUnread:t===n&&[n,...e.forest.treeOf.get(n.thread.id)?.descendants??[]].some(o=>o.unread),note:t.note,dimmed:i_(e,t,r.chip),hiddenBadge:t.thread.isHidden,crossGroupLabel:o_(e,t,n),projectId:t.thread.projectId}}function T4(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.attentionFlags.size>0)}function dm(e,t){return e.forest.subtrees.get(t)}function u_(e,t,n){let r=t.thread.id,o=T4(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,C)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:C,depth:n}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(C=>!i(C)&&!C.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&dm(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,n_);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("tree",m,l)}}function l_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function ts(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let f of m.flags)d.add(f);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:l_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?nm(d):null,depth:n}),!l)for(let m of u)for(let f of m.rows)o.push({...f,depth:f.depth+1})}return o}function A4(e,t,n){let{childCount:r,chipFlags:o}=dm(e,t.thread.id),i=nm(o);return r===0&&i===null&&T4(e,t.thread.id).length===0?null:{count:r,expanded:n,flag:i}}function d_(e,t){let n=new Set([...t.attentionFlags,...dm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function $4(e,t,n,r){let{shown:o,older:i}=u_(e,n,r),s=o.map(c=>({info:c,flags:d_(e,c),rows:[R4(e,c,t.root,{depth:r,nested:r>1,chip:A4(e,c,e.expandedChildren.has(c.thread.id))}),...$4(e,t,c,r+1)]})),a=ts(e,s,r);return i!==null&&a.push(i),a}function p_(e,t){let n=t.root,r=A4(e,n,e.expandedChildren.has(n.thread.id));return[R4(e,n,n,{depth:0,nested:!1,chip:r}),...$4(e,t,n,1)]}function es(e,t){return{info:t.root,rows:p_(e,t),flags:t.flags}}function fu(e){return e.attentionFlags.size>0}function mu(e){return e.trees.filter(fu).length}function pm(e,t){return e&&t>0}function M4(e,t,n,r){if(e.needYouOnly)return f_(e,t,n,r);let o=lm(n),i=Xi(t,e.prefs),s=e.activeThreadId,a=s!==null&&e.targets.has(s)&&n.some(m=>m.containsActive),c=i&&!a,u=t.id===Pt,l=D4(e,t,n),d;if(c)d=ts(e,l.filter(fu).map(m=>es(e,m)),0);else{let m=l.filter(C=>v4(C,e.settle)),f=new Set(m),h=l.filter(C=>!f.has(C)),g=m.find(C=>C.containsActive)??null;if(d=ts(e,h.map(C=>es(e,C)),0),m.length>0){g!==null&&d.push(...es(e,g).rows);let C=e.openSettledFolds.has(t.id);if(d.push({type:"settled",key:`settled:${t.id}`,groupId:t.id,count:m.length,expanded:C}),C){let x=m.filter(y=>y!==g).map(y=>es(e,y));d.push(...ts(e,x,0))}}}return{descriptor:t,counters:o,userCollapsed:i,collapsed:c,hidden:r,rows:d,rootIds:n.map(m=>m.root.thread.id)}}function D4(e,t,n){return t.id===Pt?[...n].sort((r,o)=>Kg(r.root.thread,o.root.thread)):[...n].sort((r,o)=>e.compare({thread:r.root.thread,treeAttention:r.latestAttentionAt},{thread:o.root.thread,treeAttention:o.latestAttentionAt}))}function f_(e,t,n,r){let o=D4(e,t,n);return{descriptor:t,counters:lm(n),userCollapsed:Xi(t,e.prefs),collapsed:!1,hidden:r,rows:ts(e,o.filter(fu).map(i=>es(e,i)),0),rootIds:n.map(i=>i.root.thread.id)}}function E4(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[C,x]of e.targets)if(!(x!=="reveal"||!t.infos.has(C))){r.add(C);for(let y of Yi(C,t.infos))o.add(y)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let C of Yi(e.activeThreadId,t.infos))i.add(C)}let s={...e,compare:Gg({field:n.chronologicalSort,direction:n.sortDirection}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),openSettledFolds:new Set(n.openSettledFolds),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(C=>[C.id,C.name])),sectionNames:new Map(e.sections.map(C=>[C.id,C.name]))},a=new Map;for(let C of t.trees){let x=du(C.root.thread,{mode:n.organizationMode,projects:e.projects}),y=a.get(x)??[];y.push(C),a.set(x,y)}let c=Nn(n.chronologicalSort)==="alpha",u=n4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},c),l=new Map(u.map(C=>[C.id,C]));l.set(Pt,im(Pt,e.projects)),l.set(_t,im(_t,e.projects));let d=r4(n.organizationMode,n[Ji[n.organizationMode]],u.map(C=>C.id)),m=new Set(n.hiddenGroups),f=[],h=[],g=um;for(let C of d){let x=l.get(C);if(x===void 0)continue;let y=a.get(C)??[];if(y.length===0&&(C===Pt||C===_t&&n.organizationMode!=="chronological"))continue;let I=C!==Pt&&m.has(C);if(s.needYouOnly){y.some(fu)&&f.push(M4(s,x,y,I));continue}let T=M4(s,x,y,I);I?(h.push(T),g=S4(g,T.counters)):f.push(T)}return{groups:f,more:h,moreCounters:g,order:d,needYouCount:mu(t)}}function N4(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function m_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function hu(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?hu(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return m_(e,t)?e:t;if(N4(e)&&N4(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?hu(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function h_(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:hu(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function z4(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:hu(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function g_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function O4(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:z4(i,o,{rows:h_(i.rows,o.rows)})});return g_(e,r)?e:r}function j4(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return z4(e,t,{groups:O4(e.groups,n,t.groups),more:O4(e.more,n,t.more)})}var gu=ve({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},treeOf:()=>{}});var fm=globalThis.__bbPluginRuntime;if(fm==null||fm.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Cu=fm.radixAlertDialog,BA="default"in Cu?Cu.default:Cu,{Action:mm,AlertDialog:UA,AlertDialogAction:GA,AlertDialogCancel:KA,AlertDialogContent:qA,AlertDialogDescription:YA,AlertDialogOverlay:JA,AlertDialogPortal:XA,AlertDialogTitle:QA,AlertDialogTrigger:e$,Cancel:hm,Content:gm,Description:Cm,Overlay:km,Portal:Z4,Root:W4,Title:ym,Trigger:C_,createAlertDialogScope:t$}=Cu;var V4=W4;var y_=Z4,F4=H(({className:e,...t},n)=>p(km,{className:w("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...$e()}));F4.displayName=km.displayName;var bm=H(({className:e,...t},n)=>v(y_,{children:[p(F4,{}),p(gm,{ref:n,...$e(),className:w("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));bm.displayName=gm.displayName;var vm=({className:e,...t})=>p("div",{className:w("flex flex-col space-y-2 text-center sm:text-left",e),...t});vm.displayName="AlertDialogHeader";var wm=({className:e,...t})=>p("div",{className:w("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});wm.displayName="AlertDialogFooter";var xm=H(({className:e,...t},n)=>p(ym,{ref:n,className:w("text-lg font-semibold",e),...t}));xm.displayName=ym.displayName;var Im=H(({className:e,...t},n)=>p(Cm,{ref:n,className:w("text-sm text-muted-foreground",e),...t}));Im.displayName=Cm.displayName;var Sm=H(({className:e,...t},n)=>p(mm,{ref:n,className:w(Fs(),e),...t}));Sm.displayName=mm.displayName;var _m=H(({className:e,...t},n)=>p(hm,{ref:n,className:w(Fs({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));_m.displayName=hm.displayName;var Pm=globalThis.__bbPluginRuntime;if(Pm==null||Pm.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var ku=Pm.radixDialog,a$="default"in ku?ku.default:ku,{Close:Lm,Content:H4,Description:Mm,Dialog:c$,DialogClose:u$,DialogContent:l$,DialogDescription:d$,DialogOverlay:p$,DialogPortal:f$,DialogTitle:m$,DialogTrigger:h$,Overlay:Rm,Portal:B4,Root:U4,Title:G4,Trigger:K4,WarningProvider:g$,createDialogScope:C$}=ku;var v_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},ns=H(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let f=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=f!==void 0?{strokeWidth:f,stroke:"currentColor"}:{},g={ref:m,...v_,width:t,height:t,color:c||e,className:o,...h,...d},x=[...s&&i?i:a].sort(([,y],[,I])=>{let T=y.opacity!==void 0;return I.opacity!==void 0?1:T?-1:0}).map(([y,I])=>{let T=I.opacity!==void 0,L=T&&!l?I.opacity:void 0,$=u?{...I.stroke!==void 0?{stroke:T?u:c||e}:{fill:T?u:c||e}}:{};return $o(y,{...I,...h,...$,opacity:L,key:I.key})});return $o("svg",g,x)});ns.displayName="HugeiconsIcon";var q4=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Y4=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var J4=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var X4=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Q4=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var e8=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var t8=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var Tm=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var n8=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var r8=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var yu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var o8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var i8=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var s8=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var a8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Am=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var c8=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var u8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var l8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var d8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var p8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var f8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var m8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var h8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var g8=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];$m();var C8=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var k8=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var y8=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var b8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var v8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var w8=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var x8=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var I8=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var S8=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var _8=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var P8=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var L8=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var M8=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var R8=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var T8=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var A8=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var $8=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var D8=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var E8=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var N8=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var O8=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];zm();var P_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],L_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],VC={AlertCircle:Y4,AlertTriangle:q4,Archive:J4,Bot:t8,Bug:r8,Check:T8,ChevronDown:X4,ChevronLeft:Q4,ChevronRight:e8,Circle:a8,CircleCheck:s8,CircleQuestion:b8,CircleX:o8,ClosePluginPane:yu,CloseThreadPane:yu,Code:M8,ComputerTerminal01:Am,Copy:c8,Download:d8,Edit:p8,FilterHorizontal:f8,Folder:C8,FolderExport:h8,FolderGit:g8,FolderPlus:m8,FolderSync:k8,FolderUnknown:y8,Folder02:bu,Info:v8,ListTodo:i8,Loading:w8,MessageQuestion:x8,MessageCirclePlus:Tm,MessageSquarePlus:Tm,MessageSquare:n8,MoreHorizontal:I8,PanelLeft:P8,Search:S8,SectionAdd:P_,SectionMove:L_,Settings:_8,SlidersHorizontal:L8,Spinner:u8,Target:R8,Terminal:Am,Toolbox:A8,ToolCase:$8,Trash2:l8,Unavailable:E8,UserRoundPlus:D8,Workflow:N8,X:yu,Zap:O8},M_=Object.keys(VC),R_=[...M_,...Z8],T_=VC,Wm=null;function A_(){return vu()!==null?Promise.resolve():(Wm??=Promise.resolve().then(()=>(ZC(),jC)).then(()=>{},e=>{throw Wm=null,e}),Wm)}var $_=[],D_=new Set(R_),WC=ve([]);function Vm(e){return D_.has(e)}var Hm=class extends Uu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Ot({name:e,fallback:t="Zap",...n}){let r=we(WC),o=en(Nm,()=>rs(e),()=>rs(e)),i=en(Nm,()=>rs(t),()=>rs(t)),s=en(Om,()=>os(e),()=>os(e)),a=en(Om,()=>os(t),()=>os(t)),c=o!==void 0||Vm(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?p(Fm,{name:Vm(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?p(WC.Provider,{value:[...r,u],children:p(Hm,{fallback:p(Fm,{name:"Zap",...n}),children:p("span",{className:w("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:p(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?p(E_,{url:d,resolved:u,...n}):p(Fm,{name:Vm(u)?u:"Zap",...n})}function E_({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return p("span",{className:w("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Fm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=T_[e];return i!==void 0?p(ns,{icon:i,className:w(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):p(N_,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function N_({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=en(V8,vu,vu)?.[e];return s===void 0&&A_().catch(()=>{}),p(ns,{icon:s??$_,className:w(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var FC=ve({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function is(){return we(FC)}function ss({children:e,open:t,onOpenChange:n,...r}){let o=Mr(t,n),i=kn(),s=kn(),[a,c]=A(i),[u,l]=A(s),d=E(g=>(c(g),()=>c(i)),[i]),m=E(g=>(l(g),()=>l(s)),[s]),f=G(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=f.isCompactViewport?e:p(U4,{open:f.open,onOpenChange:f.onOpenChange,...r,children:e});return p(FC.Provider,{value:f,children:h})}var O_=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=is();return i?p(Kn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):p(K4,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),nn(c)},...r,children:t})});O_.displayName="DialogTrigger";var z_=H(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=is();return i?p(e?bn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):p(Lm,{ref:o,asChild:e,onClick:t,...r,children:n})});z_.displayName="DialogClose";var HC=H(({className:e,...t},n)=>p(Rm,{ref:n,...$e(),className:w("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));HC.displayName=Rm.displayName;var yo=H(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=is();let m=$e();if(a){let f=Rr(i);return p(Tr,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:p("div",{ref:s,className:w("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...f,children:t})})}return v(B4,{children:[p(HC,{}),v(H4,{ref:s,...m,onCloseAutoFocus:f=>{o?.(f),queueMicrotask(()=>r?.())},className:w("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...i,children:[t,n?null:v(Lm,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[p(Ot,{name:"X",className:"h-4 w-4"}),p("span",{className:"sr-only",children:"Close"})]})]})]})});yo.displayName="DialogContent";var bo=({className:e,...t})=>p("div",{className:w("flex flex-col space-y-1.5 text-left",e),...t});bo.displayName="DialogHeader";var xu=({className:e,...t})=>p("div",{className:w("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});xu.displayName="DialogFooter";var vo=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=is(),u=n??a;if(it(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:w("text-base font-semibold leading-none tracking-tight",t),...o};return e?p(bn,{ref:i,...l,children:r}):p("h2",{ref:i,...l,children:r})}return p(G4,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:w("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});vo.displayName="DialogTitle";var Iu=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=is(),u=n??a;if(it(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:w("text-sm text-muted-foreground",t),...o};return e?p(bn,{ref:i,...l,children:r}):p("p",{ref:i,...l,children:r})}return p(Mm,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:w("text-sm text-muted-foreground",t),...o,children:r})});Iu.displayName=Mm.displayName;var BC="text-sm max-md:pointer-coarse:text-base";var On="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",UC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",Lj=`${UC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,Mj=`${UC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var GC="h-9 max-md:pointer-coarse:h-10";var Su=H(({className:e,type:t,...n},r)=>p("input",{type:t,autoComplete:"off",className:w(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${Ws} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,GC,BC,e),ref:r,...n}));Su.displayName="Input";function KC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return p(ss,{open:e,onOpenChange:n,children:v(yo,{className:"max-w-sm",children:[v(bo,{children:[p(vo,{children:"Customize list"}),p(Iu,{children:"Hidden groups move into More. Their counters still show there."})]}),p("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>v("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[p("span",{className:w("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),p(Xe,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:p(F,{name:z.moveUp,"aria-hidden":!0})}),p(Xe,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:p(F,{name:z.collapse,"aria-hidden":!0})}),p(Xe,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:p(F,{name:i.hidden?z.hidden:z.show,"aria-hidden":!0})})]},i.id))}),p(xu,{children:p(Xe,{onClick:()=>n(!1),children:"Done"})})]})})}function qC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=A(""),[i,s]=A(!1);return N(()=>{e&&o("")},[e]),p(ss,{open:e,onOpenChange:t,children:p(yo,{className:"max-w-sm",children:v("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[p(bo,{children:p(vo,{children:"New section"})}),p(Su,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),v(xu,{children:[p(Xe,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),p(Xe,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function YC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return p(V4,{open:e,onOpenChange:i,children:v(bm,{children:[v(vm,{children:[p(xm,{children:t}),p(Im,{children:n})]}),v(wm,{children:[p(_m,{children:"Cancel"}),p(Sm,{className:w(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function JC({open:e,title:t,onOpenChange:n,children:r}){return p(ss,{open:e,onOpenChange:n,children:v(yo,{className:"max-w-sm",children:[p(bo,{children:p(vo,{className:"sr-only",children:t})}),r]})})}function XC({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=A(0);N(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return p(ss,{open:e,onOpenChange:i,children:v(yo,{className:"max-w-sm",children:[v(bo,{children:[v(vo,{children:["Move \u201C",t,"\u201D"]}),p(Iu,{children:"Nest it under another thread, or move it to the top level."})]}),p(Su,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),v("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?p("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>v("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:w("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[p("span",{className:"truncate",children:l.label}),l.detail?p("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function QC(){let e=Cn(),[t,n]=A({}),r=gn(),o=R(!1),i=E(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return N(i,[i]),N(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),hn(En.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:Tg.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function ek(e){let t=vr(),[n,r]=A(()=>new Map),o=R(new Set);return N(()=>{for(let i of e){if(o.current.has(i))continue;o.current.add(i);let s=a=>r(c=>new Map(c).set(i,a));t.projects.get({projectId:i}).then(async a=>{let c=P4(a.sources);return c===null?null:(await t.projects.branches({projectId:i,hostId:c,limit:"1"})).defaultBranch??null}).then(s,()=>s(null))}},[e,t]),n}var j_={defaultProviderId:null,primaryHostId:null};function Z_(e){return{defaultProviderId:e.generalSettings.defaultProviderId??e.serverAccess.defaultProviderId??null,primaryHostId:e.primaryHostId}}function tk(){let e=vr(),[t,n]=A(j_);return N(()=>{let r=!1;return Promise.resolve().then(()=>e.system.config()).then(o=>{r||n(Z_(o))},()=>{}),()=>{r=!0}},[e]),t}function nk(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||X2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var W_=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function rk(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=W_.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function ok(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function wo(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function ik(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function sk(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var _u={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},ak="animate-shine-icon motion-reduce:animate-none",V_="animate-spin motion-reduce:animate-none";function ck({label:e,className:t}){return p("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:w("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function F_({className:e}){return p("span",{"aria-hidden":!0,className:w("inline-block size-2.5 shrink-0 rounded-full border-[1.5px] border-current opacity-50",e)})}function as({glyph:e,label:t,className:n}){return e.icon==="ring"?p(F_,{className:_u[e.tone]}):e.icon==="dot"?p(ck,{label:t}):p(F,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:w("size-4 shrink-0",_u[e.tone],e.spin&&V_,e.shine&&ak,n)})}function uk({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return p(F,{name:e.icon,"aria-label":e.label,className:w("size-4 shrink-0",t,e.tone==="running"&&ak)})}var H_={attention:"text-attention",destructive:"text-destructive",muted:"text-muted-foreground"};function Pu({note:e}){return v(ct,{children:[p("span",{className:H_[e.tone],children:e.text===""?e.prefix:`${e.prefix}:`}),e.text===""?null:` ${e.text}`]})}function Lu({flag:e,className:t}){return p(as,{glyph:uu[e],className:t})}function lk({flag:e}){return uu[e].icon==="dot"?p(ck,{className:"size-[5px]"}):p(Lu,{flag:e,className:"size-3"})}var B_=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} waiting on you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function Mu({counters:e,className:t}){let n=B_.filter(r=>e[r.key]>0);return n.length===0?null:p("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:w("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>v("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[p(Lu,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var U_=500,G_=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),cs=!1,Ru=0,dk=0;function pk(e){cs=G_.has(e.key)}function fk(){cs=!1,Ru+=1}function mk(){Ru+=1}function hk(e,t){let[n,r]=A(!1),o=R(null),i=R(null),s=R(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=Ru;o.current=setTimeout(()=>{o.current=null,Ru===u&&r(!0)},U_)};return N(()=>(dk++===0&&(cs=!1,document.addEventListener("keydown",pk,!0),document.addEventListener("pointerdown",fk,!0)),()=>{a(),--dk===0&&(document.removeEventListener("keydown",pk,!0),document.removeEventListener("pointerdown",fk,!0))}),[]),N(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{cs&&(cs=!1,c())},onBlur:a}}}var Bm=globalThis.__bbPluginRuntime;if(Bm==null||Bm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Tu=Bm.radixDropdownMenu,fZ="default"in Tu?Tu.default:Tu,{Arrow:mZ,CheckboxItem:gk,Content:Ck,DropdownMenu:hZ,DropdownMenuArrow:gZ,DropdownMenuCheckboxItem:CZ,DropdownMenuContent:kZ,DropdownMenuGroup:yZ,DropdownMenuItem:bZ,DropdownMenuItemIndicator:vZ,DropdownMenuLabel:wZ,DropdownMenuPortal:xZ,DropdownMenuRadioGroup:IZ,DropdownMenuRadioItem:SZ,DropdownMenuSeparator:_Z,DropdownMenuSub:PZ,DropdownMenuSubContent:LZ,DropdownMenuSubTrigger:MZ,DropdownMenuTrigger:RZ,Group:kk,Item:yk,ItemIndicator:Um,Label:bk,Portal:vk,RadioGroup:K_,RadioItem:Gm,Root:wk,Separator:xk,Sub:Ik,SubContent:Km,SubTrigger:qm,Trigger:Sk,createDropdownMenuScope:TZ}=Tu;var Y_=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),un="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",_k=ve({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function Au({children:e}){let[t,n]=A(null),r=G(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return p(_k.Provider,{value:r,children:e})}function qt(e){let t=kn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=we(_k),i=n===t,s=R(e);s.current=e;let a=E(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=E(u=>{s.current?.onKeyDown?.(u),Y_.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var J_="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",X_="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",Q_="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Ym=ve({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function zn(){return we(Ym)}function xo({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Mr(t,n,r);return i.isCompactViewport?p(Ym.Provider,{value:i,children:e}):p(wk,{open:i.open,onOpenChange:i.onOpenChange,...o,children:p(Ym.Provider,{value:i,children:e})})}var hr=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=zn();return i?p(Kn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):p(Sk,{ref:o,asChild:e,className:vn(n),onMouseDown:c=>{s||wn(),nn(c)},...r,children:t})});hr.displayName="DropdownMenuTrigger";var gr=H(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=zn(),l=$e();if(a){let{style:d,...m}=Rr(i);return p(Tr,{open:c,onOpenChange:u,srLabel:r??"Menu",children:p("div",{ref:s,className:w("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Ys},children:n})})}return p(vk,{children:p(Ck,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{_5()||d.preventDefault(),o?.(d)},className:w("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i,children:p(Au,{children:n})})})});gr.displayName="DropdownMenuContent";function Pk(){return new Event("select",{cancelable:!0})}var Ee=H(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...f},h)=>{let{isCompactViewport:g,onOpenChange:C}=zn(),{hoverProps:x}=qt({onPointerEnter:u,onKeyDown:l});return g?p("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:w("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&Q_,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=Pk();r?.(y),y.defaultPrevented||C(!1)},children:c}):p(yk,{ref:h,className:w("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Ft,n==="destructive"?X_:J_,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...f,...x,children:c})});Ee.displayName="DropdownMenuItem";var eP=H(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=zn(),{hoverProps:f}=qt({onPointerEnter:a,onKeyDown:c});return d?v("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:w("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=Pk();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[p("span",{className:w("absolute right-2 flex items-center justify-center",On),children:(n===!0||n==="indeterminate")&&p(Ot,{name:"Check",className:On})}),t]}):v(gk,{ref:l,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ft,un,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...f,children:[p("span",{className:w("absolute right-2 flex items-center justify-center",On),children:p(Um,{children:p(Ot,{name:"Check",className:On})})}),t]})});eP.displayName="DropdownMenuCheckboxItem";var tP=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=zn(),{hoverProps:a}=qt({onPointerEnter:n,onKeyDown:r});return s?null:v(Gm,{ref:i,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ft,un,e),...o,...a,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(Um,{children:p(Ot,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});tP.displayName=Gm.displayName;var nP=H(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=zn();return i?p("div",{ref:o,className:w("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):p(bk,{ref:o,className:w("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});nP.displayName="DropdownMenuLabel";var us=H(({className:e,...t},n)=>{let{isCompactViewport:r}=zn();return r?p("hr",{ref:n,className:w("-mx-1 my-1 h-px border-0 bg-muted",e)}):p(xk,{ref:n,className:w("-mx-1 my-1 h-px bg-muted",e),...t})});us.displayName="DropdownMenuSeparator";var rP=H(({children:e,...t},n)=>{let{isCompactViewport:r}=zn();return r?p("div",{ref:n,role:"group",...t,children:e}):p(kk,{ref:n,...t,children:e})});rP.displayName="DropdownMenuGroup";var Lk=Ik,Jm=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=qt({onPointerEnter:r,onKeyDown:o});return v(qm,{ref:s,className:w("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Ft,un,t&&"pl-8",e),...i,...a,children:[n,p(Ot,{name:"ChevronRight",className:"ml-auto"})]})});Jm.displayName=qm.displayName;var Xm=H(({className:e,...t},n)=>p(Km,{ref:n,...$e(),className:w("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));Xm.displayName=Km.displayName;var oP=({className:e,...t})=>p("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t});oP.displayName="DropdownMenuShortcut";function Mk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var iP=25;function Rk(e,t=iP){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function sP(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${wo(n.sendAt)}`:r}function Tk(e,t){let n=[sP(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}var aP={"waits-on-you":"waiting on you below","unread-failed":"failed below","queue-failed":"queued message failed below",offline:"machine offline below",working:"working below",unread:"unread below"};function Qm(e,t){let n=t.count===0?"hidden child threads":`${t.count} ${t.count===1?"child thread":"child threads"}`,r=t.flag===null?"":`, ${aP[t.flag]}`;return`${t.expanded?"Collapse":"Show"} ${n} of ${e}${r}`}function Ak(e){let t=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} more ${t}`}:{label:`${e.count} more ${t}`,ariaLabel:`Show ${e.count} more ${t}`}}function $k(e){let t=e.count===1?"settled thread tree":"settled thread trees";return{label:e.expanded?"Settled":`Settled (${e.count})`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} ${t}`}}function Dk(e){switch(e){case"project":return"Projects";case"chronological":return"Sections";case"machine":return"Machines"}}function Io(e){return 8+e*12}var cP=600;function uP(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function So({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=A(e),[a,c]=A(!1),u=R(null),l=R(!1),d=R(!1),m=R(!1);N(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),N(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},cP);return()=>clearTimeout(h)},[]);let f=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(C){at.error("Couldn't rename",{description:C instanceof Error?C.message:String(C)})}finally{r()}};return v(ct,{children:[p("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),f(!0)):h.key==="Escape"&&(h.preventDefault(),f(!1)))},onBlur:h=>{if(!d.current&&!m.current&&uP(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}f(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:w("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?p("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var eh=globalThis.__bbPluginRuntime;if(eh==null||eh.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var $u=eh.radixContextMenu,QZ="default"in $u?$u.default:$u,{Arrow:eW,CheckboxItem:th,Content:nh,ContextMenu:tW,ContextMenuArrow:nW,ContextMenuCheckboxItem:rW,ContextMenuContent:oW,ContextMenuGroup:iW,ContextMenuItem:sW,ContextMenuItemIndicator:aW,ContextMenuLabel:cW,ContextMenuPortal:uW,ContextMenuRadioGroup:lW,ContextMenuRadioItem:dW,ContextMenuSeparator:pW,ContextMenuSub:fW,ContextMenuSubContent:mW,ContextMenuSubTrigger:hW,ContextMenuTrigger:gW,Group:lP,Item:rh,ItemIndicator:oh,Label:ih,Portal:Ek,RadioGroup:dP,RadioItem:sh,Root:Nk,Separator:ah,Sub:Ok,SubContent:ch,SubTrigger:uh,Trigger:zk,createContextMenuScope:CW}=$u;var jk="z-[70]",Zk=Nk,Wk=zk;var Vk=Ok;var lh=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=qt({onPointerEnter:r,onKeyDown:o});return v(uh,{ref:s,className:w("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Ft,un,t&&"pl-8",e),...i,...a,children:[n,p(Ot,{name:"ChevronRight",className:"ml-auto"})]})});lh.displayName=uh.displayName;var dh=H(({className:e,...t},n)=>p(ch,{ref:n,...$e(),className:w(jk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));dh.displayName=ch.displayName;var ph=H(({className:e,children:t,...n},r)=>p(Ek,{children:p(nh,{ref:r,...$e(),className:w(jk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:p(Au,{children:t})})}));ph.displayName=nh.displayName;var Du=H(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=qt({onPointerEnter:n,onKeyDown:r});return p(rh,{ref:i,className:w("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Ft,un,t&&"pl-8",e),...o,...s})});Du.displayName=rh.displayName;var fP=H(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=qt({onPointerEnter:r,onKeyDown:o});return v(th,{ref:s,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ft,un,e),checked:n,...i,...a,children:[p("span",{className:w("absolute right-2 flex items-center justify-center",On),children:p(oh,{children:p(Ot,{name:"Check",className:On})})}),t]})});fP.displayName=th.displayName;var mP=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=qt({onPointerEnter:n,onKeyDown:r});return v(sh,{ref:i,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ft,un,e),...o,...s,children:[p("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:p(oh,{children:p(Ot,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});mP.displayName=sh.displayName;var hP=H(({className:e,inset:t,...n},r)=>p(ih,{ref:r,className:w("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));hP.displayName=ih.displayName;var fh=H(({className:e,...t},n)=>p(ah,{ref:n,className:w("-mx-1 my-1 h-px bg-muted",e),...t}));fh.displayName=ah.displayName;function gP({className:e,...t}){return p("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t})}gP.displayName="ContextMenuShortcut";var mh=globalThis.__bbPluginRuntime;if(mh==null||mh.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Eu=mh.radixHoverCard,_W="default"in Eu?Eu.default:Eu,{Arrow:PW,Content:hh,HoverCard:LW,HoverCardArrow:MW,HoverCardContent:RW,HoverCardPortal:TW,HoverCardTrigger:AW,Portal:Fk,Root:Hk,Trigger:Bk,createHoverCardScope:$W}=Eu;var Uk=Hk,Gk=Bk,gh=H(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=$e();return p(Fk,{children:p(hh,{ref:o,align:t,sideOffset:n,...i,className:w("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});gh.displayName=hh.displayName;function Nu(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function kP(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function Kk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=Nu(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=Nu(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=Nu(r-kP(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function qk(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function Yk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:Nu(r-o)}var Jk=["now","<1m","59m","23h","6d","99w"];function Ou({display:e,mode:t="muted",className:n}){let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return p("span",{title:e.name,className:w("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:p(Cs,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return p("span",{role:"img","aria-label":e.name,title:e.name,className:w("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function Ch(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var yP={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function zu(e){let t=yP[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function ju({threadId:e}){let{pullRequest:t}=br(e);return t===null?null:v("span",{title:zu(t),"aria-label":zu(t),className:w("shrink-0 text-[11px] tabular-nums",Ch(t.attention)),children:["#",t.number]})}function Zu({item:e}){return v(ct,{children:[p(F,{name:e.icon,"aria-hidden":!0,className:"size-4"}),p("span",{children:e.label})]})}function Xk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Qk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return p(ph,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>v(wr,{children:[a.separated?p(fh,{}):null,a.action==="move-to-section"?v(Vk,{children:[p(lh,{children:p(Zu,{item:a})}),p(dh,{children:Xk(t).map(c=>v(Du,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?p(F,{name:z.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):p(Du,{className:w(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:p(Zu,{item:a})})]},a.action))})}function ey({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return p(gr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>v(wr,{children:[i.separated?p(us,{}):null,i.action==="move-to-section"?v(Lk,{children:[p(Jm,{children:p(Zu,{item:i})}),p(Xm,{children:Xk(t).map(s=>v(Ee,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?p(F,{name:z.check,"aria-hidden":!0,className:"size-4"}):p("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):p(Ee,{className:w(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:p(Zu,{item:i})})]},i.action))})}function ty({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return p("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:w("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return p("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function ln({label:e,title:t,children:n}){return v("div",{className:"flex min-w-0 gap-2",title:t,children:[p("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),p("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function bP(e,t){let[n,r]=A("loading"),{id:o,status:i}=t.thread;return N(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function vP({threadId:e}){let{pullRequest:t}=br(e);return t===null?null:p(ln,{label:"Pull request",children:p("span",{className:Ch(t.attention),children:zu(t)})})}function Wu({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=bP(t,e),a=we(gu),c=ik(e.state.kind,Yk(e.state.kind,o.id,a.stamps,a.now)),u=rk(ok(a.treeOf(o.id),o.id)),l=o.environment,d=qk(o,a.stamps.finishedAt),m=Xg(a.notes[o.id]);return v("div",{className:"flex flex-col gap-2 text-xs",children:[p("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),v("div",{className:"flex items-center gap-1.5",children:[p(as,{glyph:e.state.glyph,className:"size-3.5"}),v("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${wo(e.state.sendAt)}`:""]})]}),e.note!==null?p("p",{className:"break-words leading-snug",children:p(Pu,{note:e.note})}):null,v("dl",{className:"flex flex-col gap-1",children:[p(ln,{label:"Harness",children:v("span",{className:"inline-flex items-center gap-1.5",children:[p(Ou,{display:i,mode:t.harnessIcon}),i.name]})}),p(ln,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?p(ln,{label:"Branch",children:v("span",{className:"inline-flex items-center gap-1",children:[p(F,{name:l.isWorktree?z.worktree:z.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?p(ln,{label:"Machine",children:o.host.name}):null,u!==null?p(ln,{label:"Children",children:u}):null,n?p(vP,{threadId:o.id}):null,m!==null&&e.note===null?p(ln,{label:"Last reply",children:p("span",{className:"line-clamp-2",children:m.text})}):null,p(ln,{label:"Created",children:wo(o.createdAt)}),d!==null?p(ln,{label:"Finished",children:wo(d)}):null]}),r?v("div",{className:"flex gap-2 pt-1",children:[v(Xe,{size:"sm",onClick:r.open,children:[p(F,{name:z.open,"aria-hidden":!0}),"Open"]}),v(Xe,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[p(F,{name:e.unread?z.markRead:z.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var wP=400,xP=700,IP=10,ls=null;function SP(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var ny="text-[color:color-mix(in_oklch,var(--foreground)_68%,var(--sidebar))]",zt="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function _P(e){let t=Ph();return G(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var ry=He(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,f=m.thread,h=f.archivedAt!==null||f.isArchived,g=n.compact,C=Th(f.id),x=Rh(f.id),{hasUnsubmittedDraft:y}=Lh(f.id),I=Ih(f.id),T=_P(f.id),[L,$]=A(!1),[O,B]=A(!1),ne=hk(s,!g&&!a&&!L&&!O),de=R({pressed:!1,keyed:!1}),ie=R(null),Z=R(null),oe={threadId:f.id,parentThreadId:f.parentThreadId,sectionId:f.sectionId,pinned:f.pinnedAt!==null||f.isPinned},re=Ds({id:`thread:${f.id}:${r}`,data:{kind:"thread",thread:oe,groupId:r},disabled:a||g}),Ne=Es({id:`drop-thread:${f.id}:${r}`,data:{kind:"thread",threadId:f.id,inPinned:o,groupId:r}}),kt=E(W=>{re.setNodeRef(W),Ne.setNodeRef(W)},[re.setNodeRef,Ne.setNodeRef]),Ue=n.provider(f.providerId),jn=Wg(m.state,x),yt=Tk(t,{providerName:Ue.name,pluginLabel:jn?x.label:null,hasDraft:y}),Lt=h?null:Kk(f,m.flags.has("working"),{startedAt:u===void 0?{}:{[f.id]:u},finishedAt:l===void 0?{}:{[f.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),dn=o4({thread:f,unread:t.depth===0?t.treeUnread:m.unread,splitAvailable:I.isAvailable,isRoot:f.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),be=R(!1),je=R(!1),jt=(W,q)=>{if(W==="rename"){be.current=!0,je.current=!0,setTimeout(()=>{je.current=!1},1500);return}n.onMenuAction(W,f,q)};N(()=>{if(L||O||!be.current)return;let W=setTimeout(()=>{be.current&&(be.current=!1,n.setEditingId(f.id))},60);return()=>clearTimeout(W)},[L,O,n,f.id]);let Mt=W=>{je.current&&(je.current=!1,W.preventDefault(),be.current&&(be.current=!1,n.setEditingId(f.id)))},Ze=t.pullRequest!==null,Yt=T?p(ty,{panes:T,label:`${f.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):jn?p(uk,{status:x}):p("span",{title:m.state.label,className:"inline-flex",children:p(as,{glyph:m.state.glyph,label:m.state.label})}),Zn=W=>{if(a){W.preventDefault();return}if(I.isAvailable&&(W.metaKey||W.ctrlKey)){W.preventDefault(),n.onMenuAction("open-in-split",f);return}let q=Date.now();if(ls!==null&&ls.threadId===f.id&&q-ls.at<wP){ls=null,W.preventDefault(),n.setEditingId(f.id);return}ls={threadId:f.id,at:q},n.onNavigate()},Zt=()=>{Z.current!==null&&clearTimeout(Z.current.timer),Z.current=null},he=R(!1),bt=g?{onTouchStart:W=>{let q=W.touches[0];q!==void 0&&(Zt(),he.current=!1,Z.current={x:q.clientX,y:q.clientY,timer:setTimeout(()=>{Z.current=null,he.current=!0,SP(),$(!0)},xP)})},onTouchMove:W=>{let q=W.touches[0];Z.current===null||q===void 0||Math.hypot(q.clientX-Z.current.x,q.clientY-Z.current.y)>IP&&Zt()},onTouchEnd:W=>{Zt(),he.current&&W.preventDefault()},onTouchCancel:Zt,onContextMenu:W=>W.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},J=t.chip,Wn=Io(t.depth),Ge=t.note,Rt=Ge!==null||t.branchLine!==null,mt=t.dimmed&&!a,ot=L||O,pn=t.machine!==null&&C===null,fn=t.harness||pn,We=!g&&C===null,Jt=g?"":ot?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",Wt=v("div",{ref:kt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...re.attributes,...re.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:ne.rowProps.onPointerEnter,onPointerMove:ne.rowProps.onPointerMove,onPointerDown:W=>{ne.rowProps.onPointerDown(),a||I.splitProps.onPointerDown?.(W)},onPointerLeave:ne.rowProps.onPointerLeave,onFocus:ne.rowProps.onFocus,onBlur:ne.rowProps.onBlur,...bt,className:w("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",Rt?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&ot&&"bg-sidebar-accent",T&&!s&&"bb-sidebar-open-in-split-row",re.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Wn},children:[p("a",{ref:ie,href:f.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":f.id,"data-sidebar-rename-anchor":"","aria-label":yt,"aria-keyshortcuts":C?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:Zn,onDoubleClick:W=>{W.preventDefault(),n.setEditingId(f.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:Yt}),t.nested?p("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:w("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",Rt&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?p("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:p(F,{name:z.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,v("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?p(So,{initial:f.displayTitle,label:"Thread name",onSave:W=>n.onRename(f.id,W),onDone:()=>{n.setEditingId(null),ie.current?.focus()}}):v("span",{className:"flex min-w-0 items-center gap-1.5",children:[p("span",{title:f.displayTitle,className:w("min-w-0 truncate",t.bold?"font-semibold":"font-normal",t.depth>0&&"text-xs",mt&&`${ny} group-hover/row:text-foreground`),children:f.displayTitle}),t.pullRequest==="title"&&Rt?p(ju,{threadId:f.id}):null]}),!a&&Ge!==null?p("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:Jg(Ge),children:p(Pu,{note:Ge})}):t.branchLine!==null&&!a?p(PP,{row:t,branch:t.branchLine}):null]}),t.hiddenBadge?p("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:p(F,{name:z.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,t.pullRequest==="title"&&!Rt&&!a?p("span",{className:"pointer-events-none relative",children:p(ju,{threadId:f.id})}):null,!a&&(fn||We)?v("span",{className:"relative -ml-1.5 grid shrink-0 items-center",children:[fn?v("span",{className:w("flex items-center gap-1.5 pl-1.5 [grid-area:1/1] transition-opacity",C===null&&Jt),children:[t.harness?p("span",{className:"pointer-events-none relative inline-flex shrink-0",children:p(Ou,{display:Ue,mode:n.harnessIcon})}):null,pn?p("span",{title:`On ${t.machine}`,"aria-label":`On ${t.machine}`,className:"pointer-events-none max-w-20 truncate text-[11px] text-muted-foreground",children:t.machine}):null]}):null,We?v("span",{className:w("items-center justify-self-end gap-0.5 pl-1.5 [grid-area:1/1]",ot?"flex":"hidden group-hover/row:flex group-focus-within/row:flex"),children:[t.treeUnread?p("button",{type:"button","aria-label":"Mark read",title:"Mark read",className:zt,onPointerDown:W=>W.stopPropagation(),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onMenuAction("mark-read",f)},children:p(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"})}):null,p("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:zt,onPointerDown:W=>W.stopPropagation(),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",f)},children:p(F,{name:h?z.unarchive:z.archive,"aria-hidden":!0,className:"size-4"})})]}):null]}):null,a?null:v("span",{className:"relative flex shrink-0 items-center gap-1",children:[J!==null?v("button",{type:"button","aria-expanded":J.expanded,"aria-label":Qm(f.displayTitle,J),title:Qm(f.displayTitle,J),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onToggleChip(t)},onPointerDown:W=>W.stopPropagation(),onKeyDown:W=>W.stopPropagation(),className:w("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md px-0.5 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",J.flag===null?w("text-muted-foreground hover:text-foreground",mt&&ny):_u[Bg(J.flag)]),children:[J.flag!==null?p(lk,{flag:J.flag}):null,J.count>0?J.count:null,p(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 transition-transform duration-150",J.expanded&&"rotate-90")})]}):null,v("span",{"data-trailing-slot":"",className:"relative grid h-6 shrink-0 items-center",children:[p("span",{"aria-hidden":!0,className:"invisible w-6 [grid-area:1/1]"}),Jk.map(W=>p("span",{"aria-hidden":!0,className:"invisible text-[11px] font-medium tabular-nums [grid-area:1/1]",children:W},W)),C!==null?p("kbd",{"aria-hidden":!0,className:"pointer-events-none justify-self-end rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground [grid-area:1/1]",children:C.label}):v(ct,{children:[Lt!==null?p("span",{title:Lt.label,"aria-label":Lt.label,className:w("pointer-events-none justify-self-end text-[11px] tabular-nums transition-opacity [grid-area:1/1]",Lt.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",Jt),children:Lt.text}):null,p("span",{className:w("flex items-center justify-self-end transition-opacity [grid-area:1/1]",g?"relative":ot?"opacity-100":"opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:v(xo,{open:L,onOpenChange:$,children:[p(hr,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":zt,onPointerDown:W=>W.stopPropagation(),onClick:W=>W.stopPropagation(),children:p(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),p(ey,{items:dn,sections:n.sections,currentSectionId:f.sectionId,onAction:jt,onCloseAutoFocus:Mt})]})})]})]})]})]});return g?Wt:v(Zk,{onOpenChange:W=>{W&&(de.current={pressed:!1,keyed:!1}),B(W)},children:[v(Uk,{closeDelay:100,open:ne.open,onOpenChange:ne.onOpenChange,children:[p(Wk,{asChild:!0,disabled:a,children:p(Gk,{asChild:!0,children:Wt})}),!a&&!L&&!O?p(gh,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:p(Wu,{info:m,controller:n,showPullRequest:Ze})}):null]}),p(Qk,{items:dn,sections:n.sections,currentSectionId:f.sectionId,onAction:jt,onCloseAutoFocus:Mt,input:de})]})});function PP({row:e,branch:t}){let n=e.info.thread.environment;return v("span",{className:"flex min-w-0 items-center gap-1.5 text-xs leading-4 text-muted-foreground",children:[v("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[p(F,{name:n?.isWorktree?z.worktree:z.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),p("span",{className:"truncate",children:t}),n?.isWorktree?p("span",{className:"sr-only",children:" (worktree)"}):null]}),e.pullRequest==="second-line"?p(ju,{threadId:e.info.thread.id}):null]})}var oy=He(function({row:t,controller:n}){let{label:r,ariaLabel:o}=Ak(t);return v("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:"relative flex h-7 w-full items-center gap-1.5 rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring max-md:pointer-coarse:h-9",style:{paddingLeft:Io(t.depth)},children:[p("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:p(F,{name:z.more,className:"size-3.5"})}),r]})}),iy=He(function({row:t,controller:n}){let{label:r,ariaLabel:o}=$k(t);return v("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleSettled(t),className:"group/settled relative flex h-6 w-full items-center gap-2 rounded-md pr-1 text-left text-[11px] text-muted-foreground/70 outline-none hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring max-md:pointer-coarse:h-9",style:{paddingLeft:Io(0)},children:[p("span",{className:"shrink-0 tabular-nums",children:r}),p("span",{"aria-hidden":!0,className:"h-px flex-1 bg-border/60"}),p(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 shrink-0 transition-transform duration-150",t.expanded&&"rotate-90")})]})}),sy=He(function({row:t,controller:n,environmentProviders:r}){let[o,i]=A(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return v("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:Io(t.depth)},children:[p("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),p("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?p(Cs,{providerKind:"environment",provider:s,className:"size-3.5"}):p(F,{name:t.environmentProviderId===null?z.machine:z.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?p(So,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):p("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?p(Lu,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,p("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),p(F,{name:z.expand,"aria-hidden":!0,className:w("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),v(xo,{children:[p(hr,{asChild:!0,children:p("button",{type:"button","aria-label":"Environment actions",className:w(zt,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:p(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),v(gr,{align:"end",children:[v(Ee,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[p(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),v(Ee,{onSelect:()=>i(!0),children:[p(F,{name:z.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),v(Ee,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[p(F,{name:z.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var ay={compact:28,comfortable:44};function cy(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var LP=He(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=A(!1),[a,c]=A(!1),u=t.descriptor.label,l=Ds({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),d=n.compact,m=d?"":a?"opacity-0":"group-hover/header:opacity-0 group-focus-within/header:opacity-0",f=d?"":w("absolute top-1/2 right-0 -translate-y-1/2 pl-1",o?"bg-sidebar-accent":"bg-sidebar",a?"opacity-100":"pointer-events-none opacity-0 group-hover/header:pointer-events-auto group-hover/header:opacity-100 group-focus-within/header:pointer-events-auto group-focus-within/header:opacity-100");return v("div",{ref:l.setNodeRef,...l.attributes,...l.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",className:w("group/header sticky top-0 z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",l.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?p(So,{initial:u,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:h=>n.onRename(t,h),onDone:()=>s(!1),className:"text-xs"}):v("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${u} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:h=>h.stopPropagation(),onDoubleClick:()=>cy(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"min-w-0 truncate",title:u,children:u}),p(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:v("span",{className:"relative ml-auto flex shrink-0 items-center",children:[p(Mu,{counters:_4(t.counters,{collapsed:t.collapsed,more:!1}),className:w("transition-opacity",m)}),v("span",{className:w("flex items-center transition-opacity",f),children:[t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?p("button",{type:"button","aria-label":`New thread in ${u}`,title:`New thread in ${u}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:zt,onPointerDown:h=>h.stopPropagation(),onClick:()=>n.onNewThread(t),children:p(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"})}):null,v(xo,{open:a,onOpenChange:c,children:[p(hr,{asChild:!0,children:p("button",{type:"button","aria-label":`${u} actions`,className:zt,onPointerDown:h=>h.stopPropagation(),children:p(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),v(gr,{align:"end",className:"min-w-48",children:[v(Ee,{onSelect:()=>n.onMarkAllRead(t),children:[p(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?v(Ee,{onSelect:()=>n.onNewThread(t),children:[p(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?v(Ee,{onSelect:()=>n.onNewSection(),children:[p(F,{name:z.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,cy(t)?v(Ee,{onSelect:()=>s(!0),children:[p(F,{name:z.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,p(us,{}),t.descriptor.kind!=="pinned"?t.hidden?v(Ee,{onSelect:()=>n.onShow(t),children:[p(F,{name:z.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):v(Ee,{onSelect:()=>n.onHide(t),children:[p(F,{name:z.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,v(Ee,{onSelect:()=>n.onToggleArchived(),children:[p(F,{name:n.showArchived?z.check:z.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),v(Ee,{onSelect:()=>n.onCustomize(),children:[p(F,{name:z.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?v(Ee,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[p(F,{name:z.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})]})]})});function MP(e){return e.key}function RP({rows:e,forceMount:t,rowHeight:n,children:r}){let o=R(null),[i,s]=A(!0),a=R(null);N(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let f of m)f.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(f.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return p("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:Mk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function TP({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?ay.comfortable:ay.compact;return p("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:Rk(e).map(m=>p(RP,{rows:m,rowHeight:d,forceMount:r||m.some(f=>f.type==="thread"&&(f.info.thread.id===a||f.info.thread.id===c)),children:m.map(f=>f.type==="thread"?p(ry,{row:f,controller:o,groupId:t,inPinned:n,dropState:s.get(f.info.thread.id)??null,active:f.info.thread.id===a,editing:f.info.thread.id===c,now:u,startedAt:l.startedAt[f.info.thread.id],finishedAt:l.finishedAt[f.info.thread.id],pendingAt:l.pendingAt[f.info.thread.id]},f.key):f.type==="older"?p(oy,{row:f,controller:o},f.key):f.type==="settled"?p(iy,{row:f,controller:o},f.key):p(sy,{row:f,controller:o,environmentProviders:i},f.key))},MP(m[0])))})}var kh=He(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=Es({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return v("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[p(LP,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.rows.length===0?t.collapsed||t.rootIds.length>0?null:p("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):p(TP,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})});function uy(e){return e==="everything"}function ly(e){return e?"everything":"blocked"}function dy(e){return{chronologicalSort:e,sortDirection:lu(e)}}function py(e){let t=Nn(e.chronologicalSort),r=rm(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var AP="flex flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",$P="flex flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function DP(e){return w($P,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ds({label:e,children:t}){return v("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-2 py-1",children:[p("span",{className:"min-w-[5.5rem] shrink-0 whitespace-nowrap text-sm",children:e}),p("div",{className:"flex flex-1 gap-2",children:t})]})}function ps({label:e,options:t,current:n,onSelect:r}){return p("div",{role:"radiogroup","aria-label":e,className:AP,children:t.map(([o,i])=>p("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:DP(o===n),children:i},o))})}function fy({label:e,checked:t,onChange:n,description:r}){return v("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[p("span",{"aria-hidden":!0,className:w("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?p(F,{name:z.check,"aria-hidden":!0,className:"size-3"}):null}),v("span",{className:"flex min-w-0 flex-col",children:[p("span",{children:e}),r?p("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function yh({children:e}){return p("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function my({prefs:e,client:t,onPrefs:n,onClient:r}){let o=py(e);return v("div",{className:"flex flex-col",children:[p(yh,{children:"List"}),p(ds,{label:"Group by",children:p(ps,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),v(ds,{label:"Sort by",children:[p(ps,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:Nn(e.chronologicalSort),onSelect:i=>n(dy(i))}),p("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),p(fy,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),p(ds,{label:"Settle after",children:p(ps,{label:"Settle after",options:[["12h","12h"],["1d","1d"],["3d","3d"],["1w","1w"],["never","Never"]],current:e.settleAfter,onSelect:i=>n({settleAfter:i})})}),p(yh,{children:"Rows"}),p(ds,{label:"Density",children:p(ps,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),p(ds,{label:"Harness icon",children:p(ps,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),p(yh,{children:"Attention"}),p(fy,{label:"Needs attention counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:uy(e.childAttention),onChange:i=>n({childAttention:ly(i)})})]})}var EP="bg-[color-mix(in_oklab,var(--attention)_14%,transparent)] text-[color:color-mix(in_oklab,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklab,var(--attention)_24%,transparent)]",NP="bg-[color-mix(in_oklab,var(--attention)_30%,transparent)] text-foreground",hy=He(function({mode:t,needYouCount:n,needYouOnly:r,onToggleNeedYou:o,onMarkAllRead:i,prefs:s,client:a,onPrefs:c,onClient:u}){let[l,d]=A(!1);return v("div",{"data-sidebar":"list-header",className:"flex h-7 items-center gap-1 pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",children:[p("h2",{className:"min-w-0 flex-1 truncate font-medium select-none",children:Dk(t)}),n>0?v("button",{type:"button","aria-pressed":r,title:r?"Show every thread":"Show only what needs you",onClick:o,className:w("inline-flex h-5 shrink-0 items-center rounded-full px-1.5 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",r?NP:EP),children:[n," need you"]}):null,p("button",{type:"button","aria-label":"Mark all read",title:"Mark all read",className:zt,onClick:i,children:p(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"})}),v(Js,{open:l,onOpenChange:d,children:[p(Go,{asChild:!0,children:p("button",{type:"button","aria-label":"Thread Glance settings",title:"Settings",className:zt,children:p(F,{name:z.settings,"aria-hidden":!0,className:"size-4"})})}),p(Ko,{side:"bottom",align:"end",className:"w-80 max-w-[calc(100vw-1rem)] p-1",children:p(my,{prefs:s,client:a,onPrefs:c,onClient:u})})]})]})});var OP="thread-glance";function Cr(e){return e instanceof Error?e.message:String(e)}async function gy(e,t){try{await navigator.clipboard.writeText(e),at.success(t)}catch(n){at.error("Couldn't copy",{description:Cr(n)})}}var zP={activationConstraint:{distance:4}},jP={activationConstraint:{delay:200,tolerance:6}},ZP=e=>{let t=e.active.data.current?.kind,n=Jh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function Cy(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function bh(e){let[t,n]=A(0);return p(WP,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function WP({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=Ag(),[c,u]=Mg(),[l,d]=A(!1),m=Sh({experimental_lifecycles:i.showArchived?["active","archived"]:["active"]}),f=xh(),h=vr(),{providers:g}=wh(),{providers:C}=_h(),x=Mh(),{stamps:y,markSeen:I,clearSeen:T}=Eg(),L=$g(),$=QC(),O=G(()=>{let b=Object.values(L).filter(_=>_>Date.now());return b.length>0?Math.min(...b):null},[L]),B=Rg(O),[ne,de]=A(null),[ie,Z]=A(null),[oe,re]=A(null),[Ne,kt]=A(""),Ue=R(new Map),[jn,yt]=A(!1),[Lt,dn]=A(!1),[be,je]=A(null),[jt,Mt]=A(()=>new Map),[Ze,Yt]=A(null),Zn=R(new Map),Zt=m.status==="ready",he=m.threads,bt=G(()=>new Map(he.map(b=>[b.id,b])),[he]),J=G(()=>Zt?e4({threads:he,activeThreadId:e,finishedAt:y.finishedAt,seenAt:y.seenAt,draftIds:x,scheduled:L,now:B,notes:$,childAttention:i.childAttention}):null,[Zt,he,e,y.finishedAt,y.seenAt,x,L,B,$,i.childAttention]),{targets:Wn,prune:Ge}=N5(s?J:null,e),Rt=G(()=>[...new Set(he.flatMap(b=>b.environment?.branchName?[b.projectId]:[]))],[he]),mt=ek(Rt),ot=E(b=>mt.has(b.projectId)?mt.get(b.projectId)??null:void 0,[mt]),[pn,fn]=x4(),We=tk(),Jt=G(()=>J===null?[]:w4(J.infos.values(),ot),[J,ot]),Wt=G(()=>({now:B,settleAfter:i.settleAfter,startedAt:y.startedAt,finishedAt:y.finishedAt,pullRequestOf:b=>y4(b,ot(b),pn)}),[B,i.settleAfter,y.startedAt,y.finishedAt,ot,pn]),W=R(null),q=G(()=>J===null?null:j4(W.current,E4({forest:J,threads:he,projects:m.projects,sections:m.sections,prefs:i,activeThreadId:e,targets:Wn,settle:Wt,defaultProviderId:We.defaultProviderId,primaryHostId:We.primaryHostId,comfortable:c.density==="comfortable",defaultBranchOf:ot,needYouOnly:pm(l,mu(J))})),[J,he,m.projects,m.sections,i,e,Wn,Wt,We.defaultProviderId,We.primaryHostId,c.density,ot,l]);it(()=>{W.current=q},[q]),l&&J!==null&&!pm(l,mu(J))&&d(!1);let fs=R(null);N(()=>{let b=[fs.current,e].filter(_=>_!==null&&bt.get(_)?.parentThreadId!=null);fs.current=e,mk(),b.length>0&&I([...new Set(b)])},[e]);let ms=G(()=>c4(g),[g]),Xt=G(()=>{let b=new Map,_=new Map(g.map(M=>[M.id,M]));return M=>{let Q=b.get(M);if(Q===void 0){let te=_.get(M);Q={id:M,name:te?.displayName??M,provider:te?.logoUrl?te:null,mark:u4(M,ms)},b.set(M,Q)}return Q}},[g,ms]),ht=E(b=>{Object.keys(b.patch).length>0&&a(b.patch),b.drop!==null&&Ge(b.drop)},[a,Ge]),Qt=E((b,_,M)=>{let Q={activeThreadId:e,finishedAt:y.finishedAt,seenAt:y.seenAt},te=ke=>Fe=>at.error(ke,{description:Cr(Fe)});switch(b){case"open-in-split":f.open(_.id,{split:!0}),n();return;case"copy-link":gy(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":gy(_.id,"Thread ID copied");return;case"mark-read":{let ke=Ce.current.forest,Fe=ke===null?{read:[_.id],seen:[]}:g4(_.id,ke,Q);Fe.seen.length>0&&I(Fe.seen);for(let To of Fe.read)f.setRead(To,!0).catch(te("Couldn't mark read"));return}case"mark-unread":T([_.id]),f.setRead(_.id,!1).catch(te("Couldn't mark unread"));return;case"pin":case"unpin":f.setPinned(_.id,b==="pin").catch(te("Couldn't change the pin"));return;case"move-to-section":h.threads.update({threadId:_.id,sectionId:M??null}).catch(te("Couldn't move the thread"));return;case"rename":de(_.id);return;case"details":Z(_.id);return;case"move":kt(""),re(_.id);return;case"archive":f.archive(_.id);return;case"unarchive":h.threads.unarchive({threadId:_.id}).catch(te("Couldn't unarchive"));return;case"delete":setTimeout(()=>f.requestDelete(_.id),0);return}},[f,e,T,I,n,h,y.finishedAt,y.seenAt]),_o=R(Qt);it(()=>{_o.current=Qt});let Ce=R({forest:J,view:q,prefs:i,byId:bt,activeThreadId:e,stamps:y});it(()=>{Ce.current={forest:J,view:q,prefs:i,byId:bt,activeThreadId:e,stamps:y}});let Po=E((b,_)=>{let M=`${b}:${_}`,Q=Zn.current.get(M);if(Q===void 0){let te=Ce.current.byId.get(b),ke=te?.providerId??"",Fe=Ue.current.get(ke);Fe===void 0&&(Fe=h.providers.models(te?.host?{providerId:ke,hostId:te.host.id}:{providerId:ke}).then(Ao=>Ao.models,()=>[]),Ue.current.set(ke,Fe));let To=Fe;Q=h.threads.defaultExecutionOptions({threadId:b}).then(async Ao=>Ao===null?null:{model:sk(Ao.model,await To),reasoningLevel:Ao.reasoningLevel},()=>null),Zn.current.set(M,Q)}return Q},[h]),kr=J!==null&&q!==null,yr=G(()=>kr?{compact:t,comfortable:c.density==="comfortable",setEditingId:de,harnessIcon:i.harnessIcon,provider:Xt,sections:m.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:b=>{let{prefs:_,forest:M}=Ce.current;ht(d4(b,_,M))},onToggleOlder:b=>{let{prefs:_,forest:M}=Ce.current;ht(f4(b,_,M))},onToggleSettled:b=>ht(m4(b,Ce.current.prefs)),onToggleEnvironment:b=>{let{collapsedEnvironments:_}=Ce.current.prefs;a({collapsedEnvironments:_.includes(b)?_.filter(M=>M!==b):[..._,b]})},onMenuAction:(b,_,M)=>_o.current(b,_,M),onRename:(b,_)=>f.rename(b,_),loadModel:Po,openDetails:Z,onNewThreadInEnvironment:(b,_,M)=>{f.openNewThread({projectId:_,environmentId:b,...M?{sectionId:M}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(b,_)=>{await h.environments.update({environmentId:b,name:_})},onArchiveEnvironment:b=>{h.environments.archiveThreads({environmentId:b}).catch(_=>at.error("Couldn't archive the environment",{description:Cr(_)}))}}:null,[kr,t,c.density,i.harnessIcon,i.organizationMode,Xt,m.sections,n,ht,a,f,h,Po]),Lo=G(()=>({now:B,stamps:y,notes:$,treeOf:b=>J?.treeOf.get(b)}),[B,y,$,J]),Mo=G(()=>{let b=e===null||J===null?void 0:J.treeOf.get(e);return b===void 0?null:du(b.root.thread,{mode:i.organizationMode,projects:m.projects})},[e,J,i.organizationMode,m.projects]),hs=i.showArchived,Vn=E((b,_)=>{let{activeThreadId:M,stamps:Q}=Ce.current,te=cm(b,{activeThreadId:M,finishedAt:Q.finishedAt,seenAt:Q.seenAt}),ke=()=>{te.seen.length>0&&I(te.seen);for(let Fe of te.read)f.setRead(Fe,!0).catch(()=>{})};te.read.length===0?at(`Nothing unread in ${_}`):te.read.length>i4?je({title:`Mark ${te.read.length} threads read?`,description:`Every unread thread in ${_}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:ke}):ke()},[f,I]),Vu=E(()=>Vn(Ce.current.forest?.trees??[],"the list"),[Vn]),Fu=E(()=>d(b=>!b),[]),Ro=G(()=>{if(!kr)return null;let b=_=>Vn(_.rootIds.flatMap(M=>Ce.current.forest.treeOf.get(M)??[]),_.descriptor.label);return{compact:t,activeGroupId:Mo,showArchived:hs,onToggleArchived:()=>a({showArchived:!Ce.current.prefs.showArchived}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:M,forest:Q}=Ce.current;ht(h4(_,M,Q))},onNewThread:_=>{let M=_.descriptor;f.openNewThread({...M.newThreadProjectId?{projectId:M.newThreadProjectId}:{},...M.newThreadSectionId?{sectionId:M.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...Ce.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:Ce.current.prefs.hiddenGroups.filter(M=>M!==_.descriptor.id)}),onCustomize:()=>yt(!0),onRename:async(_,M)=>{_.descriptor.kind==="section"?await h.threadSections.update({id:_.descriptor.entityId,name:M}):_.descriptor.kind==="machine"&&await h.hosts.update({hostId:_.descriptor.entityId,name:M})},onRemove:_=>je({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{h.threadSections.delete({id:_.descriptor.entityId}).catch(M=>at.error("Couldn't remove the section",{description:Cr(M)}))}}),onMarkAllRead:b,onNewSection:()=>dn(!0)}},[kr,t,Mo,hs,i.organizationMode,ht,f,n,a,h,Vn]),Le=Yh(Ts(Vo,zP),Ts(Fo,jP),Ts(Lr)),Me=E(b=>{let _=b.over;if(_===null)return null;let M=_.data.current;if(M===void 0)return null;if(M.kind==="group")return{kind:"group",groupId:M.groupId};let Q=Cy(b),te=_.rect,ke=Q===null?.5:(Q-te.top)/Math.max(te.height,1),Fe=ke<.25?"before":ke>.75?"after":"middle";return{kind:"thread",threadId:M.threadId,zone:Fe,inPinned:M.inPinned??!1}},[]),Re=G(()=>{let b=new Map;for(let M of[...q?.groups??[],...q?.more??[]])for(let Q of M.rows)Q.type==="thread"&&b.set(Q.info.thread.id,M.descriptor.id);let _=q?.groups.find(M=>M.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:M=>bt.get(M)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(M=>M.type==="thread"&&M.depth===0?[M.info.thread.id]:[]),groupOfThread:M=>b.get(M)??"threads"}},[q,i.organizationMode,bt]),Vt=E(b=>{let _=b.active.data.current,M=Me(b);if(_?.kind!=="thread"||M===null){Mt(new Map),Yt(_?.kind==="group"&&M?.kind==="group"?M.groupId:null);return}if(M.kind==="group"){Mt(new Map),Yt(M.groupId);return}Yt(null);let Q=Q2(_.thread,M,Re),te=Q.type==="blocked"?"blocked":Q.type==="unchanged"?"unchanged":M.zone==="middle"?"valid":M.zone;Mt(new Map([[M.threadId,te]]))},[Me,Re]),Ke=E(async b=>{switch(b.type){case"nest":b.unpinFirst&&await h.threads.unpin({threadId:b.threadId}),await h.threads.update({threadId:b.threadId,parentThreadId:b.parentThreadId});return;case"move":await h.threads.update({threadId:b.threadId,sectionId:b.sectionId,...b.detach?{parentThreadId:null}:{}});return;case"detach":await h.threads.update({threadId:b.threadId,parentThreadId:null});return;case"pin":await f.setPinned(b.threadId,!0);return;case"unpin":await f.setPinned(b.threadId,!1);return;case"reorder-pinned":await h.threads.reorderPinned({threadId:b.threadId,previousThreadId:b.previousThreadId,nextThreadId:b.nextThreadId});return;case"blocked":case"unchanged":return}},[h,f]),qe=E(b=>{Mt(new Map),Yt(null);let _=b.active.data.current,M=Me(b);if(_===void 0||M===null||q===null)return;if(_.kind==="group"){if(M.kind!=="group"||M.groupId===_.groupId)return;let te=b.over.rect,ke=Cy(b),Fe=ke!==null&&ke>te.top+te.height/2?"after":"before",To=Ji[i.organizationMode];a({[To]:sm(q.order,_.groupId,M.groupId,Fe)});return}let Q=Q2(_.thread,M,Re);Ke(Q).catch(te=>at.error("Failed to move thread.",{description:Cr(te)}))},[Me,q,i.organizationMode,a,Re,Ke]),vt=E(()=>Mt(new Map),[]),mn=G(()=>{if(q===null)return[];let b=new Map([...q.groups,...q.more].map(_=>[_.descriptor.id,_]));return q.order.flatMap(_=>{let M=b.get(_);return M===void 0?[]:[{id:_,label:M.descriptor.label,hidden:M.hidden,hideable:_!=="pinned"}]})},[q]);if(m.status==="error")return v("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[p("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?p(Xe,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):p(Xe,{size:"sm",variant:"outline",onClick:()=>{h.plugins.reload({pluginId:OP}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(m.status==="loading"||!s||q===null||yr===null||Ro===null)return p("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(b=>p("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},b))});let fe=m.experimental_archived,Ve=ie===null?null:J?.infos.get(ie)??null,Te=oe===null?null:bt.get(oe)??null;return p(gu.Provider,{value:Lo,children:v("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[p(hy,{mode:i.organizationMode,needYouCount:q.needYouCount,needYouOnly:l,onToggleNeedYou:Fu,onMarkAllRead:Vu,prefs:i,client:c,onPrefs:a,onClient:u}),p(I4,{threadIds:Jt,onAnswer:fn}),he.length===0?p("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):v(u5,{sensors:Le,collisionDetection:ZP,onDragMove:Vt,onDragEnd:qe,onDragCancel:vt,children:[q.groups.map(b=>p(kh,{group:b,rowController:yr,groupController:Ro,environmentProviders:C,dropStates:jt,dropTargetGroupId:Ze,activeThreadId:e,editingId:ne,now:B,stamps:y},b.descriptor.id)),q.more.length>0?v(Js,{children:[p(Go,{asChild:!0,children:v("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${q.more.length} hidden ${q.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[p("span",{className:"flex-1 font-medium",children:"More"}),p(Mu,{counters:q.moreCounters}),p(F,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),p(Ko,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:p("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:q.more.map(b=>p(kh,{group:b,rowController:yr,groupController:Ro,environmentProviders:C,dropStates:jt,dropTargetGroupId:Ze,activeThreadId:e,editingId:ne,now:B,stamps:y,inOverflow:!0},b.descriptor.id))})})]}):null]}),fe!==null?v("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[fe.status==="loading"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):fe.status==="error"?p("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,fe.hasNextPage||fe.isFetchNextPageError?p(Xe,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:fe.isFetchingNextPage,className:w("h-7 text-xs text-muted-foreground"),onClick:()=>{fe.fetchNextPage()},children:fe.isFetchingNextPage?"Loading\u2026":fe.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,p(KC,{open:jn,items:mn,onOpenChange:yt,onToggleHidden:b=>a({hiddenGroups:i.hiddenGroups.includes(b)?i.hiddenGroups.filter(_=>_!==b):[...i.hiddenGroups,b]}),onMove:(b,_)=>{let M=q.order.indexOf(b),Q=q.order[M+_];Q!==void 0&&a({[Ji[i.organizationMode]]:sm(q.order,b,Q,_<0?"before":"after")})}}),p(qC,{open:Lt,onOpenChange:dn,onCreate:async b=>{try{await h.threadSections.create({name:b})}catch(_){throw at.error("Couldn't create the section",{description:Cr(_)}),_}}}),p(YC,{open:be!==null,title:be?.title??"",description:be?.description??"",confirmLabel:be?.confirmLabel??"OK",destructive:be?.destructive,onOpenChange:b=>!b&&je(null),onConfirm:()=>{be?.run(),je(null)}}),Ve!=null?p(JC,{open:!0,title:Ve.thread.displayTitle,onOpenChange:b=>!b&&Z(null),children:p(Wu,{info:Ve,controller:yr,showPullRequest:!0,actions:{open:()=>{Z(null),f.open(Ve.thread.id),n()},toggleRead:()=>Qt(Ve.unread?"mark-read":"mark-unread",Ve.thread)}})}):null,Te!==null&&J!==null?p(XC,{open:!0,title:Te.displayTitle,targets:nk(Te.id,J,Ne),query:Ne,onQueryChange:kt,onOpenChange:b=>!b&&re(null),onMove:b=>{(async()=>{b!==null&&(Te.pinnedAt!==null||Te.isPinned)&&await h.threads.unpin({threadId:Te.id}),await h.threads.update({threadId:Te.id,parentThreadId:b})})().catch(M=>at.error("Failed to move thread.",{description:Cr(M)}))}}):null]})})}var vH=vh(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:bh})});export{vH as default};
66
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let s of e.seen.entries()){let a=s[1];if(t===s[0]){i(s);continue}if(e.external){let u=e.external.registry.get(s[0])?.id;if(t!==s[0]&&u){i(s);continue}}if(e.metadataRegistry.get(s[0])?.id){i(s);continue}if(a.cycle){i(s);continue}a.count>1&&e.reused==="ref"&&i(s)}e.external&&(e.sharedDefsExtractedFor=e.external)}function A0(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let r of t){if(!r||typeof r!="object")return;A0(r);let o=Object.keys(r);if(o.length!==1||o[0]!=="type")return;let i=r.type;for(let s of Array.isArray(i)?i:[i]){if(typeof s!="string")return;n.includes(s)||n.push(s)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var D0=new Set(["type","properties","required","additionalProperties"]),T0=["oneOf","anyOf"];function $0(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!="object"||t===null?null:Object.keys(t).length?t:null}function Hp(e){let t=[];for(let i of e){if(typeof i!="object"||i.type!=="object")return null;for(let s in i)if(!D0.has(s))return null;t.push(i)}let n={},r=new Set;for(let i of t){for(let s in i.properties){if(Object.prototype.hasOwnProperty.call(n,s))continue;let a=[];for(let u of t){let l=u.properties?.[s]??$0(u);l!=null&&(a.some(d=>JSON.stringify(d)===JSON.stringify(l))||a.push(l))}let c=a.length===1?a[0]:Hp(a)??{allOf:a};Oe(n,s,c)}for(let s of i.required??[])r.add(s)}let o={type:"object",properties:n};if(r.size&&(o.required=[...r]),t.every(i=>i.additionalProperties===!1))o.additionalProperties=!1;else{let i=[];for(let s of t){let a=$0(s);a&&!i.some(c=>JSON.stringify(c)===JSON.stringify(a))&&i.push(a)}i.length===1?o.additionalProperties=i[0]:i.length>1&&(o.additionalProperties={allOf:i})}return o}function NI(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let o of D0)if(o in e)return;let n=t.filter(o=>T0.some(i=>Array.isArray(o[i]))),r=null;if(!n.length)r=Hp(t);else{let o=n[0],i=T0.find(c=>Array.isArray(o[c]));if(Object.keys(o).length!==1)return;let s=t.filter(c=>c!==o),a=o[i].map(c=>Hp([...s,c]));if(a.some(c=>!c))return;r={[i]:a}}r&&(delete e.allOf,Si(e,r))}function Tn(e,t){let n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");let r=a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},d=c.ref;if(c.ref=null,d){r(d);let p=e.seen.get(d),h=p.schema;if(h.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(h)):Si(u,h),Si(u,l),a._zod.parent===d)for(let C in u)C==="$ref"||C==="allOf"||C in l||delete u[C];if(h.$ref&&p.def)for(let C in u)C==="$ref"||C==="allOf"||C in p.def&&JSON.stringify(u[C])===JSON.stringify(p.def[C])&&delete u[C]}let m=a._zod.parent;if(m&&m!==d){r(m);let p=e.seen.get(m);if(p?.schema.$ref&&(u.$ref=p.schema.$ref,p.def))for(let h in u)h==="$ref"||h==="allOf"||h in p.def&&JSON.stringify(u[h])===JSON.stringify(p.def[h])&&delete u[h]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let a of[...e.seen.entries()].reverse())r(a[0]);if(e.target!=="openapi-3.0")for(let a of e.seen.entries())A0(a[1].def??a[1].schema);for(let a of e.deferred)a();if(e.intersections.length){let a=new Map;for(let c of e.seen.values())for(let u of[c.schema,c.def]){let l=u?.allOf;if(!Array.isArray(l))continue;let d=a.get(l);d?d.push(u):a.set(l,[u])}for(let c of e.intersections)for(let u of a.get(c)??[])NI(u)}}let o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(a)}Si(o,n.defId?n.schema:n.def??n.schema);let i=e.metadataRegistry.get(t)?.id;i!==void 0&&o.id===i&&delete o.id;let s=e.external?.defs??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(c.def.id===c.defId&&delete c.def.id,Oe(s,c.defId,c.def))}e.external&&(e.sharedEmitDoneFor=e.external),e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?o.$defs=s:o.definitions=s);try{let a=JSON.parse(JSON.stringify(o));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:so(t,"input",e.processors),output:so(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function Xe(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Xe(r.element,n);if(r.type==="set")return Xe(r.valueType,n);if(r.type==="lazy")return Xe(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault"||r.type==="catch")return Xe(r.innerType,n);if(r.type==="intersection")return Xe(r.left,n)||Xe(r.right,n);if(r.type==="record"||r.type==="map")return Xe(r.keyType,n)||Xe(r.valueType,n);if(r.type==="pipe")return e._zod.traits.has("$ZodCodec")?!0:Xe(r.in,n)||Xe(r.out,n);if(r.type==="object"){for(let o in r.shape)if(Xe(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(let o of r.options)if(Xe(o,n))return!0;return!1}if(r.type==="tuple"){for(let o of r.items)if(Xe(o,n))return!0;return!!(r.rest&&Xe(r.rest,n))}return!1}var Bp=(e,t={})=>n=>{let r=Mn({...n,processors:t});return ce(e,r),Rn(r,e),Tn(r,e)},so=(e,t,n={})=>r=>{let{libraryOptions:o,target:i}=r??{},s=Mn({...o??{},target:i,io:t,processors:n});return ce(e,s),Rn(s,e),Tn(s,e)};var ao=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},co=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},E0=(e,t)=>{ao(e,"minimum",t),co(e,"maximum",t)},j0=(e,t)=>{e.multipleOf??(e.multipleOf=[]),e.multipleOf.includes(t)||e.multipleOf.push(t)},Z0=(e,t)=>{e.patterns??(e.patterns=new Set),e.patterns.add(t)},W0=(e,t)=>{e.mime=e.mime?e.mime.filter(n=>t.includes(n)):[...t]},V0=(e,t)=>{e.format=t,t.includes("int")&&(e.isInt=!0)},N0=(e,t)=>ao(e,"minimum",t.minimum),O0=(e,t)=>co(e,"maximum",t.maximum),z0=e=>(t,n)=>{V0(t,n.format);let[r,o]=e[n.format];ao(t,"minimum",r),co(t,"maximum",o)},OI={greater_than:(e,t)=>ao(e,t.inclusive?"minimum":"exclusiveMinimum",t.value),less_than:(e,t)=>co(e,t.inclusive?"maximum":"exclusiveMaximum",t.value),multiple_of:(e,t)=>j0(e,t.value),number_format:z0(Ko),bigint_format:z0(qo),min_length:N0,max_length:O0,length_equals:(e,t)=>E0(e,t.length),min_size:N0,max_size:O0,size_equals:(e,t)=>E0(e,t.size),string_format:(e,t)=>{V0(e,t.format),t.pattern&&Z0(e,t.pattern),(t.format==="base64"||t.format==="base64url")&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>W0(e,t.mime)};function Le(e){let t={},n=e._zod.def,r=e._zod.traits.has("$ZodCheck")?[e,...n.checks??[]]:n.checks??[];for(let i of r)OI[i._zod.def.check]?.(t,i._zod.def);let o=e._zod.bag;o.minimum!==void 0&&ao(t,"minimum",o.minimum),o.exclusiveMinimum!==void 0&&ao(t,"exclusiveMinimum",o.exclusiveMinimum),o.maximum!==void 0&&co(t,"maximum",o.maximum),o.exclusiveMaximum!==void 0&&co(t,"exclusiveMaximum",o.exclusiveMaximum),o.multipleOf!==void 0&&j0(t,o.multipleOf),o.format!==void 0&&(t.format??(t.format=o.format),o.format.includes("int")&&(t.isInt=!0)),o.mime&&W0(t,o.mime);for(let i of o.patterns??[])Z0(t,i);return t}var zI={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},jI=new Map([[La,Ql],[di,ed]]),F0=e=>jI.get(e)??e,Kp=(e,t,n,r)=>{let o=n;o.type="string";let{minimum:i,maximum:s,format:a,patterns:c,contentEncoding:u,laxFormat:l}=Le(e);if(typeof i=="number"&&(o.minLength=i),typeof s=="number"&&(o.maxLength=s),a&&(o.format=zI[a]??a,o.format===""&&delete o.format,(a==="time"||l)&&delete o.format),u&&(o.contentEncoding=u),c&&c.size>0){let d=[...c].map(F0);d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(m=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:m.source}))])}},qp=(e,t,n,r)=>{let o=n,{minimum:i,maximum:s,multipleOf:a,exclusiveMaximum:c,exclusiveMinimum:u,isInt:l}=Le(e);o.type=l?"integer":"number";let d=typeof u=="number"&&u>=(i??Number.NEGATIVE_INFINITY),m=typeof c=="number"&&c<=(s??Number.POSITIVE_INFINITY),p=t.target==="draft-04"||t.target==="openapi-3.0";if(d?p?(o.minimum=u,o.exclusiveMinimum=!0):o.exclusiveMinimum=u:typeof i=="number"&&(o.minimum=i),m?p?(o.maximum=c,o.exclusiveMaximum=!0):o.exclusiveMaximum=c:typeof s=="number"&&(o.maximum=s),a){let h=new Set;for(let x of a)Number.isFinite(x)&&x!==0?h.add(Math.abs(x)):Pe(e,t,o,r,`A multipleOf divisor of ${x} cannot be represented in JSON Schema`);let[g,...C]=h;g!==void 0&&(o.multipleOf=g),C.length&&(o.allOf=[...o.allOf??[],...C.map(x=>({multipleOf:x}))])}},Yp=(e,t,n,r)=>{n.type="boolean"},Jp=(e,t,n,r)=>{Pe(e,t,n,r,"BigInt cannot be represented in JSON Schema")},Xp=(e,t,n,r)=>{Pe(e,t,n,r,"Symbols cannot be represented in JSON Schema")},Qp=(e,t,n,r)=>{t.target==="openapi-3.0"?(n.type="string",n.nullable=!0,n.enum=[null]):n.type="null"},ef=(e,t,n,r)=>{Pe(e,t,n,r,"Undefined cannot be represented in JSON Schema")},tf=(e,t,n,r)=>{Pe(e,t,n,r,"Void cannot be represented in JSON Schema")},nf=(e,t,n,r)=>{n.not={}},rf=(e,t,n,r)=>{},of=(e,t,n,r)=>{},sf=(e,t,n,r)=>{Pe(e,t,n,r,"Date cannot be represented in JSON Schema")},af=(e,t,n,r)=>{let o=e._zod.def,i=Dr(o.entries);if(i.length===0){n.not={};return}i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),n.enum=i},cf=(e,t,n,r)=>{let o=e._zod.def;if(o.values.length===0){n.not={};return}let i=[];for(let s of o.values)if(s===void 0){if(Pe(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof s=="bigint"){if(Pe(e,t,n,r,"BigInt literals cannot be represented in JSON Schema"))return;i.push(Number(s))}else i.push(s);if(i.length!==0)if(i.length===1){let s=i[0];n.type=s===null?"null":typeof s,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[s]:n.const=s}else i.every(s=>typeof s=="number")&&(n.type="number"),i.every(s=>typeof s=="string")&&(n.type="string"),i.every(s=>typeof s=="boolean")&&(n.type="boolean"),i.every(s=>s===null)&&(n.type="null"),n.enum=i},uf=(e,t,n,r)=>{Pe(e,t,n,r,"NaN cannot be represented in JSON Schema")},lf=(e,t,n,r)=>{let o=n,i=e._zod.pattern;if(!i)throw new Error("Pattern not found in template literal");o.type="string",o.pattern=i.source},df=(e,t,n,r)=>{let o=n;o.type="string",o.format="binary",o.contentEncoding="binary";let{minimum:i,maximum:s,mime:a}=Le(e);i!==void 0&&(o.minLength=i),s!==void 0&&(o.maxLength=s),a&&(a.length===0?o.not={}:a.length===1?o.contentMediaType=a[0]:o.anyOf=a.map(c=>({contentMediaType:c})))},pf=(e,t,n,r)=>{n.type="boolean"},ff=(e,t,n,r)=>{Pe(e,t,n,r,"Custom types cannot be represented in JSON Schema")},mf=(e,t,n,r)=>{Pe(e,t,n,r,"Function types cannot be represented in JSON Schema")},hf=(e,t,n,r)=>{Pe(e,t,n,r,"Transforms cannot be represented in JSON Schema")},gf=(e,t,n,r)=>{Pe(e,t,n,r,"Map cannot be represented in JSON Schema")},Cf=(e,t,n,r)=>{Pe(e,t,n,r,"Set cannot be represented in JSON Schema")},kf=(e,t,n,r)=>{let o=n,i=e._zod.def,{minimum:s,maximum:a}=Le(e);typeof s=="number"&&(o.minItems=s),typeof a=="number"&&(o.maxItems=a),o.type="array",o.items=ce(i.element,t,{...r,path:[...r.path,"items"]})};function _i(e){let t=e._zod.def;return t.type==="pipe"&&t.in._zod.traits.has("$ZodTransform")?_i(t.out):t.type==="catch"?_i(t.innerType):e._zod.optin}var yf=(e,t,n,r)=>{let o=n,i=e._zod.def,s=i.shape;if(Object.getOwnPropertySymbols(s).length&&Pe(e,t,o,r,"Symbol keys cannot be represented in JSON Schema"))return;o.type="object",o.properties={};for(let u in s)Oe(o.properties,u,ce(s[u],t,{...r,path:[...r.path,"properties",u]}));let c=[];for(let u of Object.keys(s)){let l=i.shape[u];(t.io==="input"?_i(l)===void 0:l._zod.optout===void 0)&&c.push(u)}c.length>0&&(o.required=c),i.catchall?._zod.def.type==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=ce(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},xc=(e,t,n,r)=>{let o=e._zod.def,i=o.inclusive===!1,s=o.options.map((a,c)=>ce(a,t,{...r,path:[...r.path,i?"oneOf":"anyOf",c]}));i?n.oneOf=s:n.anyOf=s},bf=(e,t,n,r)=>{let o=e._zod.def,i=ce(o.left,t,{...r,path:[...r.path,"allOf",0]}),s=ce(o.right,t,{...r,path:[...r.path,"allOf",1]}),a=u=>"allOf"in u&&Object.keys(u).length===1,c=[...a(i)?i.allOf:[i],...a(s)?s.allOf:[s]];n.allOf=c,t.intersections.push(c)},vf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="array";let s=t.target==="draft-2020-12"?"prefixItems":"items",a=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",c=i.items.map((g,C)=>ce(g,t,{...r,path:[...r.path,s,C]})),u=i.rest?ce(i.rest,t,{...r,path:[...r.path,a,...t.target==="openapi-3.0"?[i.items.length]:[]]}):null,l=i.items.length;for(;l>0;){let g=i.items[l-1];if(!(t.io==="input"?_i(g)!==void 0:g._zod.optout==="optional"))break;l--}let d=i.items.length,m=!i.rest;t.target==="draft-2020-12"?(o.prefixItems=c,m?o.items=!1:u&&(o.items=u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):t.target==="openapi-3.0"?(o.items={anyOf:c},u&&o.items.anyOf.push(u),l>0&&(o.minItems=l),m&&(o.maxItems=d)):(o.items=c,m?o.additionalItems=!1:u&&(o.additionalItems=u),l>0&&(o.minItems=l),m&&(o.maxItems=d));let{minimum:p,maximum:h}=Le(e);typeof p=="number"&&(o.minItems=p),typeof h=="number"&&(o.maxItems=h)};function Up(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let h=e.get(t)?.def;if(!h)return t;let g=Up(e,h,n);return g===h?t:g}for(let h of["anyOf","oneOf"]){let g=t[h];if(!Array.isArray(g))continue;let C=g.map(x=>Up(e,x,n));C.some((x,y)=>x!==g[y])&&(t={...t,[h]:C})}let r=Array.isArray(t.type)?t.type:[t.type],o=!r.includes("string")&&r.some(h=>h==="number"||h==="integer"),i=t.enum??(t.const!==void 0?[t.const]:void 0);if(!o&&!i?.some(h=>typeof h=="number"))return t;let{minimum:s,maximum:a,exclusiveMinimum:c,exclusiveMaximum:u,multipleOf:l,format:d,id:m,...p}=t;return p.enum?p.enum=p.enum.map(h=>typeof h=="number"?String(h):h):typeof p.const=="number"&&(p.const=String(p.const)),o&&(p.type="string",i||(p.pattern=(r.includes("number")?an:oi).source)),p}var Gp=new WeakMap;function ZI(e){let t=new Map;for(let r of e.seen.values())r.def&&!t.has(r.schema)&&t.set(r.schema,r);let n=new Map;for(let r of Gp.get(e)??[]){let o=e.seen.get(r),i=(o?.def??o?.schema)?.propertyNames;if(!i||i===!0||n.has(i))continue;let s=Up(t,i,new Set);s!==i&&n.set(i,s)}if(n.size)for(let r of e.seen.values())for(let o of[r.schema,r.def]){let i=o&&n.get(o.propertyNames);i&&(o.propertyNames=i)}}var wf=(e,t,n,r)=>{let o=n,i=e._zod.def;o.type="object";let s=i.keyType,a=Le(s).patterns;if(i.mode==="loose"&&a&&a.size>0){let l=ce(i.valueType,t,{...r,path:[...r.path,"patternProperties","*"]});o.patternProperties={};for(let d of a)Oe(o.patternProperties,F0(d).source,l)}else{if(t.target==="draft-07"||t.target==="draft-2020-12"){o.propertyNames=ce(i.keyType,t,{...r,path:[...r.path,"propertyNames"]});let l=Gp.get(t);l||(l=[],Gp.set(t,l),t.deferred.push(()=>ZI(t))),l.push(e)}o.additionalProperties=ce(i.valueType,t,{...r,path:[...r.path,"additionalProperties"]})}let c=s._zod.values,u=t.io==="input"&&_i(i.valueType)!==void 0;if(c&&!i.partial&&!u){let l=[...c].filter(d=>typeof d=="string"||typeof d=="number");l.length>0&&(o.required=l.map(String))}},xf=(e,t,n,r)=>{let o=e._zod.def,i=ce(o.innerType,t,r),s=t.seen.get(e);t.target==="openapi-3.0"?(s.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},If=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Sf=Symbol();function H0(e,t,n,r,o){let i=!1,s=JSON.stringify(e,(a,c)=>typeof c!="bigint"?c:(i=!0,null));return i?(Pe(t,n,r,o,"BigInt defaults cannot be represented in JSON Schema"),Sf):JSON.parse(s)}var _f=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s=H0(o.defaultValue,e,t,n,r);s!==Sf&&(n.default=s)},Pf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);if(i.ref=o.innerType,t.io!=="input")return;let s=H0(o.defaultValue,e,t,n,r);s!==Sf&&(n._prefault=s)},Lf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType;let s;try{s=o.catchValue(void 0)}catch{Pe(e,t,n,r,"Dynamic catch values are not supported in JSON Schema");return}n.default=s},Mf=(e,t,n,r)=>{let o=e._zod.def,i=o.in._zod.traits.has("$ZodTransform"),s=t.io==="input"?i?o.out:o.in:o.out;ce(s,t,r);let a=t.seen.get(e);a.ref=s},Rf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},Tf=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},Ic=(e,t,n,r)=>{let o=e._zod.def;ce(o.innerType,t,r);let i=t.seen.get(e);i.ref=o.innerType},$f=(e,t,n,r)=>{let o=e._zod.innerType;ce(o,t,r);let i=t.seen.get(e);i.ref=o},wc={string:Kp,number:qp,boolean:Yp,bigint:Jp,symbol:Xp,null:Qp,undefined:ef,void:tf,never:nf,any:rf,unknown:of,date:sf,enum:af,literal:cf,nan:uf,template_literal:lf,file:df,success:pf,custom:ff,function:mf,transform:hf,map:gf,set:Cf,array:kf,object:yf,union:xc,intersection:bf,tuple:vf,record:wf,nullable:xf,nonoptional:If,default:_f,prefault:Pf,catch:Lf,pipe:Mf,readonly:Rf,promise:Tf,optional:Ic,lazy:$f};function Sc(e,t){if("_idmap"in e){let r=e,o=Mn({...t,processors:wc}),i={};for(let c of r._idmap.entries()){let[u,l]=c;ce(l,o)}let s={},a={registry:r,uri:t?.uri,defs:i};o.external=a;for(let c of r._idmap.entries()){let[u,l]=c;Rn(o,l),Oe(s,u,Tn(o,l))}if(Object.keys(i).length>0){let c=o.target==="draft-2020-12"?"$defs":"definitions";s.__shared={[c]:i}}return{schemas:s}}let n=Mn({...t,processors:wc});return ce(e,n),Rn(n,e),Tn(n,e)}var _c=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let n=t?.target??"draft-2020-12";n==="draft-4"&&(n="draft-04"),n==="draft-7"&&(n="draft-07"),this.ctx=Mn({processors:wc,target:n,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,n={path:[],schemaPath:[]}){return ce(t,this.ctx,n)}emit(t,n){n&&(n.cycles&&(this.ctx.cycles=n.cycles),n.reused&&(this.ctx.reused=n.reused),n.external&&(this.ctx.external=n.external)),this.ctx.sharedDefsExtractedFor=void 0,this.ctx.sharedEmitDoneFor=void 0,Rn(this.ctx,t);let r=Tn(this.ctx,t),{"~standard":o,...i}=r;return i}};var B0={};var Co={};Rt(Co,{ZodAny:()=>e2,ZodArray:()=>o2,ZodBase64:()=>Bc,ZodBase64URL:()=>Uc,ZodBigInt:()=>ho,ZodBigIntFormat:()=>qc,ZodBoolean:()=>mo,ZodCIDRv4:()=>Fc,ZodCIDRv6:()=>Hc,ZodCUID:()=>Nc,ZodCUID2:()=>Oc,ZodCatch:()=>S2,ZodCodec:()=>Ni,ZodCreditCard:()=>Uf,ZodCustom:()=>Oi,ZodCustomStringFormat:()=>fr,ZodDate:()=>Ri,ZodDefault:()=>y2,ZodDiscriminatedUnion:()=>s2,ZodE164:()=>Gc,ZodEmail:()=>$c,ZodEmoji:()=>Dc,ZodEnum:()=>lo,ZodExactOptional:()=>Qc,ZodFile:()=>h2,ZodFunction:()=>E2,ZodGUID:()=>Ac,ZodIBAN:()=>Gf,ZodIPv4:()=>Wc,ZodIPv6:()=>Vc,ZodISODate:()=>An,ZodISODateTime:()=>$n,ZodISODuration:()=>En,ZodISOTime:()=>Dn,ZodInstanceOf:()=>z2,ZodIntersection:()=>a2,ZodJWT:()=>Kc,ZodKSUID:()=>Zc,ZodLazy:()=>$2,ZodLiteral:()=>m2,ZodMAC:()=>Bf,ZodMap:()=>p2,ZodNaN:()=>P2,ZodNanoID:()=>Ec,ZodNever:()=>n2,ZodNonOptional:()=>eu,ZodNull:()=>Xf,ZodNullable:()=>k2,ZodNumber:()=>fo,ZodNumberFormat:()=>mr,ZodObject:()=>$i,ZodOptional:()=>Di,ZodPipe:()=>Ei,ZodPrefault:()=>v2,ZodPreprocess:()=>L2,ZodPromise:()=>D2,ZodReadonly:()=>M2,ZodRecord:()=>uo,ZodSet:()=>f2,ZodString:()=>po,ZodStringFormat:()=>le,ZodSuccess:()=>I2,ZodSymbol:()=>Yf,ZodTemplateLiteral:()=>T2,ZodTransform:()=>g2,ZodTuple:()=>u2,ZodType:()=>q,ZodULID:()=>zc,ZodURL:()=>Mi,ZodUUID:()=>Kt,ZodUndefined:()=>Jf,ZodUnion:()=>Ai,ZodUnknown:()=>t2,ZodVoid:()=>r2,ZodXID:()=>jc,ZodXor:()=>i2,_ZodString:()=>Tc,_default:()=>b2,_function:()=>r4,any:()=>D9,array:()=>Ti,base64:()=>m9,base64url:()=>h9,bigint:()=>M9,boolean:()=>qf,catch:()=>_2,check:()=>o4,cidrv4:()=>p9,cidrv6:()=>f9,codec:()=>Q9,creditCard:()=>C9,cuid:()=>o9,cuid2:()=>i9,currencyCode:()=>x9,custom:()=>i4,date:()=>N9,describe:()=>s4,discriminatedUnion:()=>V9,e164:()=>g9,email:()=>K0,emoji:()=>n9,enum:()=>Jc,exactOptional:()=>C2,file:()=>q9,float32:()=>S9,float64:()=>_9,function:()=>r4,guid:()=>q0,hash:()=>I9,hex:()=>w9,hostname:()=>v9,httpUrl:()=>t9,iban:()=>k9,instanceof:()=>c4,int:()=>Mc,int32:()=>P9,int64:()=>R9,intersection:()=>c2,invertCodec:()=>e4,ipv4:()=>u9,ipv6:()=>d9,json:()=>l4,jwt:()=>y9,keyof:()=>O9,ksuid:()=>c9,lazy:()=>A2,literal:()=>K9,looseObject:()=>Z9,looseRecord:()=>H9,mac:()=>l9,map:()=>B9,meta:()=>a4,nan:()=>X9,nanoid:()=>r9,nativeEnum:()=>G9,never:()=>Yc,nonoptional:()=>x2,null:()=>Qf,nullable:()=>Li,nullish:()=>Y9,number:()=>Kf,object:()=>z9,optional:()=>dr,partialRecord:()=>F9,pipe:()=>Rc,prefault:()=>w2,preprocess:()=>d4,promise:()=>n4,readonly:()=>R2,record:()=>d2,refine:()=>N2,set:()=>U9,strictObject:()=>j9,string:()=>Pi,stringFormat:()=>b9,stringbool:()=>u4,success:()=>J9,superRefine:()=>O2,symbol:()=>$9,templateLiteral:()=>t4,transform:()=>Xc,tuple:()=>l2,uint32:()=>L9,uint64:()=>T9,ulid:()=>s9,undefined:()=>A9,union:()=>go,unknown:()=>lr,url:()=>e9,uuid:()=>Y0,uuidv4:()=>J0,uuidv6:()=>X0,uuidv7:()=>Q0,void:()=>E9,xid:()=>a9,xor:()=>W9});var Pc={};Rt(Pc,{endsWith:()=>Xr,gt:()=>Ut,gte:()=>ht,includes:()=>Yr,length:()=>cr,lowercase:()=>Kr,lt:()=>Bt,lte:()=>mt,maxLength:()=>ar,maxSize:()=>Ln,mime:()=>eo,minLength:()=>cn,minSize:()=>Gt,multipleOf:()=>Pn,negative:()=>kc,nonnegative:()=>bc,nonpositive:()=>yc,normalize:()=>to,overwrite:()=>Et,positive:()=>Cc,properties:()=>Qr,property:()=>vc,regex:()=>Gr,size:()=>sr,slugify:()=>io,startsWith:()=>Jr,toLowerCase:()=>ro,toUpperCase:()=>oo,trim:()=>no,uppercase:()=>qr});var U0=new WeakSet([Object.prototype,Error.prototype]);function Lc(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let r=n(this);return Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0}),r},set(r){Object.defineProperty(this,t,{value:r,configurable:!0,writable:!0})}})}var G0=(e,t)=>{Al.init(e,t),e.name="ZodError";let n=Object.getPrototypeOf(e);U0.has(n)||(U0.add(n),Lc(n,"format",r=>o=>ei(r,o)),Lc(n,"flatten",r=>o=>Qo(r,o)),Lc(n,"addIssue",r=>o=>{r.issues.push(o),r.message=JSON.stringify(r.issues,Er,2)}),Lc(n,"addIssues",r=>o=>{r.issues.push(...o),r.message=JSON.stringify(r.issues,Er,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},VI=k("ZodError",G0),dt=k("ZodError",G0,void 0,{Parent:Error});var Af=jr(dt),Df=Zr(dt),Ef=Wr(dt),Nf=Vr(dt),Of=ia(dt),zf=sa(dt),jf=aa(dt),Zf=ca(dt),Wf=ua(dt),Vf=la(dt),Ff=da(dt),Hf=pa(dt);function HI(){De.localeError||ye(Ha())}function pr(){De.memoizer||ye({memoizer:ki()})}var q=k("ZodType",(e,t)=>(HI(),K.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(j.mergeDefs(t,{checks:[...t.checks??[],...e.map(n=>typeof n=="function"?{_zod:{check:n,def:{check:"custom"},onattach:[]}}:n)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return se(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(N2(e,t))},superRefine(e,t){return this.check(O2(e,t))},overwrite(e){return this.check(Et(e))},optional(){return dr(this)},exactOptional(){return C2(this)},nullable(){return Li(this)},nullish(){return dr(Li(this))},nonoptional(e){return x2(this,e)},array(){return Ti(this)},or(e){return go([this,e])},and(e){return c2(this,e)},transform(e){return Rc(this,Xc(e))},default(e){return b2(this,e)},prefault(e){return w2(this,e)},catch(e){return _2(this,e)},pipe(e){return Rc(this,e)},readonly(){return R2(this)},describe(e){let t=this.clone();return ze.add(t,{description:e}),t},meta(...e){if(e.length===0)return ze.get(this);let t=this.clone();return ze.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return j.hide(this,"~standard",{...xa(this),jsonSchema:{input:so(this,"input"),output:so(this,"output")}})},set"~standard"(e){j.own(this,"~standard",e)},parse:function e(t,n){return Af(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await Df(this,t,n,{callee:e})},safeParse(e,t){return Ef(this,e,t)},async safeParseAsync(e,t){return Nf(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){j.own(this,"spa",e)},validate(e,t){return ti(this,e,t)},validateAsync(e,t){return ni(this,e,t)},encode:function e(t,n){return Of(this,t,n,{callee:e})},decode:function e(t,n){return zf(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await jf(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Zf(this,t,n,{callee:e})},safeEncode(e,t){return Wf(this,e,t)},safeDecode(e,t){return Vf(this,e,t)},async safeEncodeAsync(e,t){return Ff(this,e,t)},async safeDecodeAsync(e,t){return Hf(this,e,t)},toJSONSchema(e){return Bp(this,{})(e)},get description(){return ze.get(this)?.description},get _def(){return this._zod.def}}),Tc=k("_ZodString",(e,t)=>{tr.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kp(e,n,r,o)},j.derived({format:e=>Le(e).format??null,minLength:e=>Le(e).minimum??null,maxLength:e=>Le(e).maximum??null},{regex(...e){return this.check(Gr(...e))},includes(...e){return this.check(Yr(...e))},startsWith(...e){return this.check(Jr(...e))},endsWith(...e){return this.check(Xr(...e))},min(...e){return this.check(cn(...e))},max(...e){return this.check(ar(...e))},length(...e){return this.check(cr(...e))},nonempty(...e){return this.check(cn(1,...e))},lowercase(e){return this.check(Kr(e))},uppercase(e){return this.check(qr(e))},trim(){return this.check(no())},normalize(...e){return this.check(to(...e))},toLowerCase(){return this.check(ro())},toUpperCase(){return this.check(oo())},slugify(){return this.check(io())}})),po=k("ZodString",(e,t)=>{tr.init(e,t),Tc.init(e,t)},{email(e){return this.check(Ya($c,e))},url(e){return this.check(bi(Mi,e))},jwt(e){return this.check(gc(Kc,e))},emoji(e){return this.check(nc(Dc,e))},guid(e){return this.check(Ja(Ac,e))},uuid(e){return this.check(Xa(Kt,e))},uuidv4(e){return this.check(Qa(Kt,e))},uuidv6(e){return this.check(ec(Kt,e))},uuidv7(e){return this.check(tc(Kt,e))},nanoid(e){return this.check(rc(Ec,e))},cuid(e){return this.check(oc(Nc,e))},cuid2(e){return this.check(ic(Oc,e))},ulid(e){return this.check(sc(zc,e))},base64(e){return this.check(fc(Bc,e))},base64url(e){return this.check(mc(Uc,e))},xid(e){return this.check(ac(jc,e))},ksuid(e){return this.check(cc(Zc,e))},ipv4(e){return this.check(uc(Wc,e))},ipv6(e){return this.check(lc(Vc,e))},cidrv4(e){return this.check(dc(Fc,e))},cidrv6(e){return this.check(pc(Hc,e))},e164(e){return this.check(hc(Gc,e))},datetime(e){return this.check(vi($n,e))},date(e){return this.check(wi(An,e))},time(e){return this.check(xi(Dn,e))},duration(e){return this.check(Ii(En,e))}});function Pi(e){return ap(po,e)}var le=k("ZodStringFormat",(e,t)=>{ae.init(e,t),Tc.init(e,t)}),$n=k("ZodISODateTime",(e,t)=>{Qd.init(e,t),le.init(e,t)}),An=k("ZodISODate",(e,t)=>{e1.init(e,t),le.init(e,t)}),Dn=k("ZodISOTime",(e,t)=>{t1.init(e,t),le.init(e,t)}),En=k("ZodISODuration",(e,t)=>{n1.init(e,t),le.init(e,t)}),$c=k("ZodEmail",(e,t)=>{Vd.init(e,t),le.init(e,t)});function K0(e){return Ya($c,e)}var Ac=k("ZodGUID",(e,t)=>{Zd.init(e,t),le.init(e,t)});function q0(e){return Ja(Ac,e)}var Kt=k("ZodUUID",(e,t)=>{Wd.init(e,t),le.init(e,t)});function Y0(e){return Xa(Kt,e)}function J0(e){return Qa(Kt,e)}function X0(e){return ec(Kt,e)}function Q0(e){return tc(Kt,e)}var Mi=k("ZodURL",(e,t)=>{Bd.init(e,t),le.init(e,t)});function e9(e){return bi(Mi,e)}function t9(e){return bi(Mi,{protocol:ri,hostname:nd,...j.normalizeParams(e)})}var Dc=k("ZodEmoji",(e,t)=>{Ud.init(e,t),le.init(e,t)});function n9(e){return nc(Dc,e)}var Ec=k("ZodNanoID",(e,t)=>{Gd.init(e,t),le.init(e,t)});function r9(e){return rc(Ec,e)}var Nc=k("ZodCUID",(e,t)=>{Kd.init(e,t),le.init(e,t)});function o9(e){return oc(Nc,e)}var Oc=k("ZodCUID2",(e,t)=>{qd.init(e,t),le.init(e,t)});function i9(e){return ic(Oc,e)}var zc=k("ZodULID",(e,t)=>{Yd.init(e,t),le.init(e,t)});function s9(e){return sc(zc,e)}var jc=k("ZodXID",(e,t)=>{Jd.init(e,t),le.init(e,t)});function a9(e){return ac(jc,e)}var Zc=k("ZodKSUID",(e,t)=>{Xd.init(e,t),le.init(e,t)});function c9(e){return cc(Zc,e)}var Wc=k("ZodIPv4",(e,t)=>{r1.init(e,t),le.init(e,t)});function u9(e){return uc(Wc,e)}var Bf=k("ZodMAC",(e,t)=>{i1.init(e,t),le.init(e,t)});function l9(e){return up(Bf,e)}var Vc=k("ZodIPv6",(e,t)=>{o1.init(e,t),le.init(e,t)});function d9(e){return lc(Vc,e)}var Fc=k("ZodCIDRv4",(e,t)=>{s1.init(e,t),le.init(e,t)});function p9(e){return dc(Fc,e)}var Hc=k("ZodCIDRv6",(e,t)=>{a1.init(e,t),le.init(e,t)});function f9(e){return pc(Hc,e)}var Bc=k("ZodBase64",(e,t)=>{c1.init(e,t),le.init(e,t)});function m9(e){return fc(Bc,e)}var Uc=k("ZodBase64URL",(e,t)=>{u1.init(e,t),le.init(e,t)});function h9(e){return mc(Uc,e)}var Gc=k("ZodE164",(e,t)=>{l1.init(e,t),le.init(e,t)});function g9(e){return hc(Gc,e)}var Uf=k("ZodCreditCard",(e,t)=>{d1.init(e,t),le.init(e,t)});function C9(e){return lp(Uf,e)}var Gf=k("ZodIBAN",(e,t)=>{p1.init(e,t),le.init(e,t)});function k9(e){return dp(Gf,e)}var Kc=k("ZodJWT",(e,t)=>{f1.init(e,t),le.init(e,t)});function y9(e){return gc(Kc,e)}var fr=k("ZodCustomStringFormat",(e,t)=>{m1.init(e,t),le.init(e,t)});function b9(e,t,n={}){return ur(fr,e,t,n)}function v9(e){return ur(fr,"hostname",td,e)}function w9(e){return ur(fr,"hex",gd,e)}function x9(e){return ur(fr,"currency_code",od,e)}function I9(e,t){let n=t?.enc??"hex",r=`${e}_${n}`,o=xt[r];if(!o)throw new Error(`Unrecognized hash format: ${r}`);return ur(fr,r,o,t)}var fo=k("ZodNumber",(e,t)=>{Aa.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qp(e,n,r,o),e.isFinite=!0},j.derived({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=Le(e);return Math.max(t??Number.NEGATIVE_INFINITY,n??Number.NEGATIVE_INFINITY)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=Le(e);return Math.min(t??Number.POSITIVE_INFINITY,n??Number.POSITIVE_INFINITY)},isInt:e=>{let{isInt:t,multipleOf:n}=Le(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>Le(e).format??null},{gt(e,t){return this.check(Ut(e,t))},gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},lt(e,t){return this.check(Bt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},int(e){return this.check(Mc(e))},safe(e){return this.check(Mc(e))},positive(e){return this.check(Ut(0,e))},nonnegative(e){return this.check(ht(0,e))},negative(e){return this.check(Bt(0,e))},nonpositive(e){return this.check(mt(0,e))},multipleOf(e,t){return this.check(Pn(e,t))},step(e,t){return this.check(Pn(e,t))},finite(){return this}}));function Kf(e){return fp(fo,e)}var mr=k("ZodNumberFormat",(e,t)=>{h1.init(e,t),fo.init(e,t)});function Mc(e){return hp(mr,e)}function S9(e){return gp(mr,e)}function _9(e){return Cp(mr,e)}function P9(e){return kp(mr,e)}function L9(e){return yp(mr,e)}var mo=k("ZodBoolean",(e,t)=>{pi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yp(e,n,r,o)});function qf(e){return bp(mo,e)}var ho=k("ZodBigInt",(e,t)=>{Da.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jp(e,n,r,o)},j.derived({minValue:e=>Le(e).minimum??null,maxValue:e=>Le(e).maximum??null,format:e=>Le(e).format??null},{gte(e,t){return this.check(ht(e,t))},min(e,t){return this.check(ht(e,t))},gt(e,t){return this.check(Ut(e,t))},lt(e,t){return this.check(Bt(e,t))},lte(e,t){return this.check(mt(e,t))},max(e,t){return this.check(mt(e,t))},positive(e){return this.check(Ut(BigInt(0),e))},negative(e){return this.check(Bt(BigInt(0),e))},nonpositive(e){return this.check(mt(BigInt(0),e))},nonnegative(e){return this.check(ht(BigInt(0),e))},multipleOf(e,t){return this.check(Pn(e,t))}}));function M9(e){return wp(ho,e)}var qc=k("ZodBigIntFormat",(e,t)=>{g1.init(e,t),ho.init(e,t)});function R9(e){return Ip(qc,e)}function T9(e){return Sp(qc,e)}var Yf=k("ZodSymbol",(e,t)=>{C1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Xp(e,n,r,o)});function $9(e){return _p(Yf,e)}var Jf=k("ZodUndefined",(e,t)=>{k1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ef(e,n,r,o)});function A9(e){return Pp(Jf,e)}var Xf=k("ZodNull",(e,t)=>{y1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qp(e,n,r,o)});function Qf(e){return Lp(Xf,e)}var e2=k("ZodAny",(e,t)=>{b1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rf(e,n,r,o)});function D9(){return Mp(e2)}var t2=k("ZodUnknown",(e,t)=>{v1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>of(e,n,r,o)});function lr(){return Rp(t2)}var n2=k("ZodNever",(e,t)=>{w1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nf(e,n,r,o)});function Yc(e){return Tp(n2,e)}var r2=k("ZodVoid",(e,t)=>{x1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>tf(e,n,r,o)});function E9(e){return $p(r2,e)}var Ri=k("ZodDate",(e,t)=>{I1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>sf(e,n,r,o),e.min=(n,r)=>e.check(ht(n,r)),e.max=(n,r)=>e.check(mt(n,r))},j.derived({minDate:e=>{let{minimum:t}=Le(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=Le(e);return t?new Date(t):null}},{}));function N9(e){return Ap(Ri,e)}var o2=k("ZodArray",(e,t)=>{pr(),S1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>kf(e,n,r,o),e.element=t.element},{min(e,t){return this.check(cn(e,t))},nonempty(e){return this.check(cn(1,e))},max(e,t){return this.check(ar(e,t))},length(e,t){return this.check(cr(e,t))},unwrap(){return this.element}});function Ti(e,t){return Np(o2,e,t)}function O9(e){let t=e._zod.def.shape;return Jc(Object.keys(t))}var $i=k("ZodObject",(e,t)=>{pr(),_1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>yf(e,n,r,o),j.installLazyProp(e,"shape",n=>n._zod.def.shape,!1)},{keyof(){return Jc(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(j.mergeDefs(this._zod.def,{catchall:e}))},passthrough(){return this.clone(j.mergeDefs(this._zod.def,{catchall:lr()}))},loose(){return this.clone(j.mergeDefs(this._zod.def,{catchall:lr()}))},strict(){return this.clone(j.mergeDefs(this._zod.def,{catchall:Yc()}))},strip(){return this.clone(j.mergeDefs(this._zod.def,{catchall:void 0}))},extend(e){return j.extend(this,e)},safeExtend(e){return j.safeExtend(this,e)},merge(e){return j.merge(this,e)},pick(e){return j.pick(this,e)},omit(e){return j.omit(this,e)},partial(...e){return j.partial(Di,this,e[0])},exactPartial(...e){return j.partial(Qc,this,e[0],"exactPartial")},required(...e){return j.required(eu,this,e[0])}});function z9(e,t){let n={type:"object",shape:e??{},...j.normalizeParams(t)};return new $i(n)}function j9(e,t){return new $i({type:"object",shape:e,catchall:Yc(),...j.normalizeParams(t)})}function Z9(e,t){return new $i({type:"object",shape:e,catchall:lr(),...j.normalizeParams(t)})}var Ai=k("ZodUnion",(e,t)=>{fi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xc(e,n,r,o),e.options=t.options});function go(e,t){return new Ai({type:"union",options:e,...j.normalizeParams(t)})}var i2=k("ZodXor",(e,t)=>{Ai.init(e,t),P1.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xc(e,n,r,o),e.options=t.options});function W9(e,t){return new i2({type:"union",options:e,inclusive:!1,...j.normalizeParams(t)})}var s2=k("ZodDiscriminatedUnion",(e,t)=>{Ai.init(e,t),M1.init(e,t)});function V9(e,t,n){return new s2({type:"union",options:t,discriminator:e,...j.normalizeParams(n)})}var a2=k("ZodIntersection",(e,t)=>{R1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>bf(e,n,r,o)});function c2(e,t){return new a2({type:"intersection",left:e,right:t})}var u2=k("ZodTuple",(e,t)=>{pr(),Ea.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>vf(e,n,r,o)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw new Error(".partial() cannot be used on tuple schemas containing refinements");return this.clone({...e,items:e.items.map(t=>new Di({type:"optional",innerType:t}))})}});function l2(e,t,n){let r=t instanceof K,o=r?n:t,i=r?t:null;return new u2({type:"tuple",items:e,rest:i,...j.normalizeParams(o)})}var uo=k("ZodRecord",(e,t)=>{pr(),T1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>wf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType});function d2(e,t,n){return!t||!t._zod?new uo({type:"record",keyType:Pi(),valueType:e,...j.normalizeParams(t)}):new uo({type:"record",keyType:e,valueType:t,...j.normalizeParams(n)})}function F9(e,t,n){return new uo({type:"record",keyType:e,valueType:t,...j.normalizeParams(n),partial:!0})}function H9(e,t,n){return new uo({type:"record",keyType:e,valueType:t,mode:"loose",...j.normalizeParams(n)})}var p2=k("ZodMap",(e,t)=>{pr(),$1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>gf(e,n,r,o),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...n)=>e.check(Gt(...n)),e.nonempty=n=>e.check(Gt(1,n)),e.max=(...n)=>e.check(Ln(...n)),e.size=(...n)=>e.check(sr(...n))});function B9(e,t,n){return new p2({type:"map",keyType:e,valueType:t,...j.normalizeParams(n)})}var f2=k("ZodSet",(e,t)=>{pr(),A1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Cf(e,n,r,o),e.min=(...n)=>e.check(Gt(...n)),e.nonempty=n=>e.check(Gt(1,n)),e.max=(...n)=>e.check(Ln(...n)),e.size=(...n)=>e.check(sr(...n))});function U9(e,t){return new f2({type:"set",valueType:e,...j.normalizeParams(t)})}var lo=k("ZodEnum",(e,t)=>{D1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(r,o,i)=>af(e,r,o,i),e.enum=t.entries,e.options=[...e._zod.values];let n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{let i={};for(let s of r)if(n.has(s))i[s]=t.entries[s];else throw new Error(`Key ${s} not found in enum`);return new lo({...t,checks:[],...j.normalizeParams(o),entries:i})},e.exclude=(r,o)=>{let i={...t.entries};for(let s of r)if(n.has(s))delete i[s];else throw new Error(`Key ${s} not found in enum`);return new lo({...t,checks:[],...j.normalizeParams(o),entries:i})}});function Jc(e,t){let n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new lo({type:"enum",entries:n,...j.normalizeParams(t)})}function G9(e,t){return new lo({type:"enum",entries:e,...j.normalizeParams(t)})}var m2=k("ZodLiteral",(e,t)=>{E1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>cf(e,n,r,o),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function K9(e,t){return new m2({type:"literal",values:Array.isArray(e)?e:[e],...j.normalizeParams(t)})}var h2=k("ZodFile",(e,t)=>{N1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>df(e,n,r,o),e.min=(n,r)=>e.check(Gt(n,r)),e.max=(n,r)=>e.check(Ln(n,r)),e.mime=(n,r)=>e.check(eo(Array.isArray(n)?n:[n],r))});function q9(e){return Op(h2,e)}var g2=k("ZodTransform",(e,t)=>{pr(),O1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>hf(e,n,r,o),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new _n(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(j.issue(i,n.value,t));else{let s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),"input"in s||(s.input=n.value),s.inst??(s.inst=e),n.issues.push(j.issue(s))}};let o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function Xc(e){return new g2({type:"transform",transform:e})}var Di=k("ZodOptional",(e,t)=>{Na.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ic(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function dr(e){return new Di({type:"optional",innerType:e})}var Qc=k("ZodExactOptional",(e,t)=>{z1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Ic(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function C2(e){return new Qc({type:"optional",innerType:e})}var k2=k("ZodNullable",(e,t)=>{j1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>xf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Li(e){return new k2({type:"nullable",innerType:e})}function Y9(e){return dr(Li(e))}var y2=k("ZodDefault",(e,t)=>{Z1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>_f(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function b2(e,t){return new y2({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var v2=k("ZodPrefault",(e,t)=>{W1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Pf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function w2(e,t){return new v2({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():j.shallowClone(t)}})}var eu=k("ZodNonOptional",(e,t)=>{V1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>If(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function x2(e,t){return new eu({type:"nonoptional",innerType:e,...j.normalizeParams(t)})}var I2=k("ZodSuccess",(e,t)=>{F1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>pf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function J9(e){return new I2({type:"success",innerType:e})}var S2=k("ZodCatch",(e,t)=>{H1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Lf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _2(e,t){return new S2({type:"catch",innerType:e,catchValue:typeof t=="function"?t:j.constantCatch(t)})}var P2=k("ZodNaN",(e,t)=>{B1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uf(e,n,r,o)});function X9(e){return Ep(P2,e)}var Ei=k("ZodPipe",(e,t)=>{Oa.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Mf(e,n,r,o),e.in=t.in,e.out=t.out});function Rc(e,t){return new Ei({type:"pipe",in:e,out:t})}var Ni=k("ZodCodec",(e,t)=>{Ei.init(e,t),mi.init(e,t)});function Q9(e,t,n){return new Ni({type:"pipe",in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function e4(e){let t=e._zod.def;return new Ni({type:"pipe",in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var L2=k("ZodPreprocess",(e,t)=>{Ei.init(e,t),U1.init(e,t)}),M2=k("ZodReadonly",(e,t)=>{G1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Rf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function R2(e){return new M2({type:"readonly",innerType:e})}var T2=k("ZodTemplateLiteral",(e,t)=>{K1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lf(e,n,r,o)});function t4(e,t){return new T2({type:"template_literal",parts:e,...j.normalizeParams(t)})}var $2=k("ZodLazy",(e,t)=>{hi.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>$f(e,n,r,o),e.unwrap=()=>e._zod.def.getter()});function A2(e){return new $2({type:"lazy",getter:e})}var D2=k("ZodPromise",(e,t)=>{Y1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Tf(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function n4(e){return new D2({type:"promise",innerType:e})}var E2=k("ZodFunction",(e,t)=>{q1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>mf(e,n,r,o)});function r4(e){return new E2({type:"function",input:Array.isArray(e?.input)?l2(e?.input):e?.input??Ti(lr()),output:e?.output??lr()})}var Oi=k("ZodCustom",(e,t)=>{J1.init(e,t),q.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ff(e,n,r,o)});function o4(e){let t=new pe({check:"custom"});return t._zod.check=e,t}function i4(e,t){return zp(Oi,e??(()=>!0),t)}function N2(e,t={}){return jp(Oi,e,t)}function O2(e,t){return Zp(e,t)}var s4=Wp,a4=Vp,z2=k("ZodInstanceOf",(e,t)=>{Oi.init(e,t)},{properties(e,t){return this.check(Qr(e,t))}});function c4(e,t={}){let n=new z2({type:"custom",check:"custom",fn:r=>r instanceof e,abort:!0,...j.normalizeParams(t)});return n._zod.bag.Class=e,n._zod.check=r=>{r.value instanceof e||r.issues.push({code:"invalid_type",expected:e.name,input:r.value,inst:n,path:[...n._zod.def.path??[]]})},n}var u4=(...e)=>Fp({Codec:Ni,Boolean:mo,String:po},...e);function l4(e){let t=A2(()=>go([Pi(e),Kf(),qf(),Qf(),Ti(t),d2(Pi(),t)]));return t}function d4(e,t){return new L2({type:"pipe",in:Xc(e),out:t})}var BI={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function UI(e){ye({customError:e})}function GI(){return ye().customError}var j2;j2||(j2={});var zi={};Rt(zi,{ZodISODate:()=>An,ZodISODateTime:()=>$n,ZodISODuration:()=>En,ZodISOTime:()=>Dn,date:()=>qI,datetime:()=>KI,duration:()=>JI,time:()=>YI});function KI(e){return vi($n,e)}function qI(e){return wi(An,e)}function YI(e){return xi(Dn,e)}function JI(e){return Ii(En,e)}var D={...Co,...Pc,iso:zi},XI=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function QI(e,t){let n=e.$schema;return n==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":n==="http://json-schema.org/draft-07/schema#"?"draft-7":n==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}function p4(e,t){return e.map((n,r)=>r<t?n:n.optional())}function eS(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function tS(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let n=e.slice(1).split("/").filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version==="draft-2020-12"?"$defs":"definitions";if(n[0]===r){let o=n[1]===void 0?void 0:eS(n[1]);if(!o||!t.defs[o])throw new Error(`Reference not found: ${e}`);return t.defs[o]}throw new Error(`Reference not found: ${e}`)}function nS(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(typeof o!="object"||o===null||Array.isArray(o))return;let i=Object.getOwnPropertyNames(o);if(t.minProperties!==void 0&&i.length<t.minProperties&&r.issues.push({origin:"object",code:"too_small",minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:o,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&r.issues.push({origin:"object",code:"too_big",maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:o,inst:e,continue:!0}),t.keySchema)for(let s of i){let a=t.keySchema.safeParse(s);a.success||r.issues.push({code:"invalid_key",origin:"record",issues:a.error.issues,input:s,path:[s],continue:!0})}}).pipe(e)}function Z2(e,t){if(e===null)return"z";let n=typeof e;if(n!=="object"){if(n==="number"&&Number.isNaN(e))return null;let r=String(e);return`${n[0]}${r.length}:${r}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let i=[];for(let s of e){let a=Z2(s,t);if(a===null)return null;i.push(a)}return`a${i.length}:[${i.join(",")}]`}let r=Object.keys(e).sort(),o=[];for(let i of r){let s=Z2(e[i],t);if(s===null)return null;o.push(`${i.length}:${i}=${s}`)}return`o${o.length}:{${o.join(",")}}`}finally{t.delete(e)}}var rS=new Set(["items","prefixItems","additionalItems","additionalProperties","contains","propertyNames","not","if","then","else","allOf","anyOf","oneOf","unevaluatedItems","unevaluatedProperties","contentSchema"]),oS=new Set(["properties","patternProperties","dependentSchemas","dependencies","$defs","definitions"]);function ji(e){return typeof e!="object"||e===null?!1:Array.isArray(e)?e.some(ji):typeof e.$ref=="string"?!0:Object.entries(e).some(([t,n])=>rS.has(t)?ji(n):!oS.has(t)||typeof n!="object"||n===null?!1:Object.values(n).some(ji))}function f4(e){return e===1?"element":"elements"}function iS(e,t){return D.transform(r=>r).check(r=>{let o=r.value;if(Array.isArray(o)){if(t.uniqueItems===!0){let i=new Map;for(let s=0;s<o.length;s++){let a=Z2(o[s],new Set);if(a===null)continue;let c=i.get(a);if(c===void 0){i.set(a,s);continue}r.issues.push({code:"custom",message:`Array items must be unique: element at index ${s} duplicates the one at index ${c}`,input:o,path:[s],continue:!0})}}if(t.containsSchema){let i=t.minContains??1,s=t.maxContains!==void 0?t.maxContains+1:Number.POSITIVE_INFINITY,a=0;for(let c of o)if(t.containsSchema.safeParse(c).success&&++a>=s)break;a<i&&r.issues.push({code:"custom",message:`Array must contain at least ${i} matching ${f4(i)}; found ${a}`,input:o,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&r.issues.push({code:"custom",message:`Array must contain at most ${t.maxContains} matching ${f4(t.maxContains)}`,input:o,continue:!0})}}}).pipe(e)}function m4(e,t){if(e!==!1)return e===void 0||e===!0?D.any():Qe(e,t)}var sS=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function h4(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return D.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let o=e.$ref;if(t.refs.has(o))return t.refs.get(o);if(t.processing.has(o))return D.lazy(()=>{if(!t.refs.has(o))throw new Error(`Circular reference not resolved: ${o}`);return t.refs.get(o)});t.processing.add(o);let i=tS(o,t),s=Qe(i,t);return t.refs.set(o,s),t.processing.delete(o),s}if(e.enum!==void 0){let o=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&o.length===1&&o[0]===null)return D.null();if(o.length===0)return D.never();if(o.length===1)return D.literal(o[0]);if(o.every(s=>typeof s=="string"))return D.enum(o);let i=o.map(s=>D.literal(s));return i.length<2?i[0]:D.union([i[0],i[1],...i.slice(2)])}if(e.const!==void 0)return D.literal(e.const);let n=e.type;if(Array.isArray(n)){let o=n.map(i=>{let s={...e,type:i};return h4(s,t)});return o.length===0?D.never():o.length===1?o[0]:D.union(o)}if(!n)return D.any();let r;switch(n){case"string":{let o=D.string();if(e.format){let i=e.format;i==="email"?o=o.check(D.email()):i==="uri"||i==="uri-reference"?o=o.check(D.url()):i==="uuid"||i==="guid"?o=o.check(D.uuid()):i==="date-time"?o=o.check(D.iso.datetime({offset:!0})):i==="date"?o=o.check(D.iso.date()):i==="time"?o=o.check(D.regex(sS)):i==="duration"?o=o.check(D.iso.duration()):i==="hostname"?o=o.check(D.hostname()):i==="ipv4"?o=o.check(D.ipv4()):i==="ipv6"?o=o.check(D.ipv6()):i==="mac"?o=o.check(D.mac()):i==="cidr"?o=o.check(D.cidrv4()):i==="cidr-v6"?o=o.check(D.cidrv6()):i==="base64"?o=o.check(D.base64()):i==="base64url"?o=o.check(D.base64url()):i==="e164"?o=o.check(D.e164()):i==="credit_card"?o=o.check(D.creditCard()):i==="iban"?o=o.check(D.iban()):i==="jwt"?o=o.check(D.jwt()):i==="emoji"?o=o.check(D.emoji()):i==="nanoid"?o=o.check(D.nanoid()):i==="cuid"?o=o.check(D.cuid()):i==="cuid2"?o=o.check(D.cuid2()):i==="ulid"?o=o.check(D.ulid()):i==="xid"?o=o.check(D.xid()):i==="ksuid"&&(o=o.check(D.ksuid()))}typeof e.minLength=="number"&&(o=o.min(e.minLength)),typeof e.maxLength=="number"&&(o=o.max(e.maxLength)),e.pattern&&(o=o.regex(new RegExp(e.pattern))),r=o;break}case"number":case"integer":{let o=n==="integer"?D.number().int():D.number();typeof e.minimum=="number"&&e.exclusiveMinimum!==!0&&(o=o.min(e.minimum)),typeof e.maximum=="number"&&e.exclusiveMaximum!==!0&&(o=o.max(e.maximum)),typeof e.exclusiveMinimum=="number"?o=o.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(o=o.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?o=o.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(o=o.lt(e.maximum)),typeof e.multipleOf=="number"&&(o=o.multipleOf(e.multipleOf)),r=o;break}case"boolean":{r=D.boolean();break}case"null":{r=D.null();break}case"object":{let o={},i=e.properties||{},s=new Set(e.required||[]),a=typeof e.additionalProperties=="object"?Qe(e.additionalProperties,t):void 0;for(let[d,m]of Object.entries(i)){let p=Qe(m,t);Oe(o,d,s.has(d)?p:p.optional())}if(e.patternProperties){let d=e.patternProperties,m=Object.keys(d),p=[];for(let g of m){let C=Qe(d[g],t),x=D.string().regex(new RegExp(g));p.push(D.looseRecord(x,C))}let h=[];if(Object.keys(o).length>0&&h.push(D.object(o).passthrough()),h.push(...p),h.length===0)r=D.object({}).passthrough();else if(h.length===1)r=h[0];else{let g=D.intersection(h[0],h[1]);for(let C=2;C<h.length;C++)g=D.intersection(g,h[C]);r=g}if(e.additionalProperties===!1){let g=Object.keys(o),C=m.map(y=>new RegExp(y)),x=r;r=r.check(y=>{if(!vt(y.value))return;let I=[];for(let R of Object.keys(y.value))g.includes(R)||C.some(M=>M.test(R))||I.push(R);I.length&&y.issues.push({code:"unrecognized_keys",keys:I,input:y.value,inst:x})})}}else{let d=D.object(o);e.additionalProperties===!1?r=d.strict():a?r=d.catchall(a):r=d.passthrough()}let c=e.propertyNames!==void 0&&e.propertyNames!==!0,u=typeof e.minProperties=="number"?e.minProperties:void 0,l=typeof e.maxProperties=="number"?e.maxProperties:void 0;if(c||u!==void 0||l!==void 0){let d;if(c){let m=typeof e.propertyNames=="object"&&e.propertyNames.type===void 0?{type:"string",...e.propertyNames}:e.propertyNames;d=Qe(m,t)}r=nS(r,{keySchema:d,minProperties:u,maxProperties:l})}break}case"array":{let o=e.prefixItems,i=e.items;if(o&&Array.isArray(o)){let s=typeof e.minItems=="number"?e.minItems:0,a=o.map(d=>Qe(d,t)),c=p4(a,s),u=Array.isArray(i)?void 0:m4(i,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(Array.isArray(i)){let s=typeof e.minItems=="number"?e.minItems:0,a=i.map(d=>Qe(d,t)),c=p4(a,s),u=m4(e.additionalItems,t),l=D.tuple(c);r=u?l.rest(u):l,typeof e.minItems=="number"&&(r=r.check(D.minLength(e.minItems))),typeof e.maxItems=="number"&&(r=r.check(D.maxLength(e.maxItems)))}else if(i!==void 0){let s=Qe(i,t),a=D.array(s);typeof e.minItems=="number"&&(a=a.min(e.minItems)),typeof e.maxItems=="number"&&(a=a.max(e.maxItems)),r=a}else r=D.array(D.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=iS(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains!==void 0?Qe(e.contains,t):void 0,minContains:typeof e.minContains=="number"?e.minContains:void 0,maxContains:typeof e.maxContains=="number"?e.maxContains:void 0}));break}default:throw new Error(`Unsupported type: ${n}`)}return r}function Qe(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n=h4(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let a=e.anyOf.map(u=>Qe(u,t)),c=D.union(a);n=r?D.intersection(n,c):c}if(e.oneOf&&Array.isArray(e.oneOf)){let a=e.oneOf.map(u=>Qe(u,t)),c=D.xor(a);n=r?D.intersection(n,c):c}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:D.any();else{let a=r?n:Qe(e.allOf[0],t),c=r?0:1;for(let u=c;u<e.allOf.length;u++)a=D.intersection(a,Qe(e.allOf[u],t));n=a}e.nullable===!0&&t.version==="openapi-3.0"&&(n=D.nullable(n)),e.readOnly===!0&&(n=D.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let o={},i=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let a of i)a in e&&(o[a]=e[a]);let s=["contentEncoding","contentMediaType","contentSchema"];for(let a of s)a in e&&(o[a]=e[a]);if(e.type==="object"&&e.$ref===void 0){e.propertyNames!==void 0&&!ji(e.propertyNames)&&(o.propertyNames=e.propertyNames);for(let a of["minProperties","maxProperties"])e[a]!==void 0&&(o[a]=e[a])}if(e.type==="array"&&e.$ref===void 0){e.contains!==void 0&&!ji(e.contains)&&(o.contains=e.contains);for(let a of["uniqueItems","minContains","maxContains"])e[a]!==void 0&&(o[a]=e[a])}for(let a of Object.keys(e))XI.has(a)||Oe(o,a,e[a]);return Object.keys(o).length>0&&t.registry.add(n,o),e.description&&(n=n.describe(e.description)),n}function g4(e,t){if(typeof e=="boolean")return e?D.any():D.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let r=QI(n,t?.defaultTarget),o=n.$defs||n.definitions||{},i={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??ze};return Qe(n,i)}var C4=Symbol("z.visit/resolving");function Zi(e,t){let n=typeof t=="function"?t:(s,a)=>{let c=t[s._zod.def.type];return c?c(s,a):s},r=new Map;function o(s){let a=r.get(s);if(a===C4)return new hi({type:"lazy",getter:()=>r.get(s)});if(a!==void 0)return a;r.set(s,C4);let c=i(s),u=n(c,c!==s);return r.set(s,u),u}function i(s){let a=s._zod.def,c=a.type;switch(c){case"object":{let u=a.shape,l=Object.keys(u),d=!1,m={};for(let h of l){let g=o(u[h]);g!==u[h]&&(d=!0),m[h]=g}let p=a.catchall;return a.catchall&&(p=o(a.catchall),p!==a.catchall&&(d=!0)),d?se(s,{...a,shape:m,catchall:p}):s}case"array":{let u=o(a.element);return u===a.element?s:se(s,{...a,element:u})}case"tuple":{let u=a.items,l=!1,d=[];for(let p of u){let h=o(p);h!==p&&(l=!0),d.push(h)}let m=a.rest;return a.rest&&(m=o(a.rest),m!==a.rest&&(l=!0)),l?se(s,{...a,items:d,rest:m}):s}case"record":case"map":{let u=o(a.keyType),l=o(a.valueType);return u===a.keyType&&l===a.valueType?s:se(s,{...a,keyType:u,valueType:l})}case"set":{let u=o(a.valueType);return u===a.valueType?s:se(s,{...a,valueType:u})}case"union":{let u=a.options,l=!1,d=[];for(let m of u){let p=o(m);p!==m&&(l=!0),d.push(p)}return l?se(s,{...a,options:d}):s}case"intersection":{let u=o(a.left),l=o(a.right);return u===a.left&&l===a.right?s:se(s,{...a,left:u,right:l})}case"optional":case"nullable":case"default":case"prefault":case"catch":case"readonly":case"nonoptional":case"promise":case"success":{let u=o(a.innerType);return u===a.innerType?s:se(s,{...a,innerType:u})}case"pipe":{let u=o(a.in),l=o(a.out);return u===a.in&&l===a.out?s:se(s,{...a,in:u,out:l})}case"function":{let u=o(a.input),l=o(a.output);return u===a.input&&l===a.output?s:se(s,{...a,input:u,output:l})}case"lazy":{let u=a.getter,{_cachedInner:l,...d}=a;return se(s,{...d,getter:()=>o(u())})}case"template_literal":case"string":case"number":case"int":case"boolean":case"bigint":case"symbol":case"undefined":case"null":case"void":case"never":case"any":case"unknown":case"date":case"nan":case"enum":case"literal":case"file":case"transform":case"custom":return s;default:return s}}return o(e)}function k4(e){return Zi(e,{object:t=>t.partial(),union:t=>{let n=t._zod.def;return n.discriminator===void 0?t:go(n.options)}})}function aS(e,t){if(!t?.length)return e;let n=e._zod.def;return se(e,At(n,{checks:[...n.checks??[],...t]}),{parent:!0})}function y4(e){return aS(e.out,e.checks)}function cS(e){return e.in._zod.traits.has("$ZodTransform")?y4(e):e.in}function b4(e){return Zi(e,{pipe:t=>cS(t._zod.def),default:(t,n)=>n?dr(t._zod.def.innerType):t,catch:(t,n)=>n?t._zod.def.innerType:t})}function v4(e){return Zi(e,{pipe:t=>y4(t._zod.def),prefault:(t,n)=>n?t._zod.def.innerType:t})}var W2={};Rt(W2,{bigint:()=>pS,boolean:()=>dS,date:()=>fS,number:()=>lS,string:()=>uS});function uS(e){return cp(po,e)}function lS(e){return mp(fo,e)}function dS(e){return vp(mo,e)}function pS(e){return xp(ho,e)}function fS(e){return Dp(Ri,e)}var V2=1e4,w4=ue.string().min(1).max(1024),qt=ue.array(w4).max(V2),mS=ue.enum(["project","chronological","machine"]),hS=ue.enum(["updated","created","alpha","none"]),gS=ue.enum(["default","ascending","descending"]),CS=ue.enum(["muted","colour"]),kS=ue.enum(["12h","1d","3d","1w","never"]),yS=ue.enum(["blocked","everything"]),bS=ue.array(ue.union([ue.literal("threads"),w4.regex(/^(project|section|machine):\S+$/)])).max(V2).transform(e=>[...new Set(e)]);function Ie(e,t,n,r){return{schema:e,defaultValue:t,description:n,...r?{readStored:r}:{}}}var Wi={showArchived:Ie(ue.boolean(),!1,"Show archived threads: whether every group also lists archived threads, as each group's menu toggles."),organizationMode:Ie(mS,"project","How top-level groups are formed: project, chronological (custom sections) or machine."),environmentGrouping:Ie(ue.boolean(),!1,"Worktrees as folders: whether sibling threads sharing a worktree environment fold into a folder row."),chronologicalSort:Ie(hS,"updated","Sort field inside a group: updated, created or alpha. none is read as updated."),sortDirection:Ie(gS,"default","Sort direction: ascending or descending. A saved default reads as the field's own direction (descending for dates, ascending for alpha)."),sectionOrder:Ie(qt,["pinned","projects","threads"],"Top-level group order when organized by project."),manualSectionOrder:Ie(qt,["pinned","sections","threads"],"Top-level group order when organized chronologically."),machineSectionOrder:Ie(qt,["pinned","machines","threads"],"Top-level group order when organized by machine."),hiddenGroups:Ie(bS,[],"Groups moved into More: threads, project:<id>, section:<id> or machine:<id>."),collapsedSections:Ie(ue.array(ue.enum(["pinned","threads"])).max(V2),[],"Built-in groups (pinned, threads) that are collapsed."),collapsedProjects:Ie(qt,[],"Project ids whose group is collapsed."),collapsedThreadSections:Ie(qt,[],"Custom section keys (section:<id>) whose group is collapsed."),collapsedMachines:Ie(qt,[],"Machine ids whose group is collapsed."),collapsedEnvironments:Ie(qt,[],"Environment ids whose folder row is collapsed."),expandedOlder:Ie(qt,[],`Parent thread ids whose "N more child threads" row the user opened, once that tree's children chip was open.`),openSettledFolds:Ie(qt,[],"Group ids whose settled fold the user opened."),settleAfter:Ie(kS,"1d","Settle after: how long a quiet thread goes without activity before it settles into its group's settled fold: 12h, 1d, 3d, 1w or never."),expandedChildren:Ie(qt,[],"Parent thread ids whose chip the user opened."),childAttention:Ie(yS,"blocked","Needs attention counts every child: blocked counts a child thread that waits on you, is offline or has an orphaned failure; everything also counts every failed or finished-unread child. The same children stay out of an open tree's N more child threads fold, as running ones do."),harnessIcon:Ie(CS,"muted","How rows draw the harness logo, where a row draws one: muted (monochrome) or colour (the provider's tint). A stored hidden reads as muted.",e=>e==="hidden"?"muted":e)},x4=Object.keys(Wi);function F2(e){return Object.hasOwn(Wi,e)}function vS(e){return structuredClone(Wi[e].defaultValue)}function wS(){return Object.fromEntries(x4.map(e=>[e,vS(e)]))}function H2(e,t){let n=Wi[e].schema.safeParse(t);return n.success?{success:!0,value:n.data}:{success:!1,message:n.error.issues.map(r=>r.message).join("; ")}}function xS(e,t){let n=Wi[e];return H2(e,n.readStored?n.readStored(t):t)}function B2(e){let t=wS();if(e===null||typeof e!="object")return t;let n=e;for(let r of x4){if(!(r in n))continue;let o=xS(r,n[r]);o.success&&(t[r]=o.value)}return t}var IS=ue.object({density:ue.enum(["compact","comfortable"]).catch("compact")}),U2="bb.thread-glance.client.v1",Vi="bb.thread-glance.preferences.v1",I4="bb.thread-list.preferences.v1";function S4(e){let t=IS.safeParse(e??{});return t.success?t.data:{density:"compact"}}function tu(){return new Set}function nu(e,t){let n=E(r=>t(o=>({...o,...r})),[t]);return O(()=>(e.add(n),()=>{e.delete(n)}),[e,n]),E(r=>{for(let o of e)o!==n&&o(r)},[e,n])}function Fi(e){try{let t=globalThis.localStorage?.getItem(e);return t==null?null:JSON.parse(t)}catch{return null}}function ko(e,t){try{globalThis.localStorage?.setItem(e,JSON.stringify(t))}catch{}}var SS=tu();function _4(){let[e,t]=A(()=>S4(Fi(U2))),n=nu(SS,t),r=E(o=>{t(i=>{let s={...i,...o};return ko(U2,s),s}),n(o)},[n]);return[e,r]}function P4(e){let[t,n]=A(()=>Date.now());return O(()=>{let r=setInterval(()=>n(Date.now()),6e4);return()=>clearInterval(r)},[]),O(()=>{if(e===null)return;let r=e-Date.now();if(r<=0||r>2**31-1)return;let o=setTimeout(()=>n(Date.now()),r+50);return()=>clearTimeout(o)},[e]),t}var ru=ue.record(ue.string(),ue.number()),RT=ue.object({startedAt:ru,finishedAt:ru,pendingAt:ru,seenAt:ru}),_S=140,G2=ue.object({kind:ue.enum(["question","approval","plan","input","failed","done"]),text:ue.string().max(_S),at:ue.number()}),L4=ue.object({pending:G2.optional(),failed:G2.optional(),done:G2.optional()}),Nn={preferences:"preferences",stamps:"stamps",scheduled:"scheduled",notes:"notes"};var PS=150,LS=tu(),Hi=new Map;function M4(){let e=kn(),[t,n]=A(()=>B2(Fi(Vi))),[r,o]=A(!1),i=$(null),s=Cn(),a=$(!1),c=E(async()=>{try{let{preferences:m}=await e.call("listPreferences",null),p=B2(m);for(let[h,g]of Hi)p[h]=g;n(p),ko(Vi,p)}finally{o(!0)}},[e]);O(()=>{let m=!1;return(async()=>{try{await e.call("importPreferences",{bbMirror:Fi(I4)})}catch{}m||await c().catch(()=>{})})(),()=>{m=!0}},[e,c]),O(()=>{s==="connected"&&(a.current&&c().catch(()=>{}),a.current=!0)},[s,c]),gn(Nn.preferences,m=>{let p=m;if(!F2(p?.key)||Hi.has(p.key))return;let h=H2(p.key,p.value);h.success&&n(g=>{let C={...g,[p.key]:h.value};return ko(Vi,C),C})});let u=E(()=>{let m=[...Hi];Hi.clear();for(let[p,h]of m)e.call("setPreference",{key:p,value:h}).catch(g=>{st.error(`Couldn't save the ${p} setting`,{description:g instanceof Error?g.message:String(g)})})},[e]);O(()=>()=>{i.current!==null&&clearTimeout(i.current),u()},[u]);let l=nu(LS,n),d=E(m=>{n(p=>{let h={...p,...m};return ko(Vi,h),h}),l(m);for(let[p,h]of Object.entries(m))F2(p)&&Hi.set(p,h);i.current!==null&&clearTimeout(i.current),i.current=setTimeout(()=>{i.current=null,u()},PS)},[u,l]);return{prefs:t,hydrated:r,update:d}}var K2={};function R4(){let e=kn(),[t,n]=A(K2),r=Cn(),o=$(!1),[i,s]=A(0);return O(()=>{let a=!1;return e.call("listScheduled",null).then(c=>{a||n(c.status==="ready"?c.scheduled:K2)},()=>{}),()=>{a=!0}},[e,i]),O(()=>{r==="connected"&&(o.current&&s(a=>a+1),o.current=!0)},[r]),gn(Nn.scheduled,a=>{let c=a;c===null||typeof c!="object"||n(c.status==="ready"&&c.scheduled?c.scheduled:K2)}),t}var T4={startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},MS=new Set(Object.keys(T4));function $4(){let e=kn(),[t,n]=A(T4),r=Cn(),o=$(!1),i=E(()=>{e.call("listStamps",null).then(u=>n(u.stamps),()=>{})},[e]);O(i,[i]),O(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]);let s=E(u=>{!MS.has(u.kind)||!Array.isArray(u.threadIds)||n(l=>{let d={...l[u.kind]};for(let m of u.threadIds)u.value===null?delete d[m]:d[m]=u.value;return{...l,[u.kind]:d}})},[]);gn(Nn.stamps,u=>s(u));let a=E(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:Date.now()}),e.call("markSeen",{threadIds:u}).catch(()=>{}))},[s,e]),c=E(u=>{u.length!==0&&(s({kind:"seenAt",threadIds:u,value:null}),e.call("clearSeen",{threadIds:u}).catch(()=>{}))},[s,e]);return{stamps:t,markSeen:a,clearSeen:c}}function q2(e,t,n){let r=new Set,o=e;for(;o!==null&&!r.has(o);){if(o===t)return!0;r.add(o),o=n(o)}return!1}function A4(e,t,n){if(t==="pinned")return e.pinned?{type:"unchanged"}:{type:"pin",threadId:e.threadId};if(e.pinned)return{type:"unpin",threadId:e.threadId};if(n.mode==="chronological"&&(t==="threads"||t.startsWith("section:"))){let r=t==="threads"?null:t.slice(8);return r===e.sectionId&&e.parentThreadId===null?{type:"unchanged"}:{type:"move",threadId:e.threadId,sectionId:r,detach:e.parentThreadId!==null}}return e.parentThreadId!==null?{type:"detach",threadId:e.threadId}:{type:"unchanged"}}function Y2(e,t,n){if(t.kind==="group")return A4(e,t.groupId,n);if(t.threadId===e.threadId)return{type:"unchanged"};if(t.zone==="middle")return q2(t.threadId,e.threadId,n.parentOf)?{type:"blocked"}:e.parentThreadId===t.threadId?{type:"unchanged"}:{type:"nest",threadId:e.threadId,parentThreadId:t.threadId,unpinFirst:e.pinned};if(t.inPinned&&n.pinnedOrder.includes(t.threadId)){if(!e.pinned)return{type:"pin",threadId:e.threadId};let r=n.pinnedOrder.filter(u=>u!==e.threadId),o=r.indexOf(t.threadId),i=t.zone==="before"?o:o+1,s=r[i-1]??null,a=r[i]??null,c=n.pinnedOrder.indexOf(e.threadId);return(n.pinnedOrder[c-1]??null)===s&&(n.pinnedOrder[c+1]??null)===a?{type:"unchanged"}:{type:"reorder-pinned",threadId:e.threadId,previousThreadId:s,nextThreadId:a}}return A4(e,n.groupOfThread(t.threadId),n)}var RS=["waits-on-you","unread-failed","queue-failed","offline","working","unread"],D4={question:{icon:"CircleQuestion",label:"Asks a question"},approval:{icon:"SecurityCheck",label:"Needs approval"},plan:{icon:"ListTodo",label:"Plan to review"},input:{icon:"MessageQuestion",label:"Needs your input"}},E4=new Set(["pending","starting","active","stopping","idle","error"]),J2=new Set(["provisioning","starting","active","stopping","host-reconnecting"]),TS=new Set([...E4,...J2,"waiting-for-host"]);function hr(e){return E4.has(e.status)?e.status:"idle"}function X2(e){return TS.has(e.runtimeStatus)?e.runtimeStatus:hr(e)}function ou(e){return e.queuedWork==="waiting"||e.queuedWork==="failed"?e.queuedWork:"none"}function $S(e){return J2.has(X2(e))}function AS(e){return X2(e)==="waiting-for-host"}function N4(e,t){let n=hr(e),r=e.lastReadAt??0;return(n==="idle"||n==="error")&&r<e.latestAttentionAt?!0:iu(e,t)}function iu(e,t){if(e.parentThreadId===null||hr(e)!=="idle"||e.id===t.activeThreadId)return!1;let n=t.finishedAt[e.id];return n===void 0?!1:n>Math.max(e.lastReadAt??0,t.seenAt[e.id]??0)}var DS=[["planMode","ListTodo","Plan mode active"],["goals","Target","Goal active"],["workflows","Workflow","Workflow running"],["backgroundAgents","UserRoundPlus","Background agent running"],["backgroundCommands","Terminal","Background command running"]];function Se(e,t,n=!1,r=!1){return{icon:e,tone:t,spin:n,shine:r}}function ES(e){switch(e){case"provisioning":return"Setting up";case"host-reconnecting":return"Reconnecting";case"stopping":return"Stopping";default:return"Working"}}function O4(e,t){let n=hr(e),r=X2(e),o=ou(e),i={sendAt:null};if(e.hasPendingInteraction){let s=D4[t.needsKind??"input"]??D4.input,a=t.needsKind?s.icon:"CircleQuestion";return{kind:"waits-on-you",label:s.label,glyph:Se(a,"attention"),...i}}if(n==="error")return{kind:"failed",label:"Failed",glyph:Se("CircleX","destructive"),...i};if(o==="failed")return{kind:"queue-failed",label:"Queued message failed to send",glyph:Se("AlertTriangle","destructive"),...i};if(r==="waiting-for-host")return{kind:"offline",label:"Machine offline",glyph:Se("CloudOff","attention"),...i};if(J2.has(r)){let s=ES(r);return t.hasDraft?{kind:"working",label:`${s}, unsubmitted draft`,glyph:Se("Edit","working",!1,!0),...i}:e.activity.planMode>0?{kind:"working",label:`${s}, plan mode`,glyph:Se("ListTodo","working",!1,!0),...i}:e.activity.goals>0?{kind:"working",label:`${s}, goal active`,glyph:Se("Target","working",!1,!0),...i}:{kind:"working",label:s,glyph:Se("Loading","working",!0),...i}}for(let[s,a,c]of DS)if(e.activity[s]>0)return{kind:"background",label:c,glyph:Se(a,"background",!1,!0),...i};return o==="waiting"?t.scheduledAt!==null&&t.scheduledAt>t.now?{kind:"scheduled",label:"Scheduled message",glyph:Se("Calendar","muted-strong"),sendAt:t.scheduledAt}:{kind:"queued",label:"Message waiting to send",glyph:Se("Clock","muted-strong"),...i}:t.unread?{kind:"unread",label:"Unread",glyph:Se("dot","none"),...i}:t.hasDraft?{kind:"draft",label:"Unsubmitted draft",glyph:Se("Edit","muted"),...i}:{kind:"idle",label:"Idle",glyph:Se("ring","muted"),...i}}function z4(e,t){return!(t===null||e.kind==="waits-on-you"||e.kind==="failed"||e.kind==="working"&&e.glyph.spin)}function j4(e,t){let n=new Set;return e.hasPendingInteraction&&n.add("waits-on-you"),hr(e)==="error"&&t&&n.add("unread-failed"),ou(e)==="failed"&&n.add("queue-failed"),AS(e)&&n.add("offline"),$S(e)&&n.add("working"),t&&n.add("unread"),n}function Z4(e){let t=new Set;return e.has("waits-on-you")&&t.add("waits-on-you"),e.has("unread-failed")&&t.add("unread-failed"),t}var NS=new Set(["waits-on-you","unread-failed","queue-failed","offline"]);function W4(e,t){return t?new Set([...e].filter(n=>NS.has(n))):new Set(e)}function Q2(e){return RS.find(t=>e.has(t))??null}function V4(e){let t=su[e].tone;return t==="none"?"working":t}var su={"waits-on-you":{...Se("CircleQuestion","attention"),label:"needs your input"},"unread-failed":{...Se("CircleX","destructive"),label:"failed"},"queue-failed":{...Se("AlertTriangle","destructive"),label:"queued message failed"},offline:{...Se("CloudOff","attention"),label:"machine offline"},working:{...Se("Loading","working",!0),label:"working"},unread:{...Se("dot","none"),label:"unread"}};function yo(e,t,n){return t||n?!1:e.kind==="idle"||e.kind==="draft"||e.kind==="failed"}function F4(e,t){let n=t.thread.createdAt-e.thread.createdAt;return n!==0?n:e.thread.id<t.thread.id?-1:e.thread.id>t.thread.id?1:0}function OS(e,t){let n=e.thread.displayTitle.localeCompare(t.thread.displayTitle);return n!==0?n:e.thread.id.localeCompare(t.thread.id)}function zS(e,t){let n=t.treeAttention-e.treeAttention;return n!==0?n:F4(e,t)}function On(e){return e==="none"?"updated":e}function au(e){return On(e)==="alpha"?"ascending":"descending"}function em(e,t){return t==="default"?au(e):t}function H4(e){let t=On(e.field),n=em(t,e.direction)===au(t)?1:-1,r=t==="alpha"?OS:t==="created"?F4:zS;return(o,i)=>n*r(o,i)}function B4(e,t){if(e.pinSortKey!==null&&t.pinSortKey!==null&&e.pinSortKey!==t.pinSortKey)return e.pinSortKey<t.pinSortKey?-1:1;let n=(t.pinnedAt??0)-(e.pinnedAt??0);if(n!==0)return n;let r=t.createdAt-e.createdAt;return r!==0?r:e.id<t.id?-1:e.id>t.id?1:0}function U4(e,t){let n=e.createdAt-t.createdAt;return n!==0?n:e.id<t.id?-1:e.id>t.id?1:0}var jS={question:"Asks",approval:"Approve",plan:"Plan",input:"Needs"};function tm(e){let t=e?.pending?.kind;return t==="question"||t==="approval"||t==="plan"||t==="input"?t:null}function G4(e,t){if(e.hasPendingInteraction){let n=tm(t),r=t?.pending?.text.trim();return n===null||!r?null:{prefix:jS[n],text:r,tone:"attention"}}if(hr(e)==="error"){let n=t?.failed?.text.trim();return n&&n.toLowerCase()!=="failed"?{prefix:"Failed",text:n,tone:"destructive"}:null}return ou(e)==="failed"?{prefix:"Failed",text:"queued message wasn't sent",tone:"destructive"}:null}function K4(e){return e.text===""?e.prefix:`${e.prefix}: ${e.text}`}function q4(e){return e?.done??null}var ZS=new Set(["working","background"]);function Y4(e){return e.pinnedAt!==null||e.isPinned}function WS(e,t){let n=new Set([e.id]),r=e.parentThreadId,o=null,i=!1;for(;r!==null;){if(n.has(r))return null;n.add(r);let s=t.get(r);if(s===void 0)break;s.isHidden||(o??=s.id,Y4(s)&&(i=!0)),r=s.parentThreadId}return!e.isHidden&&Y4(e)&&!i?null:o}function J4(e){let t=new Map(e.threads.map(l=>[l.id,l])),n=new Map;for(let l of e.threads){let d=N4(l,e),m=O4(l,{unread:d,hasDraft:e.draftIds.has(l.id),scheduledAt:e.scheduled[l.id]??null,now:e.now,needsKind:tm(e.notes?.[l.id])}),p=j4(l,d),h=l.id===e.activeThreadId;n.set(l.id,{thread:l,state:m,unread:d,flags:l.isHidden?Z4(p):p,chipFlags:W4(p,l.isHidden),attentionFlags:new Set,quiet:yo(m,d,h),quietIgnoringOpen:!1,isActive:h,parentId:WS(l,t),note:G4(l,e.notes?.[l.id])})}let r=e.childAttention??"blocked";for(let l of n.values()){let d=l.parentId===null?void 0:n.get(l.parentId);l.attentionFlags=P5(l.flags,{isRoot:d===void 0,mode:r,orphaned:d!==void 0&&_5(l.thread,l.flags,{...d,finishedAt:e.finishedAt[d.thread.id]})}),l.quietIgnoringOpen=d===void 0||r==="everything"?yo(l.state,l.unread,!1):l.thread.isArchived||!ZS.has(l.state.kind)&&l.attentionFlags.size===0}let o=new Map,i=[];for(let l of n.values()){if(l.parentId===null){l.thread.isHidden||i.push(l);continue}let d=o.get(l.parentId)??[];d.push(l.thread.id),o.set(l.parentId,d)}for(let l of o.values())l.sort((d,m)=>U4(t.get(d),t.get(m)));let s=new Map,a=(l,d)=>{let m=s.get(l);if(m!==void 0)return m;let p=[],h=new Set,g=new Set,C=0,x=0,y=!0;d.add(l);for(let R of o.get(l)??[]){if(d.has(R))continue;let M=n.get(R),T=a(R,d);if(p.push(M,...T.descendants),!M.thread.isArchived){for(let N of M.attentionFlags)h.add(N);M.flags.has("working")&&h.add("working");for(let N of M.chipFlags)g.add(N)}for(let N of T.flags)h.add(N);for(let N of T.chipFlags)g.add(N);(M.thread.isHidden?M.attentionFlags.size>0:!M.quietIgnoringOpen)&&(y=!1),M.thread.isHidden||(C+=1,x+=1),C+=T.visibleCount,T.quietIgnoringOpen||(y=!1)}d.delete(l);let I={descendants:p,flags:h,chipFlags:g,visibleCount:C,childCount:x,quietIgnoringOpen:y};return s.set(l,I),I};for(let l of n.keys())a(l,new Set);let c=[],u=new Map;for(let l of i){let{descendants:d,flags:m,visibleCount:p}=s.get(l.thread.id),h=l.thread.latestAttentionAt,g=l.quiet,C=yo(l.state,l.unread,!1),x=l.isActive,y=new Set;for(let M of d){if(!M.thread.isArchived)for(let T of M.attentionFlags)y.add(T);h=Math.max(h,M.thread.latestAttentionAt),M.isActive&&(x=!0),M.thread.isHidden?M.attentionFlags.size>0&&(g=C=!1):(M.quiet||(g=!1),M.quietIgnoringOpen||(C=!1))}let I=new Set(m);if(!l.thread.isArchived){for(let M of l.attentionFlags)I.add(M),y.add(M);l.flags.has("working")&&I.add("working")}let R={root:l,descendants:d,descendantFlags:m,flags:I,attentionFlags:y,visibleDescendantCount:p,latestAttentionAt:h,quiet:g&&!x,quietIgnoringOpen:C,containsActive:x};c.push(R),u.set(l.thread.id,R);for(let M of d)u.set(M.thread.id,R)}return{infos:n,children:o,trees:c,treeOf:u,subtrees:s}}function Bi(e,t,n=null){let r=[],o=new Set([e]),i=t.get(e)?.parentId??null;for(;i!==null&&i!==n&&!o.has(i);)r.push(i),o.add(i),i=t.get(i)?.parentId??null;return r}var St="pinned",It="threads";function VS(e){return e.pinnedAt!==null||e.isPinned}function X4(e){return e.find(t=>t.isPersonal)??null}function cu(e,t){if(VS(e)&&!e.isHidden)return St;switch(t.mode){case"project":{let n=t.projects.find(r=>r.id===e.projectId);return n===void 0||n.isPersonal?It:`project:${n.id}`}case"chronological":return e.sectionId===null?It:`section:${e.sectionId}`;case"machine":return e.host===null?It:`machine:${e.host.id}`}}function Q4(e,t){let n=X4(e.projects);switch(e.mode){case"project":return e.projects.filter(r=>!r.isPersonal).map(r=>({id:`project:${r.id}`,kind:"project",label:r.name,entityId:r.id,newThreadProjectId:r.id,newThreadSectionId:null}));case"chronological":{let r=new Set(e.sections.map(s=>s.id)),o=[...e.sections];t&&o.sort((s,a)=>s.name.localeCompare(a.name));let i=o.map(s=>({id:`section:${s.id}`,kind:"section",label:s.name,entityId:s.id,newThreadProjectId:n?.id??null,newThreadSectionId:s.id}));for(let s of e.threads)s.sectionId===null||r.has(s.sectionId)||(r.add(s.sectionId),i.push({id:`section:${s.sectionId}`,kind:"section",label:"Section",entityId:s.sectionId,newThreadProjectId:n?.id??null,newThreadSectionId:s.sectionId}));return i}case"machine":{let r=new Map;for(let o of e.threads)o.host!==null&&!r.has(o.host.id)&&r.set(o.host.id,o.host.name);return[...r].map(([o,i])=>({id:`machine:${o}`,kind:"machine",label:i||"Unknown machine",entityId:o,newThreadProjectId:null,newThreadSectionId:null}))}}}function nm(e,t){return e===St?{id:e,kind:"pinned",label:"Pinned",entityId:null,newThreadProjectId:null,newThreadSectionId:null}:{id:e,kind:"threads",label:"Threads",entityId:null,newThreadProjectId:X4(t)?.id??null,newThreadSectionId:null}}var FS={project:"projects",chronological:"sections",machine:"machines"},Ui={project:"sectionOrder",chronological:"manualSectionOrder",machine:"machineSectionOrder"};function eg(e,t,n){let r=FS[e],o=new Set(n),i=new Set(t),s=[],a=u=>{s.includes(u)||s.push(u)};for(let u of t)if(u===r)for(let l of n)i.has(l)||a(l);else(u===St||u===It||o.has(u))&&a(u);let c=n.filter(u=>!s.includes(u));if(c.length>0){let u=-1;s.forEach((d,m)=>{o.has(d)&&(u=m)});let l=u>=0?u+1:s.includes(It)?s.indexOf(It):s.length;s.splice(l,0,...c)}return s.includes(St)||s.unshift(St),s.includes(It)||s.push(It),s}function rm(e,t,n,r){if(t===n)return[...e];let o=e.filter(s=>s!==t),i=o.indexOf(n);return i<0?[...e]:(o.splice(r==="before"?i:i+1,0,t),o)}function Gi(e,t){switch(e.kind){case"pinned":case"threads":return t.collapsedSections.includes(e.kind);case"project":return t.collapsedProjects.includes(e.entityId);case"section":return t.collapsedThreadSections.includes(e.id);case"machine":return t.collapsedMachines.includes(e.entityId)}}function om(e,t){let n=(r,o)=>r.includes(o)?r.filter(i=>i!==o):[...r,o];switch(e.kind){case"pinned":case"threads":return{collapsedSections:n(t.collapsedSections,e.kind)};case"project":return{collapsedProjects:n(t.collapsedProjects,e.entityId)};case"section":return{collapsedThreadSections:n(t.collapsedThreadSections,e.id)};case"machine":return{collapsedMachines:n(t.collapsedMachines,e.entityId)}}}var z={archive:"Archive",unarchive:"ArchiveRestore",more:"MoreHorizontal",openInSplit:"Columns2",copy:"Copy",link:"ExternalLink",markRead:"MailOpen",markUnread:"Mail",pin:"Pin",unpin:"PinOff",moveToSection:"SectionMove",rename:"Edit",remove:"Trash2",details:"Info",crossGroup:"FolderExport",hidden:"EyeOff",show:"Eye",expand:"ChevronRight",collapse:"ChevronDown",moveUp:"ChevronUp",newThread:"Plus",newSection:"SectionAdd",customize:"SlidersHorizontal",settings:"SlidersHorizontal",check:"Check",pullRequest:"GitPullRequest",branch:"GitBranch",worktree:"FolderGit",machine:"Laptop",environmentFallback:"Zap",filter:"FilterHorizontal",drag:"DragDropVertical",move:"MoveTo",open:"ArrowUpRight"},i$=Object.values(z);function tg(e){let{thread:t}=e,n=t.archivedAt!==null||t.isArchived,r=t.pinnedAt!==null||t.isPinned,o=[];return o.push({action:"details",label:"Details",icon:z.details}),e.splitAvailable&&o.push({action:"open-in-split",label:"Open in split",icon:z.openInSplit}),o.push({action:"copy-link",label:"Copy thread link",icon:z.link}),o.push({action:"copy-id",label:"Copy thread ID",icon:z.copy}),o.push(e.unread?{action:"mark-read",label:"Mark read",icon:z.markRead}:{action:"mark-unread",label:"Mark unread",icon:z.markUnread}),o.push(r?{action:"unpin",label:"Unpin",icon:z.unpin}:{action:"pin",label:"Pin",icon:z.pin}),e.isRoot&&!n&&e.hasSections&&o.push({action:"move-to-section",label:"Move to section",icon:z.moveToSection}),n||o.push({action:"move",label:"Move\u2026",icon:z.move}),o.push({action:"rename",label:"Rename",icon:z.rename}),o.push(n?{action:"unarchive",label:"Unarchive",icon:z.unarchive,separated:!0}:{action:"archive",label:"Archive",icon:z.archive,separated:!0}),o.push({action:"delete",label:"Delete",icon:z.remove,destructive:!0}),o}var ng=20;function rg(e){return e.split(/[^\p{L}\p{N}]+/u).map(t=>t.trim()).filter(t=>t.length>0)}function og(e){let t=e.displayName?.trim()||e.id,n=rg(t),r=rg(e.id),o=(n[0]??e.id)[0]??"?",i=[],s=a=>{if(a===void 0)return;let c=(o+a).toUpperCase();i.includes(c)||i.push(c)};s((n[0]??"")[1]);for(let a of n.slice(1))s(a[0]);for(let a of r)for(let c of a)s(c);for(let a of(n[0]??"").slice(2))s(a);return i.length===0&&i.push(o.toUpperCase()),i}function ig(e){let t=new Map,n=new Set;for(let r of e){let o=og(r),i=o.find(s=>!n.has(s))??o[0];n.add(i),t.set(r.id,i)}return t}function sg(e,t){return t.get(e)??og({id:e})[0]}function Ki(e,t){return e.filter(n=>n!==t)}function ag(e,t){return n=>Bi(n,e.infos).includes(t)}function cg(e,t,n){let r=e.info.thread.id;return e.chip?.expanded??!1?{patch:{expandedChildren:Ki(t.expandedChildren,r)},drop:ag(n,r)}:ug(r,t)}function ug(e,t){return{patch:{expandedChildren:[...Ki(t.expandedChildren,e),e]},drop:null}}function lg(e,t,n){return e.scope==="reveal"?ug(e.scopeId,t):e.expanded?{patch:{expandedOlder:Ki(t.expandedOlder,e.scopeId)},drop:ag(n,e.scopeId)}:{patch:{expandedOlder:[...Ki(t.expandedOlder,e.scopeId),e.scopeId]},drop:null}}function dg(e,t){let n=Ki(t.openSettledFolds,e.groupId);return{patch:{openSettledFolds:e.expanded?n:[...n,e.groupId]},drop:null}}function pg(e,t,n){let r=new Set(e.rootIds),o=i=>{let s=n.treeOf.get(i);return s!==void 0&&r.has(s.root.thread.id)};return e.collapsed?{patch:Gi(e.descriptor,t)?om(e.descriptor,t):{},drop:null}:e.userCollapsed?{patch:{},drop:o}:{patch:om(e.descriptor,t),drop:o}}function im(e,t){let n=[],r=[];for(let o of e)for(let i of[o.root,...o.descendants])i.unread&&(n.push(i.thread.id),iu(i.thread,t)&&r.push(i.thread.id));return{read:n,seen:r}}function fg(e,t,n){let r=t.treeOf.get(e);if(r!==void 0&&r.root.thread.id===e)return im([r],n);let o=t.infos.get(e)?.thread;return o===void 0?{read:[e],seen:[]}:{read:[e],seen:iu(o,n)?[e]:[]}}var sm={waitsOnYou:0,failed:0,offline:0,working:0,unread:0};function am(e){let t={...sm};for(let n of e)for(let r of[n.root,...n.descendants]){if(r.thread.isArchived)continue;let o=r.attentionFlags;o.has("waits-on-you")&&(t.waitsOnYou+=1),(o.has("unread-failed")||o.has("queue-failed"))&&(t.failed+=1),o.has("offline")&&(t.offline+=1),r.flags.has("working")&&(t.working+=1),o.has("unread")&&(t.unread+=1)}return t}function mg(e,t){return{waitsOnYou:e.waitsOnYou+t.waitsOnYou,failed:e.failed+t.failed,offline:e.offline+t.offline,working:e.working+t.working,unread:e.unread+t.unread}}function hg(e,t){return{waitsOnYou:e.waitsOnYou,failed:e.failed,offline:e.offline,working:t.collapsed||t.more?e.working:0,unread:t.more?e.unread:0}}var uu=3600*1e3,HS={"12h":12*uu,"1d":24*uu,"3d":72*uu,"1w":168*uu};function BS(e,t){return Math.max(e.createdAt,e.latestAttentionAt,t.startedAt[e.id]??0,t.finishedAt[e.id]??0)}function gg(e,t){let n=e.thread;return n.pinnedAt!==null||n.isPinned||!yo(e.state,e.unread,!1)||e.attentionFlags.size>0||t.settleAfter==="never"?!1:t.now-BS(n,t)>=HS[t.settleAfter]}function Cg(e,t){return gg(e.root,t)&&e.descendants.every(n=>gg(n,t))}function kg(e){return(e.find(t=>t.isDefault)??e[0])?.hostId??null}function yg(e,t){return e!==null&&typeof t=="string"&&e!==t}var US=3;function GS(e,t){return t===null?null:e.forest.infos.get(t)?.thread.displayTitle??null}function KS(e,t,n){let r=t.thread,o=n.thread;if(t===n)return null;switch(e.prefs.organizationMode){case"project":return r.projectId===o.projectId?null:`In project ${e.projectNames.get(r.projectId)??"another project"}`;case"chronological":return r.sectionId===o.sectionId?null:r.sectionId===null?"In Threads":`In section ${e.sectionNames.get(r.sectionId)??"another section"}`;case"machine":return(r.host?.id??null)===(o.host?.id??null)?null:r.host===null?"On no machine":`On machine ${r.host.name}`}}function qS(e,t,n){return t.parentId===null&&n!==null?e.forest.treeOf.get(t.thread.id)?.quiet??t.quiet:t.quiet}function YS(e,t){let n=t.thread.providerId;return t.parentId===null?e.defaultProviderId!==null&&n!==e.defaultProviderId:n!==e.forest.infos.get(t.parentId)?.thread.providerId}function JS(e,t,n){let r=t.thread.environment?.branchName??null,o=yg(r,e.defaultBranchOf(t.thread));return e.comfortable&&t.note===null&&o?{branchLine:r,pullRequest:"second-line"}:{branchLine:null,pullRequest:n===0&&o?"title":null}}function XS(e,t){let n=t.thread.host;return e.prefs.organizationMode==="machine"||e.primaryHostId===null||n===null||n.id===e.primaryHostId?null:n.name||"Unknown machine"}function vg(e,t,n,r){return{...JS(e,t,r.depth),machine:XS(e,t),type:"thread",key:`thread:${t.thread.id}`,info:t,depth:r.depth,nested:r.nested,parentTitle:GS(e,t.parentId),chip:r.chip,harness:YS(e,t),bold:t.unread,treeUnread:t===n&&[n,...e.forest.treeOf.get(n.thread.id)?.descendants??[]].some(o=>o.unread),note:t.note,dimmed:qS(e,t,r.chip),hiddenBadge:t.thread.isHidden,crossGroupLabel:KS(e,t,n),projectId:t.thread.projectId}}function wg(e,t){return(e.forest.children.get(t)??[]).map(n=>e.forest.infos.get(n)).filter(n=>!n.thread.isHidden||n.attentionFlags.size>0)}function cm(e,t){return e.forest.subtrees.get(t)}function QS(e,t,n){let r=t.thread.id,o=wg(e,r),i=h=>e.revealIds.has(h.thread.id)||e.revealPath.has(h.thread.id),s=(h,g,C)=>g>0?{type:"older",key:`older:${h}:${r}`,scopeId:r,scope:h,count:g,expanded:C,depth:n}:null;if(!e.expandedChildren.has(r)){let h=o.filter(i),g=o.filter(C=>!i(C)&&!C.thread.isHidden).length;return{shown:h,older:h.length>0?s("reveal",g,!1):null}}let a=h=>h.quietIgnoringOpen&&cm(e,h.thread.id).quietIgnoringOpen,c=new Set;for(let h of o)(h.thread.isHidden||!a(h))&&c.add(h.thread.id);let u=o.filter(h=>!c.has(h.thread.id)&&!h.thread.isHidden).sort((h,g)=>g.thread.createdAt-h.thread.createdAt).slice(0,US);for(let h of u)c.add(h.thread.id);let l=e.expandedOlder.has(r),d=h=>c.has(h.thread.id)||i(h)||e.activePath.has(h.thread.id),m=o.filter(h=>!d(h)).length;return{shown:l?o:o.filter(d),older:s("tree",m,l)}}function e_(e){let t=e.environment;return t===null?"Environment":t.name?t.name:t.branchName?t.branchName:t.path?t.path.split(/[\\/]/).filter(Boolean).pop()??"Environment":"Environment"}function Yi(e,t,n){if(!e.prefs.environmentGrouping)return t.flatMap(s=>s.rows);let r=new Map;for(let s of t){let a=s.info.thread.environment;a?.isWorktree===!0&&a.id!==null&&r.set(a.id,(r.get(a.id)??0)+1)}let o=[],i=new Set;for(let s of t){let a=s.info.thread.environment,c=a?.isWorktree===!0?a.id:null;if(c===null||(r.get(c)??0)<2){o.push(...s.rows);continue}if(i.has(c))continue;i.add(c);let u=t.filter(m=>m.info.thread.environment?.id===c),l=e.collapsedEnvironments.has(c),d=new Set;for(let m of u)for(let p of m.flags)d.add(p);if(o.push({type:"environment",key:`environment:${c}:${s.info.thread.id}`,environmentId:c,label:e_(s.info.thread),environmentProviderId:a?.providerId??null,projectId:s.info.thread.projectId,sectionId:s.info.thread.sectionId,threadIds:u.map(m=>m.info.thread.id),collapsed:l,flag:l?Q2(d):null,depth:n}),!l)for(let m of u)for(let p of m.rows)o.push({...p,depth:p.depth+1})}return o}function xg(e,t,n){let{childCount:r,chipFlags:o}=cm(e,t.thread.id),i=Q2(o);return r===0&&i===null&&wg(e,t.thread.id).length===0?null:{count:r,expanded:n,flag:i}}function t_(e,t){let n=new Set([...t.attentionFlags,...cm(e,t.thread.id).flags]);return t.flags.has("working")&&n.add("working"),n}function Ig(e,t,n,r){let{shown:o,older:i}=QS(e,n,r),s=o.map(c=>({info:c,flags:t_(e,c),rows:[vg(e,c,t.root,{depth:r,nested:r>1,chip:xg(e,c,e.expandedChildren.has(c.thread.id))}),...Ig(e,t,c,r+1)]})),a=Yi(e,s,r);return i!==null&&a.push(i),a}function n_(e,t){let n=t.root,r=xg(e,n,e.expandedChildren.has(n.thread.id));return[vg(e,n,n,{depth:0,nested:!1,chip:r}),...Ig(e,t,n,1)]}function qi(e,t){return{info:t.root,rows:n_(e,t),flags:t.flags}}function lu(e){return e.attentionFlags.size>0}function du(e){return e.trees.filter(lu).length}function um(e,t){return e&&t>0}function bg(e,t,n,r){if(e.needYouOnly)return r_(e,t,n,r);let o=am(n),i=Gi(t,e.prefs),s=e.activeThreadId,a=s!==null&&e.targets.has(s)&&n.some(m=>m.containsActive),c=i&&!a,u=t.id===St,l=Sg(e,t,n),d;if(c)d=Yi(e,l.filter(lu).map(m=>qi(e,m)),0);else{let m=l.filter(C=>Cg(C,e.settle)),p=new Set(m),h=l.filter(C=>!p.has(C)),g=m.find(C=>C.containsActive)??null;if(d=Yi(e,h.map(C=>qi(e,C)),0),m.length>0){g!==null&&d.push(...qi(e,g).rows);let C=e.openSettledFolds.has(t.id);if(d.push({type:"settled",key:`settled:${t.id}`,groupId:t.id,count:m.length,expanded:C}),C){let x=m.filter(y=>y!==g).map(y=>qi(e,y));d.push(...Yi(e,x,0))}}}return{descriptor:t,counters:o,userCollapsed:i,collapsed:c,hidden:r,rows:d,rootIds:n.map(m=>m.root.thread.id)}}function Sg(e,t,n){return t.id===St?[...n].sort((r,o)=>B4(r.root.thread,o.root.thread)):[...n].sort((r,o)=>e.compare({thread:r.root.thread,treeAttention:r.latestAttentionAt},{thread:o.root.thread,treeAttention:o.latestAttentionAt}))}function r_(e,t,n,r){let o=Sg(e,t,n);return{descriptor:t,counters:am(n),userCollapsed:Gi(t,e.prefs),collapsed:!1,hidden:r,rows:Yi(e,o.filter(lu).map(i=>qi(e,i)),0),rootIds:n.map(i=>i.root.thread.id)}}function _g(e){let{forest:t,prefs:n}=e,r=new Set,o=new Set;for(let[C,x]of e.targets)if(!(x!=="reveal"||!t.infos.has(C))){r.add(C);for(let y of Bi(C,t.infos))o.add(y)}let i=new Set;if(e.activeThreadId!==null&&t.infos.has(e.activeThreadId)){i.add(e.activeThreadId);for(let C of Bi(e.activeThreadId,t.infos))i.add(C)}let s={...e,compare:H4({field:n.chronologicalSort,direction:n.sortDirection}),expandedChildren:new Set(n.expandedChildren),expandedOlder:new Set(n.expandedOlder),openSettledFolds:new Set(n.openSettledFolds),collapsedEnvironments:new Set(n.collapsedEnvironments),revealIds:r,revealPath:o,activePath:i,projectNames:new Map(e.projects.map(C=>[C.id,C.name])),sectionNames:new Map(e.sections.map(C=>[C.id,C.name]))},a=new Map;for(let C of t.trees){let x=cu(C.root.thread,{mode:n.organizationMode,projects:e.projects}),y=a.get(x)??[];y.push(C),a.set(x,y)}let c=On(n.chronologicalSort)==="alpha",u=Q4({mode:n.organizationMode,projects:e.projects,sections:e.sections,threads:e.threads},c),l=new Map(u.map(C=>[C.id,C]));l.set(St,nm(St,e.projects)),l.set(It,nm(It,e.projects));let d=eg(n.organizationMode,n[Ui[n.organizationMode]],u.map(C=>C.id)),m=new Set(n.hiddenGroups),p=[],h=[],g=sm;for(let C of d){let x=l.get(C);if(x===void 0)continue;let y=a.get(C)??[];if(y.length===0&&(C===St||C===It&&n.organizationMode!=="chronological"))continue;let I=C!==St&&m.has(C);if(s.needYouOnly){y.some(lu)&&p.push(bg(s,x,y,I));continue}let R=bg(s,x,y,I);I?(h.push(R),g=mg(g,R.counters)):p.push(R)}return{groups:p,more:h,moreCounters:g,order:d,needYouCount:du(t)}}function Pg(e){if(e===null||typeof e!="object")return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}function o_(e,t){if(e.size!==t.size)return!1;for(let n of t)if(!e.has(n))return!1;return!0}function pu(e,t){if(Object.is(e,t))return e;if(Array.isArray(e)&&Array.isArray(t)){let n=e.length===t.length,r=t.map((o,i)=>{let s=i<e.length?pu(e[i],o):o;return s!==e[i]&&(n=!1),s});return n?e:r}if(e instanceof Set&&t instanceof Set)return o_(e,t)?e:t;if(Pg(e)&&Pg(t)){let n=Object.keys(t),r=n.length===Object.keys(e).length,o={};for(let i of n){i in e||(r=!1);let s=i in e?pu(e[i],t[i]):t[i];s!==e[i]&&(r=!1),o[i]=s}return r?e:o}return t}function i_(e,t){let n=new Map(e.map(i=>[i.key,i])),r=e.length===t.length,o=t.map((i,s)=>{let a=n.get(i.key),c=a===void 0?i:pu(a,i);return c!==e[s]&&(r=!1),c});return r?e:o}function Mg(e,t,n){let r={...t},o=e,i=Object.keys(r).length===Object.keys(o).length;for(let s of Object.keys(r))s in o||(i=!1),r[s]=s in n?n[s]:pu(o[s],r[s]),r[s]!==o[s]&&(i=!1);return i?e:r}function s_(e,t){return e.length===t.length&&t.every((n,r)=>n===e[r])}function Lg(e,t,n){let r=n.map(o=>{let i=t.get(o.descriptor.id);return i===void 0?o:Mg(i,o,{rows:i_(i.rows,o.rows)})});return s_(e,r)?e:r}function Rg(e,t){if(e===null)return t;let n=new Map([...e.groups,...e.more].map(r=>[r.descriptor.id,r]));return Mg(e,t,{groups:Lg(e.groups,n,t.groups),more:Lg(e.more,n,t.more)})}var fu=we({now:0,stamps:{startedAt:{},finishedAt:{},pendingAt:{},seenAt:{}},notes:{},treeOf:()=>{}});var lm=globalThis.__bbPluginRuntime;if(lm==null||lm.radixAlertDialog==null)throw new Error('Cannot load "@radix-ui/react-alert-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var mu=lm.radixAlertDialog,M$="default"in mu?mu.default:mu,{Action:dm,AlertDialog:R$,AlertDialogAction:T$,AlertDialogCancel:$$,AlertDialogContent:A$,AlertDialogDescription:D$,AlertDialogOverlay:E$,AlertDialogPortal:N$,AlertDialogTitle:O$,AlertDialogTrigger:z$,Cancel:pm,Content:fm,Description:mm,Overlay:hm,Portal:Tg,Root:$g,Title:gm,Trigger:a_,createAlertDialogScope:j$}=mu;var Ag=$g;var u_=Tg,Dg=H(({className:e,...t},n)=>f(hm,{className:w("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n,...Ae()}));Dg.displayName=hm.displayName;var Cm=H(({className:e,...t},n)=>v(u_,{children:[f(Dg,{}),f(fm,{ref:n,...Ae(),className:w("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));Cm.displayName=fm.displayName;var km=({className:e,...t})=>f("div",{className:w("flex flex-col space-y-2 text-center sm:text-left",e),...t});km.displayName="AlertDialogHeader";var ym=({className:e,...t})=>f("div",{className:w("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ym.displayName="AlertDialogFooter";var bm=H(({className:e,...t},n)=>f(gm,{ref:n,className:w("text-lg font-semibold",e),...t}));bm.displayName=gm.displayName;var vm=H(({className:e,...t},n)=>f(mm,{ref:n,className:w("text-sm text-muted-foreground",e),...t}));vm.displayName=mm.displayName;var wm=H(({className:e,...t},n)=>f(dm,{ref:n,className:w(Zs(),e),...t}));wm.displayName=dm.displayName;var xm=H(({className:e,...t},n)=>f(pm,{ref:n,className:w(Zs({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));xm.displayName=pm.displayName;var Im=globalThis.__bbPluginRuntime;if(Im==null||Im.radixDialog==null)throw new Error('Cannot load "@radix-ui/react-dialog": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var hu=Im.radixDialog,B$="default"in hu?hu.default:hu,{Close:Sm,Content:Eg,Description:_m,Dialog:U$,DialogClose:G$,DialogContent:K$,DialogDescription:q$,DialogOverlay:Y$,DialogPortal:J$,DialogTitle:X$,DialogTrigger:Q$,Overlay:Pm,Portal:Ng,Root:Og,Title:zg,Trigger:jg,WarningProvider:eA,createDialogScope:tA}=hu;var d_={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none"},Ji=H(({color:e="currentColor",size:t=24,strokeWidth:n,absoluteStrokeWidth:r=!1,className:o="",altIcon:i,showAlt:s=!1,icon:a,primaryColor:c,secondaryColor:u,disableSecondaryOpacity:l=!1,...d},m)=>{let p=n!==void 0?r?Number(n)*24/Number(t):n:void 0,h=p!==void 0?{strokeWidth:p,stroke:"currentColor"}:{},g={ref:m,...d_,width:t,height:t,color:c||e,className:o,...h,...d},x=[...s&&i?i:a].sort(([,y],[,I])=>{let R=y.opacity!==void 0;return I.opacity!==void 0?1:R?-1:0}).map(([y,I])=>{let R=I.opacity!==void 0,M=R&&!l?I.opacity:void 0,T=u?{...I.stroke!==void 0?{stroke:R?u:c||e}:{fill:R?u:c||e}}:{};return Lo(y,{...I,...h,...T,opacity:M,key:I.key})});return Lo("svg",g,x)});Ji.displayName="HugeiconsIcon";var Zg=[["path",{d:"M13.9248 21H10.0752C5.44476 21 3.12955 21 2.27636 19.4939C1.42317 17.9879 2.60736 15.9914 4.97574 11.9985L6.90057 8.75333C9.17559 4.91778 10.3131 3 12 3C13.6869 3 14.8244 4.91777 17.0994 8.75332L19.0243 11.9985C21.3926 15.9914 22.5768 17.9879 21.7236 19.4939C20.8704 21 18.5552 21 13.9248 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 9V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Wg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Vg=[["path",{d:"M21 7H3V13C3 16.7712 3 18.6569 4.17157 19.8284C5.34315 21 7.22876 21 11 21H13C16.7712 21 18.6569 21 19.8284 19.8284C21 18.6569 21 16.7712 21 13V7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21 7H3L4.2 5.4C5.08328 4.22229 5.52492 3.63344 6.15836 3.31672C6.7918 3 7.52786 3 9 3H15C16.4721 3 17.2082 3 17.8416 3.31672C18.4751 3.63344 18.9167 4.22229 19.8 5.4L21 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 17L12 10.5M9 14.5C9.58984 15.1068 11.1597 17.5 12 17.5C12.8403 17.5 14.4102 15.1068 15 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Fg=[["path",{d:"M18 9.00005C18 9.00005 13.5811 15 12 15C10.4188 15 6 9 6 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Hg=[["path",{d:"M15 6C15 6 9.00001 10.4189 9 12C8.99999 13.5812 15 18 15 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Bg=[["path",{d:"M9.00005 6C9.00005 6 15 10.4189 15 12C15 13.5812 9 18 9 18",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Ug=[["path",{d:"M13 7H11C8.19108 7 6.78661 7 5.77772 7.67412C5.34096 7.96596 4.96596 8.34096 4.67412 8.77772C4 9.78661 4 11.1911 4 14C4 16.8089 4 18.2134 4.67412 19.2223C4.96596 19.659 5.34096 20.034 5.77772 20.3259C6.78661 21 8.19108 21 11 21H13C15.8089 21 17.2134 21 18.2223 20.3259C18.659 20.034 19.034 19.659 19.3259 19.2223C20 18.2134 20 16.8089 20 14C20 11.1911 20 9.78661 19.3259 8.77772C19.034 8.34096 18.659 7.96596 18.2223 7.67412C17.2134 7 15.8089 7 13 7Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M4 14H2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 14H20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M15 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M9 11V13",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M12 7C12 5.11438 12 4.17157 11.4142 3.58579C10.8284 3 9.88562 3 8 3",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"6"}]];var Lm=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5 12H8.5M12 8.5V15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Gg=[["path",{d:"M21.5 12C21.5 17.2467 17.2467 21.5 12 21.5C10.3719 21.5 8.8394 21.0904 7.5 20.3687C5.63177 19.362 4.37462 20.2979 3.26592 20.4658C3.09774 20.4913 2.93024 20.4302 2.80997 20.31C2.62741 20.1274 2.59266 19.8451 2.6935 19.6074C3.12865 18.5818 3.5282 16.6382 2.98341 15C2.6698 14.057 2.5 13.0483 2.5 12C2.5 6.75329 6.75329 2.5 12 2.5C17.2467 2.5 21.5 6.75329 21.5 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.1257 12H12.0007M8.125 12H8M16.125 12H16M12.2507 12C12.2507 12.1381 12.1388 12.25 12.0007 12.25C11.8627 12.25 11.7507 12.1381 11.7507 12C11.7507 11.8619 11.8627 11.75 12.0007 11.75C12.1388 11.75 12.2507 11.8619 12.2507 12ZM8.25 12C8.25 12.1381 8.13807 12.25 8 12.25C7.86193 12.25 7.75 12.1381 7.75 12C7.75 11.8619 7.86193 11.75 8 11.75C8.13807 11.75 8.25 11.8619 8.25 12ZM16.25 12C16.25 12.1381 16.1381 12.25 16 12.25C15.8619 12.25 15.75 12.1381 15.75 12C15.75 11.8619 15.8619 11.75 16 11.75C16.1381 11.75 16.25 11.8619 16.25 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Kg=[["path",{d:"M3.01309 4.99084C2.89323 6.05084 3.55249 8.42285 6.48923 8.42285",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M17.5951 8.38081C18.8357 8.57881 21.1132 7.49881 20.9957 5.00281",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M20.9928 20.9989C21.0528 19.9429 20.1777 17.5549 17.599 17.4229",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6.45163 17.4708C5.65013 17.2308 3.01306 18.3348 3.01306 20.9988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M9.3299 6.11884C9.35388 5.09884 9.84533 2.99884 12.0029 2.99884C13.9208 2.99884 14.5861 4.61884 14.676 6.11884M6.26131 9.41884C6.38118 8.63884 7.29216 6.81484 9.36586 6.63484C11.4635 6.55564 14.3403 6.58684 14.8797 6.67084C15.5869 6.73377 17.2951 7.43884 17.7506 9.41884C17.9124 10.4388 17.8285 11.8788 17.8524 12.7188C17.8165 13.5588 17.9207 15.2623 17.7565 16.1388C17.6367 17.0988 16.9894 18.4668 16.1024 19.3068C14.7838 20.7228 11.1639 22.2108 8.03534 19.4508C6.41713 17.8908 6.30925 16.3788 6.18939 15.7788C6.15725 15.4571 6.15875 13.8763 6.16541 12.3588C6.14144 11.046 6.17235 9.78063 6.26131 9.41884Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M3.01306 12.8988H5.9498",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M20.9929 12.8988L18.1161 12.8988",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M12.0033 16.4988L12.0033 20.2788",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var gu=[["path",{d:"M18 6L6.00081 17.9992M17.9992 18L6 6.00085",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var qg=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.9994 15L9 9M9.00064 15L15 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Yg=[["path",{d:"M11 6L21 6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11 12L21 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M11 18L21 18",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M3 7.39286C3 7.39286 4 8.04466 4.5 9C4.5 9 6 5.25 8 4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M3 18.3929C3 18.3929 4 19.0447 4.5 20C4.5 20 6 16.25 8 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var Jg=[["path",{d:"M22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M8 12.5L10.5 15L16 9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var Xg=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var Mm=[["path",{d:"M7.5 7.5L8.72654 8.55719C9.24218 9.00163 9.5 9.22386 9.5 9.5C9.5 9.77614 9.24218 9.99836 8.72654 10.4428L7.5 11.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M11.5 12.5H15.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12 21C15.7497 21 17.6246 21 18.9389 20.0451C19.3634 19.7367 19.7367 19.3634 20.0451 18.9389C21 17.6246 21 15.7497 21 12C21 8.25027 21 6.3754 20.0451 5.06107C19.7367 4.6366 19.3634 4.26331 18.9389 3.95491C17.6246 3 15.7497 3 12 3C8.25027 3 6.3754 3 5.06107 3.95491C4.6366 4.26331 4.26331 4.6366 3.95491 5.06107C3 6.3754 3 8.25027 3 12C3 15.7497 3 17.6246 3.95491 18.9389C4.26331 19.3634 4.6366 19.7367 5.06107 20.0451C6.3754 21 8.25027 21 12 21Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var Qg=[["path",{d:"M7.5 14.5C7.5 11.2002 7.5 9.55025 8.52513 8.52513C9.55025 7.5 11.2002 7.5 14.5 7.5C17.7998 7.5 19.4497 7.5 20.4749 8.52513C21.5 9.55025 21.5 11.2002 21.5 14.5C21.5 17.7998 21.5 19.4497 20.4749 20.4749C19.4497 21.5 17.7998 21.5 14.5 21.5C11.2002 21.5 9.55025 21.5 8.52513 20.4749C7.5 19.4497 7.5 17.7998 7.5 14.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7.5 16.5C6.10355 16.5 5.40533 16.5 4.84402 16.3036C3.83866 15.9518 3.0482 15.1613 2.69641 14.156C2.5 13.5947 2.5 12.8964 2.5 11.5V9.5C2.5 6.20017 2.5 4.55025 3.52513 3.52513C4.55025 2.5 6.20017 2.5 9.5 2.5H11.5C12.8964 2.5 13.5947 2.5 14.156 2.69641C15.1613 3.0482 15.9518 3.83866 16.3036 4.84402C16.5 5.40533 16.5 6.10355 16.5 7.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var e8=[["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C11.3151 2 10.6462 2.06886 10 2.20004M21.8 10C21.9311 10.6462 22 11.3151 22 12C22 12.6849 21.9311 13.3538 21.8 14M14 21.8C13.3538 21.9311 12.6849 22 12 22C11.3151 22 10.6462 21.9311 10 21.8M2.20004 14C2.06886 13.3538 2 12.6849 2 12C2 11.3151 2.06886 10.6462 2.20004 10M17.5 3.64702C18.6332 4.39469 19.6053 5.36678 20.353 6.5M20.353 17.5C19.6053 18.6332 18.6332 19.6053 17.5 20.353M6.5 20.353C5.36678 19.6053 4.39469 18.6332 3.64702 17.5M3.64702 6.5C4.39469 5.36678 5.36678 4.39469 6.5 3.64702",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var t8=[["path",{d:"M19.5 5.5L18.8803 15.5251C18.7219 18.0864 18.6428 19.3671 18.0008 20.2879C17.6833 20.7431 17.2747 21.1273 16.8007 21.416C15.8421 22 14.559 22 11.9927 22C9.42312 22 8.1383 22 7.17905 21.4149C6.7048 21.1257 6.296 20.7408 5.97868 20.2848C5.33688 19.3626 5.25945 18.0801 5.10461 15.5152L4.5 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 5.5H21M16.0557 5.5L15.3731 4.09173C14.9196 3.15626 14.6928 2.68852 14.3017 2.39681C14.215 2.3321 14.1231 2.27454 14.027 2.2247C13.5939 2 13.0741 2 12.0345 2C10.9688 2 10.436 2 9.99568 2.23412C9.8981 2.28601 9.80498 2.3459 9.71729 2.41317C9.32164 2.7167 9.10063 3.20155 8.65861 4.17126L8.05292 5.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M9.5 16.5L9.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14.5 16.5L14.5 10.5",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]];var n8=[["path",{d:"M2.99969 17.0002C2.99969 17.9302 2.99969 18.3952 3.10192 18.7767C3.37932 19.8119 4.18796 20.6206 5.22324 20.898C5.60474 21.0002 6.06972 21.0002 6.99969 21.0002L16.9997 21.0002C17.9297 21.0002 18.3947 21.0002 18.7762 20.898C19.8114 20.6206 20.6201 19.8119 20.8975 18.7767C20.9997 18.3952 20.9997 17.9302 20.9997 17.0002",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M16.4998 11.5002C16.4998 11.5002 13.1856 16.0002 11.9997 16.0002C10.8139 16.0002 7.49976 11.5002 7.49976 11.5002M11.9997 15.0002V3.00016",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var r8=[["path",{d:"M14.0737 3.88545C14.8189 3.07808 15.1915 2.6744 15.5874 2.43893C16.5427 1.87076 17.7191 1.85309 18.6904 2.39232C19.0929 2.6158 19.4769 3.00812 20.245 3.79276C21.0131 4.5774 21.3972 4.96972 21.6159 5.38093C22.1438 6.37312 22.1265 7.57479 21.5703 8.5507C21.3398 8.95516 20.9446 9.33578 20.1543 10.097L10.7506 19.1543C9.25288 20.5969 8.504 21.3182 7.56806 21.6837C6.63212 22.0493 5.6032 22.0224 3.54536 21.9686L3.26538 21.9613C2.63891 21.9449 2.32567 21.9367 2.14359 21.73C1.9615 21.5234 1.98636 21.2043 2.03608 20.5662L2.06308 20.2197C2.20301 18.4235 2.27297 17.5255 2.62371 16.7182C2.97444 15.9109 3.57944 15.2555 4.78943 13.9445L14.0737 3.88545Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M13 4L20 11",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14 22L22 22",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var o8=[["path",{d:"M3 7H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 17H9",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M18 17L21 17",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M15 7L21 7",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M6 7C6 6.06812 6 5.60218 6.15224 5.23463C6.35523 4.74458 6.74458 4.35523 7.23463 4.15224C7.60218 4 8.06812 4 9 4C9.93188 4 10.3978 4 10.7654 4.15224C11.2554 4.35523 11.6448 4.74458 11.8478 5.23463C12 5.60218 12 6.06812 12 7C12 7.93188 12 8.39782 11.8478 8.76537C11.6448 9.25542 11.2554 9.64477 10.7654 9.84776C10.3978 10 9.93188 10 9 10C8.06812 10 7.60218 10 7.23463 9.84776C6.74458 9.64477 6.35523 9.25542 6.15224 8.76537C6 8.39782 6 7.93188 6 7Z",stroke:"currentColor",strokeWidth:"1.5",key:"4"}],["path",{d:"M12 17C12 16.0681 12 15.6022 12.1522 15.2346C12.3552 14.7446 12.7446 14.3552 13.2346 14.1522C13.6022 14 14.0681 14 15 14C15.9319 14 16.3978 14 16.7654 14.1522C17.2554 14.3552 17.6448 14.7446 17.8478 15.2346C18 15.6022 18 16.0681 18 17C18 17.9319 18 18.3978 17.8478 18.7654C17.6448 19.2554 17.2554 19.6448 16.7654 19.8478C16.3978 20 15.9319 20 15 20C14.0681 20 13.6022 20 13.2346 19.8478C12.7446 19.6448 12.3552 19.2554 12.1522 18.7654C12 18.3978 12 17.9319 12 17Z",stroke:"currentColor",strokeWidth:"1.5",key:"5"}]];var i8=[["path",{d:"M13 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var s8=[["path",{d:"M19 21C19.6068 20.4102 22 18.8403 22 18C22 17.1597 19.6068 15.5898 19 15M21 18H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 21C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C21.9796 9.05942 21.9992 10.0588 22 12V13",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}]];var a8=[["path",{d:"M8 6.50116H16.75C18.8567 6.50116 19.91 6.50116 20.6667 7.0069C20.9943 7.22584 21.2755 7.50717 21.4944 7.83484C22 8.59173 22 9.64538 22 11.7527C22 12.0122 22 12.2621 21.9997 12.5029M12 6.50116L11.3666 5.23392C10.8418 4.18406 10.3622 3.1273 9.19926 2.69106C8.6899 2.5 8.10802 2.5 6.94427 2.5C5.1278 2.5 4.21956 2.5 3.53806 2.88043C3.05227 3.15161 2.65142 3.55257 2.38032 4.03851C2 4.72021 2 5.62871 2 7.44571V10.5023C2 15.2177 2 17.5754 3.46447 19.0403C4.70529 20.2815 6.58687 20.4711 10 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["circle",{cx:"14",cy:"12.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"20",cy:"18.5",r:"2",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 18.5C15.7909 18.5 14 16.7091 14 14.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M14 14.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];Rm();var c8=[["path",{d:"M8 7H16.75C18.8567 7 19.91 7 20.6667 7.50559C20.9943 7.72447 21.2755 8.00572 21.4944 8.33329C22 9.08996 22 10.1433 22 12.25C22 15.7612 22 17.5167 21.1573 18.7779C20.7926 19.3238 20.3238 19.7926 19.7779 20.1573C18.5167 21 16.7612 21 13.25 21H12C7.28595 21 4.92893 21 3.46447 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38032 4.53806C2.65142 4.05227 3.05227 3.65142 3.53806 3.38032C4.21956 3 5.1278 3 6.94427 3C8.10802 3 8.6899 3 9.19926 3.19101C10.3622 3.62712 10.8418 4.68358 11.3666 5.73313L12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}]];var u8=[["path",{d:"M8.00164 6.50013H16.754C18.8613 6.50013 19.9149 6.50013 20.6718 7.00574C20.9995 7.22462 21.2808 7.50588 21.4997 7.83346C21.8937 8.42301 21.9808 9.19265 22 10.5003M12.0027 6.50013L11.3691 5.23321C10.8442 4.18363 10.3645 3.12714 9.20122 2.69101C8.69172 2.5 8.10969 2.5 6.94562 2.5C5.12865 2.5 4.22017 2.5 3.53848 2.88033C3.05255 3.15144 2.6516 3.5523 2.38042 4.03811C2 4.71963 2 5.6279 2 7.44443V10.5003C2 15.2145 2 17.5716 3.46487 19.0361C4.82227 20.3931 6.94628 20.4927 11.0025 20.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M21.4649 15C20.7733 13.8044 19.4806 13 18 13C16.4726 13 15.1451 13.8561 14.4713 15.1147M14.5351 19C15.2267 20.1956 16.5194 21 18 21C19.5227 21 20.8467 20.1492 21.5224 18.897M17 15.5H16C15.0572 15.5 14.5858 15.5 14.2929 15.2071C14 14.9142 14 14.4428 14 13.5V12.5M19 18.5H20C20.9428 18.5 21.4142 18.5 21.7071 18.7929C22 19.0858 22 19.5572 22 20.5V21.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var l8=[["path",{d:"M15.0244 21H12.0222C7.29769 21 4.93543 21 3.46772 19.5355C2 18.0711 2 15.714 2 11V7.94427C2 6.1278 2 5.21956 2.38116 4.53806C2.65287 4.05227 3.0546 3.65142 3.54148 3.38032C4.22449 3 5.13474 3 6.95525 3C8.12158 3 8.70475 3 9.21524 3.19101C10.3808 3.62712 10.8614 4.68358 11.3874 5.73313L12.0222 7M8.01332 7H16.7827C18.8941 7 19.9498 7 20.7081 7.50559C21.0364 7.72447 21.3183 8.00572 21.5377 8.33329C21.8193 8.75388 21.9444 9.26614 22 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.9961 14C15.9961 12.6193 17.1159 11.5 18.4973 11.5C19.8786 11.5 20.9984 12.6193 20.9984 14C20.9984 14.8571 20.5668 15.6135 19.9091 16.0639C19.2259 16.5317 18.4985 17.172 18.5 18M18.625 20.75H18.5M18.75 20.75C18.75 20.8881 18.6381 21 18.5 21C18.3619 21 18.25 20.8881 18.25 20.75C18.25 20.6119 18.3619 20.5 18.5 20.5C18.6381 20.5 18.75 20.6119 18.75 20.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var d8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 9.5C9.5 8.11929 10.6193 7 12 7C13.3807 7 14.5 8.11929 14.5 9.5C14.5 10.3569 14.0689 11.1131 13.4117 11.5636C12.7283 12.0319 12 12.6716 12 13.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 16.75H12M12.25 16.75C12.25 16.8881 12.1381 17 12 17C11.8619 17 11.75 16.8881 11.75 16.75C11.75 16.6119 11.8619 16.5 12 16.5C12.1381 16.5 12.25 16.6119 12.25 16.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var p8=[["circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 16V12",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.125 8.25H12M12.25 8.25C12.25 8.11193 12.1381 8 12 8C11.8619 8 11.75 8.11193 11.75 8.25C11.75 8.38807 11.8619 8.5 12 8.5C12.1381 8.5 12.25 8.38807 12.25 8.25Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var f8=[["path",{d:"M12 3V6",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 18V21",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M21 12L18 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M6 12L3 12",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M18.3635 5.63672L16.2422 7.75804",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M7.75804 16.2422L5.63672 18.3635",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M18.3635 18.3635L16.2422 16.2422",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M7.75804 7.75804L5.63672 5.63672",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}]];var m8=[["path",{d:"M12 20.5C19.1328 20.5 22 16.4706 22 11.5C22 6.52944 20.1328 2.5 12 2.5C4.13281 2.5 2 6.52944 2 11.5C2 13.5712 2.37034 15.4791 3.37161 17C4.63281 19 3.99253 20.8333 3 21.5C4.61547 21.5 5.70211 20.9858 6.39239 20.4766C6.88252 20.115 7.50688 19.9364 8.0984 20.0815C9.20689 20.3533 10.4991 20.5 12 20.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9C14 9.57777 13.755 10.0983 13.3632 10.4634C12.7572 11.0282 12 11.6716 12 12.5M12.125 15.75H12M12.25 15.75C12.25 15.8881 12.1381 16 12 16C11.8619 16 11.75 15.8881 11.75 15.75C11.75 15.6119 11.8619 15.5 12 15.5C12.1381 15.5 12.25 15.6119 12.25 15.75Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var h8=[["path",{d:"M6.00449 12.5V12M18.0045 12.5V12M12.0045 12.5V12M7.00449 12.5C7.00449 11.9477 6.55677 11.5 6.00449 11.5C5.4522 11.5 5.00449 11.9477 5.00449 12.5C5.00449 13.0523 5.4522 13.5 6.00449 13.5C6.55677 13.5 7.00449 13.0523 7.00449 12.5ZM19.0045 12.5C19.0045 11.9477 18.5568 11.5 18.0045 11.5C17.4522 11.5 17.0045 11.9477 17.0045 12.5C17.0045 13.0523 17.4522 13.5 18.0045 13.5C18.5568 13.5 19.0045 13.0523 19.0045 12.5ZM13.0045 12.5C13.0045 11.9477 12.5568 11.5 12.0045 11.5C11.4522 11.5 11.0045 11.9477 11.0045 12.5C11.0045 13.0523 11.4522 13.5 12.0045 13.5C12.5568 13.5 13.0045 13.0523 13.0045 12.5Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var g8=[["path",{d:"M17 17L21 21",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19C15.4183 19 19 15.4183 19 11Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}]];var C8=[["path",{d:"M21.3175 7.14139L20.8239 6.28479C20.4506 5.63696 20.264 5.31305 19.9464 5.18388C19.6288 5.05472 19.2696 5.15664 18.5513 5.36048L17.3311 5.70418C16.8725 5.80994 16.3913 5.74994 15.9726 5.53479L15.6357 5.34042C15.2766 5.11043 15.0004 4.77133 14.8475 4.37274L14.5136 3.37536C14.294 2.71534 14.1842 2.38533 13.9228 2.19657C13.6615 2.00781 13.3143 2.00781 12.6199 2.00781H11.5051C10.8108 2.00781 10.4636 2.00781 10.2022 2.19657C9.94085 2.38533 9.83106 2.71534 9.61149 3.37536L9.27753 4.37274C9.12465 4.77133 8.84845 5.11043 8.48937 5.34042L8.15249 5.53479C7.73374 5.74994 7.25259 5.80994 6.79398 5.70418L5.57375 5.36048C4.85541 5.15664 4.49625 5.05472 4.17867 5.18388C3.86109 5.31305 3.67445 5.63696 3.30115 6.28479L2.80757 7.14139C2.45766 7.74864 2.2827 8.05227 2.31666 8.37549C2.35061 8.69871 2.58483 8.95918 3.05326 9.48012L4.0843 10.6328C4.3363 10.9518 4.51521 11.5078 4.51521 12.0077C4.51521 12.5078 4.33636 13.0636 4.08433 13.3827L3.05326 14.5354C2.58483 15.0564 2.35062 15.3168 2.31666 15.6401C2.2827 15.9633 2.45766 16.2669 2.80757 16.8741L3.30114 17.7307C3.67443 18.3785 3.86109 18.7025 4.17867 18.8316C4.49625 18.9608 4.85542 18.8589 5.57377 18.655L6.79394 18.3113C7.25263 18.2055 7.73387 18.2656 8.15267 18.4808L8.4895 18.6752C8.84851 18.9052 9.12464 19.2442 9.2775 19.6428L9.61149 20.6403C9.83106 21.3003 9.94085 21.6303 10.2022 21.8191C10.4636 22.0078 10.8108 22.0078 11.5051 22.0078H12.6199C13.3143 22.0078 13.6615 22.0078 13.9228 21.8191C14.1842 21.6303 14.294 21.3003 14.5136 20.6403L14.8476 19.6428C15.0004 19.2442 15.2765 18.9052 15.6356 18.6752L15.9724 18.4808C16.3912 18.2656 16.8724 18.2055 17.3311 18.3113L18.5513 18.655C19.2696 18.8589 19.6288 18.9608 19.9464 18.8316C20.264 18.7025 20.4506 18.3785 20.8239 17.7307L21.3175 16.8741C21.6674 16.2669 21.8423 15.9633 21.8084 15.6401C21.7744 15.3168 21.5402 15.0564 21.0718 14.5354L20.0407 13.3827C19.7887 13.0636 19.6098 12.5078 19.6098 12.0077C19.6098 11.5078 19.7888 10.9518 20.0407 10.6328L21.0718 9.48012C21.5402 8.95918 21.7744 8.69871 21.8084 8.37549C21.8423 8.05227 21.6674 7.74864 21.3175 7.14139Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M15.5195 12C15.5195 13.933 13.9525 15.5 12.0195 15.5C10.0865 15.5 8.51953 13.933 8.51953 12C8.51953 10.067 10.0865 8.5 12.0195 8.5C13.9525 8.5 15.5195 10.067 15.5195 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var k8=[["path",{d:"M2 12C2 8.31087 2 6.4663 2.81382 5.15877C3.1149 4.67502 3.48891 4.25427 3.91891 3.91554C5.08116 3 6.72077 3 10 3H14C17.2792 3 18.9188 3 20.0811 3.91554C20.5111 4.25427 20.8851 4.67502 21.1862 5.15877C22 6.4663 22 8.31087 22 12C22 15.6891 22 17.5337 21.1862 18.8412C20.8851 19.325 20.5111 19.7457 20.0811 20.0845C18.9188 21 17.2792 21 14 21H10C6.72077 21 5.08116 21 3.91891 20.0845C3.48891 19.7457 3.1149 19.325 2.81382 18.8412C2 17.5337 2 15.6891 2 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M9.5 3L9.5 21",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M5 7H6M5 10H6",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var y8=[["path",{d:"M3.99963 5.00055L9.99963 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M12.9996 5.00031L19.9996 5.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M15.9996 9.00031L15.9996 15.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M9.99963 2.00031L9.99963 8.00031",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M11.9996 16.0003L11.9996 22.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"4"}],["path",{d:"M15.9996 12.0001L19.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"5"}],["path",{d:"M3.99963 12.0005L12.9996 12.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"6"}],["path",{d:"M11.9996 19.0003L19.9996 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"7"}],["path",{d:"M3.99963 19.0005L8.99963 19.0003",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"8"}]];var b8=[["path",{d:"M17 8L18.8398 9.85008C19.6133 10.6279 20 11.0168 20 11.5C20 11.9832 19.6133 12.3721 18.8398 13.1499L17 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M7 8L5.16019 9.85008C4.38673 10.6279 4 11.0168 4 11.5C4 11.9832 4.38673 12.3721 5.16019 13.1499L7 15",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M14.5 4L9.5 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var v8=[["path",{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14 2.20004C13.3538 2.06886 12.6849 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 11.3151 21.9311 10.6462 21.8 10",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M12.0303 11.9625L16.5832 7.4096M19.7404 4.34462L19.1872 2.35748C19.0853 2.03011 18.6914 1.89965 18.4259 2.11662C16.9898 3.29018 15.4254 4.87091 16.703 7.36419C19.2771 8.56455 20.7466 6.94584 21.8733 5.5853C22.0975 5.3146 21.9623 4.90767 21.6247 4.81005L19.7404 4.34462Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var w8=[["path",{d:"M5 14L8.5 17.5L19 6.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];var x8=[["path",{d:"M3 15V14H21V15C21 17.8284 21 19.2426 20.1213 20.1213C19.2426 21 17.8284 21 15 21H9C6.17157 21 4.75736 21 3.87868 20.1213C3 19.2426 3 17.8284 3 15Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M3 14L3.00001 12.9999C3.00003 11.5278 3.00004 10.7918 3.31675 10.1584C3.63347 9.52493 4.22231 9.08329 5.39999 8.20002C6.19297 7.60528 6.58946 7.30791 7.05132 7.15395C7.51317 7 8.00879 7 9.00002 7H15C15.9912 7 16.4868 7 16.9487 7.15395C17.4105 7.3079 17.807 7.60527 18.6 8.2C19.7777 9.08328 20.3666 9.52492 20.6833 10.1584C21 10.7918 21 11.5279 21 13V14H3Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M16 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M8 12V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}],["path",{d:"M8.49997 7.00006V6.50006C8.49997 5.0956 8.49997 4.39337 8.83703 3.88892C8.98295 3.67054 9.17045 3.48304 9.38883 3.33712C9.89328 3.00006 10.5955 3.00006 12 3.00006C13.4044 3.00006 14.1067 3.00006 14.6111 3.33712C14.8295 3.48304 15.017 3.67054 15.1629 3.88892C15.5 4.39337 15.5 5.0956 15.5 6.50006V7.00006",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"4"}]];var I8=[["path",{d:"M20.0004 10.9826C20.6281 10.1316 21 9.07385 21 7.92761C21 5.11556 18.7614 2.83594 16 2.83594C14.0209 2.83594 12.3104 4.00687 11.5 5.70554",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M14.6364 21.1658H9.36364C6.67794 21.1658 5.33509 21.1658 4.40253 20.4549C4.13533 20.2512 3.89812 20.0096 3.69811 19.7375C3 18.7879 3 17.4204 3 14.6855C3 13.1226 3 12.3412 3.39892 11.7986C3.51321 11.6431 3.64876 11.505 3.80144 11.3887C4.33434 10.9824 5.10168 10.9824 6.63636 10.9824H17.3636C18.8983 10.9824 19.6657 10.9824 20.1986 11.3887C20.3512 11.505 20.4868 11.6431 20.6011 11.7986C21 12.3412 21 13.1226 21 14.6855C21 17.4204 21 18.7879 20.3019 19.7375C20.1019 20.0096 19.8647 20.2512 19.5975 20.4549C18.6649 21.1658 17.3221 21.1658 14.6364 21.1658Z",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M10 15.0547H14",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M13.6858 10.9826L13.335 10.1564C13.2474 9.94999 13.2565 9.71349 13.3595 9.51989L14.9144 6.59747C15.1776 6.10273 14.7982 5.48558 14.2636 5.53902L11.1099 5.85432C10.9004 5.87526 10.692 5.78776 10.5492 5.6189L8.39732 3.07491C8.03241 2.64349 7.37203 2.82539 7.26584 3.38656L6.63969 6.69573C6.59813 6.91538 6.46021 7.09827 6.26863 7.18779L3.38401 8.53572C2.89509 8.76418 2.86669 9.49366 3.33529 9.78682L5.24666 10.9826",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]];var S8=[["path",{d:"M3 20.5002C3.28417 16.8058 6.3 13.7193 10.0008 13.5379C10.3134 13.5226 10.6446 13.5097 11 13.5L11.995 13.5663C12.6939 13.6129 13.3665 13.7543 14 13.9777",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M18 15.5V21.5M21 18.5L15 18.5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["circle",{cx:"11",cy:"6.5",r:"4",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"2"}]];var _8=[["path",{d:"M5.25 5L19.25 19",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M22.25 12C22.25 6.47715 17.7728 2 12.25 2C6.72715 2 2.25 6.47715 2.25 12C2.25 17.5228 6.72715 22 12.25 22C17.7728 22 22.25 17.5228 22.25 12Z",stroke:"currentColor",strokeWidth:"1.5",key:"1"}]];var P8=[["path",{d:"M15 5C15 6.65685 13.6569 8 12 8C10.3431 8 9 6.65685 9 5C9 3.34315 10.3431 2 12 2C13.6569 2 15 3.34315 15 5Z",stroke:"currentColor",strokeWidth:"1.5",key:"0"}],["path",{d:"M12 8V9M12 9C12 9.93188 12 10.3978 12.1776 10.7654C12.4144 11.2554 12.8687 11.6448 13.4404 11.8478C13.8692 12 14.4128 12 15.5 12C16.5872 12 17.1308 12 17.5596 12.1522C18.1313 12.3552 18.5856 12.7446 18.8224 13.2346C19 13.6022 19 14.0681 19 15V16M12 9C12 9.93188 12 10.3978 11.8224 10.7654C11.5856 11.2554 11.1313 11.6448 10.5596 11.8478C10.1308 12 9.5872 12 8.5 12C7.4128 12 6.8692 12 6.44041 12.1522C5.86867 12.3552 5.41443 12.7446 5.17761 13.2346C5 13.6022 5 14.0681 5 15V16",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M8 19C8 20.6569 6.65685 22 5 22C3.34315 22 2 20.6569 2 19C2 17.3431 3.34315 16 5 16C6.65685 16 8 17.3431 8 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"2"}],["path",{d:"M22 19C22 20.6569 20.6569 22 19 22C17.3431 22 16 20.6569 16 19C16 17.3431 17.3431 16 19 16C20.6569 16 22 17.3431 22 19Z",stroke:"currentColor",strokeWidth:"1.5",key:"3"}]];var L8=[["path",{d:"M8.62814 12.6736H8.16918C6.68545 12.6736 5.94358 12.6736 5.62736 12.1844C5.31114 11.6953 5.61244 11.0138 6.21504 9.65083L8.02668 5.55323C8.57457 4.314 8.84852 3.69438 9.37997 3.34719C9.91142 3 10.5859 3 11.935 3H14.0244C15.6632 3 16.4826 3 16.7916 3.53535C17.1007 4.0707 16.6942 4.78588 15.8811 6.21623L14.8092 8.10188C14.405 8.81295 14.2029 9.16849 14.2057 9.45952C14.2094 9.83775 14.4105 10.1862 14.7354 10.377C14.9854 10.5239 15.3927 10.5239 16.2074 10.5239C17.2373 10.5239 17.7523 10.5239 18.0205 10.7022C18.3689 10.9338 18.5513 11.3482 18.4874 11.7632C18.4382 12.0826 18.0918 12.4656 17.399 13.2317L11.8639 19.3523C10.7767 20.5545 10.2331 21.1556 9.86807 20.9654C9.50303 20.7751 9.67833 19.9822 10.0289 18.3962L10.7157 15.2896C10.9826 14.082 11.1161 13.4782 10.7951 13.0759C10.4741 12.6736 9.85877 12.6736 8.62814 12.6736Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",key:"0"}]];Em();var C_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M18 13V21M22 17H14",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"3"}]],k_=[["path",{d:"M2 3.4C2 2.24173 2.24173 2 3.4 2H20.6C21.7583 2 22 2.24173 22 3.4V4.6C22 5.75827 21.7583 6 20.6 6H3.4C2.24173 6 2 5.75827 2 4.6V3.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"0"}],["path",{d:"M2 11.4C2 10.2417 2.24173 10 3.4 10H10.6C11.7583 10 12 10.2417 12 11.4V12.6C12 13.7583 11.7583 14 10.6 14H3.4C2.24173 14 2 13.7583 2 12.6V11.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"1"}],["path",{d:"M2 19.4C2 18.2417 2.24173 18 3.4 18H10.6C11.7583 18 12 18.2417 12 19.4V20.6C12 21.7583 11.7583 22 10.6 22H3.4C2.24173 22 2 21.7583 2 20.6V19.4Z",stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.5",key:"2"}],["path",{d:"M14 17H22M19 14L22 17L19 20",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",key:"3"}]],AC={AlertCircle:Wg,AlertTriangle:Zg,Archive:Vg,Bot:Ug,Bug:Kg,Check:w8,ChevronDown:Fg,ChevronLeft:Hg,ChevronRight:Bg,Circle:Xg,CircleCheck:Jg,CircleQuestion:d8,CircleX:qg,ClosePluginPane:gu,CloseThreadPane:gu,Code:b8,ComputerTerminal01:Mm,Copy:Qg,Download:n8,Edit:r8,FilterHorizontal:o8,Folder:c8,FolderExport:s8,FolderGit:a8,FolderPlus:i8,FolderSync:u8,FolderUnknown:l8,Folder02:Cu,Info:p8,ListTodo:Yg,Loading:f8,MessageQuestion:m8,MessageCirclePlus:Lm,MessageSquarePlus:Lm,MessageSquare:Gg,MoreHorizontal:h8,PanelLeft:k8,Search:g8,SectionAdd:C_,SectionMove:k_,Settings:C8,SlidersHorizontal:y8,Spinner:e8,Target:v8,Terminal:Mm,Toolbox:x8,ToolCase:I8,Trash2:t8,Unavailable:_8,UserRoundPlus:S8,Workflow:P8,X:gu,Zap:L8},y_=Object.keys(AC),b_=[...y_,...T8],v_=AC,zm=null;function w_(){return ku()!==null?Promise.resolve():(zm??=Promise.resolve().then(()=>(TC(),RC)).then(()=>{},e=>{throw zm=null,e}),zm)}var x_=[],I_=new Set(b_),$C=we([]);function jm(e){return I_.has(e)}var Wm=class extends Fu{state={failed:!1};static getDerivedStateFromError(){return{failed:!0}}render(){return this.state.failed?this.props.fallback:this.props.children}};function Nt({name:e,fallback:t="Zap",...n}){let r=xe($C),o=tn(Am,()=>Xi(e),()=>Xi(e)),i=tn(Am,()=>Xi(t),()=>Xi(t)),s=tn(Dm,()=>Qi(e),()=>Qi(e)),a=tn(Dm,()=>Qi(t),()=>Qi(t)),c=o!==void 0||jm(e)||s!==void 0,u=c?e:t,l=c?o:i,d=c?s:a,m=l?.component;return r.includes(u)?f(Zm,{name:jm(u)?u:"Zap",...n}):m!==void 0&&l!==void 0?f($C.Provider,{value:[...r,u],children:f(Wm,{fallback:f(Zm,{name:"Zap",...n}),children:f("span",{className:w("inline-flex size-6 shrink-0",n.className),style:n.style,"aria-hidden":n["aria-hidden"],"aria-label":n["aria-label"],role:n["aria-label"]?"img":void 0,"data-icon":u,"data-icon-root":"",children:f(m,{className:"size-full"})})},l.key)}):m===void 0&&d!==void 0?f(S_,{url:d,resolved:u,...n}):f(Zm,{name:jm(u)?u:"Zap",...n})}function S_({url:e,resolved:t,className:n,style:r,"aria-hidden":o,"aria-label":i}){let s=`url("${e.replace(/["\\]/gu,"\\$&")}")`;return f("span",{className:w("inline-block size-6 shrink-0",n),style:{...r,backgroundColor:"currentColor",maskImage:s,maskPosition:"center",maskRepeat:"no-repeat",maskSize:"contain",WebkitMaskImage:s,WebkitMaskPosition:"center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},"aria-hidden":o,"aria-label":i,role:i?"img":void 0,"data-icon":t,"data-icon-root":"","data-plugin-icon-asset":e})}function Zm({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let i=v_[e];return i!==void 0?f(Ji,{icon:i,className:w(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":""}):f(__,{name:e,className:t,style:n,"aria-hidden":r,"aria-label":o})}function __({name:e,className:t,style:n,"aria-hidden":r,"aria-label":o}){let s=tn(A8,ku,ku)?.[e];return s===void 0&&w_().catch(()=>{}),f(Ji,{icon:s??x_,className:w(t),style:n,"aria-hidden":r,"aria-label":o,"data-icon":e,"data-icon-root":"","data-icon-pending":s===void 0?"":void 0})}var DC=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{},titleId:"",descriptionId:"",registerTitleId:()=>()=>{},registerDescriptionId:()=>()=>{}});function es(){return xe(DC)}function ts({children:e,open:t,onOpenChange:n,...r}){let o=Rr(t,n),i=yn(),s=yn(),[a,c]=A(i),[u,l]=A(s),d=E(g=>(c(g),()=>c(i)),[i]),m=E(g=>(l(g),()=>l(s)),[s]),p=G(()=>({...o,titleId:a,descriptionId:u,registerTitleId:d,registerDescriptionId:m}),[u,m,d,o,a]),h=p.isCompactViewport?e:f(Og,{open:p.open,onOpenChange:p.onOpenChange,...r,children:e});return f(DC.Provider,{value:p,children:h})}var P_=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=es();return i?f(qn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"dialog",className:n,...r,children:t}):f(jg,{ref:o,asChild:e,className:wn(n),onMouseDown:c=>{s||xn(),rn(c)},...r,children:t})});P_.displayName="DialogTrigger";var L_=H(({asChild:e,onClick:t,children:n,...r},o)=>{let{isCompactViewport:i,onOpenChange:s}=es();return i?f(e?vn:"button",{ref:o,onClick:u=>{t?.(u),u.defaultPrevented||s(!1)},...r,children:n}):f(Sm,{ref:o,asChild:e,onClick:t,...r,children:n})});L_.displayName="DialogClose";var EC=H(({className:e,...t},n)=>f(Pm,{ref:n,...Ae(),className:w("fixed inset-0 z-50 bg-black/40 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));EC.displayName=Pm.displayName;var bo=H(({className:e,children:t,hideCloseButton:n=!1,onAfterCloseAutoFocus:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u,titleId:l,descriptionId:d}=es();let m=Ae();if(a){let p=Tr(i);return f($r,{open:c,onOpenChange:u,onAfterCloseAutoFocus:r,labelledBy:l,describedBy:d,children:f("div",{ref:s,className:w("grid grid-cols-[minmax(0,1fr)] gap-4 overflow-y-auto px-4 pt-2 pb-[max(1rem,env(safe-area-inset-bottom))]",e,"max-w-none"),...p,children:t})})}return v(Ng,{children:[f(EC,{}),v(Eg,{ref:s,...m,onCloseAutoFocus:p=>{o?.(p),queueMicrotask(()=>r?.())},className:w("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg grid-cols-[minmax(0,1fr)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-sm duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 sm:rounded-lg",e),...i,children:[t,n?null:v(Sm,{className:"absolute right-4 top-4 cursor-pointer rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-state-active data-[state=open]:text-foreground",children:[f(Nt,{name:"X",className:"h-4 w-4"}),f("span",{className:"sr-only",children:"Close"})]})]})]})});bo.displayName="DialogContent";var vo=({className:e,...t})=>f("div",{className:w("flex flex-col space-y-1.5 text-left",e),...t});vo.displayName="DialogHeader";var bu=({className:e,...t})=>f("div",{className:w("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});bu.displayName="DialogFooter";var wo=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,titleId:a,registerTitleId:c}=es(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:w("text-base font-semibold leading-none tracking-tight",t),...o};return e?f(vn,{ref:i,...l,children:r}):f("h2",{ref:i,...l,children:r})}return f(zg,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:w("text-base font-semibold leading-none tracking-tight",t),...o,children:r})});wo.displayName="DialogTitle";var vu=H(({asChild:e,className:t,id:n,children:r,...o},i)=>{let{isCompactViewport:s,descriptionId:a,registerDescriptionId:c}=es(),u=n??a;if(ot(()=>{if(s)return c(u)},[s,c,u]),s){let l={id:u,className:w("text-sm text-muted-foreground",t),...o};return e?f(vn,{ref:i,...l,children:r}):f("p",{ref:i,...l,children:r})}return f(_m,{ref:i,asChild:e,...n===void 0?{}:{id:n},className:w("text-sm text-muted-foreground",t),...o,children:r})});vu.displayName=_m.displayName;var NC="text-sm max-md:pointer-coarse:text-base";var zn="h-3.5 w-3.5 max-md:pointer-coarse:h-5 max-md:pointer-coarse:w-5",OC="h-[28px] w-[28px] rounded-md p-0 max-md:pointer-coarse:h-[36px] max-md:pointer-coarse:w-[36px]",pj=`${OC} [&_[data-icon-root]]:size-[16px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[20px]`,fj=`${OC} [&_[data-icon-root]]:size-[13px] max-md:pointer-coarse:[&_[data-icon-root]]:size-[16px]`;var zC="h-9 max-md:pointer-coarse:h-10";var wu=H(({className:e,type:t,...n},r)=>f("input",{type:t,autoComplete:"off",className:w(`flex w-full rounded-md border border-input bg-transparent pl-3 pr-3 py-1 ${zs} file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50`,zC,NC,e),ref:r,...n}));wu.displayName="Input";function jC({open:e,items:t,onOpenChange:n,onToggleHidden:r,onMove:o}){return f(ts,{open:e,onOpenChange:n,children:v(bo,{className:"max-w-sm",children:[v(vo,{children:[f(wo,{children:"Customize list"}),f(vu,{children:"Hidden groups move into More. Their counters still show there."})]}),f("ul",{className:"flex flex-col gap-0.5","aria-label":"Groups",children:t.map((i,s)=>v("li",{"data-sidebar-customize-item":i.id,className:"flex items-center gap-1 rounded-md py-0.5 pl-2 pr-1 text-sm hover:bg-accent",children:[f("span",{className:w("min-w-0 flex-1 truncate",i.hidden&&"text-muted-foreground"),children:i.label}),f(Ke,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} up`,disabled:s===0,onClick:()=>o(i.id,-1),children:f(F,{name:z.moveUp,"aria-hidden":!0})}),f(Ke,{variant:"ghost",size:"icon",className:"size-7","aria-label":`Move ${i.label} down`,disabled:s===t.length-1,onClick:()=>o(i.id,1),children:f(F,{name:z.collapse,"aria-hidden":!0})}),f(Ke,{variant:"ghost",size:"icon",className:"size-7","aria-pressed":!i.hidden,"aria-label":i.hidden?`Show ${i.label}`:`Hide ${i.label}`,disabled:!i.hideable,onClick:()=>r(i.id),children:f(F,{name:i.hidden?z.hidden:z.show,"aria-hidden":!0})})]},i.id))}),f(bu,{children:f(Ke,{onClick:()=>n(!1),children:"Done"})})]})})}function ZC({open:e,onOpenChange:t,onCreate:n}){let[r,o]=A(""),[i,s]=A(!1);return O(()=>{e&&o("")},[e]),f(ts,{open:e,onOpenChange:t,children:f(bo,{className:"max-w-sm",children:v("form",{className:"flex flex-col gap-4",onSubmit:async a=>{a.preventDefault();let c=r.trim();if(c!==""){s(!0);try{await n(c),t(!1)}finally{s(!1)}}},children:[f(vo,{children:f(wo,{children:"New section"})}),f(wu,{autoFocus:!0,"aria-label":"Section name",value:r,onChange:a=>o(a.target.value)}),v(bu,{children:[f(Ke,{type:"button",variant:"ghost",onClick:()=>t(!1),children:"Cancel"}),f(Ke,{type:"submit",disabled:i||r.trim()==="",children:"Create"})]})]})})})}function WC({open:e,title:t,description:n,confirmLabel:r,destructive:o,onOpenChange:i,onConfirm:s}){return f(Ag,{open:e,onOpenChange:i,children:v(Cm,{children:[v(km,{children:[f(bm,{children:t}),f(vm,{children:n})]}),v(ym,{children:[f(xm,{children:"Cancel"}),f(wm,{className:w(o&&"bg-destructive text-destructive-foreground hover:bg-destructive/90"),onClick:s,children:r})]})]})})}function VC({open:e,title:t,onOpenChange:n,children:r}){return f(ts,{open:e,onOpenChange:n,children:v(bo,{className:"max-w-sm",children:[f(vo,{children:f(wo,{className:"sr-only",children:t})}),r]})})}function FC({open:e,title:t,targets:n,query:r,onQueryChange:o,onOpenChange:i,onMove:s}){let[a,c]=A(0);O(()=>c(0),[r,e]);let u=l=>{l!==void 0&&(s(l.parentThreadId),i(!1))};return f(ts,{open:e,onOpenChange:i,children:v(bo,{className:"max-w-sm",children:[v(vo,{children:[v(wo,{children:["Move \u201C",t,"\u201D"]}),f(vu,{children:"Nest it under another thread, or move it to the top level."})]}),f(wu,{autoFocus:!0,role:"combobox","aria-expanded":!0,"aria-controls":"thread-glance-move-targets","aria-activedescendant":n[a]?`thread-glance-move-${a}`:void 0,"aria-label":"Find a thread",placeholder:"Find a thread",value:r,onChange:l=>o(l.target.value),onKeyDown:l=>{l.key==="ArrowDown"?(l.preventDefault(),c(d=>Math.min(d+1,n.length-1))):l.key==="ArrowUp"?(l.preventDefault(),c(d=>Math.max(d-1,0))):l.key==="Enter"&&(l.preventDefault(),u(n[a]))}}),v("ul",{id:"thread-glance-move-targets",role:"listbox","aria-label":"Move to",className:"flex max-h-72 flex-col gap-0.5 overflow-y-auto",children:[n.length===0?f("li",{className:"px-2 py-1.5 text-sm text-muted-foreground",children:"No matching threads"}):null,n.map((l,d)=>v("li",{id:`thread-glance-move-${d}`,role:"option","aria-selected":d===a,onMouseEnter:()=>c(d),onClick:()=>u(l),className:w("flex cursor-pointer flex-col rounded-md px-2 py-1.5 text-sm",d===a&&"bg-accent"),children:[f("span",{className:"truncate",children:l.label}),l.detail?f("span",{className:"truncate text-xs text-muted-foreground",children:l.detail}):null]},l.parentThreadId??"top"))]})]})})}function HC(){let e=kn(),[t,n]=A({}),r=Cn(),o=$(!1),i=E(()=>{e.call("listNotes",null).then(s=>n(s.notes),()=>{})},[e]);return O(i,[i]),O(()=>{r==="connected"&&(o.current&&i(),o.current=!0)},[r,i]),gn(Nn.notes,s=>{let a=s;if(a===null||typeof a!="object"||typeof a.threadId!="string")return;let c=a.notes===null?null:L4.safeParse(a.notes);c!==null&&!c.success||n(u=>{let l={...u};return c===null?delete l[a.threadId]:l[a.threadId]=c.data,l})}),t}function BC(e){let t=wr(),[n,r]=A(()=>new Map),o=$(new Set);return O(()=>{for(let i of e){if(o.current.has(i))continue;o.current.add(i);let s=a=>r(c=>new Map(c).set(i,a));t.projects.get({projectId:i}).then(async a=>{let c=kg(a.sources);return c===null?null:(await t.projects.branches({projectId:i,hostId:c,limit:"1"})).defaultBranch??null}).then(s,()=>s(null))}},[e,t]),n}var M_={defaultProviderId:null,primaryHostId:null};function R_(e){return{defaultProviderId:e.generalSettings.defaultProviderId??e.serverAccess.defaultProviderId??null,primaryHostId:e.primaryHostId}}function UC(){let e=wr(),[t,n]=A(M_);return O(()=>{let r=!1;return Promise.resolve().then(()=>e.system.config()).then(o=>{r||n(R_(o))},()=>{}),()=>{r=!0}},[e]),t}function GC(e,t,n="",r=50){let o=t.infos.get(e);if(o===void 0)return[];let i=u=>t.infos.get(u)?.thread.parentThreadId??null,s=n.trim().toLowerCase(),a=[];o.thread.parentThreadId!==null&&(s===""||"top level".includes(s))&&a.push({parentThreadId:null,label:"Top level",detail:"No parent thread"});let c=[...t.infos.values()].filter(u=>{let l=u.thread;return l.isHidden||l.isArchived||l.id===o.thread.parentThreadId||q2(l.id,e,i)?!1:s===""||l.displayTitle.toLowerCase().includes(s)}).sort((u,l)=>l.thread.latestAttentionAt-u.thread.latestAttentionAt);for(let u of c.slice(0,r)){let l=u.parentId===null?null:t.infos.get(u.parentId);a.push({parentThreadId:u.thread.id,label:u.thread.displayTitle,detail:l?`in ${l.thread.displayTitle}`:null})}return a}var T_=[["waits-on-you","needing you"],["failed","failed"],["queue-failed","queue failed"],["offline","offline"],["working","working"],["background","in background"],["scheduled","scheduled"],["queued","queued"],["unread","unread"],["draft","drafts"],["idle","idle"]];function KC(e){let t=new Map;for(let r of e)r.thread.isHidden||t.set(r.state.kind,(t.get(r.state.kind)??0)+1);let n=T_.filter(([r])=>t.has(r)).map(([r,o])=>`${t.get(r)} ${o}`);return n.length>0?n.join(", "):null}function qC(e,t){if(e===void 0)return[];if(e.root.thread.id===t)return e.descendants;let n=[],r=new Set([t]);for(let o of e.descendants)o.parentId!==null&&r.has(o.parentId)&&(r.add(o.thread.id),n.push(o));return n}function xo(e){return new Date(e).toLocaleString(void 0,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}function YC(e,t){if(t===null)return null;let n=t==="now"?"just now":`${t} ago`;switch(e){case"working":case"background":return`started ${n}`;case"waits-on-you":return`waiting since ${n}`;case"failed":return`failed ${n}`;default:return`finished ${n}`}}function JC(e,t){return t.find(n=>n.model===e||n.id===e)?.displayName??e}var xu={attention:"text-attention",destructive:"text-destructive",working:"text-[var(--timeline-accent)]",background:"text-muted-foreground/50","muted-strong":"text-muted-foreground/75",muted:"text-muted-foreground",none:""},XC="animate-shine-icon motion-reduce:animate-none",$_="animate-spin motion-reduce:animate-none";function QC({label:e,className:t}){return f("span",{role:e?"img":void 0,"aria-label":e,"aria-hidden":e?void 0:!0,className:w("inline-block size-[6px] shrink-0 rounded-full bg-[var(--timeline-accent)]",t)})}function A_({className:e}){return f("span",{"aria-hidden":!0,className:w("inline-block size-2.5 shrink-0 rounded-full border-[1.5px] border-current opacity-50",e)})}function ns({glyph:e,label:t,className:n}){return e.icon==="ring"?f(A_,{className:xu[e.tone]}):e.icon==="dot"?f(QC,{label:t}):f(F,{name:e.icon,"aria-label":t,"aria-hidden":t?void 0:!0,className:w("size-4 shrink-0",xu[e.tone],e.spin&&$_,e.shine&&XC,n)})}function ek({status:e}){let t=e.tone==="error"?"text-destructive":e.tone==="success"?"text-success-foreground":e.tone==="running"?"text-success motion-safe:animate-pulse":"text-muted-foreground";return f(F,{name:e.icon,"aria-label":e.label,className:w("size-4 shrink-0",t,e.tone==="running"&&XC)})}var D_={attention:"text-attention",destructive:"text-destructive",muted:"text-muted-foreground"};function Iu({note:e}){return v(bt,{children:[f("span",{className:D_[e.tone],children:e.text===""?e.prefix:`${e.prefix}:`}),e.text===""?null:` ${e.text}`]})}function Su({flag:e,className:t}){return f(ns,{glyph:su[e],className:t})}function tk({flag:e}){return su[e].icon==="dot"?f(QC,{className:"size-[5px]"}):f(Su,{flag:e,className:"size-3"})}var E_=[{key:"waitsOnYou",flag:"waits-on-you",label:e=>`${e} waiting on you`},{key:"failed",flag:"unread-failed",label:e=>`${e} failed`},{key:"offline",flag:"offline",label:e=>`${e} waiting for an offline machine`},{key:"working",flag:"working",label:e=>`${e} working`},{key:"unread",flag:"unread",label:e=>`${e} unread`}];function _u({counters:e,className:t}){let n=E_.filter(r=>e[r.key]>0);return n.length===0?null:f("span",{role:"group","aria-label":n.map(r=>r.label(e[r.key])).join(", "),className:w("inline-flex shrink-0 items-center gap-1.5 text-xs tabular-nums",t),children:n.map(r=>v("span",{"aria-hidden":!0,className:"inline-flex items-center gap-0.5 text-muted-foreground",children:[f(Su,{flag:r.flag,className:"size-3.5"}),e[r.key]]},r.key))})}var N_=500,O_=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"]),rs=!1,Pu=0,nk=0;function rk(e){rs=O_.has(e.key)}function ok(){rs=!1,Pu+=1}function ik(){Pu+=1}function sk(e,t){let[n,r]=A(!1),o=$(null),i=$(null),s=$(!1),a=()=>{o.current!==null&&clearTimeout(o.current),o.current=null},c=()=>{if(o.current!==null||!t||s.current)return;let u=Pu;o.current=setTimeout(()=>{o.current=null,Pu===u&&r(!0)},N_)};return O(()=>(nk++===0&&(rs=!1,document.addEventListener("keydown",rk,!0),document.addEventListener("pointerdown",ok,!0)),()=>{a(),--nk===0&&(document.removeEventListener("keydown",rk,!0),document.removeEventListener("pointerdown",ok,!0))}),[]),O(()=>{a(),r(!1)},[e,t]),{open:n&&t&&!e,onOpenChange:u=>{u||(a(),r(!1))},rowProps:{onPointerEnter:u=>{i.current={x:u.clientX,y:u.clientY}},onPointerMove:u=>{if(u.pointerType==="touch")return;let l=i.current;l!==null&&l.x===u.clientX&&l.y===u.clientY||(i.current=null,c())},onPointerLeave:()=>{a(),i.current=null,s.current=!1},onPointerDown:()=>{s.current=!0,a(),r(!1)},onFocus:()=>{rs&&(rs=!1,c())},onBlur:a}}}var Vm=globalThis.__bbPluginRuntime;if(Vm==null||Vm.radixDropdownMenu==null)throw new Error('Cannot load "@radix-ui/react-dropdown-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Lu=Vm.radixDropdownMenu,Jj="default"in Lu?Lu.default:Lu,{Arrow:Xj,CheckboxItem:ak,Content:ck,DropdownMenu:Qj,DropdownMenuArrow:eZ,DropdownMenuCheckboxItem:tZ,DropdownMenuContent:nZ,DropdownMenuGroup:rZ,DropdownMenuItem:oZ,DropdownMenuItemIndicator:iZ,DropdownMenuLabel:sZ,DropdownMenuPortal:aZ,DropdownMenuRadioGroup:cZ,DropdownMenuRadioItem:uZ,DropdownMenuSeparator:lZ,DropdownMenuSub:dZ,DropdownMenuSubContent:pZ,DropdownMenuSubTrigger:fZ,DropdownMenuTrigger:mZ,Group:uk,Item:lk,ItemIndicator:Fm,Label:dk,Portal:pk,RadioGroup:z_,RadioItem:Hm,Root:fk,Separator:mk,Sub:hk,SubContent:Bm,SubTrigger:Um,Trigger:gk,createDropdownMenuScope:hZ}=Lu;var Z_=new Set(["ArrowDown","ArrowUp","Home","End","PageDown","PageUp"]),ln="data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",Ck=we({lastHoveredId:null,setLastHovered:()=>{},clearLastHovered:()=>{}});function Mu({children:e}){let[t,n]=A(null),r=G(()=>({lastHoveredId:t,setLastHovered:n,clearLastHovered:()=>n(null)}),[t]);return f(Ck.Provider,{value:r,children:e})}function Yt(e){let t=yn(),{lastHoveredId:n,setLastHovered:r,clearLastHovered:o}=xe(Ck),i=n===t,s=$(e);s.current=e;let a=E(u=>{s.current?.onPointerEnter?.(u),r(t)},[t,r]),c=E(u=>{s.current?.onKeyDown?.(u),Z_.has(u.key)&&o()},[o]);return{isLastHovered:i,hoverProps:{"data-last-hovered":i?"":void 0,onPointerEnter:a,onKeyDown:c}}}var W_="focus:bg-state-hover focus:text-foreground data-[last-hovered]:bg-state-hover data-[last-hovered]:text-foreground",V_="text-destructive focus:bg-destructive/15 focus:text-destructive data-[last-hovered]:bg-destructive/15",F_="text-destructive focus:bg-destructive/15 focus:text-destructive active:bg-destructive/20 active:text-destructive",Gm=we({isCompactViewport:!1,open:!1,onOpenChange:()=>{}});function jn(){return xe(Gm)}function Io({children:e,open:t,onOpenChange:n,defaultOpen:r,...o}){let i=Rr(t,n,r);return i.isCompactViewport?f(Gm.Provider,{value:i,children:e}):f(fk,{open:i.open,onOpenChange:i.onOpenChange,...o,children:f(Gm.Provider,{value:i,children:e})})}var gr=H(({asChild:e,children:t,className:n,...r},o)=>{let{isCompactViewport:i,open:s,onOpenChange:a}=jn();return i?f(qn,{ref:o,asChild:e,open:s,onOpenChange:a,haspopup:"menu",className:n,...r,children:t}):f(gk,{ref:o,asChild:e,className:wn(n),onMouseDown:c=>{s||xn(),rn(c)},...r,children:t})});gr.displayName="DropdownMenuTrigger";var Cr=H(({className:e,sideOffset:t=4,children:n,mobileTitle:r,onCloseAutoFocus:o,...i},s)=>{let{isCompactViewport:a,open:c,onOpenChange:u}=jn(),l=Ae();if(a){let{style:d,...m}=Tr(i);return f($r,{open:c,onOpenChange:u,srLabel:r??"Menu",children:f("div",{ref:s,className:w("flex flex-col gap-0.5 overflow-y-auto p-2 pb-[max(0.5rem,env(safe-area-inset-bottom))]",e),...m,style:{...d,...Gs},children:n})})}return f(pk,{children:f(ck,{ref:s,...l,sideOffset:t,onCloseAutoFocus:d=>{x5()||d.preventDefault(),o?.(d)},className:w("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...i,children:f(Mu,{children:n})})})});Cr.displayName="DropdownMenuContent";function kk(){return new Event("select",{cancelable:!0})}var Ee=H(({className:e,inset:t,variant:n="default",onSelect:r,disabled:o,role:i="menuitem","aria-checked":s,textValue:a,children:c,onPointerEnter:u,onKeyDown:l,onFocus:d,onBlur:m,...p},h)=>{let{isCompactViewport:g,onOpenChange:C}=jn(),{hoverProps:x}=Yt({onPointerEnter:u,onKeyDown:l});return g?f("button",{ref:h,type:"button",role:i,disabled:o,"aria-disabled":o||void 0,"aria-checked":s,className:w("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm px-2 py-2 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",t&&"pl-8",n==="destructive"&&F_,e),"data-disabled":o?"":void 0,onFocus:d,onBlur:m,onClick:()=>{if(o)return;let y=kk();r?.(y),y.defaultPrevented||C(!1)},children:c}):f(lk,{ref:h,className:w("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Ht,n==="destructive"?V_:W_,t&&"pl-8",e),disabled:o,role:i,"aria-checked":s,onSelect:r,textValue:a,onFocus:d,onBlur:m,...p,...x,children:c})});Ee.displayName="DropdownMenuItem";var H_=H(({className:e,children:t,checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,onPointerEnter:a,onKeyDown:c,...u},l)=>{let{isCompactViewport:d,onOpenChange:m}=jn(),{hoverProps:p}=Yt({onPointerEnter:a,onKeyDown:c});return d?v("button",{ref:l,type:"button",role:"menuitemcheckbox","aria-checked":n==="indeterminate"?"mixed":n===!0,disabled:i,"aria-disabled":i||void 0,className:w("relative flex w-full cursor-default select-none items-center rounded-sm py-2 pl-2 pr-8 text-left text-xs outline-none transition-colors focus:bg-state-hover focus:text-foreground active:bg-state-active active:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),"data-disabled":i?"":void 0,onClick:()=>{if(i)return;let h=kk();r?.(h),o?.(n==="indeterminate"?!0:!n),h.defaultPrevented||m(!1)},children:[f("span",{className:w("absolute right-2 flex items-center justify-center",zn),children:(n===!0||n==="indeterminate")&&f(Nt,{name:"Check",className:zn})}),t]}):v(ak,{ref:l,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ht,ln,e),checked:n,onSelect:r,onCheckedChange:o,disabled:i,textValue:s,...u,...p,children:[f("span",{className:w("absolute right-2 flex items-center justify-center",zn),children:f(Fm,{children:f(Nt,{name:"Check",className:zn})})}),t]})});H_.displayName="DropdownMenuCheckboxItem";var B_=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{isCompactViewport:s}=jn(),{hoverProps:a}=Yt({onPointerEnter:n,onKeyDown:r});return s?null:v(Hm,{ref:i,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ht,ln,e),...o,...a,children:[f("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f(Fm,{children:f(Nt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});B_.displayName=Hm.displayName;var U_=H(({className:e,inset:t,children:n,...r},o)=>{let{isCompactViewport:i}=jn();return i?f("div",{ref:o,className:w("px-2 py-1.5 text-xs font-medium text-muted-foreground",t&&"pl-8",e),children:n}):f(dk,{ref:o,className:w("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...r,children:n})});U_.displayName="DropdownMenuLabel";var os=H(({className:e,...t},n)=>{let{isCompactViewport:r}=jn();return r?f("hr",{ref:n,className:w("-mx-1 my-1 h-px border-0 bg-muted",e)}):f(mk,{ref:n,className:w("-mx-1 my-1 h-px bg-muted",e),...t})});os.displayName="DropdownMenuSeparator";var G_=H(({children:e,...t},n)=>{let{isCompactViewport:r}=jn();return r?f("div",{ref:n,role:"group",...t,children:e}):f(uk,{ref:n,...t,children:e})});G_.displayName="DropdownMenuGroup";var yk=hk,Km=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Yt({onPointerEnter:r,onKeyDown:o});return v(Um,{ref:s,className:w("flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Ht,ln,t&&"pl-8",e),...i,...a,children:[n,f(Nt,{name:"ChevronRight",className:"ml-auto"})]})});Km.displayName=Um.displayName;var qm=H(({className:e,...t},n)=>f(Bm,{ref:n,...Ae(),className:w("z-50 min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));qm.displayName=Bm.displayName;var K_=({className:e,...t})=>f("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t});K_.displayName="DropdownMenuShortcut";function bk(e){return e.map(t=>`${t.threadId}:${t.projectId}`).join(" ")}var q_=25;function vk(e,t=q_){let n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n}function Y_(e,t){let n=e.info.state,r=t??n.label;return n.kind==="scheduled"&&n.sendAt!==null?`${r}, sends ${xo(n.sendAt)}`:r}function wk(e,t){let n=[Y_(e,t.pluginLabel),t.providerName];return e.parentTitle!==null&&e.depth>0&&n.push(`child of ${e.parentTitle}`),e.crossGroupLabel!==null&&n.push(e.crossGroupLabel.toLowerCase()),e.hiddenBadge&&n.push("hidden thread"),e.info.unread&&e.info.state.kind!=="unread"&&n.push("unread"),t.hasDraft&&e.info.state.kind!=="draft"&&n.push("unsubmitted draft"),`Open ${e.info.thread.displayTitle} \u2014 ${n.join("; ")}`}var J_={"waits-on-you":"waiting on you below","unread-failed":"failed below","queue-failed":"queued message failed below",offline:"machine offline below",working:"working below",unread:"unread below"};function Ym(e,t){let n=t.count===0?"hidden child threads":`${t.count} ${t.count===1?"child thread":"child threads"}`,r=t.flag===null?"":`, ${J_[t.flag]}`;return`${t.expanded?"Collapse":"Show"} ${n} of ${e}${r}`}function xk(e){let t=e.count===1?"child thread":"child threads";return e.expanded?{label:"Show fewer",ariaLabel:`Hide ${e.count} more ${t}`}:{label:`${e.count} more ${t}`,ariaLabel:`Show ${e.count} more ${t}`}}function Ik(e){let t=e.count===1?"settled thread tree":"settled thread trees";return{label:e.expanded?"Settled":`Settled (${e.count})`,ariaLabel:`${e.expanded?"Hide":"Show"} ${e.count} ${t}`}}function Sk(e){switch(e){case"project":return"Projects";case"chronological":return"Sections";case"machine":return"Machines"}}function So(e){return 8+e*12}var X_=600;function Q_(e){return e instanceof HTMLElement?e.isContentEditable||e.tagName==="TEXTAREA"||e.tagName==="INPUT":!1}function _o({initial:e,label:t,onSave:n,onDone:r,className:o}){let[i,s]=A(e),[a,c]=A(!1),u=$(null),l=$(!1),d=$(!1),m=$(!1);O(()=>{let h=g=>{g.target!==u.current&&(m.current=!0)};return window.addEventListener("pointerdown",h,!0),()=>window.removeEventListener("pointerdown",h,!0)},[]),O(()=>{u.current?.focus(),u.current?.select();let h=setTimeout(()=>{d.current=!0},X_);return()=>clearTimeout(h)},[]);let p=async h=>{if(l.current)return;l.current=!0;let g=i.trim();if(!h||g===""||g===e){r();return}c(!0);try{await n(g)}catch(C){st.error("Couldn't rename",{description:C instanceof Error?C.message:String(C)})}finally{r()}};return v(bt,{children:[f("input",{ref:u,"aria-label":t,value:i,disabled:a,onChange:h=>s(h.target.value),onKeyDown:h=>{h.stopPropagation(),!h.nativeEvent.isComposing&&(h.key==="Enter"?(h.preventDefault(),p(!0)):h.key==="Escape"&&(h.preventDefault(),p(!1)))},onBlur:h=>{if(!d.current&&!m.current&&Q_(h.relatedTarget)){setTimeout(()=>{u.current?.focus(),u.current?.select()},0);return}p(!0)},onClick:h=>h.stopPropagation(),onPointerDown:h=>h.stopPropagation(),className:w("pointer-events-auto relative z-10 h-6 min-w-0 flex-1 rounded-sm border border-input bg-background px-1.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring",o)}),a?f("span",{role:"status",className:"sr-only",children:"Saving name"}):null]})}var Jm=globalThis.__bbPluginRuntime;if(Jm==null||Jm.radixContextMenu==null)throw new Error('Cannot load "@radix-ui/react-context-menu": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var Ru=Jm.radixContextMenu,OZ="default"in Ru?Ru.default:Ru,{Arrow:zZ,CheckboxItem:Xm,Content:Qm,ContextMenu:jZ,ContextMenuArrow:ZZ,ContextMenuCheckboxItem:WZ,ContextMenuContent:VZ,ContextMenuGroup:FZ,ContextMenuItem:HZ,ContextMenuItemIndicator:BZ,ContextMenuLabel:UZ,ContextMenuPortal:GZ,ContextMenuRadioGroup:KZ,ContextMenuRadioItem:qZ,ContextMenuSeparator:YZ,ContextMenuSub:JZ,ContextMenuSubContent:XZ,ContextMenuSubTrigger:QZ,ContextMenuTrigger:eW,Group:eP,Item:eh,ItemIndicator:th,Label:nh,Portal:_k,RadioGroup:tP,RadioItem:rh,Root:Pk,Separator:oh,Sub:Lk,SubContent:ih,SubTrigger:sh,Trigger:Mk,createContextMenuScope:tW}=Ru;var Rk="z-[70]",Tk=Pk,$k=Mk;var Ak=Lk;var ah=H(({className:e,inset:t,children:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Yt({onPointerEnter:r,onKeyDown:o});return v(sh,{ref:s,className:w("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[state=open]:bg-state-active data-[state=open]:text-foreground [&_[data-icon-root]]:pointer-events-none [&_[data-icon-root]]:size-4 [&_[data-icon-root]]:shrink-0",Ht,ln,t&&"pl-8",e),...i,...a,children:[n,f(Nt,{name:"ChevronRight",className:"ml-auto"})]})});ah.displayName=sh.displayName;var ch=H(({className:e,...t},n)=>f(ih,{ref:n,...Ae(),className:w(Rk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...t}));ch.displayName=ih.displayName;var uh=H(({className:e,children:t,...n},r)=>f(_k,{children:f(Qm,{ref:r,...Ae(),className:w(Rk,"min-w-28 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n,children:f(Mu,{children:t})})}));uh.displayName=Qm.displayName;var Tu=H(({className:e,inset:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Yt({onPointerEnter:n,onKeyDown:r});return f(eh,{ref:i,className:w("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-[0.3125rem] text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>[data-icon-root]]:size-4 [&>[data-icon-root]]:shrink-0",Ht,ln,t&&"pl-8",e),...o,...s})});Tu.displayName=eh.displayName;var rP=H(({className:e,children:t,checked:n,onPointerEnter:r,onKeyDown:o,...i},s)=>{let{hoverProps:a}=Yt({onPointerEnter:r,onKeyDown:o});return v(Xm,{ref:s,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-2 pr-8 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ht,ln,e),checked:n,...i,...a,children:[f("span",{className:w("absolute right-2 flex items-center justify-center",zn),children:f(th,{children:f(Nt,{name:"Check",className:zn})})}),t]})});rP.displayName=Xm.displayName;var oP=H(({className:e,children:t,onPointerEnter:n,onKeyDown:r,...o},i)=>{let{hoverProps:s}=Yt({onPointerEnter:n,onKeyDown:r});return v(rh,{ref:i,className:w("relative flex cursor-default select-none items-center rounded-sm py-[0.3125rem] pl-8 pr-2 text-xs outline-none focus:bg-state-hover focus:text-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",Ht,ln,e),...o,...s,children:[f("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f(th,{children:f(Nt,{name:"Circle",className:"h-2 w-2 fill-current"})})}),t]})});oP.displayName=rh.displayName;var iP=H(({className:e,inset:t,...n},r)=>f(nh,{ref:r,className:w("px-2 py-[0.3125rem] text-xs font-medium text-muted-foreground",t&&"pl-8",e),...n}));iP.displayName=nh.displayName;var lh=H(({className:e,...t},n)=>f(oh,{ref:n,className:w("-mx-1 my-1 h-px bg-muted",e),...t}));lh.displayName=oh.displayName;function sP({className:e,...t}){return f("span",{className:w("ml-auto text-xs tracking-widest opacity-60",e),...t})}sP.displayName="ContextMenuShortcut";var dh=globalThis.__bbPluginRuntime;if(dh==null||dh.radixHoverCard==null)throw new Error('Cannot load "@radix-ui/react-hover-card": this bundle must be loaded by the BB app, which provides the shared plugin runtime (globalThis.__bbPluginRuntime).');var $u=dh.radixHoverCard,lW="default"in $u?$u.default:$u,{Arrow:dW,Content:ph,HoverCard:pW,HoverCardArrow:fW,HoverCardContent:mW,HoverCardPortal:hW,HoverCardTrigger:gW,Portal:Dk,Root:Ek,Trigger:Nk,createHoverCardScope:CW}=$u;var Ok=Ek,zk=Nk,fh=H(({className:e,align:t="center",sideOffset:n=4,...r},o)=>{let i=Ae();return f(Dk,{children:f(ph,{ref:o,align:t,sideOffset:n,...i,className:w("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-hover-card-content-transform-origin]",e),...r})})});fh.displayName=ph.displayName;function Au(e){let t=Math.max(0,e);return t<6e4?"now":t<36e5?`${Math.floor(t/6e4)}m`:t<864e5?`${Math.floor(t/36e5)}h`:t<6048e5?`${Math.floor(t/864e5)}d`:`${Math.floor(t/6048e5)}w`}function cP(e,t){return Math.max(e.latestAttentionAt,t[e.id]??e.createdAt)}function jk(e,t,n,r,o){if(o!==void 0){if(o===null)return null;let s=Au(r-o),a=s==="now"?"<1m":s;return{text:a,label:`Waiting on you for ${a==="<1m"?"less than a minute":a}`,kind:"waiting"}}if(t){let s=n.startedAt[e.id];if(s===void 0)return null;let a=Au(r-s),c=a==="now"?"<1m":a;return{text:c,label:`Working for ${c==="<1m"?"less than a minute":c}`,kind:"timer"}}let i=Au(r-cP(e,n.finishedAt));return{text:i,label:i==="now"?"Finished just now":`Finished ${i} ago`,kind:"age"}}function Zk(e,t){if(e.status!=="idle"&&e.status!=="error"||e.hasPendingInteraction)return null;let n=t[e.id];return n!==void 0?Math.max(n,e.latestAttentionAt):e.latestAttentionAt>e.createdAt&&(e.parentThreadId===null||e.status==="error")?e.latestAttentionAt:null}function Wk(e,t,n,r){let o=e==="working"?n.startedAt[t]:e==="waits-on-you"?n.pendingAt[t]:e==="idle"||e==="unread"||e==="failed"?n.finishedAt[t]:void 0;return o===void 0?null:Au(r-o)}var Vk=["now","<1m","59m","23h","6d","99w"];function Du({display:e,mode:t="muted",className:n}){let r=t==="muted";if(e.provider!==null){let o=r?{id:e.provider.id,logoUrl:e.provider.logoUrl,icon:e.provider.icon}:e.provider;return f("span",{title:e.name,className:w("inline-flex size-3.5 shrink-0 text-muted-foreground",r&&"opacity-60",n),children:f(fs,{providerKind:"agent",provider:o,"aria-label":e.name,className:"size-3.5"})})}return f("span",{role:"img","aria-label":e.name,title:e.name,className:w("inline-flex h-3.5 min-w-3.5 shrink-0 items-center justify-center rounded-[3px] border border-border px-px text-[8px] font-semibold leading-none tracking-tight text-muted-foreground",r&&"opacity-60",n),children:e.mark})}function mh(e){switch(e){case"checks_failed":case"conflicts":case"changes_requested":return"text-destructive";case"ready_to_merge":return"text-success";default:return"text-muted-foreground"}}var uP={checks_failed:"checks failed",conflicts:"has conflicts",changes_requested:"changes requested",ready_to_merge:"ready to merge",checks_pending:"checks pending",review_requested:"review requested",draft:"draft",merged:"merged",closed:"closed",blocked:"blocked"};function Eu(e){let t=uP[e.attention];return`Pull request #${e.number}${t?`, ${t}`:""}: ${e.title}`}function Nu({threadId:e}){let{pullRequest:t}=ms(e);return t===null?null:v("span",{title:Eu(t),"aria-label":Eu(t),className:w("shrink-0 text-[11px] tabular-nums",mh(t.attention)),children:["#",t.number]})}function Ou({item:e}){return v(bt,{children:[f(F,{name:e.icon,"aria-hidden":!0,className:"size-4"}),f("span",{children:e.label})]})}function Fk(e){return[{id:null,name:"Threads"},...e.map(t=>({id:t.id,name:t.name}))]}function Hk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o,input:i}){let s=a=>c=>{if(!i.current.pressed&&!i.current.keyed){c.preventDefault();return}a()};return f(uh,{className:"min-w-48",onCloseAutoFocus:o,onPointerDown:()=>{i.current.pressed=!0},onKeyDown:()=>{i.current.keyed=!0},children:e.map(a=>v(xr,{children:[a.separated?f(lh,{}):null,a.action==="move-to-section"?v(Ak,{children:[f(ah,{children:f(Ou,{item:a})}),f(ch,{children:Fk(t).map(c=>v(Tu,{disabled:c.id===n,onSelect:s(()=>r("move-to-section",c.id)),children:[c.id===n?f(F,{name:z.check,"aria-hidden":!0,className:"size-4"}):f("span",{className:"size-4"}),c.name]},c.id??"threads"))})]}):f(Tu,{className:w(a.destructive&&"text-destructive focus:text-destructive"),onSelect:s(()=>r(a.action)),children:f(Ou,{item:a})})]},a.action))})}function Bk({items:e,sections:t,currentSectionId:n,onAction:r,onCloseAutoFocus:o}){return f(Cr,{align:"end",className:"min-w-48",onCloseAutoFocus:o,children:e.map(i=>v(xr,{children:[i.separated?f(os,{}):null,i.action==="move-to-section"?v(yk,{children:[f(Km,{children:f(Ou,{item:i})}),f(qm,{children:Fk(t).map(s=>v(Ee,{disabled:s.id===n,onSelect:()=>r("move-to-section",s.id),children:[s.id===n?f(F,{name:z.check,"aria-hidden":!0,className:"size-4"}):f("span",{className:"size-4"}),s.name]},s.id??"threads"))})]}):f(Ee,{className:w(i.destructive&&"text-destructive focus:text-destructive"),onSelect:()=>r(i.action),children:f(Ou,{item:i})})]},i.action))})}function Uk({panes:e,label:t,working:n}){let r=e.some(o=>o.isMe&&o.isFocused);return f("svg",{role:"img","aria-label":t,viewBox:"0 0 14 14",width:14,height:14,shapeRendering:"crispEdges",className:w("pointer-events-none size-3.5 shrink-0",!r&&"opacity-60",n&&"animate-shine-icon motion-reduce:animate-none"),children:e.map(o=>{let i=o.isMe?0:.5;return f("rect",{x:1+o.rect.x*12+i,y:1+o.rect.y*12+i,width:Math.max(o.rect.width*12-2*i,0),height:Math.max(o.rect.height*12-2*i,0),strokeWidth:o.isMe?0:1,className:o.isMe?o.isFocused?"fill-primary/70 stroke-none":"fill-muted-foreground/45 stroke-none":"fill-none stroke-muted-foreground/30"},o.paneId)})})}function dn({label:e,title:t,children:n}){return v("div",{className:"flex min-w-0 gap-2",title:t,children:[f("dt",{className:"w-20 shrink-0 text-muted-foreground",children:e}),f("dd",{className:"min-w-0 flex-1 break-words",children:n})]})}function lP(e,t){let[n,r]=A("loading"),{id:o,status:i}=t.thread;return O(()=>{let s=!1;return r("loading"),e.loadModel(o,i).then(a=>!s&&r(a),()=>!s&&r(null)),()=>{s=!0}},[e,o,i]),n}function dP({threadId:e}){let{pullRequest:t}=ms(e);return t===null?null:f(dn,{label:"Pull request",children:f("span",{className:mh(t.attention),children:Eu(t)})})}function zu({info:e,controller:t,showPullRequest:n,actions:r}){let o=e.thread,i=t.provider(o.providerId),s=lP(t,e),a=xe(fu),c=YC(e.state.kind,Wk(e.state.kind,o.id,a.stamps,a.now)),u=KC(qC(a.treeOf(o.id),o.id)),l=o.environment,d=Zk(o,a.stamps.finishedAt),m=q4(a.notes[o.id]);return v("div",{className:"flex flex-col gap-2 text-xs",children:[f("p",{className:"text-sm font-medium leading-snug break-words",children:o.displayTitle}),v("div",{className:"flex items-center gap-1.5",children:[f(ns,{glyph:e.state.glyph,className:"size-3.5"}),v("span",{children:[e.state.label,c!==null?` \xB7 ${c}`:"",e.state.sendAt!==null?` \xB7 sends ${xo(e.state.sendAt)}`:""]})]}),e.note!==null?f("p",{className:"break-words leading-snug",children:f(Iu,{note:e.note})}):null,v("dl",{className:"flex flex-col gap-1",children:[f(dn,{label:"Harness",children:v("span",{className:"inline-flex items-center gap-1.5",children:[f(Du,{display:i,mode:t.harnessIcon}),i.name]})}),f(dn,{label:"Model",title:"The model and reasoning level the next message will use",children:s==="loading"?"\u2026":s===null?"Unknown":`${s.model} \xB7 ${s.reasoningLevel}`}),l?.branchName?f(dn,{label:"Branch",children:v("span",{className:"inline-flex items-center gap-1",children:[f(F,{name:l.isWorktree?z.worktree:z.branch,"aria-hidden":!0,className:"size-3.5"}),l.branchName,l.isWorktree?" (worktree)":""]})}):null,o.host!==null?f(dn,{label:"Machine",children:o.host.name}):null,u!==null?f(dn,{label:"Children",children:u}):null,n?f(dP,{threadId:o.id}):null,m!==null&&e.note===null?f(dn,{label:"Last reply",children:f("span",{className:"line-clamp-2",children:m.text})}):null,f(dn,{label:"Created",children:xo(o.createdAt)}),d!==null?f(dn,{label:"Finished",children:xo(d)}):null]}),r?v("div",{className:"flex gap-2 pt-1",children:[v(Ke,{size:"sm",onClick:r.open,children:[f(F,{name:z.open,"aria-hidden":!0}),"Open"]}),v(Ke,{size:"sm",variant:"outline",onClick:r.toggleRead,children:[f(F,{name:e.unread?z.markRead:z.markUnread,"aria-hidden":!0}),e.unread?"Mark read":"Mark unread"]})]}):null]})}var pP=400,fP=700,mP=10,is=null;function hP(){let e=t=>{t.preventDefault(),t.stopPropagation(),window.removeEventListener("click",e,!0)};window.addEventListener("click",e,!0),window.addEventListener("touchend",()=>setTimeout(()=>window.removeEventListener("click",e,!0),400),{capture:!0,once:!0})}var Gk="text-[color:color-mix(in_oklch,var(--foreground)_68%,var(--sidebar))]",Ot="pointer-events-auto relative z-10 inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded-md text-muted-foreground outline-none hover:bg-state-hover hover:text-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring data-[state=open]:bg-state-active";function gP(e){let t=Ih();return G(()=>{if(t===null)return null;let n=t.panes.map(r=>({paneId:r.paneId,rect:r.rect,isMe:r.threadId===e,isFocused:r.isFocused}));return n.some(r=>r.isMe)?n:null},[t,e])}var Kk=rt(function({row:t,controller:n,groupId:r,inPinned:o,dropState:i,active:s,editing:a,now:c,startedAt:u,finishedAt:l,pendingAt:d}){let{info:m}=t,p=m.thread,h=p.archivedAt!==null||p.isArchived,g=n.compact,C=Lh(p.id),x=Ph(p.id),{hasUnsubmittedDraft:y}=Sh(p.id),I=vh(p.id),R=gP(p.id),[M,T]=A(!1),[N,B]=A(!1),ne=sk(s,!g&&!a&&!M&&!N),de=$({pressed:!1,keyed:!1}),ie=$(null),Z=$(null),oe={threadId:p.id,parentThreadId:p.parentThreadId,sectionId:p.sectionId,pinned:p.pinnedAt!==null||p.isPinned},re=Ts({id:`thread:${p.id}:${r}`,data:{kind:"thread",thread:oe,groupId:r},disabled:a||g}),Ne=$s({id:`drop-thread:${p.id}:${r}`,data:{kind:"thread",threadId:p.id,inPinned:o,groupId:r}}),gt=E(W=>{re.setNodeRef(W),Ne.setNodeRef(W)},[re.setNodeRef,Ne.setNodeRef]),Fe=n.provider(p.providerId),Zn=z4(m.state,x),Ct=wk(t,{providerName:Fe.name,pluginLabel:Zn?x.label:null,hasDraft:y}),_t=h?null:jk(p,m.flags.has("working"),{startedAt:u===void 0?{}:{[p.id]:u},finishedAt:l===void 0?{}:{[p.id]:l}},c,m.state.kind==="waits-on-you"?d??null:void 0),pn=tg({thread:p,unread:t.depth===0?t.treeUnread:m.unread,splitAvailable:I.isAvailable,isRoot:p.parentThreadId===null,hasSections:n.mode==="chronological"||n.sections.length>0,compact:g}),be=$(!1),je=$(!1),zt=(W,Me)=>{if(W==="rename"){be.current=!0,je.current=!0,setTimeout(()=>{je.current=!1},1500);return}n.onMenuAction(W,p,Me)};O(()=>{if(M||N||!be.current)return;let W=setTimeout(()=>{be.current&&(be.current=!1,n.setEditingId(p.id))},60);return()=>clearTimeout(W)},[M,N,n,p.id]);let Pt=W=>{je.current&&(je.current=!1,W.preventDefault(),be.current&&(be.current=!1,n.setEditingId(p.id)))},Ze=t.pullRequest!==null,Jt=R?f(Uk,{panes:R,label:`${p.displayTitle} \u2014 open in split; ${m.state.label}`,working:m.flags.has("working")}):Zn?f(ek,{status:x}):f("span",{title:m.state.label,className:"inline-flex",children:f(ns,{glyph:m.state.glyph,label:m.state.label})}),Wn=W=>{if(a){W.preventDefault();return}if(I.isAvailable&&(W.metaKey||W.ctrlKey)){W.preventDefault(),n.onMenuAction("open-in-split",p);return}let Me=Date.now();if(is!==null&&is.threadId===p.id&&Me-is.at<pP){is=null,W.preventDefault(),n.setEditingId(p.id);return}is={threadId:p.id,at:Me},n.onNavigate()},jt=()=>{Z.current!==null&&clearTimeout(Z.current.timer),Z.current=null},me=$(!1),kt=g?{onTouchStart:W=>{let Me=W.touches[0];Me!==void 0&&(jt(),me.current=!1,Z.current={x:Me.clientX,y:Me.clientY,timer:setTimeout(()=>{Z.current=null,me.current=!0,hP(),T(!0)},fP)})},onTouchMove:W=>{let Me=W.touches[0];Z.current===null||Me===void 0||Math.hypot(Me.clientX-Z.current.x,Me.clientY-Z.current.y)>mP&&jt()},onTouchEnd:W=>{jt(),me.current&&W.preventDefault()},onTouchCancel:jt,onContextMenu:W=>W.preventDefault(),style:{WebkitTouchCallout:"none"}}:{},X=t.chip,Vn=So(t.depth),He=t.note,Lt=He!==null||t.branchLine!==null,pt=t.dimmed&&!a,Zt=M||N,Wt=t.machine!==null&&C===null,Xt=t.harness||Wt,et=!g&&C===null,ee=g?"":Zt?"opacity-0":"group-hover/row:opacity-0 group-focus-within/row:opacity-0",Vt=v("div",{ref:gt,"data-sidebar-rename-row":"","data-sidebar-nest-target":i==="valid"||i==="blocked"||i==="unchanged"?i:void 0,"data-sidebar-reorder-placement":i==="before"||i==="after"?i:void 0,...re.attributes,...re.listeners,role:void 0,tabIndex:void 0,"aria-roledescription":void 0,onPointerEnter:ne.rowProps.onPointerEnter,onPointerMove:ne.rowProps.onPointerMove,onPointerDown:W=>{ne.rowProps.onPointerDown(),a||I.splitProps.onPointerDown?.(W)},onPointerLeave:ne.rowProps.onPointerLeave,onFocus:ne.rowProps.onFocus,onBlur:ne.rowProps.onBlur,...kt,className:w("group/row relative flex w-full items-center gap-1.5 rounded-md pr-1 text-sm transition-colors",Lt?"h-11 max-md:pointer-coarse:h-12":"h-7 max-md:pointer-coarse:h-9",s?"bg-state-active text-sidebar-foreground":"cursor-pointer text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",!s&&Zt&&"bg-sidebar-accent",R&&!s&&"bb-sidebar-open-in-split-row",re.isDragging&&"opacity-50",i==="valid"&&"ring-1 ring-inset ring-sidebar-ring/80 bg-sidebar-accent/45",i==="blocked"&&"ring-1 ring-inset ring-destructive/60",i==="before"&&"shadow-[inset_0_2px_0_0_var(--sidebar-ring)]",i==="after"&&"shadow-[inset_0_-2px_0_0_var(--sidebar-ring)]"),style:{paddingLeft:Vn},children:[f("a",{ref:ie,href:p.href,"data-sidebar-thread-shortcut-target":"","data-sidebar-thread-id":p.id,"data-sidebar-rename-anchor":"","aria-label":Ct,"aria-keyshortcuts":C?.ariaKeyshortcuts,"aria-current":s?"page":void 0,onClick:Wn,onDoubleClick:W=>{W.preventDefault(),n.setEditingId(p.id)},className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),f("span",{className:"pointer-events-none relative flex size-4 shrink-0 items-center justify-center",children:Jt}),t.nested?f("span",{"aria-hidden":!0,title:`Child of ${t.parentTitle??"a thread"}`,className:w("pointer-events-none relative -ml-[3px] -mr-px w-1.5 shrink-0 text-center text-[10px] leading-none text-muted-foreground",Lt&&"mt-[9px] self-start"),children:"\u21B3"}):null,t.crossGroupLabel!==null?f("span",{role:"img","aria-label":t.crossGroupLabel,title:t.crossGroupLabel,"data-sidebar-thread-cross-project":"",className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center text-muted-foreground",children:f(F,{name:z.crossGroup,"aria-hidden":!0,className:"size-3.5"})}):null,v("span",{className:"pointer-events-none relative flex min-w-0 flex-1 flex-col justify-center",children:[a?f(_o,{initial:p.displayTitle,label:"Thread name",onSave:W=>n.onRename(p.id,W),onDone:()=>{n.setEditingId(null),ie.current?.focus()}}):v("span",{className:"flex min-w-0 items-center gap-1.5",children:[f("span",{title:p.displayTitle,className:w("min-w-0 truncate",t.bold?"font-semibold":"font-normal",t.depth>0&&"text-xs",pt&&`${Gk} group-hover/row:text-foreground`),children:p.displayTitle}),t.pullRequest==="title"&&Lt?f(Nu,{threadId:p.id}):null]}),!a&&He!==null?f("span",{className:"min-w-0 truncate text-xs leading-4 text-muted-foreground",title:K4(He),children:f(Iu,{note:He})}):t.branchLine!==null&&!a?f(CP,{row:t,branch:t.branchLine}):null]}),t.hiddenBadge?f("span",{role:"img","aria-label":"Hidden thread",title:"Hidden thread",className:"pointer-events-none relative shrink-0 text-muted-foreground",children:f(F,{name:z.hidden,"aria-hidden":!0,className:"size-3.5"})}):null,t.pullRequest==="title"&&!Lt&&!a?f("span",{className:"pointer-events-none relative",children:f(Nu,{threadId:p.id})}):null,!a&&(Xt||et)?v("span",{className:"relative -ml-1.5 grid shrink-0 items-center",children:[Xt?v("span",{className:w("flex items-center gap-1.5 pl-1.5 [grid-area:1/1] transition-opacity",C===null&&ee),children:[t.harness?f("span",{className:"pointer-events-none relative inline-flex shrink-0",children:f(Du,{display:Fe,mode:n.harnessIcon})}):null,Wt?f("span",{title:`On ${t.machine}`,"aria-label":`On ${t.machine}`,className:"pointer-events-none max-w-20 truncate text-[11px] text-muted-foreground",children:t.machine}):null]}):null,et?v("span",{className:w("items-center justify-self-end gap-0.5 pl-1.5 [grid-area:1/1]",Zt?"flex":"hidden group-hover/row:flex group-focus-within/row:flex"),children:[t.treeUnread?f("button",{type:"button","aria-label":"Mark read",title:"Mark read",className:Ot,onPointerDown:W=>W.stopPropagation(),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onMenuAction("mark-read",p)},children:f(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"})}):null,f("button",{type:"button","aria-label":h?"Unarchive thread":"Archive thread",title:h?"Unarchive":"Archive",className:Ot,onPointerDown:W=>W.stopPropagation(),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onMenuAction(h?"unarchive":"archive",p)},children:f(F,{name:h?z.unarchive:z.archive,"aria-hidden":!0,className:"size-4"})})]}):null]}):null,a?null:v("span",{className:"relative flex shrink-0 items-center gap-1",children:[X!==null?v("button",{type:"button","aria-expanded":X.expanded,"aria-label":Ym(p.displayTitle,X),title:Ym(p.displayTitle,X),onClick:W=>{W.preventDefault(),W.stopPropagation(),n.onToggleChip(t)},onPointerDown:W=>W.stopPropagation(),onKeyDown:W=>W.stopPropagation(),className:w("pointer-events-auto relative z-10 inline-flex h-5 shrink-0 items-center gap-0.5 rounded-md px-0.5 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",X.flag===null?w("text-muted-foreground hover:text-foreground",pt&&Gk):xu[V4(X.flag)]),children:[X.flag!==null?f(tk,{flag:X.flag}):null,X.count>0?X.count:null,f(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 transition-transform duration-150",X.expanded&&"rotate-90")})]}):null,v("span",{"data-trailing-slot":"",className:"relative grid h-6 shrink-0 items-center",children:[f("span",{"aria-hidden":!0,className:"invisible w-6 [grid-area:1/1]"}),Vk.map(W=>f("span",{"aria-hidden":!0,className:"invisible text-[11px] font-medium tabular-nums [grid-area:1/1]",children:W},W)),C!==null?f("kbd",{"aria-hidden":!0,className:"pointer-events-none justify-self-end rounded border border-border px-1 font-sans text-[10px] leading-4 text-muted-foreground [grid-area:1/1]",children:C.label}):v(bt,{children:[_t!==null?f("span",{title:_t.label,"aria-label":_t.label,className:w("pointer-events-none justify-self-end text-[11px] tabular-nums transition-opacity [grid-area:1/1]",_t.kind==="timer"?"font-medium text-[var(--timeline-accent)]":"text-muted-foreground",ee),children:_t.text}):null,f("span",{className:w("flex items-center justify-self-end transition-opacity [grid-area:1/1]",g?"relative":Zt?"opacity-100":"opacity-0 group-hover/row:opacity-100 group-focus-within/row:opacity-100"),children:v(Io,{open:M,onOpenChange:T,children:[f(gr,{asChild:!0,children:f("button",{type:"button","aria-label":"Thread actions",className:g?"sr-only":Ot,onPointerDown:W=>W.stopPropagation(),onClick:W=>W.stopPropagation(),children:f(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),f(Bk,{items:pn,sections:n.sections,currentSectionId:p.sectionId,onAction:zt,onCloseAutoFocus:Pt})]})})]})]})]})]});return g?Vt:v(Tk,{onOpenChange:W=>{W&&(de.current={pressed:!1,keyed:!1}),B(W)},children:[v(Ok,{closeDelay:100,open:ne.open,onOpenChange:ne.onOpenChange,children:[f($k,{asChild:!0,disabled:a,children:f(zk,{asChild:!0,children:Vt})}),!a&&!M&&!N?f(fh,{side:"right",align:"start",collisionPadding:8,className:"z-[100] w-72 p-3",children:f(zu,{info:m,controller:n,showPullRequest:Ze})}):null]}),f(Hk,{items:pn,sections:n.sections,currentSectionId:p.sectionId,onAction:zt,onCloseAutoFocus:Pt,input:de})]})});function CP({row:e,branch:t}){let n=e.info.thread.environment;return v("span",{className:"flex min-w-0 items-center gap-1.5 text-xs leading-4 text-muted-foreground",children:[v("span",{className:"inline-flex min-w-0 items-center gap-0.5",children:[f(F,{name:n?.isWorktree?z.worktree:z.branch,"aria-hidden":!0,className:"size-3 shrink-0"}),f("span",{className:"truncate",children:t}),n?.isWorktree?f("span",{className:"sr-only",children:" (worktree)"}):null]}),e.pullRequest==="second-line"?f(Nu,{threadId:e.info.thread.id}):null]})}var qk=rt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=xk(t);return v("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleOlder(t),className:"relative flex h-7 w-full items-center gap-1.5 rounded-md pr-2 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring max-md:pointer-coarse:h-9",style:{paddingLeft:So(t.depth)},children:[f("span",{"aria-hidden":!0,className:"inline-flex size-4 shrink-0 items-center justify-center",children:f(F,{name:z.more,className:"size-3.5"})}),r]})}),Yk=rt(function({row:t,controller:n}){let{label:r,ariaLabel:o}=Ik(t);return v("button",{type:"button","aria-expanded":t.expanded,"aria-label":o,onClick:()=>n.onToggleSettled(t),className:"group/settled relative flex h-6 w-full items-center gap-2 rounded-md pr-1 text-left text-[11px] text-muted-foreground/70 outline-none hover:text-muted-foreground focus-visible:ring-2 focus-visible:ring-sidebar-ring max-md:pointer-coarse:h-9",style:{paddingLeft:So(0)},children:[f("span",{className:"shrink-0 tabular-nums",children:r}),f("span",{"aria-hidden":!0,className:"h-px flex-1 bg-border/60"}),f(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 shrink-0 transition-transform duration-150",t.expanded&&"rotate-90")})]})}),Jk=rt(function({row:t,controller:n,environmentProviders:r}){let[o,i]=A(!1),s=t.environmentProviderId===null?null:r.find(a=>a.id===t.environmentProviderId)??null;return v("div",{className:"group/row relative flex h-7 w-full items-center gap-1.5 rounded-md pr-1 text-sm text-muted-foreground hover:bg-sidebar-accent",style:{paddingLeft:So(t.depth)},children:[f("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${t.label} environment, ${t.threadIds.length} threads`,onClick:()=>n.onToggleEnvironment(t.environmentId),className:"absolute inset-0 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring"}),f("span",{className:"pointer-events-none relative inline-flex size-4 shrink-0 items-center justify-center",children:s!==null?f(fs,{providerKind:"environment",provider:s,className:"size-3.5"}):f(F,{name:t.environmentProviderId===null?z.machine:z.environmentFallback,"aria-hidden":!0,className:"size-3.5"})}),o?f(_o,{initial:t.label,label:"Environment name",onSave:a=>n.onRenameEnvironment(t.environmentId,a),onDone:()=>i(!1)}):f("span",{className:"pointer-events-none relative min-w-0 flex-1 truncate",children:t.label}),t.flag!==null?f(Su,{flag:t.flag,className:"pointer-events-none relative size-3.5"}):null,f("span",{className:"pointer-events-none relative text-[11px] tabular-nums",children:t.threadIds.length}),f(F,{name:z.expand,"aria-hidden":!0,className:w("pointer-events-none relative size-3 transition-transform",!t.collapsed&&"rotate-90")}),v(Io,{children:[f(gr,{asChild:!0,children:f("button",{type:"button","aria-label":"Environment actions",className:w(Ot,!n.compact&&"opacity-0 group-hover/row:opacity-100 focus-visible:opacity-100 data-[state=open]:opacity-100"),children:f(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),v(Cr,{align:"end",children:[v(Ee,{onSelect:()=>n.onNewThreadInEnvironment(t.environmentId,t.projectId,t.sectionId),children:[f(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"}),"New thread in environment"]}),v(Ee,{onSelect:()=>i(!0),children:[f(F,{name:z.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}),v(Ee,{onSelect:()=>n.onArchiveEnvironment(t.environmentId),children:[f(F,{name:z.archive,"aria-hidden":!0,className:"size-4"}),"Archive"]})]})]})]})});var Xk={compact:28,comfortable:44};function Qk(e){return e.descriptor.kind==="section"||e.descriptor.kind==="machine"}var kP=rt(function({group:t,controller:n,inOverflow:r,dropActive:o}){let[i,s]=A(!1),[a,c]=A(!1),u=t.descriptor.label,l=Ts({id:`group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id},disabled:n.compact||r||i}),d=n.compact,m=d?"":a?"opacity-0":"group-hover/header:opacity-0 group-focus-within/header:opacity-0",p=d?"":w("absolute top-1/2 right-0 -translate-y-1/2 pl-1",o?"bg-sidebar-accent":"bg-sidebar",a?"opacity-100":"pointer-events-none opacity-0 group-hover/header:pointer-events-auto group-hover/header:opacity-100 group-focus-within/header:pointer-events-auto group-focus-within/header:opacity-100");return v("div",{ref:l.setNodeRef,...l.attributes,...l.listeners,role:void 0,tabIndex:void 0,"data-sidebar":"group-label",className:w("group/header sticky top-0 z-20 flex h-7 items-center gap-1 rounded-md bg-sidebar pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",o&&"bg-sidebar-accent",l.isDragging&&"opacity-50",!n.compact&&!r&&"select-none"),children:[i?f(_o,{initial:u,label:t.descriptor.kind==="section"?"Section name":"Machine name",onSave:h=>n.onRename(t,h),onDone:()=>s(!1),className:"text-xs"}):v("button",{type:"button","aria-expanded":!t.collapsed,"aria-label":`${t.collapsed?"Expand":"Collapse"} ${u} section`,onClick:()=>n.onToggleCollapse(t),onPointerDown:h=>h.stopPropagation(),onDoubleClick:()=>Qk(t)&&s(!0),className:"flex min-w-0 flex-1 items-center gap-1 rounded-md py-1 text-left font-medium outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[f("span",{className:"min-w-0 truncate",title:u,children:u}),f(F,{name:z.expand,"aria-hidden":!0,className:w("size-3 shrink-0 transition-transform duration-150",!t.collapsed&&"rotate-90")})]}),i?null:v("span",{className:"relative ml-auto flex shrink-0 items-center",children:[f(_u,{counters:hg(t.counters,{collapsed:t.collapsed,more:!1}),className:w("transition-opacity",m)}),v("span",{className:w("flex items-center transition-opacity",p),children:[t.descriptor.kind!=="pinned"&&(t.descriptor.newThreadProjectId!==null||t.descriptor.kind==="machine")&&(!n.compact||n.activeGroupId===t.descriptor.id)?f("button",{type:"button","aria-label":`New thread in ${u}`,title:`New thread in ${u}`,"data-sidebar-hover-actions-mobile":n.compact?"always":void 0,className:Ot,onPointerDown:h=>h.stopPropagation(),onClick:()=>n.onNewThread(t),children:f(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"})}):null,v(Io,{open:a,onOpenChange:c,children:[f(gr,{asChild:!0,children:f("button",{type:"button","aria-label":`${u} actions`,className:Ot,onPointerDown:h=>h.stopPropagation(),children:f(F,{name:z.more,"aria-hidden":!0,className:"size-4"})})}),v(Cr,{align:"end",className:"min-w-48",children:[v(Ee,{onSelect:()=>n.onMarkAllRead(t),children:[f(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"}),"Mark all read"]}),t.descriptor.kind!=="pinned"&&t.descriptor.newThreadProjectId!==null?v(Ee,{onSelect:()=>n.onNewThread(t),children:[f(F,{name:z.newThread,"aria-hidden":!0,className:"size-4"}),"New thread"]}):null,n.canCreateSections?v(Ee,{onSelect:()=>n.onNewSection(),children:[f(F,{name:z.newSection,"aria-hidden":!0,className:"size-4"}),"New section"]}):null,Qk(t)?v(Ee,{onSelect:()=>s(!0),children:[f(F,{name:z.rename,"aria-hidden":!0,className:"size-4"}),"Rename"]}):null,f(os,{}),t.descriptor.kind!=="pinned"?t.hidden?v(Ee,{onSelect:()=>n.onShow(t),children:[f(F,{name:z.show,"aria-hidden":!0,className:"size-4"}),"Show in list"]}):v(Ee,{onSelect:()=>n.onHide(t),children:[f(F,{name:z.hidden,"aria-hidden":!0,className:"size-4"}),"Hide from list"]}):null,v(Ee,{onSelect:()=>n.onToggleArchived(),children:[f(F,{name:n.showArchived?z.check:z.archive,"aria-hidden":!0,className:"size-4"}),"Show archived threads"]}),v(Ee,{onSelect:()=>n.onCustomize(),children:[f(F,{name:z.customize,"aria-hidden":!0,className:"size-4"}),"Customize list"]}),t.descriptor.kind==="section"?v(Ee,{className:"text-destructive focus:text-destructive",onSelect:()=>n.onRemove(t),children:[f(F,{name:z.remove,"aria-hidden":!0,className:"size-4"}),"Remove section"]}):null]})]})]})]})]})});function yP(e){return e.key}function bP({rows:e,forceMount:t,rowHeight:n,children:r}){let o=$(null),[i,s]=A(!0),a=$(null);O(()=>{let l=o.current;if(l===null||typeof IntersectionObserver>"u")return;let d=new IntersectionObserver(m=>{for(let p of m)p.isIntersecting===!1&&l.firstElementChild!==null&&i&&(a.current=l.getBoundingClientRect().height),s(p.isIntersecting)},{rootMargin:"240px 0px"});return d.observe(l),()=>d.disconnect()},[i]);let c=i||t,u=e.filter(l=>l.type==="thread").map(l=>({threadId:l.info.thread.id,projectId:l.projectId}));return f("div",{ref:o,"data-sidebar-windowed-item":"","data-sidebar-windowed-nav":c||u.length===0?void 0:bk(u),style:c?void 0:{height:a.current??e.length*n},children:c?r:null})}function vP({rows:e,groupId:t,inPinned:n,forceMount:r,rowController:o,environmentProviders:i,dropStates:s,activeThreadId:a,editingId:c,now:u,stamps:l}){let d=o.comfortable?Xk.comfortable:Xk.compact;return f("div",{"data-sidebar":"group-content",className:"flex w-full flex-col text-sm",children:vk(e).map(m=>f(bP,{rows:m,rowHeight:d,forceMount:r||m.some(p=>p.type==="thread"&&(p.info.thread.id===a||p.info.thread.id===c)),children:m.map(p=>p.type==="thread"?f(Kk,{row:p,controller:o,groupId:t,inPinned:n,dropState:s.get(p.info.thread.id)??null,active:p.info.thread.id===a,editing:p.info.thread.id===c,now:u,startedAt:l.startedAt[p.info.thread.id],finishedAt:l.finishedAt[p.info.thread.id],pendingAt:l.pendingAt[p.info.thread.id]},p.key):p.type==="older"?f(qk,{row:p,controller:o},p.key):p.type==="settled"?f(Yk,{row:p,controller:o},p.key):f(Jk,{row:p,controller:o,environmentProviders:i},p.key))},yP(m[0])))})}var hh=rt(function({group:t,groupController:n,dropTargetGroupId:r,inOverflow:o=!1,...i}){let s=$s({id:`drop-group:${t.descriptor.id}`,data:{kind:"group",groupId:t.descriptor.id}});return v("section",{ref:s.setNodeRef,"aria-label":t.descriptor.label,"data-sidebar-visibility-group":t.descriptor.id,"data-sidebar-section-id":t.descriptor.kind==="section"?t.descriptor.entityId??void 0:void 0,className:"relative flex w-full min-w-0 flex-col",children:[f(kP,{group:t,controller:n,inOverflow:o,dropActive:r===t.descriptor.id}),t.rows.length===0?t.collapsed||t.rootIds.length>0?null:f("p",{className:"py-1 pl-8 text-xs text-muted-foreground",children:"No threads"}):f(vP,{...i,rows:t.rows,groupId:t.descriptor.id,inPinned:t.descriptor.id==="pinned",forceMount:o})]})});function ey(e){return e==="everything"}function ty(e){return e?"everything":"blocked"}function ny(e){return{chronologicalSort:e,sortDirection:au(e)}}function ry(e){let t=On(e.chronologicalSort),r=em(t,e.sortDirection)==="descending";return{glyph:r?"\u2193":"\u2191",label:t==="alpha"?r?"Z\u2013A":"A\u2013Z":r?"Newest first":"Oldest first",patch:{sortDirection:r?"ascending":"descending"}}}var wP="flex flex-1 gap-0.5 rounded-md bg-surface-recessed p-0.5",xP="flex flex-1 items-center justify-center whitespace-nowrap rounded-sm px-1 py-0.5 text-xs outline-none focus-visible:ring-2 focus-visible:ring-ring";function IP(e){return w(xP,e?"bg-state-active text-foreground":"text-muted-foreground hover:bg-state-hover hover:text-foreground")}function ss({label:e,children:t}){return v("div",{className:"flex flex-wrap items-center gap-x-2 gap-y-1 px-2 py-1",children:[f("span",{className:"min-w-[5.5rem] shrink-0 whitespace-nowrap text-sm",children:e}),f("div",{className:"flex flex-1 gap-2",children:t})]})}function as({label:e,options:t,current:n,onSelect:r}){return f("div",{role:"radiogroup","aria-label":e,className:wP,children:t.map(([o,i])=>f("button",{type:"button",role:"radio","aria-checked":o===n,onClick:()=>r(o),className:IP(o===n),children:i},o))})}function oy({label:e,checked:t,onChange:n,description:r}){return v("button",{type:"button",role:"checkbox","aria-checked":t,onClick:()=>n(!t),className:"flex w-full items-start gap-2 rounded-md px-2 py-1.5 text-left text-sm outline-none hover:bg-accent focus-visible:bg-accent",children:[f("span",{"aria-hidden":!0,className:w("mt-0.5 inline-flex size-4 shrink-0 items-center justify-center rounded-sm border border-input",t&&"border-primary bg-primary text-primary-foreground"),children:t?f(F,{name:z.check,"aria-hidden":!0,className:"size-3"}):null}),v("span",{className:"flex min-w-0 flex-col",children:[f("span",{children:e}),r?f("span",{className:"text-xs text-muted-foreground",children:r}):null]})]})}function gh({children:e}){return f("h3",{className:"px-2 pb-0.5 pt-3 text-xs font-medium text-muted-foreground first:pt-0",children:e})}function iy({prefs:e,client:t,onPrefs:n,onClient:r}){let o=ry(e);return v("div",{className:"flex flex-col",children:[f(gh,{children:"List"}),f(ss,{label:"Group by",children:f(as,{label:"Group by",options:[["project","Project"],["chronological","Custom"],["machine","Machine"]],current:e.organizationMode,onSelect:i=>n({organizationMode:i})})}),v(ss,{label:"Sort by",children:[f(as,{label:"Sort by",options:[["updated","Updated"],["created","Created"],["alpha","A\u2013Z"]],current:On(e.chronologicalSort),onSelect:i=>n(ny(i))}),f("button",{type:"button","aria-label":`Sort order: ${o.label}. Reverse`,title:o.label,onClick:()=>n(o.patch),className:"inline-flex h-6 w-6 shrink-0 items-center justify-center rounded-md bg-surface-recessed text-xs outline-none hover:bg-state-hover focus-visible:ring-2 focus-visible:ring-ring",children:o.glyph})]}),f(oy,{label:"Worktrees as folders",description:"Threads sharing a worktree fold into one row",checked:e.environmentGrouping,onChange:i=>n({environmentGrouping:i})}),f(ss,{label:"Settle after",children:f(as,{label:"Settle after",options:[["12h","12h"],["1d","1d"],["3d","3d"],["1w","1w"],["never","Never"]],current:e.settleAfter,onSelect:i=>n({settleAfter:i})})}),f(gh,{children:"Rows"}),f(ss,{label:"Density",children:f(as,{label:"Density",options:[["compact","Compact"],["comfortable","Comfortable"]],current:t.density,onSelect:i=>r({density:i})})}),f(ss,{label:"Harness icon",children:f(as,{label:"Harness icon",options:[["muted","Muted"],["colour","Colour"]],current:e.harnessIcon,onSelect:i=>n({harnessIcon:i})})}),f(gh,{children:"Attention"}),f(oy,{label:"Needs attention counts every child",description:"Every unread or failed child thread; otherwise only those blocked on you.",checked:ey(e.childAttention),onChange:i=>n({childAttention:ty(i)})})]})}var SP="bg-[color-mix(in_oklab,var(--attention)_14%,transparent)] text-[color:color-mix(in_oklab,var(--attention),var(--foreground)_55%)] hover:bg-[color-mix(in_oklab,var(--attention)_24%,transparent)]",_P="bg-[color-mix(in_oklab,var(--attention)_30%,transparent)] text-foreground",sy=rt(function({mode:t,needYouCount:n,needYouOnly:r,onToggleNeedYou:o,onMarkAllRead:i,prefs:s,client:a,onPrefs:c,onClient:u}){let[l,d]=A(!1);return v("div",{"data-sidebar":"list-header",className:"flex h-7 items-center gap-1 pl-2 pr-1 text-xs text-muted-foreground max-md:pointer-coarse:h-9",children:[f("h2",{className:"min-w-0 flex-1 truncate font-medium select-none",children:Sk(t)}),n>0?v("button",{type:"button","aria-pressed":r,title:r?"Show every thread":"Show only what needs you",onClick:o,className:w("inline-flex h-5 shrink-0 items-center rounded-full px-1.5 text-[11px] leading-none tabular-nums outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",r?_P:SP),children:[n," need you"]}):null,f("button",{type:"button","aria-label":"Mark all read",title:"Mark all read",className:Ot,onClick:i,children:f(F,{name:z.markRead,"aria-hidden":!0,className:"size-4"})}),v(Ks,{open:l,onOpenChange:d,children:[f(Vo,{asChild:!0,children:f("button",{type:"button","aria-label":"Thread Glance settings",title:"Settings",className:Ot,children:f(F,{name:z.settings,"aria-hidden":!0,className:"size-4"})})}),f(Fo,{side:"bottom",align:"end",className:"w-80 max-w-[calc(100vw-1rem)] p-1",children:f(iy,{prefs:s,client:a,onPrefs:c,onClient:u})})]})]})});var PP="thread-glance";function kr(e){return e instanceof Error?e.message:String(e)}async function ay(e,t){try{await navigator.clipboard.writeText(e),st.success(t)}catch(n){st.error("Couldn't copy",{description:kr(n)})}}var LP={activationConstraint:{distance:4}},MP={activationConstraint:{delay:200,tolerance:6}},RP=e=>{let t=e.active.data.current?.kind,n=Kh(e);if(t==="group")return n.filter(o=>String(o.id).startsWith("drop-group:"));let r=n.filter(o=>String(o.id).startsWith("drop-thread:"));return r.length>0?r:n};function cy(e){let t=e.activatorEvent,n=null;return t instanceof MouseEvent?n=t.clientY:typeof TouchEvent<"u"&&t instanceof TouchEvent&&(n=t.touches[0]?.clientY??null),n===null?null:n+e.delta.y}function Ch(e){let[t,n]=A(0);return f(TP,{...e,attempt:t,onRetry:()=>n(r=>r+1)},t)}function TP({activeThreadId:e,isCompactViewport:t,onNavigate:n,attempt:r,onRetry:o}){let{prefs:i,hydrated:s,update:a}=M4(),[c,u]=_4(),[l,d]=A(!1),m=wh({experimental_lifecycles:i.showArchived?["active","archived"]:["active"]}),p=bh(),h=wr(),{providers:g}=yh(),{providers:C}=xh(),x=_h(),{stamps:y,markSeen:I,clearSeen:R}=$4(),M=R4(),T=HC(),N=G(()=>{let b=Object.values(M).filter(_=>_>Date.now());return b.length>0?Math.min(...b):null},[M]),B=P4(N),[ne,de]=A(null),[ie,Z]=A(null),[oe,re]=A(null),[Ne,gt]=A(""),Fe=$(new Map),[Zn,Ct]=A(!1),[_t,pn]=A(!1),[be,je]=A(null),[zt,Pt]=A(()=>new Map),[Ze,Jt]=A(null),Wn=$(new Map),jt=m.status==="ready",me=m.threads,kt=G(()=>new Map(me.map(b=>[b.id,b])),[me]),X=G(()=>jt?J4({threads:me,activeThreadId:e,finishedAt:y.finishedAt,seenAt:y.seenAt,draftIds:x,scheduled:M,now:B,notes:T,childAttention:i.childAttention}):null,[jt,me,e,y.finishedAt,y.seenAt,x,M,B,T,i.childAttention]),{targets:Vn,prune:He}=A5(s?X:null,e),Lt=G(()=>[...new Set(me.flatMap(b=>b.environment?.branchName?[b.projectId]:[]))],[me]),pt=BC(Lt),Zt=E(b=>pt.has(b.projectId)?pt.get(b.projectId)??null:void 0,[pt]),Wt=UC(),Xt=G(()=>({now:B,settleAfter:i.settleAfter,startedAt:y.startedAt,finishedAt:y.finishedAt}),[B,i.settleAfter,y.startedAt,y.finishedAt]),et=$(null),ee=G(()=>X===null?null:Rg(et.current,_g({forest:X,threads:me,projects:m.projects,sections:m.sections,prefs:i,activeThreadId:e,targets:Vn,settle:Xt,defaultProviderId:Wt.defaultProviderId,primaryHostId:Wt.primaryHostId,comfortable:c.density==="comfortable",defaultBranchOf:Zt,needYouOnly:um(l,du(X))})),[X,me,m.projects,m.sections,i,e,Vn,Xt,Wt.defaultProviderId,Wt.primaryHostId,c.density,Zt,l]);ot(()=>{et.current=ee},[ee]),l&&X!==null&&!um(l,du(X))&&d(!1);let Vt=$(null);O(()=>{let b=[Vt.current,e].filter(_=>_!==null&&kt.get(_)?.parentThreadId!=null);Vt.current=e,ik(),b.length>0&&I([...new Set(b)])},[e]);let W=G(()=>ig(g),[g]),Me=G(()=>{let b=new Map,_=new Map(g.map(P=>[P.id,P]));return P=>{let J=b.get(P);if(J===void 0){let te=_.get(P);J={id:P,name:te?.displayName??P,provider:te?.logoUrl?te:null,mark:sg(P,W)},b.set(P,J)}return J}},[g,W]),fn=E(b=>{Object.keys(b.patch).length>0&&a(b.patch),b.drop!==null&&He(b.drop)},[a,He]),Po=E((b,_,P)=>{let J={activeThreadId:e,finishedAt:y.finishedAt,seenAt:y.seenAt},te=ge=>he=>st.error(ge,{description:kr(he)});switch(b){case"open-in-split":p.open(_.id,{split:!0}),n();return;case"copy-link":ay(new URL(_.href,window.location.origin).toString(),"Thread link copied");return;case"copy-id":ay(_.id,"Thread ID copied");return;case"mark-read":{let ge=ve.current.forest,he=ge===null?{read:[_.id],seen:[]}:fg(_.id,ge,J);he.seen.length>0&&I(he.seen);for(let Mt of he.read)p.setRead(Mt,!0).catch(te("Couldn't mark read"));return}case"mark-unread":R([_.id]),p.setRead(_.id,!1).catch(te("Couldn't mark unread"));return;case"pin":case"unpin":p.setPinned(_.id,b==="pin").catch(te("Couldn't change the pin"));return;case"move-to-section":h.threads.update({threadId:_.id,sectionId:P??null}).catch(te("Couldn't move the thread"));return;case"rename":de(_.id);return;case"details":Z(_.id);return;case"move":gt(""),re(_.id);return;case"archive":p.archive(_.id);return;case"unarchive":h.threads.unarchive({threadId:_.id}).catch(te("Couldn't unarchive"));return;case"delete":setTimeout(()=>p.requestDelete(_.id),0);return}},[p,e,R,I,n,h,y.finishedAt,y.seenAt]),Qt=$(Po);ot(()=>{Qt.current=Po});let ve=$({forest:X,view:ee,prefs:i,byId:kt,activeThreadId:e,stamps:y});ot(()=>{ve.current={forest:X,view:ee,prefs:i,byId:kt,activeThreadId:e,stamps:y}});let mn=E((b,_)=>{let P=`${b}:${_}`,J=Wn.current.get(P);if(J===void 0){let te=ve.current.byId.get(b),ge=te?.providerId??"",he=Fe.current.get(ge);he===void 0&&(he=h.providers.models(te?.host?{providerId:ge,hostId:te.host.id}:{providerId:ge}).then(en=>en.models,()=>[]),Fe.current.set(ge,he));let Mt=he;J=h.threads.defaultExecutionOptions({threadId:b}).then(async en=>en===null?null:{model:JC(en.model,await Mt),reasoningLevel:en.reasoningLevel},()=>null),Wn.current.set(P,J)}return J},[h]),Fn=X!==null&&ee!==null,ft=G(()=>Fn?{compact:t,comfortable:c.density==="comfortable",setEditingId:de,harnessIcon:i.harnessIcon,provider:Me,sections:m.sections,mode:i.organizationMode,onNavigate:n,onToggleChip:b=>{let{prefs:_,forest:P}=ve.current;fn(cg(b,_,P))},onToggleOlder:b=>{let{prefs:_,forest:P}=ve.current;fn(lg(b,_,P))},onToggleSettled:b=>fn(dg(b,ve.current.prefs)),onToggleEnvironment:b=>{let{collapsedEnvironments:_}=ve.current.prefs;a({collapsedEnvironments:_.includes(b)?_.filter(P=>P!==b):[..._,b]})},onMenuAction:(b,_,P)=>Qt.current(b,_,P),onRename:(b,_)=>p.rename(b,_),loadModel:mn,openDetails:Z,onNewThreadInEnvironment:(b,_,P)=>{p.openNewThread({projectId:_,environmentId:b,...P?{sectionId:P}:{},focusPrompt:!0}),n()},onRenameEnvironment:async(b,_)=>{await h.environments.update({environmentId:b,name:_})},onArchiveEnvironment:b=>{h.environments.archiveThreads({environmentId:b}).catch(_=>st.error("Couldn't archive the environment",{description:kr(_)}))}}:null,[Fn,t,c.density,i.harnessIcon,i.organizationMode,Me,m.sections,n,fn,a,p,h,mn]),cs=G(()=>({now:B,stamps:y,notes:T,treeOf:b=>X?.treeOf.get(b)}),[B,y,T,X]),us=G(()=>{let b=e===null||X===null?void 0:X.treeOf.get(e);return b===void 0?null:cu(b.root.thread,{mode:i.organizationMode,projects:m.projects})},[e,X,i.organizationMode,m.projects]),ls=i.showArchived,hn=E((b,_)=>{let{activeThreadId:P,stamps:J}=ve.current,te=im(b,{activeThreadId:P,finishedAt:J.finishedAt,seenAt:J.seenAt}),ge=()=>{te.seen.length>0&&I(te.seen);for(let he of te.read)p.setRead(he,!0).catch(()=>{})};te.read.length===0?st(`Nothing unread in ${_}`):te.read.length>ng?je({title:`Mark ${te.read.length} threads read?`,description:`Every unread thread in ${_}, child threads included, will be marked read.`,confirmLabel:"Mark all read",run:ge}):ge()},[p,I]),ds=E(()=>hn(ve.current.forest?.trees??[],"the list"),[hn]),ju=E(()=>d(b=>!b),[]),yr=G(()=>{if(!Fn)return null;let b=_=>hn(_.rootIds.flatMap(P=>ve.current.forest.treeOf.get(P)??[]),_.descriptor.label);return{compact:t,activeGroupId:us,showArchived:ls,onToggleArchived:()=>a({showArchived:!ve.current.prefs.showArchived}),canCreateSections:i.organizationMode==="chronological",onToggleCollapse:_=>{let{prefs:P,forest:J}=ve.current;fn(pg(_,P,J))},onNewThread:_=>{let P=_.descriptor;p.openNewThread({...P.newThreadProjectId?{projectId:P.newThreadProjectId}:{},...P.newThreadSectionId?{sectionId:P.newThreadSectionId}:{},focusPrompt:!0}),n()},onHide:_=>a({hiddenGroups:[...ve.current.prefs.hiddenGroups,_.descriptor.id]}),onShow:_=>a({hiddenGroups:ve.current.prefs.hiddenGroups.filter(P=>P!==_.descriptor.id)}),onCustomize:()=>Ct(!0),onRename:async(_,P)=>{_.descriptor.kind==="section"?await h.threadSections.update({id:_.descriptor.entityId,name:P}):_.descriptor.kind==="machine"&&await h.hosts.update({hostId:_.descriptor.entityId,name:P})},onRemove:_=>je({title:"Remove section?",description:"Threads in this section will move back to Threads.",confirmLabel:"Remove",destructive:!0,run:()=>{h.threadSections.delete({id:_.descriptor.entityId}).catch(P=>st.error("Couldn't remove the section",{description:kr(P)}))}}),onMarkAllRead:b,onNewSection:()=>pn(!0)}},[Fn,t,us,ls,i.organizationMode,fn,p,n,a,h,hn]),Zu=Gh(Ls(Oo,LP),Ls(zo,MP),Ls(Mr)),br=E(b=>{let _=b.over;if(_===null)return null;let P=_.data.current;if(P===void 0)return null;if(P.kind==="group")return{kind:"group",groupId:P.groupId};let J=cy(b),te=_.rect,ge=J===null?.5:(J-te.top)/Math.max(te.height,1),he=ge<.25?"before":ge>.75?"after":"middle";return{kind:"thread",threadId:P.threadId,zone:he,inPinned:P.inPinned??!1}},[]),vr=G(()=>{let b=new Map;for(let P of[...ee?.groups??[],...ee?.more??[]])for(let J of P.rows)J.type==="thread"&&b.set(J.info.thread.id,P.descriptor.id);let _=ee?.groups.find(P=>P.descriptor.id==="pinned");return{mode:i.organizationMode,parentOf:P=>kt.get(P)?.parentThreadId??null,pinnedOrder:(_?.rows??[]).flatMap(P=>P.type==="thread"&&P.depth===0?[P.info.thread.id]:[]),groupOfThread:P=>b.get(P)??"threads"}},[ee,i.organizationMode,kt]),Re=E(b=>{let _=b.active.data.current,P=br(b);if(_?.kind!=="thread"||P===null){Pt(new Map),Jt(_?.kind==="group"&&P?.kind==="group"?P.groupId:null);return}if(P.kind==="group"){Pt(new Map),Jt(P.groupId);return}Jt(null);let J=Y2(_.thread,P,vr),te=J.type==="blocked"?"blocked":J.type==="unchanged"?"unchanged":P.zone==="middle"?"valid":P.zone;Pt(new Map([[P.threadId,te]]))},[br,vr]),We=E(async b=>{switch(b.type){case"nest":b.unpinFirst&&await h.threads.unpin({threadId:b.threadId}),await h.threads.update({threadId:b.threadId,parentThreadId:b.parentThreadId});return;case"move":await h.threads.update({threadId:b.threadId,sectionId:b.sectionId,...b.detach?{parentThreadId:null}:{}});return;case"detach":await h.threads.update({threadId:b.threadId,parentThreadId:null});return;case"pin":await p.setPinned(b.threadId,!0);return;case"unpin":await p.setPinned(b.threadId,!1);return;case"reorder-pinned":await h.threads.reorderPinned({threadId:b.threadId,previousThreadId:b.previousThreadId,nextThreadId:b.nextThreadId});return;case"blocked":case"unchanged":return}},[h,p]),Be=E(b=>{Pt(new Map),Jt(null);let _=b.active.data.current,P=br(b);if(_===void 0||P===null||ee===null)return;if(_.kind==="group"){if(P.kind!=="group"||P.groupId===_.groupId)return;let te=b.over.rect,ge=cy(b),he=ge!==null&&ge>te.top+te.height/2?"after":"before",Mt=Ui[i.organizationMode];a({[Mt]:rm(ee.order,_.groupId,P.groupId,he)});return}let J=Y2(_.thread,P,vr);We(J).catch(te=>st.error("Failed to move thread.",{description:kr(te)}))},[br,ee,i.organizationMode,a,vr,We]),Ft=E(()=>Pt(new Map),[]),tt=G(()=>{if(ee===null)return[];let b=new Map([...ee.groups,...ee.more].map(_=>[_.descriptor.id,_]));return ee.order.flatMap(_=>{let P=b.get(_);return P===void 0?[]:[{id:_,label:P.descriptor.label,hidden:P.hidden,hideable:_!=="pinned"}]})},[ee]);if(m.status==="error")return v("div",{role:"alert",className:"flex flex-col items-start gap-2 px-3 py-2 text-sm",children:[f("p",{className:"text-muted-foreground",children:"Threads couldn't load."}),r===0?f(Ke,{size:"sm",variant:"outline",onClick:o,children:"Retry"}):f(Ke,{size:"sm",variant:"outline",onClick:()=>{h.plugins.reload({pluginId:PP}).catch(()=>window.location.reload())},children:"Reload plugin"})]});if(m.status==="loading"||!s||ee===null||ft===null||yr===null)return f("div",{role:"status","aria-label":"Loading threads",className:"flex flex-col gap-1 px-2 py-1",children:[0,1,2].map(b=>f("div",{"data-sidebar":"navigation-loading-row",className:"h-7 animate-pulse rounded-md bg-muted/60"},b))});let ke=m.experimental_archived,Te=ie===null?null:X?.infos.get(ie)??null,nt=oe===null?null:kt.get(oe)??null;return f(fu.Provider,{value:cs,children:v("div",{className:"flex w-full min-w-0 flex-col px-1.5 pb-2",children:[f(sy,{mode:i.organizationMode,needYouCount:ee.needYouCount,needYouOnly:l,onToggleNeedYou:ju,onMarkAllRead:ds,prefs:i,client:c,onPrefs:a,onClient:u}),me.length===0?f("p",{className:"px-3 py-4 text-sm text-muted-foreground",children:"No threads yet."}):v(s5,{sensors:Zu,collisionDetection:RP,onDragMove:Re,onDragEnd:Be,onDragCancel:Ft,children:[ee.groups.map(b=>f(hh,{group:b,rowController:ft,groupController:yr,environmentProviders:C,dropStates:zt,dropTargetGroupId:Ze,activeThreadId:e,editingId:ne,now:B,stamps:y},b.descriptor.id)),ee.more.length>0?v(Ks,{children:[f(Vo,{asChild:!0,children:v("button",{type:"button","data-testid":"sidebar-thread-list-more-trigger","aria-label":`More: ${ee.more.length} hidden ${ee.more.length===1?"group":"groups"}`,className:"mt-1 flex h-7 w-full items-center gap-1 rounded-md pl-2 pr-1 text-left text-xs text-muted-foreground outline-none hover:bg-sidebar-accent focus-visible:ring-2 focus-visible:ring-sidebar-ring",children:[f("span",{className:"flex-1 font-medium",children:"More"}),f(_u,{counters:ee.moreCounters}),f(F,{name:"ChevronRight","aria-hidden":!0,className:"size-3"})]})}),f(Fo,{side:"right",align:"end",className:"max-h-[70vh] w-72 overflow-y-auto p-1",children:f("div",{"data-sidebar-overflow":"true",className:"flex flex-col",children:ee.more.map(b=>f(hh,{group:b,rowController:ft,groupController:yr,environmentProviders:C,dropStates:zt,dropTargetGroupId:Ze,activeThreadId:e,editingId:ne,now:B,stamps:y,inOverflow:!0},b.descriptor.id))})})]}):null]}),ke!==null?v("div",{className:"flex flex-col items-start gap-1 px-2 pt-2",children:[ke.status==="loading"?f("p",{role:"status",className:"text-xs text-muted-foreground",children:"Loading archived threads\u2026"}):ke.status==="error"?f("p",{role:"status",className:"text-xs text-muted-foreground",children:"Archived threads unavailable"}):null,ke.hasNextPage||ke.isFetchNextPageError?f(Ke,{size:"sm",variant:"ghost","aria-label":"Load more archived threads",disabled:ke.isFetchingNextPage,className:w("h-7 text-xs text-muted-foreground"),onClick:()=>{ke.fetchNextPage()},children:ke.isFetchingNextPage?"Loading\u2026":ke.isFetchNextPageError?"Retry loading":"Show more"}):null]}):null,f(jC,{open:Zn,items:tt,onOpenChange:Ct,onToggleHidden:b=>a({hiddenGroups:i.hiddenGroups.includes(b)?i.hiddenGroups.filter(_=>_!==b):[...i.hiddenGroups,b]}),onMove:(b,_)=>{let P=ee.order.indexOf(b),J=ee.order[P+_];J!==void 0&&a({[Ui[i.organizationMode]]:rm(ee.order,b,J,_<0?"before":"after")})}}),f(ZC,{open:_t,onOpenChange:pn,onCreate:async b=>{try{await h.threadSections.create({name:b})}catch(_){throw st.error("Couldn't create the section",{description:kr(_)}),_}}}),f(WC,{open:be!==null,title:be?.title??"",description:be?.description??"",confirmLabel:be?.confirmLabel??"OK",destructive:be?.destructive,onOpenChange:b=>!b&&je(null),onConfirm:()=>{be?.run(),je(null)}}),Te!=null?f(VC,{open:!0,title:Te.thread.displayTitle,onOpenChange:b=>!b&&Z(null),children:f(zu,{info:Te,controller:ft,showPullRequest:!0,actions:{open:()=>{Z(null),p.open(Te.thread.id),n()},toggleRead:()=>Po(Te.unread?"mark-read":"mark-unread",Te.thread)}})}):null,nt!==null&&X!==null?f(FC,{open:!0,title:nt.displayTitle,targets:GC(nt.id,X,Ne),query:Ne,onQueryChange:gt,onOpenChange:b=>!b&&re(null),onMove:b=>{(async()=>{b!==null&&(nt.pinnedAt!==null||nt.isPinned)&&await h.threads.unpin({threadId:nt.id}),await h.threads.update({threadId:nt.id,parentThreadId:b})})().catch(P=>st.error("Failed to move thread.",{description:kr(P)}))}}):null]})})}var nH=kh(e=>{e.slots.experimental_threadList({id:"thread-glance",title:"Thread Glance",description:"Every thread's state, harness and child threads at a glance.",component:Ch})});export{nH as default};