!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@2a9980c"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="cf89c535-79eb-4531-9bf3-55c2ccde50c0",e._sentryDebugIdIdentifier="sentry-dbid-cf89c535-79eb-4531-9bf3-55c2ccde50c0")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["76976"],{32485:function(e){!/*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */function(){"use strict";var n={}.hasOwnProperty;function t(){for(var e=[],r=0;r0&&i(_)?t>1?e(_,t-1,i,u,c):r(c,_):u||(c[c.length]=_)}return c}},5128:function(e,n,t){var r=t(80909),o=t(64894);e.exports=function(e,n){var t=-1,i=o(e)?Array(e.length):[];return r(e,function(e,r,o){i[++t]=n(e,r,o)}),i}},46155:function(e,n,t){var r=t(34932),o=t(47422),i=t(15389),u=t(5128),c=t(73937),a=t(27301),f=t(43714),_=t(83488),l=t(56449);e.exports=function(e,n,t){n=n.length?r(n,function(e){return l(e)?function(n){return o(n,1===e.length?e[0]:e)}:e}):[_];var s=-1;return n=r(n,a(i)),c(u(e,function(e,t,o){return{criteria:r(n,function(n){return n(e)}),index:++s,value:e}}),function(e,n){return f(e,n,t)})}},76001:function(e,n,t){var r=t(97420),o=t(80631);e.exports=function(e,n){return r(e,n,function(n,t){return o(e,t)})}},97420:function(e,n,t){var r=t(47422),o=t(73170),i=t(31769);e.exports=function(e,n,t){for(var u=-1,c=n.length,a={};++un||u&&c&&f&&!a&&!_||o&&c&&f||!t&&f||!i)return 1;if(!o&&!u&&!_&&e=a)return f;return f*("desc"==t[o]?-1:1)}}return e.index-n.index}},38816:function(e,n,t){var r=t(35970),o=t(56757),i=t(32865);e.exports=function(e){return i(o(e,void 0,r),e+"")}},45891:function(e,n,t){var r=t(51873),o=t(72428),i=t(56449),u=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(u&&e&&e[u])}},31800:function(e){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},38221:function(e,n,t){var r=t(23805),o=t(10124),i=t(99374),u=Math.max,c=Math.min;e.exports=function(e,n,t){var a,f,_,l,s,d,p=0,v=!1,m=!1,h=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(n){var t=a,r=f;return a=f=void 0,p=n,l=e.apply(r,t)}function g(e){var t=e-d,r=e-p;return void 0===d||t>=n||t<0||m&&r>=_}function b(){var e,t,r,i=o();if(g(i))return N(i);s=setTimeout(b,(e=i-d,t=i-p,r=n-e,m?c(r,_-t):r))}function N(e){return(s=void 0,h&&a)?y(e):(a=f=void 0,l)}function w(){var e,t=o(),r=g(t);if(a=arguments,f=this,d=t,r){if(void 0===s)return p=e=d,s=setTimeout(b,n),v?y(e):l;if(m)return clearTimeout(s),s=setTimeout(b,n),y(d)}return void 0===s&&(s=setTimeout(b,n)),l}return n=i(n)||0,r(t)&&(v=!!t.leading,_=(m="maxWait"in t)?u(i(t.maxWait)||0,n):_,h="trailing"in t?!!t.trailing:h),w.cancel=function(){void 0!==s&&clearTimeout(s),p=0,a=d=f=s=void 0},w.flush=function(){return void 0===s?l:N(o())},w}},44394:function(e,n,t){var r=t(72552),o=t(40346);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},10124:function(e,n,t){var r=t(9325);e.exports=function(){return r.Date.now()}},42877:function(e,n,t){var r=t(46155),o=t(56449);e.exports=function(e,n,t,i){return null==e?[]:(o(n)||(n=null==n?[]:[n]),o(t=i?void 0:t)||(t=null==t?[]:[t]),r(e,n,t))}},44383:function(e,n,t){var r=t(76001);e.exports=t(38816)(function(e,n){return null==e?{}:r(e,n)})},99374:function(e,n,t){var r=t(54128),o=t(23805),i=t(44394),u=0/0,c=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,f=/^0o[0-7]+$/i,_=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return u;if(o(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=o(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var t=a.test(e);return t||f.test(e)?_(e.slice(2),t?2:8):c.test(e)?u:+e}},13222:function(e,n,t){var r=t(77556);e.exports=function(e){return null==e?"":r(e)}},86241:function(e,n,t){"use strict";t.d(n,{A:()=>r});let r=(0,t(81315).A)("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]])},14858:function(e,n,t){"use strict";t.r(n),t.d(n,{addHookName:()=>i});var r,o=t(50172);function i(e,n){return o.options.__a&&o.options.__a(n),e}null!=(r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0)&&r.__PREACT_DEVTOOLS__&&r.__PREACT_DEVTOOLS__.attachPreact("10.26.5",o.options,{Fragment:o.Fragment,Component:o.Component})},45994:function(e,n,t){"use strict";t.d(n,{Bi:()=>A,J0:()=>y,Kr:()=>E,MN:()=>O,Md:()=>C,NT:()=>k,Nf:()=>N,WO:()=>g,Yn:()=>x,hb:()=>T,li:()=>w,vJ:()=>b});var r,o,i,u,c=t(50172),a=0,f=[],_=c.options,l=_.__b,s=_.__r,d=_.diffed,p=_.__c,v=_.unmount,m=_.__;function h(e,n){_.__h&&_.__h(o,e,a||n),a=0;var t=o.__H||(o.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function y(e){return a=1,g(M,e)}function g(e,n,t){var i=h(r++,2);if(i.t=e,!i.__c&&(i.__=[t?t(n):M(void 0,n),function(e){var n=i.__N?i.__N[0]:i.__[0],t=i.t(n,e);n!==t&&(i.__N=[t,i.__[1]],i.__c.setState({}))}],i.__c=o,!o.__f)){var u=function(e,n,t){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return!!e.__c});if(r.every(function(e){return!e.__N}))return!c||c.call(this,e,n,t);var o=i.__c.props!==e;return r.forEach(function(e){if(e.__N){var n=e.__[0];e.__=e.__N,e.__N=void 0,n!==e.__[0]&&(o=!0)}}),c&&c.call(this,e,n,t)||o};o.__f=!0;var c=o.shouldComponentUpdate,a=o.componentWillUpdate;o.componentWillUpdate=function(e,n,t){if(this.__e){var r=c;c=void 0,u(e,n,t),c=r}a&&a.call(this,e,n,t)},o.shouldComponentUpdate=u}return i.__N||i.__}function b(e,n){var t=h(r++,3);!_.__s&&H(t.__H,n)&&(t.__=e,t.u=n,o.__H.__h.push(t))}function N(e,n){var t=h(r++,4);!_.__s&&H(t.__H,n)&&(t.__=e,t.u=n,o.__h.push(t))}function w(e){return a=5,E(function(){return{current:e}},[])}function x(e,n,t){a=6,N(function(){if("function"==typeof e){var t=e(n());return function(){e(null),t&&"function"==typeof t&&t()}}if(e)return e.current=n(),function(){return e.current=null}},null==t?t:t.concat(e))}function E(e,n){var t=h(r++,7);return H(t.__H,n)&&(t.__=e(),t.__H=n,t.__h=e),t.__}function T(e,n){return a=8,E(function(){return e},n)}function k(e){var n=o.context[e.__c],t=h(r++,9);return t.c=e,n?(null==t.__&&(t.__=!0,n.sub(o)),n.props.value):e.__}function O(e,n){_.useDebugValue&&_.useDebugValue(n?n(e):e)}function C(e){var n=h(r++,10),t=y();return n.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,r){n.__&&n.__(e,r),t[1](e)}),[t[0],function(){t[1](void 0)}]}function A(){var e=h(r++,11);if(!e.__){for(var n=o.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;var t=n.__m||(n.__m=[0,0]);e.__="P"+t[0]+"-"+t[1]++}return e.__}function R(){for(var e;e=f.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(P),e.__H.__h.forEach(D),e.__H.__h=[]}catch(n){e.__H.__h=[],_.__e(n,e.__v)}}_.__b=function(e){o=null,l&&l(e)},_.__=function(e,n){e&&n.__k&&n.__k.__m&&(e.__m=n.__k.__m),m&&m(e,n)},_.__r=function(e){s&&s(e),r=0;var n=(o=e.__c).__H;n&&(i===o?(n.__h=[],o.__h=[],n.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(n.__h.forEach(P),n.__h.forEach(D),n.__h=[],r=0)),i=o},_.diffed=function(e){d&&d(e);var n=e.__c;n&&n.__H&&(n.__H.__h.length&&(1!==f.push(n)&&u===_.requestAnimationFrame||((u=_.requestAnimationFrame)||function(e){var n,t=function(){clearTimeout(r),S&&cancelAnimationFrame(n),setTimeout(e)},r=setTimeout(t,100);S&&(n=requestAnimationFrame(t))})(R)),n.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=o=null},_.__c=function(e,n){n.some(function(e){try{e.__h.forEach(P),e.__h=e.__h.filter(function(e){return!e.__||D(e)})}catch(t){n.some(function(e){e.__h&&(e.__h=[])}),n=[],_.__e(t,e.__v)}}),p&&p(e,n)},_.unmount=function(e){v&&v(e);var n,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(e){try{P(e)}catch(e){n=e}}),t.__H=void 0,n&&_.__e(n,t.__v))};var S="function"==typeof requestAnimationFrame;function P(e){var n=o,t=e.__c;"function"==typeof t&&(e.__c=void 0,t()),o=n}function D(e){var n=o;e.__c=e.__(),o=n}function H(e,n){return!e||e.length!==n.length||n.some(function(n,t){return n!==e[t]})}function M(e,n){return"function"==typeof n?n(e):n}},87951:function(e,n,t){"use strict";t.d(n,{C1:()=>C,bL:()=>k});var r=t(17402);function o(e,n){if("function"==typeof e)return e(n);null!=e&&(e.current=n)}function i(...e){return n=>{let t=!1,r=e.map(e=>{let r=o(e,n);return t||"function"!=typeof r||(t=!0),r});if(t)return()=>{for(let n=0;n{},d=e=>{var n;let t,o,{present:i,children:c}=e,a=function(e){var n,t;let[o,i]=r.useState(),u=r.useRef(null),c=r.useRef(e),a=r.useRef("none"),[f,_]=(n=e?"mounted":"unmounted",t={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,n)=>t[e][n]??e,n));return r.useEffect(()=>{let e=p(u.current);a.current="mounted"===f?e:"none"},[f]),s(()=>{let n=u.current,t=c.current;if(t!==e){let r=a.current,o=p(n);e?_("MOUNT"):"none"===o||n?.display==="none"?_("UNMOUNT"):t&&r!==o?_("ANIMATION_OUT"):_("UNMOUNT"),c.current=e}},[e,_]),s(()=>{if(o){let e,n=o.ownerDocument.defaultView??window,t=t=>{let r=p(u.current).includes(CSS.escape(t.animationName));if(t.target===o&&r&&(_("ANIMATION_END"),!c.current)){let t=o.style.animationFillMode;o.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=t)})}},r=e=>{e.target===o&&(a.current=p(u.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",t),o.addEventListener("animationend",t),()=>{n.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",t),o.removeEventListener("animationend",t)}}_("ANIMATION_END")},[o,_]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:r.useCallback(e=>{u.current=e?getComputedStyle(e):null,i(e)},[])}}(i),f="function"==typeof c?c({present:a.isPresent}):r.Children.only(c),_=u(a.ref,(n=f,(o=(t=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.ref:(o=(t=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?n.props.ref:n.props.ref||n.ref));return"function"==typeof c||a.isPresent?r.cloneElement(f,{ref:_}):null};function p(e){return e?.animationName||"none"}d.displayName="Presence";var v=Symbol("radix.slottable");function m(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===v}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{var t,o;let u,a,f,_=(o=t=`Primitive.${n}`,(u=r.forwardRef((e,n)=>{let{children:t,...o}=e;if(r.isValidElement(t)){var u;let e,c,a=(u=t,(c=(e=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.ref:(c=(e=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning)?u.props.ref:u.props.ref||u.ref),f=function(e,n){let t={...n};for(let r in n){let o=e[r],i=n[r];/^on[A-Z]/.test(r)?o&&i?t[r]=(...e)=>{let n=i(...e);return o(...e),n}:o&&(t[r]=o):"style"===r?t[r]={...o,...i}:"className"===r&&(t[r]=[o,i].filter(Boolean).join(" "))}return{...e,...t}}(o,t.props);return t.type!==r.Fragment&&(f.ref=n?i(n,a):a),r.cloneElement(t,f)}return r.Children.count(t)>1?r.Children.only(null):null})).displayName=`${o}.SlotClone`,a=u,(f=r.forwardRef((e,n)=>{let{children:t,...o}=e,i=r.Children.toArray(t),u=i.find(m);if(u){let e=u.props.children,t=i.map(n=>n!==u?n:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,c.Y)(a,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,t):null})}return(0,c.Y)(a,{...o,ref:n,children:t})})).displayName=`${t}.Slot`,f),l=r.forwardRef((e,t)=>{let{asChild:r,...o}=e;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.Y)(r?_:n,{...o,ref:t})});return l.displayName=`Primitive.${n}`,{...e,[n]:l}},{}),y="Checkbox",[g,b]=function(e,n=[]){let t=[],o=()=>{let n=t.map(e=>r.createContext(e));return function(t){let o=t?.[e]||n;return r.useMemo(()=>({[`__scope${e}`]:{...t,[e]:o}}),[t,o])}};return o.scopeName=e,[function(n,o){let i=r.createContext(o),u=t.length;t=[...t,o];let a=n=>{let{scope:t,children:o,...a}=n,f=t?.[e]?.[u]||i,_=r.useMemo(()=>a,Object.values(a));return(0,c.Y)(f.Provider,{value:_,children:o})};return a.displayName=n+"Provider",[a,function(t,c){let a=c?.[e]?.[u]||i,f=r.useContext(a);if(f)return f;if(void 0!==o)return o;throw Error(`\`${t}\` must be used within \`${n}\``)}]},function(...e){let n=e[0];if(1===e.length)return n;let t=()=>{let t=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=t.reduce((n,{useScope:t,scopeName:r})=>{let o=t(e)[`__scope${r}`];return{...n,...o}},{});return r.useMemo(()=>({[`__scope${n.scopeName}`]:o}),[o])}};return t.scopeName=n.scopeName,t}(o,...n)]}(y),[N,w]=g(y);function x(e){let{__scopeCheckbox:n,checked:t,children:o,defaultChecked:i,disabled:u,form:a,name:_,onCheckedChange:l,required:s,value:d="on",internal_do_not_use_render:p}=e,[v,m]=(0,f.i)({prop:t,defaultProp:i??!1,onChange:l,caller:y}),[h,g]=r.useState(null),[b,w]=r.useState(null),x=r.useRef(!1),E=!h||!!a||!!h.closest("form"),T={checked:v,disabled:u,setChecked:m,control:h,setControl:g,name:_,form:a,value:d,hasConsumerStoppedPropagationRef:x,required:s,defaultChecked:!S(i)&&i,isFormControl:E,bubbleInput:b,setBubbleInput:w};return(0,c.Y)(N,{scope:n,...T,children:"function"==typeof p?p(T):o})}var E="CheckboxTrigger",T=r.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:t,...o},i)=>{let{control:f,value:_,disabled:l,checked:s,required:d,setControl:p,setChecked:v,hasConsumerStoppedPropagationRef:m,isFormControl:y,bubbleInput:g}=w(E,e),b=u(i,p),N=r.useRef(s);return r.useEffect(()=>{let e=f?.form;if(e){let n=()=>v(N.current);return e.addEventListener("reset",n),()=>e.removeEventListener("reset",n)}},[f,v]),(0,c.Y)(h.button,{type:"button",role:"checkbox","aria-checked":S(s)?"mixed":s,"aria-required":d,"data-state":P(s),"data-disabled":l?"":void 0,disabled:l,value:_,...o,ref:b,onKeyDown:a(n,e=>{"Enter"===e.key&&e.preventDefault()}),onClick:a(t,e=>{v(e=>!!S(e)||!e),g&&y&&(m.current=e.isPropagationStopped(),m.current||e.stopPropagation())})})});T.displayName=E;var k=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,name:r,checked:o,defaultChecked:i,required:u,disabled:a,value:f,onCheckedChange:_,form:l,...s}=e;return(0,c.Y)(x,{__scopeCheckbox:t,checked:o,defaultChecked:i,disabled:a,required:u,onCheckedChange:_,name:r,form:l,value:f,internal_do_not_use_render:({isFormControl:e})=>(0,c.FD)(c.FK,{children:[(0,c.Y)(T,{...s,ref:n,__scopeCheckbox:t}),e&&(0,c.Y)(R,{__scopeCheckbox:t})]})})});k.displayName=y;var O="CheckboxIndicator",C=r.forwardRef((e,n)=>{let{__scopeCheckbox:t,forceMount:r,...o}=e,i=w(O,t);return(0,c.Y)(d,{present:r||S(i.checked)||!0===i.checked,children:(0,c.Y)(h.span,{"data-state":P(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:n,style:{pointerEvents:"none",...e.style}})})});C.displayName=O;var A="CheckboxBubbleInput",R=r.forwardRef(({__scopeCheckbox:e,...n},t)=>{let{control:o,hasConsumerStoppedPropagationRef:i,checked:a,defaultChecked:f,required:s,disabled:d,name:p,value:v,form:m,bubbleInput:y,setBubbleInput:g}=w(A,e),b=u(t,g),N=(0,_.Z)(a),x=(0,l.X)(o);r.useEffect(()=>{if(!y)return;let e=Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype,"checked").set,n=!i.current;if(N!==a&&e){let t=new Event("click",{bubbles:n});y.indeterminate=S(a),e.call(y,!S(a)&&a),y.dispatchEvent(t)}},[y,N,a,i]);let E=r.useRef(!S(a)&&a);return(0,c.Y)(h.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??E.current,required:s,disabled:d,name:p,value:v,form:m,...n,tabIndex:-1,ref:b,style:{...n.style,...x,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});function S(e){return"indeterminate"===e}function P(e){return S(e)?"indeterminate":e?"checked":"unchecked"}R.displayName=A},4006:function(e,n,t){"use strict";t.d(n,{FD:()=>i,Y:()=>i,FK:()=>r.Fragment}),t(17402);var r=t(50172),o=0;function i(e,n,t,i,u,c){n||(n={});var a,f,_=n;if("ref"in _)for(f in _={},n)"ref"==f?a=n[f]:_[f]=n[f];var l={type:e,props:_,key:t,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--o,__i:-1,__u:0,__source:u,__self:c};if("function"==typeof e&&(a=e.defaultProps))for(f in a)void 0===_[f]&&(_[f]=a[f]);return r.options.vnode&&r.options.vnode(l),l}}}]);