!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]="7121ed62-ba1f-40f9-8c62-4446c4f14f82",e._sentryDebugIdIdentifier="sentry-dbid-7121ed62-ba1f-40f9-8c62-4446c4f14f82")}catch(e){}}(),(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["1494"],{6498:function(e,t,r){e.exports=r(42e3)(function(e,t,r){e[+!r].push(t)},function(){return[[],[]]})},11167:function(e,t,r){"use strict";r.d(t,{BE:()=>H,Es:()=>k,Ht:()=>z,Tk:()=>F,Tn:()=>l,X3:()=>S,ZH:()=>i,aw:()=>$,b0:()=>a,bZ:()=>y,bu:()=>A,dO:()=>T,iX:()=>J,lK:()=>L,lg:()=>x,mF:()=>P,mf:()=>R,qm:()=>Y,qv:()=>u,r9:()=>w,rL:()=>c,sb:()=>M,uv:()=>B});var n=r(96540);let o=()=>{},i=o(),u=Object,a=e=>e===i,l=e=>"function"==typeof e,c=(e,t)=>({...e,...t}),s=new WeakMap,f=0,d=e=>{let t,r,n=typeof e,o=e&&e.constructor,i=o==Date;if(u(e)!==e||i||o==RegExp)t=i?e.toJSON():"symbol"==n?e.toString():"string"==n?JSON.stringify(e):""+e;else{if(t=s.get(e))return t;if(t=++f+"~",s.set(e,t),o==Array){for(r=0,t="@";r{let r=y.get(e);return[()=>!a(t)&&e.get(t)||b,n=>{if(!a(t)){let o=e.get(t);t in p||(p[t]=o),r[5](t,c(o,n),o||b)}},r[6],()=>!a(t)&&t in p?p[t]:!a(t)&&e.get(t)||b]},E=!0,[m,_]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[o,o],O={initFocus:e=>(v&&document.addEventListener("visibilitychange",e),m("focus",e),()=>{v&&document.removeEventListener("visibilitychange",e),_("focus",e)}),initReconnect:e=>{let t=()=>{E=!0,e()},r=()=>{E=!1};return m("online",t),m("offline",r),()=>{_("online",t),_("offline",r)}}},T=!n.useId,S=!g||"Deno"in window,R=e=>g&&typeof window.requestAnimationFrame!=h?window.requestAnimationFrame(e):setTimeout(e,1),k=S?n.useEffect:n.useLayoutEffect,V="undefined"!=typeof navigator&&navigator.connection,I=!S&&V&&(["slow-2g","2g"].includes(V.effectiveType)||V.saveData),L=e=>{if(l(e))try{e=e()}catch(t){e=""}let t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?d(e):"",t]},C=0,x=()=>++C;var A={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:2,RECONNECT_EVENT:1};async function P(...e){let[t,r,n,o]=e,u=c({populateCache:!0,throwOnError:!0},"boolean"==typeof o?{revalidate:o}:o||{}),s=u.populateCache,f=u.rollbackOnError,d=u.optimisticData,b=!1!==u.revalidate,p=u.throwOnError;if(l(r)){let e=[];for(let n of t.keys())!/^\$(inf|sub)\$/.test(n)&&r(t.get(n)._k)&&e.push(n);return Promise.all(e.map(h))}return h(r);async function h(r){let o,[u]=L(r);if(!u)return;let[c,h]=w(t,u),[g,v,E,m]=y.get(t),_=g[u],O=()=>b&&(delete E[u],delete m[u],_&&_[0])?_[0](2).then(()=>c().data):c().data;if(e.length<3)return O();let T=n,S=x();v[u]=[S,0];let R=!a(d),k=c(),V=k.data,I=k._c,C=a(I)?V:I;if(R&&h({data:d=l(d)?d(C,V):d,_c:C}),l(T))try{T=T(C)}catch(e){o=e}if(T&&l(T.then)){let e;if(T=await T.catch(e=>{o=e}),S!==v[u][0]){if(o)throw o;return T}o&&R&&(e=o,"function"==typeof f?f(e):!1!==f)&&(s=!0,h({data:T=C,_c:i}))}s&&!o&&(l(s)&&(T=s(T,C)),h({data:T,error:i,_c:i})),v[u][1]=x();let A=await O();if(h({_c:i}),o){if(p)throw o;return}return s?A:T}}let D=(e,t)=>{for(let r in e)e[r][0]&&e[r][0](t)},N=(e,t)=>{if(!y.has(e)){let r=c(O,t),n={},u=P.bind(i,e),a=o,l={},s=(e,t)=>{let r=l[e]||[];return l[e]=r,r.push(t),()=>r.splice(r.indexOf(t),1)},f=(t,r,n)=>{e.set(t,r);let o=l[t];if(o)for(let e of o)e(r,n)},d=()=>{if(!y.has(e)&&(y.set(e,[n,{},{},{},u,f,s]),!S)){let t=r.initFocus(setTimeout.bind(i,D.bind(i,n,0))),o=r.initReconnect(setTimeout.bind(i,D.bind(i,n,1)));a=()=>{t&&t(),o&&o(),y.delete(e)}}};return d(),[e,u,d,a]}return[e,y.get(e)[4]]},[j,F]=N(new Map),M=c({onLoadingSlow:o,onSuccess:o,onError:o,onErrorRetry:(e,t,r,n,o)=>{let i=r.errorRetryCount,u=o.retryCount,l=~~((Math.random()+.5)*(1<<(u<8?u:8)))*r.errorRetryInterval;(a(i)||!(u>i))&&setTimeout(n,l,o)},onDiscarded:o,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:I?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:I?5e3:3e3,compare:(e,t)=>d(e)==d(t),isPaused:()=>!1,cache:j,mutate:F,fallback:{}},{isOnline:()=>E,isVisible:()=>{let e=v&&document.visibilityState;return a(e)||"hidden"!==e}}),q=(e,t)=>{let r=c(e,t);if(t){let{use:n,fallback:o}=e,{use:i,fallback:u}=t;n&&i&&(r.use=n.concat(i)),o&&u&&(r.fallback=c(o,u))}return r},X=(0,n.createContext)({}),H=e=>{let{value:t}=e,r=(0,n.useContext)(X),o=l(t),u=(0,n.useMemo)(()=>o?t(r):t,[o,r,t]),a=(0,n.useMemo)(()=>o?u:q(r,u),[o,r,u]),s=u&&u.provider,f=(0,n.useRef)(i);s&&!f.current&&(f.current=N(s(a.cache||j),u));let d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),k(()=>{if(d)return d[2]&&d[2](),d[3]},[]),(0,n.createElement)(X.Provider,c(e,{value:a}))},U=g&&window.__SWR_DEVTOOLS_USE__,W=U?window.__SWR_DEVTOOLS_USE__:[],Z=e=>l(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],J=()=>c(M,(0,n.useContext)(X)),B=(e,t)=>{let[r,n]=L(e),[,,,o]=y.get(j);if(o[r])return o[r];let i=t(n);return o[r]=i,i},K=W.concat(e=>(t,r,n)=>{let o=r&&((...e)=>{let[n]=L(t),[,,,o]=y.get(j),i=o[n];return a(i)?r(...e):(delete o[n],i)});return e(t,o,n)}),Y=e=>function(...t){let r=J(),[n,o,i]=Z(t),u=q(r,i),a=e,{use:l}=u,c=(l||[]).concat(K);for(let e=c.length;e--;)a=c[e](a);return a(n,o||u.fetcher||null,u)},$=(e,t,r)=>{let n=t[e]||(t[e]=[]);return n.push(r),()=>{let e=n.indexOf(r);e>=0&&(n[e]=n[n.length-1],n.pop())}},z=(e,t)=>(...r)=>{let[n,o,i]=Z(r),u=(i.use||[]).concat(t);return e(n,o,{...i,use:u})};U&&(window.__SWR_DEVTOOLS_REACT__=n)},25250:function(e,t,r){"use strict";r.d(t,{Ay:()=>l,Tk:()=>i.Tk,iX:()=>i.iX,uv:()=>i.uv});var n=r(96540),o=r(19888),i=r(11167);let u=n.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;if("rejected"===e.status)throw e.reason;throw e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}),e}),a={dedupe:!0};i.qv.defineProperty(i.BE,"defaultValue",{value:i.sb});let l=(0,i.qm)((e,t,r)=>{let{cache:l,compare:c,suspense:s,fallbackData:f,revalidateOnMount:d,revalidateIfStale:y,refreshInterval:b,refreshWhenHidden:p,refreshWhenOffline:h,keepPreviousData:g}=r,[v,w,E,m]=i.bZ.get(l),[_,O]=(0,i.lK)(e),T=(0,n.useRef)(!1),S=(0,n.useRef)(!1),R=(0,n.useRef)(_),k=(0,n.useRef)(t),V=(0,n.useRef)(r),I=()=>V.current.isVisible()&&V.current.isOnline(),[L,C,x,A]=(0,i.r9)(l,_),P=(0,n.useRef)({}).current,D=(0,i.b0)(f)?r.fallback[_]:f,N=(e,t)=>{for(let r in P)if("data"===r){if(!c(e[r],t[r])&&(!(0,i.b0)(e[r])||!c(Z,t[r])))return!1}else if(t[r]!==e[r])return!1;return!0},j=(0,n.useMemo)(()=>{let e=!!_&&!!t&&((0,i.b0)(d)?!V.current.isPaused()&&!s&&(!!(0,i.b0)(y)||y):d),r=t=>{let r=(0,i.rL)(t);return(delete r._k,e)?{isValidating:!0,isLoading:!0,...r}:r},n=L(),o=A(),u=r(n),a=n===o?u:r(o),l=u;return[()=>{let e=r(L());return N(e,l)?(l.data=e.data,l.isLoading=e.isLoading,l.isValidating=e.isValidating,l.error=e.error,l):(l=e,e)},()=>a]},[l,_]),F=(0,o.useSyncExternalStore)((0,n.useCallback)(e=>x(_,(t,r)=>{N(r,t)||e()}),[l,_]),j[0],j[1]),M=!T.current,q=v[_]&&v[_].length>0,X=F.data,H=(0,i.b0)(X)?D:X,U=F.error,W=(0,n.useRef)(H),Z=g?(0,i.b0)(X)?W.current:X:H,J=(!q||!!(0,i.b0)(U))&&(M&&!(0,i.b0)(d)?d:!V.current.isPaused()&&(s?!(0,i.b0)(H)&&y:(0,i.b0)(H)||y)),B=!!(_&&t&&M&&J),K=(0,i.b0)(F.isValidating)?B:F.isValidating,Y=(0,i.b0)(F.isLoading)?B:F.isLoading,$=(0,n.useCallback)(async e=>{let t,n,o=k.current;if(!_||!o||S.current||V.current.isPaused())return!1;let u=!0,a=e||{},l=!E[_]||!a.dedupe,s=()=>i.dO?!S.current&&_===R.current&&T.current:_===R.current,f={isValidating:!1,isLoading:!1},d=()=>{C(f)},y=()=>{let e=E[_];e&&e[1]===n&&delete E[_]},b={isValidating:!0};(0,i.b0)(L().data)&&(b.isLoading=!0);try{if(l&&(C(b),r.loadingTimeout&&(0,i.b0)(L().data)&&setTimeout(()=>{u&&s()&&V.current.onLoadingSlow(_,r)},r.loadingTimeout),E[_]=[o(O),(0,i.lg)()]),[t,n]=E[_],t=await t,l&&setTimeout(y,r.dedupingInterval),!E[_]||E[_][1]!==n)return l&&s()&&V.current.onDiscarded(_),!1;f.error=i.ZH;let e=w[_];if(!(0,i.b0)(e)&&(n<=e[0]||n<=e[1]||0===e[1]))return d(),l&&s()&&V.current.onDiscarded(_),!1;let a=L().data;f.data=c(a,t)?a:t,l&&s()&&V.current.onSuccess(t,_,r)}catch(r){y();let e=V.current,{shouldRetryOnError:t}=e;!e.isPaused()&&(f.error=r,l&&s()&&(e.onError(r,_,e),(!0===t||(0,i.Tn)(t)&&t(r))&&I()&&e.onErrorRetry(r,_,e,e=>{let t=v[_];t&&t[0]&&t[0](i.bu.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return u=!1,d(),!0},[_,l]),z=(0,n.useCallback)((...e)=>(0,i.mF)(l,R.current,...e),[]);if((0,i.Es)(()=>{k.current=t,V.current=r,(0,i.b0)(X)||(W.current=X)}),(0,i.Es)(()=>{if(!_)return;let e=$.bind(i.ZH,a),t=0,r=(0,i.aw)(_,v,(r,n={})=>{if(r==i.bu.FOCUS_EVENT){let r=Date.now();V.current.revalidateOnFocus&&r>t&&I()&&(t=r+V.current.focusThrottleInterval,e())}else if(r==i.bu.RECONNECT_EVENT)V.current.revalidateOnReconnect&&I()&&e();else if(r==i.bu.MUTATE_EVENT)return $();else if(r==i.bu.ERROR_REVALIDATE_EVENT)return $(n)});return S.current=!1,R.current=_,T.current=!0,C({_k:O}),J&&((0,i.b0)(H)||i.X3?e():(0,i.mf)(e)),()=>{S.current=!0,r()}},[_]),(0,i.Es)(()=>{let e;function t(){let t=(0,i.Tn)(b)?b(L().data):b;t&&-1!==e&&(e=setTimeout(r,t))}function r(){!L().error&&(p||V.current.isVisible())&&(h||V.current.isOnline())?$(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[b,p,h,_]),(0,n.useDebugValue)(Z),s&&(0,i.b0)(H)&&_){if(!i.dO&&i.X3)throw Error("Fallback data is required when using suspense in SSR.");k.current=t,V.current=r,S.current=!1;let e=m[_];if((0,i.b0)(e)||u(z(e)),(0,i.b0)(U)){let e=$(a);(0,i.b0)(Z)||(e.status="fulfilled",e.value=!0),u(e)}else throw U}return{mutate:z,get data(){return P.data=!0,Z},get error(){return P.error=!0,U},get isValidating(){return P.isValidating=!0,K},get isLoading(){return P.isLoading=!0,Y}}})},5243:function(e,t,r){"use strict";r.d(t,{AQ:()=>y,C6:()=>o,Cl:()=>i,Ju:()=>c,N3:()=>d,Tt:()=>u,YH:()=>l,fX:()=>f,sH:()=>a,xN:()=>b,zs:()=>s});var n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;rt.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);ot.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function a(e,t,r,n){return new(r||(r=Promise))(function(o,i){function u(e){try{l(n.next(e))}catch(e){i(e)}}function a(e){try{l(n.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?o(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(u,a)}l((n=n.apply(e,t||[])).next())})}function l(e,t){var r,n,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=a(0),u.throw=a(1),u.return=a(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(a){return function(l){var c=[a,l];if(r)throw TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),u=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function f(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o1||a(e,t)})},t&&(n[e]=t(n[e])))}function a(e,t){try{var r;(r=o[e](t)).value instanceof d?Promise.resolve(r.value.v).then(l,c):s(i[0][2],r)}catch(e){s(i[0][3],e)}}function l(e){a("next",e)}function c(e){a("throw",e)}function s(e,t){e(t),i.shift(),i.length&&a(i[0][0],i[0][1])}}function b(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=c(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,o){var i,u,a;i=n,u=o,a=(t=e[r](t)).done,Promise.resolve(t.value).then(function(e){i({value:e,done:a})},u)})}}}}}]);