!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@bd2e384"};var r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="13c590c6-d46a-4db6-8577-bf97fa9d07bd",e._sentryDebugIdIdentifier="sentry-dbid-13c590c6-d46a-4db6-8577-bf97fa9d07bd")}catch(e){}}();"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["47596"],{62614:function(e,r,t){t.d(r,{A:()=>a});let a={tag:"tag-XbOVLt",clickable:"clickable-nTmG6b",trailing:"trailing-TAQX7m",leading:"leading-mI5Ihl",fillIcon:"fillIcon-dQ0mii",theme_default:"theme_default-ZkFeoy",themeDefault:"theme_default-ZkFeoy",priority_primary:"priority_primary-uPxff5",priorityPrimary:"priority_primary-uPxff5",theme_accent:"theme_accent-Y2sqZY",themeAccent:"theme_accent-Y2sqZY",theme_error:"theme_error-Ob6GzK",themeError:"theme_error-Ob6GzK",theme_success:"theme_success-rIz3Am",themeSuccess:"theme_success-rIz3Am",theme_warn:"theme_warn-Cpi08d",themeWarn:"theme_warn-Cpi08d",theme_paid:"theme_paid-dQGqrS",themePaid:"theme_paid-dQGqrS",theme_substack:"theme_substack-jJ5UVL",themeSubstack:"theme_substack-jJ5UVL",theme_select:"theme_select-sAp6Wr",themeSelect:"theme_select-sAp6Wr",priority_secondary:"priority_secondary-AEjb79",prioritySecondary:"priority_secondary-AEjb79","priority_secondary-outline":"priority_secondary-outline-RpooJS",prioritySecondaryOutline:"priority_secondary-outline-RpooJS",priority_tertiary:"priority_tertiary-HMnJV4",priorityTertiary:"priority_tertiary-HMnJV4",media:"media-cKchX2"}},65996:function(e,r,t){t.d(r,{A:()=>a});let a={appTheme:"appTheme-xUAu9p"}},3084:function(e,r,t){t.d(r,{iB:()=>d});var a,i,n=t(69277),s=t(70408),o=t(4006),l=t(17402),_=t(94729);let c="undefined"!=typeof window&&null!=(i=null==(a=window._preloads)?void 0:a.publicationUserSettings)?i:{},g=e=>({getSettingForPubUser:r=>{if(!r||!e)return null;let t=e[r];return void 0===t?null:t}}),f=(0,l.createContext)((0,s._)((0,n._)({},g(c)),{changeUserSetting:()=>Promise.resolve(void 0)}));function d(e){let{preloadPubUserSettings:r={},children:t}=e,[a,i]=(0,l.useState)(r),c=(0,l.useCallback)(async(e,r)=>{i(t=>(0,s._)((0,n._)({},t),{[e]:r}));try{await (0,_.x6)("/api/v1/publication_user_settings/user",{method:"PUT",json:{type:e,value:r}})}catch(e){console.error(e)}},[i]),d=(0,l.useMemo)(()=>(0,s._)((0,n._)({},g(a)),{changeUserSetting:c}),[a,c]);return(0,o.Y)(f.Provider,{value:d,children:t})}f.displayName="PublicationUserSettingsContext"},46271:function(e,r,t){t.d(r,{Jd:()=>y,Qg:()=>b,ur:()=>m,vu:()=>u});var a,i,n,s,o=t(69277),l=t(70408),_=t(4006),c=t(17402),g=t(94729),f=t(37764);let d="undefined"!=typeof window&&null!=(n=null==(a=window._preloads)?void 0:a.user)?n:null,h="undefined"!=typeof window&&null!=(s=null==(i=window._preloads)?void 0:i.userSettings)?s:{},p=(0,c.createContext)({user:d,setUser:()=>void 0,userSettings:h,changeSetting:()=>Promise.resolve()});function u(e){let{defaultValue:r,userSettings:t,children:a}=e,[i,n]=(0,c.useState)(r||d),[s,u]=(0,c.useState)(null!=t?t:h),y=async(e,r,t,a)=>{if(!i&&!(null==a?void 0:a.token))return;let n=s[e];u((0,l._)((0,o._)({},s),{[e]:r}));try{await (0,g.x6)("/api/v1/user-setting",{method:"PUT",json:{type:f.hn[e],value_bool:"bool"!==t&&(t||"boolean"!=typeof r)?void 0:r,value_datetime:"datetime"!==t&&(t||"string"!=typeof r)?void 0:r,value_text:"text"===t?r:void 0,value_array:"array"===t?r:void 0,token:null==a?void 0:a.token}})}catch(r){if(r instanceof g.fk)alert(r.getMessage()),u(r=>(0,l._)((0,o._)({},r),{[e]:n}));else throw r}},b=(0,c.useMemo)(()=>({user:i,setUser:n,userSettings:s,changeSetting:y}),[i,s]);return(0,_.Y)(p.Provider,{value:b,children:a})}function y(){return(0,c.useContext)(p).user}function b(){return(0,c.useContext)(p).userSettings}function m(){return(0,c.useContext)(p)}p.displayName="UserContext"},12601:function(e,r,t){t.d(r,{It:()=>p,MM:()=>u,RY:()=>y,X_:()=>b,Y9:()=>k,iF:()=>w,jl:()=>c});var a=t(69277),i=t(4006),n=t(17402),s=t(89490),o=t(63136),l=t(54754),_=t(11510);let c=e=>{let{primaryButton:r,secondaryButton:t,tertiaryButton:a,buttonDivider:s,caption:o,showDivider:c,direction:f="row",alignButtons:d="end"}=e,h=(0,_.Iu)(),m="stretch"===d,A="column"===f||m||h,S=!!t||!!r||!!a,E=m?v:n.Fragment,I=[a,t,r].filter(Boolean).map(e=>(0,i.Y)(E,{children:e}));return(0,i.FD)(c?A?b:y:A?u:p,{"data-modal-role":"footer",children:[o&&(0,i.Y)(g,{caption:o,textAlign:A?"center":"left"}),S&&(0,i.Y)(A?m?x:w:k,{children:s?(0,i.Y)(l.r,{separator:s,children:I}):I})]})},g=e=>{let{caption:r,textAlign:t="left"}=e;return(0,i.Y)(A,{children:(0,i.Y)(o.EY.B4,{as:"span",color:"secondary",textAlign:t,children:r})})},f={display:"flex",direction:"row",gap:12,paddingX:20,paddingBottom:20,alignItems:"center"},d={paddingTop:16,paddingBottom:16,borderTop:"detail"},h={direction:"column-reverse",alignItems:"stretch",gap:16},p=(0,s.I4)((0,a._)({},f)),u=(0,s.I4)((0,a._)({},f,h)),y=(0,s.I4)((0,a._)({},f,d)),b=(0,s.I4)((0,a._)({},f,d,h)),m={display:"flex",direction:"row",alignItems:"center",justifyContent:"end",flex:"grow",gap:12},v=(0,s.I4)({display:"flex",direction:"column",flex:"grow"}),k=(0,s.I4)((0,a._)({},m)),w=(0,s.I4)((0,a._)({},m,{direction:"column-reverse",alignItems:"stretch"})),x=(0,s.I4)((0,a._)({},m,{alignItems:"stretch"})),A=(0,s.I4)({display:"flex",direction:"column"})},54754:function(e,r,t){t.d(r,{r:()=>n});var a=t(4006),i=t(17402);let n=e=>{let{children:r,separator:t}=e,n=[],s=i.Children.toArray(r);return s.forEach((e,r)=>{n.push(e),r!==s.length-1&&n.push(t)}),(0,a.Y)(a.FK,{children:n})}},38704:function(e,r,t){t.d(r,{Jb:()=>n,QA:()=>l,QT:()=>s,ZZ:()=>i,uu:()=>o});var a=t(69277);function i(e,r,t){let a=new Map(e);for(let e of r)a.set(t(e),e);return a}function n(e,r,t){let a=new Map(e);return a.set(r,t),a}function s(e,r){let t=new Map(e);return t.delete(r),t}function o(e,r,t){let i=e.get(r);if(null!=i){let n=new Map(e);return n.set(r,(0,a._)({},i,t)),n}return e}function l(e,r,t){let a=e.get(r);if(null!=a){let i=new Map(e);return i.set(r,t(a)),i}return e}},43708:function(e,r,t){t.d(r,{Y:()=>a});let a={arr_10k_milestone:"arr_10k_milestone",arr_1k_milestone:"arr_1k_milestone",comment_arr:"comment_arr",comment_like:"comment_like",comment_mention:"comment_mention",comment_reply:"comment_reply",community_comment_like:"community_comment_like",community_comment_mention:"community_comment_mention",community_comment_quote_reply:"community_comment_quote_reply",community_comment_reply:"community_comment_reply",community_post_like:"community_post_like",community_post_reply:"community_post_reply",follow:"follow",free_subscription:"free_subscription",leaderboard_update:"leaderboard_update",list_100_milestone:"list_100_milestone",list_1k_milestone:"list_1k_milestone",live_stream:"live_stream",live_stream_host_reminder:"live_stream_host_reminder",live_stream_invite:"live_stream_invite",live_stream_scheduled:"live_stream_scheduled",live_stream_scheduled_invite:"live_stream_scheduled_invite",media_clip_like:"media_clip_like",naked_restack_reaction:"naked_restack_reaction",new_profile:"new_profile",note_like:"note_like",note_reply:"note_reply",outlier_subscriber:"outlier_subscriber",paid_subscription:"paid_subscription",pledged_subscription:"pledged_subscription",post_like:"post_like",post_mention:"post_mention",post_reply:"post_reply",post_shareable_assets_ready:"post_shareable_assets_ready",post_to_post_link:"post_to_post_link",referred_free_subscription:"referred_free_subscription",restack:"restack",restack_quote:"restack_quote",scheduled_note_sent:"scheduled_note_sent",total_earnings:"total_earnings",user_first_note:"user_first_note",viral_gift_granted:"viral_gift_granted",viral_post:"viral_post"}},91392:function(e,r,t){t.d(r,{FI:()=>s,HY:()=>o,Pv:()=>l,UF:()=>n,pz:()=>i});var a=t(69277);let i={SUBSTACK:"substack",PUBLISHER:"publisher"},n={NECESSARY:"Necessary",PERFORMANCE:"Performance",FUNCTIONALITY:"Functionality"},s={ANONYMOUS_ID:"ajs_anonymous_id",AB_TESTING_ID:"ab_testing_id",AB_EXPERIMENT_SAMPLED:"ab_experiment_sampled",LIKELY_LOGGED_IN:"substack.lli",VISIT_ID:"visit_id",HIDE_COOKIE_BANNER:"hideCookieBanner",INTRO_POPUP_LAST_HIDDEN_AT:"intro_popup_last_hidden_at",LIKE_UPSELL_LAST_SHOWN_AT:"like_upsell_last_shown_at",CHATBOT_TERMS_LAST_ACCEPTED_AT:"chatbot_terms_last_accepted_at",SESSION_SID:"substack.sid",CUSTOM_DOMAIN_SESSION_SID:"connect.sid",DISABLE_HTML_PIXELS:"disable_html_pixels",DISABLE_EXPERIMENTS:"disable_experiments",COOKIE_STORAGE_KEY:"cookie_storage_key",PREFERRED_LANGUAGE:"preferred_language",OAUTH_INTERACTION:"substack.oauth_interaction",OAUTH_SESSION:"substack.oauth_session",OAUTH_RESUME:"substack.oauth_resume"},o=(0,a._)({GA_TRACKING:"_ga_tracking-substack",GA_TAG_MANAGER:"_ga_tag_manager-substack",AD_QUICK_TRACKING_PIXEL:"ad_quick_tracking_pixel-substack",META_TRACKING_PIXEL:"meta_tracking_pixel-substack",EXPERIMENTS:"experiments-substack",AWSALB:"AWSALB-substack",MUX_DATA:"muxData-substack",DATADOG_S:"_dd_s-substack",CF_CLEARENCE:"cf_clearance-substack",CF_BM:"__cf_bm-substack",FULLSTORY_UID:"fs_uid-substack",ZENDESK_ID:"__zlcmid-substack"},s),l={GA_TRACKING:"_ga_tracking-publisher",GA_TAG_MANAGER:"_ga_tag_manager-publisher",FB_PIXEL:"fb_pixel-publisher",TWITTER_PIXEL:"twitter_pixel-publisher",PARSELY_PIXEL:"parsely_pixel-publisher"};o.FULLSTORY_UID,o.GA_TRACKING,o.GA_TAG_MANAGER,l.GA_TRACKING,l.GA_TAG_MANAGER,l.PARSELY_PIXEL,l.TWITTER_PIXEL,l.FB_PIXEL,o.DATADOG_S,o.AD_QUICK_TRACKING_PIXEL,o.MUX_DATA,s.AB_TESTING_ID,s.ANONYMOUS_ID,s.VISIT_ID,o.EXPERIMENTS},53217:function(e,r,t){t.d(r,{h:()=>a});let a={activityPosts:"activity_posts_enabled",activity_likes_enabled:"activity_likes_enabled",autoPlayVideo:"auto_play_video",dashboard_nav_refresh_enabled:"dashboard_nav_refresh_enabled",hasSeenLikeNux:"has_seen_like_nux",prepublishPaywallPromptHidden:"prepublish_paywall_prompt_hidden",prepublishSubscribeCtaPromptHidden:"prepublish_subscribe_cta_prompt_hidden",prepublishSendAsEmailPromptHidden:"prepublish_send_as_email_prompt_hidden",savedPostsViewedAt:"saved_posts_viewed_at",hasBeenRedirectedToReaderOnboardingFromLoginFlow:"has_been_redirected_to_reader_onboarding_from_login_flow",manageSubscriptionHighlightedId:"manage_subscription_highlighted_id",twitterProfileVisible:"twitter_profile_visible",facebookProfileVisible:"facebook_profile_visible",bestsellerBadgeEnabled:"bestseller_badge_enabled",hasDismissedSectionToNewsletterRename:"has_dismissed_section_to_newsletter_rename",chatDigestSentAt:"chat_digest_sent_at",newest_seen_chat_item_published_at:"newest_seen_chat_item_published_at",smartDeliveryEnabled:"smart_delivery_enabled",lastSmartDeliveryBatchEmailSentAt:"last_smart_delivery_batch_email_sent_at",feed_digest_email_last_sent_at:"feed_digest_email_last_sent_at",feed_new_note_last_sent_at:"feed_new_note_last_sent_at",feed_new_note_subscriber_notification_last_sent_at:"feed_new_note_subscriber_notification_last_sent_at",is_guest_post_enabled:"is_guest_post_enabled",feed_web_nux_seen_at:"feed_web_nux_seen_at",invite_friends_nux_dismissed_at:"invite_friends_nux_dismissed_at",has_seen_reader_to_writer_upsell:"has_seen_reader_to_writer_upsell",suggestions_feed_item_last_shown_at:"suggestions_feed_item_last_shown_at",has_seen_select_to_restack_tooltip_nux:"has_seen_select_to_restack_tooltip_nux",has_seen_select_to_restack_modal:"has_seen_select_to_restack_modal",last_notification_alert_shown_at:"last_notification_alert_shown_at",disable_reply_hiding:"disable_reply_hiding",contactsSyncEmailBlastSent:"contacts_sync_email_blast_sent",unifiedHomeEmailBlastSent:"unified_home_email_blast_sent",explicitContentEnabled:"explicit_content_enabled",contactMatchingEnabled:"contact_matching_enabled",messageRequestLevel:"message_request_level",creditTokensTreatmentExposed:"credit_tokens_treatment_exposed",appBadgeIncludesChat:"app_badge_includes_chat",unreadPostsDigestEmailLastSentAt:"unread_posts_digest_email_last_sent_at",chatbotTermsLastAcceptedAt:"chatbot_terms_last_accepted_at",has_seen_notes_post_app_upsell:"has_seen_notes_post_app_upsell",liveStreamAcceptableInviteLevel:"live_stream_acceptable_invite_level",liveStreamAcceptableChatLevel:"live_stream_acceptable_chat_level",substack_summer_nux_dismissed_at:"substack_summer_nux_dismissed_at",messages_unread_requests_email_last_sent_at:"messages_unread_requests_email_last_sent_at",contacts_sync_lifecycle_push_sent:"contacts_sync_lifecycle_push_sent",contacts_sync_lifecycle_email_sent:"contacts_sync_lifecycle_email_sent",first_note_id:"first_note_id",show_concurrent_live_stream_viewers:"show_concurrent_live_stream_viewers",has_dismissed_fp_download_pdf_nux:"has_dismissed_fp_download_pdf_nux",edit_profile_feed_item_dismissed_at:"edit_profile_feed_item_dismissed_at",mobile_permalink_app_upsell_seen_at:"mobile_permalink_app_upsell_seen_at",new_user_checklist_enabled:"new_user_checklist_enabled",new_user_follow_subscribe_prompt_dismissed_at:"new_user_follow_subscribe_prompt_dismissed_at",has_seen_youtube_shorts_auto_publish_announcement:"has_seen_youtube_shorts_auto_publish_announcement",has_seen_publish_youtube_connect_upsell:"has_seen_publish_youtube_connect_upsell",notificationQualityFilterEnabled:"notification_quality_filter_enabled",last_outlier_subscription_notification_sent_at:"last_outlier_subscription_notification_sent_at",hasSeenOnboardingNewslettersScreen:"hasSeenOnboardingNewslettersScreen",hasSelfIdentifiedAsCreator:"has_self_identified_as_creator",autoTranslateEnabled:"auto_translate_enabled",autoTranslateBlocklist:"auto_translate_blocklist"}},58643:function(e,r,t){t.d(r,{A:()=>b});var a=t(69277),i=t(70408),n=t(69706),s=t(99851);function o(e){return e.map(e=>new l("color",e))}class l{constructor(e,r){(0,s._)(this,"prefix",void 0),(0,s._)(this,"name",void 0),this.prefix=e,this.name=r}}class _{a(e){return new _(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 r=this.values.map(e=>e.toFixed(3)).join(" ");return 1!==this.alpha&&(r+="/ ".concat(this.alpha)),r}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 c(e,this)}rawRef(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new c(e,this,!0)}constructor(e,r,t="rgb",a=1){(0,s._)(this,"name",void 0),(0,s._)(this,"values",void 0),(0,s._)(this,"space",void 0),(0,s._)(this,"alpha",void 0),this.name=e,this.values=r,this.space=t,this.alpha=a}}class c{ref(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new c(e,this)}a(e){return new c(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 r=this.color;return r instanceof _?r.assignment(e):"var(--".concat(r.baseName(),")")}rawAssignment(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb",r=this.color;return r instanceof _?r.variableString(e):"var(--".concat(r.baseName(),")")}constructor(e,r,t=!1){(0,s._)(this,"name",void 0),(0,s._)(this,"color",void 0),(0,s._)(this,"raw",void 0),this.name=e,this.color=r,this.raw=t}}function g(e){return new _([],e.map(e=>e/255),"p3")}class f{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,r="rgb"){for(const[t,a]of((0,s._)(this,100,void 0),(0,s._)(this,150,void 0),(0,s._)(this,200,void 0),(0,s._)(this,300,void 0),(0,s._)(this,400,void 0),(0,s._)(this,500,void 0),(0,s._)(this,600,void 0),(0,s._)(this,700,void 0),(0,s._)(this,800,void 0),(0,s._)(this,850,void 0),(0,s._)(this,900,void 0),(0,s._)(this,950,void 0),Object.entries(e)))this[t]=new _([],a,r)}}function d(e){return new f(Object.fromEntries(Object.entries(e).map(e=>{let[r,t]=e;return[r,t.map(e=>e/255)]})),"p3")}function h(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let[t,a]of Object.entries(e)){let e=[...r,t];if(a instanceof _||a instanceof c)a.name=e;else if(a instanceof f)for(let[r,t]of Object.entries(a))t.name=[...e,r];else h(a,e)}}let p={white:g([255,255,255]),black:g([0,0,0]),transparent:g([0,0,0]),red:d({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:d({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:d({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:d({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:d({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:d({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:d({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:d({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]})};h({primitive:p});let u={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()}}}};h(u);let y={light:(0,i._)((0,a._)({},u.light),{bg:(0,i._)((0,a._)({},u.light.bg),{elevated:{primary:u.light.bg.primary.ref(),secondary:u.light.bg.secondary.ref(),tertiary:u.light.bg.tertiary.ref()},sunken:{primary:u.light.bg["primary-hover"].ref()}})}),dark:(0,i._)((0,a._)({},u.dark),{bg:(0,i._)((0,a._)({},u.dark.bg),{elevated:{primary:u.dark.bg["primary-hover"].ref(),secondary:u.dark.bg.secondary.ref(),tertiary:u.dark.bg.tertiary.ref()},sunken:{primary:p.gray[950].ref()}})})},b={colors:{primitive:p,light:(0,i._)((0,a._)({},y.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:u.light.accent.fg.orange.ref(),"fg-hover":p.white.ref(),"bg-hover":u.light.accent.fg["orange-hover"].ref()},secondary:{fg:u.light.fg.primary.ref(),bg:u.light.bg.secondary.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.bg.tertiary.ref()},"secondary-accent":{fg:u.light.accent.fg.orange.ref(),bg:u.light.accent.bg.orange.ref(),"fg-hover":u.light.accent.fg["orange-hover"].ref(),"bg-hover":u.light.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:u.light.fg.primary.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.bg.secondary.ref()},"quaternary-outline":{fg:u.light.fg.secondary.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.bg.secondary.ref()},"secondary-destructive":{fg:u.light.accent.fg.red.ref(),bg:u.light.accent.bg.red.ref(),"fg-hover":u.light.accent.fg["red-hover"].ref(),"bg-hover":u.light.accent.bg["red-hover"].ref()},tertiary:{fg:u.light.fg.primary.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.bg.secondary.ref()},"tertiary-destructive":{fg:u.light.accent.fg.red.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.accent.fg["red-hover"].ref(),"bg-hover":u.light.accent.bg.red.ref()},"tertiary-accent":{fg:u.light.accent.fg.orange.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.accent.fg["orange-hover"].ref(),"bg-hover":u.light.accent.bg.orange.ref()},quaternary:{fg:u.light.fg.secondary.ref(),bg:u.light.utility.transparent.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:u.light.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":u.light.accent.fg["red-hover"].ref()},disabled:{fg:u.light.fg.tertiary.ref(),bg:u.light.bg.secondary.ref(),"fg-hover":u.light.fg.primary.ref(),"bg-hover":u.light.bg.secondary.ref()}},tooltip:{fg:u.light.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[600].ref()},bg:{primary:u.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:u.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:u.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:u.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:u.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:u.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:u.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:u.light.fg.primary.ref(),secondary:u.light.fg.secondary.ref()},bg:{primary:u.light.bg.secondary.ref(),secondary:u.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,i._)((0,a._)({},y.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:u.dark.accent.fg.orange.ref(),"fg-hover":p.white,"bg-hover":u.dark.accent.fg["orange-hover"].ref()},secondary:{fg:u.dark.fg.primary.ref(),bg:u.dark.bg.secondary.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.bg.tertiary.ref()},"secondary-accent":{fg:u.dark.accent.fg.orange.ref(),bg:u.dark.accent.bg.orange.ref(),"fg-hover":u.dark.accent.fg["orange-hover"].ref(),"bg-hover":u.dark.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:u.dark.fg.primary.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.bg.secondary.ref()},"quaternary-outline":{fg:u.dark.fg.secondary.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.bg.secondary.ref()},"secondary-destructive":{fg:u.dark.accent.fg.red.ref(),bg:u.dark.accent.bg.red.ref(),"fg-hover":u.dark.accent.fg["red-hover"].ref(),"bg-hover":u.dark.accent.bg["red-hover"].ref()},tertiary:{fg:u.dark.fg.primary.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.bg.secondary.ref()},"tertiary-destructive":{fg:u.dark.accent.fg.red.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.accent.fg["red-hover"].ref(),"bg-hover":u.dark.accent.bg.red.ref()},"tertiary-accent":{fg:u.dark.accent.fg.orange.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.accent.fg["orange-hover"].ref(),"bg-hover":u.dark.accent.bg.orange.ref()},quaternary:{fg:u.dark.fg.secondary.ref(),bg:u.dark.utility.transparent.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:u.dark.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":u.dark.accent.fg["red-hover"].ref()},disabled:{fg:u.dark.fg.tertiary.ref(),bg:u.dark.bg.secondary.ref(),"fg-hover":u.dark.fg.primary.ref(),"bg-hover":u.dark.bg.secondary.ref()}},tooltip:{fg:u.dark.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[400]},bg:{primary:u.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:u.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:u.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:u.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:u.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:u.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:u.dark.accent.fg.cyan.ref(),"primary-hover":p.cyan[400]},utility:{detail:p.cyan.a(.2),contrast:p.white}}},chat:{incoming:{fg:{primary:u.dark.fg.primary.ref(),secondary:u.dark.fg.secondary.ref()},bg:{primary:u.dark.bg.secondary.ref(),secondary:u.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,s._)(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:n.UH}}}}}]);