"use strict";(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["4002"],{41302:function(r,e,a){a.d(e,{Z:()=>t});let t={reset:"reset-kAomxn","color-primary":"color-primary-S_7X35",colorPrimary:"color-primary-S_7X35","color-secondary":"color-secondary-vHUBzS",colorSecondary:"color-secondary-vHUBzS",overscrollTransition:"overscrollTransition-h5GdsE"}},61781:function(r,e,a){a.d(e,{Z:()=>u});var t=a(7409),i=a(99282),g=a(27412);function o(r){return r.map(r=>new n("color",r))}class n{constructor(r,e){(0,g._)(this,"prefix",void 0),(0,g._)(this,"name",void 0),this.prefix=r,this.name=e}}class f{a(r){return new f(this.name,this.values,this.space,r)}toString(){let r=this.values.join(" ");return 1!==this.alpha&&(r+=" / ".concat(this.alpha)),r}toCommaString(r){if("byte"===r){let r=this.values.map(r=>String(Math.round(255*r))).join(", ");return 1!==this.alpha&&(r+=", ".concat(this.alpha)),r}let e=this.values.map(r=>r.toFixed(3)).join(" ");return 1!==this.alpha&&(e+="/ ".concat(this.alpha)),e}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 r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";return"color-".concat(this.name.join("-"),"-").concat(r)}variableString(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";return"var(--".concat(this.tupleName(r),")")}assignment(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";if("p3"===r)return"color(display-p3 ".concat(this.variableString(r)).concat(1===this.alpha?"":"/ ".concat(this.alpha),")");if("rgb"===r)return"".concat(r,"(").concat(this.variableString(r)).concat(1===this.alpha?"":", ".concat(this.alpha),")");throw Error("Cannot (yet) convert ".concat(this.space," to ").concat(r))}ref(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new l(r,this)}rawRef(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new l(r,this,!0)}constructor(r,e,a="rgb",t=1){(0,g._)(this,"name",void 0),(0,g._)(this,"values",void 0),(0,g._)(this,"space",void 0),(0,g._)(this,"alpha",void 0),this.name=r,this.values=e,this.space=a,this.alpha=t}}class l{ref(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new l(r,this)}a(r){return new l(this.name,this.color.a(r),this.raw)}toRgb(){return this.color.toRgb()}baseName(){return"color-".concat(this.name.join("-"))}assignment(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb";if(this.raw)return this.rawAssignment(r);let e=this.color;return e instanceof f?e.assignment(r):"var(--".concat(e.baseName(),")")}rawAssignment(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb",e=this.color;return e instanceof f?e.variableString(r):"var(--".concat(e.baseName(),")")}constructor(r,e,a=!1){(0,g._)(this,"name",void 0),(0,g._)(this,"color",void 0),(0,g._)(this,"raw",void 0),this.name=r,this.color=e,this.raw=a}}function h(r){return new f([],r.map(r=>r/255),"p3")}class c{default(){return this[500]}a(r){return this.default().a(r)}ref(){return this.default().ref()}*entries(){for(let r=100;r<=900;r+=100)yield[r.toString(),this[r]]}constructor(r,e="rgb"){for(let[a,t]of((0,g._)(this,100,void 0),(0,g._)(this,150,void 0),(0,g._)(this,200,void 0),(0,g._)(this,300,void 0),(0,g._)(this,400,void 0),(0,g._)(this,500,void 0),(0,g._)(this,600,void 0),(0,g._)(this,700,void 0),(0,g._)(this,800,void 0),(0,g._)(this,850,void 0),(0,g._)(this,900,void 0),(0,g._)(this,950,void 0),Object.entries(r)))this[a]=new f([],t,e)}}function s(r){return new c(Object.fromEntries(Object.entries(r).map(r=>{let[e,a]=r;return[e,a.map(r=>r/255)]})),"p3")}function y(r){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(let[a,t]of Object.entries(r)){let r=[...e,a];if(t instanceof f||t instanceof l)t.name=r;else if(t instanceof c)for(let[e,a]of Object.entries(t))a.name=[...r,e];else y(t,r)}}let p={white:h([255,255,255]),black:h([0,0,0]),transparent:h([0,0,0]),red:s({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:s({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:s({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:s({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:s({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:s({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:s({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:s({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]})};y({primitive:p});let d={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()}}}};y(d);let b={light:(0,i._)((0,t._)({},d.light),{bg:(0,i._)((0,t._)({},d.light.bg),{elevated:{primary:d.light.bg.primary.ref(),secondary:d.light.bg.secondary.ref(),tertiary:d.light.bg.tertiary.ref()},sunken:{primary:d.light.bg["primary-hover"].ref()}})}),dark:(0,i._)((0,t._)({},d.dark),{bg:(0,i._)((0,t._)({},d.dark.bg),{elevated:{primary:d.dark.bg["primary-hover"].ref(),secondary:d.dark.bg.secondary.ref(),tertiary:d.dark.bg.tertiary.ref()},sunken:{primary:p.gray[950].ref()}})})},u={colors:{primitive:p,light:(0,i._)((0,t._)({},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:d.light.accent.fg.orange.ref(),"fg-hover":p.white.ref(),"bg-hover":d.light.accent.fg["orange-hover"].ref()},secondary:{fg:d.light.fg.primary.ref(),bg:d.light.bg.secondary.ref(),"fg-hover":d.light.fg.primary.ref(),"bg-hover":d.light.bg.tertiary.ref()},"secondary-accent":{fg:d.light.accent.fg.orange.ref(),bg:d.light.accent.bg.orange.ref(),"fg-hover":d.light.accent.fg["orange-hover"].ref(),"bg-hover":d.light.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:d.light.fg.primary.ref(),bg:d.light.utility.transparent.ref(),"fg-hover":d.light.fg.primary.ref(),"bg-hover":d.light.bg.secondary.ref()},"secondary-destructive":{fg:d.light.accent.fg.red.ref(),bg:d.light.accent.bg.red.ref(),"fg-hover":d.light.accent.fg["red-hover"].ref(),"bg-hover":d.light.accent.bg["red-hover"].ref()},tertiary:{fg:d.light.fg.primary.ref(),bg:d.light.utility.transparent.ref(),"fg-hover":d.light.fg.primary.ref(),"bg-hover":d.light.bg.secondary.ref()},"tertiary-accent":{fg:d.light.accent.fg.orange.ref(),bg:d.light.utility.transparent.ref(),"fg-hover":d.light.accent.fg["orange-hover"].ref(),"bg-hover":d.light.accent.bg.orange.ref()},quaternary:{fg:d.light.fg.secondary.ref(),bg:d.light.utility.transparent.ref(),"fg-hover":d.light.fg.primary.ref(),"bg-hover":d.light.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:d.light.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":d.light.accent.fg["red-hover"].ref()},disabled:{fg:d.light.fg.tertiary.ref(),bg:d.light.bg.secondary.ref(),"fg-hover":d.light.fg.primary.ref(),"bg-hover":d.light.bg.secondary.ref()}},tooltip:{fg:d.light.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[600].ref()},bg:{primary:d.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:d.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:d.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:d.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:d.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:d.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:d.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:d.light.fg.primary.ref(),secondary:d.light.fg.secondary.ref()},bg:{primary:d.light.bg.secondary.ref(),secondary:d.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,t._)({},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:d.dark.accent.fg.orange.ref(),"fg-hover":p.white,"bg-hover":d.dark.accent.fg["orange-hover"].ref()},secondary:{fg:d.dark.fg.primary.ref(),bg:d.dark.bg.secondary.ref(),"fg-hover":d.dark.fg.primary.ref(),"bg-hover":d.dark.bg.tertiary.ref()},"secondary-accent":{fg:d.dark.accent.fg.orange.ref(),bg:d.dark.accent.bg.orange.ref(),"fg-hover":d.dark.accent.fg["orange-hover"].ref(),"bg-hover":d.dark.accent.bg["orange-hover"].ref()},"secondary-outline":{fg:d.dark.fg.primary.ref(),bg:d.dark.utility.transparent.ref(),"fg-hover":d.dark.fg.primary.ref(),"bg-hover":d.dark.bg.secondary.ref()},"secondary-destructive":{fg:d.dark.accent.fg.red.ref(),bg:d.dark.accent.bg.red.ref(),"fg-hover":d.dark.accent.fg["red-hover"].ref(),"bg-hover":d.dark.accent.bg["red-hover"].ref()},tertiary:{fg:d.dark.fg.primary.ref(),bg:d.dark.utility.transparent.ref(),"fg-hover":d.dark.fg.primary.ref(),"bg-hover":d.dark.bg.secondary.ref()},"tertiary-accent":{fg:d.dark.accent.fg.orange.ref(),bg:d.dark.utility.transparent.ref(),"fg-hover":d.dark.accent.fg["orange-hover"].ref(),"bg-hover":d.dark.accent.bg.orange.ref()},quaternary:{fg:d.dark.fg.secondary.ref(),bg:d.dark.utility.transparent.ref(),"fg-hover":d.dark.fg.primary.ref(),"bg-hover":d.dark.utility.transparent.ref()},destructive:{fg:p.white.ref(),bg:d.dark.accent.fg.red.ref(),"fg-hover":p.white.ref(),"bg-hover":d.dark.accent.fg["red-hover"].ref()},disabled:{fg:d.dark.fg.tertiary.ref(),bg:d.dark.bg.secondary.ref(),"fg-hover":d.dark.fg.primary.ref(),"bg-hover":d.dark.bg.secondary.ref()}},tooltip:{fg:d.dark.utility.white.ref(),bg:p.gray[900]},semantic:{error:{fg:{primary:p.red[400]},bg:{primary:d.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:d.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:d.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:d.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:d.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:d.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:d.dark.accent.fg.cyan.ref(),"primary-hover":p.cyan[400]},utility:{detail:p.cyan.a(.2),contrast:p.white}}},chat:{incoming:{fg:{primary:d.dark.fg.primary.ref(),secondary:d.dark.fg.secondary.ref()},bg:{primary:d.dark.bg.secondary.ref(),secondary:d.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:{xs:4,sm:8,md:12,lg:20,full:9999},color:[new class r{constructor(r){(0,g._)(this,"text",void 0),this.text=r}}("transparent"),...o(["utility-detail"])]},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}}}}}}]);