mirror of
https://github.com/zenlm/zen-code-docs.git
synced 2026-10-30 14:58:40 +00:00
1 line
204 KiB
JavaScript
1 line
204 KiB
JavaScript
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5524],{99376:function(e,t,n){"use strict";var r=n(35475);n.o(r,"usePathname")&&n.d(t,{usePathname:function(){return r.usePathname}}),n.o(r,"useRouter")&&n.d(t,{useRouter:function(){return r.useRouter}})},40257:function(e,t,n){"use strict";var r,o;e.exports=(null==(r=n.g.process)?void 0:r.env)&&"object"==typeof(null==(o=n.g.process)?void 0:o.env)?n.g.process:n(44227)},65878:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return b}});let r=n(47043),o=n(53099),i=n(57437),l=o._(n(2265)),a=r._(n(54887)),s=r._(n(38293)),u=n(55346),c=n(90128),d=n(62589);n(31765);let f=n(25523),h=r._(n(5084)),m={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/qwen-code-docs/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0};function p(e,t,n,r,o,i,l){let a=null==e?void 0:e.src;e&&e["data-loaded-src"]!==a&&(e["data-loaded-src"]=a,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&o(!0),null==n?void 0:n.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let r=!1,o=!1;n.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>r,isPropagationStopped:()=>o,persist:()=>{},preventDefault:()=>{r=!0,t.preventDefault()},stopPropagation:()=>{o=!0,t.stopPropagation()}})}(null==r?void 0:r.current)&&r.current(e)}}))}function g(e){return l.use?{fetchPriority:e}:{fetchpriority:e}}"undefined"==typeof window&&(globalThis.__NEXT_IMAGE_IMPORTED=!0);let v=(0,l.forwardRef)((e,t)=>{let{src:n,srcSet:r,sizes:o,height:a,width:s,decoding:u,className:c,style:d,fetchPriority:f,placeholder:h,loading:m,unoptimized:v,fill:x,onLoadRef:b,onLoadingCompleteRef:y,setBlurComplete:w,setShowAltText:E,sizesInput:S,onLoad:T,onError:k,...C}=e;return(0,i.jsx)("img",{...C,...g(f),loading:m,width:s,height:a,decoding:u,"data-nimg":x?"fill":"1",className:c,style:d,sizes:o,srcSet:r,src:n,ref:(0,l.useCallback)(e=>{t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e&&(k&&(e.src=e.src),e.complete&&p(e,h,b,y,w,v,S))},[n,h,b,y,w,k,v,S,t]),onLoad:e=>{p(e.currentTarget,h,b,y,w,v,S)},onError:e=>{E(!0),"empty"!==h&&w(!0),k&&k(e)}})});function x(e){let{isAppRouter:t,imgAttributes:n}=e,r={as:"image",imageSrcSet:n.srcSet,imageSizes:n.sizes,crossOrigin:n.crossOrigin,referrerPolicy:n.referrerPolicy,...g(n.fetchPriority)};return t&&a.default.preload?(a.default.preload(n.src,r),null):(0,i.jsx)(s.default,{children:(0,i.jsx)("link",{rel:"preload",href:n.srcSet?void 0:n.src,...r},"__nimg-"+n.src+n.srcSet+n.sizes)})}let b=(0,l.forwardRef)((e,t)=>{let n=(0,l.useContext)(f.RouterContext),r=(0,l.useContext)(d.ImageConfigContext),o=(0,l.useMemo)(()=>{var e;let t=m||r||c.imageConfigDefault,n=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),o=t.deviceSizes.sort((e,t)=>e-t),i=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:n,deviceSizes:o,qualities:i}},[r]),{onLoad:a,onLoadingComplete:s}=e,p=(0,l.useRef)(a);(0,l.useEffect)(()=>{p.current=a},[a]);let g=(0,l.useRef)(s);(0,l.useEffect)(()=>{g.current=s},[s]);let[b,y]=(0,l.useState)(!1),[w,E]=(0,l.useState)(!1),{props:S,meta:T}=(0,u.getImgProps)(e,{defaultLoader:h.default,imgConf:o,blurComplete:b,showAltText:w});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v,{...S,unoptimized:T.unoptimized,placeholder:T.placeholder,fill:T.fill,onLoadRef:p,onLoadingCompleteRef:g,setBlurComplete:y,setShowAltText:E,sizesInput:e.sizes,ref:t}),T.priority?(0,i.jsx)(x,{isAppRouter:!n,imgAttributes:S}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},44227:function(e){!function(){var t={229:function(e){var t,n,r,o=e.exports={};function i(){throw Error("setTimeout has not been defined")}function l(){throw Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"==typeof clearTimeout?clearTimeout:l}catch(e){n=l}}();var s=[],u=!1,c=-1;function d(){u&&r&&(u=!1,r.length?s=r.concat(s):c=-1,s.length&&f())}function f(){if(!u){var e=a(d);u=!0;for(var t=s.length;t;){for(r=s,s=[];++c<t;)r&&r[c].run();c=-1,t=s.length}r=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===l||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||u||a(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},l=!0;try{t[e](i,i.exports,r),l=!1}finally{l&&delete n[e]}return i.exports}r.ab="//";var o=r(229);e.exports=o}()},91436:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return r}});let r=n(47043)._(n(2265)).default.createContext({})},23964:function(e,t){"use strict";function n(e){let{ampFirst:t=!1,hybrid:n=!1,hasQuery:r=!1}=void 0===e?{}:e;return t||n&&r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return n}})},55346:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return a}}),n(31765);let r=n(96496),o=n(90128);function i(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function a(e,t){var n,a;let s,u,c,{src:d,sizes:f,unoptimized:h=!1,priority:m=!1,loading:p,className:g,quality:v,width:x,height:b,fill:y=!1,style:w,overrideSrc:E,onLoad:S,onLoadingComplete:T,placeholder:k="empty",blurDataURL:C,fetchPriority:O,decoding:L="async",layout:I,objectFit:M,objectPosition:R,lazyBoundary:P,lazyRoot:j,...N}=e,{imgConf:F,showAltText:A,blurComplete:D,defaultLoader:z}=t,_=F||o.imageConfigDefault;if("allSizes"in _)s=_;else{let e=[..._.deviceSizes,..._.imageSizes].sort((e,t)=>e-t),t=_.deviceSizes.sort((e,t)=>e-t),r=null==(n=_.qualities)?void 0:n.sort((e,t)=>e-t);s={..._,allSizes:e,deviceSizes:t,qualities:r}}if(void 0===z)throw Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config");let W=N.loader||z;delete N.loader,delete N.srcSet;let H="__next_img_default"in W;if(H){if("custom"===s.loader)throw Error('Image with src "'+d+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader')}else{let e=W;W=t=>{let{config:n,...r}=t;return e(r)}}if(I){"fill"===I&&(y=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[I];e&&(w={...w,...e});let t={responsive:"100vw",fill:"100vw"}[I];t&&!f&&(f=t)}let B="",U=l(x),V=l(b);if("object"==typeof(a=d)&&(i(a)||void 0!==a.src)){let e=i(d)?d.default:d;if(!e.src)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e));if(!e.height||!e.width)throw Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e));if(u=e.blurWidth,c=e.blurHeight,C=C||e.blurDataURL,B=e.src,!y){if(U||V){if(U&&!V){let t=U/e.width;V=Math.round(e.height*t)}else if(!U&&V){let t=V/e.height;U=Math.round(e.width*t)}}else U=e.width,V=e.height}}let Z=!m&&("lazy"===p||void 0===p);(!(d="string"==typeof d?d:B)||d.startsWith("data:")||d.startsWith("blob:"))&&(h=!0,Z=!1),s.unoptimized&&(h=!0),H&&d.endsWith(".svg")&&!s.dangerouslyAllowSVG&&(h=!0),m&&(O="high");let G=l(v),K=Object.assign(y?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:M,objectPosition:R}:{},A?{}:{color:"transparent"},w),q=D||"empty"===k?null:"blur"===k?'url("data:image/svg+xml;charset=utf-8,'+(0,r.getImageBlurSvg)({widthInt:U,heightInt:V,blurWidth:u,blurHeight:c,blurDataURL:C||"",objectFit:K.objectFit})+'")':'url("'+k+'")',Y=q?{backgroundSize:K.objectFit||"cover",backgroundPosition:K.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:q}:{},Q=function(e){let{config:t,src:n,unoptimized:r,width:o,quality:i,sizes:l,loader:a}=e;if(r)return{src:n,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,n){let{deviceSizes:r,allSizes:o}=e;if(n){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let r;r=e.exec(n);r)t.push(parseInt(r[2]));if(t.length){let e=.01*Math.min(...t);return{widths:o.filter(t=>t>=r[0]*e),kind:"w"}}return{widths:o,kind:"w"}}return"number"!=typeof t?{widths:r,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>o.find(t=>t>=e)||o[o.length-1]))],kind:"x"}}(t,o,l),c=s.length-1;return{sizes:l||"w"!==u?l:"100vw",srcSet:s.map((e,r)=>a({config:t,src:n,quality:i,width:e})+" "+("w"===u?e:r+1)+u).join(", "),src:a({config:t,src:n,quality:i,width:s[c]})}}({config:s,src:d,unoptimized:h,width:U,quality:G,sizes:f,loader:W});return{props:{...N,loading:Z?"lazy":p,fetchPriority:O,width:U,height:V,decoding:L,className:g,style:{...K,...Y},sizes:Q.sizes,srcSet:Q.srcSet,src:E||Q.src},meta:{unoptimized:h,priority:m,placeholder:k,fill:y}}}},38293:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return p},defaultHead:function(){return d}});let r=n(47043),o=n(53099),i=n(57437),l=o._(n(2265)),a=r._(n(17421)),s=n(91436),u=n(48701),c=n(23964);function d(e){void 0===e&&(e=!1);let t=[(0,i.jsx)("meta",{charSet:"utf-8"})];return e||t.push((0,i.jsx)("meta",{name:"viewport",content:"width=device-width"})),t}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}n(31765);let h=["name","httpEquiv","charSet","itemProp"];function m(e,t){let{inAmpMode:n}=t;return e.reduce(f,[]).reverse().concat(d(n).reverse()).filter(function(){let e=new Set,t=new Set,n=new Set,r={};return o=>{let i=!0,l=!1;if(o.key&&"number"!=typeof o.key&&o.key.indexOf("$")>0){l=!0;let t=o.key.slice(o.key.indexOf("$")+1);e.has(t)?i=!1:e.add(t)}switch(o.type){case"title":case"base":t.has(o.type)?i=!1:t.add(o.type);break;case"meta":for(let e=0,t=h.length;e<t;e++){let t=h[e];if(o.props.hasOwnProperty(t)){if("charSet"===t)n.has(t)?i=!1:n.add(t);else{let e=o.props[t],n=r[t]||new Set;("name"!==t||!l)&&n.has(e)?i=!1:(n.add(e),r[t]=n)}}}}return i}}()).reverse().map((e,t)=>{let r=e.key||t;if(!n&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:r})})}let p=function(e){let{children:t}=e,n=(0,l.useContext)(s.AmpStateContext),r=(0,l.useContext)(u.HeadManagerContext);return(0,i.jsx)(a.default,{reduceComponentsToState:m,headManager:r,inAmpMode:(0,c.isInAmpMode)(n),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},96496:function(e,t){"use strict";function n(e){let{widthInt:t,heightInt:n,blurWidth:r,blurHeight:o,blurDataURL:i,objectFit:l}=e,a=r?40*r:t,s=o?40*o:n,u=a&&s?"viewBox='0 0 "+a+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===l?"xMidYMid":"cover"===l?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+i+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return n}})},62589:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return i}});let r=n(47043)._(n(2265)),o=n(90128),i=r.default.createContext(o.imageConfigDefault)},90128:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{VALID_LOADERS:function(){return n},imageConfigDefault:function(){return r}});let n=["default","imgix","cloudinary","akamai","custom"],r={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"inline",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},48461:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return s},getImageProps:function(){return a}});let r=n(47043),o=n(55346),i=n(65878),l=r._(n(5084));function a(e){let{props:t}=(0,o.getImgProps)(e,{defaultLoader:l.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/qwen-code-docs/_next/image/",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!0}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let s=i.Image},5084:function(e,t){"use strict";function n(e){var t;let{config:n,src:r,width:o,quality:i}=e,l=i||(null==(t=n.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return n.path+"?url="+encodeURIComponent(r)+"&w="+o+"&q="+l}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r}}),n.__next_img_default=!0;let r=n},17421:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let r=n(2265),o="undefined"==typeof window,i=o?()=>{}:r.useLayoutEffect,l=o?()=>{}:r.useEffect;function a(e){let{headManager:t,reduceComponentsToState:n}=e;function a(){if(t&&t.mountedInstances){let o=r.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(n(o,e))}}if(o){var s;null==t||null==(s=t.mountedInstances)||s.add(e.children),a()}return i(()=>{var n;return null==t||null==(n=t.mountedInstances)||n.add(e.children),()=>{var n;null==t||null==(n=t.mountedInstances)||n.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),l(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},60208:function(e,t,n){"use strict";n.d(t,{NotFoundLink:function(){return f}});var r=n(57437),o=n(83238),i=n(99376),l=n(59195),a=n(61994),s=n(22061);let u=e=>{let t,n,i,l;let u=(0,o.c)(8);return u[0]!==e?({className:t,...n}=e,u[0]=e,u[1]=t,u[2]=n):(t=u[1],n=u[2]),u[3]!==t?(i=(0,a.Z)("x:text-primary-600 x:underline x:hover:no-underline x:decoration-from-font x:[text-underline-position:from-font]",t),u[3]=t,u[4]=i):i=u[4],u[5]!==n||u[6]!==i?(l=(0,r.jsx)(s.e,{className:i,...n}),u[5]=n,u[6]=i,u[7]=l):l=u[7],l};var c=n(54108),d=n(42175);let f=e=>{let t,n;let a=(0,o.c)(7),{children:s,labels:f}=e,h=(0,c.useThemeConfig)(),m=(0,i.usePathname)(),p=(0,l.s)(),g=p&&document.referrer,v='Found broken "'.concat(p?m:"",'" link').concat(g?' from "'.concat(g,'"'):"",". Please fix!");return a[0]!==h.docsRepositoryBase||a[1]!==f||a[2]!==v?(t=(0,d.K)({repository:h.docsRepositoryBase,title:v,labels:f}),a[0]=h.docsRepositoryBase,a[1]=f,a[2]=v,a[3]=t):t=a[3],a[4]!==s||a[5]!==t?(n=(0,r.jsx)(u,{className:"x:mt-[1.25em]",href:t,children:s}),a[4]=s,a[5]=t,a[6]=n):n=a[6],n}},57651:function(e,t,n){"use strict";n.d(t,{Switchers:function(){return i}});var r=n(17691),o=n(54108);let i=e=>{let{children:t}=e,{hideSidebar:n}=(0,r.useConfig)(),{i18n:i,darkMode:l}=(0,o.useThemeConfig)();return n&&(l||i.length)?t:null}},16016:function(e,t,n){"use strict";n.d(t,{LastUpdated:function(){return a}});var r=n(57437),o=n(83238),i=n(99376),l=n(54108);let a=e=>{let t,n,a,s,u;let c=(0,o.c)(15),{date:d,children:f,locale:h}=e,m=void 0===f?"Last updated on":f,p=void 0===h?"en":h,{i18n:g}=(0,l.useThemeConfig)(),v=(0,i.usePathname)();if(!d)return null;c[0]!==g.length||c[1]!==p||c[2]!==v?(t=g.length?v.split("/",2)[1]:p,c[0]=g.length,c[1]=p,c[2]=v,c[3]=t):t=c[3];let x=t;return c[4]!==d?(n=d.toISOString(),c[4]=d,c[5]=n):n=c[5],c[6]!==d||c[7]!==x?(a=d.toLocaleDateString(x,{day:"numeric",month:"long",year:"numeric"}),c[6]=d,c[7]=x,c[8]=a):a=c[8],c[9]!==n||c[10]!==a?(s=(0,r.jsx)("time",{dateTime:n,suppressHydrationWarning:!0,children:a}),c[9]=n,c[10]=a,c[11]=s):s=c[11],c[12]!==m||c[13]!==s?(u=(0,r.jsxs)(r.Fragment,{children:[m," ",s]}),c[12]=m,c[13]=s,c[14]=u):u=c[14],u}},86297:function(e,t,n){"use strict";n.r(t),n.d(t,{LocaleSwitch:function(){return d}});var r=n(57437),o=n(83238),i=n(61994),l=n(1634),a=n(99376),s=n(19972);let u=e=>{let t,n;let i=(0,o.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{fillRule:"evenodd",d:"M4.083 9h1.946c.089-1.546.383-2.97.837-4.118A6.004 6.004 0 004.083 9zM10 2a8 8 0 100 16 8 8 0 000-16zm0 2c-.076 0-.232.032-.465.262-.238.234-.497.623-.737 1.182-.389.907-.673 2.142-.766 3.556h3.936c-.093-1.414-.377-2.649-.766-3.556-.24-.56-.5-.948-.737-1.182C10.232 4.032 10.076 4 10 4zm3.971 5c-.089-1.546-.383-2.97-.837-4.118A6.004 6.004 0 0115.917 9h-1.946zm-2.003 2H8.032c.093 1.414.377 2.649.766 3.556.24.56.5.948.737 1.182.233.23.389.262.465.262.076 0 .232-.032.465-.262.238-.234.498-.623.737-1.182.389-.907.673-2.142.766-3.556zm1.166 4.118c.454-1.147.748-2.572.837-4.118h1.946a6.004 6.004 0 01-2.783 4.118zm-6.268 0C6.412 13.97 6.118 12.546 6.03 11H4.083a6.004 6.004 0 002.783 4.118z"}),i[0]=t):t=i[0],i[1]!==e?(n=(0,r.jsx)("svg",{viewBox:"2 2 16 16",fill:"currentColor",...e,children:t}),i[1]=e,i[2]=n):n=i[2],n};var c=n(54108);let d=e=>{let t,n,d,h,m,p,g,v;let x=(0,o.c)(22),{lite:b,className:y}=e,{i18n:w}=(0,c.useThemeConfig)(),E=(0,a.usePathname)();if(!w.length)return null;x[0]!==E?(t=E.split("/",2),x[0]=E,x[1]=t):t=x[1];let[,S]=t;if(x[2]!==y?(n=(0,i.Z)("x:flex x:items-center x:gap-2",y),x[2]=y,x[3]=n):n=x[3],x[4]!==S||x[5]!==E?(d=e=>{let t=new Date(Date.now()+31536e6);document.cookie="NEXT_LOCALE=".concat(e,"; expires=").concat(t.toUTCString(),"; path=/"),location.href=(0,l.addBasePath)(E.replace("/".concat(S),"/".concat(e)))},x[4]=S,x[5]=E,x[6]=d):d=x[6],x[7]===Symbol.for("react.memo_cache_sentinel")?(h=(0,r.jsx)(u,{height:"12"}),x[7]=h):h=x[7],x[8]!==w||x[9]!==b||x[10]!==S){var T;m=!b&&(null===(T=w.find(e=>S===e.locale))||void 0===T?void 0:T.name),x[8]=w,x[9]=b,x[10]=S,x[11]=m}else m=x[11];return x[12]!==m?(p=(0,r.jsxs)(r.Fragment,{children:[h,m]}),x[12]=m,x[13]=p):p=x[13],x[14]!==w?(g=w.map(f),x[14]=w,x[15]=g):g=x[15],x[16]!==S||x[17]!==n||x[18]!==d||x[19]!==p||x[20]!==g?(v=(0,r.jsx)(s.P,{title:"Change language",className:n,onChange:d,value:S,selectedOption:p,options:g}),x[16]=S,x[17]=n,x[18]=d,x[19]=p,x[20]=g,x[21]=v):v=x[21],v};function f(e){return{id:e.locale,name:e.name}}},88212:function(e,t,n){"use strict";let r,o,i;n.d(t,{ClientNavbar:function(){return eC}});var l=n(57437),a=n(83238),s=n(71049),u=n(11323),c=n(2265),d=n(54887),f=n(36750),h=n(89204),m=n(90945),p=n(40993),g=n(13323),v=n(16821),x=n(64518),b=n(33106),y=n(76292),w=n(40048),E=n(18303),S=n(80004),T=n(26074),k=n(93689),C=n(4301),O=n(15518),L=n(34723),I=n(71776),M=n(30054),R=n(37863),P=n(22055),j=n(46187),N=n(47634),F=n(34778),A=n(16015),D=n(91133),z=n(37105),_=n(24536),W=n(88533),H=n(33577),B=n(37388),U=n(34630),V=n(1265),Z=n(58922),G=n(46036),K=Object.defineProperty,q=(e,t,n)=>t in e?K(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Y=(e,t,n)=>(q(e,"symbol"!=typeof t?t+"":t,n),n),Q=((r=Q||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),J=((o=J||{})[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o),X=((i=X||{})[i.OpenMenu=0]="OpenMenu",i[i.CloseMenu=1]="CloseMenu",i[i.GoToItem=2]="GoToItem",i[i.Search=3]="Search",i[i.ClearSearch=4]="ClearSearch",i[i.RegisterItems=5]="RegisterItems",i[i.UnregisterItems=6]="UnregisterItems",i[i.SetButtonElement=7]="SetButtonElement",i[i.SetItemsElement=8]="SetItemsElement",i[i.SortItems=9]="SortItems",i);function $(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=(0,z.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 ee={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,pendingFocus:{focus:F.T.Nothing},menuState:1},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0},2:(e,t)=>{var n,r,o,i,l;if(1===e.menuState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===F.T.Nothing)return{...a,activeItemIndex:null};if(t.focus===F.T.Specific)return{...a,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===F.T.Previous){let n=e.activeItemIndex;if(null!==n){let i=e.items[n].dataRef.current.domRef,l=(0,F.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.items[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeItemIndex:l}}}}else if(t.focus===F.T.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,o=(0,F.d)(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.items[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeItemIndex:o}}}}let s=$(e),u=(0,F.d)(t,{resolveItems:()=>s.items,resolveActiveIndex:()=>s.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...s,activeItemIndex:u}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,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}),i=o?e.items.indexOf(o):-1;return -1===i||i===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:i,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=e.items.concat(t.items.map(e=>e)),r=e.activeItemIndex;return e.pendingFocus.focus!==F.T.Nothing&&(r=(0,F.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:n,activeItemIndex:r,pendingFocus:{focus:F.T.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.items,r=[],o=new Set(t.items);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,items:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element},9:e=>e.pendingShouldSort?{...e,...$(e),pendingShouldSort:!1}:e};class et extends G.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new et({id:t,__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:F.T.Nothing}})}reduce(e,t){return(0,_.E)(t.type,ee,e,t)}constructor(e){super(e),Y(this,"actions",{registerItem:(0,G.dC)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:(0,G.dC)(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),Y(this,"selectors",{activeDescendantId(e){var t;let n=e.activeItemIndex,r=e.items;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeItemIndex,o=e.items;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=P.n.get(null);this.disposables.add(t.on(P.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.menuState||this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}}var en=n(99417);let er=(0,c.createContext)(null);function eo(e){let t=(0,c.useContext)(er);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Menu /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ei),t}return t}function ei(e){let{id:t,__demoMode:n=!1}=e,r=(0,c.useMemo)(()=>et.new({id:t,__demoMode:n}),[]);return(0,en.L)(()=>r.dispose()),r}let el=c.Fragment,ea=W.VN.RenderStrategy|W.VN.Static,es=c.Fragment,eu=(0,W.yV)(function(e,t){let n=(0,c.useId)(),{__demoMode:r=!1,...o}=e,i=ei({id:n,__demoMode:r}),[l,a,s]=(0,j.M)(i,e=>[e.menuState,e.itemsElement,e.buttonElement]),u=(0,k.T)(t),d=P.n.get(null),f=(0,j.M)(d,(0,c.useCallback)(e=>d.selectors.isTop(e,n),[d,n]));(0,y.O)(f,[s,a],(e,t)=>{var n;i.send({type:X.CloseMenu}),(0,z.sP)(t,z.tJ.Loose)||(e.preventDefault(),null==(n=i.state.buttonElement)||n.focus())});let h=(0,g.z)(()=>{i.send({type:X.CloseMenu})}),m=(0,c.useMemo)(()=>({open:l===Q.Open,close:h}),[l,h]),p=(0,W.L6)();return c.createElement(M.HO,null,c.createElement(er.Provider,{value:i},c.createElement(R.up,{value:(0,_.E)(l,{[Q.Open]:R.ZM.Open,[Q.Closed]:R.ZM.Closed})},p({ourProps:{ref:u},theirProps:o,slot:m,defaultTag:el,name:"Menu"}))))}),ec=(0,W.yV)(function(e,t){let n=eo("Menu.Button"),r=(0,c.useId)(),{id:o="headlessui-menu-button-".concat(r),disabled:i=!1,autoFocus:l=!1,...a}=e,h=(0,c.useRef)(null),m=(0,M.L)(),p=(0,k.T)(t,h,(0,M.AZ)(),(0,g.z)(e=>n.send({type:X.SetButtonElement,element:e}))),v=(0,g.z)(e=>{switch(e.key){case B.R.Space:case B.R.Enter:case B.R.ArrowDown:e.preventDefault(),e.stopPropagation(),n.send({type:X.OpenMenu,focus:{focus:F.T.First}});break;case B.R.ArrowUp:e.preventDefault(),e.stopPropagation(),n.send({type:X.OpenMenu,focus:{focus:F.T.Last}})}}),x=(0,g.z)(e=>{e.key===B.R.Space&&e.preventDefault()}),[b,y,w]=(0,j.M)(n,e=>[e.menuState,e.buttonElement,e.itemsElement]),T=b===Q.Open;(0,E.G)(T,{trigger:y,action:(0,c.useCallback)(e=>{if(null!=y&&y.contains(e.target))return E.a.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return D.Re(t)?E.a.Select(t):null!=w&&w.contains(e.target)?E.a.Ignore:E.a.Close},[y,w]),close:(0,c.useCallback)(()=>n.send({type:X.CloseMenu}),[]),select:(0,c.useCallback)(e=>e.click(),[])});let C=(0,g.z)(e=>{var t;if(e.button===V.t.Left){if((0,N.P)(e.currentTarget))return e.preventDefault();i||(b===Q.Open?((0,d.flushSync)(()=>n.send({type:X.CloseMenu})),null==(t=h.current)||t.focus({preventScroll:!0})):(e.preventDefault(),n.send({type:X.OpenMenu,focus:{focus:F.T.Nothing},trigger:J.Pointer})))}}),O=(0,c.useRef)(null),L=(0,g.z)(e=>{O.current=e.pointerType,"mouse"===e.pointerType&&C(e)}),I=(0,g.z)(e=>{"mouse"!==O.current&&C(e)}),{isFocusVisible:R,focusProps:P}=(0,s.F)({autoFocus:l}),{isHovered:A,hoverProps:z}=(0,u.X)({isDisabled:i}),{pressed:_,pressProps:H}=(0,f.x)({disabled:i}),U=(0,c.useMemo)(()=>({open:b===Q.Open,active:_||b===Q.Open,disabled:i,hover:A,focus:R,autofocus:l}),[b,A,R,_,i,l]),Z=(0,W.dG)(m(),{ref:p,id:o,type:(0,S.f)(e,h.current),"aria-haspopup":"menu","aria-controls":null==w?void 0:w.id,"aria-expanded":b===Q.Open,disabled:i||void 0,autoFocus:l,onKeyDown:v,onKeyUp:x,onPointerDown:L,onClick:I},P,z,H);return(0,W.L6)()({ourProps:Z,theirProps:a,slot:U,defaultTag:"button",name:"Menu.Button"})}),ed=(0,W.yV)(function(e,t){let n=(0,c.useId)(),{id:r="headlessui-menu-items-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:a=!1,...s}=e,u=(0,M.Vy)(o),f=eo("Menu.Items"),[x,y]=(0,M.ES)(u),E=(0,M.U8)(),[S,C]=(0,c.useState)(null),O=(0,k.T)(t,u?x:null,(0,g.z)(e=>f.send({type:X.SetItemsElement,element:e})),C),[P,N]=(0,j.M)(f,e=>[e.menuState,e.buttonElement]),A=(0,w.i)(N),D=(0,w.i)(S);u&&(i=!0);let _=(0,R.oJ)(),[H,U]=(0,L.Y)(a,S,null!==_?(_&R.ZM.Open)===R.ZM.Open:P===Q.Open);(0,b.m)(H,N,()=>{f.send({type:X.CloseMenu})});let V=(0,j.M)(f,e=>e.__demoMode),G=!V&&l&&P===Q.Open;(0,T.P)(G,D);let K=!V&&l&&P===Q.Open;(0,v.s)(K,{allowed:(0,c.useCallback)(()=>[N,S],[N,S])});let q=P!==Q.Open,Y=!(0,h.C)(q,N)&&H;(0,c.useEffect)(()=>{S&&P===Q.Open&&S!==(null==D?void 0:D.activeElement)&&S.focus({preventScroll:!0})},[P,S,D]),(0,I.B)(P===Q.Open,{container:S,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 J=(0,m.G)(),$=(0,g.z)(e=>{var t,n,r;switch(J.dispose(),e.key){case B.R.Space:if(""!==f.state.searchQuery)return e.preventDefault(),e.stopPropagation(),f.send({type:X.Search,value:e.key});case B.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==f.state.activeItemIndex){let{dataRef:e}=f.state.items[f.state.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}f.send({type:X.CloseMenu}),(0,z.wI)(f.state.buttonElement);break;case B.R.ArrowDown:return e.preventDefault(),e.stopPropagation(),f.send({type:X.GoToItem,focus:F.T.Next});case B.R.ArrowUp:return e.preventDefault(),e.stopPropagation(),f.send({type:X.GoToItem,focus:F.T.Previous});case B.R.Home:case B.R.PageUp:return e.preventDefault(),e.stopPropagation(),f.send({type:X.GoToItem,focus:F.T.First});case B.R.End:case B.R.PageDown:return e.preventDefault(),e.stopPropagation(),f.send({type:X.GoToItem,focus:F.T.Last});case B.R.Escape:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>f.send({type:X.CloseMenu})),null==(r=f.state.buttonElement)||r.focus({preventScroll:!0});break;case B.R.Tab:e.preventDefault(),e.stopPropagation(),(0,d.flushSync)(()=>f.send({type:X.CloseMenu})),(0,z.EO)(f.state.buttonElement,e.shiftKey?z.TO.Previous:z.TO.Next);break;default:1===e.key.length&&(f.send({type:X.Search,value:e.key}),J.setTimeout(()=>f.send({type:X.ClearSearch}),350))}}),ee=(0,g.z)(e=>{e.key===B.R.Space&&e.preventDefault()}),et=(0,c.useMemo)(()=>({open:P===Q.Open}),[P]),en=(0,W.dG)(u?E():{},{"aria-activedescendant":(0,j.M)(f,f.selectors.activeDescendantId),"aria-labelledby":(0,j.M)(f,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:r,onKeyDown:$,onKeyUp:ee,role:"menu",tabIndex:P===Q.Open?0:void 0,ref:O,style:{...s.style,...y,"--button-width":(0,p.h)(N,!0).width},...(0,L.X)(U)}),er=(0,W.L6)();return c.createElement(Z.h_,{enabled:!!i&&(e.static||H),ownerDocument:A},er({ourProps:en,theirProps:s,slot:et,defaultTag:"div",features:ea,visible:Y,name:"Menu.Items"}))}),ef=(0,W.yV)(function(e,t){let n=(0,c.useId)(),{id:r="headlessui-menu-item-".concat(n),disabled:o=!1,...i}=e,l=eo("Menu.Item"),a=(0,j.M)(l,e=>l.selectors.isActive(e,r)),s=(0,c.useRef)(null),u=(0,k.T)(t,s),d=(0,j.M)(l,e=>l.selectors.shouldScrollIntoView(e,r));(0,x.e)(()=>{if(d)return(0,A.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=s.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[d,s]);let f=(0,C.x)(s),h=(0,c.useRef)({disabled:o,domRef:s,get textValue(){return f()}});(0,x.e)(()=>{h.current.disabled=o},[h,o]),(0,x.e)(()=>(l.actions.registerItem(r,h),()=>l.actions.unregisterItem(r)),[h,r]);let m=(0,g.z)(()=>{l.send({type:X.CloseMenu})}),p=(0,g.z)(e=>{if(o)return e.preventDefault();l.send({type:X.CloseMenu}),(0,z.wI)(l.state.buttonElement)}),v=(0,g.z)(()=>{if(o)return l.send({type:X.GoToItem,focus:F.T.Nothing});l.send({type:X.GoToItem,focus:F.T.Specific,id:r})}),b=(0,O.g)(),y=(0,g.z)(e=>b.update(e)),w=(0,g.z)(e=>{b.wasMoved(e)&&(o||a||l.send({type:X.GoToItem,focus:F.T.Specific,id:r,trigger:J.Pointer}))}),E=(0,g.z)(e=>{b.wasMoved(e)&&(o||a&&l.state.activationTrigger===J.Pointer&&l.send({type:X.GoToItem,focus:F.T.Nothing}))}),[S,T]=(0,U.bE)(),[L,I]=(0,H.fw)(),M=(0,c.useMemo)(()=>({active:a,focus:a,disabled:o,close:m}),[a,o,m]),R=(0,W.L6)();return c.createElement(T,null,c.createElement(I,null,R({ourProps:{id:r,ref:u,role:"menuitem",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-labelledby":S,"aria-describedby":L,disabled:void 0,onClick:p,onFocus:v,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:E,onMouseLeave:E},theirProps:i,slot:M,defaultTag:es,name:"Menu.Item"})))}),eh=Object.assign(eu,{Button:ec,Items:ed,Item:ef,Section:(0,W.yV)(function(e,t){let[n,r]=(0,U.bE)(),o=(0,W.L6)();return c.createElement(r,null,o({ourProps:{ref:t,"aria-labelledby":n,role:"group"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Section"}))}),Heading:(0,W.yV)(function(e,t){let n=(0,c.useId)(),{id:r="headlessui-menu-heading-".concat(n),...o}=e,i=(0,U.t0)();(0,x.e)(()=>i.register(r),[r,i.register]);let l={id:r,ref:t,role:"presentation",...i.props};return(0,W.L6)()({ourProps:l,theirProps:o,slot:{},defaultTag:"header",name:"Menu.Heading"})}),Separator:(0,W.yV)(function(e,t){return(0,W.L6)()({ourProps:{ref:t,role:"separator"},theirProps:e,slot:{},defaultTag:"div",name:"Menu.Separator"})})});var em=n(61994),ep=n(22061),eg=n(85205),ev=n(79128),ex=n(28568);let eb=e=>{let t,n,r,o;let i=(0,a.c)(5);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,l.jsx)("g",{children:(0,l.jsx)("path",{d:"M4 6h16"})}),n=(0,l.jsx)("path",{d:"M4 12h16"}),r=(0,l.jsx)("g",{children:(0,l.jsx)("path",{d:"M4 18h16"})}),i[0]=t,i[1]=n,i[2]=r):(t=i[0],n=i[1],r=i[2]),i[3]!==e?(o=(0,l.jsxs)("svg",{viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",...e,children:[t,n,r]}),i[3]=e,i[4]=o):o=i[4],o};var ey=n(17691),ew=n(54108),eE=n(4535);let eS={link:(0,em.Z)("x:text-sm x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100 x:whitespace-nowrap","x:text-gray-600 x:hover:text-black x:dark:text-gray-400 x:dark:hover:text-gray-200","x:ring-inset x:transition-colors")},eT=e=>{let t,n,r,o,i,s,u,c;let d=(0,a.c)(19),{menu:f,children:h}=e;d[0]!==f.children?(t=Object.fromEntries((f.children||[]).map(eO)),d[0]=f.children,d[1]=t):t=d[1];let m=t;if(d[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(ex.r,{height:"14",className:"x:*:origin-center x:*:transition-transform x:*:rotate-90"}),d[2]=n):n=d[2],d[3]!==h?(r=(0,l.jsxs)(ec,{className:eL,children:[h,n]}),d[3]=h,d[4]=r):r=d[4],d[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,em.Z)("x:focus-visible:nextra-focus","nextra-scrollbar x:motion-reduce:transition-none","x:origin-top x:transition x:duration-200 x:ease-out x:data-closed:scale-95 x:data-closed:opacity-0","x:border x:border-black/5 x:dark:border-white/20","x:z-30 x:rounded-md x:py-1 x:text-sm x:shadow-lg","x:backdrop-blur-md x:bg-nextra-bg/70","x:max-h-[min(calc(100vh-5rem),256px)]!"),i={to:"bottom",gap:10,padding:16},d[5]=o,d[6]=i):(o=d[5],i=d[6]),d[7]!==f.items||d[8]!==m){let e,t;d[10]!==f.items?(e=f.items||{},d[10]=f.items,d[11]=e):e=d[11],d[12]!==m?(t=e=>{var t;let[n,r]=e;return(0,l.jsx)(ef,{as:ep.e,href:r.href||(null===(t=m[n])||void 0===t?void 0:t.route),className:eI,children:r.title},n)},d[12]=m,d[13]=t):t=d[13],s=Object.entries(e).map(t),d[7]=f.items,d[8]=m,d[9]=s}else s=d[9];return d[14]!==s?(u=(0,l.jsx)(ed,{transition:!0,className:o,anchor:i,children:s}),d[14]=s,d[15]=u):u=d[15],d[16]!==r||d[17]!==u?(c=(0,l.jsxs)(eh,{children:[r,u]}),d[16]=r,d[17]=u,d[18]=c):c=d[18],c},ek=e=>"menu"===e.type,eC=e=>{let t,n,r,o,i,s,u;let c=(0,a.c)(21),{children:d,className:f}=e,h=(0,ey.useConfig)().normalizePagesResult.topLevelNavbarItems,m=(0,ew.useThemeConfig)(),p=(0,ev.$)(),g=(0,eE.H)();if(c[0]!==f?(t=(0,em.Z)("x:flex x:gap-4 x:overflow-x-auto nextra-scrollbar x:py-1.5 x:max-md:hidden",f),c[0]=f,c[1]=t):t=c[1],c[2]!==h||c[3]!==p){let e;c[5]!==p?(e=(e,t,n)=>{if("display"in e&&"hidden"===e.display)return;if(ek(e))return(0,l.jsx)(eT,{menu:e,children:e.title},e.name);let r=("frontMatter"in e?e.route:e.firstChildRoute)||e.href||e.route,o=r===p||p.startsWith(e.route+"/")&&n.every(e=>!("href"in e)||e.href!==p)||void 0;return(0,l.jsx)(ep.e,{href:r,className:(0,em.Z)(eS.link,"x:aria-[current]:font-medium x:aria-[current]:subpixel-antialiased x:aria-[current]:text-current"),"aria-current":o,children:e.title},e.name)},c[5]=p,c[6]=e):e=c[6],n=h.map(e),c[2]=h,c[3]=p,c[4]=n}else n=c[4];return c[7]!==t||c[8]!==n?(r=(0,l.jsx)("div",{className:t,children:n}),c[7]=t,c[8]=n,c[9]=r):r=c[9],c[10]!==m.search?(o=m.search&&(0,l.jsx)("div",{className:"x:max-md:hidden",children:m.search}),c[10]=m.search,c[11]=o):o=c[11],c[12]!==g?(i=(0,em.Z)({open:g}),c[12]=g,c[13]=i):i=c[13],c[14]!==i?(s=(0,l.jsx)(eg.z,{"aria-label":"Menu",className:eM,onClick:eP,children:(0,l.jsx)(eb,{height:"24",className:i})}),c[14]=i,c[15]=s):s=c[15],c[16]!==d||c[17]!==r||c[18]!==o||c[19]!==s?(u=(0,l.jsxs)(l.Fragment,{children:[r,o,d,s]}),c[16]=d,c[17]=r,c[18]=o,c[19]=s,c[20]=u):u=c[20],u};function eO(e){return[e.name,e]}function eL(e){let{focus:t}=e;return(0,em.Z)(eS.link,"x:items-center x:flex x:gap-1.5 x:cursor-pointer",t&&"x:nextra-focus")}function eI(e){let{focus:t}=e;return(0,em.Z)("x:block x:py-1.5 x:transition-colors x:ps-3 x:pe-9",t?"x:text-gray-900 x:dark:text-gray-100":"x:text-gray-600 x:dark:text-gray-400")}function eM(e){let{active:t}=e;return(0,em.Z)("nextra-hamburger x:md:hidden",t&&"x:bg-gray-400/20")}function eR(e){return!e}function eP(){return(0,eE.K)(eR)}},57191:function(e,t,n){"use strict";n.r(t),n.d(t,{MobileNav:function(){return N},Sidebar:function(){return D}});var r=n(57437),o=n(83238),i=n(61994),l=n(99376),a=n(22061),s=n(85205),u=n(73406),c=n(79128),d=n(11316),f=n(28568);let h=e=>{let t,n,i;let l=(0,o.c)(4);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{d:"M4.177 7.823l2.396-2.396A.25.25 0 017 5.604v4.792a.25.25 0 01-.427.177L4.177 8.177a.25.25 0 010-.354z"}),n=(0,r.jsx)("path",{fillRule:"evenodd",d:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v12.5A1.75 1.75 0 0114.25 16H1.75A1.75 1.75 0 010 14.25V1.75zm1.75-.25a.25.25 0 00-.25.25v12.5c0 .138.112.25.25.25H9.5v-13H1.75zm12.5 13H11v-13h3.25a.25.25 0 01.25.25v12.5a.25.25 0 01-.25.25z"}),l[0]=t,l[1]=n):(t=l[0],n=l[1]),l[2]!==e?(i=(0,r.jsxs)("svg",{viewBox:"0 0 16 16",fill:"currentColor",...e,children:[t,n]}),l[2]=e,l[3]=i):i=l[3],i};var m=n(2265),p=n(89056);let g=(0,n(3011).U)(()=>({focused:""})),v=()=>g(e=>e.focused),x=e=>{g.setState({focused:e})};var b=n(54108),y=n(4535),w=n(64925),E=n(17691),S=n(18960),T=n(86297),k=n(935);let C=Object.create(null),O={link:(0,i.Z)("x:flex x:rounded x:px-2 x:py-1.5 x:text-sm x:transition-colors x:[word-break:break-word]","x:cursor-pointer x:contrast-more:border"),inactive:(0,i.Z)("x:text-gray-600 x:hover:bg-gray-100 x:hover:text-gray-900","x:dark:text-neutral-400 x:dark:hover:bg-primary-100/5 x:dark:hover:text-gray-50","x:contrast-more:text-gray-900 x:contrast-more:dark:text-gray-50","x:contrast-more:border-transparent x:contrast-more:hover:border-gray-900 x:contrast-more:dark:hover:border-gray-50"),active:(0,i.Z)("x:bg-primary-100 x:font-semibold x:text-primary-800 x:dark:bg-primary-400/10 x:dark:text-primary-600","x:contrast-more:border-primary-500!"),list:(0,i.Z)("x:grid x:gap-1"),border:(0,i.Z)("x:relative x:before:absolute x:before:inset-y-1",'x:before:w-px x:before:bg-gray-200 x:before:content-[""] x:dark:before:bg-neutral-800',"x:ps-3 x:before:start-0 x:pt-1 x:ms-3"),wrapper:(0,i.Z)("x:p-4 x:overflow-y-auto nextra-scrollbar nextra-mask"),footer:(0,i.Z)("nextra-sidebar-footer x:border-t nextra-border x:flex x:items-center x:gap-2 x:py-4 x:mx-4")},L=e=>{let t,n,l,d;let h=(0,o.c)(10),{item:p,anchors:g,onFocus:x,level:y}=e,w=(0,c.$)();h[0]!==w?(t=w.split("#",1),h[0]=w,h[1]=t):t=h[1];let E=t[0];h[2]!==p?(n="menu"===p.type?function(e){let t=Object.fromEntries((e.children||[]).map(e=>[e.name,e]));return Object.entries(e.items||{}).map(e=>{let[n,r]=e;return{...t[n]||{name:n},...r}})}(p):p.children,h[2]=p,h[3]=n):n=h[3];let S={...p,children:n},T=!!S.route,k=T&&[E,E+"/"].includes(S.route+"/"),L=k||T&&E.startsWith(S.route+"/"),I=v().startsWith(S.route+"/"),{theme:M}=S,{defaultMenuCollapseLevel:R,autoCollapse:P}=(0,b.useThemeConfig)().sidebar,N=void 0===C[S.route]?k||L||I||(M&&"collapsed"in M?!M.collapsed:y<R):C[S.route]||I,[,F]=(0,m.useState)();(0,m.useEffect)(()=>{P?L&&I?C[S.route]=!0:delete C[S.route]:(L||I)&&(C[S.route]=!0)},[L,I,S.route,P]);let A="frontMatter"in S,D=A?a.e:s.z,z=(0,i.Z)({open:N,active:k}),_=!A&&"x:text-start x:w-full",W=k?O.active:O.inactive;h[4]!==_||h[5]!==W?(l=(0,i.Z)("x:items-center x:justify-between x:gap-2",_,O.link,W),h[4]=_,h[5]=W,h[6]=l):l=h[6];let H=S.title,B=f.r,U=(0,i.Z)("x:shrink-0","x:rounded-sm x:p-0.5 x:hover:bg-gray-800/5 x:dark:hover:bg-gray-100/5","x:motion-reduce:transition-none x:origin-center x:transition-all x:rtl:-rotate-180",N&&"x:ltr:rotate-90 x:rtl:-rotate-270");return h[7]!==B||h[8]!==U?(d=(0,r.jsx)(B,{height:"18",className:U}),h[7]=B,h[8]=U,h[9]=d):d=h[9],(0,r.jsxs)("li",{className:z,children:[(0,r.jsxs)(D,{...A?{href:S.route,prefetch:!1}:{"data-href":S.route},className:l,onClick:e=>{let t=e.currentTarget,n=t!==e.target;n&&e.preventDefault();let r=t.parentElement.classList.contains("open");C[S.route]=A&&!n&&!k||!r,F({})},onFocus:x,children:[H,d]}),S.children&&(0,r.jsx)(u.U,{isOpen:N,children:(0,r.jsx)(j,{className:O.border,directories:S.children,anchors:g,level:y})})]})},I=e=>{let t,n,l;let a=(0,o.c)(7),{title:s}=e,u=s?"x:not-first:mt-5 x:mb-2 x:px-2 x:py-1.5 x:text-sm x:font-semibold x:text-gray-900 x:dark:text-gray-100":"x:my-4";return a[0]!==u?(t=(0,i.Z)("[word-break:break-word]",u),a[0]=u,a[1]=t):t=a[1],a[2]!==s?(n=s||(0,r.jsx)("hr",{className:"x:mx-2 x:border-t nextra-border"}),a[2]=s,a[3]=n):n=a[3],a[4]!==t||a[5]!==n?(l=(0,r.jsx)("li",{className:t,children:n}),a[4]=t,a[5]=n,a[6]=l):l=a[6],l},M=()=>{(0,y.K)(!1)},R=e=>{let t,n,l,s,u,d;let f=(0,o.c)(22),{item:h,anchors:m,onFocus:p}=e,g=(0,c.$)();f[0]!==h.route||f[1]!==g?(t=h.route&&[g,g+"/"].includes(h.route+"/"),f[0]=h.route,f[1]=g,f[2]=t):t=f[2];let v=t,x=(0,w.t)();if("separator"===h.type){let e;return f[3]!==h.title?(e=(0,r.jsx)(I,{title:h.title}),f[3]=h.title,f[4]=e):e=f[4],e}let b=h.href||h.route;f[5]!==v?(n=(0,i.Z)({active:v}),f[5]=v,f[6]=n):n=f[6];let y=v?O.active:O.inactive;return f[7]!==y?(l=(0,i.Z)(O.link,y),f[7]=y,f[8]=l):l=f[8],f[9]!==b||f[10]!==h.title||f[11]!==p||f[12]!==l?(s=(0,r.jsx)(a.e,{href:b,className:l,onFocus:p,prefetch:!1,children:h.title}),f[9]=b,f[10]=h.title,f[11]=p,f[12]=l,f[13]=s):s=f[13],f[14]!==v||f[15]!==x||f[16]!==m?(u=v&&m.length>0&&(0,r.jsx)("ul",{className:(0,i.Z)(O.list,O.border),children:m.map(e=>{let{id:t,value:n}=e;return(0,r.jsx)("li",{children:(0,r.jsx)("a",{href:"#".concat(t),className:(0,i.Z)(O.link,'x:focus-visible:nextra-focus x:flex x:gap-2 x:before:opacity-25 x:before:content-["#"]',t===x?O.active:O.inactive),onClick:M,children:n})},t)})}),f[14]=v,f[15]=x,f[16]=m,f[17]=u):u=f[17],f[18]!==n||f[19]!==s||f[20]!==u?(d=(0,r.jsxs)("li",{className:n,children:[s,u]}),f[18]=n,f[19]=s,f[20]=u,f[21]=d):d=f[21],d},P=e=>{x(e.target.getAttribute("href")||e.target.dataset.href||"")},j=(0,m.forwardRef)((e,t)=>{let n,l,a;let s=(0,o.c)(13),{directories:u,anchors:c,className:d,level:f}=e;if(s[0]!==d?(n=(0,i.Z)(O.list,d),s[0]=d,s[1]=n):n=s[1],s[2]!==c||s[3]!==u||s[4]!==f){let e;s[6]!==c||s[7]!==f?(e=e=>{var t;let n="menu"===e.type||(null===(t=e.children)||void 0===t?void 0:t.length)?L:R;return(0,r.jsx)(n,{item:e,anchors:c,onFocus:P,level:f+1},e.name)},s[6]=c,s[7]=f,s[8]=e):e=s[8],l=u.map(e),s[2]=c,s[3]=u,s[4]=f,s[5]=l}else l=s[5];return s[9]!==t||s[10]!==n||s[11]!==l?(a=(0,r.jsx)("ul",{className:n,ref:t,children:l}),s[9]=t,s[10]=n,s[11]=l,s[12]=a):a=s[12],a});j.displayName="Menu";let N=()=>{let e,t,n,a,s,u,c,f,h;let g=(0,o.c)(22),{directories:v}=(0,E.useConfig)().normalizePagesResult,x=(0,S.useTOC)(),w=(0,y.H)(),C=(0,l.usePathname)(),L=(0,d.H)();g[0]!==L||g[1]!==C?(e=[C,L],g[0]=L,g[1]=C,g[2]=e):e=g[2],(0,m.useEffect)(z,e),g[3]!==x?(t=x.filter(_),g[3]=x,g[4]=t):t=g[4];let I=t,M=(0,m.useRef)(null);g[5]!==w?(n=()=>{let e=M.current,t=e.querySelector("li.active");t&&w&&(0,p.Z)(t,{block:"center",inline:"center",scrollMode:"always",boundary:e.parentNode})},a=[w],g[5]=w,g[6]=n,g[7]=a):(n=g[6],a=g[7]),(0,m.useEffect)(n,a);let R=(0,b.useThemeConfig)(),P=R.i18n.length>0,N=R.darkMode||P,F=w?"x:[transform:translate3d(0,0,0)]":"x:[transform:translate3d(0,-100%,0)]";return g[8]!==F?(s=(0,i.Z)("nextra-mobile-nav","x:flex x:flex-col","x:fixed x:inset-0 x:pt-(--nextra-navbar-height) x:z-20 x:overscroll-contain","x:[contain:layout_style]","x:md:hidden","x:[.nextra-banner:not([class$=hidden])~&]:pt-[calc(var(--nextra-banner-height)+var(--nextra-navbar-height))]","x:bg-nextra-bg",F),g[8]=F,g[9]=s):s=g[9],g[10]!==R.search?(u=R.search&&(0,r.jsx)("div",{className:"x:px-4 x:pt-4",children:R.search}),g[10]=R.search,g[11]=u):u=g[11],g[12]!==I||g[13]!==v?(c=(0,r.jsx)(j,{ref:M,className:O.wrapper,directories:v,anchors:I,level:0}),g[12]=I,g[13]=v,g[14]=c):c=g[14],g[15]!==N?(f=N&&(0,r.jsxs)("div",{className:(0,i.Z)(O.footer,"x:mt-auto"),children:[(0,r.jsx)(k.ThemeSwitch,{className:"x:grow"}),(0,r.jsx)(T.LocaleSwitch,{className:"x:grow x:justify-end"})]}),g[15]=N,g[16]=f):f=g[16],g[17]!==s||g[18]!==u||g[19]!==c||g[20]!==f?(h=(0,r.jsxs)("aside",{className:s,children:[u,c,f]}),g[17]=s,g[18]=u,g[19]=c,g[20]=f,g[21]=h):h=g[21],h},F=0,A=e=>{F=e.currentTarget.scrollTop},D=()=>{let e,t,n,l,a,c,d,f,g,v,x;let y=(0,o.c)(36),w=(0,S.useTOC)(),{normalizePagesResult:C,hideSidebar:L}=(0,E.useConfig)(),I=(0,b.useThemeConfig)(),[M,R]=(0,m.useState)(I.sidebar.defaultOpen),[P,N]=(0,m.useState)(!1),D=(0,m.useRef)(null),z=(0,m.useId)(),{docsDirectories:_,activeThemeContext:U}=C,V="default"===U.layout;y[0]===Symbol.for("react.memo_cache_sentinel")?(e=()=>{if(window.innerWidth<768)return;let e=D.current;if(F){e.scrollTop=F;return}let t=e.querySelector("li.active");t&&(0,p.Z)(t,{block:"center",inline:"center",scrollMode:"always",boundary:e.parentNode})},t=[],y[0]=e,y[1]=t):(e=y[0],t=y[1]),(0,m.useEffect)(e,t),y[2]!==I.toc.float||y[3]!==w?(n=I.toc.float?[]:w.filter(W),y[2]=I.toc.float,y[3]=w,y[4]=n):n=y[4];let Z=n,G=I.i18n.length>0,K=I.darkMode||G||I.sidebar.toggleButton;y[5]!==L||y[6]!==V?(l=V&&L&&(0,r.jsx)("div",{className:"x:max-xl:hidden x:h-0 x:w-64 x:shrink-0"}),y[5]=L,y[6]=V,y[7]=l):l=y[7];let q=M?"x:w-64":"x:w-20",Y=L?"x:hidden":"x:sticky";y[8]!==q||y[9]!==Y?(a=(0,i.Z)("nextra-sidebar x:print:hidden","x:transition-all x:ease-in-out","x:max-md:hidden x:flex x:flex-col","x:h-[calc(100dvh-var(--nextra-navbar-height))]","x:top-(--nextra-navbar-height) x:shrink-0",q,Y),y[8]=q,y[9]=Y,y[10]=a):a=y[10];let Q=!M&&"no-scrollbar";return y[11]!==Q?(c=(0,i.Z)(O.wrapper,"x:grow",Q),y[11]=Q,y[12]=c):c=y[12],y[13]!==Z||y[14]!==_||y[15]!==L||y[16]!==M?(d=(!L||!M)&&(0,r.jsx)(u.U,{isOpen:M,horizontal:!0,children:(0,r.jsx)(j,{directories:_,anchors:Z,level:0})}),y[13]=Z,y[14]=_,y[15]=L,y[16]=M,y[17]=d):d=y[17],y[18]!==c||y[19]!==d?(f=(0,r.jsx)("div",{className:c,ref:D,onScrollEnd:A,children:d}),y[18]=c,y[19]=d,y[20]=f):f=y[20],y[21]!==G||y[22]!==K||y[23]!==M||y[24]!==P||y[25]!==z||y[26]!==I.sidebar.toggleButton?(g=K&&(0,r.jsxs)("div",{className:(0,i.Z)("x:sticky x:bottom-0 x:bg-nextra-bg",O.footer,!M&&"x:flex-wrap x:justify-center",P&&["x:*:opacity-0",M?"x:*:animate-[fade-in_1s_ease_.2s_forwards]":"x:*:animate-[fade-in2_1s_ease_.2s_forwards]"]),children:[(0,r.jsx)(T.LocaleSwitch,{lite:!M,className:M?"x:grow":""}),(0,r.jsx)(k.ThemeSwitch,{lite:!M||G,className:!M||G?"":"x:grow"}),I.sidebar.toggleButton&&(0,r.jsx)(s.z,{"aria-expanded":M,"aria-controls":z,title:M?"Collapse sidebar":"Expand sidebar",className:H,onClick:()=>{R(B),N(!0)},children:(0,r.jsx)(h,{height:"12",className:(0,i.Z)(!M&&"x:*:first:origin-[35%] x:*:first:rotate-180")})})]}),y[21]=G,y[22]=K,y[23]=M,y[24]=P,y[25]=z,y[26]=I.sidebar.toggleButton,y[27]=g):g=y[27],y[28]!==z||y[29]!==f||y[30]!==g||y[31]!==a?(v=(0,r.jsxs)("aside",{id:z,className:a,children:[f,g]}),y[28]=z,y[29]=f,y[30]=g,y[31]=a,y[32]=v):v=y[32],y[33]!==v||y[34]!==l?(x=(0,r.jsxs)(r.Fragment,{children:[l,v]}),y[33]=v,y[34]=l,y[35]=x):x=y[35],x};function z(){(0,y.K)(!1)}function _(e){return 2===e.depth}function W(e){return 2===e.depth}function H(e){let{hover:t}=e;return(0,i.Z)("x:rounded-md x:p-2",t?"x:bg-gray-200 x:text-gray-900 x:dark:bg-primary-100/5 x:dark:text-gray-50":"x:text-gray-600 x:dark:text-gray-400")}function B(e){return!e}},935:function(e,t,n){"use strict";n.r(t),n.d(t,{ThemeSwitch:function(){return f}});var r=n(57437),o=n(83238),i=n(61994),l=n(25922),a=n(19972),s=n(59195);let u=e=>{let t,n;let i=(0,o.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{strokeLinejoin:"round",strokeWidth:2,d:"M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"}),i[0]=t):t=i[0],i[1]!==e?(n=(0,r.jsx)("svg",{fill:"currentColor",viewBox:"2 2 20 20",stroke:"currentColor",...e,children:t}),i[1]=e,i[2]=n):n=i[2],n},c=e=>{let t,n;let i=(0,o.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{strokeLinecap:"round",strokeWidth:2,d:"M12 3v1m0 16v1m9-9h-1M4 12H3m15.364 6.364l-.707-.707M6.343 6.343l-.707-.707m12.728 0l-.707.707M6.343 17.657l-.707.707M16 12a4 4 0 11-8 0 4 4 0 018 0z"}),i[0]=t):t=i[0],i[1]!==e?(n=(0,r.jsx)("svg",{fill:"currentColor",viewBox:"2 2 20 20",stroke:"currentColor",...e,children:t}),i[1]=e,i[2]=n):n=i[2],n};var d=n(54108);let f=e=>{let t,n,f,h,m,p,g,v;let x=(0,o.c)(23),{lite:b,className:y}=e,{setTheme:w,resolvedTheme:E,theme:S}=(0,l.F)(),T=(0,s.s)(),{darkMode:k,themeSwitch:C}=(0,d.useThemeConfig)();if(!k)return null;let O=T&&"dark"===E?u:c,L=T?S:"light";x[0]!==y?(t=(0,i.Z)("x:flex x:items-center x:gap-2",y),x[0]=y,x[1]=t):t=x[1],x[2]!==C.light?(n={id:"light",name:C.light},x[2]=C.light,x[3]=n):n=x[3],x[4]!==C.dark?(f={id:"dark",name:C.dark},x[4]=C.dark,x[5]=f):f=x[5],x[6]!==C.system?(h={id:"system",name:C.system},x[6]=C.system,x[7]=h):h=x[7],x[8]!==n||x[9]!==f||x[10]!==h?(m=[n,f,h],x[8]=n,x[9]=f,x[10]=h,x[11]=m):m=x[11],x[12]!==O?(p=(0,r.jsx)(O,{height:"12"}),x[12]=O,x[13]=p):p=x[13];let I=!b&&C[L];return x[14]!==p||x[15]!==I?(g=(0,r.jsxs)(r.Fragment,{children:[p,I]}),x[14]=p,x[15]=I,x[16]=g):g=x[16],x[17]!==L||x[18]!==w||x[19]!==t||x[20]!==m||x[21]!==g?(v=(0,r.jsx)(a.P,{className:t,title:"Change theme",options:m,onChange:w,value:L,selectedOption:g}),x[17]=L,x[18]=w,x[19]=t,x[20]=m,x[21]=g,x[22]=v):v=x[22],v}},94386:function(e,t,n){"use strict";n.d(t,{TOC:function(){return w}});var r=n(57437),o=n(83238),i=n(61994),l=n(22061),a=n(2265),s=n(89056),u=n(64925),c=n(54108),d=n(18960),f=n(17691),h=n(42175),m=n(18674),p=n(85205),g=n(28568);let v={top:0,behavior:"smooth"},x=e=>{let t=e.currentTarget,n=t.parentElement.parentElement;window.scrollTo(v),n.scrollTo(v),t.disabled=!0},b=e=>{let t,n,l;let a=(0,o.c)(8),{children:s,className:u,hidden:c}=e,d=c?"true":void 0;return a[0]!==u?(t=e=>{let{disabled:t}=e;return(0,i.Z)("x:flex x:items-center x:gap-1.5","x:whitespace-nowrap",t?"x:opacity-0":"x:opacity-100",u)},a[0]=u,a[1]=t):t=a[1],a[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,r.jsx)(g.r,{height:"1.1em",className:"x:-rotate-90 x:border x:rounded-full x:border-current"}),a[2]=n):n=a[2],a[3]!==s||a[4]!==c||a[5]!==d||a[6]!==t?(l=(0,r.jsxs)(p.z,{"aria-hidden":d,onClick:x,disabled:c,className:t,children:[s,n]}),a[3]=s,a[4]=c,a[5]=d,a[6]=t,a[7]=l):l=a[7],l},y=(0,i.Z)("x:text-xs x:font-medium x:transition","x:text-gray-600 x:dark:text-gray-400","x:hover:text-gray-800 x:dark:hover:text-gray-200","x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100"),w=e=>{let t,n,p,g,v,x,w,E,S;let T=(0,o.c)(34),{filePath:k,pageTitle:C}=e,O=(0,u.t)(),L=(0,a.useRef)(null),I=(0,c.useThemeConfig)(),M=(0,d.useTOC)(),R=I.feedback.content||I.editLink||I.toc.extraContent||I.toc.backToTop,{activeType:P}=(0,f.useConfig)().normalizePagesResult;T[0]!==P||T[1]!==I.toc.float||T[2]!==M?(t=I.toc.float||"page"===P?M:[],T[0]=P,T[1]=I.toc.float,T[2]=M,T[3]=t):t=T[3];let j=t,N=j.length>0;T[4]!==O?(n=e=>{let{id:t}=e;return t===O},T[4]=O,T[5]=n):n=T[5];let F=M.findIndex(n);if(T[6]!==O?(p=()=>{var e;if(!O)return;let t=null===(e=L.current)||void 0===e?void 0:e.querySelector('a[href="#'.concat(O,'"]'));t&&(0,s.Z)(t,{behavior:"smooth",block:"center",inline:"center",scrollMode:"if-needed",boundary:L.current})},g=[O],T[6]=O,T[7]=p,T[8]=g):(p=T[7],g=T[8]),(0,a.useEffect)(p,g),T[9]!==C||T[10]!==I.docsRepositoryBase||T[11]!==I.feedback.labels||T[12]!==I.feedback.link){var A;v=null!==(A=I.feedback.link)&&void 0!==A?A:(0,h.K)({labels:I.feedback.labels,repository:I.docsRepositoryBase,title:"Feedback for “".concat(C,"”")}),T[9]=C,T[10]=I.docsRepositoryBase,T[11]=I.feedback.labels,T[12]=I.feedback.link,T[13]=v}else v=T[13];let D=v;return T[14]===Symbol.for("react.memo_cache_sentinel")?(x=(0,i.Z)("x:grid x:grid-rows-[min-content_1fr_min-content]","x:sticky x:top-(--nextra-navbar-height) x:text-sm","x:max-h-[calc(100vh-var(--nextra-navbar-height))]"),T[14]=x):x=T[14],T[15]!==O||T[16]!==j||T[17]!==N||T[18]!==I.toc.title?(w=N&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("p",{className:"x:pt-6 x:px-4 x:font-semibold x:tracking-tight",children:I.toc.title}),(0,r.jsx)("ul",{ref:L,className:(0,i.Z)("x:p-4 nextra-scrollbar x:overscroll-y-contain x:overflow-y-auto x:hyphens-auto","nextra-mask"),children:j.map(e=>{let{id:t,value:n,depth:o}=e;return(0,r.jsx)("li",{className:"x:my-2 x:scroll-my-6 x:scroll-py-6",children:(0,r.jsx)("a",{href:"#".concat(t),className:(0,i.Z)("x:focus-visible:nextra-focus",{2:"x:font-semibold",3:"x:ms-3",4:"x:ms-6",5:"x:ms-9",6:"x:ms-12"}[o],"x:block x:transition-colors x:subpixel-antialiased",t===O?"x:text-primary-600 x:contrast-more:text-primary-600!":"x:text-gray-600 x:hover:text-gray-900 x:dark:text-gray-400 x:dark:hover:text-gray-300","x:contrast-more:text-gray-900 x:contrast-more:underline x:contrast-more:dark:text-gray-50 x:break-words"),children:n})},t)})})]}),T[15]=O,T[16]=j,T[17]=N,T[18]=I.toc.title,T[19]=w):w=T[19],T[20]!==F||T[21]!==D||T[22]!==k||T[23]!==N||T[24]!==R||T[25]!==I.docsRepositoryBase||T[26]!==I.editLink||T[27]!==I.feedback.content||T[28]!==I.toc.backToTop||T[29]!==I.toc.extraContent?(E=R&&(0,r.jsxs)("div",{className:(0,i.Z)("x:grid x:gap-2 x:py-4 x:mx-4",N&&"x:border-t nextra-border"),children:[I.feedback.content&&(0,r.jsx)(l.e,{className:y,href:D,children:I.feedback.content}),k&&I.editLink&&(0,r.jsx)(l.e,{className:y,href:k.startsWith("http")?k:"".concat((0,m.Y)(I.docsRepositoryBase).href,"/").concat(k),children:I.editLink}),I.toc.extraContent,I.toc.backToTop&&(0,r.jsx)(b,{className:y,hidden:F<2,children:I.toc.backToTop})]}),T[20]=F,T[21]=D,T[22]=k,T[23]=N,T[24]=R,T[25]=I.docsRepositoryBase,T[26]=I.editLink,T[27]=I.feedback.content,T[28]=I.toc.backToTop,T[29]=I.toc.extraContent,T[30]=E):E=T[30],T[31]!==w||T[32]!==E?(S=(0,r.jsxs)("div",{className:x,children:[w,E]}),T[31]=w,T[32]=E,T[33]=S):S=T[33],S}},56099:function(e,t,n){"use strict";n.d(t,{HeadingAnchor:function(){return s}});var r=n(57437),o=n(83238),i=n(2265),l=n(64925);let a="undefined"==typeof window?null:new IntersectionObserver(e=>{let t=e.find(e=>e.isIntersecting);if(t){let e=t.target.hash.slice(1);(0,l.Z)(decodeURI(e))}},{rootMargin:"-".concat(getComputedStyle(document.body).getPropertyValue("--nextra-navbar-height")||"0%"," 0% -80%")}),s=e=>{let t,n,l;let s=(0,o.c)(4),{id:u}=e,c=(0,i.useRef)(null);s[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{let e=c.current;return a.observe(e),()=>{a.unobserve(e)}},n=[],s[0]=t,s[1]=n):(t=s[0],n=s[1]),(0,i.useEffect)(t,n);let d="#".concat(u);return s[2]!==d?(l=(0,r.jsx)("a",{href:d,className:"x:focus-visible:nextra-focus subheading-anchor","aria-label":"Permalink for this section",ref:c}),s[2]=d,s[3]=l):l=s[3],l}},98270:function(e,t,n){"use strict";n.d(t,{ClientWrapper:function(){return v}});var r=n(57437),o=n(83238),i=n(61994),l=n(2265),a=n(94386),s=n(27648),u=n(28568);function c(e){var t;if("string"==typeof e)return e;if("number"==typeof e)return String(e);if(Array.isArray(e))return e.map(e=>c(e)).join("");let n=null==e?void 0:null===(t=e.props)||void 0===t?void 0:t.children;return n?c(n):""}let d=e=>{let t,n;let i=(0,o.c)(4),{activePath:l}=e;return i[0]!==l?(t=l.map(f),i[0]=l,i[1]=t):t=i[1],i[2]!==t?(n=(0,r.jsx)("div",{className:"nextra-breadcrumb x:mt-1.5 x:flex x:items-center x:gap-1 x:overflow-hidden x:text-sm x:text-gray-600 x:dark:text-gray-400 x:contrast-more:text-current",children:t}),i[2]=t,i[3]=n):n=i[3],n};function f(e,t,n){let o=n[t+1],a=o?"frontMatter"in e?e.route:e.children[0].route===o.route?"":e.children[0].route:"",d=a?s.default:"span";return(0,r.jsxs)(l.Fragment,{children:[t>0&&(0,r.jsx)(u.r,{height:"14",className:"x:shrink-0 x:rtl:rotate-180"}),(0,r.jsx)(d,{className:(0,i.Z)("x:whitespace-nowrap x:transition-colors",o?"x:min-w-6 x:overflow-hidden x:text-ellipsis":"x:font-medium x:text-black x:dark:text-gray-100",a&&"x:focus-visible:nextra-focus x:ring-inset x:hover:text-gray-900 x:dark:hover:text-gray-100"),title:c(e.title),...a&&{href:a,prefetch:!1},children:e.title})]},e.route+e.name)}var h=n(17691),m=n(54108);let p={link:(0,i.Z)("x:focus-visible:nextra-focus x:text-gray-600 x:dark:text-gray-400","x:hover:text-gray-800 x:dark:hover:text-gray-200","x:contrast-more:text-gray-700 x:contrast-more:dark:text-gray-100","x:flex x:max-w-[50%] x:items-center x:gap-1 x:py-4 x:text-base x:font-medium x:transition-colors x:[word-break:break-word] x:md:text-lg"),icon:(0,i.Z)("x:inline x:shrink-0")},g=()=>{let e,t,n,l;let a=(0,o.c)(8),{flatDocsDirectories:d,activeIndex:f}=(0,h.useConfig)().normalizePagesResult,{navigation:g}=(0,m.useThemeConfig)(),v=g.prev&&d[f-1],x=g.next&&d[f+1];return(v&&!v.isUnderCurrentDocsTree&&(v=!1),x&&!x.isUnderCurrentDocsTree&&(x=!1),v||x)?(a[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,i.Z)("x:mb-8 x:flex x:items-center x:border-t x:pt-8 nextra-border","x:print:hidden"),a[0]=e):e=a[0],a[1]!==v?(t=v&&(0,r.jsxs)(s.default,{href:v.route,title:c(v.title),className:(0,i.Z)(p.link,"x:pe-4"),prefetch:!1,children:[(0,r.jsx)(u.r,{height:"20",className:(0,i.Z)(p.icon,"x:ltr:rotate-180")}),v.title]}),a[1]=v,a[2]=t):t=a[2],a[3]!==x?(n=x&&(0,r.jsxs)(s.default,{href:x.route,title:c(x.title),className:(0,i.Z)(p.link,"x:ps-4 x:ms-auto x:text-end"),prefetch:!1,children:[x.title,(0,r.jsx)(u.r,{height:"20",className:(0,i.Z)(p.icon,"x:rtl:rotate-180")})]}),a[3]=x,a[4]=n):n=a[4],a[5]!==t||a[6]!==n?(l=(0,r.jsxs)("div",{className:e,children:[t,n]}),a[5]=t,a[6]=n,a[7]=l):l=a[7],l):null},v=e=>{let t,n,s,u,c,f,p;let v=(0,o.c)(26),{children:x,metadata:b,bottomContent:y}=e,{activeType:w,activeThemeContext:E,activePath:S}=(0,h.useConfig)().normalizePagesResult,T=(0,m.useThemeConfig)(),k=E.timestamp&&b.timestamp;v[0]!==b||v[1]!==E.layout||v[2]!==E.toc?(t=("default"===E.layout||E.toc)&&(0,r.jsx)("nav",{className:"nextra-toc x:order-last x:max-xl:hidden x:w-64 x:shrink-0 x:print:hidden","aria-label":"table of contents",children:E.toc&&(0,r.jsx)(a.TOC,{filePath:b.filePath,pageTitle:b.title})}),v[0]=b,v[1]=E.layout,v[2]=E.toc,v[3]=t):t=v[3];let C="article"===E.typesetting&&"nextra-body-typesetting-article";return v[4]!==C?(n=(0,i.Z)("x:w-full x:min-w-0 x:break-words x:min-h-[calc(100vh-var(--nextra-navbar-height))]","x:text-slate-700 x:dark:text-slate-200 x:pb-8 x:px-4 x:pt-4 x:md:px-12",C),v[4]=C,v[5]=n):n=v[5],v[6]!==S||v[7]!==w||v[8]!==E.breadcrumb?(s=E.breadcrumb&&"page"!==w&&(0,r.jsx)(d,{activePath:S}),v[6]=S,v[7]=w,v[8]=E.breadcrumb,v[9]=s):s=v[9],v[10]!==k||v[11]!==T?(u=k?(0,r.jsx)("div",{className:"x:mt-12 x:mb-8 x:text-xs x:text-gray-600 x:text-end x:dark:text-gray-400",children:(0,l.cloneElement)(T.lastUpdated,{date:new Date(k)})}):(0,r.jsx)("div",{className:"x:mt-16"}),v[10]=k,v[11]=T,v[12]=u):u=v[12],v[13]!==w||v[14]!==E.pagination?(c=E.pagination&&"page"!==w&&(0,r.jsx)(g,{}),v[13]=w,v[14]=E.pagination,v[15]=c):c=v[15],v[16]!==y||v[17]!==x||v[18]!==n||v[19]!==s||v[20]!==u||v[21]!==c?(f=(0,r.jsxs)("article",{className:n,children:[s,x,u,c,y]}),v[16]=y,v[17]=x,v[18]=n,v[19]=s,v[20]=u,v[21]=c,v[22]=f):f=v[22],v[23]!==t||v[24]!==f?(p=(0,r.jsxs)(r.Fragment,{children:[t,f]}),v[23]=t,v[24]=f,v[25]=p):p=v[25],p}},64925:function(e,t,n){"use strict";n.d(t,{Z:function(){return i},t:function(){return o}});let r=(0,n(3011).U)(()=>({activeSlug:""})),o=()=>r(e=>e.activeSlug),i=e=>{r.setState({activeSlug:e})}},17691:function(e,t,n){"use strict";n.d(t,{ConfigProvider:function(){return c},useConfig:function(){return u}});var r=n(57437),o=n(83238),i=n(79128);let l={breadcrumb:!0,collapsed:void 0,footer:!0,layout:"default",navbar:!0,pagination:!0,sidebar:!0,timestamp:!0,toc:!0,typesetting:"default"};var a=n(2265);let s=(0,a.createContext)(null);function u(){let e;let t=(0,o.c)(3),n=(0,a.useContext)(s);if(!n)throw Error("Missing ConfigContext.Provider");let{activeThemeContext:r,activeType:i}=n,l=!r.sidebar||"page"===i;return t[0]!==n||t[1]!==l?(e={normalizePagesResult:n,hideSidebar:l},t[0]=n,t[1]=l,t[2]=e):e=t[2],e}let c=e=>{let t,n;let a=(0,o.c)(8),{children:u,pageMap:c,navbar:d,footer:f}=e,h=(0,i.$)();a[0]!==c||a[1]!==h?(t=function e({list:t,route:n,docsRoot:r="",pageThemeContext:o=l}){let i=n.startsWith(r),a=[],s=[],u=[],c=[],d=t[0],f="data"in d?d.data:{},h="data"in d?t.slice(1):t,m=f["*"]||{},p=m.type,g=0,v={...o,...m.theme},x=[];for(let t of h){let l=function(e={},t,n={}){let r={...t.theme,...e.theme,...n.theme};return{...t,...e,display:n.display||e.display||t.display,theme:r}}(f[t.name],m,t.frontMatter),{display:d,type:h="doc"}=l,b={...o,...l.theme},y="children"in t&&e({list:t.children,route:n,docsRoot:"page"===h||"menu"===h?t.route:r,underCurrentDocsRoot:i,pageThemeContext:b}),w=()=>({...t,type:h,..."title"in t&&{title:t.title},...d&&{display:d},...y&&{children:[]}}),E=w(),S=w();if("children"in S){let{collapsed:e}=l.theme;"boolean"==typeof e&&(S.theme={collapsed:e})}let T=w();if(S.isUnderCurrentDocsTree=i,"separator"===h&&(E.isUnderCurrentDocsTree=i),t.route===n)switch(x=[E],p=h,v={...v,...b},h){case"page":case"menu":g=c.length;break;case"doc":g=u.length}let k="hidden"===d;if(y){if(void 0!==y.activeIndex&&void 0!==y.activeType){if(v=y.activeThemeContext,p=y.activeType,k)continue;switch(x=[E,...y.activePath.filter(e=>"children"!==e.display)],p){case"page":case"menu":g=c.length+y.activeIndex;break;case"doc":g=u.length+y.activeIndex}"frontMatter"in t&&"doc"===h&&g++}switch(h){case"page":case"menu":if(T.children.push(...y.directories),s.push(...y.docsDirectories),y.flatDocsDirectories.length){let e=function e(t){for(let n of t){if(n.route)return n.route;if(n.children){let t=e(n.children);if(t)return t}}}(y.flatDocsDirectories);e&&(T.firstChildRoute=e),c.push(T)}else"frontMatter"in T&&c.push(T);break;case"doc":S.children.push(...y.docsDirectories),"frontMatter"in E&&"children"!==d&&u.push(S)}u.push(...y.flatDocsDirectories),E.children.push(...y.directories)}else{if(k)continue;switch(h){case"page":case"menu":c.push(T);break;case"doc":"href"in E||u.push(S)}}if(!k)switch("doc"===h&&"children"===d?S.children&&(a.push(...S.children),s.push(...S.children)):a.push(E),h){case"page":case"menu":s.push(T);break;case"doc":"children"!==d&&s.push(S);break;case"separator":s.push(E)}}return{activeType:p,activeIndex:g,activeThemeContext:v,activeMetadata:x.at(-1)?.frontMatter,activePath:x,directories:a,docsDirectories:s.filter(e=>e.isUnderCurrentDocsTree),flatDocsDirectories:u,topLevelNavbarItems:c}}({list:c,route:h}),a[0]=c,a[1]=h,a[2]=t):t=a[2];let m=t,{activeThemeContext:p}=m,g=p.navbar&&d,v=p.footer&&f;return a[3]!==u||a[4]!==m||a[5]!==g||a[6]!==v?(n=(0,r.jsxs)(s.Provider,{value:m,children:[g,u,v]}),a[3]=u,a[4]=m,a[5]=g,a[6]=v,a[7]=n):n=a[7],n}},4535:function(e,t,n){"use strict";n.d(t,{H:function(){return o},K:function(){return i}});let r=(0,n(3011).U)(()=>({hasMenu:!1})),o=()=>r(e=>e.hasMenu),i=e=>{r.setState(t=>{let n="function"==typeof e?e(t.hasMenu):e;return document.documentElement.classList.toggle("x:max-md:overflow-hidden",n),{hasMenu:n}})}},54108:function(e,t,n){"use strict";n.d(t,{ThemeConfigProvider:function(){return l},useThemeConfig:function(){return i}});var r=n(2265);let o=(0,r.createContext)(null),i=()=>(0,r.useContext)(o),l=e=>(0,r.createElement)(o.Provider,e)},18960:function(e,t,n){"use strict";n.d(t,{TOCProvider:function(){return l},useTOC:function(){return i}});var r=n(2265);let o=(0,r.createContext)([]),i=()=>(0,r.useContext)(o),l=e=>(0,r.createElement)(o.Provider,e)},42175:function(e,t,n){"use strict";n.d(t,{K:function(){return o}});var r=n(18674);function o(e){let{repository:t="",title:n,labels:o}=e,i=(0,r.Y)(t);return i.origin.includes("gitlab")?"".concat(i.origin,"/").concat(i.owner,"/").concat(i.name,"/-/issues/new?issue[title]=").concat(encodeURIComponent(n)).concat(o?"&issue[description]=/label".concat(encodeURIComponent(" ~".concat(o,"\n"))):""):i.origin.includes("github")?"".concat(i.origin,"/").concat(i.owner,"/").concat(i.name,"/issues/new?title=").concat(encodeURIComponent(n),"&labels=").concat(o||""):"#"}},18674:function(e,t,n){"use strict";function r(e){let{href:t,origin:n,pathname:r}=new URL(e),[,o,i]=r.split("/",3);return{href:t,origin:n,owner:o,name:i}}n.d(t,{Y:function(){return r}})},85205:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(57437),o=n(83238),i=n(35933),l=n(61994);let a={border:(0,l.Z)("x:border x:border-gray-300 x:dark:border-neutral-700","x:contrast-more:border-gray-900 x:contrast-more:dark:border-gray-50")},s=e=>{let t,n,s,u,c,d;let f=(0,o.c)(12);f[0]!==e?({children:t,className:n,variant:u,...s}=e,f[0]=e,f[1]=t,f[2]=n,f[3]=s,f[4]=u):(t=f[1],n=f[2],s=f[3],u=f[4]);let h=void 0===u?"default":u;return f[5]!==n||f[6]!==h?(c=e=>(0,l.Z)("x:transition x:cursor-pointer",e.focus&&"x:nextra-focus","outline"===h&&[a.border,"x:rounded-md x:p-1.5"],"function"==typeof n?n(e):n),f[5]=n,f[6]=h,f[7]=c):c=f[7],f[8]!==t||f[9]!==s||f[10]!==c?(d=(0,r.jsx)(i.z,{className:c,...s,children:t}),f[8]=t,f[9]=s,f[10]=c,f[11]=d):d=f[11],d}},73406:function(e,t,n){"use strict";n.d(t,{U:function(){return a}});var r=n(57437),o=n(83238),i=n(61994),l=n(2265);let a=e=>{let t,n,a,s,u,c,d,f,h;let m=(0,o.c)(24),{className:p,children:g,isOpen:v,horizontal:x,openDuration:b,closeDuration:y}=e,w=void 0!==x&&x,E=void 0===b?500:b,S=(0,l.useRef)(null),[T]=(0,l.useState)(v),k=(0,l.useRef)(0),C=(0,l.useRef)(!0);m[0]!==w||m[1]!==v||m[2]!==E?(t=()=>{let e=k.current,t=S.current;if(e&&(clearTimeout(e),k.current=0),C.current)return;let n=t.children[0];w?(n.style.width="".concat(n.clientWidth,"px"),t.style.width="".concat(n.clientWidth,"px")):t.style.height="".concat(n.clientHeight,"px"),v?k.current=window.setTimeout(()=>{t.style.removeProperty("height")},E):requestAnimationFrame(()=>{w?t.style.width="0":t.style.height="0"})},n=[w,v,E],m[0]=w,m[1]=v,m[2]=E,m[3]=t,m[4]=n):(t=m[3],n=m[4]),(0,l.useEffect)(t,n),m[5]!==w||m[6]!==v?(a=()=>{(v||!w)&&(C.current=!1)},s=[w,v],m[5]=w,m[6]=v,m[7]=a,m[8]=s):(a=m[7],s=m[8]),(0,l.useEffect)(a,s),m[9]!==g?(u=1===l.Children.count(g)&&g&&"object"==typeof g&&"type"in g?g:(0,r.jsx)("div",{children:g}),m[9]=g,m[10]=u):u=m[10];let O=u,L=v?"x:opacity-100":"x:opacity-0 x:overflow-hidden";m[11]!==p||m[12]!==L?(c=(0,i.Z)("x:transform-gpu x:transition-all x:ease-in-out x:motion-reduce:transition-none",L,p),m[11]=p,m[12]=L,m[13]=c):c=m[13],m[14]!==w||m[15]!==T?(d=T||w?void 0:{height:0},m[14]=w,m[15]=T,m[16]=d):d=m[16];let I=(v?E:void 0===y?300:y)+"ms";return m[17]!==d||m[18]!==I?(f={...d,transitionDuration:I},m[17]=d,m[18]=I,m[19]=f):f=m[19],m[20]!==O||m[21]!==c||m[22]!==f?(h=(0,r.jsx)("div",{ref:S,className:c,style:f,children:O}),m[20]=O,m[21]=c,m[22]=f,m[23]=h):h=m[23],h}},10300:function(e,t,n){"use strict";n.d(t,{ImageZoom:function(){return N}});var r=n(57437),o=n(83238),i=n(2265),l=n(54887);let a=(e,t)=>{var n,r;return e===(null==t?void 0:null===(r=t.tagName)||void 0===r?void 0:null===(n=r.toUpperCase)||void 0===n?void 0:n.call(r))},s=e=>a("DIV",e)||a("SPAN",e),u=e=>a("IMG",e),c=e=>e.complete&&0!==e.naturalHeight,d=e=>a("SVG",e),f=e=>{let{height:t,offset:n,width:r}=e;return Math.min((window.innerWidth-2*n)/r,(window.innerHeight-2*n)/t)},h=e=>{let{containerHeight:t,containerWidth:n,offset:r,targetHeight:o,targetWidth:i}=e,l=f({height:o,offset:r,width:i}),a=i>o?i/n:o/t;return l>1?a:l*a},m=e=>{let{containerHeight:t,containerWidth:n,hasScalableSrc:r,offset:o,targetHeight:i,targetWidth:l}=e;return t&&n?!r&&i&&l?h({containerHeight:t,containerWidth:n,offset:o,targetHeight:i,targetWidth:l}):f({height:t,offset:o,width:n}):1},p=/url(?:\(['"]?)(.*?)(?:['"]?\))/,g=e=>{if(e){if(u(e))return e.currentSrc;if(s(e)){let n=window.getComputedStyle(e).backgroundImage;if(n){var t;return null===(t=p.exec(n))||void 0===t?void 0:t[1]}}}},v=e=>{if(e){var t,n;return u(e)?null!==(t=e.alt)&&void 0!==t?t:void 0:null!==(n=e.getAttribute("aria-label"))&&void 0!==n?n:void 0}},x=e=>{let{containerHeight:t,containerLeft:n,containerTop:r,containerWidth:o,hasScalableSrc:i,offset:l,targetHeight:a,targetWidth:s}=e,u=m({containerHeight:t,containerWidth:o,hasScalableSrc:i,offset:l,targetHeight:a,targetWidth:s});return{top:r,left:n,width:o*u,height:t*u,transform:"translate(0,0) scale(".concat(1/u,")")}},b=e=>{let{position:t,relativeNum:n}=e,r=parseFloat(t);return t.endsWith("%")?n*r/100:r},y=e=>{let{containerHeight:t,containerLeft:n,containerTop:r,containerWidth:o,hasScalableSrc:i,objectFit:l,objectPosition:a,offset:s,targetHeight:u,targetWidth:c}=e;if("scale-down"===l&&(l=c<=o&&u<=t?"none":"contain"),"cover"===l||"contain"===l){let e=o/c,d=t/u,f="cover"===l?Math.max(e,d):Math.min(e,d),[h="50%",p="50%"]=a.split(" "),g=b({position:h,relativeNum:o-c*f}),v=b({position:p,relativeNum:t-u*f}),x=m({containerHeight:u*f,containerWidth:c*f,hasScalableSrc:i,offset:s,targetHeight:u,targetWidth:c});return{top:r+v,left:n+g,width:c*f*x,height:u*f*x,transform:"translate(0,0) scale(".concat(1/x,")")}}if("none"===l){let[e="50%",l="50%"]=a.split(" "),d=b({position:e,relativeNum:o-c}),f=b({position:l,relativeNum:t-u}),h=m({containerHeight:u,containerWidth:c,hasScalableSrc:i,offset:s,targetHeight:u,targetWidth:c});return{top:r+f,left:n+d,width:c*h,height:u*h,transform:"translate(0,0) scale(".concat(1/h,")")}}if("fill"!==l)return{};{let e=Math.max(o/c,t/u),n=m({containerHeight:u*e,containerWidth:c*e,hasScalableSrc:i,offset:s,targetHeight:u,targetWidth:c});return{width:o*n,height:t*n,transform:"translate(0,0) scale(".concat(1/n,")")}}},w=e=>{let{backgroundPosition:t,backgroundSize:n,containerHeight:r,containerLeft:o,containerTop:i,containerWidth:l,hasScalableSrc:a,offset:s,targetHeight:u,targetWidth:c}=e;if("cover"===n||"contain"===n){let e=l/c,d=r/u,f="cover"===n?Math.max(e,d):Math.min(e,d),[h="50%",p="50%"]=t.split(" "),g=b({position:h,relativeNum:l-c*f}),v=b({position:p,relativeNum:r-u*f}),x=m({containerHeight:u*f,containerWidth:c*f,hasScalableSrc:a,offset:s,targetHeight:u,targetWidth:c});return{top:i+v,left:o+g,width:c*f*x,height:u*f*x,transform:"translate(0,0) scale(".concat(1/x,")")}}if("auto"===n){let[e="50%",n="50%"]=t.split(" "),d=b({position:e,relativeNum:l-c}),f=b({position:n,relativeNum:r-u}),h=m({containerHeight:u,containerWidth:c,hasScalableSrc:a,offset:s,targetHeight:u,targetWidth:c});return{top:i+f,left:o+d,width:c*h,height:u*h,transform:"translate(0,0) scale(".concat(1/h,")")}}{let[e="50%",d="50%"]=n.split(" "),f=Math.min(b({position:e,relativeNum:l})/c,b({position:d,relativeNum:r})/u),[h="50%",p="50%"]=t.split(" "),g=b({position:h,relativeNum:l-c*f}),v=b({position:p,relativeNum:r-u*f}),x=m({containerHeight:u*f,containerWidth:c*f,hasScalableSrc:a,offset:s,targetHeight:u,targetWidth:c});return{top:i+v,left:o+g,width:c*f*x,height:u*f*x,transform:"translate(0,0) scale(".concat(1/x,")")}}},E=/\.svg$/i,S=e=>{var t;let{hasZoomImg:n,imgSrc:r,isSvg:o,isZoomed:i,loadedImgEl:l,offset:a,shouldRefresh:u,targetEl:c}=e,d=o||(null==r?void 0:null===(t=r.slice)||void 0===t?void 0:t.call(r,0,18))==="data:image/svg+xml"||n||!!(r&&E.test(r)),f=c.getBoundingClientRect(),h=window.getComputedStyle(c),m=null!=l&&s(c),p=Object.assign({},x({containerHeight:f.height,containerLeft:f.left,containerTop:f.top,containerWidth:f.width,hasScalableSrc:d,offset:a,targetHeight:(null==l?void 0:l.naturalHeight)||f.height,targetWidth:(null==l?void 0:l.naturalWidth)||f.width}),null==l||m?void 0:y({containerHeight:f.height,containerLeft:f.left,containerTop:f.top,containerWidth:f.width,hasScalableSrc:d,objectFit:h.objectFit,objectPosition:h.objectPosition,offset:a,targetHeight:(null==l?void 0:l.naturalHeight)||f.height,targetWidth:(null==l?void 0:l.naturalWidth)||f.width}),m?w({backgroundPosition:h.backgroundPosition,backgroundSize:h.backgroundSize,containerHeight:f.height,containerLeft:f.left,containerTop:f.top,containerWidth:f.width,hasScalableSrc:d,offset:a,targetHeight:(null==l?void 0:l.naturalHeight)||f.height,targetWidth:(null==l?void 0:l.naturalWidth)||f.width}):void 0);if(i){let e=window.innerWidth/2,t=window.innerHeight/2,n=parseFloat(String(p.left||0))+parseFloat(String(p.width||0))/2,r=parseFloat(String(p.top||0))+parseFloat(String(p.height||0))/2;u&&(p.transitionDuration="0.01ms"),p.transform="translate(".concat(e-n,"px,").concat(t-r,"px) scale(1)")}return p},T=e=>{if(!e)return{};if(!d(e))return{height:e.offsetHeight,left:e.offsetLeft,width:e.offsetWidth,top:e.offsetTop};{let t=e.parentElement,n=e.getBoundingClientRect();if(!t)return{height:n.height,left:n.left,width:n.width,top:n.top};{let e=t.getBoundingClientRect();return{height:n.height,left:e.left-n.left,top:e.top-n.top,width:n.width}}}},k=e=>{let t="-zoom",n=["clip-path","fill","mask","marker-start","marker-mid","marker-end"],r=new Map;if(e.hasAttribute("id")){let n=e.id,o=n+t;r.set(n,o),e.id=o}e.querySelectorAll("[id]").forEach(e=>{let n=e.id,o=n+t;r.set(n,o),e.id=o}),r.forEach((t,r)=>{let o="url(#".concat(r,")"),i="url(#".concat(t,")"),l=n.map(e=>"[".concat(e,'="').concat(o,'"]')).join(", ");e.querySelectorAll(l).forEach(e=>{n.forEach(t=>{e.getAttribute(t)===o&&e.setAttribute(t,i)})})}),e.querySelectorAll("style").forEach(e=>{r.forEach((t,n)=>{e.textContent&&(e.textContent=e.textContent.replaceAll("#".concat(n),"#".concat(t)))})})},C=["img","svg",'[role="img"]',"[data-zoom]"].map(e=>"".concat(e,':not([aria-hidden="true"])')).join(","),O={overflow:"",width:""};function L(e){return i.createElement(I,{...e})}class I extends i.Component{render(){let{handleBtnUnzoomClick:e,handleDialogCancel:t,handleDialogClick:n,handleDialogClose:r,handleUnzoom:o,handleZoom:a,imgEl:c,props:{a11yNameButtonUnzoom:f,a11yNameButtonZoom:h,children:m,classDialog:p,IconUnzoom:x,IconZoom:b,isZoomed:y,wrapElement:w,ZoomContent:E,zoomImg:T,zoomMargin:k},refContent:C,refDialog:O,refModalContent:L,refModalImg:I,refWrap:M,state:{id:R,isZoomImgLoaded:P,loadedImgEl:j,modalState:N,shouldRefresh:F,styleGhost:A}}=this,D="rmiz-modal-".concat(R),z="rmiz-modal-img-".concat(R),_=s(c),W=u(c),H=d(c),B=v(c),U=g(c),V=W?c.sizes:void 0,Z=W?c.srcset:void 0,G=W?c.crossOrigin:void 0,K=!!(null==T?void 0:T.src),q=this.hasImage(),Y=B?"".concat(h,": ").concat(B):h,Q="LOADING"===N||"LOADED"===N,J=q?"found":"not-found",X="UNLOADED"===N||"UNLOADING"===N?"hidden":"visible";this.styleModalImg=q?S({hasZoomImg:K,imgSrc:U,isSvg:H,isZoomed:y&&Q,loadedImgEl:j,offset:k,shouldRefresh:F,targetEl:c}):{};let $=null;if(q){let t=W||_?i.createElement("img",{alt:B,crossOrigin:G,sizes:V,src:U,srcSet:Z,...P&&"LOADED"===N?T:{},"data-rmiz-modal-img":"",height:this.styleModalImg.height||void 0,id:z,ref:I,style:this.styleModalImg,width:this.styleModalImg.width||void 0}):H?i.createElement("div",{"data-rmiz-modal-img":!0,ref:I,style:this.styleModalImg}):null,n=i.createElement("button",{"aria-label":f,"data-rmiz-btn-unzoom":"",onClick:e,type:"button"},i.createElement(x,null));$=E?i.createElement(E,{buttonUnzoom:n,modalState:N,img:t,isZoomImgLoaded:P,onUnzoom:o}):i.createElement(i.Fragment,null,t,n)}return i.createElement(w,{"aria-owns":D,"data-rmiz":"",ref:M},i.createElement(w,{"data-rmiz-content":J,ref:C,style:{visibility:"UNLOADED"===N?"visible":"hidden"}},m),q&&i.createElement(w,{"data-rmiz-ghost":"",style:A},i.createElement("button",{"aria-label":Y,"data-rmiz-btn-zoom":"",onClick:a,type:"button"},i.createElement(b,null))),q&&l.createPortal(i.createElement("dialog",{"aria-labelledby":z,"aria-modal":"true",className:p,"data-rmiz-modal":"",id:D,onClick:n,onClose:r,onCancel:t,ref:O,role:"dialog"},i.createElement("div",{"data-rmiz-modal-overlay":X}),i.createElement("div",{"data-rmiz-modal-content":"",ref:L},$)),this.getDialogContainer()))}componentDidMount(){this.setId(),this.setAndTrackImg(),this.handleImgLoad(),this.UNSAFE_handleSvg()}componentWillUnmount(){var e,t,n,r,o,i,l,a,s,u,c,d;"UNLOADED"!==this.state.modalState&&this.bodyScrollEnable(),null===(t=this.contentChangeObserver)||void 0===t||null===(e=t.disconnect)||void 0===e||e.call(t),null===(r=this.contentNotFoundChangeObserver)||void 0===r||null===(n=r.disconnect)||void 0===n||n.call(r),null===(i=this.imgElResizeObserver)||void 0===i||null===(o=i.disconnect)||void 0===o||o.call(i),null===(a=this.imgEl)||void 0===a||null===(l=a.removeEventListener)||void 0===l||l.call(a,"load",this.handleImgLoad),null===(u=this.imgEl)||void 0===u||null===(s=u.removeEventListener)||void 0===s||s.call(u,"click",this.handleZoom),null===(d=this.refModalImg.current)||void 0===d||null===(c=d.removeEventListener)||void 0===c||c.call(d,"transitionend",this.handleImgTransitionEnd),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),window.removeEventListener("resize",this.handleResize),document.removeEventListener("keydown",this.handleKeyDown,!0)}componentDidUpdate(e,t){this.handleModalStateChange(t.modalState),this.UNSAFE_handleSvg(),this.handleIfZoomChanged(e.isZoomed)}constructor(){super(...arguments),this.state={id:"",isZoomImgLoaded:!1,loadedImgEl:void 0,modalState:"UNLOADED",shouldRefresh:!1,styleGhost:{}},this.refContent=i.createRef(),this.refDialog=i.createRef(),this.refModalContent=i.createRef(),this.refModalImg=i.createRef(),this.refWrap=i.createRef(),this.imgEl=null,this.isScaling=!1,this.prevBodyAttrs=O,this.styleModalImg={},this.handleModalStateChange=e=>{let{modalState:t}=this.state;if("LOADING"!==e&&"LOADING"===t)this.loadZoomImg(),window.addEventListener("resize",this.handleResize,{passive:!0}),window.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),window.addEventListener("touchmove",this.handleTouchMove,{passive:!0}),window.addEventListener("touchend",this.handleTouchEnd,{passive:!0}),window.addEventListener("touchcancel",this.handleTouchCancel,{passive:!0}),document.addEventListener("keydown",this.handleKeyDown,!0);else if("LOADED"!==e&&"LOADED"===t)window.addEventListener("wheel",this.handleWheel,{passive:!0});else if("UNLOADING"!==e&&"UNLOADING"===t)this.ensureImgTransitionEnd(),window.removeEventListener("wheel",this.handleWheel),window.removeEventListener("touchstart",this.handleTouchStart),window.removeEventListener("touchmove",this.handleTouchMove),window.removeEventListener("touchend",this.handleTouchEnd),window.removeEventListener("touchcancel",this.handleTouchCancel),document.removeEventListener("keydown",this.handleKeyDown,!0);else if("UNLOADED"!==e&&"UNLOADED"===t){var n,r,o,i;this.bodyScrollEnable(),window.removeEventListener("resize",this.handleResize),null===(r=this.refModalImg.current)||void 0===r||null===(n=r.removeEventListener)||void 0===n||n.call(r,"transitionend",this.handleImgTransitionEnd),null===(i=this.refDialog.current)||void 0===i||null===(o=i.close)||void 0===o||o.call(i)}},this.getDialogContainer=()=>{let e=document.querySelector("[data-rmiz-portal]");return null==e&&((e=document.createElement("div")).setAttribute("data-rmiz-portal",""),document.body.appendChild(e)),e},this.setId=()=>{let e=()=>Math.random().toString(16).slice(-4);this.setState({id:e()+e()+e()})},this.setAndTrackImg=()=>{let e=this.refContent.current;if(e){if(this.imgEl=e.querySelector(C),this.imgEl){var t,n;null===(n=this.contentNotFoundChangeObserver)||void 0===n||null===(t=n.disconnect)||void 0===t||t.call(n),this.imgEl.addEventListener("load",this.handleImgLoad),this.imgEl.addEventListener("click",this.handleZoom),this.state.loadedImgEl||this.handleImgLoad(),this.imgElResizeObserver=new ResizeObserver(e=>{let t=e[0];(null==t?void 0:t.target)&&(this.imgEl=t.target,this.setState({styleGhost:T(this.imgEl)}))}),this.imgElResizeObserver.observe(this.imgEl),this.contentChangeObserver||(this.contentChangeObserver=new MutationObserver(()=>{this.setState({styleGhost:T(this.imgEl)})}),this.contentChangeObserver.observe(e,{attributes:!0,childList:!0,subtree:!0}))}else this.contentNotFoundChangeObserver||(this.contentNotFoundChangeObserver=new MutationObserver(this.setAndTrackImg),this.contentNotFoundChangeObserver.observe(e,{childList:!0,subtree:!0}))}},this.handleIfZoomChanged=e=>{let{isZoomed:t}=this.props;!e&&t?this.zoom():e&&!t&&this.unzoom()},this.handleImgLoad=()=>{let e=g(this.imgEl);if(!e)return;let t=new Image;u(this.imgEl)&&(t.sizes=this.imgEl.sizes,t.srcset=this.imgEl.srcset,t.crossOrigin=this.imgEl.crossOrigin),t.src=e;let n=()=>{this.setState({loadedImgEl:t,styleGhost:T(this.imgEl)})};t.decode().then(n).catch(()=>{if(c(t)){n();return}t.onload=n})},this.handleZoom=()=>{if(!this.props.isDisabled&&this.hasImage()){var e,t;null===(e=(t=this.props).onZoomChange)||void 0===e||e.call(t,!0)}},this.handleUnzoom=()=>{if(!this.props.isDisabled){var e,t;null===(e=(t=this.props).onZoomChange)||void 0===e||e.call(t,!1)}},this.handleBtnUnzoomClick=e=>{e.preventDefault(),e.stopPropagation(),this.handleUnzoom()},this.handleDialogCancel=e=>{e.preventDefault()},this.handleDialogClick=e=>{(e.target===this.refModalContent.current||e.target===this.refModalImg.current)&&(e.stopPropagation(),this.handleUnzoom())},this.handleDialogClose=e=>{e.stopPropagation(),this.handleUnzoom()},this.handleKeyDown=e=>{("Escape"===e.key||27===e.keyCode)&&(e.preventDefault(),e.stopPropagation(),this.handleUnzoom())},this.handleWheel=e=>{e.ctrlKey||(e.stopPropagation(),queueMicrotask(()=>{this.handleUnzoom()}))},this.handleTouchStart=e=>{if(e.touches.length>1){this.isScaling=!0;return}1===e.changedTouches.length&&e.changedTouches[0]&&(this.touchYStart=e.changedTouches[0].screenY)},this.handleTouchMove=e=>{var t,n;let r=null!==(n=null===(t=window.visualViewport)||void 0===t?void 0:t.scale)&&void 0!==n?n:1;this.props.canSwipeToUnzoom&&!this.isScaling&&r<=1&&null!=this.touchYStart&&e.changedTouches[0]&&(this.touchYEnd=e.changedTouches[0].screenY,Math.abs(Math.max(this.touchYStart,this.touchYEnd)-Math.min(this.touchYStart,this.touchYEnd))>this.props.swipeToUnzoomThreshold&&(this.touchYStart=void 0,this.touchYEnd=void 0,this.handleUnzoom()))},this.handleTouchEnd=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleTouchCancel=()=>{this.isScaling=!1,this.touchYStart=void 0,this.touchYEnd=void 0},this.handleResize=()=>{this.setState({shouldRefresh:!0})},this.hasImage=()=>this.imgEl&&(this.state.loadedImgEl||d(this.imgEl))&&"none"!==window.getComputedStyle(this.imgEl).display,this.zoom=()=>{var e,t,n,r;this.bodyScrollDisable(),null===(t=this.refDialog.current)||void 0===t||null===(e=t.showModal)||void 0===e||e.call(t),null===(r=this.refModalImg.current)||void 0===r||null===(n=r.addEventListener)||void 0===n||n.call(r,"transitionend",this.handleImgTransitionEnd),this.setState({modalState:"LOADING"})},this.unzoom=()=>{this.setState({modalState:"UNLOADING"})},this.handleImgTransitionEnd=()=>{clearTimeout(this.timeoutTransitionEnd),"LOADING"===this.state.modalState?this.setState({modalState:"LOADED"}):"UNLOADING"===this.state.modalState&&this.setState({shouldRefresh:!1,modalState:"UNLOADED"})},this.ensureImgTransitionEnd=()=>{if(this.refModalImg.current){let e=window.getComputedStyle(this.refModalImg.current).transitionDuration,t=parseFloat(e);if(t){let n=t*(e.endsWith("ms")?1:1e3)+50;this.timeoutTransitionEnd=setTimeout(this.handleImgTransitionEnd,n)}}},this.bodyScrollDisable=()=>{this.prevBodyAttrs={overflow:document.body.style.overflow,width:document.body.style.width};let e=document.body.clientWidth;document.body.style.overflow="hidden",document.body.style.width="".concat(e,"px")},this.bodyScrollEnable=()=>{document.body.style.width=this.prevBodyAttrs.width,document.body.style.overflow=this.prevBodyAttrs.overflow,this.prevBodyAttrs=O},this.loadZoomImg=()=>{let{props:{zoomImg:e}}=this,t=null==e?void 0:e.src;if(t){var n,r,o;let i=new Image;i.sizes=null!==(n=null==e?void 0:e.sizes)&&void 0!==n?n:"",i.srcset=null!==(r=null==e?void 0:e.srcSet)&&void 0!==r?r:"",i.crossOrigin=null!==(o=null==e?void 0:e.crossOrigin)&&void 0!==o?o:void 0,i.src=t;let l=()=>{this.setState({isZoomImgLoaded:!0})};i.decode().then(l).catch(()=>{if(c(i)){l();return}i.onload=l})}},this.UNSAFE_handleSvg=()=>{let{imgEl:e,refModalImg:t,styleModalImg:n}=this;if(d(e)){var r,o,i,l,a;let s=e.cloneNode(!0);k(s),s.style.width="".concat(n.width||0,"px"),s.style.height="".concat(n.height||0,"px"),s.addEventListener("click",this.handleUnzoom),null===(i=t.current)||void 0===i||null===(o=i.firstChild)||void 0===o||null===(r=o.remove)||void 0===r||r.call(o),null===(a=t.current)||void 0===a||null===(l=a.appendChild)||void 0===l||l.call(a,s)}}}}function M(e){let[t,n]=i.useState(!1);return i.createElement(L,{...e,isZoomed:t,onZoomChange:n})}I.defaultProps={a11yNameButtonUnzoom:"Minimize image",a11yNameButtonZoom:"Expand image",canSwipeToUnzoom:!0,IconUnzoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-unzoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 14.144531 1.148438 L 9 6.292969 L 9 3 L 8 3 L 8 8 L 13 8 L 13 7 L 9.707031 7 L 14.855469 1.851563 Z M 8 8 L 3 8 L 3 9 L 6.292969 9 L 1.148438 14.144531 L 1.851563 14.855469 L 7 9.707031 L 7 13 L 8 13 Z"}))},IconZoom:function(){return i.createElement("svg",{"aria-hidden":"true","data-rmiz-btn-zoom-icon":!0,fill:"currentColor",focusable:"false",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M 9 1 L 9 2 L 12.292969 2 L 2 12.292969 L 2 9 L 1 9 L 1 14 L 6 14 L 6 13 L 2.707031 13 L 13 2.707031 L 13 6 L 14 6 L 14 1 Z"}))},isDisabled:!1,swipeToUnzoomThreshold:10,wrapElement:"div",zoomMargin:0};var R=n(48461),P=n.n(R);let j=(0,i.forwardRef)((e,t)=>{let n;let i=(0,o.c)(6),l="object"==typeof e.src?P():"img";return i[2]!==l||i[3]!==e||i[4]!==t?(n=(0,r.jsx)(l,{...e,ref:t,"data-pagefind-index-attrs":"title,alt"}),i[2]=l,i[3]=e,i[4]=t,i[5]=n):n=i[5],n});j.displayName="Image";let N=e=>{let t,n,l,a,s,u;let c=(0,o.c)(12),d=(0,i.useRef)(null),[f,h]=(0,i.useState)(!1);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{h(null!==d.current.closest("a"))},n=[],c[0]=t,c[1]=n):(t=c[0],n=c[1]),(0,i.useEffect)(t,n),c[2]!==e?(l=(0,r.jsx)(j,{...e,ref:d}),c[2]=e,c[3]=l):l=c[3];let m=l;if(f)return m;if(c[4]!==e.src){var p;a="string"==typeof(p=e.src)?p:"default"in p?p.default.src:p.src,c[4]=e.src,c[5]=a}else a=c[5];return c[6]!==e.alt||c[7]!==a?(s={src:a,alt:e.alt},c[6]=e.alt,c[7]=a,c[8]=s):s=c[8],c[9]!==m||c[10]!==s?(u=(0,r.jsx)(M,{zoomMargin:40,zoomImg:s,wrapElement:"span",children:m}),c[9]=m,c[10]=s,c[11]=u):u=c[11],u}},19972:function(e,t,n){"use strict";let r,o,i,l;n.d(t,{P:function(){return eR}});var a=n(57437),s=n(83238),u=n(71049),c=n(11323),d=n(2265),f=n(54887),h=n(36750),m=n(29483),p=n(62963),g=n(47920),v=n(89204),x=n(90945),b=n(40993),y=n(13323),w=n(16821),E=n(64518),S=n(31948),T=n(33106),k=n(76292),C=n(40048),O=n(18303),L=n(80004),I=n(26074),M=n(93689),R=n(4301),P=n(15518),j=n(34723),N=n(6885),F=n(30054),A=n(7722),D=n(60370),z=n(92807),_=n(37863),W=n(22055),H=n(46187),B=n(47634),U=n(34778),V=n(16015),Z=n(91133),G=n(37105),K=n(56314),q=n(24536),Y=n(40293),Q=n(88533),J=n(33577),X=n(37388),$=n(34630),ee=n(1265),et=n(58922),en=n(46036),er=Object.defineProperty,eo=(e,t,n)=>t in e?er(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ei=(e,t,n)=>(eo(e,"symbol"!=typeof t?t+"":t,n),n),el=((r=el||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),ea=((o=ea||{})[o.Single=0]="Single",o[o.Multi=1]="Multi",o),es=((i=es||{})[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i),eu=((l=eu||{})[l.OpenListbox=0]="OpenListbox",l[l.CloseListbox=1]="CloseListbox",l[l.GoToOption=2]="GoToOption",l[l.Search=3]="Search",l[l.ClearSearch=4]="ClearSearch",l[l.RegisterOptions=5]="RegisterOptions",l[l.UnregisterOptions=6]="UnregisterOptions",l[l.SetButtonElement=7]="SetButtonElement",l[l.SetOptionsElement=8]="SetOptionsElement",l[l.SortOptions=9]="SortOptions",l);function ec(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e,n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=(0,G.z2)(t(e.options.slice()),e=>e.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return -1===o&&(o=null),{options:r,activeOptionIndex:o}}let ed={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,pendingFocus:{focus:U.T.Nothing},listboxState:1,__demoMode:!1},0(e,t){if(e.dataRef.current.disabled||0===e.listboxState)return e;let n=e.activeOptionIndex,{isSelected:r}=e.dataRef.current,o=e.options.findIndex(e=>r(e.dataRef.current.value));return -1!==o&&(n=o),{...e,pendingFocus:t.focus,listboxState:0,activeOptionIndex:n,__demoMode:!1}},2(e,t){var n,r,o,i,l;if(e.dataRef.current.disabled||1===e.listboxState)return e;let a={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===U.T.Nothing)return{...a,activeOptionIndex:null};if(t.focus===U.T.Specific)return{...a,activeOptionIndex:e.options.findIndex(e=>e.id===t.id)};if(t.focus===U.T.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,l=(0,U.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==l){let t=e.options[l].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||(null==(o=t.current)?void 0:o.previousElementSibling)===null)return{...a,activeOptionIndex:l}}}}else if(t.focus===U.T.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=(0,U.d)(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||(null==(l=t.current)?void 0:l.nextElementSibling)===null)return{...a,activeOptionIndex:o}}}}let s=ec(e),u=(0,U.d)(t,{resolveItems:()=>s.options,resolveActiveIndex:()=>s.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...a,...s,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))}),i=o?e.options.indexOf(o):-1;return -1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n=e.options.concat(t.options),r=e.activeOptionIndex;if(e.pendingFocus.focus!==U.T.Nothing&&(r=(0,U.d)(e.pendingFocus,{resolveItems:()=>n,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),null===e.activeOptionIndex){let{isSelected:t}=e.dataRef.current;if(t){let e=n.findIndex(e=>null==t?void 0:t(e.dataRef.current.value));-1!==e&&(r=e)}}return{...e,options:n,activeOptionIndex:r,pendingFocus:{focus:U.T.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let n=e.options,r=[],o=new Set(t.options);for(let[e,t]of n.entries())if(o.has(t.id)&&(r.push(e),o.delete(t.id),0===o.size))break;if(r.length>0)for(let e of(n=n.slice(),r.reverse()))n.splice(e,1);return{...e,options:n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element},9:e=>e.pendingShouldSort?{...e,...ec(e),pendingShouldSort:!1}:e};class ef extends en.J{static new(e){let{id:t,__demoMode:n=!1}=e;return new ef({id:t,dataRef:{current:{}},listboxState:n?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,buttonElement:null,optionsElement:null,pendingShouldSort:!1,pendingFocus:{focus:U.T.Nothing},__demoMode:n})}reduce(e,t){return(0,q.E)(t.type,ed,e,t)}constructor(e){super(e),ei(this,"actions",{onChange:e=>{let{onChange:t,compare:n,mode:r,value:o}=this.state.dataRef.current;return(0,q.E)(r,{0:()=>null==t?void 0:t(e),1:()=>{let r=o.slice(),i=r.findIndex(t=>n(t,e));return -1===i?r.push(e):r.splice(i,1),null==t?void 0:t(r)}})},registerOption:(0,en.dC)(()=>{let e=[],t=new Set;return[(n,r)=>{t.has(r)||(t.add(r),e.push({id:n,dataRef:r}))},()=>(t.clear(),this.send({type:5,options:e.splice(0)}))]}),unregisterOption:(0,en.dC)(()=>{let e=[];return[t=>e.push(t),()=>{this.send({type:6,options:e.splice(0)})}]}),goToOption:(0,en.dC)(()=>{let e=null;return[(t,n)=>{e={type:2,...t,trigger:n}},()=>e&&this.send(e)]}),closeListbox:()=>{this.send({type:1})},openListbox:e=>{this.send({type:0,focus:e})},selectActiveOption:()=>{if(null!==this.state.activeOptionIndex){let{dataRef:e,id:t}=this.state.options[this.state.activeOptionIndex];this.actions.onChange(e.current.value),this.send({type:2,focus:U.T.Specific,id:t})}},selectOption:e=>{let t=this.state.options.find(t=>t.id===e);t&&this.actions.onChange(t.dataRef.current.value)},search:e=>{this.send({type:3,value:e})},clearSearch:()=>{this.send({type:4})},setButtonElement:e=>{this.send({type:7,element:e})},setOptionsElement:e=>{this.send({type:8,element:e})}}),ei(this,"selectors",{activeDescendantId(e){var t;let n=e.activeOptionIndex,r=e.options;return null===n||null==(t=r[n])?void 0:t.id},isActive(e,t){var n;let r=e.activeOptionIndex,o=e.options;return null!==r&&(null==(n=o[r])?void 0:n.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.listboxState&&0!==e.activationTrigger&&this.isActive(e,t)}}),this.on(5,()=>{requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=W.n.get(null);this.disposables.add(t.on(W.M.Push,n=>{t.selectors.isTop(n,e)||0!==this.state.listboxState||this.actions.closeListbox()})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}}}var eh=n(99417);let em=(0,d.createContext)(null);function ep(e){let t=(0,d.useContext)(em);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,eg),t}return t}function eg(e){let{id:t,__demoMode:n=!1}=e,r=(0,d.useMemo)(()=>ef.new({id:t,__demoMode:n}),[]);return(0,eh.L)(()=>r.dispose()),r}let ev=(0,d.createContext)(null);function ex(e){let t=(0,d.useContext)(ev);if(null===t){let t=Error("<".concat(e," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(t,ex),t}return t}ev.displayName="ListboxDataContext";let eb=d.Fragment,ey=(0,d.createContext)(!1),ew=Q.VN.RenderStrategy|Q.VN.Static,eE=d.Fragment,eS=(0,Q.yV)(function(e,t){let n=(0,d.useId)(),r=(0,N.B)(),{value:o,defaultValue:i,form:l,name:a,onChange:s,by:u,invalid:c=!1,disabled:f=r||!1,horizontal:h=!1,multiple:v=!1,__demoMode:x=!1,...b}=e,y=h?"horizontal":"vertical",w=(0,M.T)(t),S=(0,g.L)(i),[T=v?[]:void 0,C]=(0,p.q)(o,s,S),O=eg({id:n,__demoMode:x}),L=(0,d.useRef)({static:!1,hold:!1}),I=(0,d.useRef)(new Map),R=(0,m.J)(u),P=(0,d.useCallback)(e=>(0,q.E)(j.mode,{[ea.Multi]:()=>T.some(t=>R(t,e)),[ea.Single]:()=>R(T,e)}),[T]),j=(0,d.useMemo)(()=>({value:T,disabled:f,invalid:c,mode:v?ea.Multi:ea.Single,orientation:y,onChange:C,compare:R,isSelected:P,optionsPropsRef:L,listRef:I}),[T,f,c,v,y,C,R,P,L,I]);(0,E.e)(()=>{O.state.dataRef.current=j},[j]);let D=(0,H.M)(O,e=>e.listboxState),z=W.n.get(null),B=(0,H.M)(z,(0,d.useCallback)(e=>z.selectors.isTop(e,n),[z,n])),[U,V]=(0,H.M)(O,e=>[e.buttonElement,e.optionsElement]);(0,k.O)(B,[U,V],(e,t)=>{O.send({type:eu.CloseListbox}),(0,G.sP)(t,G.tJ.Loose)||(e.preventDefault(),null==U||U.focus())});let Z=(0,d.useMemo)(()=>({open:D===el.Open,disabled:f,invalid:c,value:T}),[D,f,c,T]),[K,Y]=(0,$.bE)({inherit:!0}),J=(0,d.useCallback)(()=>{if(void 0!==S)return null==C?void 0:C(S)},[C,S]),X=(0,Q.L6)();return d.createElement(Y,{value:K,props:{htmlFor:null==U?void 0:U.id},slot:{open:D===el.Open,disabled:f}},d.createElement(F.HO,null,d.createElement(em.Provider,{value:O},d.createElement(ev.Provider,{value:j},d.createElement(_.up,{value:(0,q.E)(D,{[el.Open]:_.ZM.Open,[el.Closed]:_.ZM.Closed})},null!=a&&null!=T&&d.createElement(A.Mt,{disabled:f,data:{[a]:T},form:l,onReset:J}),X({ourProps:{ref:w},theirProps:b,slot:Z,defaultTag:eb,name:"Listbox"}))))))}),eT=(0,Q.yV)(function(e,t){let n=(0,d.useId)(),r=(0,z.Q)(),o=ex("Listbox.Button"),i=ep("Listbox.Button"),{id:l=r||"headlessui-listbox-button-".concat(n),disabled:a=o.disabled||!1,autoFocus:s=!1,...m}=e,p=(0,M.T)(t,(0,F.AZ)(),i.actions.setButtonElement),g=(0,F.L)(),[v,x,b]=(0,H.M)(i,e=>[e.listboxState,e.buttonElement,e.optionsElement]),w=v===el.Open;(0,O.G)(w,{trigger:x,action:(0,d.useCallback)(e=>{if(null!=x&&x.contains(e.target))return O.a.Ignore;let t=e.target.closest('[role="option"]:not([data-disabled])');return Z.Re(t)?O.a.Select(t):null!=b&&b.contains(e.target)?O.a.Ignore:O.a.Close},[x,b]),close:i.actions.closeListbox,select:i.actions.selectActiveOption});let E=(0,y.z)(e=>{switch(e.key){case X.R.Enter:(0,K.g)(e.currentTarget);break;case X.R.Space:case X.R.ArrowDown:e.preventDefault(),i.actions.openListbox({focus:o.value?U.T.Nothing:U.T.First});break;case X.R.ArrowUp:e.preventDefault(),i.actions.openListbox({focus:o.value?U.T.Nothing:U.T.Last})}}),S=(0,y.z)(e=>{e.key===X.R.Space&&e.preventDefault()}),T=(0,y.z)(e=>{var t;if(e.button===ee.t.Left){if((0,B.P)(e.currentTarget))return e.preventDefault();i.state.listboxState===el.Open?((0,f.flushSync)(()=>i.actions.closeListbox()),null==(t=i.state.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.actions.openListbox({focus:U.T.Nothing}))}}),k=(0,d.useRef)(null),C=(0,y.z)(e=>{k.current=e.pointerType,"mouse"===e.pointerType&&T(e)}),I=(0,y.z)(e=>{"mouse"!==k.current&&T(e)}),R=(0,y.z)(e=>e.preventDefault()),P=(0,$.wp)([l]),j=(0,J.zH)(),{isFocusVisible:N,focusProps:A}=(0,u.F)({autoFocus:s}),{isHovered:D,hoverProps:_}=(0,c.X)({isDisabled:a}),{pressed:W,pressProps:V}=(0,h.x)({disabled:a}),G=(0,d.useMemo)(()=>({open:v===el.Open,active:W||v===el.Open,disabled:a,invalid:o.invalid,value:o.value,hover:D,focus:N,autofocus:s}),[v,o.value,a,D,N,W,o.invalid,s]),q=(0,H.M)(i,e=>e.listboxState===el.Open),Y=(0,Q.dG)(g(),{ref:p,id:l,type:(0,L.f)(e,x),"aria-haspopup":"listbox","aria-controls":null==b?void 0:b.id,"aria-expanded":q,"aria-labelledby":P,"aria-describedby":j,disabled:a||void 0,autoFocus:s,onKeyDown:E,onKeyUp:S,onKeyPress:R,onPointerDown:C,onClick:I},A,_,V);return(0,Q.L6)()({ourProps:Y,theirProps:m,slot:G,defaultTag:"button",name:"Listbox.Button"})}),ek=$.__,eC=(0,Q.yV)(function(e,t){let n=(0,d.useId)(),{id:r="headlessui-listbox-options-".concat(n),anchor:o,portal:i=!1,modal:l=!0,transition:a=!1,...s}=e,u=(0,F.Vy)(o),[c,h]=(0,d.useState)(null);u&&(i=!0);let m=ex("Listbox.Options"),p=ep("Listbox.Options"),[g,E,S,k]=(0,H.M)(p,e=>[e.listboxState,e.buttonElement,e.optionsElement,e.__demoMode]),O=(0,C.i)(E),L=(0,C.i)(S),R=(0,_.oJ)(),[P,N]=(0,j.Y)(a,c,null!==R?(R&_.ZM.Open)===_.ZM.Open:g===el.Open);(0,T.m)(P,E,p.actions.closeListbox);let A=!k&&l&&g===el.Open;(0,I.P)(A,L);let z=!k&&l&&g===el.Open;(0,w.s)(z,{allowed:(0,d.useCallback)(()=>[E,S],[E,S])});let W=g!==el.Open,B=!(0,v.C)(W,E)&&P,V=P&&g===el.Closed,Z=(0,D._)(V,m.value),K=(0,y.z)(e=>m.compare(Z,e)),J=(0,H.M)(p,e=>{var t;if(null==u||!(null!=(t=null==u?void 0:u.to)&&t.includes("selection")))return null;let n=e.options.findIndex(e=>K(e.dataRef.current.value));return -1===n&&(n=0),n}),$=(()=>{if(null==u)return;if(null===J)return{...u,inner:void 0};let e=Array.from(m.listRef.current.values());return{...u,inner:{listRef:{current:e},index:J}}})(),[ee,en]=(0,F.ES)($),er=(0,F.U8)(),eo=(0,M.T)(t,u?ee:null,p.actions.setOptionsElement,h),ei=(0,x.G)();(0,d.useEffect)(()=>{var e;S&&g===el.Open&&S!==(null==(e=(0,Y.r)(S))?void 0:e.activeElement)&&(null==S||S.focus({preventScroll:!0}))},[g,S]);let es=(0,y.z)(e=>{var t,n;switch(ei.dispose(),e.key){case X.R.Space:if(""!==p.state.searchQuery)return e.preventDefault(),e.stopPropagation(),p.actions.search(e.key);case X.R.Enter:if(e.preventDefault(),e.stopPropagation(),null!==p.state.activeOptionIndex){let{dataRef:e}=p.state.options[p.state.activeOptionIndex];p.actions.onChange(e.current.value)}m.mode===ea.Single&&((0,f.flushSync)(()=>p.actions.closeListbox()),null==(t=p.state.buttonElement)||t.focus({preventScroll:!0}));break;case(0,q.E)(m.orientation,{vertical:X.R.ArrowDown,horizontal:X.R.ArrowRight}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:U.T.Next});case(0,q.E)(m.orientation,{vertical:X.R.ArrowUp,horizontal:X.R.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:U.T.Previous});case X.R.Home:case X.R.PageUp:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:U.T.First});case X.R.End:case X.R.PageDown:return e.preventDefault(),e.stopPropagation(),p.actions.goToOption({focus:U.T.Last});case X.R.Escape:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>p.actions.closeListbox()),null==(n=p.state.buttonElement)||n.focus({preventScroll:!0});return;case X.R.Tab:e.preventDefault(),e.stopPropagation(),(0,f.flushSync)(()=>p.actions.closeListbox()),(0,G.EO)(p.state.buttonElement,e.shiftKey?G.TO.Previous:G.TO.Next);break;default:1===e.key.length&&(p.actions.search(e.key),ei.setTimeout(()=>p.actions.clearSearch(),350))}}),eu=(0,H.M)(p,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),ec=(0,d.useMemo)(()=>({open:g===el.Open}),[g]),ed=(0,Q.dG)(u?er():{},{id:r,ref:eo,"aria-activedescendant":(0,H.M)(p,p.selectors.activeDescendantId),"aria-multiselectable":m.mode===ea.Multi||void 0,"aria-labelledby":eu,"aria-orientation":m.orientation,onKeyDown:es,role:"listbox",tabIndex:g===el.Open?0:void 0,style:{...s.style,...en,"--button-width":(0,b.h)(E,!0).width},...(0,j.X)(N)}),ef=(0,Q.L6)(),eh=(0,d.useMemo)(()=>m.mode===ea.Multi?m:{...m,isSelected:K},[m,K]);return d.createElement(et.h_,{enabled:!!i&&(e.static||P),ownerDocument:O},d.createElement(ev.Provider,{value:eh},ef({ourProps:ed,theirProps:s,slot:ec,defaultTag:"div",features:ew,visible:B,name:"Listbox.Options"})))}),eO=(0,Q.yV)(function(e,t){let n=(0,d.useId)(),{id:r="headlessui-listbox-option-".concat(n),disabled:o=!1,value:i,...l}=e,a=!0===(0,d.useContext)(ey),s=ex("Listbox.Option"),u=ep("Listbox.Option"),c=(0,H.M)(u,e=>u.selectors.isActive(e,r)),h=s.isSelected(i),m=(0,d.useRef)(null),p=(0,R.x)(m),g=(0,S.E)({disabled:o,value:i,domRef:m,get textValue(){return p()}}),v=(0,M.T)(t,m,e=>{e?s.listRef.current.set(r,e):s.listRef.current.delete(r)}),x=(0,H.M)(u,e=>u.selectors.shouldScrollIntoView(e,r));(0,E.e)(()=>{if(x)return(0,V.k)().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=m.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[x,m]),(0,E.e)(()=>{if(!a)return u.actions.registerOption(r,g),()=>u.actions.unregisterOption(r)},[g,r,a]);let b=(0,y.z)(e=>{var t;if(o)return e.preventDefault();u.actions.onChange(i),s.mode===ea.Single&&((0,f.flushSync)(()=>u.actions.closeListbox()),null==(t=u.state.buttonElement)||t.focus({preventScroll:!0}))}),w=(0,y.z)(()=>{if(o)return u.actions.goToOption({focus:U.T.Nothing});u.actions.goToOption({focus:U.T.Specific,id:r})}),T=(0,P.g)(),k=(0,y.z)(e=>T.update(e)),C=(0,y.z)(e=>{T.wasMoved(e)&&(o||c&&u.state.activationTrigger===es.Pointer||u.actions.goToOption({focus:U.T.Specific,id:r},es.Pointer))}),O=(0,y.z)(e=>{T.wasMoved(e)&&(o||c&&u.state.activationTrigger===es.Pointer&&u.actions.goToOption({focus:U.T.Nothing}))}),L=(0,d.useMemo)(()=>({active:c,focus:c,selected:h,disabled:o,selectedOption:h&&a}),[c,h,o,a]),I=a?{}:{id:r,ref:v,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":h,disabled:void 0,onClick:b,onFocus:w,onPointerEnter:k,onMouseEnter:k,onPointerMove:C,onMouseMove:C,onPointerLeave:O,onMouseLeave:O},j=(0,Q.L6)();return!h&&a?null:j({ourProps:I,theirProps:l,slot:L,defaultTag:"div",name:"Listbox.Option"})}),eL=Object.assign(eS,{Button:eT,Label:ek,Options:eC,Option:eO,SelectedOption:(0,Q.yV)(function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:(0,M.T)(t)},l=ex("ListboxSelectedOption"),a=(0,d.useMemo)(()=>({}),[]),s=void 0===l.value||null===l.value||l.mode===ea.Multi&&Array.isArray(l.value)&&0===l.value.length,u=(0,Q.L6)();return d.createElement(ey.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:d.createElement(d.Fragment,null,r&&s?r:n)},slot:a,defaultTag:eE,name:"ListboxSelectedOption"}))})});var eI=n(61994),eM=n(73666);let eR=e=>{let t,n,r,o,i,l;let u=(0,s.c)(16),{options:c,onChange:d,selectedOption:f,value:h,title:m,className:p}=e;return u[0]!==p?(t=e=>{let{hover:t,open:n,focus:r}=e;return(0,eI.Z)("x:cursor-pointer","x:h-7 x:rounded-md x:px-2 x:text-xs x:font-medium x:transition-colors",n?"x:bg-gray-200 x:text-gray-900 x:dark:bg-primary-100/10 x:dark:text-gray-50":t?"x:bg-gray-200 x:text-gray-900 x:dark:bg-primary-100/5 x:dark:text-gray-50":"x:text-gray-600 x:dark:text-gray-400",r&&"x:nextra-focus",p)},u[0]=p,u[1]=t):t=u[1],u[2]!==f||u[3]!==t||u[4]!==m?(n=(0,a.jsx)(eT,{title:m,className:t,children:f}),u[2]=f,u[3]=t,u[4]=m,u[5]=n):n=u[5],u[6]===Symbol.for("react.memo_cache_sentinel")?(r={to:"top start",gap:10},u[6]=r):r=u[6],u[7]!==c?(o=c.map(ej),u[7]=c,u[8]=o):o=u[8],u[9]!==o?(i=(0,a.jsx)(eC,{as:"ul",transition:!0,anchor:r,className:eP,children:o}),u[9]=o,u[10]=i):i=u[10],u[11]!==d||u[12]!==n||u[13]!==i||u[14]!==h?(l=(0,a.jsxs)(eL,{value:h,onChange:d,children:[n,i]}),u[11]=d,u[12]=n,u[13]=i,u[14]=h,u[15]=l):l=u[15],l};function eP(e){let{open:t}=e;return(0,eI.Z)("x:focus-visible:nextra-focus",t?"x:opacity-100":"x:opacity-0","x:motion-reduce:transition-none x:transition-opacity x:min-w-(--button-width) x:z-20 x:max-h-64 x:rounded-md x:border x:border-black/5 x:backdrop-blur-md x:bg-nextra-bg/70 x:py-1 x:text-sm x:shadow-lg x:dark:border-white/20")}function ej(e){return(0,a.jsx)(eO,{value:e.id,as:d.Fragment,children:t=>{let{selected:n,focus:r}=t;return(0,a.jsxs)("li",{className:(0,eI.Z)(r?"x:bg-primary-100 x:text-primary-800 x:dark:text-primary-500 x:dark:bg-primary-500/10":"x:text-gray-800 x:dark:text-gray-100","x:cursor-pointer x:whitespace-nowrap x:py-1.5 x:px-3","x:transition-colors",n&&"x:flex x:items-center x:justify-between x:gap-3"),children:[e.name,n&&(0,a.jsx)(eM.r,{height:"1em"})]})}},e.id)}},94328:function(e,t,n){"use strict";n.d(t,{SkipNavLink:function(){return a}});var r=n(57437),o=n(83238),i=n(35933),l=n(61994);let a=e=>{let t,n;let a=(0,o.c)(6),{className:s,id:u,children:c}=e,d=void 0===c?"Skip to Content":c,f="#".concat(void 0===u?"nextra-skip-nav":u);return a[0]!==s?(t=e=>{let{focus:t}=e;return(0,l.Z)("nextra-skip-nav",t?"x:nextra-focus x:fixed x:z-50 x:my-3 x:mx-4 x:rounded-lg x:px-3 x:py-2 x:text-sm x:font-bold x:bg-nextra-bg x:border x:border-current":"x:sr-only",s)},a[0]=s,a[1]=t):t=a[1],a[2]!==d||a[3]!==f||a[4]!==t?(n=(0,r.jsx)(i.z,{as:"a",href:f,className:t,children:d}),a[2]=d,a[3]=f,a[4]=t,a[5]=n):n=a[5],n}},79128:function(e,t,n){"use strict";n.d(t,{$:function(){return i}});var r=n(83238),o=n(99376);function i(){let e;let t=(0,r.c)(2),n=(0,o.usePathname)();return t[0]!==n?(e=n.replace(/\.html$/,"").replace(/\/index(\/|$)/,"$1").replace(/\/$/,"")||"/",t[0]=n,t[1]=e):e=t[1],e}},11316:function(e,t,n){"use strict";n.d(t,{H:function(){return o}});var r=n(2265);function o(){let[e,t]=(0,r.useState)("");return(0,r.useEffect)(()=>{function e(){t(location.hash.replace("#",""))}return e(),window.addEventListener("hashchange",e),()=>{window.removeEventListener("hashchange",e)}},[]),e}},59195:function(e,t,n){"use strict";n.d(t,{s:function(){return o}});var r=n(2265);function o(){let[e,t]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{t(!0)},[]),e}},28568:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(57437),o=n(83238);let i=e=>{let t,n;let i=(0,o.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{d:"M9 5l7 7-7 7",strokeLinecap:"round",strokeLinejoin:"round"}),i[0]=t):t=i[0],i[1]!==e?(n=(0,r.jsx)("svg",{viewBox:"0 0 24 24",stroke:"currentColor",fill:"none",strokeWidth:2,...e,children:t}),i[1]=e,i[2]=n):n=i[2],n}},73666:function(e,t,n){"use strict";n.d(t,{r:function(){return i}});var r=n(57437),o=n(83238);let i=e=>{let t,n;let i=(0,o.c)(3);return i[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"}),i[0]=t):t=i[0],i[1]!==e?(n=(0,r.jsx)("svg",{viewBox:"0 0 20 20",fill:"currentColor",...e,children:t}),i[1]=e,i[2]=n):n=i[2],n}},22061:function(e,t,n){"use strict";n.d(t,{e:function(){return u}});var r=n(57437),o=n(83238),i=n(61994),l=n(27648);n(40257).cwd();let a=/^https?:\/\//,s=e=>{let t,n,i;let l=(0,o.c)(4);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("path",{d:"M7 17L17 7"}),n=(0,r.jsx)("path",{d:"M7 7h10v10"}),l[0]=t,l[1]=n):(t=l[0],n=l[1]),l[2]!==e?(i=(0,r.jsxs)("svg",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.7,viewBox:"0 0 24 24",...e,children:[t,n]}),l[2]=e,l[3]=i):i=l[3],i},u=e=>{let t,n,u,c,d,f;let h=(0,o.c)(23);h[0]!==e?({href:u,prefetch:t,...n}=e,h[0]=e,h[1]=t,h[2]=n,h[3]=u):(t=h[1],n=h[2],u=h[3]);let m=void 0===u?"":u,p=n;if(h[4]!==n.className?(c=(0,i.Z)("x:focus-visible:nextra-focus",n.className),h[4]=n.className,h[5]=c):c=h[5],h[6]!==n||h[7]!==c?(d={...p,className:c},h[6]=n,h[7]=c,h[8]=d):d=h[8],n=d,"string"==typeof m){if(m.startsWith("#")){let e;return h[9]!==m||h[10]!==n?(e=(0,r.jsx)("a",{href:m,...n}),h[9]=m,h[10]=n,h[11]=e):e=h[11],e}if(a.test(m)){let e,t;let{children:o}=n;return h[12]!==o?(e="string"==typeof o&&(0,r.jsxs)(r.Fragment,{children:["\xa0",(0,r.jsx)(s,{height:"1em",className:"x:inline x:align-baseline x:shrink-0"})]}),h[12]=o,h[13]=e):e=h[13],h[14]!==o||h[15]!==m||h[16]!==n||h[17]!==e?(t=(0,r.jsxs)("a",{href:m,target:"_blank",rel:"noreferrer",...n,children:[o,e]}),h[14]=o,h[15]=m,h[16]=n,h[17]=e,h[18]=t):t=h[18],t}}return h[19]!==m||h[20]!==t||h[21]!==n?(f=(0,r.jsx)(l.default,{href:m,prefetch:t,...n}),h[19]=m,h[20]=t,h[21]=n,h[22]=f):f=h[22],f}},78257:function(e,t,n){"use strict";n.d(t,{Details:function(){return u}});var r=n(57437),o=n(83238),i=n(61994),l=n(2265),a=n(73406),s=n(11316);let u=e=>{let t,n,c,d,f,h,m,p,g,v,x,b,y;let w=(0,o.c)(26);w[0]!==e?({children:t,open:c,className:n,...d}=e,w[0]=e,w[1]=t,w[2]=n,w[3]=c,w[4]=d):(t=w[1],n=w[2],c=w[3],d=w[4]);let[E,S]=(0,l.useState)(!!c),[T,k]=(0,l.useState)(E),C=(0,l.useRef)(0);w[5]!==E?(f=()=>{let e=C.current;if(e&&(clearTimeout(e),C.current=0),!E)return C.current=window.setTimeout(()=>k(E),300),()=>{clearTimeout(C.current)};k(!0)},h=[E],w[5]=E,w[6]=f,w[7]=h):(f=w[6],h=w[7]),(0,l.useEffect)(f,h),w[8]!==t?(m=function e(t,n){let r;let o=l.Children.map(t,t=>{if(!r&&t&&"object"==typeof t&&"type"in t){if("summary"===t.type){r=(0,l.cloneElement)(t,{onClick(e){"A"!==e.target.tagName&&(e.preventDefault(),n(e=>!e))}});return}t.type!==u&&t.props.children&&([r,t]=e(t.props.children,n))}return t});return[r,o]}(t,S),w[8]=t,w[9]=m):m=w[9];let[O,L]=m,I=(0,s.H)(),M=(0,l.useRef)(null);w[10]!==I?(p=()=>{I&&M.current.querySelector('[id="'.concat(I,'"]'))&&S(!0)},g=[I],w[10]=I,w[11]=p,w[12]=g):(p=w[11],g=w[12]),(0,l.useEffect)(p,g),w[13]!==n?(v=(0,i.Z)("x:not-first:mt-4 x:rounded x:border x:border-gray-200 x:bg-white x:p-2 x:shadow-sm x:dark:border-neutral-800 x:dark:bg-neutral-900","x:overflow-hidden",n),w[13]=n,w[14]=v):v=w[14];let R=E||T,P=E?"":void 0;return w[15]===Symbol.for("react.memo_cache_sentinel")?(x=(0,i.Z)("x:*:pt-2","x:grid"),w[15]=x):x=w[15],w[16]!==E||w[17]!==L?(b=(0,r.jsx)(a.U,{isOpen:E,className:x,children:L}),w[16]=E,w[17]=L,w[18]=b):b=w[18],w[19]!==d||w[20]!==O||w[21]!==b||w[22]!==v||w[23]!==R||w[24]!==P?(y=(0,r.jsxs)("details",{className:v,ref:M,...d,open:R,"data-expanded":P,children:[O,b]}),w[19]=d,w[20]=O,w[21]=b,w[22]=v,w[23]=R,w[24]=P,w[25]=y):y=w[25],y}},6170:function(e,t,n){"use strict";n.d(t,{CopyToClipboard:function(){return u}});var r=n(57437),o=n(83238),i=n(2265),l=n(85205),a=n(73666);let s=e=>{let t,n,i;let l=(0,o.c)(4);return l[0]===Symbol.for("react.memo_cache_sentinel")?(t=(0,r.jsx)("rect",{x:9,y:9,width:13,height:13,rx:2}),n=(0,r.jsx)("path",{d:"M5 15H4C2.89543 15 2 14.1046 2 13V4C2 2.89543 2.89543 2 4 2H13C14.1046 2 15 2.89543 15 4V5"}),l[0]=t,l[1]=n):(t=l[0],n=l[1]),l[2]!==e?(i=(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,...e,children:[t,n]}),l[2]=e,l[3]=i):i=l[3],i},u=e=>{let t,n,u,c,d;let f=(0,o.c)(9),[h,m]=(0,i.useState)(!1);f[0]!==h?(t=()=>{if(!h)return;let e=setTimeout(()=>{m(!1)},2e3);return()=>{clearTimeout(e)}},n=[h],f[0]=h,f[1]=t,f[2]=n):(t=f[1],n=f[2]),(0,i.useEffect)(t,n),f[3]===Symbol.for("react.memo_cache_sentinel")?(u=async e=>{var t;m(!0);let n=(null===(t=e.currentTarget.parentNode.parentNode.querySelector("pre code"))||void 0===t?void 0:t.textContent)||"";try{await navigator.clipboard.writeText(n)}catch(e){console.error("Failed to copy!")}},f[3]=u):u=f[3];let p=u,g=h?a.r:s;return f[4]!==g?(c=(0,r.jsx)(g,{height:"1em",className:"nextra-copy-icon"}),f[4]=g,f[5]=c):c=f[5],f[6]!==e||f[7]!==c?(d=(0,r.jsx)(l.z,{onClick:p,title:"Copy code",variant:"outline",...e,children:c}),f[6]=e,f[7]=c,f[8]=d):d=f[8],d}},98451:function(e,t,n){"use strict";n.d(t,{ToggleWordWrapButton:function(){return a}});var r=n(57437),o=n(83238),i=n(85205);function l(){let e=document.documentElement.dataset;"nextraWordWrap"in e?delete e.nextraWordWrap:e.nextraWordWrap=""}let a=e=>{let t;let n=(0,o.c)(2),{children:a}=e;return n[0]!==a?(t=(0,r.jsx)(i.z,{onClick:l,className:"x:md:hidden",title:"Toggle word wrap",variant:"outline",children:a}),n[0]=a,n[1]=t):t=n[1],t}},95274:function(e,t,n){"use strict";var r=n(2265),o="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,l=r.useRef,a=r.useEffect,s=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,c){var d=l(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var h=i(e,(d=s(function(){function e(e){if(!a){if(a=!0,i=e,e=r(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return l=t}return l=e}if(t=l,o(i,e))return t;var n=r(e);return void 0!==c&&c(t,n)?(i=e,t):(i=e,l=n)}var i,l,a=!1,s=void 0===n?null:n;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,n,r,c]))[0],d[1]);return a(function(){f.hasValue=!0,f.value=h},[h]),u(h),h}},76548:function(e,t,n){"use strict";e.exports=n(95274)},51050:function(e,t,n){"use strict";n.d(t,{Me:function(){return C},oo:function(){return P},US:function(){return O},RR:function(){return M},cv:function(){return L},uY:function(){return I},dp:function(){return R}});var r=n(72695);function o(e,t,n){let o,{reference:i,floating:l}=e,a=(0,r.Qq)(t),s=(0,r.Wh)(t),u=(0,r.I4)(s),c=(0,r.k3)(t),d="y"===a,f=i.x+i.width/2-l.width/2,h=i.y+i.height/2-l.height/2,m=i[u]/2-l[u]/2;switch(c){case"top":o={x:f,y:i.y-l.height};break;case"bottom":o={x:f,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:h};break;case"left":o={x:i.x-l.width,y:h};break;default:o={x:i.x,y:i.y}}switch((0,r.hp)(t)){case"start":o[s]-=m*(n&&d?-1:1);break;case"end":o[s]+=m*(n&&d?-1:1)}return o}let i=async(e,t,n)=>{let{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:a}=n,s=l.filter(Boolean),u=await (null==a.isRTL?void 0:a.isRTL(t)),c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:d,y:f}=o(c,r,u),h=r,m={},p=0;for(let n=0;n<s.length;n++){let{name:l,fn:g}=s[n],{x:v,y:x,data:b,reset:y}=await g({x:d,y:f,initialPlacement:r,placement:h,strategy:i,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});d=null!=v?v:d,f=null!=x?x:f,m={...m,[l]:{...m[l],...b}},y&&p<=50&&(p++,"object"==typeof y&&(y.placement&&(h=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:d,y:f}=o(c,h,u)),n=-1)}return{x:d,y:f,placement:h,strategy:i,middlewareData:m}};async function l(e,t){var n;void 0===t&&(t={});let{x:o,y:i,platform:l,rects:a,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:h=!1,padding:m=0}=(0,r.ku)(t,e),p=(0,r.yd)(m),g=s[h?"floating"===f?"reference":"floating":f],v=(0,r.JB)(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(g)))||n?g:g.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),x="floating"===f?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,b=await (null==l.getOffsetParent?void 0:l.getOffsetParent(s.floating)),y=await (null==l.isElement?void 0:l.isElement(b))&&await (null==l.getScale?void 0:l.getScale(b))||{x:1,y:1},w=(0,r.JB)(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:b,strategy:u}):x);return{top:(v.top-w.top+p.top)/y.y,bottom:(w.bottom-v.bottom+p.bottom)/y.y,left:(v.left-w.left+p.left)/y.x,right:(w.right-v.right+p.right)/y.x}}let a=new Set(["left","top"]);async function s(e,t){let{placement:n,platform:o,elements:i}=e,l=await (null==o.isRTL?void 0:o.isRTL(i.floating)),s=(0,r.k3)(n),u=(0,r.hp)(n),c="y"===(0,r.Qq)(n),d=a.has(s)?-1:1,f=l&&c?-1:1,h=(0,r.ku)(t,e),{mainAxis:m,crossAxis:p,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return u&&"number"==typeof g&&(p="end"===u?-1*g:g),c?{x:p*f,y:m*d}:{x:m*d,y:p*f}}var u=n(94046);function c(e){let t=(0,u.Dx)(e),n=parseFloat(t.width)||0,o=parseFloat(t.height)||0,i=(0,u.Re)(e),l=i?e.offsetWidth:n,a=i?e.offsetHeight:o,s=(0,r.NM)(n)!==l||(0,r.NM)(o)!==a;return s&&(n=l,o=a),{width:n,height:o,$:s}}function d(e){return(0,u.kK)(e)?e:e.contextElement}function f(e){let t=d(e);if(!(0,u.Re)(t))return(0,r.ze)(1);let n=t.getBoundingClientRect(),{width:o,height:i,$:l}=c(t),a=(l?(0,r.NM)(n.width):n.width)/o,s=(l?(0,r.NM)(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let h=(0,r.ze)(0);function m(e){let t=(0,u.Jj)(e);return(0,u.Pf)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:h}function p(e,t,n,o){var i;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),a=d(e),s=(0,r.ze)(1);t&&(o?(0,u.kK)(o)&&(s=f(o)):s=f(e));let c=(void 0===(i=n)&&(i=!1),o&&(!i||o===(0,u.Jj)(a))&&i)?m(a):(0,r.ze)(0),h=(l.left+c.x)/s.x,p=(l.top+c.y)/s.y,g=l.width/s.x,v=l.height/s.y;if(a){let e=(0,u.Jj)(a),t=o&&(0,u.kK)(o)?(0,u.Jj)(o):o,n=e,r=(0,u.wK)(n);for(;r&&o&&t!==n;){let e=f(r),t=r.getBoundingClientRect(),o=(0,u.Dx)(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;h*=e.x,p*=e.y,g*=e.x,v*=e.y,h+=i,p+=l,n=(0,u.Jj)(r),r=(0,u.wK)(n)}}return(0,r.JB)({width:g,height:v,x:h,y:p})}function g(e,t){let n=(0,u.Lw)(e).scrollLeft;return t?t.left+n:p((0,u.tF)(e)).left+n}function v(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-g(e,n),y:n.top+t.scrollTop}}let x=new Set(["absolute","fixed"]);function b(e,t,n){let o;if("viewport"===t)o=function(e,t){let n=(0,u.Jj)(e),r=(0,u.tF)(e),o=n.visualViewport,i=r.clientWidth,l=r.clientHeight,a=0,s=0;if(o){i=o.width,l=o.height;let e=(0,u.Pf)();(!e||e&&"fixed"===t)&&(a=o.offsetLeft,s=o.offsetTop)}let c=g(r);if(c<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,l=Math.abs(r.clientWidth-t.clientWidth-o);l<=25&&(i-=l)}else c<=25&&(i+=c);return{width:i,height:l,x:a,y:s}}(e,n);else if("document"===t)o=function(e){let t=(0,u.tF)(e),n=(0,u.Lw)(e),o=e.ownerDocument.body,i=(0,r.Fp)(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),l=(0,r.Fp)(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),a=-n.scrollLeft+g(e),s=-n.scrollTop;return"rtl"===(0,u.Dx)(o).direction&&(a+=(0,r.Fp)(t.clientWidth,o.clientWidth)-i),{width:i,height:l,x:a,y:s}}((0,u.tF)(e));else if((0,u.kK)(t))o=function(e,t){let n=p(e,!0,"fixed"===t),o=n.top+e.clientTop,i=n.left+e.clientLeft,l=(0,u.Re)(e)?f(e):(0,r.ze)(1),a=e.clientWidth*l.x;return{width:a,height:e.clientHeight*l.y,x:i*l.x,y:o*l.y}}(t,n);else{let n=m(e);o={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return(0,r.JB)(o)}function y(e){return"static"===(0,u.Dx)(e).position}function w(e,t){if(!(0,u.Re)(e)||"fixed"===(0,u.Dx)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,u.tF)(e)===n&&(n=n.ownerDocument.body),n}function E(e,t){let n=(0,u.Jj)(e);if((0,u.tR)(e))return n;if(!(0,u.Re)(e)){let t=(0,u.Ow)(e);for(;t&&!(0,u.Py)(t);){if((0,u.kK)(t)&&!y(t))return t;t=(0,u.Ow)(t)}return n}let r=w(e,t);for(;r&&(0,u.Ze)(r)&&y(r);)r=w(r,t);return r&&(0,u.Py)(r)&&y(r)&&!(0,u.hT)(r)?n:r||(0,u.gQ)(e)||n}let S=async function(e){let t=this.getOffsetParent||E,n=this.getDimensions,o=await n(e.floating);return{reference:function(e,t,n){let o=(0,u.Re)(t),i=(0,u.tF)(t),l="fixed"===n,a=p(e,!0,l,t),s={scrollLeft:0,scrollTop:0},c=(0,r.ze)(0);if(o||!o&&!l){if(("body"!==(0,u.wk)(t)||(0,u.ao)(i))&&(s=(0,u.Lw)(t)),o){let e=p(t,!0,l,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&(c.x=g(i))}l&&!o&&i&&(c.x=g(i));let d=!i||o||l?(0,r.ze)(0):v(i,s);return{x:a.left+s.scrollLeft-c.x-d.x,y:a.top+s.scrollTop-c.y-d.y,width:a.width,height:a.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},T={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:i}=e,l="fixed"===i,a=(0,u.tF)(o),s=!!t&&(0,u.tR)(t.floating);if(o===a||s&&l)return n;let c={scrollLeft:0,scrollTop:0},d=(0,r.ze)(1),h=(0,r.ze)(0),m=(0,u.Re)(o);if((m||!m&&!l)&&(("body"!==(0,u.wk)(o)||(0,u.ao)(a))&&(c=(0,u.Lw)(o)),(0,u.Re)(o))){let e=p(o);d=f(o),h.x=e.x+o.clientLeft,h.y=e.y+o.clientTop}let g=!a||m||l?(0,r.ze)(0):v(a,c);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+h.x+g.x,y:n.y*d.y-c.scrollTop*d.y+h.y+g.y}},getDocumentElement:u.tF,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:i}=e,l=[..."clippingAncestors"===n?(0,u.tR)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let r=(0,u.Kx)(e,[],!1).filter(e=>(0,u.kK)(e)&&"body"!==(0,u.wk)(e)),o=null,i="fixed"===(0,u.Dx)(e).position,l=i?(0,u.Ow)(e):e;for(;(0,u.kK)(l)&&!(0,u.Py)(l);){let t=(0,u.Dx)(l),n=(0,u.hT)(l);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&!!o&&x.has(o.position)||(0,u.ao)(l)&&!n&&function e(t,n){let r=(0,u.Ow)(t);return!(r===n||!(0,u.kK)(r)||(0,u.Py)(r))&&("fixed"===(0,u.Dx)(r).position||e(r,n))}(e,l))?r=r.filter(e=>e!==l):o=t,l=(0,u.Ow)(l)}return t.set(e,r),r}(t,this._c):[].concat(n),o],a=l[0],s=l.reduce((e,n)=>{let o=b(t,n,i);return e.top=(0,r.Fp)(o.top,e.top),e.right=(0,r.VV)(o.right,e.right),e.bottom=(0,r.VV)(o.bottom,e.bottom),e.left=(0,r.Fp)(o.left,e.left),e},b(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:E,getElementRects:S,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=c(e);return{width:t,height:n}},getScale:f,isElement:u.kK,isRTL:function(e){return"rtl"===(0,u.Dx)(e).direction}};function k(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function C(e,t,n,o){let i;void 0===o&&(o={});let{ancestorScroll:l=!0,ancestorResize:a=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:f=!1}=o,h=d(e),m=l||a?[...h?(0,u.Kx)(h):[],...(0,u.Kx)(t)]:[];m.forEach(e=>{l&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});let g=h&&c?function(e,t){let n,o=null,i=(0,u.tF)(e);function l(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return!function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),l();let c=e.getBoundingClientRect(),{left:d,top:f,width:h,height:m}=c;if(s||t(),!h||!m)return;let p=(0,r.GW)(f),g=(0,r.GW)(i.clientWidth-(d+h)),v={rootMargin:-p+"px "+-g+"px "+-(0,r.GW)(i.clientHeight-(f+m))+"px "+-(0,r.GW)(d)+"px",threshold:(0,r.Fp)(0,(0,r.VV)(1,u))||1},x=!0;function b(t){let r=t[0].intersectionRatio;if(r!==u){if(!x)return a();r?a(!1,r):n=setTimeout(()=>{a(!1,1e-7)},1e3)}1!==r||k(c,e.getBoundingClientRect())||a(),x=!1}try{o=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch(e){o=new IntersectionObserver(b,v)}o.observe(e)}(!0),l}(h,n):null,v=-1,x=null;s&&(x=new ResizeObserver(e=>{let[r]=e;r&&r.target===h&&x&&(x.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var e;null==(e=x)||e.observe(t)})),n()}),h&&!f&&x.observe(h),x.observe(t));let b=f?p(e):null;return f&&function t(){let r=p(e);b&&!k(b,r)&&n(),b=r,i=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{l&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==g||g(),null==(e=x)||e.disconnect(),x=null,f&&cancelAnimationFrame(i)}}let O=l,L=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;let{x:o,y:i,placement:l,middlewareData:a}=t,u=await s(t,e);return l===(null==(n=a.offset)?void 0:n.placement)&&null!=(r=a.arrow)&&r.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:l}}}}},I=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:o,placement:i}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:u={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=(0,r.ku)(e,t),d={x:n,y:o},f=await l(t,c),h=(0,r.Qq)((0,r.k3)(i)),m=(0,r.Rn)(h),p=d[m],g=d[h];if(a){let e="y"===m?"top":"left",t="y"===m?"bottom":"right",n=p+f[e],o=p-f[t];p=(0,r.uZ)(n,p,o)}if(s){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=g+f[e],o=g-f[t];g=(0,r.uZ)(n,g,o)}let v=u.fn({...t,[m]:p,[h]:g});return{...v,data:{x:v.x-n,y:v.y-o,enabled:{[m]:a,[h]:s}}}}}},M=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o,i,a,s;let{placement:u,middlewareData:c,rects:d,initialPlacement:f,platform:h,elements:m}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:y=!0,...w}=(0,r.ku)(e,t);if(null!=(n=c.arrow)&&n.alignmentOffset)return{};let E=(0,r.k3)(u),S=(0,r.Qq)(f),T=(0,r.k3)(f)===f,k=await (null==h.isRTL?void 0:h.isRTL(m.floating)),C=v||(T||!y?[(0,r.pw)(f)]:(0,r.gy)(f)),O="none"!==b;!v&&O&&C.push(...(0,r.KX)(f,y,b,k));let L=[f,...C],I=await l(t,w),M=[],R=(null==(o=c.flip)?void 0:o.overflows)||[];if(p&&M.push(I[E]),g){let e=(0,r.i8)(u,d,k);M.push(I[e[0]],I[e[1]])}if(R=[...R,{placement:u,overflows:M}],!M.every(e=>e<=0)){let e=((null==(i=c.flip)?void 0:i.index)||0)+1,t=L[e];if(t&&(!("alignment"===g&&S!==(0,r.Qq)(t))||R.every(e=>(0,r.Qq)(e.placement)!==S||e.overflows[0]>0)))return{data:{index:e,overflows:R},reset:{placement:t}};let n=null==(a=R.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:a.placement;if(!n)switch(x){case"bestFit":{let e=null==(s=R.filter(e=>{if(O){let t=(0,r.Qq)(e.placement);return t===S||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:s[0];e&&(n=e);break}case"initialPlacement":n=f}if(u!==n)return{reset:{placement:n}}}return{}}}},R=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,o;let i,a;let{placement:s,rects:u,platform:c,elements:d}=t,{apply:f=()=>{},...h}=(0,r.ku)(e,t),m=await l(t,h),p=(0,r.k3)(s),g=(0,r.hp)(s),v="y"===(0,r.Qq)(s),{width:x,height:b}=u.floating;"top"===p||"bottom"===p?(i=p,a=g===(await (null==c.isRTL?void 0:c.isRTL(d.floating))?"start":"end")?"left":"right"):(a=p,i="end"===g?"top":"bottom");let y=b-m.top-m.bottom,w=x-m.left-m.right,E=(0,r.VV)(b-m[i],y),S=(0,r.VV)(x-m[a],w),T=!t.middlewareData.shift,k=E,C=S;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(C=w),null!=(o=t.middlewareData.shift)&&o.enabled.y&&(k=y),T&&!g){let e=(0,r.Fp)(m.left,0),t=(0,r.Fp)(m.right,0),n=(0,r.Fp)(m.top,0),o=(0,r.Fp)(m.bottom,0);v?C=x-2*(0!==e||0!==t?e+t:(0,r.Fp)(m.left,m.right)):k=b-2*(0!==n||0!==o?n+o:(0,r.Fp)(m.top,m.bottom))}await f({...t,availableWidth:C,availableHeight:k});let O=await c.getDimensions(d.floating);return x!==O.width||b!==O.height?{reset:{rects:!0}}:{}}}},P=(e,t,n)=>{let r=new Map,o={platform:T,...n},l={...o.platform,_c:r};return i(e,t,{...o,platform:l})}},97859:function(e,t,n){"use strict";n.d(t,{RR:function(){return m},YF:function(){return d},cv:function(){return f},dp:function(){return p},uY:function(){return h}});var r=n(51050),o=n(2265),i=n(54887),l="undefined"!=typeof document?o.useLayoutEffect:function(){};function a(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(!a(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)&&!a(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function s(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function u(e,t){let n=s(e);return Math.round(t*n)/n}function c(e){let t=o.useRef(e);return l(()=>{t.current=e}),t}function d(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:d=[],platform:f,elements:{reference:h,floating:m}={},transform:p=!0,whileElementsMounted:g,open:v}=e,[x,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,w]=o.useState(d);a(y,d)||w(d);let[E,S]=o.useState(null),[T,k]=o.useState(null),C=o.useCallback(e=>{e!==M.current&&(M.current=e,S(e))},[]),O=o.useCallback(e=>{e!==R.current&&(R.current=e,k(e))},[]),L=h||E,I=m||T,M=o.useRef(null),R=o.useRef(null),P=o.useRef(x),j=null!=g,N=c(g),F=c(f),A=c(v),D=o.useCallback(()=>{if(!M.current||!R.current)return;let e={placement:t,strategy:n,middleware:y};F.current&&(e.platform=F.current),(0,r.oo)(M.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==A.current};z.current&&!a(P.current,t)&&(P.current=t,i.flushSync(()=>{b(t)}))})},[y,t,n,F,A]);l(()=>{!1===v&&P.current.isPositioned&&(P.current.isPositioned=!1,b(e=>({...e,isPositioned:!1})))},[v]);let z=o.useRef(!1);l(()=>(z.current=!0,()=>{z.current=!1}),[]),l(()=>{if(L&&(M.current=L),I&&(R.current=I),L&&I){if(N.current)return N.current(L,I,D);D()}},[L,I,D,N,j]);let _=o.useMemo(()=>({reference:M,floating:R,setReference:C,setFloating:O}),[C,O]),W=o.useMemo(()=>({reference:L,floating:I}),[L,I]),H=o.useMemo(()=>{let e={position:n,left:0,top:0};if(!W.floating)return e;let t=u(W.floating,x.x),r=u(W.floating,x.y);return p?{...e,transform:"translate("+t+"px, "+r+"px)",...s(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,p,W.floating,x.x,x.y]);return o.useMemo(()=>({...x,update:D,refs:_,elements:W,floatingStyles:H}),[x,D,_,W,H])}let f=(e,t)=>({...(0,r.cv)(e),options:[e,t]}),h=(e,t)=>({...(0,r.uY)(e),options:[e,t]}),m=(e,t)=>({...(0,r.RR)(e),options:[e,t]}),p=(e,t)=>({...(0,r.dp)(e),options:[e,t]})},89750:function(e,t,n){"use strict";function r(){let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:n}=e;return t+"/"+n}).join(" "):navigator.userAgent}n.d(t,{ij:function(){return r}})},94046:function(e,t,n){"use strict";function r(){return"undefined"!=typeof window}function o(e){return a(e)?(e.nodeName||"").toLowerCase():"#document"}function i(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function l(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 i(e).Node)}function s(e){return!!r()&&(e instanceof Element||e instanceof i(e).Element)}function u(e){return!!r()&&(e instanceof HTMLElement||e instanceof i(e).HTMLElement)}function c(e){return!!r()&&"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof i(e).ShadowRoot)}n.d(t,{Dx:function(){return k},Jj:function(){return i},Kx:function(){return function e(t,n,r){var o;void 0===n&&(n=[]),void 0===r&&(r=!0);let l=function e(t){let n=O(t);return T(n)?t.ownerDocument?t.ownerDocument.body:t.body:u(n)&&f(n)?n:e(n)}(t),a=l===(null==(o=t.ownerDocument)?void 0:o.body),s=i(l);if(a){let t=L(s);return n.concat(s,s.visualViewport||[],f(l)?l:[],t&&r?e(t):[])}return n.concat(l,e(l,[],r))}},Lw:function(){return C},Ow:function(){return O},Pf:function(){return E},Py:function(){return T},Re:function(){return u},Ze:function(){return m},ao:function(){return f},gQ:function(){return w},hT:function(){return y},kK:function(){return s},tF:function(){return l},tR:function(){return g},wK:function(){return L},wk:function(){return o}});let d=new Set(["inline","contents"]);function f(e){let{overflow:t,overflowX:n,overflowY:r,display:o}=k(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!d.has(o)}let h=new Set(["table","td","th"]);function m(e){return h.has(o(e))}let p=[":popover-open",":modal"];function g(e){return p.some(t=>{try{return e.matches(t)}catch(e){return!1}})}let v=["transform","translate","scale","rotate","perspective"],x=["transform","translate","scale","rotate","perspective","filter"],b=["paint","layout","strict","content"];function y(e){let t=E(),n=s(e)?k(e):e;return v.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||x.some(e=>(n.willChange||"").includes(e))||b.some(e=>(n.contain||"").includes(e))}function w(e){let t=O(e);for(;u(t)&&!T(t);){if(y(t))return t;if(g(t))break;t=O(t)}return null}function E(){return"undefined"!=typeof CSS&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let S=new Set(["html","body","#document"]);function T(e){return S.has(o(e))}function k(e){return i(e).getComputedStyle(e)}function C(e){return s(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function O(e){if("html"===o(e))return e;let t=e.assignedSlot||e.parentNode||c(e)&&e.host||l(e);return c(t)?t.host:t}function L(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}},72695:function(e,t,n){"use strict";n.d(t,{Fp:function(){return o},GW:function(){return l},I4:function(){return p},JB:function(){return I},KX:function(){return C},NM:function(){return i},Qq:function(){return v},Rn:function(){return m},VV:function(){return r},Wh:function(){return x},gy:function(){return y},hp:function(){return h},i8:function(){return b},k3:function(){return f},ku:function(){return d},pw:function(){return O},uZ:function(){return c},yd:function(){return L},ze:function(){return a}});let r=Math.min,o=Math.max,i=Math.round,l=Math.floor,a=e=>({x:e,y:e}),s={left:"right",right:"left",bottom:"top",top:"bottom"},u={start:"end",end:"start"};function c(e,t,n){return o(e,r(t,n))}function d(e,t){return"function"==typeof e?e(t):e}function f(e){return e.split("-")[0]}function h(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function p(e){return"y"===e?"height":"width"}let g=new Set(["top","bottom"]);function v(e){return g.has(f(e))?"y":"x"}function x(e){return m(v(e))}function b(e,t,n){void 0===n&&(n=!1);let r=h(e),o=x(e),i=p(o),l="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=O(l)),[l,O(l)]}function y(e){let t=O(e);return[w(e),t,w(t)]}function w(e){return e.replace(/start|end/g,e=>u[e])}let E=["left","right"],S=["right","left"],T=["top","bottom"],k=["bottom","top"];function C(e,t,n,r){let o=h(e),i=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?S:E;return t?E:S;case"left":case"right":return t?T:k;default:return[]}}(f(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(w)))),i}function O(e){return e.replace(/left|right|bottom|top/g,e=>s[e])}function L(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function I(e){let{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}},35933:function(e,t,n){"use strict";n.d(t,{z:function(){return u}});var r=n(71049),o=n(11323),i=n(2265),l=n(36750),a=n(6885),s=n(88533);let u=(0,s.yV)(function(e,t){var n;let u=(0,a.B)(),{disabled:c=u||!1,autoFocus:d=!1,...f}=e,{isFocusVisible:h,focusProps:m}=(0,r.F)({autoFocus:d}),{isHovered:p,hoverProps:g}=(0,o.X)({isDisabled:c}),{pressed:v,pressProps:x}=(0,l.x)({disabled:c}),b=(0,s.dG)({ref:t,type:null!=(n=f.type)?n:"button",disabled:c||void 0,autoFocus:d},m,g,x),y=(0,i.useMemo)(()=>({disabled:c,hover:p,focus:h,active:v,autofocus:d}),[c,p,h,v,d]);return(0,s.L6)()({ourProps:b,theirProps:f,slot:y,defaultTag:"button",name:"Button"})})},33577:function(e,t,n){"use strict";n.d(t,{fw:function(){return d},zH:function(){return c}});var r=n(2265),o=n(13323),i=n(64518),l=n(93689),a=n(6885),s=n(88533);let u=(0,r.createContext)(null);function c(){var e,t;return null!=(t=null==(e=(0,r.useContext)(u))?void 0:e.value)?t:void 0}function d(){let[e,t]=(0,r.useState)([]);return[e.length>0?e.join(" "):void 0,(0,r.useMemo)(()=>function(e){let n=(0,o.z)(e=>(t(t=>[...t,e]),()=>t(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),i=(0,r.useMemo)(()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value}),[n,e.slot,e.name,e.props,e.value]);return r.createElement(u.Provider,{value:i},e.children)},[t])]}u.displayName="DescriptionContext",Object.assign((0,s.yV)(function(e,t){let n=(0,r.useId)(),o=(0,a.B)(),{id:c="headlessui-description-".concat(n),...d}=e,f=function e(){let t=(0,r.useContext)(u);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,e),t}return t}(),h=(0,l.T)(t);(0,i.e)(()=>f.register(c),[c,f.register]);let m=o||!1,p=(0,r.useMemo)(()=>({...f.slot,disabled:m}),[f.slot,m]),g={ref:h,...f.props,id:c};return(0,s.L6)()({ourProps:g,theirProps:d,slot:p,defaultTag:"p",name:f.name||"Description"})}),{})},37388:function(e,t,n){"use strict";let r;n.d(t,{R:function(){return 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)},34630:function(e,t,n){"use strict";n.d(t,{__:function(){return p},bE:function(){return m},t0:function(){return f},wp:function(){return h}});var r=n(2265),o=n(13323),i=n(64518),l=n(93689),a=n(6885),s=n(92807),u=n(91133),c=n(88533);let d=(0,r.createContext)(null);function f(){let e=(0,r.useContext)(d);if(null===e){let e=Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,f),e}return e}function h(e){var t,n,o;let i=null!=(n=null==(t=(0,r.useContext)(d))?void 0:t.value)?n:void 0;return(null!=(o=null==e?void 0:e.length)?o:0)>0?[i,...e].filter(Boolean).join(" "):i}function m(){let{inherit:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=h(),[n,i]=(0,r.useState)([]),l=e?[t,...n].filter(Boolean):n;return[l.length>0?l.join(" "):void 0,(0,r.useMemo)(()=>function(e){let t=(0,o.z)(e=>(i(t=>[...t,e]),()=>i(t=>{let n=t.slice(),r=n.indexOf(e);return -1!==r&&n.splice(r,1),n}))),n=(0,r.useMemo)(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return r.createElement(d.Provider,{value:n},e.children)},[i])]}d.displayName="LabelContext";let p=Object.assign((0,c.yV)(function(e,t){var n;let d=(0,r.useId)(),h=f(),m=(0,s.Q)(),p=(0,a.B)(),{id:g="headlessui-label-".concat(d),htmlFor:v=null!=m?m:null==(n=h.props)?void 0:n.htmlFor,passive:x=!1,...b}=e,y=(0,l.T)(t);(0,i.e)(()=>h.register(g),[g,h.register]);let w=(0,o.z)(e=>{let t=e.currentTarget;if(!(e.target!==e.currentTarget&&u.jF(e.target))&&(u.dz(t)&&e.preventDefault(),h.props&&"onClick"in h.props&&"function"==typeof h.props.onClick&&h.props.onClick(e),u.dz(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(u.LL(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),E=p||!1,S=(0,r.useMemo)(()=>({...h.slot,disabled:E}),[h.slot,E]),T={ref:y,...h.props,id:g,htmlFor:v,onClick:w};return x&&("onClick"in T&&(delete T.htmlFor,delete T.onClick),"onClick"in b&&delete b.onClick),(0,c.L6)()({ourProps:T,theirProps:b,slot:S,defaultTag:v?"label":"div",name:h.name||"Label"})}),{})},1265:function(e,t,n){"use strict";let r;n.d(t,{t:function(){return o}});var o=((r=o||{})[r.Left=0]="Left",r[r.Right=2]="Right",r)},58922:function(e,t,n){"use strict";n.d(t,{h_:function(){return b}});var r=n(2265),o=n.t(r,2),i=n(54887),l=n(64518),a=n(99417),s=n(40048),u=n(61424),c=n(93689);let d=(0,r.createContext)(!1);var f=n(91133),h=n(88533);let m=r.Fragment,p=(0,h.yV)(function(e,t){let{ownerDocument:n=null,...p}=e,g=(0,r.useRef)(null),b=(0,c.T)((0,c.h)(e=>{g.current=e}),t),y=(0,s.i)(g),w=null!=n?n:y,E=function(e){let t=(0,r.useContext)(d),n=(0,r.useContext)(v),[o,i]=(0,r.useState)(()=>{var r;if(!t&&null!==n)return null!=(r=n.current)?r:null;if(u.O.isServer)return null;let o=null==e?void 0:e.getElementById("headlessui-portal-root");if(o)return o;if(null===e)return null;let i=e.createElement("div");return i.setAttribute("id","headlessui-portal-root"),e.body.appendChild(i)});return(0,r.useEffect)(()=>{null!==o&&(null!=e&&e.body.contains(o)||null==e||e.body.appendChild(o))},[o,e]),(0,r.useEffect)(()=>{t||null!==n&&i(n.current)},[n,i,t]),o}(w),[S]=(0,r.useState)(()=>{var e;return u.O.isServer?null:null!=(e=null==w?void 0:w.createElement("div"))?e:null}),T=(0,r.useContext)(x),k=function(){let e;let t=(e="undefined"==typeof document,(0,o.useSyncExternalStore)(()=>()=>{},()=>!1,()=>!e)),[n,i]=r.useState(u.O.isHandoffComplete);return n&&!1===u.O.isHandoffComplete&&i(!1),r.useEffect(()=>{!0!==n&&i(!0)},[n]),r.useEffect(()=>u.O.handoff(),[]),!t&&n}();(0,l.e)(()=>{!E||!S||E.contains(S)||(S.setAttribute("data-headlessui-portal",""),E.appendChild(S))},[E,S]),(0,l.e)(()=>{if(S&&T)return T.register(S)},[T,S]),(0,a.L)(()=>{var e;E&&S&&(f.UG(S)&&E.contains(S)&&E.removeChild(S),E.childNodes.length<=0&&(null==(e=E.parentElement)||e.removeChild(E)))});let C=(0,h.L6)();return k&&E&&S?(0,i.createPortal)(C({ourProps:{ref:b},theirProps:p,slot:{},defaultTag:m,name:"Portal"}),S):null}),g=r.Fragment,v=(0,r.createContext)(null),x=(0,r.createContext)(null),b=Object.assign((0,h.yV)(function(e,t){let n=(0,c.T)(t),{enabled:o=!0,ownerDocument:i,...l}=e,a=(0,h.L6)();return o?r.createElement(p,{...l,ownerDocument:i,ref:n}):a({ourProps:{ref:n},theirProps:l,slot:{},defaultTag:m,name:"Portal"})}),{Group:(0,h.yV)(function(e,t){let{target:n,...o}=e,i={ref:(0,c.T)(t)},l=(0,h.L6)();return r.createElement(v.Provider,{value:n},l({ourProps:i,theirProps:o,defaultTag:g,name:"Popover.Group"}))})})},36750:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(2265),o=n(40293),i=n(90945),l=n(13323);function a(){let{disabled:e=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,r.useRef)(null),[n,a]=(0,r.useState)(!1),s=(0,i.G)(),u=(0,l.z)(()=>{t.current=null,a(!1),s.dispose()}),c=(0,l.z)(e=>{if(s.dispose(),null===t.current){t.current=e.currentTarget,a(!0);{let n=(0,o.r)(e.currentTarget);s.addEventListener(n,"pointerup",u,!1),s.addEventListener(n,"pointermove",e=>{if(t.current){var n,r;let o,i;a((o=e.width/2,i=e.height/2,n={top:e.clientY-i,right:e.clientX+o,bottom:e.clientY+i,left:e.clientX-o},r=t.current.getBoundingClientRect(),!(!n||!r||n.right<r.left||n.left>r.right||n.bottom<r.top||n.top>r.bottom)))}},!1),s.addEventListener(n,"pointercancel",u,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:c,onPointerUp:u,onClick:u}}}},29483:function(e,t,n){"use strict";n.d(t,{J:function(){return i}});var r=n(2265);function o(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o;return(0,r.useCallback)((t,n)=>"string"==typeof e?(null==t?void 0:t[e])===(null==n?void 0:n[e]):e(t,n),[e])}},62963:function(e,t,n){"use strict";n.d(t,{q:function(){return i}});var r=n(2265),o=n(13323);function i(e,t,n){let[i,l]=(0,r.useState)(n),a=void 0!==e,s=(0,r.useRef)(a),u=(0,r.useRef)(!1),c=(0,r.useRef)(!1);return!a||s.current||u.current?a||!s.current||c.current||(c.current=!0,s.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(u.current=!0,s.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[a?e:i,(0,o.z)(e=>(a||l(e),null==t?void 0:t(e)))]}},47920:function(e,t,n){"use strict";n.d(t,{L:function(){return o}});var r=n(2265);function o(e){let[t]=(0,r.useState)(e);return t}},89204:function(e,t,n){"use strict";n.d(t,{C:function(){return i}});var r=n(2265),o=n(64518);function i(e,t){let n=(0,r.useRef)({left:0,top:0});if((0,o.e)(()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)},[e,t]),null==t||!e||t===document.activeElement)return!1;let i=t.getBoundingClientRect();return i.top!==n.current.top||i.left!==n.current.left}},90945:function(e,t,n){"use strict";n.d(t,{G:function(){return i}});var r=n(2265),o=n(16015);function i(){let[e]=(0,r.useState)(o.k);return(0,r.useEffect)(()=>()=>e.dispose(),[e]),e}},70208:function(e,t,n){"use strict";n.d(t,{I:function(){return i}});var r=n(2265),o=n(31948);function i(e,t,n,i){let l=(0,o.E)(n);(0,r.useEffect)(()=>{if(e)return document.addEventListener(t,n,i),()=>document.removeEventListener(t,n,i);function n(e){l.current(e)}},[e,t,i])}},40993:function(e,t,n){"use strict";n.d(t,{h:function(){return i}});var r=n(2265),o=n(64518);function i(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[n,i]=(0,r.useReducer)(()=>({}),{}),l=(0,r.useMemo)(()=>(function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}})(e),[e,n]);return(0,o.e)(()=>{if(!e)return;let t=new ResizeObserver(i);return t.observe(e),()=>{t.disconnect()}},[e]),t?{width:"".concat(l.width,"px"),height:"".concat(l.height,"px")}:l}},13323:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(2265),o=n(31948);let i=function(e){let t=(0,o.E)(e);return r.useCallback(function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return t.current(...n)},[t])}},16821:function(e,t,n){"use strict";n.d(t,{s:function(){return c}});var r=n(16015),o=n(40293),i=n(76505),l=n(64518);let a=new Map,s=new Map;function u(e){var t;let n=null!=(t=s.get(e))?t:0;return s.set(e,n+1),0!==n||(a.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>(function(e){var t;let n=null!=(t=s.get(e))?t:1;if(1===n?s.delete(e):s.set(e,n-1),1!==n)return;let r=a.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,a.delete(e))})(e)}function c(e){let{allowed:t,disallowed:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=(0,i.g)(e,"inert-others");(0,l.e)(()=>{var e,i;if(!a)return;let l=(0,r.k)();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&l.add(u(t));let s=null!=(i=null==t?void 0:t())?i:[];for(let e of s){if(!e)continue;let t=(0,o.r)(e);if(!t)continue;let n=e.parentElement;for(;n&&n!==t.body;){for(let e of n.children)s.some(t=>e.contains(t))||l.add(u(e));n=n.parentElement}}return l.dispose},[a,t,n])}},76505:function(e,t,n){"use strict";n.d(t,{g:function(){return a}});var r=n(2265),o=n(22055),i=n(46187),l=n(64518);function a(e,t){let n=(0,r.useId)(),a=o.n.get(t),[s,u]=(0,i.M)(a,(0,r.useCallback)(e=>[a.selectors.isTop(e,n),a.selectors.inStack(e,n)],[a,n]));return(0,l.e)(()=>{if(e)return a.actions.push(n),()=>a.actions.pop(n)},[a,e,n]),!!e&&(!u||s)}},64518:function(e,t,n){"use strict";n.d(t,{e:function(){return i}});var r=n(2265),o=n(61424);let i=(e,t)=>{o.O.isServer?(0,r.useEffect)(e,t):(0,r.useLayoutEffect)(e,t)}},31948:function(e,t,n){"use strict";n.d(t,{E:function(){return i}});var r=n(2265),o=n(64518);function i(e){let t=(0,r.useRef)(e);return(0,o.e)(()=>{t.current=e},[e]),t}},33106:function(e,t,n){"use strict";n.d(t,{m:function(){return a}});var r=n(2265),o=n(16015),i=n(91133),l=n(31948);function a(e,t,n){let a=(0,l.E)(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()});(0,r.useEffect)(()=>{if(!e)return;let n=null===t?null:i.Re(t)?t:t.current;if(!n)return;let r=(0,o.k)();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>a.current(n));e.observe(n),r.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>a.current(n));e.observe(n),r.add(()=>e.disconnect())}return()=>r.dispose()},[t,a,e])}},99417:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var r=n(2265),o=n(96822),i=n(13323);function l(e){let t=(0,i.z)(e),n=(0,r.useRef)(!1);(0,r.useEffect)(()=>(n.current=!1,()=>{n.current=!0,(0,o.Y)(()=>{n.current&&t()})}),[t])}},76292:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(2265),o=n(91133),i=n(37105),l=n(52108),a=n(70208),s=n(31948);function u(e,t,n){var u,c;let d,f=(0,s.E)(n),h=(0,r.useCallback)(function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null!==r&&r.getRootNode().contains(r)&&r.isConnected){for(let n of function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t))if(null!==n&&(n.contains(r)||e.composed&&e.composedPath().includes(n)))return;return(0,i.sP)(r,i.tJ.Loose)||-1===r.tabIndex||e.preventDefault(),f.current(e,r)}},[f,t]),m=(0,r.useRef)(null);(0,a.I)(e,"pointerdown",e=>{var t,n;(0,l.tq)()||(m.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target)},!0),(0,a.I)(e,"pointerup",e=>{if((0,l.tq)()||!m.current)return;let t=m.current;return m.current=null,h(e,()=>t)},!0);let p=(0,r.useRef)({x:0,y:0});(0,a.I)(e,"touchstart",e=>{p.current.x=e.touches[0].clientX,p.current.y=e.touches[0].clientY},!0),(0,a.I)(e,"touchend",e=>{let t={x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY};if(!(Math.abs(t.x-p.current.x)>=30||Math.abs(t.y-p.current.y)>=30))return h(e,()=>o.sP(e.target)?e.target:null)},!0),u="blur",c=e=>h(e,()=>o.jQ(window.document.activeElement)?window.document.activeElement:null),d=(0,s.E)(c),(0,r.useEffect)(()=>{if(e)return window.addEventListener(u,t,!0),()=>window.removeEventListener(u,t,!0);function t(e){d.current(e)}},[e,u,!0])}},40048:function(e,t,n){"use strict";n.d(t,{i:function(){return i}});var r=n(2265),o=n(40293);function i(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)(()=>(0,o.r)(...t),[...t])}},18303:function(e,t,n){"use strict";let r;n.d(t,{G:function(){return u},a:function(){return s}});var o=n(2265),i=n(91133),l=n(70208),a=((r=a||{})[r.Ignore=0]="Ignore",r[r.Select=1]="Select",r[r.Close=2]="Close",r);let s={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function u(e,t){let{trigger:n,action:r,close:a,select:s}=t,u=(0,o.useRef)(null),c=(0,o.useRef)(null),d=(0,o.useRef)(null);(0,l.I)(e&&null!==n,"pointerdown",e=>{i.UG(null==e?void 0:e.target)&&null!=n&&n.contains(e.target)&&(c.current=e.x,d.current=e.y,u.current=e.timeStamp)}),(0,l.I)(e&&null!==n,"pointerup",e=>{var t,n;let o=u.current;if(null===o||(u.current=null,!i.sP(e.target))||5>Math.abs(e.x-(null!=(t=c.current)?t:e.x))&&5>Math.abs(e.y-(null!=(n=d.current)?n:e.y)))return;let l=r(e);switch(l.kind){case 0:return;case 1:e.timeStamp-o>200&&(s(l.target),a());break;case 2:a()}},{capture:!0})}},80004:function(e,t,n){"use strict";n.d(t,{f:function(){return o}});var r=n(2265);function o(e,t){return(0,r.useMemo)(()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";if("string"==typeof r&&"button"===r.toLowerCase()||(null==t?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}},26074:function(e,t,n){"use strict";let r,o;n.d(t,{P:function(){return m}});var i,l,a=n(2265),s=n(64518),u=n(16015),c=n(91133),d=n(52108);let f=(i=()=>new Map,l={PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:(0,u.k)(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT(e){let t,{doc:n,d:r,meta:o}=e,i={doc:n,d:r,meta:function(e){let t={};for(let n of e)Object.assign(t,n(t));return t}(o)},l=[(0,d.gn)()?{before(e){let{doc:t,d:n,meta:r}=e;function o(e){return r.containers.flatMap(e=>e()).some(t=>t.contains(e))}n.microTask(()=>{var e;if("auto"!==window.getComputedStyle(t.documentElement).scrollBehavior){let e=(0,u.k)();e.style(t.documentElement,"scrollBehavior","auto"),n.add(()=>n.microTask(()=>e.dispose()))}let r=null!=(e=window.scrollY)?e:window.pageYOffset,i=null;n.addEventListener(t,"click",e=>{if(c.sP(e.target))try{let n=e.target.closest("a");if(!n)return;let{hash:r}=new URL(n.href),l=t.querySelector(r);c.sP(l)&&!o(l)&&(i=l)}catch(e){}},!0),n.addEventListener(t,"touchstart",e=>{if(c.sP(e.target)&&c.nR(e.target)){if(o(e.target)){let t=e.target;for(;t.parentElement&&o(t.parentElement);)t=t.parentElement;n.style(t,"overscrollBehavior","contain")}else n.style(e.target,"touchAction","none")}}),n.addEventListener(t,"touchmove",e=>{if(c.sP(e.target)&&!c.LL(e.target)){if(o(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}},{passive:!1}),n.add(()=>{var e;r!==(null!=(e=window.scrollY)?e:window.pageYOffset)&&window.scrollTo(0,r),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)})})}}:{},{before(e){var n;let{doc:r}=e,o=r.documentElement;t=Math.max(0,(null!=(n=r.defaultView)?n:window).innerWidth-o.clientWidth)},after(e){let{doc:n,d:r}=e,o=n.documentElement,i=Math.max(0,o.clientWidth-o.offsetWidth),l=Math.max(0,t-i);r.style(o,"paddingRight","".concat(l,"px"))}},{before(e){let{doc:t,d:n}=e;n.style(t.documentElement,"overflow","hidden")}}];l.forEach(e=>{let{before:t}=e;return null==t?void 0:t(i)}),l.forEach(e=>{let{after:t}=e;return null==t?void 0:t(i)})},SCROLL_ALLOW(e){let{d:t}=e;t.dispose()},TEARDOWN(e){let{doc:t}=e;this.delete(t)}},r=i(),o=new Set,{getSnapshot:()=>r,subscribe:e=>(o.add(e),()=>o.delete(e)),dispatch(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];let a=l[e].call(r,...n);a&&(r=a,o.forEach(e=>e()))}});f.subscribe(()=>{let e=f.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&f.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&f.dispatch("TEARDOWN",n)}});var h=n(76505);function m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];!function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>({containers:[]}),r=(0,a.useSyncExternalStore)(f.subscribe,f.getSnapshot,f.getSnapshot),o=t?r.get(t):void 0;o&&o.count,(0,s.e)(()=>{if(!(!t||!e))return f.dispatch("PUSH",t,n),()=>f.dispatch("POP",t,n)},[e,t])}((0,h.g)(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}})}},93689:function(e,t,n){"use strict";n.d(t,{T:function(){return a},h:function(){return l}});var r=n(2265),o=n(13323);let i=Symbol();function l(e){let t=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(e,{[i]:t})}function a(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];let l=(0,r.useRef)(t);(0,r.useEffect)(()=>{l.current=t},[t]);let a=(0,o.z)(e=>{for(let t of l.current)null!=t&&("function"==typeof t?t(e):t.current=e)});return t.every(e=>null==e||(null==e?void 0:e[i]))?void 0:a}},4301:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(2265),o=n(91133);let i=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function l(e){var t,n;let r=null!=(t=e.innerText)?t:"",l=e.cloneNode(!0);if(!o.Re(l))return r;let a=!1;for(let e of l.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))e.remove(),a=!0;let s=a?null!=(n=l.innerText)?n:"":r;return i.test(s)&&(s=s.replace(i,"")),s}var a=n(13323);function s(e){let t=(0,r.useRef)(""),n=(0,r.useRef)("");return(0,a.z)(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=(function(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():l(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return l(e).trim()})(r).trim().toLowerCase();return t.current=o,n.current=i,i})}},15518:function(e,t,n){"use strict";n.d(t,{g:function(){return i}});var r=n(2265);function o(e){return[e.screenX,e.screenY]}function i(){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)}}}},34723:function(e,t,n){"use strict";let r;n.d(t,{X:function(){return f},Y:function(){return h}});var o,i,l=n(2265),a=n(16015),s=n(90945),u=n(64518),c=n(40257);void 0!==c&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&(null==(o=null==c?void 0:c.env)?void 0:o.NODE_ENV)==="test"&&void 0===(null==(i=null==Element?void 0:Element.prototype)?void 0:i.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn("Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.\nPlease install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.\n\nExample usage:\n```js\nimport { mockAnimationsApi } from 'jsdom-testing-mocks'\nmockAnimationsApi()\n```"),[]});var d=((r=d||{})[r.None=0]="None",r[r.Closed=1]="Closed",r[r.Enter=2]="Enter",r[r.Leave=4]="Leave",r);function f(e){let t={};for(let n in e)!0===e[n]&&(t["data-".concat(n)]="");return t}function h(e,t,n,r){let[o,i]=(0,l.useState)(n),{hasFlag:c,addFlag:d,removeFlag:f}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[t,n]=(0,l.useState)(e),r=(0,l.useCallback)(e=>n(e),[t]),o=(0,l.useCallback)(e=>n(t=>t|e),[t]),i=(0,l.useCallback)(e=>(t&e)===e,[t]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:(0,l.useCallback)(e=>n(t=>t&~e),[n]),toggleFlag:(0,l.useCallback)(e=>n(t=>t^e),[n])}}(e&&o?3:0),h=(0,l.useRef)(!1),m=(0,l.useRef)(!1),p=(0,s.G)();return(0,u.e)(()=>{var o;if(e){if(n&&i(!0),!t){n&&d(3);return}return null==(o=null==r?void 0:r.start)||o.call(r,n),function(e,t){let{prepare:n,run:r,done:o,inFlight:i}=t,l=(0,a.k)();return function(e,t){let{inFlight:n,prepare:r}=t;if(null!=n&&n.current){r();return}let o=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=o}(e,{prepare:n,inFlight:i}),l.nextFrame(()=>{r(),l.requestAnimationFrame(()=>{l.add(function(e,t){var n,r;let o=(0,a.k)();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let l=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter(e=>e instanceof CSSTransition))?r:[];return 0===l.length?t():Promise.allSettled(l.map(e=>e.finished)).then(()=>{i||t()}),o.dispose}(e,o))})}),l.dispose}(t,{inFlight:h,prepare(){m.current?m.current=!1:m.current=h.current,h.current=!0,m.current||(n?(d(3),f(4)):(d(4),f(2)))},run(){m.current?n?(f(3),d(4)):(f(4),d(3)):n?f(1):d(1)},done(){var e;m.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(h.current=!1,f(7),n||i(!1),null==(e=null==r?void 0:r.end)||e.call(r,n))}})}},[e,n,t,p]),e?[o,{closed:c(1),enter:c(2),leave:c(4),transition:c(2)||c(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}},71776:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var r=n(2265),o=n(40293),i=n(64518);function l(e,t){let{container:n,accept:l,walk:a}=t,s=(0,r.useRef)(l),u=(0,r.useRef)(a);(0,r.useEffect)(()=>{s.current=l,u.current=a},[l,a]),(0,i.e)(()=>{if(!n||!e)return;let t=(0,o.r)(n);if(!t)return;let r=s.current,i=u.current,l=Object.assign(e=>r(e),{acceptNode:r}),a=t.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,l,!1);for(;a.nextNode();)i(a.currentNode)},[n,e,s,u])}},6885:function(e,t,n){"use strict";n.d(t,{B:function(){return i}});var r=n(2265);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},30054:function(e,t,n){"use strict";n.d(t,{AZ:function(){return m},ES:function(){return v},HO:function(){return x},L:function(){return p},U8:function(){return g},Vy:function(){return h}});var r=n(61896),o=n(97859),i=n(51050),l=n(2265),a=n(90945),s=n(13323),u=n(64518),c=n(91133);let d=(0,l.createContext)({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});d.displayName="FloatingContext";let f=(0,l.createContext)(null);function h(e){return(0,l.useMemo)(()=>e?"string"==typeof e?{to:e}:e:null,[e])}function m(){return(0,l.useContext)(d).setReference}function p(){return(0,l.useContext)(d).getReferenceProps}function g(){let{getFloatingProps:e,slot:t}=(0,l.useContext)(d);return(0,l.useCallback)(function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return Object.assign({},e(...r),{"data-anchor":t.anchor})},[e,t])}function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=(0,l.useContext)(f),n=(0,l.useMemo)(()=>e,[JSON.stringify(e,(e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t})]);(0,u.e)(()=>{null==t||t(null!=n?n:null)},[t,n]);let r=(0,l.useContext)(d);return(0,l.useMemo)(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}function x(e){var t,n,a;let h,m,p,{children:g,enabled:v=!0}=e,[x,y]=(0,l.useState)(null),[w,E]=(0,l.useState)(0),S=(0,l.useRef)(null),[T,k]=(0,l.useState)(null);(0,u.e)(()=>{if(!T)return;let e=new MutationObserver(()=>{let e=window.getComputedStyle(T).maxHeight,t=parseFloat(e);if(isNaN(t))return;let n=parseInt(e);isNaN(n)||t!==n&&(T.style.maxHeight="".concat(Math.ceil(t),"px"))});return e.observe(T,{attributes:!0,attributeFilter:["style"]}),()=>{e.disconnect()}},[T]);let C=v&&null!==x&&null!==T,{to:O="bottom",gap:L=0,offset:I=0,padding:M=0,inner:R}=(h=b(null!=(t=null==x?void 0:x.gap)?t:"var(--anchor-gap, 0)",T),m=b(null!=(n=null==x?void 0:x.offset)?n:"var(--anchor-offset, 0)",T),p=b(null!=(a=null==x?void 0:x.padding)?a:"var(--anchor-padding, 0)",T),{...x,gap:h,offset:m,padding:p}),[P,j="center"]=O.split(" ");(0,u.e)(()=>{C&&E(0)},[C]);let{refs:N,floatingStyles:F,context:A}=(0,r.YF)({open:C,placement:"selection"===P?"center"===j?"bottom":"bottom-".concat(j):"center"===j?"".concat(P):"".concat(P,"-").concat(j),strategy:"absolute",transform:!1,middleware:[(0,o.cv)({mainAxis:"selection"===P?0:L,crossAxis:I}),(0,o.uY)({padding:M}),"selection"!==P&&(0,o.RR)({padding:M}),"selection"===P&&R?(0,r.aN)({...R,padding:M,overflowRef:S,offset:w,minItemsVisible:4,referenceOverflowThreshold:M,onFallbackChange(e){var t,n;if(!e)return;let r=A.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,i=Math.min(4,r.childElementCount),l=0,a=0;for(let e of null!=(n=null==(t=A.elements.floating)?void 0:t.childNodes)?n:[])if(c.Re(e)){let t=e.offsetTop,n=t+e.clientHeight+o,s=r.scrollTop,u=s+r.clientHeight;if(t>=s&&n<=u)i--;else{a=Math.max(0,Math.min(n,u)-Math.max(t,s)),l=e.clientHeight;break}}i>=1&&E(e=>{let t=l*i-a+o;return e>=t?e:t})}}):null,(0,o.dp)({padding:M,apply(e){let{availableWidth:t,availableHeight:n,elements:r}=e;Object.assign(r.floating.style,{overflow:"auto",maxWidth:"".concat(t,"px"),maxHeight:"min(var(--anchor-max-height, 100vh), ".concat(n,"px)")})}})].filter(Boolean),whileElementsMounted:i.Me}),[D=P,z=j]=A.placement.split("-");"selection"===P&&(D="selection");let _=(0,l.useMemo)(()=>({anchor:[D,z].filter(Boolean).join(" ")}),[D,z]),W=(0,r.Rz)(A,{overflowRef:S,onChange:E}),{getReferenceProps:H,getFloatingProps:B}=(0,r.NI)([W]),U=(0,s.z)(e=>{k(e),N.setFloating(e)});return l.createElement(f.Provider,{value:y},l.createElement(d.Provider,{value:{setFloating:U,setReference:N.setReference,styles:F,getReferenceProps:H,getFloatingProps:B,slot:_}},g))}function b(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=(0,a.G)(),o=(0,s.z)((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=y(e,t);return[o,n=>{let i=function e(t){let n=/var\((.*)\)/.exec(t);if(n){let t=n[1].indexOf(",");if(-1===t)return[n[1]];let r=n[1].slice(0,t).trim(),o=n[1].slice(t+1).trim();return o?[r,...e(o)]:[r]}return[]}(e);{let l=i.map(e=>window.getComputedStyle(t).getPropertyValue(e));r.requestAnimationFrame(function a(){r.nextFrame(a);let s=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(l[e]!==r){l[e]=r,s=!0;break}}if(!s)return;let u=y(e,t);o!==u&&(n(u),o=u)})}return r.dispose}]}return[n,null]}),i=(0,l.useMemo)(()=>o(e,t)[0],[e,t]),[c=i,d]=(0,l.useState)();return(0,u.e)(()=>{let[n,r]=o(e,t);if(d(n),r)return r(d)},[e,t]),c}function y(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}f.displayName="PlacementContext"},7722:function(e,t,n){"use strict";let r;n.d(t,{Mt:function(){return h}});var o=n(2265),i=n(54887),l=n(90945),a=n(56314),s=n(88533),u=((r=u||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);let c=(0,s.yV)(function(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(2&r)==2||(null!=(n=o["aria-hidden"])?n:void 0),hidden:(4&r)==4||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&r)==4&&(2&r)!=2&&{display:"none"}}};return(0,s.L6)()({ourProps:i,theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})}),d=(0,o.createContext)(null);function f(e){let{children:t}=e,n=(0,o.useContext)(d);if(!n)return o.createElement(o.Fragment,null,t);let{target:r}=n;return r?(0,i.createPortal)(o.createElement(o.Fragment,null,t),r):null}function h(e){let{data:t,form:n,disabled:r,onReset:i,overrides:d}=e,[h,p]=(0,o.useState)(null),g=(0,l.G)();return(0,o.useEffect)(()=>{if(i&&h)return g.addEventListener(h,"reset",i)},[h,n,i]),o.createElement(f,null,o.createElement(m,{setForm:p,formId:n}),(0,a.t)(t).map(e=>{let[t,i]=e;return o.createElement(c,{features:u.Hidden,...(0,s.oA)({key:t,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,disabled:r,name:t,value:i,...d})})}))}function m(e){let{setForm:t,formId:n}=e;return(0,o.useEffect)(()=>{if(n){let e=document.getElementById(n);e&&t(e)}},[t,n]),n?null:o.createElement(c,{features:u.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:e=>{if(!e)return;let n=e.closest("form");n&&t(n)}})}},60370:function(e,t,n){"use strict";n.d(t,{F:function(){return o},_:function(){return i}});var r=n(2265);function o(e){let{children:t,freeze:n}=e,o=i(n,t);return r.createElement(r.Fragment,null,o)}function i(e,t){let[n,o]=(0,r.useState)(t);return e||n===t||o(t),e?n:t}},92807:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(2265);let o=(0,r.createContext)(void 0);function i(){return(0,r.useContext)(o)}},37863:function(e,t,n){"use strict";let r;n.d(t,{ZM:function(){return l},oJ:function(){return a},up:function(){return s}});var o=n(2265);let i=(0,o.createContext)(null);i.displayName="OpenClosedContext";var l=((r=l||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function a(){return(0,o.useContext)(i)}function s(e){let{value:t,children:n}=e;return o.createElement(i.Provider,{value:t},n)}},46036:function(e,t,n){"use strict";n.d(t,{J:function(){return g},dC:function(){return y},wU:function(){return v}});var r,o,i,l=n(24093),a=n(16015),s=n(61424),u=Object.defineProperty,c=(e,t,n)=>t in e?u(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,d=(e,t,n)=>(c(e,"symbol"!=typeof t?t+"":t,n),n),f=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},h=(e,t,n)=>(f(e,t,"read from private field"),n?n.call(e):t.get(e)),m=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},p=(e,t,n,r)=>(f(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);class g{dispose(){this.disposables.dispose()}get state(){return h(this,r)}subscribe(e,t){if(s.O.isServer)return()=>{};let n={selector:e,callback:t,current:e(h(this,r))};return h(this,i).add(n),this.disposables.add(()=>{h(this,i).delete(n)})}on(e,t){return s.O.isServer?()=>{}:(h(this,o).get(e).add(t),this.disposables.add(()=>{h(this,o).get(e).delete(t)}))}send(e){let t=this.reduce(h(this,r),e);if(t!==h(this,r)){for(let e of(p(this,r,t),h(this,i))){let t=e.selector(h(this,r));v(e.current,t)||(e.current=t,e.callback(t))}for(let t of h(this,o).get(e.type))t(h(this,r),e)}}constructor(e){m(this,r,{}),m(this,o,new l.G(()=>new Set)),m(this,i,new Set),d(this,"disposables",(0,a.k)()),p(this,r,e),s.O.isServer&&this.disposables.microTask(()=>{this.dispose()})}}function v(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&x(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&x(e.entries(),t.entries()):!!(b(e)&&b(t))&&x(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function x(e,t){for(;;){let n=e.next(),r=t.next();if(n.done&&r.done)return!0;if(n.done||r.done||!Object.is(n.value,r.value))return!1}}function b(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function y(e){let[t,n]=e(),r=(0,a.k)();return function(){for(var e=arguments.length,o=Array(e),i=0;i<e;i++)o[i]=arguments[i];t(...o),r.dispose(),r.microTask(n)}}r=new WeakMap,o=new WeakMap,i=new WeakMap},22055:function(e,t,n){"use strict";let r;n.d(t,{M:function(){return c},n:function(){return h}});var o=n(46036),i=n(24093),l=n(24536),a=Object.defineProperty,s=(e,t,n)=>t in e?a(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t,n)=>(s(e,"symbol"!=typeof t?t+"":t,n),n),c=((r=c||{})[r.Push=0]="Push",r[r.Pop=1]="Pop",r);let d={0(e,t){let n=t.id,r=e.stack,o=e.stack.indexOf(n);if(-1!==o){let t=e.stack.slice();return t.splice(o,1),t.push(n),r=t,{...e,stack:r}}return{...e,stack:[...e.stack,n]}},1(e,t){let n=t.id,r=e.stack.indexOf(n);if(-1===r)return e;let o=e.stack.slice();return o.splice(r,1),{...e,stack:o}}};class f extends o.J{static new(){return new f({stack:[]})}reduce(e,t){return(0,l.E)(t.type,d,e,t)}constructor(){super(...arguments),u(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),u(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}}let h=new i.G(()=>f.new())},46187:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r=n(76548),o=n(13323),i=n(46036);function l(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.wU;return(0,r.useSyncExternalStoreWithSelector)((0,o.z)(t=>e.subscribe(a,t)),(0,o.z)(()=>e.state),(0,o.z)(()=>e.state),(0,o.z)(t),n)}function a(e){return e}},47634:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(91133);function o(e){let t=e.parentElement,n=null;for(;t&&!r.zO(t);)r.CD(t)&&(n=t),t=t.parentElement;let o=(null==t?void 0:t.getAttribute("disabled"))==="";return!(o&&function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(r.CD(t))return!1;t=t.previousElementSibling}return!0}(n))&&o}},34778:function(e,t,n){"use strict";let r;n.d(t,{T:function(){return o},d:function(){return i}});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 i(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<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw Error("Unexpected object: "+e)}(e)}}},24093:function(e,t,n){"use strict";n.d(t,{G:function(){return r}});class r extends Map{get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}constructor(e){super(),this.factory=e}}},16015:function(e,t,n){"use strict";n.d(t,{k:function(){return function e(){let t=[],n={addEventListener:(e,t,r,o)=>(e.addEventListener(t,r,o),n.add(()=>e.removeEventListener(t,r,o))),requestAnimationFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=requestAnimationFrame(...t);return n.add(()=>cancelAnimationFrame(o))},nextFrame(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.requestAnimationFrame(()=>n.requestAnimationFrame(...t))},setTimeout(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];let o=setTimeout(...t);return n.add(()=>clearTimeout(o))},microTask(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];let i={current:!0};return(0,r.Y)(()=>{i.current&&t[0]()}),n.add(()=>{i.current=!1})},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add(()=>{Object.assign(e.style,{[t]:r})})},group(t){let n=e();return t(n),this.add(()=>n.dispose())},add:e=>(t.includes(e)||t.push(e),()=>{let n=t.indexOf(e);if(n>=0)for(let e of t.splice(n,1))e()}),dispose(){for(let e of t.splice(0))e()}};return n}}});var r=n(96822)},91133:function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function o(e){return r(e)&&"tagName"in e}function i(e){return o(e)&&"accessKey"in e}function l(e){return o(e)&&"tabIndex"in e}function a(e){return o(e)&&"style"in e}function s(e){return i(e)&&"IFRAME"===e.nodeName}function u(e){return i(e)&&"INPUT"===e.nodeName}function c(e){return i(e)&&"LABEL"===e.nodeName}function d(e){return i(e)&&"FIELDSET"===e.nodeName}function f(e){return i(e)&&"LEGEND"===e.nodeName}function h(e){return!!o(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}n.d(t,{CD:function(){return f},LL:function(){return u},Re:function(){return i},UG:function(){return r},dz:function(){return c},jF:function(){return h},jQ:function(){return s},nR:function(){return a},sP:function(){return l},zO:function(){return d}})},61424:function(e,t,n){"use strict";n.d(t,{O:function(){return a}});var r=Object.defineProperty,o=(e,t,n)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,i=(e,t,n)=>(o(e,"symbol"!=typeof t?t+"":t,n),n);class l{set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){i(this,"current",this.detect()),i(this,"handoffState","pending"),i(this,"currentId",0)}}let a=new l},37105:function(e,t,n){"use strict";let r,o,i,l,a;n.d(t,{EO:function(){return S},TO:function(){return m},sP:function(){return b},tJ:function(){return x},wI:function(){return y},y:function(){return f},z2:function(){return E}});var s=n(16015),u=n(91133),c=n(24536),d=n(40293);let f=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(","),h=["[data-autofocus]"].map(e=>"".concat(e,":not([tabindex='-1'])")).join(",");var m=((r=m||{})[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[r.AutoFocus=64]="AutoFocus",r),p=((o=p||{})[o.Error=0]="Error",o[o.Overflow=1]="Overflow",o[o.Success=2]="Success",o[o.Underflow=3]="Underflow",o),g=((i=g||{})[i.Previous=-1]="Previous",i[i.Next=1]="Next",i);function v(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]: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 x=((l=x||{})[l.Strict=0]="Strict",l[l.Loose=1]="Loose",l);function b(e){var t;let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e!==(null==(t=(0,d.r)(e))?void 0:t.body)&&(0,c.E)(n,{0:()=>e.matches(f),1(){let t=e;for(;null!==t;){if(t.matches(f))return!0;t=t.parentElement}return!1}})}function y(e){let t=(0,d.r)(e);(0,s.k)().nextFrame(()=>{t&&u.sP(t.activeElement)&&!b(t.activeElement,0)&&(null==e||e.focus({preventScroll:!0}))})}var w=((a=w||{})[a.Keyboard=0]="Keyboard",a[a.Mouse=1]="Mouse",a);function E(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e=>e;return e.slice().sort((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function S(e,t){return function(e,t){var n,r,o;let{sorted:i=!0,relativeTo:l=null,skipElements:a=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,u=Array.isArray(e)?i?E(e):e:64&t?function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==e?[]:Array.from(e.querySelectorAll(h)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):v(e);a.length>0&&u.length>1&&(u=u.filter(e=>!a.some(t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))),l=null!=l?l:s.activeElement;let c=(()=>{if(5&t)return 1;if(10&t)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),d=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,u.indexOf(l))-1;if(4&t)return Math.max(0,u.indexOf(l))+1;if(8&t)return u.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),f=32&t?{preventScroll:!0}:{},m=0,p=u.length,g;do{if(m>=p||m+p<=0)return 0;let e=d+m;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}null==(g=u[e])||g.focus(f),m+=c}while(g!==s.activeElement);return 6&t&&null!=(o=null==(r=null==(n=g)?void 0:n.matches)?void 0:r.call(n,"textarea,input"))&&o&&g.select(),2}(v(),t,{relativeTo:e})}"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))},56314:function(e,t,n){"use strict";function r(e,t){return e?e+"["+t+"]":t}function o(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type)){t.click();return}null==(n=r.requestSubmit)||n.call(r)}}n.d(t,{g:function(){return o},t:function(){return function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[i,l]of Object.entries(t))!function t(n,o,i){if(Array.isArray(i))for(let[e,l]of i.entries())t(n,r(o,e.toString()),l);else i instanceof Date?n.push([o,i.toISOString()]):"boolean"==typeof i?n.push([o,i?"1":"0"]):"string"==typeof i?n.push([o,i]):"number"==typeof i?n.push([o,"".concat(i)]):null==i?n.push([o,""]):e(i,o,n)}(o,r(n,i),l);return o}}})},24536:function(e,t,n){"use strict";function r(e,t){for(var n=arguments.length,o=Array(n>2?n-2:0),i=2;i<n;i++)o[i-2]=arguments[i];if(e in t){let n=t[e];return"function"==typeof n?n(...o):n}let l=Error('Tried to handle "'.concat(e,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(t).map(e=>'"'.concat(e,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(l,r),l}n.d(t,{E:function(){return r}})},96822:function(e,t,n){"use strict";function r(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}n.d(t,{Y:function(){return r}})},40293:function(e,t,n){"use strict";n.d(t,{r:function(){return o}});var r=n(61424);function o(e){var t,n;return r.O.isServer?null:e?"ownerDocument"in e?e.ownerDocument:"current"in e?null!=(n=null==(t=e.current)?void 0:t.ownerDocument)?n:document:null:document}},52108: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:function(){return r},tq:function(){return o}})},88533:function(e,t,n){"use strict";let r,o;n.d(t,{VN:function(){return s},oA:function(){return g},yV:function(){return p},dG:function(){return m},L6:function(){return c}});var i=n(2265);function l(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(new Set(t.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}var a=n(24536),s=((r=s||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),u=((o=u||{})[o.Unmount=0]="Unmount",o[o.Hidden=1]="Hidden",o);function c(){let e,t;let n=(e=(0,i.useRef)([]),t=(0,i.useCallback)(t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)},[]),function(){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];if(!r.every(e=>null==e))return e.current=r,t});return(0,i.useCallback)(e=>(function(e){let{ourProps:t,theirProps:n,slot:r,defaultTag:o,features:i,visible:l=!0,name:s,mergeRefs:u}=e;u=null!=u?u:f;let c=h(n,t);if(l)return d(c,r,o,s,u);let m=null!=i?i:0;if(2&m){let{static:e=!1,...t}=c;if(e)return d(t,r,o,s,u)}if(1&m){let{unmount:e=!0,...t}=c;return(0,a.E)(e?0:1,{0:()=>null,1:()=>d({...t,hidden:!0,style:{display:"none"}},r,o,s,u)})}return d(c,r,o,s,u)})({mergeRefs:n,...e}),[n])}function d(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,{as:a=n,children:s,refName:u="ref",...c}=v(e,["unmount","static"]),d=void 0!==e.ref?{[u]:e.ref}:{},f="function"==typeof s?s(t):s;"className"in c&&c.className&&"function"==typeof c.className&&(c.className=c.className(t)),c["aria-labelledby"]&&c["aria-labelledby"]===c.id&&(c["aria-labelledby"]=void 0);let m={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,e=>"-".concat(e.toLowerCase())));if(e)for(let e of(m["data-headlessui-state"]=n.join(" "),n))m["data-".concat(e)]=""}if(a===i.Fragment&&(Object.keys(g(c)).length>0||Object.keys(g(m)).length>0)){if(!(0,i.isValidElement)(f)||Array.isArray(f)&&f.length>1){if(Object.keys(g(c)).length>0)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(g(c)).concat(Object.keys(g(m))).map(e=>" - ".concat(e)).join("\n"),"","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=>" - ".concat(e)).join("\n")].join("\n"))}else{let e=f.props,t=null==e?void 0:e.className,n="function"==typeof t?function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return l(t(...n),c.className)}:l(t,c.className),r=h(f.props,g(v(c,["ref"])));for(let e in m)e in r&&delete m[e];return(0,i.cloneElement)(f,Object.assign({},r,m,d,{ref:o(i.version.split(".")[0]>="19"?f.props.ref:f.ref,d.ref)},n?{className:n}:{}))}}return(0,i.createElement)(a,Object.assign({},v(c,["ref"]),a!==i.Fragment&&d,a!==i.Fragment&&m),f)}function f(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.every(e=>null==e)?void 0:e=>{for(let n of t)null!=n&&("function"==typeof n?n(e):n.current=e)}}function h(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];if(r.disabled||r["aria-disabled"])for(let e in o)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(e)&&(o[e]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let e in o)Object.assign(r,{[e](t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];for(let n of o[e]){if((t instanceof Event||(null==t?void 0:t.nativeEvent)instanceof Event)&&t.defaultPrevented)return;n(t,...r)}}});return r}function m(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];if(0===t.length)return{};if(1===t.length)return t[0];let r={},o={};for(let e of t)for(let t in e)t.startsWith("on")&&"function"==typeof e[t]?(null!=o[t]||(o[t]=[]),o[t].push(e[t])):r[t]=e[t];for(let e in o)Object.assign(r,{[e](){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];for(let t of o[e])null==t||t(...n)}});return r}function p(e){var t;return Object.assign((0,i.forwardRef)(e),{displayName:null!=(t=e.displayName)?t:e.name})}function g(e){let t=Object.assign({},e);for(let e in t)void 0===t[e]&&delete t[e];return t}function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object.assign({},e);for(let e of t)e in n&&delete n[e];return n}},71049:function(e,t,n){"use strict";n.d(t,{F:function(){return D}});var r,o=n(2265);let i="undefined"!=typeof document?o.useLayoutEffect:()=>{},l=null!==(r=o.useInsertionEffect)&&void 0!==r?r:i;function a(e){return e.nativeEvent=e,e.isDefaultPrevented=()=>e.defaultPrevented,e.isPropagationStopped=()=>e.cancelBubble,e.persist=()=>{},e}function s(e){let t=(0,o.useRef)({isFocused:!1,observer:null});i(()=>{let e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]);let n=function(e){let t=(0,o.useRef)(null);return l(()=>{t.current=e},[e]),(0,o.useCallback)((...e)=>{let n=t.current;return null==n?void 0:n(...e)},[])}(t=>{null==e||e(t)});return(0,o.useCallback)(e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target;r.addEventListener("focusout",e=>{t.current.isFocused=!1,r.disabled&&n(a(e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)},{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function u(e){var t;if("undefined"==typeof window||null==window.navigator)return!1;let n=null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands;return Array.isArray(n)&&n.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function c(e){var t;return"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform)}function d(e){let t=null;return()=>(null==t&&(t=e()),t)}let f=d(function(){return c(/^Mac/i)}),h=d(function(){return c(/^iPhone/i)}),m=d(function(){return c(/^iPad/i)||f()&&navigator.maxTouchPoints>1}),p=d(function(){return h()||m()});d(function(){return f()||p()}),d(function(){return u(/AppleWebKit/i)&&!g()});let g=d(function(){return u(/Chrome/i)}),v=d(function(){return u(/Android/i)});d(function(){return u(/Firefox/i)});var x=n(18064);let b=null,y=new Set,w=new Map,E=!1,S=!1,T={Tab:!0,Escape:!0};function k(e,t){for(let n of y)n(e,t)}function C(e){E=!0,e.metaKey||!f()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key||(b="keyboard",k("keyboard",e))}function O(e){b="pointer",("mousedown"===e.type||"pointerdown"===e.type)&&(E=!0,k("pointer",e))}function L(e){(0===e.mozInputSource&&e.isTrusted||(v()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType))&&(E=!0,b="virtual")}function I(e){e.target!==window&&e.target!==document&&e.isTrusted&&(E||S||(b="virtual",k("virtual",e)),E=!1,S=!1)}function M(){E=!1,S=!0}function R(e){if("undefined"==typeof window||"undefined"==typeof document||w.get((0,x.kR)(e)))return;let t=(0,x.kR)(e),n=(0,x.r3)(e),r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){E=!0,r.apply(this,arguments)},n.addEventListener("keydown",C,!0),n.addEventListener("keyup",C,!0),n.addEventListener("click",L,!0),t.addEventListener("focus",I,!0),t.addEventListener("blur",M,!1),"undefined"!=typeof PointerEvent&&(n.addEventListener("pointerdown",O,!0),n.addEventListener("pointermove",O,!0),n.addEventListener("pointerup",O,!0)),t.addEventListener("beforeunload",()=>{P(e)},{once:!0}),w.set(t,{focus:r})}let P=(e,t)=>{let n=(0,x.kR)(e),r=(0,x.r3)(e);t&&r.removeEventListener("DOMContentLoaded",t),w.has(n)&&(n.HTMLElement.prototype.focus=w.get(n).focus,r.removeEventListener("keydown",C,!0),r.removeEventListener("keyup",C,!0),r.removeEventListener("click",L,!0),n.removeEventListener("focus",I,!0),n.removeEventListener("blur",M,!1),"undefined"!=typeof PointerEvent&&(r.removeEventListener("pointerdown",O,!0),r.removeEventListener("pointermove",O,!0),r.removeEventListener("pointerup",O,!0)),w.delete(n))};function j(){return"pointer"!==b}"undefined"!=typeof document&&function(e){let t;let n=(0,x.r3)(void 0);"loading"!==n.readyState?R(void 0):(t=()=>{R(void 0)},n.addEventListener("DOMContentLoaded",t)),()=>P(e,t)}();let N=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);var F=n(26428),A=n(66852);function D(e={}){var t,n,r;let{autoFocus:i=!1,isTextInput:l,within:u}=e,c=(0,o.useRef)({isFocused:!1,isFocusVisible:i||j()}),[d,f]=(0,o.useState)(!1),[h,m]=(0,o.useState)(()=>c.current.isFocused&&c.current.isFocusVisible),p=(0,o.useCallback)(()=>m(c.current.isFocused&&c.current.isFocusVisible),[]),g=(0,o.useCallback)(e=>{c.current.isFocused=e,f(e),p()},[p]);t=e=>{c.current.isFocusVisible=e,p()},n=[],r={isTextInput:l},R(),(0,o.useEffect)(()=>{let e=(e,n)=>{(function(e,t,n){let r=(0,x.r3)(null==n?void 0:n.target),o="undefined"!=typeof window?(0,x.kR)(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?(0,x.kR)(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,l="undefined"!=typeof window?(0,x.kR)(null==n?void 0:n.target).HTMLElement:HTMLElement,a="undefined"!=typeof window?(0,x.kR)(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||r.activeElement instanceof o&&!N.has(r.activeElement.type)||r.activeElement instanceof i||r.activeElement instanceof l&&r.activeElement.isContentEditable)&&"keyboard"===t&&n instanceof a&&!T[n.key])})(!!(null==r?void 0:r.isTextInput),e,n)&&t(j())};return y.add(e),()=>{y.delete(e)}},n);let{focusProps:v}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e,l=(0,o.useCallback)(e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0},[r,i]),a=s(l),u=(0,o.useCallback)(e=>{let t=(0,x.r3)(e.target),r=t?(0,F.vY)(t):(0,F.vY)();e.target===e.currentTarget&&r===(0,F.NI)(e.nativeEvent)&&(n&&n(e),i&&i(!0),a(e))},[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?u:void 0,onBlur:!t&&(r||i)?l:void 0}}}({isDisabled:u,onFocusChange:g}),{focusWithinProps:b}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,l=(0,o.useRef)({isFocusWithin:!1}),{addGlobalListener:u,removeAllGlobalListeners:c}=(0,A.x)(),d=(0,o.useCallback)(e=>{e.currentTarget.contains(e.target)&&l.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(l.current.isFocusWithin=!1,c(),n&&n(e),i&&i(!1))},[n,i,l,c]),f=s(d),h=(0,o.useCallback)(e=>{if(!e.currentTarget.contains(e.target))return;let t=(0,x.r3)(e.target),n=(0,F.vY)(t);if(!l.current.isFocusWithin&&n===(0,F.NI)(e.nativeEvent)){r&&r(e),i&&i(!0),l.current.isFocusWithin=!0,f(e);let n=e.currentTarget;u(t,"focus",e=>{if(l.current.isFocusWithin&&!(0,F.bE)(n,e.target)){let r=new t.defaultView.FocusEvent("blur",{relatedTarget:e.target});Object.defineProperty(r,"target",{value:n}),Object.defineProperty(r,"currentTarget",{value:n}),d(a(r))}},{capture:!0})}},[r,i,f,u,d]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:h,onBlur:d}}}({isDisabled:!u,onFocusWithinChange:g});return{isFocused:d,isFocusVisible:h,focusProps:u?b:v}}},11323:function(e,t,n){"use strict";n.d(t,{X:function(){return d}});var r=n(66852),o=n(18064),i=n(26428),l=n(2265);let a=!1,s=0;function u(e){"touch"===e.pointerType&&(a=!0,setTimeout(()=>{a=!1},50))}function c(){if("undefined"!=typeof document)return 0===s&&"undefined"!=typeof PointerEvent&&document.addEventListener("pointerup",u),s++,()=>{--s>0||"undefined"==typeof PointerEvent||document.removeEventListener("pointerup",u)}}function d(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:s,isDisabled:u}=e,[d,f]=(0,l.useState)(!1),h=(0,l.useRef)({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;(0,l.useEffect)(c,[]);let{addGlobalListener:m,removeAllGlobalListeners:p}=(0,r.x)(),{hoverProps:g,triggerHoverEnd:v}=(0,l.useMemo)(()=>{let e=(e,l)=>{if(h.pointerType=l,u||"touch"===l||h.isHovered||!e.currentTarget.contains(e.target))return;h.isHovered=!0;let a=e.currentTarget;h.target=a,m((0,o.r3)(e.target),"pointerover",e=>{h.isHovered&&h.target&&!(0,i.bE)(h.target,e.target)&&r(e,e.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:a,pointerType:l}),n&&n(!0),f(!0)},r=(e,t)=>{let r=h.target;h.pointerType="",h.target=null,"touch"!==t&&h.isHovered&&r&&(h.isHovered=!1,p(),s&&s({type:"hoverend",target:r,pointerType:t}),n&&n(!1),f(!1))},l={};return"undefined"!=typeof PointerEvent&&(l.onPointerEnter=t=>{a&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!u&&e.currentTarget.contains(e.target)&&r(e,e.pointerType)}),{hoverProps:l,triggerHoverEnd:r}},[t,n,s,u,h,m,p]);return(0,l.useEffect)(()=>{u&&v({currentTarget:h.target},h.pointerType)},[u]),{hoverProps:g,isHovered:d}}},26428:function(e,t,n){"use strict";function r(e,t){return!!t&&!!e&&e.contains(t)}n.d(t,{vY:function(){return o},NI:function(){return i},bE:function(){return r}}),n(18064);let o=(e=document)=>e.activeElement;function i(e){return e.target}},18064:function(e,t,n){"use strict";n.d(t,{Zq:function(){return i},kR:function(){return o},r3:function(){return r}});let r=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},o=e=>e&&"window"in e&&e.window===e?e:r(e).defaultView||window;function i(e){return null!==e&&"object"==typeof e&&"nodeType"in e&&"number"==typeof e.nodeType&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in e}},66852:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(2265);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=(null==o?void 0:o.once)?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{var i;let l=(null===(i=e.current.get(r))||void 0===i?void 0:i.fn)||r;t.removeEventListener(n,l,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},20735:function(e,t,n){"use strict";n.r(t),n.d(t,{Mermaid:function(){return i}});var r=n(57437),o=n(2265);function i(e){let{chart:t}=e,i=(0,o.useId)(),[l,a]=(0,o.useState)(""),s=(0,o.useRef)(null),u=function(e){let[t,n]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t=new IntersectionObserver(e=>{let[r]=e;r.isIntersecting&&(t.disconnect(),n(!0))});return t.observe(e.current),()=>{t.disconnect()}},[e]),t}(s);return(0,o.useEffect)(()=>{if(!u)return;let e=document.documentElement,r=new MutationObserver(o);return r.observe(e,{attributes:!0}),o(),()=>{r.disconnect()};async function o(){var r;let o=e.classList.contains("dark")||(null===(r=e.attributes.getNamedItem("data-theme"))||void 0===r?void 0:r.value)==="dark",{default:l}=await Promise.all([n.e(5085),n.e(656)]).then(n.bind(n,50656));try{l.initialize({startOnLoad:!1,securityLevel:"loose",fontFamily:"inherit",themeCSS:"margin: 1.5rem auto 0;",theme:o?"dark":"default"});let{svg:e}=await l.render(i.replaceAll(":",""),t.replaceAll("\\n","\n"),s.current);a(e)}catch(e){console.error("Error while rendering mermaid",e)}}},[t,u]),(0,r.jsx)("div",{ref:s,dangerouslySetInnerHTML:{__html:l}})}},25922:function(e,t,n){"use strict";n.d(t,{F:function(){return c},ThemeProvider:function(){return d}});var r=n(2265),o=(e,t,n,r,o,i,l,a)=>{let s=document.documentElement,u=["light","dark"];function c(t){(Array.isArray(e)?e:[e]).forEach(e=>{let n="class"===e,r=n&&i?o.map(e=>i[e]||e):o;n?(s.classList.remove(...r),s.classList.add(i&&i[t]?i[t]:t)):s.setAttribute(e,t)}),a&&u.includes(t)&&(s.style.colorScheme=t)}if(r)c(r);else try{let e=localStorage.getItem(t)||n,r=l&&"system"===e?window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":e;c(r)}catch(e){}},i=["light","dark"],l="(prefers-color-scheme: dark)",a="undefined"==typeof window,s=r.createContext(void 0),u={setTheme:e=>{},themes:[]},c=()=>{var e;return null!=(e=r.useContext(s))?e:u},d=e=>r.useContext(s)?r.createElement(r.Fragment,null,e.children):r.createElement(h,{...e}),f=["light","dark"],h=e=>{let{forcedTheme:t,disableTransitionOnChange:n=!1,enableSystem:o=!0,enableColorScheme:a=!0,storageKey:u="theme",themes:c=f,defaultTheme:d=o?"system":"light",attribute:h="data-theme",value:x,children:b,nonce:y,scriptProps:w}=e,[E,S]=r.useState(()=>p(u,d)),[T,k]=r.useState(()=>"system"===E?v():E),C=x?Object.values(x):c,O=r.useCallback(e=>{let t=e;if(!t)return;"system"===e&&o&&(t=v());let r=x?x[t]:t,l=n?g(y):null,s=document.documentElement,u=e=>{"class"===e?(s.classList.remove(...C),r&&s.classList.add(r)):e.startsWith("data-")&&(r?s.setAttribute(e,r):s.removeAttribute(e))};if(Array.isArray(h)?h.forEach(u):u(h),a){let e=i.includes(d)?d:null,n=i.includes(t)?t:e;s.style.colorScheme=n}null==l||l()},[y]),L=r.useCallback(e=>{let t="function"==typeof e?e(E):e;S(t);try{localStorage.setItem(u,t)}catch(e){}},[E]),I=r.useCallback(e=>{k(v(e)),"system"===E&&o&&!t&&O("system")},[E,t]);r.useEffect(()=>{let e=window.matchMedia(l);return e.addListener(I),I(e),()=>e.removeListener(I)},[I]),r.useEffect(()=>{let e=e=>{e.key===u&&(e.newValue?S(e.newValue):L(d))};return window.addEventListener("storage",e),()=>window.removeEventListener("storage",e)},[L]),r.useEffect(()=>{O(null!=t?t:E)},[t,E]);let M=r.useMemo(()=>({theme:E,setTheme:L,forcedTheme:t,resolvedTheme:"system"===E?T:E,themes:o?[...c,"system"]:c,systemTheme:o?T:void 0}),[E,L,t,T,o,c]);return r.createElement(s.Provider,{value:M},r.createElement(m,{forcedTheme:t,storageKey:u,attribute:h,enableSystem:o,enableColorScheme:a,defaultTheme:d,value:x,themes:c,nonce:y,scriptProps:w}),b)},m=r.memo(e=>{let{forcedTheme:t,storageKey:n,attribute:i,enableSystem:l,enableColorScheme:a,defaultTheme:s,value:u,themes:c,nonce:d,scriptProps:f}=e,h=JSON.stringify([i,n,s,t,c,u,l,a]).slice(1,-1);return r.createElement("script",{...f,suppressHydrationWarning:!0,nonce:"undefined"==typeof window?d:"",dangerouslySetInnerHTML:{__html:"(".concat(o.toString(),")(").concat(h,")")}})}),p=(e,t)=>{let n;if(!a){try{n=localStorage.getItem(e)||void 0}catch(e){}return n||t}},g=e=>{let t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.appendChild(document.createTextNode("*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(t),()=>{window.getComputedStyle(document.body),setTimeout(()=>{document.head.removeChild(t)},1)}},v=e=>(e||(e=window.matchMedia(l)),e.matches?"dark":"light")},89056:function(e,t,n){"use strict";n.d(t,{Z:function(){return c}});let r=e=>"object"==typeof e&&null!=e&&1===e.nodeType,o=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,i=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let n=getComputedStyle(e,null);return o(n.overflowY,t)||o(n.overflowX,t)||(e=>{let t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},l=(e,t,n,r,o,i,l,a)=>i<e&&l>t||i>e&&l<t?0:i<=e&&a<=n||l>=t&&a>=n?i-e-r:l>t&&a<n||i<e&&a>n?l-t+o:0,a=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},s=(e,t)=>{var n,o,s,u;if("undefined"==typeof document)return[];let{scrollMode:c,block:d,inline:f,boundary:h,skipOverflowHiddenElements:m}=t,p="function"==typeof h?h:e=>e!==h;if(!r(e))throw TypeError("Invalid target");let g=document.scrollingElement||document.documentElement,v=[],x=e;for(;r(x)&&p(x);){if((x=a(x))===g){v.push(x);break}null!=x&&x===document.body&&i(x)&&!i(document.documentElement)||null!=x&&i(x,m)&&v.push(x)}let b=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,y=null!=(u=null==(s=window.visualViewport)?void 0:s.height)?u:innerHeight,{scrollX:w,scrollY:E}=window,{height:S,width:T,top:k,right:C,bottom:O,left:L}=e.getBoundingClientRect(),{top:I,right:M,bottom:R,left:P}=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e),j="start"===d||"nearest"===d?k-I:"end"===d?O+R:k+S/2-I+R,N="center"===f?L+T/2-P+M:"end"===f?C+M:L-P,F=[];for(let e=0;e<v.length;e++){let t=v[e],{height:n,width:r,top:o,right:a,bottom:s,left:u}=t.getBoundingClientRect();if("if-needed"===c&&k>=0&&L>=0&&O<=y&&C<=b&&(t===g&&!i(t)||k>=o&&O<=s&&L>=u&&C<=a))break;let h=getComputedStyle(t),m=parseInt(h.borderLeftWidth,10),p=parseInt(h.borderTopWidth,10),x=parseInt(h.borderRightWidth,10),I=parseInt(h.borderBottomWidth,10),M=0,R=0,P="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-x:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-p-I:0,D="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,z="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(g===t)M="start"===d?j:"end"===d?j-y:"nearest"===d?l(E,E+y,y,p,I,E+j,E+j+S,S):j-y/2,R="start"===f?N:"center"===f?N-b/2:"end"===f?N-b:l(w,w+b,b,m,x,w+N,w+N+T,T),M=Math.max(0,M+E),R=Math.max(0,R+w);else{M="start"===d?j-o-p:"end"===d?j-s+I+A:"nearest"===d?l(o,s,n,p,I+A,j,j+S,S):j-(o+n/2)+A/2,R="start"===f?N-u-m:"center"===f?N-(u+r/2)+P/2:"end"===f?N-a+x+P:l(u,a,r,m,x+P,N,N+T,T);let{scrollLeft:e,scrollTop:i}=t;M=0===z?0:Math.max(0,Math.min(i+M/z,t.scrollHeight-n/z+A)),R=0===D?0:Math.max(0,Math.min(e+R/D,t.scrollWidth-r/D+P)),j+=i-M,N+=e-R}F.push({el:t,top:M,left:R})}return F},u=e=>!1===e?{block:"end",inline:"nearest"}:e===Object(e)&&0!==Object.keys(e).length?e:{block:"start",inline:"nearest"};function c(e,t){if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let n=(e=>{let t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(s(e,t));let r="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:l}of s(e,u(t))){let e=i-n.top+n.bottom,t=l-n.left+n.right;o.scroll({top:e,left:t,behavior:r})}}},3011:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(2265);let o=e=>{let t;let n=new Set,r=(e,r)=>{let o="function"==typeof e?e(t):e;if(!Object.is(o,t)){let e=t;t=(null!=r?r:"object"!=typeof o||null===o)?o:Object.assign({},t,o),n.forEach(n=>n(t,e))}},o=()=>t,i={setState:r,getState:o,getInitialState:()=>l,subscribe:e=>(n.add(e),()=>n.delete(e))},l=t=e(r,o,i);return i},i=e=>e?o(e):o,l=e=>e,a=e=>{let t=i(e),n=e=>(function(e,t=l){let n=r.useSyncExternalStore(e.subscribe,r.useCallback(()=>t(e.getState()),[e,t]),r.useCallback(()=>t(e.getInitialState()),[e,t]));return r.useDebugValue(n),n})(t,e);return Object.assign(n,t),n},s=e=>e?a(e):a}}]); |