/*! For license information please see 881.de15e495.js.LICENSE.txt */ (self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["881"],{47443:function(e,t,n){var r=n(42118);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1196:function(e){e.exports=function(e,t,n){for(var r=-1,u=null==e?0:e.length;++r=200&&(c=s,d=!1,t=new r(t));e:for(;++f=200){var h=t?null:a(e);if(h)return s(h);d=!1,f=o,g=new r}else g=t?[]:p;e:for(;++lr});let r=(0,n(36150).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},56743:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(36150).Z)("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},94734:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(36150).Z)("UserRoundCheck",[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]])},17520:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(36150).Z)("UserRoundX",[["path",{d:"M2 21a8 8 0 0 1 11.873-7",key:"74fkxq"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m17 17 5 5",key:"p7ous7"}],["path",{d:"m22 17-5 5",key:"gqnmv0"}]])},10844:function(e,t,n){"use strict";n.d(t,{Z:()=>r});let r=(0,n(36150).Z)("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]])},53250:function(e,t,n){"use strict";var r=n(98661),u="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useState,o=r.useEffect,a=r.useLayoutEffect,s=r.useDebugValue;function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!u(e,n)}catch(e){return!0}}var f="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),u=r[0].inst,f=r[1];return a(function(){u.value=n,u.getSnapshot=t,l(u)&&f({inst:u})},[e,n,t]),o(function(){return l(u)&&f({inst:u}),e(function(){l(u)&&f({inst:u})})},[e]),s(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:f},61688:function(e,t,n){"use strict";e.exports=n(53250)},16653:function(e,t,n){"use strict";n.d(t,{T:()=>a,h:()=>o});var r=n(98661),u=n(76396);let i=Symbol();function o(e,t=!0){return Object.assign(e,{[i]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,u.z)(e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)});return e.every(e=>null==e||(null==e?void 0:e[i]))?void 0:n}},4470:function(e,t,n){"use strict";let r,u;n.d(t,{AN:()=>s,l4:()=>l,oA:()=>h,sY:()=>f,yV:()=>g});var i=n(98661),o=n(23605),a=n(76984),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),l=((u=l||{})[u.Unmount=0]="Unmount",u[u.Hidden=1]="Hidden",u);function f({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:u,visible:i=!0,name:o,mergeRefs:s}){s=null!=s?s:d;let l=p(t,e);if(i)return c(l,n,r,o,s);let f=null!=u?u:0;if(2&f){let{static:e=!1,...t}=l;if(e)return c(t,n,r,o,s)}if(1&f){let{unmount:e=!0,...t}=l;return(0,a.E)(+!e,{0:()=>null,1:()=>c({...t,hidden:!0,style:{display:"none"}},n,r,o,s)})}return c(l,n,r,o,s)}function c(e,t={},n,r,u){let{as:a=n,children:s,refName:l="ref",...f}=v(e,["unmount","static"]),d=void 0!==e.ref?{[l]:e.ref}:{},g="function"==typeof s?s(t):s;"className"in f&&f.className&&"function"==typeof f.className&&(f.className=f.className(t));let m={};if(t){let e=!1,n=[];for(let[r,u]of Object.entries(t))"boolean"==typeof u&&(e=!0),!0===u&&n.push(r);e&&(m["data-headlessui-state"]=n.join(" "))}if(a===i.Fragment&&Object.keys(h(f)).length>0){if(!(0,i.isValidElement)(g)||Array.isArray(g)&&g.length>1)throw Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(e=>` - ${e}`).join(` `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(e=>` - ${e}`).join(` `)].join(` `));let e=g.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,o.A)(null==e?void 0:e.className(...t),f.className):(0,o.A)(null==e?void 0:e.className,f.className);return(0,i.cloneElement)(g,Object.assign({},p(g.props,h(v(f,["ref"]))),m,d,{ref:u(g.ref,d.ref)},t?{className:t}:{}))}return(0,i.createElement)(a,Object.assign({},v(f,["ref"]),a!==i.Fragment&&d,a!==i.Fragment&&m),g)}function d(...e){return e.every(e=>null==e)?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function p(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(e=>[e,void 0])));for(let e in n)Object.assign(t,{[e](t,...r){for(let u of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;u(t,...r)}}});return t}function g(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function h(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},69241:function(e,t,n){"use strict";n.d(t,{J$:()=>s,JG:()=>i.JG,MA:()=>i.MA,ZP:()=>l,kY:()=>i.kY});var r=n(98661),u=n(61688),i=n(76750);let o=r.default.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},s=i.$l.defineProperty(i.J$,"defaultValue",{value:i.u_}),l=(0,i.s6)((e,t,n)=>{let{cache:s,compare:l,suspense:f,fallbackData:c,revalidateOnMount:d,revalidateIfStale:p,refreshInterval:g,refreshWhenHidden:h,refreshWhenOffline:v,keepPreviousData:m}=n,[y,E,k,w]=i.DY.get(s),[b,j]=(0,i.qC)(e),R=(0,r.useRef)(!1),N=(0,r.useRef)(!1),x=(0,r.useRef)(b),V=(0,r.useRef)(t),O=(0,r.useRef)(n),S=()=>O.current,T=()=>S().isVisible()&&S().isOnline(),[L,A,C,_]=(0,i.JN)(s,b),P=(0,r.useRef)({}).current,Z=(0,i.o8)(c)?n.fallback[b]:c,F=(e,t)=>{for(let n in P)if("data"===n){if(!l(e[n],t[n])&&(!(0,i.o8)(e[n])||!l(H,t[n])))return!1}else if(t[n]!==e[n])return!1;return!0},M=(0,r.useMemo)(()=>{let e=!!b&&!!t&&((0,i.o8)(d)?!S().isPaused()&&!f&&(!!(0,i.o8)(p)||p):d),n=t=>{let n=(0,i.PM)(t);return(delete n._k,e)?{isValidating:!0,isLoading:!0,...n}:n},r=L(),u=_(),o=n(r),a=r===u?o:n(u),s=o;return[()=>{let e=n(L());return F(e,s)?(s.data=e.data,s.isLoading=e.isLoading,s.isValidating=e.isValidating,s.error=e.error,s):(s=e,e)},()=>a]},[s,b]),D=(0,u.useSyncExternalStore)((0,r.useCallback)(e=>C(b,(t,n)=>{F(n,t)||e()}),[s,b]),M[0],M[1]),I=!R.current,U=y[b]&&y[b].length>0,$=D.data,q=(0,i.o8)($)?Z:$,J=D.error,Y=(0,r.useRef)(q),H=m?(0,i.o8)($)?Y.current:$:q,z=(!U||!!(0,i.o8)(J))&&(I&&!(0,i.o8)(d)?d:!S().isPaused()&&(f?!(0,i.o8)(q)&&p:(0,i.o8)(q)||p)),W=!!(b&&t&&I&&z),G=(0,i.o8)(D.isValidating)?W:D.isValidating,X=(0,i.o8)(D.isLoading)?W:D.isLoading,B=(0,r.useCallback)(async e=>{let t,r;let u=V.current;if(!b||!u||N.current||S().isPaused())return!1;let o=!0,a=e||{},s=!k[b]||!a.dedupe,f=()=>i.w6?!N.current&&b===x.current&&R.current:b===x.current,c={isValidating:!1,isLoading:!1},d=()=>{A(c)},p=()=>{let e=k[b];e&&e[1]===r&&delete k[b]},g={isValidating:!0};(0,i.o8)(L().data)&&(g.isLoading=!0);try{if(s&&(A(g),n.loadingTimeout&&(0,i.o8)(L().data)&&setTimeout(()=>{o&&f()&&S().onLoadingSlow(b,n)},n.loadingTimeout),k[b]=[u(j),(0,i.u3)()]),[t,r]=k[b],t=await t,s&&setTimeout(p,n.dedupingInterval),!k[b]||k[b][1]!==r)return s&&f()&&S().onDiscarded(b),!1;c.error=i.i_;let e=E[b];if(!(0,i.o8)(e)&&(r<=e[0]||r<=e[1]||0===e[1]))return d(),s&&f()&&S().onDiscarded(b),!1;let a=L().data;c.data=l(a,t)?a:t,s&&f()&&S().onSuccess(t,b,n)}catch(n){p();let e=S(),{shouldRetryOnError:t}=e;!e.isPaused()&&(c.error=n,s&&f()&&(e.onError(n,b,e),(!0===t||(0,i.mf)(t)&&t(n))&&T()&&e.onErrorRetry(n,b,e,e=>{let t=y[b];t&&t[0]&&t[0](i.sj.ERROR_REVALIDATE_EVENT,e)},{retryCount:(a.retryCount||0)+1,dedupe:!0})))}return o=!1,d(),!0},[b,s]),K=(0,r.useCallback)((...e)=>(0,i.BN)(s,x.current,...e),[]);if((0,i.LI)(()=>{V.current=t,O.current=n,(0,i.o8)($)||(Y.current=$)}),(0,i.LI)(()=>{if(!b)return;let e=B.bind(i.i_,a),t=0,n=(0,i.ko)(b,y,(n,r={})=>{if(n==i.sj.FOCUS_EVENT){let n=Date.now();S().revalidateOnFocus&&n>t&&T()&&(t=n+S().focusThrottleInterval,e())}else if(n==i.sj.RECONNECT_EVENT)S().revalidateOnReconnect&&T()&&e();else if(n==i.sj.MUTATE_EVENT)return B();else if(n==i.sj.ERROR_REVALIDATE_EVENT)return B(r)});return N.current=!1,x.current=b,R.current=!0,A({_k:j}),z&&((0,i.o8)(q)||i.W6?e():(0,i.kw)(e)),()=>{N.current=!0,n()}},[b]),(0,i.LI)(()=>{let e;function t(){let t=(0,i.mf)(g)?g(L().data):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){!L().error&&(h||S().isVisible())&&(v||S().isOnline())?B(a).then(t):t()}return t(),()=>{e&&(clearTimeout(e),e=-1)}},[g,h,v,b]),(0,r.useDebugValue)(H),f&&(0,i.o8)(q)&&b){if(!i.w6&&i.W6)throw Error("Fallback data is required when using suspense in SSR.");V.current=t,O.current=n,N.current=!1;let e=w[b];if((0,i.o8)(e)||o(K(e)),(0,i.o8)(J)){let e=B(a);(0,i.o8)(H)||(e.status="fulfilled",e.value=!0),o(e)}else throw J}return{mutate:K,get data(){return P.data=!0,H},get error(){return P.error=!0,J},get isValidating(){return P.isValidating=!0,G},get isLoading(){return P.isLoading=!0,X}}})}}]); //# sourceMappingURL=881.de15e495.js.map