!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"substack@538433c"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="24ae45fe-7eaf-4c7d-a5e2-ff4026f5ec54",e._sentryDebugIdIdentifier="sentry-dbid-24ae45fe-7eaf-4c7d-a5e2-ff4026f5ec54")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["2423"],{7777:function(e,t,r){r.d(t,{A:()=>a});let a={trigger:"trigger-OWD1a0",inline:"inline-fbdRrG",block:"block-RG535f",input:"input-tNASTU",popoverContent:"popoverContent-qNlrAg",placeholder:"placeholder-EDbi1z"}},33398:function(e,t,r){r.d(t,{A:()=>a});let a={latexWrapper:"latexWrapper-nLaCay",latexEdit:"latexEdit-Ac8sug",emptyStateWrapper:"emptyStateWrapper-maokFW"}},6045:function(e,t,r){r.d(t,{A:()=>a});let a={pubTheme:"pubTheme-yiXxQA",headerTheme:"headerTheme-cI2mYP",footerTheme:"footerTheme-BgBgJ9",footerSecondaryTheme:"footerSecondaryTheme-_7Juj4"}},6986:function(e,t,r){r.d(t,{A:()=>a});let a={badge:"badge-jGMz0j",dot:"dot-dFwIaI",singleElement:"singleElement-ve4D6v",fillIcon:"fillIcon-hub55b",empty:"empty-w6FjPW",shape_circle:"shape_circle-Q9w9_R",shapeCircle:"shape_circle-Q9w9_R",shape_square:"shape_square-O2PxpD",shapeSquare:"shape_square-O2PxpD","placement_top-left":"placement_top-left-dsosXN",placementTopLeft:"placement_top-left-dsosXN","placement_top-right":"placement_top-right-CTrC80",placementTopRight:"placement_top-right-CTrC80","placement_bottom-left":"placement_bottom-left-JFLMtf",placementBottomLeft:"placement_bottom-left-JFLMtf","placement_bottom-right":"placement_bottom-right-hoG7Xz",placementBottomRight:"placement_bottom-right-hoG7Xz"}},94285:function(e,t,r){r.d(t,{A:()=>a});let a={root:"root-ke3ITh",theme_error:"theme_error-EdHJ89",themeError:"theme_error-EdHJ89",xs:"xs-u94A3p",sm:"sm-rkc_jb",md:"md-FWdzy4",icon:"icon-JVHTJb",theme_accent:"theme_accent-BLPCPx",themeAccent:"theme_accent-BLPCPx",theme_success:"theme_success-K1reIy",themeSuccess:"theme_success-K1reIy",theme_select:"theme_select-db4cFz",themeSelect:"theme_select-db4cFz",theme_highlight:"theme_highlight-c5Va8G",themeHighlight:"theme_highlight-c5Va8G",theme_mono:"theme_mono-w3BrBe",themeMono:"theme_mono-w3BrBe"}},88946:function(e,t,r){r.d(t,{A:()=>a});let a={chip:"chip-lJKwY5",textOnly:"textOnly-SPwDNp",leading:"leading-TvXpau",trailing:"trailing-lhDVKn",clickable:"clickable-IxUlBk",disabled:"disabled-F1nG5l",fillIcon:"fillIcon-jYnt2U"}},23382:function(e,t,r){r.d(t,{A:()=>a});let a={content:"content-G_L5eC",expand:"expand-AIPHFb",collapse:"collapse-KRyDqG"}},40719:function(e,t,r){r.d(t,{A:()=>a});let a={overscrollTransition:"overscrollTransition-QBV35u"}},89961:function(e,t,r){r.d(t,{A:()=>a});let a={kbd:"kbd-PuF2B0"}},76722:function(e,t,r){r.d(t,{A:()=>a});let a={item:"item-Npdq6R",withDescription:"withDescription-NqmhWd",mobile:"mobile-H_2QrZ",priority_primary:"priority_primary-eIAnBM",priorityPrimary:"priority_primary-eIAnBM",priority_secondary:"priority_secondary-G7JGFb",prioritySecondary:"priority_secondary-G7JGFb",priority_accent:"priority_accent-_OAv7B",priorityAccent:"priority_accent-_OAv7B",priority_destructive:"priority_destructive-_k3_64",priorityDestructive:"priority_destructive-_k3_64"}},25879:function(e,t,r){r.d(t,{A:()=>a});let a={select:"select-nGc13j",menu:"menu-T8bpIH",disabled:"disabled-Dbz4PM",focus:"focus-JiAubq",error:"error-L2xDMl",leading:"leading-o7jWpZ",size_sm:"size_sm-wP3fcB",sizeSm:"size_sm-wP3fcB",size_md:"size_md-4WlyW1",sizeMd:"size_md-4WlyW1",trailing:"trailing-ezPcro","priority_secondary-outline":"priority_secondary-outline-ZUiTkO",prioritySecondaryOutline:"priority_secondary-outline-ZUiTkO",priority_tertiary:"priority_tertiary-Y9DHgN",priorityTertiary:"priority_tertiary-Y9DHgN"}},92962:function(e,t,r){r.d(t,{A:()=>a});let a={table:"table-BAJTHQ",tr:"tr-jyGCha",tbody:"tbody-EyZ57l","border-left-detail":"border-left-detail-eIBFIK",borderLeftDetail:"border-left-detail-eIBFIK",td:"td-ucFIGn",th:"th-Z3IRfp","border-right-detail":"border-right-detail-n56elr",borderRightDetail:"border-right-detail-n56elr","border-bottom-detail":"border-bottom-detail-JKtjOR",borderBottomDetail:"border-bottom-detail-JKtjOR","position-relative":"position-relative-wVH5ml",positionRelative:"position-relative-wVH5ml","position-sticky":"position-sticky-erqDrM",positionSticky:"position-sticky-erqDrM",thead:"thead-yvbVgS",tfoot:"tfoot-nBK5Jw",caption:"caption-ljUjSd",handle:"handle-TqIPca"}},97884:function(e,t,r){r.d(t,{A:()=>a});let a={code:"code-G_k53t",mobile:"mobile-UYKQ5x",hoverChild:"hoverChild-iT6tA_",hoverTarget:"hoverTarget-UvGaad"}},97684:function(e,t,r){r.d(t,{A:()=>a});let a={input:"input-X5E9i8",inputWrapper:"inputWrapper-oU82fm",inputBox:"inputBox-sEFZlI",disabled:"disabled-E8NHVa",hasChips:"hasChips-vDsUWG",options:"options-aBXwqq",empty:"empty-DC9PME",option:"option-orqVUP",check:"check-qomjjP",button:"button-xcVawW"}},7743:function(e,t,r){r.d(t,{A:()=>a});let a={highlight:"highlight-U002IP"}},64224:function(e,t,r){r.d(t,{A:()=>a});let a={scrollBox:"scrollBox-zHkQVP",arrowButtonContainer:"arrowButtonContainer-O4uSiH",visible:"visible-JMTC0j",right:"right-i3oWGi",left:"left-Tg8vqp",arrowButtonOffsetContainer:"arrowButtonOffsetContainer-VMYLE4",arrowButtonOverlaidContainer:"arrowButtonOverlaidContainer-t10AyH",overlay:"overlay-zrMCxn",primary:"primary-lv_sOW",secondary:"secondary-pOosZC",arrowButtonOverlaid:"arrowButtonOverlaid-xLyA_z"}},34084:function(e,t,r){r.d(t,{V:()=>m,n:()=>b});var a=r(74848),n=r(79804),i=r(32708),l=r(96540),o=r(84605),s=r(85478),c=r(86500),d=r(35369),g=r(76977),h=r(37598),u=r(65842),f=r(56720),p=r(7777);let m=()=>{let{getConfigFor:e}=(0,s.mJ)();return!!e("latex_upgraded_inline")};function b(e){var t;let{node:r,updateAttributes:s,deleteNode:m,inline:b,align:v,trigger:y}=e,C=(0,l.useRef)(null),x=(0,l.useRef)(""),w=(0,l.useRef)(!1),[k,j]=(0,l.useState)(!1),{iString:_}=(0,o.GO)(),A=null!=(t=r.attrs.persistentExpression)?t:"",L=(0,l.useCallback)(()=>{x.current=A,w.current=!1,j(!1)},[A]),M=(0,l.useCallback)(()=>{w.current?A&&(0,c.u4)(c.qY.LATEX_BLOCK_ADDED,{expression:A,inline:b}):s({persistentExpression:x.current})},[A,b,s]),I=(0,l.useCallback)(e=>{let t=e.currentTarget.value;s({persistentExpression:t}),j(t!==x.current)},[s]),T=(0,l.useCallback)(e=>{w.current=!0,e()},[]),E=(0,l.useCallback)((e,t)=>{"Enter"===e.key?(e.preventDefault(),T(t)):"Escape"===e.key&&(e.preventDefault(),t())},[T]);return(0,a.jsx)(h.A,{trigger:y,side:"bottom",align:v,initialFocus:C,onOpen:L,onClose:M,children:e=>{let{close:t}=e;return(0,a.jsxs)(g.fI,{padding:8,gap:8,sizing:"border-box",alignItems:"center",className:p.A.popoverContent,children:[(0,a.jsx)(u.ks,{ref:C,className:p.A.input,value:A,onChange:I,onKeyDown:e=>E(e,t),placeholder:_("Enter LaTeX equation"),flex:"grow"}),(0,a.jsxs)(g.fI,{gap:4,alignItems:"center",children:[(0,a.jsx)(f.m_,{text:_("Save changes"),children:(0,a.jsx)(d.K0,{size:"sm",priority:"tertiary",disabled:!k,onClick:()=>T(t),children:(0,a.jsx)(n.A,{size:16})})}),(0,a.jsx)(f.m_,{text:_("Delete"),children:(0,a.jsx)(d.K0,{size:"sm",priority:"tertiary",onClick:()=>{t(),m()},children:(0,a.jsx)(i.A,{size:16})})})]})]})}})}},73007:function(e,t,r){r.r(t),r.d(t,{InlineLatexComponent:()=>m});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(99595),s=r(31386),c=r(32485),d=r.n(c),g=r(96540),h=r(34084),u=r(89490),f=r(90292),p=r(7777);let m=e=>{var t;let r=(0,h.V)(),a=null!=(t=e.node.attrs.persistentExpression)?t:"";return r?(0,l.jsx)(o.VR,{as:"span",children:(0,l.jsx)(f.q,{children:(0,l.jsx)(h.n,{node:e.node,updateAttributes:e.updateAttributes,deleteNode:e.deleteNode,inline:!0,align:"start",trigger:(0,l.jsx)(b,{expression:a,id:e.node.attrs.id})})})}):(0,l.jsx)(o.VR,{as:"span",children:(0,l.jsx)(f.q,{children:(0,l.jsx)(s.A,{typesettingOptions:{fn:"tex2chtml"},text:a,renderMode:"pre",inline:!0,dynamic:!0})})})},b=(0,g.forwardRef)((e,t)=>{var{expression:r,id:o}=e,c=(0,i._)(e,["expression","id"]);return(0,l.jsx)(u.az,(0,n._)((0,a._)({},c),{ref:t,as:"span",paddingX:4,radius:"sm",animate:!0,cursor:"pointer",className:d()(p.A.trigger,p.A.inline),"data-attrs":JSON.stringify({persistentExpression:r,id:o}),children:r?(0,l.jsx)(s.A,{typesettingOptions:{fn:"tex2chtml"},text:r,renderMode:"pre",inline:!0,dynamic:!0}):(0,l.jsx)("span",{className:p.A.placeholder,children:"$ ... $"})}))})},73815:function(e,t,r){r.d(t,{Z:()=>i});var a=r(74848),n=r(10996);function i(e){let{children:t}=e;return(0,a.jsx)(n.NP,{theme:"pubAccentTheme-rgl9Hv",children:t})}},60235:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsx)(l.A,(0,n._)((0,a._)({},e),{name:"Back15Icon",svgParams:{width:20,height:22,viewBox:"0 0 20 22",stroke:"none",fill:"white"},children:(0,i.jsx)("path",{d:"M0 11.8557C0 13.2164 0.260417 14.4989 0.78125 15.7034C1.30208 16.9078 2.02148 17.969 2.93945 18.887C3.85742 19.7984 4.91536 20.5146 6.11328 21.0354C7.31771 21.5562 8.60026 21.8166 9.96094 21.8166C11.3216 21.8166 12.6009 21.5562 13.7988 21.0354C15.0033 20.5146 16.0645 19.7984 16.9824 18.887C17.9004 17.969 18.6198 16.9078 19.1406 15.7034C19.6615 14.4989 19.9219 13.2164 19.9219 11.8557C19.9219 10.6578 19.7168 9.51846 19.3066 8.43773C18.8965 7.357 18.3236 6.38044 17.5879 5.50805C16.8587 4.62914 16.0026 3.89672 15.0195 3.31078C14.043 2.71833 12.985 2.30818 11.8457 2.08031V0.693592C11.8457 0.342029 11.7448 0.12393 11.543 0.039295C11.3411 -0.0453404 11.1068 0.00674294 10.8398 0.195545L7.72461 2.37328C7.49674 2.52953 7.38281 2.71182 7.38281 2.92015C7.38281 3.12849 7.49674 3.31403 7.72461 3.47679L10.8301 5.6643C11.097 5.85961 11.3314 5.91495 11.5332 5.83031C11.7415 5.73916 11.8457 5.51781 11.8457 5.16625V3.77953C12.7702 3.98786 13.6198 4.33943 14.3945 4.83422C15.1758 5.32901 15.8529 5.93448 16.4258 6.65062C17.0052 7.36677 17.4544 8.16755 17.7734 9.05297C18.0924 9.93187 18.252 10.8661 18.252 11.8557C18.252 13.008 18.0371 14.0888 17.6074 15.0979C17.1842 16.1005 16.5918 16.9827 15.8301 17.7444C15.0749 18.4996 14.196 19.0888 13.1934 19.512C12.1908 19.9416 11.1133 20.1565 9.96094 20.1565C8.80859 20.1565 7.72786 19.9416 6.71875 19.512C5.71615 19.0888 4.83398 18.4996 4.07227 17.7444C3.31706 16.9827 2.72461 16.1005 2.29492 15.0979C1.87174 14.0888 1.66016 13.008 1.66016 11.8557C1.66016 10.9312 1.80339 10.0523 2.08984 9.21898C2.3763 8.37914 2.77669 7.61416 3.29102 6.92406C3.80534 6.23396 4.40755 5.64151 5.09766 5.14672C5.29948 4.99698 5.42643 4.81469 5.47852 4.59984C5.53711 4.385 5.50456 4.17666 5.38086 3.97484C5.25716 3.77953 5.07812 3.66234 4.84375 3.62328C4.60938 3.57771 4.38477 3.6363 4.16992 3.79906C3.33008 4.40453 2.59766 5.12719 1.97266 5.96703C1.34766 6.80036 0.86263 7.71833 0.517578 8.72094C0.172526 9.71703 0 10.762 0 11.8557ZM7.10938 15.8596C7.29818 15.8596 7.44792 15.801 7.55859 15.6838C7.66927 15.5601 7.72461 15.3941 7.72461 15.1858V9.02367C7.72461 8.76976 7.66602 8.58096 7.54883 8.45726C7.43164 8.32706 7.26237 8.26195 7.04102 8.26195C6.9043 8.26195 6.77734 8.28799 6.66016 8.34008C6.54297 8.38565 6.39648 8.46703 6.2207 8.58422L4.88281 9.49242C4.77214 9.57055 4.6875 9.65844 4.62891 9.75609C4.57682 9.84724 4.55078 9.94815 4.55078 10.0588C4.55078 10.2216 4.60612 10.3616 4.7168 10.4787C4.82747 10.5959 4.96094 10.6545 5.11719 10.6545C5.21484 10.6545 5.29622 10.6415 5.36133 10.6155C5.42643 10.5894 5.5013 10.5406 5.58594 10.469L6.52344 9.78539H6.50391V15.1858C6.50391 15.3876 6.55924 15.5504 6.66992 15.6741C6.7806 15.7978 6.92708 15.8596 7.10938 15.8596ZM12.0703 15.9768C12.8776 15.9768 13.5254 15.7392 14.0137 15.2639C14.5085 14.7821 14.7559 14.1474 14.7559 13.3596C14.7559 12.6435 14.5378 12.0543 14.1016 11.592C13.6654 11.1298 13.099 10.8987 12.4023 10.8987C12.0898 10.8987 11.7839 10.9703 11.4844 11.1135C11.1914 11.2567 10.9798 11.4521 10.8496 11.6995H10.8984L11.0742 9.49242H13.9941C14.1374 9.49242 14.2611 9.44034 14.3652 9.33617C14.4759 9.232 14.5312 9.09528 14.5312 8.92601C14.5312 8.76325 14.4759 8.63305 14.3652 8.53539C14.2611 8.43122 14.1374 8.37914 13.9941 8.37914H10.8789C10.3646 8.37914 10.0846 8.64932 10.0391 9.18969L9.82422 12.0022C9.80469 12.2431 9.85352 12.4254 9.9707 12.5491C10.0879 12.6662 10.2539 12.7248 10.4688 12.7248C10.625 12.7248 10.752 12.7053 10.8496 12.6662C10.9473 12.6272 11.0645 12.5556 11.2012 12.4514C11.39 12.2821 11.5658 12.1617 11.7285 12.0901C11.8913 12.012 12.0703 11.9729 12.2656 11.9729C12.6432 11.9729 12.9492 12.1031 13.1836 12.3635C13.418 12.6174 13.5352 12.956 13.5352 13.3791C13.5352 13.8088 13.4017 14.1636 13.1348 14.4436C12.8678 14.7235 12.5326 14.8635 12.1289 14.8635C11.8359 14.8635 11.5723 14.7886 11.3379 14.6389C11.1035 14.4827 10.9245 14.2776 10.8008 14.0237C10.7292 13.9 10.6478 13.8056 10.5566 13.7405C10.4655 13.6689 10.3581 13.633 10.2344 13.633C10.0716 13.633 9.93815 13.6851 9.83398 13.7893C9.73633 13.8935 9.6875 14.0302 9.6875 14.1995C9.6875 14.2646 9.69401 14.3297 9.70703 14.3948C9.72005 14.4599 9.73958 14.525 9.76562 14.5901C9.89583 14.9416 10.1628 15.2606 10.5664 15.5471C10.9766 15.8336 11.4779 15.9768 12.0703 15.9768Z"})}))},82519:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=18,color:r="var(--color-fg-primary)",className:s}=e,c=(0,i._)(e,["size","color","className"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},c),{name:"DropdownIcon",svgParams:{viewBox:"0 0 20 20"},stroke:"none",width:t,height:t,fill:r,className:s,children:(0,l.jsx)("path",{d:"M5.72845 8.252C5.25083 7.59067 5.72336 6.6665 6.53913 6.6665H13.461C14.2767 6.6665 14.7493 7.59067 14.2716 8.25199L10.8107 13.044C10.4116 13.5967 9.58852 13.5967 9.18936 13.044L5.72845 8.252Z",stroke:"none"})}))}},29528:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsxs)(l.A,(0,n._)((0,a._)({},e),{name:"EmojiPickerIcon",svgParams:{height:15,width:14,viewBox:"0 0 15 14",fill:"none",stroke:"none"},children:[(0,i.jsx)("path",{d:"M12.7474 7.25708C12.3309 7.37462 11.8916 7.4375 11.4375 7.4375C8.77963 7.4375 6.625 5.28287 6.625 2.625C6.625 2.17094 6.68788 1.73156 6.80542 1.31511C6.74549 1.31337 6.68535 1.3125 6.625 1.3125C3.24226 1.3125 0.5 4.05476 0.5 7.4375C0.5 10.8202 3.24226 13.5625 6.625 13.5625C10.0077 13.5625 12.75 10.8202 12.75 7.4375C12.75 7.37715 12.7491 7.31701 12.7474 7.25708ZM5.75 5.25C5.75 5.97487 5.16237 6.5625 4.4375 6.5625C3.71263 6.5625 3.125 5.97487 3.125 5.25C3.125 4.52513 3.71263 3.9375 4.4375 3.9375C5.16237 3.9375 5.75 4.52513 5.75 5.25ZM10.125 8.3125C10.125 10.2455 8.558 11.8125 6.625 11.8125C4.692 11.8125 3.125 10.2455 3.125 8.3125H10.125Z",fill:"#808080",fillRule:"evenodd",clipRule:"evenodd"}),(0,i.jsx)("path",{d:"M12.0938 0H10.7812V1.96875L8.8125 1.96875V3.28125H10.7812V5.25H12.0938V3.28125H14.0625V1.96875L12.0938 1.96875V0Z",fill:"#808080",fillRule:"evenodd",clipRule:"evenodd"})]}))},68104:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=20,color:r="var(--color-fg-primary)",className:s}=e,c=(0,i._)(e,["size","color","className"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},c),{name:"FilledCircleCrossIcon",svgParams:{viewBox:"0 0 20 20"},stroke:"none",width:t,height:t,fill:r,className:s,children:(0,l.jsx)("path",{d:"M10 18.6646C8.80469 18.6646 7.68408 18.4377 6.63818 17.9839C5.59229 17.5356 4.6709 16.9131 3.87402 16.1162C3.08268 15.3249 2.46289 14.409 2.01465 13.3687C1.56641 12.3228 1.34229 11.2021 1.34229 10.0068C1.34229 8.81152 1.56641 7.69092 2.01465 6.64502C2.46289 5.59912 3.08268 4.6805 3.87402 3.88916C4.6709 3.09229 5.59229 2.46973 6.63818 2.02148C7.68408 1.57324 8.80469 1.34912 10 1.34912C11.1953 1.34912 12.3159 1.57324 13.3618 2.02148C14.4077 2.46973 15.3263 3.09229 16.1177 3.88916C16.909 4.6805 17.5288 5.59912 17.9771 6.64502C18.4308 7.69092 18.6577 8.81152 18.6577 10.0068C18.6577 11.2021 18.4308 12.3228 17.9771 13.3687C17.5288 14.409 16.909 15.3249 16.1177 16.1162C15.3263 16.9131 14.4077 17.5356 13.3618 17.9839C12.3159 18.4377 11.1953 18.6646 10 18.6646ZM7.31885 13.543C7.5734 13.543 7.78646 13.46 7.95801 13.2939L10.0083 11.2354L12.0669 13.2939C12.2274 13.46 12.4321 13.543 12.6812 13.543C12.9246 13.543 13.1294 13.46 13.2954 13.2939C13.4614 13.1279 13.5444 12.9232 13.5444 12.6797C13.5444 12.4417 13.4587 12.2425 13.2871 12.082L11.2202 10.0151L13.2954 7.94824C13.4614 7.77669 13.5444 7.57747 13.5444 7.35059C13.5444 7.1071 13.4614 6.90511 13.2954 6.74463C13.1349 6.57861 12.9357 6.49561 12.6978 6.49561C12.4543 6.49561 12.2495 6.57861 12.0835 6.74463L10.0083 8.81152L7.94141 6.75293C7.76986 6.58691 7.56234 6.50391 7.31885 6.50391C7.08089 6.50391 6.87891 6.58691 6.71289 6.75293C6.55241 6.91341 6.47217 7.1154 6.47217 7.35889C6.47217 7.58577 6.55518 7.78223 6.72119 7.94824L8.79639 10.0151L6.72119 12.0903C6.55518 12.2563 6.47217 12.4528 6.47217 12.6797C6.47217 12.9232 6.55241 13.1279 6.71289 13.2939C6.87891 13.46 7.08089 13.543 7.31885 13.543Z",stroke:"none"})}))}},77290:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsx)(l.A,(0,n._)((0,a._)({},e),{name:"Forward30Icon",svgParams:{width:20,height:22,viewBox:"0 0 20 22",stroke:"none",fill:"white"},children:(0,i.jsx)("path",{d:"M13.1738 15.9615C13.7142 15.9615 14.1829 15.802 14.5801 15.483C14.9837 15.1574 15.2962 14.705 15.5176 14.1255C15.7454 13.5461 15.8594 12.8658 15.8594 12.0845C15.8594 11.2968 15.7454 10.6099 15.5176 10.024C15.2962 9.43803 14.9837 8.9823 14.5801 8.65678C14.1829 8.33126 13.7142 8.1685 13.1738 8.1685C12.6335 8.1685 12.1615 8.33126 11.7578 8.65678C11.3542 8.97579 11.0417 9.42827 10.8203 10.0142C10.599 10.6001 10.4883 11.2902 10.4883 12.0845C10.4883 12.8658 10.599 13.5461 10.8203 14.1255C11.0417 14.705 11.3542 15.1574 11.7578 15.483C12.1615 15.802 12.6335 15.9615 13.1738 15.9615ZM6.875 15.9615C7.64323 15.9615 8.27148 15.7531 8.75977 15.3365C9.25456 14.9133 9.50195 14.3729 9.50195 13.7154C9.50195 13.2401 9.35221 12.83 9.05273 12.4849C8.75326 12.1333 8.3724 11.9315 7.91016 11.8794V11.9283C8.28125 11.8632 8.59701 11.6613 8.85742 11.3228C9.12435 10.9843 9.25781 10.5969 9.25781 10.1607C9.25781 9.57475 9.03971 9.09624 8.60352 8.72514C8.17383 8.35405 7.61719 8.1685 6.93359 8.1685C6.34115 8.1685 5.82357 8.3215 5.38086 8.62749C4.93815 8.92697 4.66471 9.31108 4.56055 9.77983C4.54753 9.83842 4.53776 9.89376 4.53125 9.94585C4.52474 9.99793 4.52148 10.05 4.52148 10.1021C4.52148 10.2779 4.57031 10.4211 4.66797 10.5318C4.77214 10.6425 4.90885 10.6978 5.07812 10.6978C5.35156 10.6978 5.54036 10.5448 5.64453 10.2388C5.74219 9.93282 5.89518 9.7017 6.10352 9.54545C6.31185 9.38269 6.57878 9.30131 6.9043 9.30131C7.24935 9.30131 7.52604 9.39572 7.73438 9.58452C7.94922 9.76681 8.05664 10.0077 8.05664 10.3072C8.05664 10.6197 7.94922 10.8801 7.73438 11.0884C7.51953 11.2902 7.23958 11.3912 6.89453 11.3912H6.47461C6.31185 11.3912 6.18164 11.4432 6.08398 11.5474C5.98633 11.6451 5.9375 11.7818 5.9375 11.9576C5.9375 12.1203 5.98633 12.257 6.08398 12.3677C6.18815 12.4719 6.31836 12.524 6.47461 12.524H6.93359C7.35026 12.524 7.67904 12.6281 7.91992 12.8365C8.16081 13.0448 8.28125 13.3215 8.28125 13.6665C8.28125 13.9986 8.14779 14.2785 7.88086 14.5064C7.62044 14.7277 7.28841 14.8384 6.88477 14.8384C6.53971 14.8384 6.25 14.757 6.01562 14.5943C5.78125 14.4315 5.60872 14.1971 5.49805 13.8912C5.43945 13.7284 5.36458 13.6112 5.27344 13.5396C5.18229 13.468 5.07161 13.4322 4.94141 13.4322C4.77865 13.4322 4.64193 13.4875 4.53125 13.5982C4.42708 13.7089 4.375 13.8521 4.375 14.0279C4.375 14.08 4.37826 14.1353 4.38477 14.1939C4.39128 14.246 4.40104 14.2981 4.41406 14.3501C4.51823 14.8059 4.80469 15.19 5.27344 15.5025C5.74219 15.8085 6.27604 15.9615 6.875 15.9615ZM13.1738 14.7798C12.7441 14.7798 12.3991 14.5389 12.1387 14.0572C11.8848 13.5754 11.7578 12.9179 11.7578 12.0845C11.7578 11.2317 11.8848 10.5643 12.1387 10.0826C12.3926 9.59428 12.7376 9.35014 13.1738 9.35014C13.61 9.35014 13.9518 9.59103 14.1992 10.0728C14.4531 10.5546 14.5801 11.2251 14.5801 12.0845C14.5801 12.9179 14.4531 13.5754 14.1992 14.0572C13.9453 14.5389 13.6035 14.7798 13.1738 14.7798ZM9.96094 21.8111C11.3216 21.8111 12.6009 21.5507 13.7988 21.0298C15.0033 20.509 16.0645 19.7928 16.9824 18.8814C17.9004 17.9634 18.6198 16.9022 19.1406 15.6978C19.6615 14.4934 19.9219 13.2108 19.9219 11.8501C19.9219 10.7564 19.7493 9.71147 19.4043 8.71538C19.0592 7.71277 18.5742 6.7948 17.9492 5.96147C17.3242 5.12163 16.5918 4.39897 15.752 3.7935C15.5371 3.63074 15.3125 3.57215 15.0781 3.61772C14.8438 3.65678 14.6647 3.77397 14.541 3.96928C14.4173 4.17111 14.3815 4.37944 14.4336 4.59428C14.4922 4.80913 14.6224 4.99142 14.8242 5.14116C15.5143 5.63595 16.1165 6.2284 16.6309 6.9185C17.1452 7.60861 17.5456 8.37358 17.832 9.21342C18.1185 10.0468 18.2617 10.9257 18.2617 11.8501C18.2617 13.0025 18.0469 14.0832 17.6172 15.0923C17.194 16.0949 16.6016 16.9771 15.8398 17.7388C15.0846 18.494 14.2025 19.0832 13.1934 19.5064C12.1908 19.9361 11.1133 20.1509 9.96094 20.1509C8.80859 20.1509 7.73112 19.9361 6.72852 19.5064C5.72591 19.0832 4.84375 18.494 4.08203 17.7388C3.32682 16.9771 2.73438 16.0949 2.30469 15.0923C1.88151 14.0832 1.66992 13.0025 1.66992 11.8501C1.66992 10.7043 1.88151 9.63009 2.30469 8.62749C2.73438 7.61837 3.32682 6.73621 4.08203 5.981C4.83724 5.21928 5.71615 4.62358 6.71875 4.19389C7.72135 3.7642 8.79883 3.54936 9.95117 3.54936V1.8892C8.59049 1.8892 7.30794 2.14962 6.10352 2.67045C4.9056 3.19129 3.84766 3.91069 2.92969 4.82866C2.01823 5.74663 1.30208 6.80782 0.78125 8.01225C0.260417 9.21017 0 10.4895 0 11.8501C0 13.2108 0.260417 14.4934 0.78125 15.6978C1.30208 16.9022 2.02148 17.9634 2.93945 18.8814C3.85742 19.7928 4.91536 20.509 6.11328 21.0298C7.31771 21.5507 8.60026 21.8111 9.96094 21.8111ZM8.07617 0.697798V5.17045C8.07617 5.51551 8.17708 5.73361 8.37891 5.82475C8.58724 5.90939 8.82487 5.8573 9.0918 5.6685L12.207 3.481C12.4284 3.33126 12.5391 3.15223 12.5391 2.94389C12.5456 2.72905 12.4349 2.5435 12.207 2.38725L9.10156 0.199751C8.82812 0.00443892 8.58724 -0.0476444 8.37891 0.0435014C8.17708 0.128137 8.07617 0.346236 8.07617 0.697798Z"})}))},18468:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsx)(l.A,(0,n._)((0,a._)({strokeLinecap:"round",strokeLinejoin:"round"},e),{name:"LucideStarIcon",svgParams:{height:24,width:24},children:(0,i.jsx)("polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"})}))},64955:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsx)(l.A,(0,n._)((0,a._)({},e),{name:"PauseIconRounded",svgParams:{height:16,width:16},stroke:"none",children:(0,i.jsx)("path",{d:"M3.43396 16C2.47491 16 1.99064 15.5157 2.00014 14.5757V1.42433C2.00014 0.484273 2.48441 0 3.43396 0L5.7034 0C6.65296 0.00949555 7.13723 0.465282 7.13723 1.42433V14.5757C7.13723 15.5157 6.65296 16 5.7034 16H3.43396ZM10.831 16C9.87195 16 9.40666 15.5157 9.40666 14.5757V1.42433C9.40666 0.484273 9.89094 0 10.831 0L13.1004 0C14.05 0 14.5343 0.465282 14.5343 1.42433V14.5757C14.5343 15.5157 14.05 16 13.1004 16H10.831Z"})}))},95931:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{fill:t="white"}=e,r=(0,i._)(e,["fill"]);return(0,l.jsxs)(o.A,(0,n._)((0,a._)({},r),{name:"PodcastEmbedPauseIcon",svgParams:{width:13,height:16,viewBox:"0 0 13 16",stroke:"none",fill:t},children:[(0,l.jsx)("path",{d:"M4 0H1C0.447715 0 0 0.447715 0 1V15C0 15.5523 0.447715 16 1 16H4C4.55228 16 5 15.5523 5 15V1C5 0.447715 4.55228 0 4 0Z"}),(0,l.jsx)("path",{d:"M11.9998 0H8.99976C8.44747 0 7.99976 0.447715 7.99976 1V15C7.99976 15.5523 8.44747 16 8.99976 16H11.9998C12.552 16 12.9998 15.5523 12.9998 15V1C12.9998 0.447715 12.552 0 11.9998 0Z"})]}))}},46129:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{fill:t="white"}=e,r=(0,i._)(e,["fill"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},r),{name:"PodcastEmbedPlayIcon",svgParams:{width:14,height:16,viewBox:"0 0 14 16",stroke:"none",fill:t},children:(0,l.jsx)("path",{d:"M12.8563 6.71384C13.8273 7.29645 13.8273 8.70372 12.8563 9.28632L2.27174 15.637C1.27196 16.2369 1.11076e-07 15.5167 1.62041e-07 14.3508L7.17238e-07 1.64937C7.68203e-07 0.483426 1.27196 -0.236744 2.27174 0.363129L12.8563 6.71384Z"})}))}},63892:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=24,fill:r="var(--color-fg-primary)"}=e,s=(0,i._)(e,["size","fill"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},s),{name:"HackerNewsIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,fill:r,stroke:"none",children:(0,l.jsx)("path",{stroke:"none",fillRule:"evenodd",clipRule:"evenodd",d:"M0 2C0 0.895431 0.895431 0 2 0H18C19.1046 0 20 0.895431 20 2V18C20 19.1046 19.1046 20 18 20H2C0.895431 20 0 19.1046 0 18V2ZM9.32607 11.3083L5.8932 4.87747H7.46207L9.4814 8.9472C9.51247 9.01969 9.54871 9.09477 9.59013 9.17243C9.63156 9.2501 9.6678 9.33036 9.69887 9.4132C9.71958 9.44427 9.73511 9.47274 9.74547 9.49863C9.75582 9.52452 9.76618 9.54782 9.77653 9.56853C9.82831 9.67209 9.87491 9.77305 9.91633 9.87143C9.95776 9.96981 9.994 10.0604 10.0251 10.1433C10.1079 9.96722 10.1985 9.77823 10.2969 9.5763C10.3953 9.37437 10.4962 9.16467 10.5998 8.9472L12.6502 4.87747H14.1103L10.6464 11.3859V15.5333H9.32607V11.3083Z"})}))}},3110:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=24,fill:r="var(--color-fg-primary)"}=e,s=(0,i._)(e,["size","fill"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},s),{name:"MailIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,fill:r,children:(0,l.jsx)("path",{stroke:"none",d:"M9.9958 11.0646C10.2693 11.0646 10.5346 10.9569 10.7915 10.7248L19.0717 3.431C18.6241 3.13262 18.1102 3 17.3974 3H2.60257C1.88976 3 1.37587 3.13262 0.920011 3.431L9.20011 10.7248C9.46534 10.9569 9.73057 11.0646 9.9958 11.0646ZM0.215499 15.9465L6.34893 9.82137L0.198922 4.40075C0.107749 4.5748 0 4.99751 0 5.56941V14.7199C0 15.2503 0.0828842 15.6316 0.215499 15.9465ZM2.35391 17.2892H17.646C18.2511 17.2892 18.7235 17.14 19.0385 16.9245L12.731 10.6171L11.5209 11.6945C11.0402 12.1173 10.518 12.3328 9.9958 12.3328C9.48197 12.3328 8.95975 12.1173 8.47905 11.6945L7.26894 10.6171L0.961455 16.9245C1.27642 17.14 1.74057 17.2892 2.35391 17.2892ZM19.7844 15.9465C19.9088 15.6316 20 15.2503 20 14.7199V5.56941C20 4.99751 19.8922 4.5748 19.8011 4.40075L13.651 9.82137L19.7844 15.9465Z"})}))}},36135:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=24,fill:r="var(--color-fg-primary)"}=e,s=(0,i._)(e,["size","fill"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},s),{name:"PinterestIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,fill:r,children:(0,l.jsx)("path",{stroke:"none",d:"M10 0C4.47656 0 0 4.47656 0 10C0 14.2383 2.63672 17.8555 6.35547 19.3125C6.26953 18.5195 6.1875 17.3086 6.39062 16.4453C6.57422 15.6641 7.5625 11.4766 7.5625 11.4766C7.5625 11.4766 7.26172 10.8789 7.26172 9.99219C7.26172 8.60156 8.06641 7.5625 9.07031 7.5625C9.92187 7.5625 10.3359 8.20312 10.3359 8.97266C10.3359 9.83203 9.78906 11.1133 9.50781 12.3008C9.27344 13.2969 10.0078 14.1094 10.9883 14.1094C12.7656 14.1094 14.1328 12.2344 14.1328 9.53125C14.1328 7.13672 12.4141 5.46094 9.95703 5.46094C7.11328 5.46094 5.44141 7.59375 5.44141 9.80078C5.44141 10.6602 5.77344 11.582 6.1875 12.082C6.26953 12.1797 6.28125 12.2695 6.25781 12.3672C6.18359 12.6836 6.01172 13.3633 5.98047 13.5C5.9375 13.6836 5.83594 13.7227 5.64453 13.6328C4.39453 13.0508 3.61328 11.2266 3.61328 9.75781C3.61328 6.60156 5.90625 3.70703 10.2188 3.70703C13.6875 3.70703 16.3828 6.17969 16.3828 9.48438C16.3828 12.9297 14.2109 15.7031 11.1953 15.7031C10.1836 15.7031 9.23047 15.1758 8.90234 14.5547C8.90234 14.5547 8.40234 16.4648 8.28125 16.9336C8.05469 17.8008 7.44531 18.8906 7.03906 19.5547C7.97656 19.8438 8.96875 20 10 20C15.5234 20 20 15.5234 20 10C20 4.47656 15.5234 0 10 0Z"})}))}},23571:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=24,fill:r="var(--color-fg-primary)"}=e,s=(0,i._)(e,["size","fill"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},s),{name:"RedditIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,fill:r,children:(0,l.jsx)("path",{stroke:"none",fillRule:"evenodd",clipRule:"evenodd",d:"M20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10ZM15.2049 8.53825C16.0119 8.53825 16.6669 9.19322 16.6669 10.0002C16.6669 10.5967 16.3043 11.1113 15.8248 11.3453C15.8482 11.4856 15.8599 11.626 15.8599 11.778C15.8599 14.0236 13.2517 15.8365 10.0236 15.8365C6.79553 15.8365 4.18734 14.0236 4.18734 11.778C4.18734 11.626 4.19904 11.4739 4.22243 11.3336C3.70781 11.0997 3.35693 10.5967 3.35693 10.0002C3.35693 9.19322 4.0119 8.53825 4.81892 8.53825C5.20489 8.53825 5.56746 8.70199 5.82477 8.9476C6.83062 8.21076 8.22243 7.75462 9.77799 7.70784L10.5148 4.22246C10.5382 4.15228 10.5733 4.0938 10.6318 4.05871C10.6903 4.02363 10.7604 4.01193 10.8306 4.02363L13.2517 4.53825C13.4154 4.18737 13.7663 3.95345 14.1756 3.95345C14.7487 3.95345 15.2166 4.42129 15.2166 4.99439C15.2166 5.56749 14.7487 6.03532 14.1756 6.03532C13.6142 6.03532 13.1581 5.59088 13.1347 5.04117L10.971 4.58503L10.3043 7.70784C11.8248 7.76632 13.2049 8.23415 14.199 8.9476C14.4563 8.69029 14.8072 8.53825 15.2049 8.53825ZM7.70781 10.0002C7.13471 10.0002 6.66687 10.4681 6.66687 11.0412C6.66687 11.6143 7.13471 12.0821 7.70781 12.0821C8.28091 12.0821 8.74875 11.6143 8.74875 11.0412C8.74875 10.4681 8.28091 10.0002 7.70781 10.0002ZM10.0119 14.5499C10.4096 14.5499 11.7663 14.5032 12.4797 13.7897C12.585 13.6844 12.585 13.5207 12.5031 13.4037C12.3979 13.2985 12.2224 13.2985 12.1172 13.4037C11.661 13.8482 10.7137 14.0119 10.0236 14.0119C9.33354 14.0119 8.37448 13.8482 7.93003 13.4037C7.82477 13.2985 7.64933 13.2985 7.54407 13.4037C7.4388 13.509 7.4388 13.6844 7.54407 13.7897C8.24582 14.4915 9.61424 14.5499 10.0119 14.5499ZM11.2517 11.0412C11.2517 11.6143 11.7195 12.0821 12.2926 12.0821C12.8657 12.0821 13.3335 11.6143 13.3335 11.0412C13.3335 10.4681 12.8657 10.0002 12.2926 10.0002C11.7195 10.0002 11.2517 10.4681 11.2517 11.0412Z"})}))}},30193:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=20,stroke:r="var(--color-fg-primary)",strokeWidth:s=1.5}=e,c=(0,i._)(e,["size","stroke","strokeWidth"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},c),{name:"NoteCommentIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,stroke:r,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M18.7502 11V7.50097C18.7502 4.73917 16.5131 2.50033 13.7513 2.50042L6.25021 2.50044C3.48848 2.5004 1.25017 4.73875 1.2502 7.50048L1.25021 10.9971C1.2502 13.749 3.47395 15.9836 6.22586 15.9971L6.82888 16V19.0182L12.1067 16H13.7502C16.5116 16 18.7502 13.7614 18.7502 11Z"})}))}},95043:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=24,color:r="var(--color-fg-primary)"}=e,s=(0,i._)(e,["size","color"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},s),{name:"NoteQuoteForwardIcon",svgParams:{viewBox:"0 0 24 24"},width:t,height:t,stroke:r,strokeWidth:2,fill:"none",children:(0,l.jsx)("path",{d:"M13.4147 2.09993C10.4072 1.67249 7.2423 2.61548 4.92891 4.92887C1.02366 8.83411 1.02366 15.1658 4.92891 19.071C8.83415 22.9762 15.1658 22.9762 19.071 19.071C21.3844 16.7576 22.3274 13.5927 21.9 10.5852M18.5 2.62126C18.8978 2.22343 19.4374 1.99994 20 1.99994C20.5626 1.99994 21.1021 2.22343 21.5 2.62126C21.8978 3.01908 22.1213 3.55865 22.1213 4.12126C22.1213 4.68387 21.8978 5.22343 21.5 5.62126L13 14.1213L8.99998 15.1213L9.99998 11.1213L18.5 2.62126Z",strokeLinecap:"round","stroke-linejoin":"round"})}))}},46370:function(e,t,r){r.d(t,{A:()=>o});var a=r(69277),n=r(70408),i=r(74848),l=r(97731);let o=e=>(0,i.jsx)(l.A,(0,n._)((0,a._)({},e),{name:"NoteReplyIcon",svgParams:{height:24,width:24,stroke:e.stroke,strokeWidth:e.strokeWidth},children:(0,i.jsx)("path",{d:"M22 11.4445C22.0038 12.911 21.6612 14.3577 21 15.6667C20.216 17.2353 19.0108 18.5546 17.5194 19.477C16.0279 20.3993 14.3091 20.8882 12.5555 20.8889C11.089 20.8927 9.64234 20.5501 8.33332 19.8889L2 22L4.11111 15.6667C3.44992 14.3577 3.10729 12.911 3.11111 11.4445C3.11179 9.69086 3.60068 7.97208 4.52302 6.48064C5.44536 4.98919 6.76472 3.78399 8.33332 3.00003C9.64234 2.33884 11.089 1.99621 12.5555 2.00003H13.1111C15.427 2.1278 17.6145 3.10532 19.2546 4.74543C20.8947 6.38553 21.8722 8.57297 22 10.8889V11.4445Z","stroke-linecap":"round","stroke-linejoin":"round"})}))},97044:function(e,t,r){r.d(t,{A:()=>i});var a=r(74848),n=r(97731);let i=e=>{let{size:t=32,color:r="var(--color-fg-secondary)",strokeWidth:i=1.5,className:l}=e;return(0,a.jsxs)(n.A,{name:"NoteReplyLockedIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,strokeWidth:i,strokeLinecap:"round",strokeLinejoin:"round",className:l,children:[(0,a.jsx)("path",{d:"M18.7499 10.6907C18.7499 13.4521 16.5113 15.6907 13.7499 15.6907H12.1064L6.82856 18.7089V15.6907L6.22554 15.6878C3.47363 15.6743 1.24988 13.4397 1.24989 10.6878L1.24988 7.19122C1.24985 4.42949 3.48816 2.19114 6.24989 2.19118L10.0004 2.19117",stroke:r,strokeWidth:i,fill:"none"}),(0,a.jsx)("path",{d:"M13.5616 9.25692H17.8786C18.5722 9.25692 18.9402 8.87948 18.9402 8.134V4.88323C18.9402 4.13776 18.5722 3.76505 17.8786 3.76505H13.5616C12.868 3.76505 12.5 4.13776 12.5 4.88323V8.134C12.5 8.87948 12.868 9.25692 13.5616 9.25692ZM13.3257 4.12834H14.0758V2.53362C14.0758 1.34466 14.8355 0.712433 15.7177 0.712433C16.6 0.712433 17.3691 1.34466 17.3691 2.53362V4.12834H18.1145V2.63742C18.1145 0.863412 16.9539 0 15.7177 0C14.4863 0 13.3257 0.863412 13.3257 2.63742V4.12834Z",fill:r,stroke:"none"})]})}},68611:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=20,stroke:r="var(--color-fg-primary)",strokeWidth:s=1.5,className:c}=e,d=(0,i._)(e,["size","stroke","strokeWidth","className"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},d),{name:"NoteRestackIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,stroke:r,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",className:c,children:(0,l.jsx)("path",{d:"M2.53001 7.81595C3.49179 4.73911 6.43281 2.5 9.91173 2.5C13.1684 2.5 15.9537 4.46214 17.0852 7.23684L17.6179 8.67647M17.6179 8.67647L18.5002 4.26471M17.6179 8.67647L13.6473 6.91176M17.4995 12.1841C16.5378 15.2609 13.5967 17.5 10.1178 17.5C6.86118 17.5 4.07589 15.5379 2.94432 12.7632L2.41165 11.3235M2.41165 11.3235L1.5293 15.7353M2.41165 11.3235L6.38224 13.0882"})}))}},85059:function(e,t,r){r.d(t,{A:()=>s});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(97731);let s=e=>{var{size:t=20,stroke:r="var(--color-fg-primary)",strokeWidth:s=1.5}=e,c=(0,i._)(e,["size","stroke","strokeWidth"]);return(0,l.jsx)(o.A,(0,n._)((0,a._)({},c),{name:"NoteShareIcon",svgParams:{viewBox:"0 0 20 20"},width:t,height:t,stroke:r,strokeWidth:s,strokeLinecap:"round",strokeLinejoin:"round",children:(0,l.jsx)("path",{d:"M10.2171 2.2793L10.2171 12.9745M10.2171 2.2793L13.333 4.99984M10.2171 2.2793L7.08301 4.99984M2.49967 10.9925L2.49967 14.1592C2.49967 16.011 4.00084 17.5121 5.85261 17.5121L14.9801 17.5121C16.8318 17.5121 18.333 16.011 18.333 14.1592L18.333 10.9925"})}))}},2929:function(e,t,r){r.d(t,{A:()=>i});var a=r(74848),n=r(97731);let i=e=>{let{size:t=24,color:r="var(--color-fg-primary)",className:i}=e;return(0,a.jsx)(n.A,{name:"ActivityTabIcon",svgParams:{viewBox:"0 0 24 24"},stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:t,height:t,fill:"none",className:i,children:(0,a.jsx)("path",{d:"M9.84924 21.9622C11.2032 22.6392 12.7968 22.6392 14.1507 21.9622M9.446 1.90703C8.59467 2.16583 6.63661 3.14927 5.61501 5.01263C4.33801 7.34183 4.70638 10.6565 4.33801 12.0002C3.96965 13.344 3.06102 14.3294 2.42252 15.8822C2.27112 16.2504 2.15563 16.5749 2.06751 16.8662C1.72354 18.0031 2.74693 18.9878 3.93475 18.9878H20.0652C21.2531 18.9878 22.2764 18.0031 21.9325 16.8662C21.8444 16.5749 21.7289 16.2504 21.5775 15.8822C20.939 14.3294 20.0303 13.344 19.662 12.0002C19.2936 10.6565 19.662 7.34183 18.385 5.01263C17.3634 3.14927 15.4053 2.16583 14.554 1.90703C12.8884 1.40469 11.1116 1.40469 9.446 1.90703Z"})})}},44512:function(e,t,r){r.d(t,{A:()=>i});var a=r(74848),n=r(97731);let i=e=>{let{size:t=24,color:r="var(--color-fg-primary)",className:i}=e;return(0,a.jsx)(n.A,{name:"SearchTabIcon",svgParams:{viewBox:"0 0 24 24"},stroke:r,strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:t,height:t,fill:"none",className:i,children:(0,a.jsx)("path",{d:"M21 21L15.6702 15.6435M15.6702 15.6435C17.1101 14.1968 18 12.2023 18 10C18 5.58172 14.4183 2 10 2C5.58174 2 2.00002 5.58172 2.00002 10C2.00002 14.4183 5.58174 18 10 18C12.216 18 14.2215 17.099 15.6702 15.6435Z"})})}},72880:function(e,t,r){r.d(t,{o:()=>u});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(32485),s=r.n(o),c=r(89490),d=r(39318),g=r(49807),h=r(28660);function u(e){var{src:t,maxWidth:r,imageSizingCss:o,imageProps:u={},alt:f="",className:p,imageRef:m,ignorePicture:b,objectFit:v,radius:y,useRetinaSizing:C,imageIsFixedWidth:x}=e,w=(0,i._)(e,["src","maxWidth","imageSizingCss","imageProps","alt","className","imageRef","ignorePicture","objectFit","radius","useRetinaSizing","imageIsFixedWidth"]);let k=C?[2*r,3*r]:[],j=Math.max(...k,r),_=null;_=o||(x?"".concat(r,"px"):"100vw");let A=e=>(null==u?void 0:u.height)?{height:Math.floor(e/(r/u.height)),aspect:null}:{},L=Array.from(new Set([...d.MYz,r,...k]));L.sort((e,t)=>e-t);let M=L.map(e=>({width:e,src:(0,g.dJ9)(t,e,(0,a._)({},u,A(e)))})).filter(e=>e.width<=j),I=L.map(e=>({width:e,src:(0,g.dJ9)(t,e,(0,n._)((0,a._)({},u,A(e)),{format:"webp"}))})).filter(e=>e.width<=j);return(0,l.jsxs)("picture",{style:b?{display:"contents"}:void 0,children:[I.length>1?(0,l.jsx)("source",{type:"image/webp",srcSet:I.map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "),sizes:_}):(0,l.jsx)("source",{type:"image/webp",srcSet:(0,g.dJ9)(t,r,(0,n._)((0,a._)({},u),{format:"webp"}))}),(0,l.jsx)("img",(0,n._)((0,a._)({className:s()(h.A.img,p,v&&h.A["object-fit-".concat(v)],(0,c.iF)({radius:y})),src:(0,g.dJ9)(t,r,u),sizes:_,alt:f,srcSet:M.length>1?M.map(e=>"".concat(e.src," ").concat(e.width,"w")).join(", "):void 0,width:r,height:null==u?void 0:u.height},w),{ref:m}))]})}},88711:function(e,t,r){r.d(t,{v:()=>h});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(32485),s=r.n(o),c=r(96540),d=r(33727);let g={container:"container-KfNFl_"};function h(e){var{children:t,selected:r}=e,o=(0,i._)(e,["children","selected"]);let h=function(){let[e,t]=(0,c.useState)(!1);return(0,c.useEffect)(()=>{t("1"===getComputedStyle(document.documentElement).getPropertyValue("--theme_bg_is_dark").trim())},[]),e}();return(0,l.jsx)(d.Z,(0,n._)((0,a._)({className:s()(g.container,r&&g.selected,h&&"theme-bg-dark"),elevated:!1,radius:"sm"},o),{children:t}))}},56108:function(e,t,r){r.r(t),r.d(t,{HighlightedCodeBlockEditor:()=>k});var a=r(74848),n=r(99595),i=r(96540),l=r(32708),o=r(35369);function s(e){let{editor:t,getPos:r}=e,n=(0,i.useCallback)(()=>{let e=r();void 0!==e&&(t.commands.setNodeSelection(e),t.commands.deleteSelection())},[t,r]);return(0,a.jsx)(o.K0,{priority:"quaternary",onClick:n,size:"sm",children:(0,a.jsx)(l.A,{size:16})})}var c=r(84605),d=r(75177),g=r(61084),h=r(90883);let u="auto";function f(e){var t,r;let{value:n,onChange:i,isAutoDetectActive:l,detectedLanguage:o}=e,{iString:s}=(0,c.GO)(),f=s("Auto-detect");return(0,a.jsxs)(g.eB,{label:l?o&&"plaintext"!==o&&(null==(r=h.F.find(e=>e.value===o))?void 0:r.label)||f:(null==(t=h.F.find(e=>e.value===n))?void 0:t.label)||"Plain Text",size:"sm",priority:"tertiary",children:[(0,a.jsx)(g.Jm,{onClick:()=>i(u),selected:l,children:f},u),(0,a.jsx)(d.N,{}),h.F.map(e=>(0,a.jsx)(g.Jm,{onClick:()=>i(e.value),selected:!l&&n===e.value,children:e.label},e.value))]})}var p=r(76977);function m(e){let{language:t,onLanguageChange:r,editor:n,getPos:l,isAutoDetectActive:o,detectedLanguage:c}=e,d=(0,i.useCallback)(()=>{let e=l();void 0!==e&&n.chain().setNodeSelection(e).focus().run()},[n,l]);return(0,a.jsx)(p.fI,{contentEditable:!1,padding:8,userSelect:"none",justifyContent:"end",alignItems:"center",borderBottom:"detail",onClick:d,cursor:"grab",children:(0,a.jsxs)(p.fI,{gap:4,onClick:e=>e.stopPropagation(),children:[(0,a.jsx)(f,{value:t,onChange:r,isAutoDetectActive:o,detectedLanguage:c}),(0,a.jsx)(s,{editor:n,getPos:l})]})})}var b=r(88711),v=r(74038),y=r(38221),C=r.n(y);let x=[{language:"php",patterns:[/<\?php/],highConfidence:!0},{language:"dockerfile",patterns:[/^FROM\s+[\w./:@-]+/m,/^(RUN|CMD|ENTRYPOINT|COPY|ADD|WORKDIR|ENV|EXPOSE)\s/m],highConfidence:!0},{language:"xml",patterns:[/<\?xml\s+version/,/<\/?\w+:\w+[\s>]/],highConfidence:!0},{language:"bash",patterns:[/^#!.*\b(bash|sh|zsh)\b/m,/\b(then|fi|elif|esac|done)\b/,/\$\{?\w+\}?/,/\[\[\s.*\s\]\]/]},{language:"shell",patterns:[/^#!.*\b(bash|sh|zsh)\b/m,/\b(then|fi|elif|esac|done)\b/,/\$\(\s*\w+/]},{language:"rust",patterns:[/\bfn\s+\w+\s*[<(]/,/\blet\s+mut\b/,/\bimpl\s+(<.*>)?\s*\w+/,/\b(pub\s+)?(struct|enum|trait)\s+\w+/,/->.*\{/,/::new\(\)/,/\bmatch\s+\w+\s*\{/]},{language:"go",patterns:[/^package\s+\w+/m,/\bfunc\s+(\(\w+\s+\*?\w+\)\s+)?\w+\s*\(/,/\w+\s*:=/,/\btype\s+\w+\s+(struct|interface)\s*\{/,/\bgo\s+\w+\(/,/\bdefer\s+/]},{language:"python",patterns:[/^(import|from)\s+\w+/m,/\bdef\s+\w+\s*\([^)]*\)\s*(->.*)?:/,/^\s*class\s+\w+.*:/m,/^\s*@\w+/m,/\bself\./,/\bprint\s*\(/,/:\s*$/m]},{language:"typescript",patterns:[/:\s*(string|number|boolean|void|any|never|unknown)\b/,/\binterface\s+\w+/,/\btype\s+\w+\s*=/,/<[A-Z]\w*>/,/\bas\s+(string|number|boolean|any|const)\b/,/\w+\?\s*:/,/\bReadonly<|Partial<|Record]*\/>/,RegExp("<[A-Z]\\w+[^>]*>.*<\\/[A-Z]\\w+>","s")]},{language:"jsx",patterns:[/<[A-Z]\w+[^>]*\/>/,RegExp("<[A-Z]\\w+[^>]*>.*<\\/[A-Z]\\w+>","s"),/\bReact\./,/\buseState\s*\(/,/\buseEffect\s*\(/]},{language:"javascript",patterns:[/\bfunction\s+\w+\s*\(/,/\b(const|let|var)\s+\w+\s*=/,/=>\s*[{(]/,/\bclass\s+\w+(\s+extends\s+\w+)?\s*\{/,/\bmodule\.exports\b/,/\brequire\s*\(/,/\bexport\s+(default\s+)?(function|class|const)/]},{language:"html",patterns:[//i,/]/i,/<\/?(head|body|div|span|p|a|script|style)[\s>]/i,/]?\s*$/m,/^\s*-\s+\w+:/m]},{language:"toml",patterns:[/^\s*\[\w+\]\s*$/m,/^\s*\w+\s*=\s*["'\d[]/m]},{language:"sql",patterns:[/\b(SELECT|INSERT\s+INTO|UPDATE|DELETE\s+FROM|CREATE\s+TABLE|ALTER\s+TABLE)\b/i,/\bFROM\s+\w+\s+(WHERE|JOIN|ORDER\s+BY)/i]},{language:"graphql",patterns:[/\b(type|query|mutation|fragment|subscription)\s+\w+/,/\{\s*\w+\s*[({]/]},{language:"markdown",patterns:[/^#{1,6}\s+\w+/m,/\[.+\]\(.+\)/,/^\s*[-*+]\s+\w+/m,/```\w*\n/]},{language:"java",patterns:[/\bpublic\s+(static\s+)?class\s+\w+/,/\bpublic\s+static\s+void\s+main\s*\(/,/\bpackage\s+[\w.]+;/,/\bimport\s+[\w.]+;/,/@Override\b/]},{language:"csharp",patterns:[/\bnamespace\s+[\w.]+/,/\bpublic\s+(partial\s+)?class\s+\w+/,/\busing\s+[\w.]+;/,/\basync\s+Task/m,/\bint\s+main\s*\(/,/\bprintf\s*\(/,/\bmalloc\s*\(/]},{language:"cpp",patterns:[/^#include\s*<[\w.]+>/m,/\bstd::/,/\bcout\s*<|{)/,/\b(let|var)\s+\w+:\s*\w+/,/\bguard\s+let\b/,/\bif\s+let\b/,/\bstruct\s+\w+:\s*\w+/]},{language:"kotlin",patterns:[/\bfun\s+\w+\s*\(/,/\b(val|var)\s+\w+:\s*\w+/,/\bdata\s+class\b/,/\bobject\s+\w+/,/\bcompanion\s+object\b/]},{language:"scala",patterns:[/\bdef\s+\w+\s*[[(]/,/\bcase\s+class\b/,/\bobject\s+\w+/,/\btrait\s+\w+/,/=>\s*\{/]},{language:"r",patterns:[/<-\s*/,/\bc\s*\(/,/\blibrary\s*\(/,/\bfunction\s*\(/,/\bdata\.frame\s*\(/]}];var w=r(97884);function k(e){let{node:t,updateAttributes:r,selected:l,editor:o,getPos:s}=e,c=t.attrs.language||"plaintext",d=(0,i.useCallback)(e=>r({language:e}),[r]),{isAutoDetectActive:g,detectedLanguage:h,effectiveLanguage:u,handleLanguageSelect:f}=function(e){let{content:t,nodeLanguage:r,onLanguageChange:a}=e,[n,l]=(0,i.useState)("plaintext"===r),[o,s]=(0,i.useState)(null),[c,d]=(0,i.useState)(!1),g=(0,i.useRef)(t),h=n?o||"plaintext":r,u=(0,i.useCallback)((e,t)=>{let r=function(e){let t=e.trim();if(!t)return"plaintext";let r={};for(let{language:e,patterns:a,highConfidence:n}of x){let i=0;for(let e of a)e.test(t)&&i++;if(i>0){if(n&&i>=1)return e;r[e]=(r[e]||0)+i}}let a=Object.entries(r);if(0===a.length)return null;a.sort((e,t)=>t[1]-e[1]);let n=a[0];if(!n)return null;let[i,l]=n;return l<2?null:"javascript"===i&&r.typescript&&r.typescript>=2?"typescript":i}(e.slice(0,500));s(r),r&&(d(!0),r!==t&&a(r))},[a]),f=(0,i.useMemo)(()=>C()(u,300),[u]);return(0,i.useEffect)(()=>()=>{f.cancel()},[f]),(0,i.useEffect)(()=>{if(!n)return;let e=g.current;if(g.current=t,t.length<20){c&&(d(!1),s(null));return}c&&function(e,t){if(e===t)return!1;let r=Math.abs(t.length-e.length);if(e.length>0&&r>.5*e.length)return!0;let a=Math.min(20,e.length,t.length);return!!(a>0)&&e.slice(0,a)!==t.slice(0,a)}(e,t)&&d(!1),c||f(t,r)},[t,r,n,c,f]),{isAutoDetectActive:n,detectedLanguage:o,effectiveLanguage:h,handleLanguageSelect:(0,i.useCallback)(e=>{"auto"===e?(l(!0),d(!1),t.length>=20?u(t,r):s(null)):(l(!1),s(null),d(!1),a(e))},[t,r,a,u])}}({content:t.textContent,nodeLanguage:c,onLanguageChange:d});return(0,i.useEffect)(()=>{u&&"plaintext"!==u&&(0,v.loadLanguage)(u).catch(console.error)},[u]),(0,a.jsx)(n.VR,{"data-drag-handle":"",spellcheck:!1,children:(0,a.jsxs)(b.v,{selected:l,padding:0,children:[(0,a.jsx)(m,{language:u,onLanguageChange:f,editor:o,getPos:s,isAutoDetectActive:g,detectedLanguage:h}),(0,a.jsx)(p.VP,{className:w.A.code,children:(0,a.jsx)(n.$p,{as:"code",className:"language-".concat(u),style:{whiteSpace:"pre"}})})]})})}},74038:function(e,t,r){let a,n;r.r(t),r.d(t,{SUPPORTED_THEMES:()=>w,getHighlighter:()=>b,initHighlighter:()=>x,loadHighlighter:()=>v,loadLanguage:()=>C,loadTheme:()=>y,resetHighlighter:()=>m});var i=r(88285),l=r(83673),o=r.n(l),s=r(63375),c=r.n(s),d=r(55716),g=r(48541),h=r(74596),u=r(5035);let f=new Set,p=new Set;function m(){a=void 0,n=void 0,f.clear(),p.clear()}function b(){return a}function v(e){if(!a&&!n){let t=e.themes.filter(e=>!!e&&e in d.Z),r=e.languages.filter(e=>!!e&&e in g.el);return n=(0,h.O_)({themes:t,langs:r}).then(e=>{a=e}).catch(e=>{console.error("Failed to load highlighter:",e),n=void 0})}if(n)return n}async function y(e){return!(!a||a.getLoadedThemes().includes(e)||p.has(e))&&e in d.Z&&(p.add(e),await a.loadTheme(e),p.delete(e),!0)}async function C(e){return"plaintext"!==e&&e in g.el&&!(!a||a.getLoadedLanguages().includes(e)||f.has(e))&&(f.add(e),await a.loadLanguage(e),f.delete(e),!0)}async function x(e){let{doc:t,defaultTheme:r,defaultLanguage:n,themeModes:l}=e,s=(0,i.xe)(t,e=>e.type.name===u._1),d=c()(o()([...s.map(e=>e.node.attrs.language),n])),g=[r];if(l&&(l.light&&!g.includes(l.light)&&g.push(l.light),l.dark&&!g.includes(l.dark)&&g.push(l.dark)),a)await Promise.all([...g.map(e=>y(e)),...d.map(e=>!!e&&C(e))]);else{let e=v({languages:d,themes:g});await e}}let w=[{value:"github-dark-default",label:"Dark"},{value:"github-light-default",label:"Light"}]},84370:function(e,t,r){r.d(t,{Q:()=>i});var a=r(90883);let n={typescriptreact:"tsx",javascriptreact:"jsx",shellscript:"bash",jsonc:"json"};function i(e){var t;if(!e)return;let r=null!=(t=n[e])?t:e;return a.n.has(r)?r:"plaintext"}},50820:function(e,t,r){r.r(t),r.d(t,{CodeBlockPlugin:()=>d});var a=r(88285),n=r(26469),i=r(62095),l=r(74038),o=r(5035);function s(e){return Object.entries(e).map(e=>{let[t,r]=e;return"".concat(t,":").concat(r)}).join(";")}function c(e){let{doc:t,defaultTheme:r,defaultLanguage:n,themes:c}=e,d=[];return(0,a.xe)(t,e=>e.type.name===o._1).forEach(e=>{var t,a;let o=e.pos+1,g=e.node.attrs.language||n,h=e.node.attrs.theme||r,u=(null==(t=e.node.attrs.themes)?void 0:t.light)||(null==c?void 0:c.light),f=(null==(a=e.node.attrs.themes)?void 0:a.dark)||(null==c?void 0:c.dark),p=(0,l.getHighlighter)();if(!p)return;p.getLoadedLanguages().includes(g)||(g="plaintext");let m=e=>p.getLoadedThemes().includes(e)?e:p.getLoadedThemes()[0];for(let t of(c?p.codeToTokens(e.node.textContent,{lang:g,themes:{light:m(u),dark:m(f)}}):p.codeToTokens(e.node.textContent,{lang:g,theme:m(h)})).tokens){for(let e of t){let t=o+e.content.length,r="";r=c?s(e.htmlStyle||{}):s({color:e.color||"inherit"});let a=i.NZ.inline(o,t,{style:r});d.push(a),o=t}o+=1}}),i.zF.create(t,d)}function d(e){let{defaultLanguage:t,defaultTheme:r,themes:s}=e,d=new n.k_({key:new n.hs("codeBlockHighlighter"),view:e=>new class{update(){this.checkUndecoratedBlocks()}destroy(){}async initDecorations(){let a=e.state.doc;await (0,l.initHighlighter)({doc:a,defaultLanguage:t,defaultTheme:r,themeModes:s});let n=e.state.tr.setMeta("codeBlockPluginForceDecoration",!0);e.dispatch(n)}async checkUndecoratedBlocks(){let t=(0,a.xe)(e.state.doc,e=>e.type.name===o._1);if((await Promise.all(t.flatMap(e=>(e=>{let t=[(0,l.loadLanguage)(e.node.attrs.language)];if(s){var r,a;t.push((0,l.loadTheme)((null==(r=e.node.attrs.themes)?void 0:r.light)||s.light)),t.push((0,l.loadTheme)((null==(a=e.node.attrs.themes)?void 0:a.dark)||s.dark))}else t.push((0,l.loadTheme)(e.node.attrs.theme));return t})(e)))).includes(!0)){let t=e.state.tr.setMeta("codeBlockPluginForceDecoration",!0);e.dispatch(t)}}constructor(){this.initDecorations()}},state:{init:(e,a)=>{let{doc:n}=a;return c({doc:n,defaultLanguage:t,defaultTheme:r,themes:s})},apply:(e,n,i,l)=>{let d=i.selection.$head.parent.type.name,g=l.selection.$head.parent.type.name,h=(0,a.xe)(i.doc,e=>e.type.name===o._1),u=(0,a.xe)(l.doc,e=>e.type.name===o._1),f=e.docChanged&&([d,g].includes(o._1)||u.length!==h.length||e.steps.some(e=>{let{from:t,to:r}=e;return void 0!==t&&void 0!==r&&h.some(e=>e.pos>=t&&e.pos+e.node.nodeSize<=r)}));return e.getMeta("codeBlockPluginForceDecoration")||f?c({doc:e.doc,defaultLanguage:t,defaultTheme:r,themes:s}):n.map(e.mapping,e.doc)}},props:{decorations(e){var t;return null!=(t=d.getState(e))?t:i.zF.empty}}});return d}},51203:function(e,t,r){r.d(t,{F:()=>h});var a=r(74848),n=r(32485),i=r.n(n),l=r(48697),o=r(89490),s=r(35369),c=r(76977),d=r(63136);let g={alert:"alert-qpA4WP",description:"description-qi_X6V",icon:"icon-wk6sn4",dismiss:"dismiss-IKyJAP",theme_default:"theme_default-HMCu2W",themeDefault:"theme_default-HMCu2W",theme_error:"theme_error-d_EgBh",themeError:"theme_error-d_EgBh",theme_success:"theme_success-ar7Bep",themeSuccess:"theme_success-ar7Bep",theme_warn:"theme_warn-TZXJyb",themeWarn:"theme_warn-TZXJyb"},h=e=>{let{title:t,description:r,Icon:n,onClick:i,onDismiss:l,theme:o="default",flex:s="auto"}=e;return(0,a.jsxs)(v,{theme:o,flex:s,onClick:i,children:[n&&(0,a.jsx)(u,{Icon:n}),(0,a.jsxs)(y,{children:[t&&(0,a.jsx)(f,{theme:o,children:t}),r&&(0,a.jsx)(p,{theme:o,children:r})]}),l&&(0,a.jsx)(m,{onClick:l})]})},u=e=>{let{Icon:t}=e;return(0,a.jsx)(b,{children:(0,a.jsx)(t,{size:18,className:g.icon})})},f=e=>{let{children:t,theme:r}=e;return(0,a.jsx)(d.EY.B4,{weight:"medium",color:"default"===r?"primary":r,className:g.title,children:t})},p=e=>{let{children:t,theme:r}=e;return(0,a.jsx)(d.EY.B4,{weight:"regular",color:"default"===r?"secondary":r,className:g.description,children:t})},m=e=>{let{onClick:t}=e;return(0,a.jsx)(b,{children:(0,a.jsx)(s.K0,{priority:"quaternary",onClick:e=>{e.stopPropagation(),t()},size:"xs",className:g.dismiss,children:(0,a.jsx)(l.A,{size:18})})})},b=(0,o.I4)({display:"flex",alignItems:"center",justifyContent:"center",width:20,height:20}),v=e=>{let{theme:t,children:r,flex:n,onClick:l}=e;return(0,a.jsx)(c.fI,{flex:n,gap:12,paddingX:16,paddingY:12,radius:"sm",className:i()(g.alert,g["theme_".concat(t)]),onClick:l,pressable:l?"lg":void 0,cursor:l?"pointer":void 0,children:r})},y=(0,o.I4)({display:"flex",direction:"column",flex:"grow",alignItems:"start"})},45064:function(e,t,r){r.d(t,{c:()=>c});var a=r(74848),n=r(45773),i=r(35404),l=r(9979),o=r(91609),s=r(48625);function c(e){let{value:t,confirmationText:r,testId:c}=e,{handleCopyLink:d,justCopied:g}=(0,l._m)(r);return(0,a.jsx)(o.Y,{readOnly:!0,value:t,button:(0,a.jsx)(s.f,{priority:"tertiary",pressed:g,onClick:()=>{d({shareUrl:t})},children:e=>{let{pressed:t}=e;return t?(0,a.jsx)(n.A,{size:16}):(0,a.jsx)(i.A,{size:16})}}),onClick:e=>{e.currentTarget.select()},"data-testid":c})}},18540:function(e,t,r){r.d(t,{c:()=>f,v:()=>p});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(38409),s=r(32485),c=r.n(s),d=r(84605),g=r(89490),h=r(76977),u=r(63136);function f(e){var{className:t,decorative:r=!0,orientation:s="horizontal"}=e,d=(0,i._)(e,["className","decorative","orientation"]);return(0,l.jsx)(o.b,{orientation:s,decorative:r,asChild:!0,children:(0,l.jsx)(h.pT,(0,n._)((0,a._)({direction:"horizontal"===s?"row":"column",className:c()("container-jte8en",t)},d),{children:(0,l.jsx)(g.az,{as:"horizontal"===s?"hr":"div",className:"divider-Ti4OTa"})}))})}function p(e){var{text:t,decorative:r=!1}=e,o=(0,i._)(e,["text","decorative"]);let{iString:s}=(0,d.GO)(),c=t||s("OR");return(0,l.jsxs)(h.fI,(0,n._)((0,a._)({gap:12,alignItems:"center"},o),{children:[(0,l.jsx)(f,{flex:"grow",decorative:r}),(0,l.jsx)(u.EY.Meta,{children:c}),(0,l.jsx)(f,{flex:"grow",decorative:r})]}))}},97515:function(e,t,r){r.d(t,{X:()=>m,p:()=>p});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(96540),s=r(89490),c=r(35369),d=r(33727),g=r(76977),h=r(63136);let u={size:20,color:"var(--color-fg-secondary)"},f={size:"sm",priority:"secondary-outline"};function p(e){var t,r,{icon:s,title:d,description:g,button:h,children:p}=e,m=(0,i._)(e,["icon","title","description","button","children"]);return(0,l.jsxs)(b,(0,n._)((0,a._)({},m),{children:[s?(t=s)&&(0,o.isValidElement)(t)?(0,o.cloneElement)(t,(0,a._)({},u,t.props)):t:null,(0,l.jsxs)(C,{children:[(0,l.jsx)(v,{children:d}),g&&(0,l.jsx)(y,{children:g})]}),h?(r=h)&&(0,o.isValidElement)(r)&&r.type===c.$n?(0,o.cloneElement)(r,(0,a._)({},f,r.props)):r:null,p]}))}function m(e){return(0,l.jsx)(d.Z,{padding:20,justifyContent:"center",alignItems:"center",flex:"grow",children:(0,l.jsx)(p,(0,a._)({},e))})}function b(e){var{children:t}=e,r=(0,i._)(e,["children"]);return(0,l.jsx)(g.VP,(0,n._)((0,a._)({flex:"grow",alignItems:"center",justifyContent:"center",gap:12,padding:20,textAlign:"center",sizing:"border-box"},r),{children:t}))}function v(e){let{children:t}=e;return(0,l.jsx)(h.EY.B4,{weight:"medium",color:"primary",children:t})}function y(e){let{children:t}=e;return(0,l.jsx)(h.EY.B4,{color:"secondary",children:t})}let C=(0,s.I4)({display:"flex",direction:"column",gap:2,maxWidth:400})},76977:function(e,t,r){r.d(t,{I1:()=>g,VP:()=>h,Ye:()=>c,fI:()=>d,ov:()=>u,pT:()=>s});var a=r(69277),n=r(70408),i=r(74848),l=r(96540),o=r(89490);let s=(0,l.forwardRef)(function(e,t){return(0,i.jsx)(o.az,(0,n._)((0,a._)({},e),{display:e.display||"flex",ref:t}))}),c=s,d=c,g=(0,l.forwardRef)(function(e,t){return(0,i.jsx)(o.az,(0,n._)((0,a._)({},e),{display:e.display||"flex",direction:"column",ref:t}))}),h=g,u=(0,o.yw)({display:"flex",justifyContent:"center",alignItems:"center"})},20500:function(e,t,r){r.d(t,{EE:()=>s,yn:()=>c});var a=r(69277),n=r(32641),i=r(74848),l=r(96540),o=r(63136);let s=(0,l.forwardRef)((e,t)=>{var{className:r}=e,l=(0,n._)(e,["className"]);return(0,i.jsx)(o.EY.B4,(0,a._)({as:"span",color:"secondary",ref:t,className:r},l))}),c=(0,l.forwardRef)((e,t)=>{var{className:r}=e,l=(0,n._)(e,["className"]);return(0,i.jsx)(o.EY.B4,(0,a._)({as:"span",color:"error",ref:t,className:r},l))})},31825:function(e,t,r){r.d(t,{z:()=>h});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(32485),s=r.n(o),c=r(96540),d=r(35369),g=r(78340);let h=(0,c.forwardRef)(function(e,t){var{className:r,children:o,priority:c="primary",size:h="md",rounded:u,leading:f,trailing:p,loading:m,native:b}=e,v=(0,i._)(e,["className","children","priority","size","rounded","leading","trailing","loading","native"]);return(0,l.jsxs)("a",(0,n._)((0,a._)({"data-native":b?"":void 0},v),{className:s()("pencraft",g.A.buttonBase,(0,d.C3)({className:r,priority:c,size:h,rounded:u,leading:f,trailing:p,loading:m})),ref:t,"aria-busy":m?"true":void 0,children:[m&&(0,l.jsx)(d.az,{priority:c}),f,o,p]}))})},65544:function(e,t,r){r.d(t,{W:()=>N});var a,n=r(74848),i=r(96540),l=r(69277),o=r(70408),s=r(35426),c=r(81768);let d=null!=(a=r(66760).A.lock)?a:"";r(69843);let g=new WeakMap;function h(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e||!(e instanceof HTMLElement))return;let a={};Object.entries(t).forEach(t=>{let[r,n]=t;a[r]=e.style.getPropertyValue(r),e.style.setProperty(r,n)}),r||g.set(e,a)}let u="var(--animation-timing-slow)",f="var(--animation-drawer)";var p=r(33397),m=r(84014),b=r(32641),v=r(32485),y=r.n(v),C=r(76977),x=r(10996),w=r(88206),k=r(11510);let j={panel:"panel-folKVn"},_=(0,i.forwardRef)((e,t)=>{var{className:r,padding:a=w.aM}=e,i=(0,b._)(e,["className","padding"]);let s=(0,k.Iu)();return(0,n.jsx)(x.e$,{children:(0,n.jsx)(C.VP,(0,o._)((0,l._)({className:y()(j.panel,s&&j.mobile,"elevated",r),bg:"elevated",shadow:"md",border:"detail",sizing:"border-box",radius:s?"md":"sm",showFocus:!0,minWidth:200,gap:2,padding:a,ref:t,overflowX:"hidden",overflowY:"auto"},i),{onWheel:e=>{var t;null==(t=i.onWheel)||t.call(i,e),e.stopPropagation()},onTouchMove:e=>{var t;null==(t=i.onTouchMove)||t.call(i,e),e.stopPropagation()}}))})});var A=r(80988),L=r(1732),M=r(55734);function I(e){let{trigger:t,children:r,disabled:a,open:g,close:b,onOpenChange:v}=e,y=(0,i.useRef)(null),C=(0,i.useRef)(null);(0,i.useEffect)(()=>{if(!g)return;let e=document.body,t=document.documentElement,r=window.scrollY,a={top:e.style.top,bottom:e.style.bottom,paddingRight:e.style.paddingRight},n=window.innerWidth-t.clientWidth;return e.style.top="-".concat(r,"px"),n>0&&(e.style.paddingRight="".concat(n,"px")),e.classList.add(d),()=>{e.style.top=a.top,e.style.bottom=a.bottom,e.style.paddingRight=a.paddingRight,e.classList.remove(d),window.scrollTo(0,r)}},[g]);let x=function(e){let{menuRef:t,overlayRef:r,onClose:a}=e,n=(0,i.useRef)({isDragging:!1,didDrag:!1,startTime:new Date,startY:0,startX:0,pointerId:0,menuHeight:0}),l=t.current;(0,i.useEffect)(()=>{l&&(l.style.touchaction="proxy.php?url=none")},[l]);let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];r.current&&h(r.current,{opacity:"".concat(e),transition:t?"transform ".concat(u," ").concat(f,", opacity ").concat(u," ").concat(f):"none"})},s=function(e){let r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.current&&h(t.current,{transform:"translate3d(0, ".concat(e,"px, 0)"),transition:r?"transform ".concat(u," ").concat(f,", opacity ").concat(u," ").concat(f):"none"})},c=()=>{t.current&&(s(0,!0),o(1,!0))};return{props:{onPointerDown:e=>{var r;let a=t.current;if(!a)return;let i=n.current;i.isDragging=!0,i.startTime=new Date,i.startY=e.pageY,i.startX=e.pageX,i.pointerId=e.pointerId,i.menuHeight=null!=(r=a.getBoundingClientRect().height)?r:0},onPointerMove:e=>{let r=n.current,a=t.current,{menuHeight:i}=r;if(!r.isDragging||e.pointerId!==r.pointerId||!a)return;let l=e.pageY-r.startY;if(!(10>Math.abs(l))&&(r.didDrag||((e,t)=>{var r;let a=null==(r=window.getSelection())?void 0:r.toString();if(a&&a.length>0)return!1;for(;e;){if(e.scrollHeight>e.clientHeight&&0!==e.scrollTop&&t)return!1;let r=e.parentNode;if(!r||!(r instanceof HTMLElement))break;e=r}return!0})(a,l>0))){if(e.preventDefault(),r.didDrag||(r.didDrag=!0,a.setAttribute("data-dragging","true"),a.setPointerCapture(e.pointerId)),l<0)return void s(-(8*(Math.log(-l+1)-2)));o(1-l/i),s(l)}},onPointerUp:e=>{var i;let l=n.current,o=t.current;if(!l.isDragging||e.pointerId!==l.pointerId||!o)return;let s=new Date().getTime()-l.startTime.getTime(),d=e.pageY-l.startY,g=Math.abs(d)/s,p=Math.min(null!=(i=o.getBoundingClientRect().height)?i:0,window.innerHeight);(o.releasePointerCapture(e.pointerId),l.didDrag&&e.preventDefault(),l.isDragging=!1,l.didDrag=!1,l.startTime=new Date,l.startY=0,l.startX=0,l.pointerId=0,o.removeAttribute("data-dragging"),d<0)?c():g>.4||Math.abs(d)>=.5*p?(h(t.current,{transition:"transform ".concat(u," ").concat(f,", opacity ").concat(u," ").concat(f)}),h(r.current,{transition:"opacity ".concat(u," ").concat(f)}),a()):c()},onPointerCancel:e=>{let{isDragging:t,pointerId:r}=n.current;t&&r===e.pointerId&&e.preventDefault()}},isDragging:n.current.isDragging}}({menuRef:y,overlayRef:C,onClose:b});return(0,n.jsx)(p.x.Provider,{value:{useMobileBottomSheet:!0,close:b},children:(0,n.jsxs)(c.bL,{open:g,onOpenChange:v,children:[(0,n.jsx)(c.l9,{asChild:!0,disabled:a,children:t}),(0,n.jsx)(c.ZL,{forceMount:!0,children:(0,n.jsx)(s.e.Root,{show:g,children:(0,n.jsxs)(A.k,{children:[(0,n.jsx)(L.B,{children:(0,n.jsx)(L.k,{ref:C,onClose:b,disableCloseOnBackdropClick:!1})}),(0,n.jsx)(M.r,{children:(0,n.jsx)(c.UC,(0,o._)((0,l._)({forceMount:!0,className:"content-wsxbvP",onOpenAutoFocus:e=>e.preventDefault(),onCloseAutoFocus:e=>e.preventDefault()},x.props),{children:(0,n.jsxs)(_,{ref:y,children:[(0,n.jsx)(m.D,{close:b}),r]})}))})]})})})]})})}var T=r(76041),E=r(53168);function B(e){let{trigger:t,children:r,disabled:a,open:i,close:o,onOpenChange:s,side:c,align:d,matchReferenceWidth:g=!1,portal:h=!0}=e,u=(0,l._)({zIndex:E.eQ,maxHeight:"var(--radix-dropdown-menu-content-available-height)","--scale":w.ph,"--shift":"".concat(w.lW,"px")},g?{minWidth:"var(--radix-dropdown-menu-trigger-width)"}:{}),f=(0,n.jsx)(T.UC,{className:"content-JPMpsy",side:c,align:d,sideOffset:w.lW,collisionPadding:w.lW,style:u,onCloseAutoFocus:e=>e.preventDefault(),children:(0,n.jsx)(_,{children:r})});return(0,n.jsx)(p.x.Provider,{value:{useMobileBottomSheet:!1,close:o},children:(0,n.jsxs)(T.bL,{open:i,onOpenChange:s,modal:!1,children:[(0,n.jsx)(T.l9,{asChild:!0,disabled:a,onClick:e=>{e.preventDefault(),e.stopPropagation()},children:t}),h?(0,n.jsx)(T.ZL,{children:f}):f]})})}function N(e){let{trigger:t,children:r,onOpen:a,onClose:l,disabled:o,side:s,align:c,matchReferenceWidth:d=!1,disableMobileBottomSheet:g=!1,portal:h=!0}=e,u=(0,k.Iu)(),[f,p]=(0,i.useState)(!1),m=()=>p(!1),b=e=>{p(e),e?null==a||a():null==l||l()};return u&&!g?(0,n.jsx)(I,{trigger:t,disabled:o,open:f,close:m,onOpenChange:b,children:r}):(0,n.jsx)(B,{trigger:t,disabled:o,open:f,close:m,onOpenChange:b,side:s,align:c,matchReferenceWidth:d,portal:h,children:r})}},84014:function(e,t,r){r.d(t,{D:()=>l});var a=r(74848),n=r(89490),i=r(76977);function l(e){let{close:t}=e;return(0,a.jsx)(i.ov,{paddingTop:4,className:"grabber-thsQdT",children:(0,a.jsx)(n.az,{bg:"tertiary",width:64,height:4,radius:"full",onClick:t,cursor:"inherit"})})}},80988:function(e,t,r){r.d(t,{a:()=>m,k:()=>b});var a=r(74848),n=r(35426),i=r(81768),l=r(96540),o=r(89490),s=r(90460),c=r(10996),d=r(1732),g=r(49689),h=r(55734),u=r(11510),f=r(53168),p=r(57241);function m(e){let{isOpen:t,onOpen:r=()=>void 0,onClose:o=()=>void 0,children:f,width:p=440,className:m,initialFocus:v,fullscreenMobile:y,disableCloseOnBackdropClick:C=!1,testId:x="modal",style:w}=e,k=(0,u.Iu)(),j=(0,l.useRef)(t);(0,s.h)(t),(0,l.useEffect)(()=>{t&&!j.current&&(null==r||r()),j.current=t},[t,r]);let _=k&&!y?h.r:h.p;return(0,a.jsx)(i.bL,{open:t,onOpenChange:e=>{e||null==o||o()},children:(0,a.jsx)(i.ZL,{forceMount:!0,children:(0,a.jsx)(n.e.Root,{show:t,children:(0,a.jsxs)(b,{children:[(0,a.jsx)(d.B,{children:(0,a.jsx)(d.k,{onClose:o,disableCloseOnBackdropClick:C})}),(0,a.jsx)(c.e$,{children:(0,a.jsx)(_,{children:(0,a.jsx)(g.I,{onClose:o,fullscreenMobile:y,width:p,className:m,initialFocus:v,disableCloseOnBackdropClick:C,testId:x,style:w,children:f})},k?"mobile":"desktop")})]})})})})}function b(e){let{children:t}=e;return(0,a.jsx)(o.az,{className:p.A.layout,style:{zIndex:f.Up},children:t})}},1732:function(e,t,r){r.d(t,{B:()=>g,k:()=>d});var a=r(74848),n=r(35426),i=r(81768),l=r(96540);let o="transition-CrwMKT",s="from-UFAeOt",c="to-HQoi62",d=(0,l.forwardRef)((e,t)=>{let{onClose:r,disableCloseOnBackdropClick:n}=e;return(0,a.jsx)(i.hJ,{forceMount:!0,className:"backdrop-IqiELY",ref:t,"data-modal-role":"backdrop",onClick:()=>{n||r()}})});function g(e){let{children:t}=e;return(0,a.jsx)(n.e.Child,{enter:o,enterFrom:s,enterTo:c,leave:o,leaveFrom:c,leaveTo:s,children:t})}},55734:function(e,t,r){r.d(t,{r:()=>u,p:()=>h});var a=r(74848),n=r(35426),i=r(32485),l=r.n(i),o=r(96540);let s="transition-vApOKl",c="mobile-v3F3YQ",d="from-yIK2iV",g="to-tgOjA4",h=e=>{let{children:t}=e;return(0,a.jsx)(n.e.Child,{as:o.Fragment,enter:s,enterFrom:d,enterTo:g,leave:s,leaveFrom:g,leaveTo:d,children:t})},u=e=>{let{children:t}=e;return(0,a.jsx)(n.e.Child,{as:o.Fragment,enter:l()(s,c),enterFrom:l()(d,c),enterTo:l()(g,c),leave:l()(s,c),leaveFrom:l()(g,c),leaveTo:l()(d,c),children:t})}},95477:function(e,t,r){r.d(t,{s:()=>h});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(32485),s=r.n(o),c=r(89490),d=r(76977);let g={container:"container-WYWNQ7",enabled:"enabled-FrokEl",checked:"checked-qUvq71",unchecked:"unchecked-YpAQwg",disabled:"disabled-w7hZI3",nub:"nub-XpaYD_",theme_accent:"theme_accent-eoXELK",themeAccent:"theme_accent-eoXELK",theme_success:"theme_success-my5UzI",themeSuccess:"theme_success-my5UzI",theme_error:"theme_error-Uoe9a5",themeError:"theme_error-Uoe9a5",theme_select:"theme_select-TR6faD",themeSelect:"theme_select-TR6faD",theme_highlight:"theme_highlight-sw2S4n",themeHighlight:"theme_highlight-sw2S4n",theme_dark:"theme_dark-m15H85",themeDark:"theme_dark-m15H85",input:"input-b61VGF"},h=e=>{var{checked:t,disabled:r,theme:o="accent",id:h}=e,u=(0,i._)(e,["checked","disabled","theme","id"]);return(0,l.jsxs)(d.pT,{height:20,width:20,position:"relative",radius:"full",sizing:"border-box",className:s()(g.container,t?g.checked:g.unchecked,r?g.disabled:g.enabled,g["theme_".concat(o)]),justifyContent:"center",alignItems:"center",flex:"auto",children:[(0,l.jsx)("input",(0,n._)((0,a._)({},u),{id:h,checked:t,disabled:r,type:"radio",className:s()(g.input,r?g.disabled:g.enabled,g["theme_".concat(o)])})),(0,l.jsx)(c.az,{as:"span",radius:"full","aria-hidden":"true",className:s()(g.nub,t?g.checked:g.unchecked,r?g.disabled:g.enabled,g["theme_".concat(o)])})]})}},47784:function(e,t,r){r.d(t,{A:()=>u});var a=r(69277),n=r(70408),i=r(32641),l=r(74848),o=r(32485),s=r.n(o),c=r(96540),d=r(11587),g=r(65842),h=r(24311);let u=(0,c.forwardRef)((e,t)=>{var{className:r,error:o=!1,defaultRows:u=4,maxRows:f,value:p,onChange:m}=e,b=(0,i._)(e,["className","error","defaultRows","maxRows","value","onChange"]);let{innerRef:v,combinedRef:y}=(0,g.N)(t),{value:C,handleChange:x}=(0,d.u)({value:p,onChange:m}),w=(0,c.useCallback)(()=>{let e=v.current;if(!e)return;let t=window.getComputedStyle(e),r=parseInt(t.borderTopWidth)+parseInt(t.borderBottomWidth),a=parseInt(t.paddingTop)+parseInt(t.paddingBottom),n=parseInt(t.lineHeight);e.style.height="auto";let i=f?n*f+r+a:1/0,l=n*u+r+a,o=Math.min(Math.max(e.scrollHeight+r,l),i);e.style.height="".concat(o,"px")},[u,f]);return(0,c.useEffect)(()=>{w(),document.fonts&&"loaded"!==document.fonts.status&&document.fonts.ready.then(w)},[w,p]),(0,c.useEffect)(()=>(window.addEventListener("resize",w),()=>window.removeEventListener("resize",w)),[w]),(0,l.jsx)(d.T,(0,n._)((0,a._)({},b),{value:C,onChange:e=>{x(e),w()},rows:u,className:s()(r,h.A.autogrowing),ref:y,error:o}))})},58526:function(e,t,r){r.d(t,{U:()=>c});var a=r(74848),n=r(28001),i=r(32485),l=r.n(i),o=r(11510),s=r(53168);function c(e){let{offset:t}=e,r=(0,o.Iu)();return(0,a.jsx)(n.LM,{className:l()("viewport-_BM4Bg",r&&"mobile-NByTHz"),style:{"--offset":"".concat(t,"px"),zIndex:s.GJ}})}},24914:function(e,t,r){r.d(t,{DT:()=>m,Oo:()=>p,TO:()=>C,gn:()=>x,jO:()=>v,vS:()=>y});var a=r(79785),n=r(74848),i=r(71619),l=r(67535),o=r(30111),s=r(45773),c=r(82519),d=r(84605),g=r(17028),h=r(63136),u=r(97684);function f(){let e=(0,a._)(['Create "','"']);return f=function(){return e},e}let p={placement:"bottom-start",strategy:"fixed",whileElementsMounted:i.ll,middleware:[(0,l.cY)(4),(0,l.UU)(),(0,l.Ej)({padding:0,elementContext:"floating",altBoundary:!1,rootBoundary:"viewport",apply(e){let{elements:t,rects:r}=e;Object.assign(t.floating.style,{minWidth:"".concat(r.reference.width,"px")})}})]},m=200;function b(){return(0,n.jsx)(g.ov,{className:u.A.check,position:"absolute",children:(0,n.jsx)(s.A,{size:20,stroke:"var(--color-link-fg)"})})}function v(e){let{option:t,isDisabled:r,isSelected:a}=e;return(0,n.jsxs)(o.G.Option,{className:u.A.option,value:t.value,disabled:r,children:[(0,n.jsx)(h.EY.B3,{color:r?"secondary":"primary",children:t.label}),a&&(0,n.jsx)(b,{})]},String(t.value))}function y(e){let{inputString:t}=e,{iTemplate:r}=(0,d.GO)();return(0,n.jsx)(o.G.Option,{className:u.A.option,value:{isNew:!0,label:t},children:(0,n.jsx)(h.EY.B3,{color:"secondary",children:r(f(),t)})})}function C(){return(0,n.jsx)(o.G.Button,{className:u.A.button,children:e=>{let{disabled:t}=e;return(0,n.jsx)(c.A,{color:t?"var(--color-fg-tertiary)":void 0})}})}function x(e){return"object"==typeof e&&null!==e&&"isNew"in e&&!0===e.isNew&&"label"in e&&"string"==typeof e.label}},21258:function(e,t,r){r.d(t,{K:()=>v});var a=r(69277),n=r(70408),i=r(74848),l=r(76891),o=r(30111),s=r(32485),c=r.n(s),d=r(96540),g=r(68104),h=r(65915),u=r(24914),f=r(12815),p=r(17028),m=r(97684),b=r(24311);function v(e){let{options:t,value:r,onChange:s,placeholder:v,max:C,disabled:x,onCreate:w,isCreateOptionValid:k}=e,j=null!=C&&r.length>=C,{inputValue:_,trimmedInputValue:A,filteredOptions:L,handleInputChange:M,showCreateOption:I,noResults:T,processSelectionValue:E}=(0,f.B)({options:t,onCreate:w,isCreateOptionValid:k,hasReachedMax:j}),{refs:B,floatingStyles:N,context:S}=(0,l.we)(u.Oo),P=(0,l.iQ)(S),{getReferenceProps:R,getFloatingProps:D}=(0,l.bv)([P]),O=(0,d.useRef)(null),z=new Map(t.map(e=>[e.value,e.label])),H=new Set(r),V=r.length>0,Z=e=>{let t=""===_&&r.length>0;"Backspace"===e.key&&t&&(e.preventDefault(),s(r.slice(0,-1)))},F=async e=>{null!=C&&e.length>C||E(e[e.length-1],t=>{null!==t&&s(e.filter(e=>!(0,u.gn)(e)))})};return(0,i.jsx)(o.G,{multiple:!0,value:r,onChange:F,disabled:x,children:e=>{let{open:t}=e;return(0,i.jsxs)(p.fI,{position:"relative",children:[(0,i.jsxs)(p.fI,(0,n._)((0,a._)({ref:B.setReference},R()),{flex:"grow",alignItems:"center",className:c()(m.A.inputBox,b.A.input,b.A.inputText,V&&m.A.hasChips,x&&m.A.disabled),onClick:()=>{var e;null==(e=O.current)||e.focus()},children:[r.map(e=>(0,i.jsx)(y,{children:(0,i.jsx)(h.v,{onClick:()=>{var t;s(r.filter(t=>e!==t)),null==(t=O.current)||t.focus()},trailing:(0,i.jsx)(g.A,{color:"var(--color-fg-tertiary)"}),disabled:x,children:z.get(e)})},String(e))),(0,i.jsx)(o.G.Input,{ref:O,className:c()("pencraft",m.A.input,x&&m.A.disabled),onChange:M,onKeyDown:Z,value:_,placeholder:V?void 0:v}),(0,i.jsx)(u.TO,{})]})),t&&(0,i.jsxs)(o.G.Options,(0,n._)((0,a._)({ref:B.setFloating,style:N},D()),{static:!0,className:c()(m.A.options,T&&m.A.empty),children:[L.slice(0,u.DT).map(e=>{let t=j&&!H.has(e.value),r=H.has(e.value);return(0,i.jsx)(u.jO,{option:e,isDisabled:t,isSelected:r},String(e.value))}),I&&(0,i.jsx)(u.vS,{inputString:A})]}))]})}})}let y=(0,p.I4)({display:"flex",alignItems:"center",maxHeight:20})},49045:function(e,t,r){r.d(t,{Z:()=>f});var a=r(74848),n=r(76891),i=r(30111),l=r(32485),o=r.n(l),s=r(24914),c=r(12815),d=r(17028),g=r(65842),h=r(97684),u=r(24311);function f(e){let{options:t,value:r,onChange:l,placeholder:f,disabled:p,onCreate:m,isCreateOptionValid:b}=e,{trimmedInputValue:v,filteredOptions:y,handleInputChange:C,showCreateOption:x,noResults:w,processSelectionValue:k,getDisplayValue:j}=(0,c.B)({options:t,onCreate:m,isCreateOptionValid:b}),{refs:_,floatingStyles:A}=(0,n.we)(s.Oo),L=async e=>{k(e,l)};return(0,a.jsx)(i.G,{value:r,onChange:L,disabled:p,nullable:!0,children:e=>{let{open:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d.fI,{ref:_.setReference,flex:"grow",alignItems:"center",position:"relative",children:[(0,a.jsx)(i.G.Input,{className:o()("pencraft",u.A.input,u.A.inputText,u.A.trailing,p&&u.A.disabled),onChange:C,placeholder:f,displayValue:j}),(0,a.jsx)(g.uk,{position:"trailing",pointerEvents:"auto",children:(0,a.jsx)(s.TO,{})})]}),t&&(0,a.jsxs)(i.G.Options,{ref:_.setFloating,style:A,static:!0,className:o()(h.A.options,w&&h.A.empty),children:[y.slice(0,s.DT).map(e=>{let t=e.value===r;return(0,a.jsx)(s.jO,{option:e,isSelected:t},String(e.value))}),x&&(0,a.jsx)(s.vS,{inputString:v})]})]})}})}},12815:function(e,t,r){r.d(t,{B:()=>i});var a=r(96540),n=r(24914);function i(e){var t;let{options:r,onCreate:i,isCreateOptionValid:l,hasReachedMax:o=!1}=e,[s,c]=(0,a.useState)(""),d=s.trim(),g=()=>{c("")},h=d?r.filter(e=>e.label.toLowerCase().includes(d.toLowerCase())):r,u=null==(t=null==l?void 0:l(d,r))||t,f=!r.some(e=>e.label.toLowerCase()===d.toLowerCase()),p=d&&i&&u&&f&&!o,m=0===h.length&&!p,b=async e=>{i&&(await i(e.label),g())};return{inputValue:s,trimmedInputValue:d,handleInputChange:e=>{c(e.currentTarget.value)},filteredOptions:h,getDisplayValue:e=>{if(null===e)return"";let t=r.find(t=>t.value===e);return(null==t?void 0:t.label)||""},showCreateOption:p,noResults:m,processSelectionValue:(e,t)=>{(0,n.gn)(e)?b(e):(t(e),g())}}}},49207:function(e,t,r){r.d(t,{W:()=>h,w:()=>g});var a=r(69277),n=r(70408),i=r(74848),l=r(15871),o=r(43627),s=r(74979),c=r(89490);let d={opacity:.5,zIndex:1e3};function g(e){let{children:t,items:r,onReorder:a}=e,n=(0,l.FR)((0,l.MS)(l.AN,{activationConstraint:{distance:2}}),(0,l.MS)(l.uN,{coordinateGetter:o.JR}));return(0,i.jsx)(l.Mp,{sensors:n,collisionDetection:l.fp,onDragEnd:e=>{let{active:t,over:n}=e;if(!n||t.id===n.id)return;let i=r.findIndex(e=>"item-".concat(e)===t.id),l=r.findIndex(e=>"item-".concat(e)===n.id);a((0,o.be)(r,i,l))},autoScroll:!1,children:(0,i.jsx)(o.gB,{items:r.map(e=>"item-".concat(e)),strategy:o.kL,children:t})})}function h(e){let{item:t,disabled:r,useDragHandle:l=!1,children:g,as:h=c.az}=e,{listeners:u,setNodeRef:f,transform:p,transition:m,isDragging:b}=(0,o.gl)({id:"item-".concat(t),disabled:r});return(0,i.jsx)(h,(0,n._)((0,a._)({ref:e=>f(e),style:(0,a._)({transform:s.Ks.Translate.toString(p),transition:m},b?d:{})},l?{}:(0,a._)({},u)),{children:g({listeners:u})}))}},33397:function(e,t,r){r.d(t,{K:()=>i,x:()=>n});var a=r(96540);let n=(0,a.createContext)({useMobileBottomSheet:!1,close:()=>{}});function i(){return(0,a.useContext)(n)}},95555:function(e,t,r){r.d(t,{r:()=>h});var a=r(74848),n=r(51290),i=r(96540),l=r(84605),o=r(17028),s=r(35369);function c(e){let{tab:t,children:r,value:i}=e;return(0,a.jsx)(n.l9,{asChild:!0,value:i,children:(0,a.jsxs)(s.Nm,{className:"tab-eCtYfd",display:"flex",flex:"grow",alignItems:"center",justifyContent:"center",position:"relative",sizing:"border-box",radius:"xs",resetCss:!0,minHeight:40,paddingTop:2,paddingX:16,gap:6,showFocus:!0,animate:!0,userSelect:"none",children:[t.leading,(0,a.jsx)(d,{children:r}),t.trailing]})})}let d=e=>{let{children:t}=e;return(0,a.jsx)(o.EY.B4,{as:"span",weight:"semibold",size:14,ellipsis:!0,animate:!0,children:t})};var g=r(71518);function h(e){let{tabs:t,value:r,onChange:o,ariaLabel:s}=e,{iString:d}=(0,l.GO)(),h=(0,i.useRef)(null),f=(0,i.useRef)(null);return(0,i.useEffect)(()=>(0,g.x)({parentRef:h,highlightRef:f}),[r,t]),(0,a.jsx)(n.bL,{value:r,onValueChange:e=>{o(e)},className:"root-IyF5Yz",children:(0,a.jsxs)(n.B8,{ref:h,"aria-label":null!=s?s:"".concat(d("Tabs")),className:"list-UVnyqE",children:[t.map(e=>(0,a.jsx)(c,{tab:e,value:e.value,children:e.label},e.value)),(0,a.jsx)(u,{ref:f})]})})}let u=(0,o.I4)({position:"absolute",className:"highlight-rZ7aQJ"})},54754:function(e,t,r){r.d(t,{r:()=>i});var a=r(74848),n=r(96540);let i=e=>{let{children:t,separator:r}=e,i=[],l=n.Children.toArray(t);return l.forEach((e,t)=>{i.push(e),t!==l.length-1&&i.push(r)}),(0,a.jsx)(a.Fragment,{children:i})}},90292:function(e,t,r){r.d(t,{q:()=>i});var a=r(74848);r(45994);var n=r(93576);let i=e=>{let{children:t}=e;return(0,a.jsx)(n.A,{version:3,config:{loader:{load:["ui/safe"]}},children:t})}},83075:function(e,t,r){r.d(t,{h:()=>a});let a=["heading","paragraph"]},90883:function(e,t,r){r.d(t,{F:()=>a,n:()=>n});let a=[{value:"plaintext",label:"Plain Text"},{value:"javascript",label:"JavaScript"},{value:"typescript",label:"TypeScript"},{value:"jsx",label:"JSX"},{value:"tsx",label:"TSX"},{value:"python",label:"Python"},{value:"css",label:"CSS"},{value:"html",label:"HTML"},{value:"json",label:"JSON"},{value:"bash",label:"Bash"},{value:"markdown",label:"Markdown"},{value:"sql",label:"SQL"},{value:"yaml",label:"YAML"},{value:"go",label:"Go"},{value:"rust",label:"Rust"},{value:"java",label:"Java"},{value:"c",label:"C"},{value:"cpp",label:"C++"},{value:"csharp",label:"C#"},{value:"php",label:"PHP"},{value:"ruby",label:"Ruby"},{value:"swift",label:"Swift"},{value:"kotlin",label:"Kotlin"},{value:"scala",label:"Scala"},{value:"r",label:"R"},{value:"shell",label:"Shell"},{value:"graphql",label:"GraphQL"},{value:"dockerfile",label:"Dockerfile"},{value:"xml",label:"XML"},{value:"toml",label:"TOML"}],n=new Set(a.map(e=>e.value))},58643:function(e,t,r){r.d(t,{A:()=>v});var a=r(69277),n=r(70408),i=r(69706),l=r(99851);function o(e){return e.map(e=>new s("color",e))}class s{constructor(e,t){(0,l._)(this,"prefix",void 0),(0,l._)(this,"name",void 0),this.prefix=e,this.name=t}}class c{a(e){return new c(this.name,this.values,this.space,e)}toString(){let e=this.values.join(" ");return 1!==this.alpha&&(e+=" / ".concat(this.alpha)),e}toCommaString(e){if("byte"===e){let e=this.values.map(e=>String(Math.round(255*e))).join(", ");return 1!==this.alpha&&(e+=", ".concat(this.alpha)),e}let t=this.values.map(e=>e.toFixed(3)).join(" ");return 1!==this.alpha&&(t+="/ ".concat(this.alpha)),t}toRgb(){if("rgb"===this.space)return{r:this.values[0],g:this.values[1],b:this.values[2],a:this.alpha};if("p3"===this.space)return{r:Math.round(255*this.values[0]),g:Math.round(255*this.values[1]),b:Math.round(255*this.values[2]),a:this.alpha};throw Error("Cannot (yet) convert ".concat(this.space," to rgb"))}toP3(){if("rgb"===this.space)return{r:this.values[0]/255,g:this.values[1]/255,b:this.values[2]/255,a:this.alpha};if("p3"===this.space)return{r:this.values[0],g:this.values[1],b:this.values[2],a:this.alpha};throw Error("Cannot (yet) convert ".concat(this.space," to p3"))}toTuple(){return[this.values[0],this.values[1],this.values[2],this.alpha,this.space]}baseName(){return"color-".concat(this.name.join("-"))}tupleName(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";return"color-".concat(this.name.join("-"),"-").concat(e)}variableString(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";return"var(--".concat(this.tupleName(e),")")}assignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";if("p3"===e)return"color(display-p3 ".concat(this.variableString(e)).concat(1===this.alpha?"":"/ ".concat(this.alpha),")");if("rgb"===e)return"".concat(e,"(").concat(this.variableString(e)).concat(1===this.alpha?"":", ".concat(this.alpha),")");throw Error("Cannot (yet) convert ".concat(this.space," to ").concat(e))}ref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new d(e,this)}rawRef(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new d(e,this,!0)}constructor(e,t,r="rgb",a=1){(0,l._)(this,"name",void 0),(0,l._)(this,"values",void 0),(0,l._)(this,"space",void 0),(0,l._)(this,"alpha",void 0),this.name=e,this.values=t,this.space=r,this.alpha=a}}class d{ref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new d(e,this)}a(e){return new d(this.name,this.color.a(e),this.raw)}toRgb(){return this.color.toRgb()}baseName(){return"color-".concat(this.name.join("-"))}assignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";if(this.raw)return this.rawAssignment(e);let t=this.color;return t instanceof c?t.assignment(e):"var(--".concat(t.baseName(),")")}rawAssignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb",t=this.color;return t instanceof c?t.variableString(e):"var(--".concat(t.baseName(),")")}constructor(e,t,r=!1){(0,l._)(this,"name",void 0),(0,l._)(this,"color",void 0),(0,l._)(this,"raw",void 0),this.name=e,this.color=t,this.raw=r}}function g(e){return new c([],e.map(e=>e/255),"p3")}class h{default(){return this[500]}a(e){return this.default().a(e)}ref(){return this.default().ref()}*entries(){for(let e=100;e<=900;e+=100)yield[e.toString(),this[e]]}constructor(e,t="rgb"){for(const[r,a]of((0,l._)(this,100,void 0),(0,l._)(this,150,void 0),(0,l._)(this,200,void 0),(0,l._)(this,300,void 0),(0,l._)(this,400,void 0),(0,l._)(this,500,void 0),(0,l._)(this,600,void 0),(0,l._)(this,700,void 0),(0,l._)(this,800,void 0),(0,l._)(this,850,void 0),(0,l._)(this,900,void 0),(0,l._)(this,950,void 0),Object.entries(e)))this[r]=new c([],a,t)}}function u(e){return new h(Object.fromEntries(Object.entries(e).map(e=>{let[t,r]=e;return[t,r.map(e=>e/255)]})),"p3")}function f(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let[r,a]of Object.entries(e)){let e=[...t,r];if(a instanceof c||a instanceof d)a.name=e;else if(a instanceof h)for(let[t,r]of Object.entries(a))r.name=[...e,t];else f(a,e)}}let p={white:g([255,255,255]),black:g([0,0,0]),transparent:g([0,0,0]),red:u({100:[255,224,219],150:[255,218,212],200:[255,189,181],300:[255,154,145],400:[255,119,114],500:[235,87,87],600:[197,62,65],700:[151,44,47],800:[101,31,32],850:[68,22,25],900:[51,20,18],950:[26,10,9]}),gray:u({100:[255,255,255],150:[250,250,250],200:[238,238,238],300:[219,219,219],400:[182,182,182],500:[119,119,119],600:[90,91,91],700:[54,55,55],800:[35,37,37],850:[27,28,29],900:[22,23,24],950:[19,20,20]}),orange:u({100:[255,228,205],150:[255,220,193],200:[255,197,152],300:[255,165,103],400:[255,133,61],500:[255,103,25],600:[215,77,0],700:[165,56,0],800:[110,39,2],850:[82,27,2],900:[56,23,2],950:[28,12,1]}),yellow:u({100:[255,252,211],150:[255,250,196],200:[255,247,162],300:[255,238,113],400:[255,223,65],500:[255,199,0],600:[216,166,0],700:[166,127,0],800:[110,84,0],850:[97,54,4],900:[55,42,8],950:[28,21,4]}),green:u({100:[219,253,232],150:[197,251,218],200:[175,248,205],300:[130,237,178],400:[82,221,152],500:[27,196,125],600:[0,163,99],700:[0,124,74],800:[2,83,49],850:[8,63,38],900:[14,42,27],950:[7,21,14]}),cyan:u({100:[222,241,255],150:[202,234,255],200:[182,225,255],300:[137,206,255],400:[87,185,255],500:[24,160,251],600:[0,131,213],700:[0,99,164],800:[0,66,109],850:[7,45,81],900:[15,34,53],950:[8,17,27]}),blue:u({100:[222,228,255],150:[201,214,255],200:[181,199,255],300:[135,171,255],400:[83,144,255],500:[0,118,255],600:[0,93,217],700:[0,69,167],800:[0,46,111],850:[7,36,82],900:[14,25,54],950:[7,13,27]}),purple:u({100:[237,224,255],150:[225,207,255],200:[213,189,255],300:[185,155,255],400:[155,125,255],500:[123,97,255],600:[94,73,217],700:[69,53,167],800:[48,36,111],850:[38,29,82],900:[28,21,54],950:[14,11,27]})};f({primitive:p});let m={light:{fg:{primary:p.gray[700].ref(),secondary:p.gray[500].ref(),tertiary:p.gray[400].ref()},bg:{primary:p.gray[100].ref(),"primary-hover":p.gray[150].ref(),secondary:p.gray[200].ref(),tertiary:p.gray[300].ref(),quaternary:p.gray[400].ref()},utility:{detail:p.black.a(.1).ref(),black:p.black.ref(),white:p.white.ref(),transparent:p.white.a(0).ref(),modal:p.black.a(.5).ref()},accent:{fg:{red:p.red[500].ref(),orange:p.orange[500].ref(),yellow:p.yellow[500].ref(),green:p.green[500].ref(),cyan:p.cyan[500].ref(),blue:p.blue[500].ref(),purple:p.purple[500].ref(),"red-hover":p.red[600].ref(),"orange-hover":p.orange[600].ref(),"yellow-hover":p.yellow[600].ref(),"green-hover":p.green[600].ref(),"cyan-hover":p.cyan[600].ref(),"blue-hover":p.blue[600].ref(),"purple-hover":p.purple[600].ref()},bg:{red:p.red.a(.2).ref(),orange:p.orange.a(.2).ref(),yellow:p.yellow.a(.2).ref(),green:p.green.a(.2).ref(),cyan:p.cyan.a(.2).ref(),blue:p.blue.a(.2).ref(),purple:p.purple.a(.2).ref(),"red-hover":p.red.a(.3).ref(),"orange-hover":p.orange.a(.3).ref(),"yellow-hover":p.yellow.a(.3).ref(),"green-hover":p.green.a(.3).ref(),"cyan-hover":p.cyan.a(.3).ref(),"blue-hover":p.blue.a(.3).ref(),"purple-hover":p.purple.a(.3).ref()}}},dark:{fg:{primary:p.gray[200].ref(),secondary:p.gray[500].ref(),tertiary:p.gray[600].ref()},bg:{primary:p.gray[900].ref(),"primary-hover":p.gray[850].ref(),secondary:p.gray[800].ref(),tertiary:p.gray[700].ref(),quaternary:p.gray[600].ref()},utility:{detail:p.white.a(.1).ref(),black:p.black.ref(),white:p.white.ref(),transparent:p.black.a(0).ref(),modal:p.black.a(.5).ref()},accent:{fg:{red:p.red[500].ref(),orange:p.orange[500].ref(),yellow:p.yellow[500].ref(),green:p.green[500].ref(),cyan:p.cyan[500].ref(),blue:p.blue[500].ref(),purple:p.purple[500].ref(),"red-hover":p.red[400].ref(),"orange-hover":p.orange[400].ref(),"yellow-hover":p.yellow[400].ref(),"green-hover":p.green[400].ref(),"cyan-hover":p.cyan[400].ref(),"blue-hover":p.blue[400].ref(),"purple-hover":p.purple[400].ref()},bg:{red:p.red.a(.2).ref(),orange:p.orange.a(.2).ref(),yellow:p.yellow.a(.2).ref(),green:p.green.a(.2).ref(),cyan:p.cyan.a(.2).ref(),blue:p.blue.a(.2).ref(),purple:p.purple.a(.2).ref(),"red-hover":p.red.a(.3).ref(),"orange-hover":p.orange.a(.3).ref(),"yellow-hover":p.yellow.a(.3).ref(),"green-hover":p.green.a(.3).ref(),"cyan-hover":p.cyan.a(.3).ref(),"blue-hover":p.blue.a(.3).ref(),"purple-hover":p.purple.a(.3).ref()}}}};f(m);let b={light:(0,n._)((0,a._)({},m.light),{bg:(0,n._)((0,a._)({},m.light.bg),{elevated:{primary:m.light.bg.primary.ref(),secondary:m.light.bg.secondary.ref(),tertiary:m.light.bg.tertiary.ref()},sunken:{primary:m.light.bg["primary-hover"].ref()}})}),dark:(0,n._)((0,a._)({},m.dark),{bg:(0,n._)((0,a._)({},m.dark.bg),{elevated:{primary:m.dark.bg["primary-hover"].ref(),secondary:m.dark.bg.secondary.ref(),tertiary:m.dark.bg.tertiary.ref()},sunken:{primary:p.gray[950].ref()}})})},v={colors:{primitive:p,light:(0,n._)((0,a._)({},b.light),{button:{mono:{fg:p.gray[200].ref(),bg:p.gray[900].ref(),"fg-hover":p.gray[200].ref(),"bg-hover":p.gray[800].ref()},primary:{fg:p.white.ref(),bg:m.light.accent.fg.orange.ref(),"fg-hover":p.white.ref(),"bg-hover":m.light.accent.fg["orange-hover"].ref()},secondary:{fg:m.light.fg.primary.ref(),bg:m.light.bg.secondary.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.bg.tertiary.ref()},"secondary-accent":{fg:m.light.accent.fg.orange.ref(),bg:m.light.accent.bg.orange.ref(),"fg-hover":m.light.accent.fg["orange-hover"].ref(),"bg-hover":m.light.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:m.light.fg.primary.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.bg.secondary.ref()},"quaternary-outline":{fg:m.light.fg.secondary.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.bg.secondary.ref()},"secondary-destructive":{fg:m.light.accent.fg.red.ref(),bg:m.light.accent.bg.red.ref(),"fg-hover":m.light.accent.fg["red-hover"].ref(),"bg-hover":m.light.accent.bg["red-hover"].ref()},tertiary:{fg:m.light.fg.primary.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.bg.secondary.ref()},"tertiary-destructive":{fg:m.light.accent.fg.red.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.accent.fg["red-hover"].ref(),"bg-hover":m.light.accent.bg.red.ref()},"tertiary-accent":{fg:m.light.accent.fg.orange.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.accent.fg["orange-hover"].ref(),"bg-hover":m.light.accent.bg.orange.ref()},quaternary:{fg:m.light.fg.secondary.ref(),bg:m.light.utility.transparent.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:m.light.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":m.light.accent.fg["red-hover"].ref()},disabled:{fg:m.light.fg.tertiary.ref(),bg:m.light.bg.secondary.ref(),"fg-hover":m.light.fg.primary.ref(),"bg-hover":m.light.bg.secondary.ref()}},tooltip:{fg:m.light.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[600].ref()},bg:{primary:m.light.accent.fg.red.ref(),"primary-hover":p.red[600].ref()},utility:{detail:p.red.a(.2).ref(),contrast:p.white.ref()}},success:{fg:{primary:p.green[600].ref()},bg:{primary:m.light.accent.fg.green.ref(),"primary-hover":p.green[600].ref()},utility:{detail:p.green.a(.2).ref(),contrast:p.white.ref()}},warn:{fg:{primary:p.yellow[800].ref()},bg:{primary:m.light.accent.fg.yellow.ref(),"primary-hover":p.yellow[600].ref()},utility:{detail:p.yellow.a(.2).ref(),contrast:p.yellow[800].ref()}},paid:{fg:{primary:p.purple[600].ref()},bg:{primary:m.light.accent.fg.purple.ref(),"primary-hover":p.purple[400].ref()},utility:{detail:p.purple.a(.2).ref(),contrast:p.white.ref()}},substack:{fg:{primary:p.orange[600].ref()},bg:{primary:m.light.accent.fg.orange.ref(),"primary-hover":p.orange[600].ref()},utility:{detail:p.orange.a(.2).ref(),contrast:p.white.ref()}},select:{fg:{primary:p.blue[600].ref()},bg:{primary:m.light.accent.fg.blue.ref(),"primary-hover":p.blue[600].ref()},utility:{detail:p.blue.a(.2).ref(),contrast:p.white.ref()}},highlight:{fg:{primary:p.cyan[600].ref()},bg:{primary:m.light.accent.fg.cyan.ref(),"primary-hover":p.cyan[600].ref()},utility:{detail:p.cyan.a(.2).ref(),contrast:p.white.ref()}}},chat:{incoming:{fg:{primary:m.light.fg.primary.ref(),secondary:m.light.fg.secondary.ref()},bg:{primary:m.light.bg.secondary.ref(),secondary:m.light.bg.tertiary.ref()}},outgoing:{fg:{primary:p.white.ref(),secondary:p.white.a(.7).ref()},bg:{primary:p.blue[500].ref(),secondary:p.blue[600].ref()}}}}),dark:(0,n._)((0,a._)({},b.dark),{button:{mono:{fg:p.gray[700],bg:p.gray[100],"fg-hover":p.gray[700],"bg-hover":p.gray[200]},primary:{fg:p.white,bg:m.dark.accent.fg.orange.ref(),"fg-hover":p.white,"bg-hover":m.dark.accent.fg["orange-hover"].ref()},secondary:{fg:m.dark.fg.primary.ref(),bg:m.dark.bg.secondary.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.bg.tertiary.ref()},"secondary-accent":{fg:m.dark.accent.fg.orange.ref(),bg:m.dark.accent.bg.orange.ref(),"fg-hover":m.dark.accent.fg["orange-hover"].ref(),"bg-hover":m.dark.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:m.dark.fg.primary.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.bg.secondary.ref()},"quaternary-outline":{fg:m.dark.fg.secondary.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.bg.secondary.ref()},"secondary-destructive":{fg:m.dark.accent.fg.red.ref(),bg:m.dark.accent.bg.red.ref(),"fg-hover":m.dark.accent.fg["red-hover"].ref(),"bg-hover":m.dark.accent.bg["red-hover"].ref()},tertiary:{fg:m.dark.fg.primary.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.bg.secondary.ref()},"tertiary-destructive":{fg:m.dark.accent.fg.red.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.accent.fg["red-hover"].ref(),"bg-hover":m.dark.accent.bg.red.ref()},"tertiary-accent":{fg:m.dark.accent.fg.orange.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.accent.fg["orange-hover"].ref(),"bg-hover":m.dark.accent.bg.orange.ref()},quaternary:{fg:m.dark.fg.secondary.ref(),bg:m.dark.utility.transparent.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:m.dark.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":m.dark.accent.fg["red-hover"].ref()},disabled:{fg:m.dark.fg.tertiary.ref(),bg:m.dark.bg.secondary.ref(),"fg-hover":m.dark.fg.primary.ref(),"bg-hover":m.dark.bg.secondary.ref()}},tooltip:{fg:m.dark.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[400]},bg:{primary:m.dark.accent.fg.red.ref(),"primary-hover":p.red[400]},utility:{detail:p.red.a(.2),contrast:p.white}},success:{fg:{primary:p.green[400]},bg:{primary:m.dark.accent.fg.green.ref(),"primary-hover":p.green[400]},utility:{detail:p.green.a(.2),contrast:p.white}},warn:{fg:{primary:p.yellow[400]},bg:{primary:m.dark.accent.fg.yellow.ref(),"primary-hover":p.yellow[400]},utility:{detail:p.yellow.a(.2),contrast:p.yellow[900]}},paid:{fg:{primary:p.purple[400]},bg:{primary:m.dark.accent.fg.purple.ref(),"primary-hover":p.purple[400]},utility:{detail:p.purple.a(.2),contrast:p.white}},substack:{fg:{primary:p.orange[400]},bg:{primary:m.dark.accent.fg.orange.ref(),"primary-hover":p.orange[400]},utility:{detail:p.orange.a(.2),contrast:p.white}},select:{fg:{primary:p.blue},bg:{primary:m.dark.accent.fg.blue.ref(),"primary-hover":p.blue[400]},utility:{detail:p.blue.a(.2),contrast:p.white}},highlight:{fg:{primary:p.cyan[500]},bg:{primary:m.dark.accent.fg.cyan.ref(),"primary-hover":p.cyan[400]},utility:{detail:p.cyan.a(.2),contrast:p.white}}},chat:{incoming:{fg:{primary:m.dark.fg.primary.ref(),secondary:m.dark.fg.secondary.ref()},bg:{primary:m.dark.bg.secondary.ref(),secondary:m.dark.bg.tertiary.ref()}},outgoing:{fg:{primary:p.white,secondary:p.white.a(.7)},bg:{primary:p.blue[500],secondary:p.blue[600]}}}})},rules:{color:o(["fg-primary","fg-secondary","fg-tertiary"]),background:{color:["transparent","unset",...o(["bg-primary","bg-secondary","bg-tertiary","bg-elevated-primary","bg-elevated-secondary","bg-elevated-tertiary"])]},border:{radius:{none:0,xs:4,sm:8,md:12,lg:20,full:9999},color:[new class e{constructor(e){(0,l._)(this,"text",void 0),this.text=e}}("transparent"),...o(["utility-detail","accent-fg-purple"])]},box:{shadow:{light:{xs:"0px 1px 2px rgba(0, 0, 0, 0.05)",sm:"0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.06)",md:"0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0px 10px 15px -3px rgba(0, 0, 0, 0.1), 0px 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0px 20px 25px -5px rgba(0, 0, 0, 0.1), 0px 10px 10px -5px rgba(0, 0, 0, 0.04)"},dark:{xs:"0px 1px 2px rgba(0, 0, 0, 0.05)",sm:"0px 1px 3px rgba(0, 0, 0, 0.2), 0px 1px 2px rgba(0, 0, 0, 0.12)",md:"0px 4px 6px -1px rgba(0, 0, 0, 0.2), 0px 2px 4px -1px rgba(0, 0, 0, 0.12)",lg:"0px 10px 15px -3px rgba(0, 0, 0, 0.2), 0px 4px 6px -2px rgba(0, 0, 0, 0.1)",xl:"0px 20px 25px -5px rgba(0, 0, 0, 0.2), 0px 10px 10px -5px rgba(0, 0, 0, 0.08)"}}},font:{family:{},size:[11,12,13,14,15,16,17,18,19,20,24,30,32,36,44],weight:{light:300,regular:400,medium:500,semibold:600,bold:700,heavy:800}},aspect:{ratio:i.UH}}}},4518:function(e,t,r){r.d(t,{c:()=>a});let a=(e,t)=>{if(!t)return!1;let r=e.selection.$from;for(let e=r.depth;e>=0;e--){let a=r.index(e);if(r.node(e).canReplaceWith(a,a,t))return!0}return!1}},29496:function(e,t,r){r.d(t,{C:()=>n});var a=r(88285);let n=e=>{let{name:t,nodeSpec:r,addNodeView:n,addCommands:i}=e;return a.bP.create({name:t,content:r.content,marks:r.marks,group:r.group,inline:r.inline,atom:r.atom,selectable:r.selectable,draggable:r.draggable,code:r.code,whitespace:r.whitespace,defining:r.defining,isolating:r.isolating,addNodeView:n,addCommands:i,renderHTML(e){return this.options.isStatic&&r.toDOMStatic?r.toDOMStatic(e.node):r.toDOM(e.node)},parseHTML:()=>r.parseDOM,addAttributes:()=>(e=>{let{attrs:t}=e,r={};if(!t)return r;for(let[e,n]of Object.entries(t)){var a;r[e]={default:null!=(a=n.default)?a:null,keepOnSplit:!1}}return r})({attrs:r.attrs})})}},78495:function(e,t,r){r.d(t,{t:()=>a});let a=e=>{try{if("string"!=typeof e){let t=e.getAttribute("data-attrs");if(t)return JSON.parse(t)}}catch(e){}return!1}},61522:function(){}}]);