(self.webpackChunksubstack=self.webpackChunksubstack||[]).push([["135"],{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,o=null==e?0:e.length;++r=200&&(f=l,d=!1,t=new r(t));e:for(;++s=200){var v=t?null:a(e);if(v)return l(v);d=!1,s=i,m=new r}else m=t?[]:p;e:for(;++cr});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]])},25380:function(e,t,n){"use strict";n.d(t,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */let r=(0,n(36150).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},94734:function(e,t,n){"use strict";n.d(t,{Z:()=>r});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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});/** * @license lucide-preact v0.453.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */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"}]])},88388:function(e,t,n){"use strict";n.d(t,{ht:()=>M});/*! * tabbable 6.2.0 * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE */var r=/^(1588|1691|2536|4457)$/.test(n.j)?null:["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],o=/^(1588|1691|2536|4457)$/.test(n.j)?null:r.join(","),u="undefined"==typeof Element,i=u?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,a=!u&&Element.prototype.getRootNode?function(e){var t;return null==e?void 0:null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){void 0===n&&(n=!0);var r,o=null==t?void 0:null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===o||"true"===o||n&&t&&e(t.parentNode)},c=function(e){var t,n=null==e?void 0:null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n},s=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&i.call(e,o)&&r.unshift(e),r=r.filter(n)},f=function e(t,n,r){for(var u=[],a=Array.from(t);a.length;){var c=a.shift();if(!l(c,!1)){if("SLOT"===c.tagName){var s=c.assignedElements(),f=e(s.length?s:c.children,!0,r);r.flatten?u.push.apply(u,f):u.push({scopeParent:c,candidates:f})}else{i.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&u.push(c);var d=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(d,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(d&&p){var m=e(!0===d?c.children:d.children,!0,r);r.flatten?u.push.apply(u,m):u.push({scopeParent:c,candidates:m})}else a.unshift.apply(a,c.children)}}}return u},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},p=function(e){if(!e)throw Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||c(e))&&!d(e)?0:e.tabIndex},m=function(e,t){var n=p(e);return n<0&&t&&!d(e)?0:n},v=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},y=function(e,t){for(var n=0;nsummary:first-of-type")?e.parentElement:e;if(i.call(o,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return E(e)}else{if("function"==typeof r){for(var u=e;e;){var l=e.parentElement,c=a(e);if(l&&!l.shadowRoot&&!0===r(l))return E(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=u}if(w(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1},x=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;np(t))&&!!R(e,t)},T=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!isNaN(t)||!!(t>=0)},N=function e(t){var n=[],r=[];return t.forEach(function(t,o){var u=!!t.scopeParent,i=u?t.scopeParent:t,a=m(i,u),l=u?e(t.candidates):i;0===a?u?n.push.apply(n,l):n.push(i):r.push({documentOrder:o,tabIndex:a,item:t,isScope:u,content:l})}),r.sort(v).reduce(function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e},[]).concat(n)},M=function(e,t){var n;return N((t=t||{}).getShadowRoot?f([e],t.includeContainer,{filter:I.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:T}):s(e,t.includeContainer,I.bind(null,t)))}},53250:function(e,t,n){"use strict";/** * @license React * use-sync-external-store-shim.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(98661),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},u=r.useState,i=r.useEffect,a=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch(e){return!0}}var s="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=u({inst:{value:n,getSnapshot:t}}),o=r[0].inst,s=r[1];return a(function(){o.value=n,o.getSnapshot=t,c(o)&&s({inst:o})},[e,n,t]),i(function(){return c(o)&&s({inst:o}),e(function(){c(o)&&s({inst:o})})},[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:s},61688:function(e,t,n){"use strict";e.exports=n(53250)},78493:function(e,t,n){"use strict";if(n.d(t,{RR:()=>d,YF:()=>s,cv:()=>f,dp:()=>p}),!/^(1588|1691|2536|4457)$/.test(n.j))var r=n(93920);var o=n(98661),u=/^(1588|1691|2536|4457)$/.test(n.j)?null:"undefined"!=typeof document?o.useLayoutEffect:o.useEffect;function i(e,t){let n,r,o;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(r=n;0!=r--;)if(!i(e[r],t[r]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!({}).hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){let n=o[r];if(("_owner"!==n||!e.$$typeof)&&!i(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function a(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function l(e,t){let n=a(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return u(()=>{t.current=e}),t}function s(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:s=[],platform:f,elements:{reference:d,floating:p}={},transform:m=!0,whileElementsMounted:v,open:h}=e,[y,g]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=o.useState(s);i(b,s)||w(s);let[E,S]=o.useState(null),[x,R]=o.useState(null),I=o.useCallback(e=>{e!==P.current&&(P.current=e,S(e))},[]),T=o.useCallback(e=>{e!==k.current&&(k.current=e,R(e))},[]),N=d||E,M=p||x,P=o.useRef(null),k=o.useRef(null),D=o.useRef(y),A=null!=v,F=c(v),O=c(f),L=c(h),C=o.useCallback(()=>{if(!P.current||!k.current)return;let e={placement:t,strategy:n,middleware:b};O.current&&(e.platform=O.current),(0,r.oo)(P.current,k.current,e).then(e=>{let t={...e,isPositioned:!1!==L.current};j.current&&!i(D.current,t)&&(D.current=t,o.flushSync(()=>{g(t)}))})},[b,t,n,O,L]);u(()=>{!1===h&&D.current.isPositioned&&(D.current.isPositioned=!1,g(e=>({...e,isPositioned:!1})))},[h]);let j=o.useRef(!1);u(()=>(j.current=!0,()=>{j.current=!1}),[]),u(()=>{if(N&&(P.current=N),M&&(k.current=M),N&&M){if(F.current)return F.current(N,M,C);C()}},[N,M,C,F,A]);let $=o.useMemo(()=>({reference:P,floating:k,setReference:I,setFloating:T}),[I,T]),U=o.useMemo(()=>({reference:N,floating:M}),[N,M]),_=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!U.floating)return e;let t=l(U.floating,y.x),r=l(U.floating,y.y);return m?{...e,transform:"translate("+t+"px, "+r+"px)",...a(U.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,m,U.floating,y.x,y.y]);return o.useMemo(()=>({...y,update:C,refs:$,elements:U,floatingStyles:_}),[y,C,$,U,_])}let f=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),d=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),p=(e,t)=>({...(0,r.dp)(e),options:[e,t]})},31720:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function u(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function i(e){var t;return null==(t=(a(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function a(e){return!!r()&&(e instanceof Node||e instanceof u(e).Node)}function l(e){return!!r()&&(e instanceof Element||e instanceof u(e).Element)}function c(e){return!!r()&&(e instanceof HTMLElement||e instanceof u(e).HTMLElement)}function s(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof u(e).ShadowRoot)}function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=y(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function d(e){return["table","td","th"].includes(o(e))}function p(e){let t=v(),n=l(e)?y(e):e;return["transform","translate","scale","rotate","perspective"].some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function m(e){let t=b(e);for(;c(t)&&!h(t);){if(p(t))return t;if(function(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch(e){return!1}})}(t))break;t=b(t)}return null}function v(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}function h(e){return["html","body","#document"].includes(o(e))}function y(e){return u(e).getComputedStyle(e)}function g(e){return l(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function b(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||s(e)&&e.host||i(e);return s(t)?t.host:t}n.d(t,{Dx:()=>y,Jj:()=>u,Kx:()=>function e(t,n,r){var o,i;void 0===n&&(n=[]),void 0===r&&(r=!0);let a=function e(t){let n=b(t);return h(n)?t.ownerDocument?t.ownerDocument.body:t.body:c(n)&&f(n)?n:e(n)}(t),l=a===(null==(o=t.ownerDocument)?void 0:o.body),s=u(a);if(l){let t=(i=s).parent&&Object.getPrototypeOf(i.parent)?i.frameElement:null;return n.concat(s,s.visualViewport||[],f(a)?a:[],t&&r?e(t):[])}return n.concat(a,e(a,[],r))},Lw:()=>g,Ow:()=>b,Pf:()=>v,Py:()=>h,Re:()=>c,Ze:()=>d,Zq:()=>s,ao:()=>f,gQ:()=>m,hT:()=>p,kK:()=>l,tF:()=>i,wk:()=>o})},81528:function(e,t,n){"use strict";n.d(t,{Fp:()=>o,GW:()=>i,NM:()=>u,VV:()=>r,ze:()=>a});let r=/^(1588|1691|2536|4457)$/.test(n.j)?null:Math.min,o=/^(1588|1691|2536|4457)$/.test(n.j)?null:Math.max,u=/^(1588|1691|2536|4457)$/.test(n.j)?null:Math.round,i=/^(1588|1691|2536|4457)$/.test(n.j)?null:Math.floor,a=e=>({x:e,y:e})},35521:function(e,t,n){"use strict";let r;n.d(t,{R:()=>o});var o=((r=o||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},55585:function(e,t,n){"use strict";let r,o,u;n.d(t,{v:()=>j});var i=n(98661),a=n(28842),l=n(76396),c=n(16457),s=n(98790),f=n(55068),d=n(72146),p=n(45514),m=n(16653),v=n(42715),h=n(57511),y=n(64897),g=n(27737),b=n(17714),w=n(5181),E=n(98652),S=n(43149),x=n(76984),R=n(4470),I=n(35521),T=((r=T||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),N=((o=N||{})[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o),M=((u=M||{})[u.OpenMenu=0]="OpenMenu",u[u.CloseMenu=1]="CloseMenu",u[u.GoToItem=2]="GoToItem",u[u.Search=3]="Search",u[u.ClearSearch=4]="ClearSearch",u[u.RegisterItem=5]="RegisterItem",u[u.UnregisterItem=6]="UnregisterItem",u);function P(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,S.z2)(t(e.items.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{items:r,activeItemIndex:o}}let k={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n;let r=P(e),o=(0,w.d)(t,{resolveItems:()=>r.items,resolveActiveIndex:()=>r.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...e,...r,searchQuery:"",activeItemIndex:o,activationTrigger:null!=(n=t.trigger)?n:1}},3:(e,t)=>{let n=+(""===e.searchQuery),r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled}),u=o?e.items.indexOf(o):-1;return -1===u||u===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:u,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=P(e,e=>[...e,{id:t.id,dataRef:t.dataRef}]);return{...e,...n}},6:(e,t)=>{let n=P(e,e=>{let n=e.findIndex(e=>e.id===t.id);return -1!==n&&e.splice(n,1),e});return{...e,...n,activationTrigger:1}}},D=(0,i.createContext)(null);function A(e){let t=(0,i.useContext)(D);if(null===t){let t=Error(`<${e} /> is missing a parent component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,A),t}return t}function F(e,t){return(0,x.E)(t.type,k,e,t)}D.displayName="MenuContext";let O=i.Fragment,L=R.AN.RenderStrategy|R.AN.Static,C=i.Fragment,j=Object.assign((0,R.yV)(function(e,t){let{__demoMode:n=!1,...r}=e,o=(0,i.useReducer)(F,{__demoMode:n,menuState:+!n,buttonRef:(0,i.createRef)(),itemsRef:(0,i.createRef)(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:u,itemsRef:a,buttonRef:c},s]=o,d=(0,m.T)(t);(0,f.O)([c,a],(e,t)=>{var n;s({type:1}),(0,S.sP)(t,S.tJ.Loose)||(e.preventDefault(),null==(n=c.current)||n.focus())},0===u);let p=(0,l.z)(()=>{s({type:1})}),v=(0,i.useMemo)(()=>({open:0===u,close:p}),[u,p]);return i.default.createElement(D.Provider,{value:o},i.default.createElement(g.up,{value:(0,x.E)(u,{0:g.ZM.Open,1:g.ZM.Closed})},(0,R.sY)({ourProps:{ref:d},theirProps:r,slot:v,defaultTag:O,name:"Menu"})))}),{Button:(0,R.yV)(function(e,t){var n;let r=(0,c.M)(),{id:o=`headlessui-menu-button-${r}`,...u}=e,[s,f]=A("Menu.Button"),d=(0,m.T)(s.buttonRef,t),v=(0,a.G)(),h=(0,l.z)(e=>{switch(e.key){case I.R.Space:case I.R.Enter:case I.R.ArrowDown:e.preventDefault(),e.stopPropagation(),f({type:0}),v.nextFrame(()=>f({type:2,focus:w.T.First}));break;case I.R.ArrowUp:e.preventDefault(),e.stopPropagation(),f({type:0}),v.nextFrame(()=>f({type:2,focus:w.T.Last}))}}),y=(0,l.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),g=(0,l.z)(t=>{if((0,b.P)(t.currentTarget))return t.preventDefault();e.disabled||(0===s.menuState?(f({type:1}),v.nextFrame(()=>{var e;return null==(e=s.buttonRef.current)?void 0:e.focus({preventScroll:!0})})):(t.preventDefault(),f({type:0})))}),E=(0,i.useMemo)(()=>({open:0===s.menuState}),[s]),S={ref:d,id:o,type:(0,p.f)(e,s.buttonRef),"aria-haspopup":"menu","aria-controls":null==(n=s.itemsRef.current)?void 0:n.id,"aria-expanded":0===s.menuState,onKeyDown:h,onKeyUp:y,onClick:g};return(0,R.sY)({ourProps:S,theirProps:u,slot:E,defaultTag:"button",name:"Menu.Button"})}),Items:(0,R.yV)(function(e,t){var n,r;let o=(0,c.M)(),{id:u=`headlessui-menu-items-${o}`,...s}=e,[f,p]=A("Menu.Items"),v=(0,m.T)(f.itemsRef,t),h=(0,d.i)(f.itemsRef),b=(0,a.G)(),x=(0,g.oJ)(),T=null!==x?(x&g.ZM.Open)===g.ZM.Open:0===f.menuState;(0,i.useEffect)(()=>{let e=f.itemsRef.current;e&&0===f.menuState&&e!==(null==h?void 0:h.activeElement)&&e.focus({preventScroll:!0})},[f.menuState,f.itemsRef,h]),(0,y.B)({container:f.itemsRef.current,enabled:0===f.menuState,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let N=(0,l.z)(e=>{var t,n;switch(b.dispose(),e.key){case I.R.Space:if(""!==f.searchQuery)return e.preventDefault(),e.stopPropagation(),p({type:3,value:e.key});case I.R.Enter:if(e.preventDefault(),e.stopPropagation(),p({type:1}),null!==f.activeItemIndex){let{dataRef:e}=f.items[f.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}(0,S.wI)(f.buttonRef.current);break;case I.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:w.T.Next});case I.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:w.T.Previous});case I.R.Home:case I.R.PageUp:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:w.T.First});case I.R.End:case I.R.PageDown:return e.preventDefault(),e.stopPropagation(),p({type:2,focus:w.T.Last});case I.R.Escape:e.preventDefault(),e.stopPropagation(),p({type:1}),(0,E.k)().nextFrame(()=>{var e;return null==(e=f.buttonRef.current)?void 0:e.focus({preventScroll:!0})});break;case I.R.Tab:e.preventDefault(),e.stopPropagation(),p({type:1}),(0,E.k)().nextFrame(()=>{(0,S.EO)(f.buttonRef.current,e.shiftKey?S.TO.Previous:S.TO.Next)});break;default:1===e.key.length&&(p({type:3,value:e.key}),b.setTimeout(()=>p({type:4}),350))}}),M=(0,l.z)(e=>{e.key===I.R.Space&&e.preventDefault()}),P=(0,i.useMemo)(()=>({open:0===f.menuState}),[f]),k={"aria-activedescendant":null===f.activeItemIndex||null==(n=f.items[f.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=f.buttonRef.current)?void 0:r.id,id:u,onKeyDown:N,onKeyUp:M,role:"menu",tabIndex:0,ref:v};return(0,R.sY)({ourProps:k,theirProps:s,slot:P,defaultTag:"div",features:L,visible:T,name:"Menu.Items"})}),Item:(0,R.yV)(function(e,t){let n,r,o=(0,c.M)(),{id:u=`headlessui-menu-item-${o}`,disabled:a=!1,...f}=e,[d,p]=A("Menu.Item"),y=null!==d.activeItemIndex&&d.items[d.activeItemIndex].id===u,g=(0,i.useRef)(null),b=(0,m.T)(t,g);(0,s.e)(()=>{if(d.__demoMode||0!==d.menuState||!y||0===d.activationTrigger)return;let e=(0,E.k)();return e.requestAnimationFrame(()=>{var e,t;null==(t=null==(e=g.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}),e.dispose},[d.__demoMode,g,y,d.menuState,d.activationTrigger,d.activeItemIndex]);let x=(n=(0,i.useRef)(""),r=(0,i.useRef)(""),(0,l.z)(()=>{let e=g.current;if(!e)return"";let t=e.innerText;if(n.current===t)return r.current;let o=(0,v.U)(e).trim().toLowerCase();return n.current=t,r.current=o,o})),I=(0,i.useRef)({disabled:a,domRef:g,get textValue(){return x()}});(0,s.e)(()=>{I.current.disabled=a},[I,a]),(0,s.e)(()=>(p({type:5,id:u,dataRef:I}),()=>p({type:6,id:u})),[I,u]);let T=(0,l.z)(()=>{p({type:1})}),N=(0,l.z)(e=>{if(a)return e.preventDefault();p({type:1}),(0,S.wI)(d.buttonRef.current)}),M=(0,l.z)(()=>{if(a)return p({type:2,focus:w.T.Nothing});p({type:2,focus:w.T.Specific,id:u})}),P=(0,h.g)(),k=(0,l.z)(e=>P.update(e)),D=(0,l.z)(e=>{P.wasMoved(e)&&(a||y||p({type:2,focus:w.T.Specific,id:u,trigger:0}))}),F=(0,l.z)(e=>{P.wasMoved(e)&&(a||y&&p({type:2,focus:w.T.Nothing}))}),O=(0,i.useMemo)(()=>({active:y,disabled:a,close:T}),[y,a,T]);return(0,R.sY)({ourProps:{id:u,ref:b,role:"menuitem",tabIndex:!0===a?void 0:-1,"aria-disabled":!0===a||void 0,disabled:void 0,onClick:N,onFocus:M,onPointerEnter:k,onMouseEnter:k,onPointerMove:D,onMouseMove:D,onPointerLeave:F,onMouseLeave:F},theirProps:f,slot:O,defaultTag:C,name:"Menu.Item"})})})},72840:function(e,t,n){"use strict";n.d(t,{I:()=>u});var r=n(98661),o=n(43090);function u(e,t,n){let u=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){u.current(e)}return document.addEventListener(e,t,n),()=>document.removeEventListener(e,t,n)},[e,n])}},16457:function(e,t,n){"use strict";n.d(t,{M:()=>l});var r,o=n(98661),u=n(49581),i=n(98790),a=n(301);let l=null!=(r=o.default.useId)?r:function(){let e=(0,a.H)(),[t,n]=o.default.useState(e?()=>u.O.nextId():null);return(0,i.e)(()=>{null===t&&n(u.O.nextId())},[t]),null!=t?""+t:void 0}},55068:function(e,t,n){"use strict";n.d(t,{O:()=>l});var r=n(98661);if(!/^(1588|1691|2536|4457)$/.test(n.j))var o=n(43149);if(!/^(1588|1691|2536|4457)$/.test(n.j))var u=n(7137);if(!/^(1588|1691|2536|4457)$/.test(n.j))var i=n(72840);if(!/^(1588|1691|2536|4457)$/.test(n.j))var a=n(50579);function l(e,t,n=!0){let c=(0,r.useRef)(!1);function s(n,r){if(!c.current||n.defaultPrevented)return;let u=r(n);if(null!==u&&u.getRootNode().contains(u)&&u.isConnected){for(let t of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(e)){if(null===t)continue;let e=t instanceof HTMLElement?t:t.current;if(null!=e&&e.contains(u)||n.composed&&n.composedPath().includes(e))return}return(0,o.sP)(u,o.tJ.Loose)||-1===u.tabIndex||n.preventDefault(),t(n,u)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{c.current=n})},[n]);let f=(0,r.useRef)(null);(0,i.I)("pointerdown",e=>{var t,n;c.current&&(f.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),(0,i.I)("mousedown",e=>{var t,n;c.current&&(f.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),(0,i.I)("click",e=>{(0,u.tq)()||f.current&&(s(e,()=>f.current),f.current=null)},!0),(0,i.I)("touchend",e=>s(e,()=>e.target instanceof HTMLElement?e.target:null),!0),(0,a.s)("blur",e=>s(e,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},72146:function(e,t,n){"use strict";n.d(t,{i:()=>u});var r=n(98661),o=n(51797);function u(...e){return(0,r.useMemo)(()=>(0,o.r)(...e),[...e])}},45514:function(e,t,n){"use strict";n.d(t,{f:()=>i});var r=n(98661),o=n(98790);function u(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";if("string"==typeof n&&"button"===n.toLowerCase())return"button"}function i(e,t){let[n,i]=(0,r.useState)(()=>u(e));return(0,o.e)(()=>{i(u(e))},[e.type,e.as]),(0,o.e)(()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[n,t]),n}},16653:function(e,t,n){"use strict";n.d(t,{T:()=>a,h:()=>i});var r=n(98661),o=n(76396);let u=Symbol();function i(e,t=!0){return Object.assign(e,{[u]:t})}function a(...e){let t=(0,r.useRef)(e);(0,r.useEffect)(()=>{t.current=e},[e]);let n=(0,o.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[u]))?void 0:n}},57511:function(e,t,n){"use strict";n.d(t,{g:()=>u});var r=n(98661);function o(e){return[e.screenX,e.screenY]}function u(){let e=(0,r.useRef)([-1,-1]);return{wasMoved(t){let n=o(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=o(t)}}}},64897:function(e,t,n){"use strict";n.d(t,{B:()=>i});var r=n(98661);if(!/^(1588|1691|2536|4457)$/.test(n.j))var o=n(51797);if(!/^(1588|1691|2536|4457)$/.test(n.j))var u=n(98790);function i({container:e,accept:t,walk:n,enabled:i=!0}){let a=(0,r.useRef)(t),l=(0,r.useRef)(n);(0,r.useEffect)(()=>{a.current=t,l.current=n},[t,n]),(0,u.e)(()=>{if(!e||!i)return;let t=(0,o.r)(e);if(!t)return;let n=a.current,r=l.current,u=Object.assign(e=>n(e),{acceptNode:n}),c=t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,u,!1);for(;c.nextNode();)r(c.currentNode)},[e,i,a,l])}},50579:function(e,t,n){"use strict";n.d(t,{s:()=>u});var r=n(98661),o=n(43090);function u(e,t,n){let u=(0,o.E)(t);(0,r.useEffect)(()=>{function t(e){u.current(e)}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n])}},17714:function(e,t,n){"use strict";function r(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(null==t?void 0:t.getAttribute("disabled"))==="";return!(r&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}n.d(t,{P:()=>r})},5181:function(e,t,n){"use strict";let r;n.d(t,{T:()=>o,d:()=>u});var o=((r=o||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function u(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;rw,EO:()=>S,TO:()=>d,fE:()=>p,jA:()=>x,sP:()=>y,tJ:()=>h,wI:()=>g,z2:()=>E}),!/^(1588|1691|2536|4457)$/.test(n.j))var l=n(98652);if(!/^(1588|1691|2536|4457)$/.test(n.j))var c=n(76984);if(!/^(1588|1691|2536|4457)$/.test(n.j))var s=n(51797);let f=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var d=((r=d||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),m=((u=m||{})[u.Previous=-1]="Previous",u[u.Next=1]="Next",u);function v(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(f)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var h=((i=h||{})[i.Strict=0]="Strict",i[i.Loose=1]="Loose",i);function y(e,t=0){var n;return e!==(null==(n=(0,s.r)(e))?void 0:n.body)&&(0,c.E)(t,{0:()=>e.matches(f),1(){let t=e;for(;null!==t;){if(t.matches(f))return!0;t=t.parentElement}return!1}})}function g(e){let t=(0,s.r)(e);(0,l.k)().nextFrame(()=>{t&&!y(t.activeElement,0)&&w(e)})}var b=((a=b||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function w(e){null==e||e.focus({preventScroll:!0})}function E(e,t=e=>e){return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let u=r.compareDocumentPosition(o);return u&Node.DOCUMENT_POSITION_FOLLOWING?-1:u&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function S(e,t){return x(v(),t,{relativeTo:e})}function x(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){var u,i,a;let l=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,c=Array.isArray(e)?n?E(e):e:v(e);o.length>0&&c.length>1&&(c=c.filter(e=>!o.includes(e))),r=null!=r?r:l.activeElement;let s=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,c.indexOf(r))-1;if(4&t)return Math.max(0,c.indexOf(r))+1;if(8&t)return c.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=32&t?{preventScroll:!0}:{},p=0,m=c.length,h;do{if(p>=m||p+m<=0)return 0;let e=f+p;if(16&t)e=(e+m)%m;else{if(e<0)return 3;if(e>=m)return 1}null==(h=c[e])||h.focus(d),p+=s}while(h!==l.activeElement);return 6&t&&null!=(a=null==(i=null==(u=h)?void 0:u.matches)?void 0:i.call(u,"textarea,input"))&&a&&h.select(),2}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0))},42715:function(e,t,n){"use strict";n.d(t,{U:()=>u});let r=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function o(e){var t,n;let o=null!=(t=e.innerText)?t:"",u=e.cloneNode(!0);if(!(u instanceof HTMLElement))return o;let i=!1;for(let e of u.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),i=!0;let a=i?null!=(n=u.innerText)?n:"":o;return r.test(a)&&(a=a.replace(r,"")),a}function u(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():o(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return o(e).trim()}},51797:function(e,t,n){"use strict";n.d(t,{r:()=>o});var r=n(49581);function o(e){return r.O.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}},7137:function(e,t,n){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o(){return r()||/Android/gi.test(window.navigator.userAgent)}n.d(t,{gn:()=>r,tq:()=>o})},4470:function(e,t,n){"use strict";let r,o;n.d(t,{AN:()=>l,l4:()=>c,oA:()=>v,sY:()=>s,yV:()=>m});var u=n(98661),i=n(23605),a=n(76984),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),c=((o=c||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function s({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:u=!0,name:i,mergeRefs:l}){l=null!=l?l:d;let c=p(t,e);if(u)return f(c,n,r,i,l);let s=null!=o?o:0;if(2&s){let{static:e=!1,...t}=c;if(e)return f(t,n,r,i,l)}if(1&s){let{unmount:e=!0,...t}=c;return(0,a.E)(+!e,{0:()=>null,1:()=>f({...t,hidden:!0,style:{display:"none"}},n,r,i,l)})}return f(c,n,r,i,l)}function f(e,t={},n,r,o){let{as:a=n,children:l,refName:c="ref",...s}=h(e,["unmount","static"]),d=void 0!==e.ref?{[c]:e.ref}:{},m="function"==typeof l?l(t):l;"className"in s&&s.className&&"function"==typeof s.className&&(s.className=s.className(t));let y={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(y["data-headlessui-state"]=n.join(" "))}if(a===u.Fragment&&Object.keys(v(s)).length>0){if(!(0,u.isValidElement)(m)||Array.isArray(m)&&m.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(s).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=m.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>(0,i.A)(null==e?void 0:e.className(...t),s.className):(0,i.A)(null==e?void 0:e.className,s.className);return(0,u.cloneElement)(m,Object.assign({},p(m.props,v(h(s,["ref"]))),y,d,{ref:o(m.ref,d.ref)},t?{className:t}:{}))}return(0,u.createElement)(a,Object.assign({},h(s,["ref"]),a!==u.Fragment&&d,a!==u.Fragment&&y),m)}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 o of n[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;o(t,...r)}}});return t}function m(e){var t;return Object.assign((0,u.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function v(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function h(e,t=[]){let n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},33771:function(e,t,n){"use strict";n.d(t,{BX:()=>r.BX,tZ:()=>r.tZ}),n(98661);var r=n(16584)}}]); //# sourceMappingURL=135.9110fdc5.js.map